HT凭什么反弹力度伸跟EOS一样

日比特币,eos,ht超跌反弹日比特币,eos,ht超跌反弹杨哥话数字货币百家号首先,目前肯定的反弹性质为【超跌反弹】超跌反弹是一种短时现象在大跌局部,抄底盘(散户为主,机构和大庄绝逼不会在大跌后,立即吸货)介入后形成,但因其缺乏有效组织性,一时血气之勇,难以长时间维继。另外,【趋势】需要结构的积累,质变去推进,超跌反弹没有蓄势过程,也没有结构质变,典型的生瓜蛋子,充饥尚可,余味不足。综上,浅尝辄止就好,不要贪恋,更不要寄予幻想。自昨晚而起的超跌反弹,目前尚有余力,短期内,仍有新高目标位分别位于一线(视力度而定)其中:7770代表的是单纯的反弹,属于技术乖离修正(参照昨天直播所讲的牵引力的知识点)。一旦触及,需要【逢高减仓】。7926代表的含义很多,但记住,一旦触及这里。肯定有大批意见,【诱导】你牛市啦,满仓干啦,等等。届时不要轻信。等币须飞飞确认。8000为核心的长期震荡格局,早就讲过脱离不是极端看多,就是极端看空的【韭菜视野】才能算在技术领域,登堂入室有心学习的同学,谨记。主流币及热点异动加餐EOS:昨日反弹,撩的太多人心痒痒。但注意,目前动作,仍在币须飞飞策略中。13.6的第一份筹码,11.1的第二份筹码,持币不动。剩下的两份,是你的王炸,没有9.0或是14.1请勿出手,别被一对三就骗了去。HT:昨日低位围绕3.66一线策略支撑展开,上行阻力验证4.0,一切尚在预期策略中。因HT目前在轮廓勾勒得初期,要忍着为主。心急吃不了热鸡腿。STEEM:早在5月上旬,就已经进入超跌状态,目前结构及节奏自成一体,没有跟随大势。就目前而言,算是强势币。持币策略为主。ADA:目前结构追随大势节奏。因早已破位50%条件,不在强势币序列中。目前验证的是0.186一线技术支撑。当前正在参与大势【超跌反弹】,上行阻力关注0.229一线附近。BTC:参照上面持续性及空间点位,不重复了。ETH:目前正在验证599一线策略阻力。上行反弹阻力关注656一线,这个点位你一定熟。参与完大势的超跌反弹再说。BCH:1075一线既定策略阻力,正在起作用。这里突破关注上行1223,但意义不大。且看即可。本文由百家号作者上传并发布,百家号仅提供信息发布平台。文章仅代表作者个人观点,不代表百度立场。未经作者许可,不得转载。杨哥话数字货币百家号最近更新:简介:杨哥话数字货币狗狗币作者最新文章相关文章EOS带你飞。
EOS智能合约流程
流程:创建钱包 ,创建账号,根据合约发行货币,转账 因为master更新比较频繁,本人选择的是分支这里不在描述环境的配置了,之前已经配置好了。大部分遇到的问题可能就是环境没配置好,或者分支是master问题导致的,多试几次。直接粘贴一下Install the development toolkit:
sudo apt-get update
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add -
sudo apt-get install clang-4.0 lldb-4.0 libclang-4.0-dev cmake make \
libbz2-dev libssl-dev libgmp3-dev \
autotools-dev build-essential \
libbz2-dev libicu-dev python-dev \
autoconf libtool git
Install Boost 1.64:
wget -c 'https://sourceforge.net/projects/boost/files/boost/1.64.0/boost_1_64_0.tar.bz2/download' -O boost_1.64.0.tar.bz2
tar xjf boost_1.64.0.tar.bz2
cd boost_1_64_0/
echo "export BOOST_ROOT=$HOME/opt/boost_1_64_0" && ~/.bash_profile
source ~/.bash_profile
./bootstrap.sh "--prefix=$BOOST_ROOT"
./b2 install
source ~/.bash_profile
Install secp256k1-zkp (Cryptonomex branch):
git clone https://github.com/cryptonomex/secp256k1-zkp.git
cd secp256k1-zkp
./autogen.sh
./configure
sudo make install
To use the WASM compiler, EOS has an external dependency on binaryen:
git clone https://github.com/WebAssembly/binaryen.git
cd ~/binaryen
git checkout tags/1.37.14
cmake . && make
Add BINARYEN_ROOT to your .bash_profile:
echo "export BINARYEN_ROOT=~/binaryen" && ~/.bash_profile
source ~/.bash_profile
By default LLVM and clang do not include the WASM build target, so you will have to build it yourself:
~/wasm-compiler
cd ~/wasm-compiler
git clone --depth 1 --single-branch --branch release_40 https://github.com/llvm-mirror/llvm.git
cd llvm/tools
git clone --depth 1 --single-branch --branch release_40 https://github.com/llvm-mirror/clang.git
mkdir build
cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=.. -DLLVM_TARGETS_TO_BUILD= -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=WebAssembly -DCMAKE_BUILD_TYPE=Release ../
make -j4 install克隆代码到本地git clone https://github.com/eosio/eos --recursive切换版本,更新最新代码git checkout -b 318 SuperDawn-
git submodule update --init --recursive创建build目录,进入文件夹mkdir build
cd build执行cmake命令cmake -DBINARYEN_BIN=~/binaryen/bin -DBOOST_ROOT=/home/feng/boost_1_66_0 -DWASM_ROOT=~/wasm-compiler/llvm -DCMAKE_BUILD_TYPE=Debug ..构建成功:feng@feng-B250-HD3P:~/workSpace/eos/build$ cmake -DBINARYEN_BIN=~/binaryen/bin -DBOOST_ROOT=/home/feng/boost_1_66_0 -DWASM_ROOT=~/wasm-compiler/llvm -DCMAKE_BUILD_TYPE=Debug ..
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Using custom FindBoost.cmake
-- Boost version: 1.66.0
-- Found the following Boost libraries:
filesystem
program_options
serialization
unit_test_framework
-- Configuring Eos on Linux
-- --------------------------------------------------------------------
-- No WASM compiler could be found ... (skipping building of contracts)
-- --------------------------------------------------------------------
-- Found Secp256k1: /usr/local/lib/libsecp256k1.a
-- Found GMP: /usr/lib/x86_64-linux-gnu/libgmp.a
-- Configuring fc to build on Unix/Apple
-- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libssl.a;/usr/lib/x86_64-linux-gnu/libcrypto.a (found version "1.0.2g")
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.8")
-- zlib found
-- Found BZip2: /usr/lib/x86_64-linux-gnu/libbz2.so (found version "1.0.6")
-- Looking for BZ2_bzCompressInit
-- Looking for BZ2_bzCompressInit - found
-- bzip2 found
-- Using custom FindBoost.cmake
-- Boost version: 1.66.0
-- Found the following Boost libraries:
filesystem
unit_test_framework
-- Configuring ChainBase on Linux
-- egenesis: /home/feng/workSpace/eos/genesis.json
-- embed_genesis_args: -t/home/feng/workSpace/eos/libraries/egenesis/egenesis_brief.cpp.tmpl---/home/feng/workSpace/eos/build/libraries/egenesis/egenesis_brief.cpp-t/home/feng/workSpace/eos/libraries/egenesis/egenesis_full.cpp.tmpl---/home/feng/workSpace/eos/build/libraries/egenesis/egenesis_full.cpp--genesis-json/home/feng/workSpace/eos/genesis.json
-- Using custom FindBoost.cmake
-- Boost version: 1.66.0
-- Found the following Boost libraries:
filesystem
program_options
unit_test_framework
-- Configuring AppBase on Linux
-- Using custom FindBoost.cmake
-- Boost version: 1.66.0
-- Found the following Boost libraries:
unit_test_framework
mongo_db_plugin not selected and will be omitted.
-- Found Git: /usr/bin/git (found version "2.7.4")
-- Git commit revision: a731471c
-- Git commit revision: a731471c
-- Found Intl: /usr/include
-- Git commit revision: a731471c
-- Found Doxygen: /usr/bin/doxygen (found version "1.8.11")
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:
-- Build files have been written to: /home/feng/workSpace/eos/build但是你会发现-- No WASM compiler could be found ... (skipping building of contracts)这个是因为环境没有配置对,会掉过合约代码的构建,添加DWASM_LLVM_CONFIGcmake -DBINARYEN_BIN=~/binaryen/bin -DBOOST_ROOT=/home/feng/boost_1_66_0 -DCMAKE_BUILD_TYPE=Debug -DWASM_LLVM_CONFIG=/home/feng/opt/wasm/bin/llvm-config ..重新构建后,没有之前问题的feng@feng-B250-HD3P:~/workSpace/eos/build$ cmake -DBINARYEN_BIN=~/binaryen/bin -DBOOST_ROOT=/home/feng/boost_1_66_0 -DCMAKE_BUILD_TYPE=Debug -DWASM_LLVM_CONFIG=/home/feng/opt/wasm/bin/llvm-config ..
-- Using custom FindBoost.cmake
-- Boost version: 1.66.0
-- Found the following Boost libraries:
filesystem
program_options
serialization
unit_test_framework
-- Configuring Eos on Linux
-- BINARYEN_BIN not defined looking in PATH
-- BINARYEN_BIN =& /home/feng/binaryen/bin
-- Using WASM clang =& /home/feng/opt/wasm/bin/clang
-- Using WASM llc =& /home/feng/opt/wasm/bin/llc
-- Using WASM llvm-link =& /home/feng/opt/wasm/bin/llvm-link
-- Found Secp256k1: /usr/local/lib/libsecp256k1.a
-- Configuring fc to build on Unix/Apple
-- zlib found
-- bzip2 found
-- Using custom FindBoost.cmake
-- Boost version: 1.66.0
-- Found the following Boost libraries:
filesystem
unit_test_framework
-- Configuring ChainBase on Linux
-- egenesis: /home/feng/workSpace/eos/genesis.json
-- embed_genesis_args: -t/home/feng/workSpace/eos/libraries/egenesis/egenesis_brief.cpp.tmpl---/home/feng/workSpace/eos/build/libraries/egenesis/egenesis_brief.cpp-t/home/feng/workSpace/eos/libraries/egenesis/egenesis_full.cpp.tmpl---/home/feng/workSpace/eos/build/libraries/egenesis/egenesis_full.cpp--genesis-json/home/feng/workSpace/eos/genesis.json
-- Using custom FindBoost.cmake
-- Boost version: 1.66.0
-- Found the following Boost libraries:
filesystem
program_options
unit_test_framework
-- Configuring AppBase on Linux
-- Using custom FindBoost.cmake
-- Boost version: 1.66.0
-- Found the following Boost libraries:
unit_test_framework
mongo_db_plugin not selected and will be omitted.
-- Git commit revision: a731471c
-- Git commit revision: a731471c
-- Git commit revision: a731471c
-- Configuring done
-- Generating done
-- Build files have been written to: /home/feng/workSpace/eos/build这里提示一下我的bash_profile文件的环境变量配置你可以通过
sudo gedit ~/.bash_profile 更改文件,然后保存 source ~/.bash_profileexport BOOST_ROOT=/home/feng/boost_1_66_0
export BINARYEN_ROOT=~/binaryen
export LLVM_DIR=~/wasm-compiler/llvm/build/lib/cmake/llvm
export WASM_LLVM_CONFIG=/home/feng/opt/wasm/bin/llvm-config显然我的WASM_LLVM_CONFIG环境变量和cmake执行的时候配置是一样的,但是结果却不一样,虽然解决了问题,却不知道原因,忘知道的大佬,告知一下。下面就执行编译了,sudo make install 后会在eos目录下生成合约相关的文件make -j8
sudo make install编译成功后[ 99%] Built target net_api_plugin
Scanning dependencies of target eosiod
[ 99%] Building CXX object programs/eosiod/CMakeFiles/eosiod.dir/main.cpp.o
[ 99%] Linking CXX executable eosioc
[ 99%] Built target eosioc
[ 99%] Built target chain_test
[100%] Linking CXX executable eosiod
[100%] Built target eosiod进入eosiod目录,手动创建data-dir文件夹,并拷贝genesis.json和config.ini到目录下,执行eosiodcp ../../genesis.json data-dir/
cp ../../../../config.ini data-dir/
./eosiodconfig.ini 是之前已经写好的文件,genesis-json要自己更改成data-dir对应的绝对路径producer-name也要更改成对应的# Track only transactions whose scopes involve the listed accounts. Default is to track all transactions. (eosio::account_history_plugin)
# filter_on_accounts =
# Limits the maximum time (in milliseconds) processing a single get_transactions call. (eosio::account_history_plugin)
get-transactions-time-limit = 3
# File to read Genesis State from (eosio::chain_plugin)
genesis-json = /home/feng/workSpace/eos/build/programs/eosiod/data-dir/genesis.json
# override the initial timestamp in the Genesis State file (eosio::chain_plugin)
# genesis-timestamp =
# the location of the block log (absolute path or relative to application data dir) (eosio::chain_plugin)
block-log-dir = "blocks"
# Pairs of [BLOCK_NUM,BLOCK_ID] that should be enforced as checkpoints. (eosio::chain_plugin)
# checkpoint =
# Limits the maximum time (in milliseconds) that a reversible block is allowed to run before being considered invalid (eosio::chain_plugin)
max-reversible-block-time = -1
# Limits the maximum time (in milliseconds) that is allowed a pushed transaction's code to execute before being considered invalid (eosio::chain_plugin)
max-pending-transaction-time = -1
# Time to wait, in milliseconds, between creating next faucet created account. (eosio::faucet_testnet_plugin)
faucet-create-interval-ms = 1000
# Name to use as creator for faucet created accounts. (eosio::faucet_testnet_plugin)
faucet-name = faucet
# [public key, WIF private key] for signing for faucet creator account (eosio::faucet_testnet_plugin)
faucet-private-key = ["EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV","5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3"]
# The local IP and port to listen for incoming http connections. (eosio::http_plugin)
http-server-address = 127.0.0.1:8888
# Specify the Access-Control-Allow-Origin to be returned on each request. (eosio::http_plugin)
# access-control-allow-origin =
# Specify the Access-Control-Allow-Headers to be returned on each request. (eosio::http_plugin)
# access-control-allow-headers =
# Specify if Access-Control-Allow-Credentials: true should be returned on each request. (eosio::http_plugin)
access-control-allow-credentials = false
# The actual host:port used to listen for incoming p2p connections. (eosio::net_plugin)
p2p-listen-endpoint = 0.0.0.0:9876
# An externally accessible host:port for identifying this node. Defaults to p2p-listen-endpoint. (eosio::net_plugin)
# p2p-server-address =
# The public endpoint of a peer node to connect to. Use multiple p2p-peer-address options as needed to compose a network. (eosio::net_plugin)
# p2p-peer-address =
# The name supplied to identify this node amongst the peers. (eosio::net_plugin)
agent-name = "EOS Test Agent"
# Can be 'any' or 'producers' or 'specified' or 'none'. If 'specified', peer-key must be specified at least once. If only 'producers', peer-key is not required. 'producers' and 'specified' may be combined. (eosio::net_plugin)
allowed-connection = any
# Optional public key of peer allowed to connect.
May be used multiple times. (eosio::net_plugin)
# peer-key =
# Tuple of [PublicKey, WIF private key] (may specify multiple times) (eosio::net_plugin)
# peer-private-key =
# Log level: one of 'all', 'debug', 'info', 'warn', 'error', or 'off' (eosio::net_plugin)
log-level-net-plugin = info
# Maximum number of clients from which connections are accepted, use 0 for no limit (eosio::net_plugin)
max-clients = 25
# number of seconds to wait before cleaning up dead connections (eosio::net_plugin)
connection-cleanup-period = 30
# True to require exact match of peer network version. (eosio::net_plugin)
network-version-match = 0
# number of blocks to retrieve in a chunk from any individual peer during synchronization (eosio::net_plugin)
sync-fetch-span = 100
# Enable block production, even if the chain is stale. (eosio::producer_plugin)
enable-stale-production = true
# Percent of producers (0-99) that must be participating in order to produce blocks (eosio::producer_plugin)
required-participation = false
# ID of producer controlled by this node (e.g. may specify multiple times) (eosio::producer_plugin)
producer-name = inita
producer-name = initb
producer-name = initc
producer-name = initd
producer-name = inite
producer-name = initf
producer-name = initg
producer-name = inith
producer-name = initi
producer-name = initj
producer-name = initk
producer-name = initl
producer-name = initm
producer-name = initn
producer-name = inito
producer-name = initp
producer-name = initq
producer-name = initr
producer-name = inits
producer-name = initt
producer-name = initu
# Tuple of [public key, WIF private key] (may specify multiple times) (eosio::producer_plugin)
private-key = ["EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV","5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3"]
# Plugin(s) to enable, may be specified multiple times
# Load the block producer plugin, so you can produce blocks
plugin = eosio::producer_plugin
# Wallet plugin
plugin = eosio::wallet_api_plugin
# As well as API and HTTP plugins
plugin = eosio::chain_api_plugin
plugin = eosio::http_plugin
成功后559462ms thread-0
http_plugin.cpp:242
add_handler
] add api url: /v1/chain/push_block
3559462ms thread-0
http_plugin.cpp:242
add_handler
] add api url: /v1/chain/push_transaction
3559462ms thread-0
http_plugin.cpp:242
add_handler
] add api url: /v1/chain/push_transactions
3559462ms thread-0
net_plugin.cpp:2681
plugin_startup
] starting listener, max clients is 25
3560000ms thread-0
chain_controller.cpp:878
validate_block_heade ] head_block_time T12:00:00.000, next_block T02:59:20.000, block_interval 500
3560000ms thread-0
chain_controller.cpp:880
validate_block_heade ] Did not produce block within block_interval 500ms, took ms)
inite generated block 9cb5e541... #1 @ T02:59:20.000 with 0 trxs
inita generated block 9b9e1b7f... #2 @ T02:59:20.500 with 0 trxs
inita generated block 5ffcd7a3... #3 @ T02:59:21.000 with 0 trxs
inita generated block d063a3df... #4 @ T02:59:21.500 with 0 trxs
inita generated block 932efcd0... #5 @ T02:59:22.000 with 0 trxs
initb generated block 6195dd11... #6 @ T02:59:22.500 with 0 trxs
initb generated block bfc1a7c0... #7 @ T02:59:23.000 with 0 trxs
initb generated block fbe2bf27... #8 @ T02:59:23.500 with 0 trxs
initb generated block a5a8977c... #9 @ T02:59:24.000 with 0 trxs
initb generated block 1f02d0c5... #10 @ T02:59:24.500 with 0 trxs
initb generated block 79a95b4f... #11 @ T02:59:25.000 with 0 trxs
initc generated block 146bc962... #12 @ T02:59:25.500 with 0 trxs
initc generated block 401d8e43... #13 @ T02:59:26.000 with 0 trxs
initc generated block aa4e344c... #14 @ T02:59:26.500 with 0 trxs新创建一个端口,到eosioc目录下~/workSpace/eos/build/programs/eosiod$ cd ../eosioc创建钱包feng@feng-B250-HD3P:~/workSpace/eos/build/programs/eosioc$ ./eosioc wallet create
Creating wallet: default
Save password to use in the future to unlock this wallet.
Without password imported keys will not be retrievable.
"PW5JvFjt8XQtvyGcWStEgtHbNJeCocPXfVdUGe5p4PmrKteBzwb1F"导入供测试的钱包私钥./eosioc wallet import 5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3
feng@feng-B250-HD3P:~/workSpace/eos/build/programs/eosioc$ ./eosioc wallet import 5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3
imported private key for: EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV创建2个keyfeng@feng-B250-HD3P:~/workSpace/eos/build/programs/eosioc$ ./eosioc create key
Private key: 5KgW6Vt97zLKnZfnCGB3NwVRmSCtXHPnYGfrK3Y3K41PLYR4sE5
Public key: EOS7E7ZodZiWYwgJZhdgpHLowJ9tZmTYTmUe7G2pfrjfe8ZEER4AP
feng@feng-B250-HD3P:~/workSpace/eos/build/programs/eosioc$ ./eosioc create key
Private key: 5JnprmH5ENoVvfBrUfSuVh7YsdVJbhajMLqMSpcFLyuL4JiSET3
Public key: EOS8R9pLjThFZ7uJyFdYeRNg2AbjLjMFcnkNZqtXPv5MmrBzVZtHt根据创建的key创建一个账号./eosioc create account inita currency PUBLIC_KEY_1 PUBLIC_KEY_2创建成功后feng@feng-B250-HD3P:~/workSpace/eos/build/programs/eosioc$ ./eosioc create account inita currency EOS7E7ZodZiWYwgJZhdgpHLowJ9tZmTYTmUe7G2pfrjfe8ZEER4AP EOS8R9pLjThFZ7uJyFdYeRNg2AbjLjMFcnkNZqtXPv5MmrBzVZtHt
"transaction_id": "1e09ec04a7c9aaddf9dbb094a31dbfdcd67b36ea5c18fba809303b",
"processed": {
"status": "executed",
"id": "1e09ec04a7c9aaddf9dbb094a31dbfdcd67b36ea5c18fba809303b",
"action_traces": [
"receiver": "eosio",
"account": "eosio",
"name": "newaccount",
"authorization": [{
"actor": "inita",
"permission": "active"
"creator": "inita",
"name": "currency",
"owner": {
"threshold": 1,
"accounts": [],
"keys": [{
"key": "EOS7E7ZodZiWYwgJZhdgpHLowJ9tZmTYTmUe7G2pfrjfe8ZEER4AP",
"weight": 1
"active": {
"threshold": 1,
"accounts": [],
"keys": [{
"key": "EOS8R9pLjThFZ7uJyFdYeRNg2AbjLjMFcnkNZqtXPv5MmrBzVZtHt",
"weight": 1
"recovery": {
"threshold": 1,
"accounts": [{
"permission": {
"actor": "inita",
"permission": "active"
"weight": 1
"keys": []
"deposit": "1.0000 EOS"
"hex_data": "ddd75afa25bd7d9a164bbb4fcb5f10a3abbd25cc46a0bfc1aeae54d2aaf3b9cd5f93dda8ed0000000"
"console": "",
"region_id": 0,
"cycle_index": 0,
"data_access": [{
"type": "write",
"scope": "eosio.auth",
"sequence": 21
"type": "write",
"scope": "inita",
"sequence": 1
"deferred_transactions": []
获取账号信息,注意看是否有**_balance等字段,master分支是可能没有的feng@feng-B250-HD3P:~/workSpace/eos/build/programs/eosioc$ ./eosioc get account currency
"account_name": "currency",
"eos_balance": "0.0000 EOS",
"staked_balance": "1.0000 EOS",
"unstaking_balance": "0.0000 EOS",
"last_unstaking_time": "T06:32:22",
"permissions": [{
"perm_name": "active",
"parent": "owner",
"required_auth": {
"threshold": 1,
"accounts": [],
"keys": [{
"key": "EOS8R9pLjThFZ7uJyFdYeRNg2AbjLjMFcnkNZqtXPv5MmrBzVZtHt",
"weight": 1
"perm_name": "owner",
"parent": "",
"required_auth": {
"threshold": 1,
"accounts": [],
"keys": [{
"key": "EOS7E7ZodZiWYwgJZhdgpHLowJ9tZmTYTmUe7G2pfrjfe8ZEER4AP",
"weight": 1
为钱包导入第二个key的私钥feng@feng-B250-HD3P:~/workSpace/eos/build/programs/eosioc$ ./eosioc wallet import 5JnprmH5ENoVvfBrUfSuVh7YsdVJbhajMLqMSpcFLyuL4JiSET3
imported private key for: EOS8R9pLjThFZ7uJyFdYeRNg2AbjLjMFcnkNZqtXPv5MmrBzVZtHt
下面根据提供的测试合约,进行测试没有部署合约前feng@feng-B250-HD3P:~/workSpace/eos/build/programs/eosioc$ ./eosioc get code currency
code hash: 0000部署合约feng@feng-B250-HD3P:~/workSpace/eos/build/programs/eosioc$ ./eosioc set contract currency ../../contracts/currency/currency.wast ../../contracts/currency/currency.abi
Reading WAST...
Assembling WASM...
Publishing contract...
"transaction_id": "4bee14afbaeab77cdfbdec4e",
"processed": {
"status": "executed",
"id": "4bee14afbaeab77cdfbdec4e",
"action_traces": [
"receiver": "eosio",
"account": "eosio",
"name": "setcode",
"authorization": [{
"actor": "currency",
"permission": "active"
"account": "currency",
"vmtype": 0,
"vmversion": 0,
"code": "太长了,文字代替"
"hex_data": "太长了,文字代替"
"console": "",
"region_id": 0,
"cycle_index": 0,
"data_access": [{
"type": "write",
"scope": "eosio.auth",
"sequence": 22
"receiver": "currency",
"account": "eosio",
"name": "setcode",
"authorization": [{
"actor": "currency",
"permission": "active"
"account": "currency",
"vmtype": 0,
"vmversion": 0,
"code": "太长了,文字代替"
"hex_data": "太长了,文字代替"
"console": "",
"region_id": 0,
"cycle_index": 0,
"data_access": []
"receiver": "eosio",
"account": "eosio",
"name": "setabi",
"authorization": [{
"actor": "currency",
"permission": "active"
"account": "currency",
"types": [{
"new_type_name": "account_name",
"type": "name"
"structs": [{
"name": "transfer",
"base": "",
"fields": [{
"name": "from",
"type": "account_name"
"name": "to",
"type": "account_name"
"name": "quantity",
"type": "asset"
"name": "memo",
"type": "string"
"name": "issue",
"base": "",
"fields": [{
"name": "to",
"type": "account_name"
"name": "quantity",
"type": "asset"
"name": "account",
"base": "",
"fields": [{
"name": "currency",
"type": "uint64"
"name": "balance",
"type": "uint64"
"name": "currency_stats",
"base": "",
"fields": [{
"name": "currency",
"type": "uint64"
"name": "supply",
"type": "uint64"
"actions": [{
"name": "transfer",
"type": "transfer"
"name": "issue",
"type": "issue"
"tables": [{
"name": "account",
"index_type": "i64",
"key_names": [
"currency"
"key_types": [
"type": "account"
"name": "stat",
"index_type": "i64",
"key_names": [
"currency"
"key_types": [
"type": "currency_stats"
"hex_data": "太长了,文字代替"
"console": "",
"region_id": 0,
"cycle_index": 0,
"data_access": []
"deferred_transactions": []
}部署合约后feng@feng-B250-HD3P:~/workSpace/eos/build/programs/eosioc$ ./eosioc get code currencycode hash: 27a4a7b159af0ca3d721cf747e52e85c06bbce734cfe发行货币,这里要注意master版本是行不通的,master版本需要在发行货币前,先创建货币,这里不在解释,等一会eos官网文档更新feng@feng-B250-HD3P:~/workSpace/eos/build/programs/eosioc$ ./eosioc push action currency issue '{"to":"currency","quantity":" CUR"}' --permission currency@active
822263ms thread-0
main.cpp:1149
operator()
] Converting argument to binary...
"transaction_id": "8f7a45c3a914deb79f93e6b84c828bad088e17c75d69",
"processed": {
"status": "executed",
"id": "8f7a45c3a914deb79f93e6b84c828bad088e17c75d69",
"action_traces": [
"receiver": "currency",
"account": "currency",
"name": "issue",
"authorization": [{
"actor": "currency",
"permission": "active"
"to": "currency",
"quantity": " CUR"
"hex_data": "d75af"
"console": "",
"region_id": 0,
"cycle_index": 0,
"data_access": [{
"type": "write",
"scope": "currency",
"sequence": 0
"receiver": "currency",
"account": "currency",
"name": "transfer",
"authorization": [{
"actor": "currency",
"permission": "active"
"from": "currency",
"to": "currency",
"quantity": " CUR",
"memo": ""
"hex_data": "d75afd75af"
"console": "",
"region_id": 0,
"cycle_index": 0,
"data_access": [{
"type": "write",
"scope": "currency",
"sequence": 1
"deferred_transactions": []
}看下货币有没有发行成功feng@feng-B250-HD3P:~/workSpace/eos/build/programs/eosioc$ ./eosioc get table currency currency account
"rows": [{
"currency": ,
"balance":
"more": false
}转账操作,并查看转账结果feng@feng-B250-HD3P:~/workSpace/eos/build/programs/eosioc$ ./eosioc push action currency transfer '{"from":"currency","to":"inita","quantity":"20.0000 CUR","memo":"my first transfer"}' --permission currency@active
983134ms thread-0
main.cpp:1149
operator()
] Converting argument to binary...
"transaction_id": "9e3cf4e87fc6b31ad4d0cbf9a224a9ece7",
"processed": {
"status": "executed",
"id": "9e3cf4e87fc6b31ad4d0cbf9a224a9ece7",
"action_traces": [
"receiver": "currency",
"account": "currency",
"name": "transfer",
"authorization": [{
"actor": "currency",
"permission": "active"
"from": "currency",
"to": "inita",
"quantity": "20.0000 CUR",
"memo": "my first transfer"
"hex_data": "d75af93dd6de"
"console": "",
"region_id": 0,
"cycle_index": 0,
"data_access": [{
"type": "write",
"scope": "currency",
"sequence": 2
"type": "write",
"scope": "inita",
"sequence": 0
"receiver": "inita",
"account": "currency",
"name": "transfer",
"authorization": [{
"actor": "currency",
"permission": "active"
"from": "currency",
"to": "inita",
"quantity": "20.0000 CUR",
"memo": "my first transfer"
"hex_data": "d75af93dd6de"
"console": "",
"region_id": 0,
"cycle_index": 0,
"data_access": []
"deferred_transactions": []
feng@feng-B250-HD3P:~/workSpace/eos/build/programs/eosioc$ ./eosioc get table inita currency account
"rows": [{
"currency": ,
"balance": 200000
"more": false
feng@feng-B250-HD3P:~/workSpace/eos/build/programs/eosioc$ ./eosioc get table currency currency account
"rows": [{
"currency": ,
"balance": 9800000
"more": false
就先写这么多吧,这里本人新建了个EOS区块链qq群,欢迎大家多多技术交流:
没有更多推荐了,
加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!

我要回帖

更多关于 加大宣传力度 的文章

 

随机推荐