eos 命令敲写流程

  cleos git:(master)

  cleos git:(master) ./cleos  wallet create

Creating wallet: default

Save password to use in the future to unlock this wallet.

Without password imported keys will not be retrievable.

"PW5HtpzrRMqyQknfc2ADjYzWM7T2Qf7WccCehtoPsL1B1yDd8TPuL"

  cleos git:(master)

  cleos git:(master)

  cleos git:(master)

  cleos git:(master) ./cleos  wallet import --private-key  5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3

imported private key for: EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV

  cleos git:(master) ./cleos  create key    

Private key: 5KE47tgiK94TCPfmbaym1GuaRE6cLksCeFpPE7j2BxwhPGSvnSf

Public key: EOS7KzBLn2MT1sZbhXJniYFWA577ZFf3BXuwzAZpuE3GEXTjJDGwx

  cleos git:(master) ./cleos  wallet import --private-key  5KE47tgiK94TCPfmbaym1GuaRE6cLksCeFpPE7j2BxwhPGSvnSf

imported private key for: EOS7KzBLn2MT1sZbhXJniYFWA577ZFf3BXuwzAZpuE3GEXTjJDGwx

  cleos git:(master)

 

python脚本执行命令创建系统账户及合约

#! /usr/bin/python
import os
import time
import sys
buildpath=sys.argv[1]
cleos=buildpath+"/programs/cleos/cleos"
contractPath=buildpath+"/contract/"
#Keys=($($cleos create key | awk -F: '{print $2}'))
#PrivKey=${Keys[0]}
#PubKey=${Keys[1]}
PubKey="UTR6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV"
PrivKey="5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3"
print("pub:"+PubKey)
print("pri:"+PrivKey)
### create default wallet
#WalletPwd=$($cleos wallet create | tail -n 1 | sed 's/\"//g')
#if test -z $WalletPwd
#then
#   echo "Wallet password is empty, quit."
#   exit 0
#fi
# echo "Password for default, please save it safely : " $WalletPwd
# WalletPwd=PW5JDL5AjogThU1avkC3cxE7xThEmeeya2bmvrZqJxYCcGq2UWY6B
# $cleos wallet unlock --password $WalletPwd
oscmd=cleos+" wallet import "+ PrivKey
os.system(oscmd)
time.sleep(1)
usrList=["user","tester","exchange","eosio.names","eosio.ram"," eosio.ramfee","eosio.bpay","eosio.msig","eosio.upay","eosio.saving","eosio.stake","eosio.token","eosio.vpay"]
for username in usrList:
    oscmd=cleos+" create account eosio "+username+ " "+PubKey+" "+PubKey
    print (oscmd)
    os.system(oscmd)


oscmd=cleos+" set contract eosio.token "+buildpath+"/contracts/eosio.token -p eosio.token "
os.system(oscmd)
time.sleep(1)
oscmd=cleos+" push action eosio.token create \'[ \"eosio\", \"1000000000.0000 SYS\", 0, 0, 0]\' -p eosio.token"
os.system(oscmd)
time.sleep(1)
oscmd=cleos+" push action eosio.token issue \'[ \"eosio\", \"300000000.0000 SYS\", \"memo\"]\' -p eosio"
os.system(oscmd)
time.sleep(1)
oscmd=cleos+" set contract eosio "+buildpath+"/contracts/eosio.system -p eosio"
os.system(oscmd)
time.sleep(1)
oscmd=cleos+" set contract eosio "+buildpath+"/contracts/eosio.system -p eosio "
os.system(oscmd)

 

  cleos git:(master) ./cleos  create account eosio  newacc  EOS7KzBLn2MT1sZbhXJniYFWA577ZFf3BXuwzAZpuE3GEXTjJDGwx  EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV

push_action111 testpush_transaction test

push_transaction tx_ref_block_num_or_id

push_transaction 1

push_transaction 2

push_transaction 3

test3 yanhuichao,

executed transaction: 90c1c9a76935e5a04fa9bcd49116321e9ed064b3fd833ae78d91a057667dd1b5  200 bytes  3212 us

#         eosio <= eosio::newaccount            {"creator":"eosio","name":"newacc","owner":{"threshold":1,"keys":[{"key":"EOS7KzBLn2MT1sZbhXJniYFWA5...

warning: transaction executed locally, but may not be confirmed by the network yet    ]

  cleos git:(master) ./cleos  create account eosio  eosio.bpay  EOS7KzBLn2MT1sZbhXJniYFWA577ZFf3BXuwzAZpuE3GEXTjJDGwx                                               

push_action111 testpush_transaction test

push_transaction tx_ref_block_num_or_id

push_transaction 1

push_transaction 2

push_transaction 3

test3 yanhuichao,

executed transaction: 96da433f3411e9879e3306ae4515eb12f3821153afcd7d1a08d955544547b35b  200 bytes  239 us

#         eosio <= eosio::newaccount            {"creator":"eosio","name":"eosio.bpay","owner":{"threshold":1,"keys":[{"key":"EOS7KzBLn2MT1sZbhXJniY...

warning: transaction executed locally, but may not be confirmed by the network yet    ]

  cleos git:(master)

  cleos git:(master) ./cleos  create account eosio  eosio.msig  EOS7KzBLn2MT1sZbhXJniYFWA577ZFf3BXuwzAZpuE3GEXTjJDGwx

push_action111 testpush_transaction test

push_transaction tx_ref_block_num_or_id

push_transaction 1

push_transaction 2

push_transaction 3

test3 yanhuichao,

executed transaction: 794b19f3eca9c5d08c74201ce958edf4cc8d599469e253a1cc09385557e8b73b  200 bytes  206 us

#         eosio <= eosio::newaccount            {"creator":"eosio","name":"eosio.msig","owner":{"threshold":1,"keys":[{"key":"EOS7KzBLn2MT1sZbhXJniY...

warning: transaction executed locally, but may not be confirmed by the network yet    ]

  cleos git:(master) ./cleos  create account eosio  eosio.token EOS7KzBLn2MT1sZbhXJniYFWA577ZFf3BXuwzAZpuE3GEXTjJDGwx

push_action111 testpush_transaction test

push_transaction tx_ref_block_num_or_id

push_transaction 1

push_transaction 2

push_transaction 3

test3 yanhuichao,

executed transaction: 3ef60fc66917b2fe4108dedb39985bd428e4929b0061e403e5321c164372826a  200 bytes  161 us

#         eosio <= eosio::newaccount            {"creator":"eosio","name":"eosio.token","owner":{"threshold":1,"keys":[{"key":"EOS7KzBLn2MT1sZbhXJni...

warning: transaction executed locally, but may not be confirmed by the network yet    ]

  cleos git:(master)

  cleos git:(master) ./cleos   set  contract   eosio.token  /Users/yanhuichao/work/eos/build/contracts/eosio.token

Reading WAST/WASM from /Users/yanhuichao/work/eos/build/contracts/eosio.token/eosio.token.wasm...

Using already assembled WASM...

Publishing contract...

push_action111 testpush_transaction test

push_transaction tx_ref_block_num_or_id

push_transaction 1

push_transaction 2

push_transaction 3

test3 yanhuichao,

executed transaction: 473b9f9b018d93555e6e16ab25b80100d1af2e40d529c40afa2635b6dcc82765  8104 bytes  7107 us

#         eosio <= eosio::setcode               {"account":"eosio.token","vmtype":0,"vmversion":0,"code":"0061736d01000000017e1560037f7e7f0060057f7e...

#         eosio <= eosio::setabi                {"account":"eosio.token","abi":"0e656f73696f3a3a6162692f312e30010c6163636f756e745f6e616d65046e616d65...

warning: transaction executed locally, but may not be confirmed by the network yet    ]

  cleos git:(master) ./cleos create key

yanhuichao stakecpu :

yanhuichao stakecpu :

Private key: 5JaeRVoic1ZVheQtHmXrB74vpJnd7meavtvgasVBBu6ZoWjSXMk

Public key: EOS55d6bUnjfTpYagKp2WEHZYq5mYb63Ga3EJko4gqcLZ2viMLdBw

  cleos git:(master) ./cleos wallet import --private-key 5JaeRVoic1ZVheQtHmXrB74vpJnd7meavtvgasVBBu6ZoWjSXMk

imported private key for: EOS55d6bUnjfTpYagKp2WEHZYq5mYb63Ga3EJko4gqcLZ2viMLdBw

  cleos git:(master) ./cleos create account eosio  eosio.names  EOS55d6bUnjfTpYagKp2WEHZYq5mYb63Ga3EJko4gqcLZ2viMLdBw

yanhuichao stakecpu :

yanhuichao stakecpu :

push_action111 testpush_transaction test

push_transaction tx_ref_block_num_or_id

push_transaction 1

push_transaction 2

push_transaction 3

test3 yanhuichao,

executed transaction: d9d90464e2509050ad572e0dbfeb60caa55f23bd0273fd9e7dadf41c14cc0142  200 bytes  182 us

#         eosio <= eosio::newaccount            {"creator":"eosio","name":"eosio.names","owner":{"threshold":1,"keys":[{"key":"EOS55d6bUnjfTpYagKp2W...

warning: transaction executed locally, but may not be confirmed by the network yet    ]

  cleos git:(master) ./cleos create key                                                                              

yanhuichao stakecpu :

yanhuichao stakecpu :

Private key: 5HsLyh87yrtN1aB5DgykcXvqXzvXkSvH7YMfQJJeZv3Ey4fSrNs

Public key: EOS51SfezFZoS2kxGstYMAUmCsJa2W7a7aQQL9r5BQWR5HKbrzThD

  cleos git:(master)

  cleos git:(master) ./cleos wallet import --private-key 5HsLyh87yrtN1aB5DgykcXvqXzvXkSvH7YMfQJJeZv3Ey4fSrNs         

imported private key for: EOS51SfezFZoS2kxGstYMAUmCsJa2W7a7aQQL9r5BQWR5HKbrzThD

  cleos git:(master)

  cleos git:(master) ./cleos create account eosio  eosio.ram EOS51SfezFZoS2kxGstYMAUmCsJa2W7a7aQQL9r5BQWR5HKbrzThD   

push_action111 testpush_transaction test

push_transaction tx_ref_block_num_or_id

push_transaction 1

push_transaction 2

push_transaction 3

test3 yanhuichao,

executed transaction: debb99ef8556b9680241daddca50a4825f3de69386024f3ba126c89ea8752f6d  200 bytes  167 us

#         eosio <= eosio::newaccount            {"creator":"eosio","name":"eosio.ram","owner":{"threshold":1,"keys":[{"key":"EOS51SfezFZoS2kxGstYMAU...

warning: transaction executed locally, but may not be confirmed by the network yet    ]

  cleos git:(master) ./cleos create key                                                                           

Private key: 5JaB1GF4XLVztCStENzuGWTnXRN1JJahVtKe8GkdytFYJ7mDgWo

Public key: EOS6DJwp2KUy8yhDQeHnjVh1yYcQ5qVFtNupARDTemFpzACGLU2Hc

  cleos git:(master) ./cleos wallet import --private-key 5JaB1GF4XLVztCStENzuGWTnXRN1JJahVtKe8GkdytFYJ7mDgWo     

imported private key for: EOS6DJwp2KUy8yhDQeHnjVh1yYcQ5qVFtNupARDTemFpzACGLU2Hc

  cleos git:(master) ./cleos create account eosio  eosio.ramfee EOS6DJwp2KUy8yhDQeHnjVh1yYcQ5qVFtNupARDTemFpzACGLU2Hc

push_action111 testpush_transaction test

push_transaction tx_ref_block_num_or_id

push_transaction 1

push_transaction 2

push_transaction 3

executed transaction: 49d56bdb008ec7445222d14b9e67d1e5d0c4cfd10f4a7c0e4938bca90d0de401  200 bytes  217 us

#         eosio <= eosio::newaccount            {"creator":"eosio","name":"eosio.ramfee","owner":{"threshold":1,"keys":[{"key":"EOS6DJwp2KUy8yhDQeHn...

warning: transaction executed locally, but may not be confirmed by the network yet    ]

  cleos git:(master) ./cleos create key                                                                              

Private key: 5KgF8MiZtf8DJat1BjYt8bUyMhk6j4v1Lo9L98uJj1gruYEs3Cv

Public key: EOS85RUn9RaWc3QnYkWuxhZfLhG4azyS7jpVzmWfrVffa69fNwy8L

  cleos git:(master) ./cleos wallet import --private-key 5KgF8MiZtf8DJat1BjYt8bUyMhk6j4v1Lo9L98uJj1gruYEs3Cv         

imported private key for: EOS85RUn9RaWc3QnYkWuxhZfLhG4azyS7jpVzmWfrVffa69fNwy8L

  cleos git:(master)

  cleos git:(master) ./cleos create account eosio  eosio.saving EOS85RUn9RaWc3QnYkWuxhZfLhG4azyS7jpVzmWfrVffa69fNwy8L

push_action111 testpush_transaction test

push_transaction tx_ref_block_num_or_id

push_transaction 1

push_transaction 2

push_transaction 3

test3 yanhuichao,

executed transaction: 04fa471a0c848169aacb6883be34ef885333f76ea71984a7c3f640800ed134da  200 bytes  178 us

#         eosio <= eosio::newaccount            {"creator":"eosio","name":"eosio.saving","owner":{"threshold":1,"keys":[{"key":"EOS85RUn9RaWc3QnYkWu...

warning: transaction executed locally, but may not be confirmed by the network yet    ]

  cleos git:(master) ./cleos create key                                                                              

Private key: 5KW1X5PYKY7wNb6ScqfYw9SQvyHoowLgcUPa1BjtSa9FKmTAz1p

Public key: EOS8kMynsjiPP4QYecSPqKBAkrG4XY7pzXa2VfRkr1v1cLkxLkfoq

  cleos git:(master)

  cleos git:(master) ./cleos wallet import --private-key 5KW1X5PYKY7wNb6ScqfYw9SQvyHoowLgcUPa1BjtSa9FKmTAz1p         

imported private key for: EOS8kMynsjiPP4QYecSPqKBAkrG4XY7pzXa2VfRkr1v1cLkxLkfoq

  cleos git:(master)

  cleos git:(master)

  cleos git:(master) ./cleos create account eosio  eosio.stake  EOS8kMynsjiPP4QYecSPqKBAkrG4XY7pzXa2VfRkr1v1cLkxLkfoq

push_action111 testpush_transaction test

push_transaction tx_ref_block_num_or_id

push_transaction 1

push_transaction 2

push_transaction 3

test3 yanhuichao,

executed transaction: 173d89698c2c6e45061e9b3ca3c629a1922842684b8fd23d68fa165050ba070f  200 bytes  165 us

#         eosio <= eosio::newaccount            {"creator":"eosio","name":"eosio.stake","owner":{"threshold":1,"keys":[{"key":"EOS8kMynsjiPP4QYecSPq...

warning: transaction executed locally, but may not be confirmed by the network yet    ]

  cleos git:(master)

  cleos git:(master)

  cleos git:(master) ./cleos create key                                                                              

Private key: 5JNSvgta9aTFbSGqWRCwiJFSKuy33XkmGGADoHgDgfmhtvvXLUE

Public key: EOS7b9Zg7t3c288hLomYwWhdbkE4HoTLy1xmdeGn6ktzEMuwtVbma

  cleos git:(master)

  cleos git:(master) ./cleos wallet import --private-key 5JNSvgta9aTFbSGqWRCwiJFSKuy33XkmGGADoHgDgfmhtvvXLUE         

yanhuichao stakecpu :

yanhuichao stakecpu :

imported private key for: EOS7b9Zg7t3c288hLomYwWhdbkE4HoTLy1xmdeGn6ktzEMuwtVbma

  cleos git:(master)

  cleos git:(master) ./cleos create account eosio  eosio.vpay  EOS7b9Zg7t3c288hLomYwWhdbkE4HoTLy1xmdeGn6ktzEMuwtVbma

push_action111 testpush_transaction test

push_transaction tx_ref_block_num_or_id

push_transaction 1

push_transaction 2

push_transaction 3

test3 yanhuichao,

executed transaction: 612ef77478afc74dad9337e317a223ec82e94e9e20d2eef8176f632859411007  200 bytes  170 us

#         eosio <= eosio::newaccount            {"creator":"eosio","name":"eosio.vpay","owner":{"threshold":1,"keys":[{"key":"EOS7b9Zg7t3c288hLomYwW...

warning: transaction executed locally, but may not be confirmed by the network yet    ]

  cleos git:(master) ./cleos set contract eosio.msig  /Users/yanhuichao/work/eos/build/contracts/eosio.msig

Reading WAST/WASM from /Users/yanhuichao/work/eos/build/contracts/eosio.msig/eosio.msig.wasm...

Using already assembled WASM...

Publishing contract...

push_action111 testpush_transaction test

push_transaction tx_ref_block_num_or_id

push_transaction 1

push_transaction 2

push_transaction 3

test3 yanhuichao,

executed transaction: 18f3876f5a9c63404a73881f57078c5f007d5919f29959bc3f1af29364d4c1ae  8864 bytes  1456 us

#         eosio <= eosio::setcode               {"account":"eosio.msig","vmtype":0,"vmversion":0,"code":"0061736d010000000198011760017f0060047f7e7e7...

#         eosio <= eosio::setabi                {"account":"eosio.msig","abi":"0e656f73696f3a3a6162692f312e30030c6163636f756e745f6e616d65046e616d650...

warning: transaction executed locally, but may not be confirmed by the network yet    ]

  cleos git:(master) ./cleos push action eosio.token create '[ "eosio", "10000000000.0000 SYS" ]' -p eosio.token

push_action111 testpush_transaction test

push_transaction tx_ref_block_num_or_id

push_transaction 1

push_transaction 2

push_transaction 3

test3 yanhuichao,

executed transaction: 8bfae9c16393516ce119801b04ba9e608eafcb4a451c202f9f07b4695ea39b36  120 bytes  4183 us

#   eosio.token <= eosio.token::create          {"issuer":"eosio","maximum_supply":"10000000000.0000 SYS"}

warning: transaction executed locally, but may not be confirmed by the network yet    ]

  cleos git:(master) ./cleos push action eosio.token issue '[ "eosio", "1000000000.0000 SYS", "memo" ]' -p eosio

push_action111 testpush_transaction test

push_transaction tx_ref_block_num_or_id

push_transaction 1

push_transaction 2

push_transaction 3

test3 yanhuichao,

executed transaction: 56d353f0aeb69c994984011085f750ae907851feeee2194b9d2f8b806098782d  128 bytes  2174 us

#   eosio.token <= eosio.token::issue           {"to":"eosio","quantity":"1000000000.0000 SYS","memo":"memo"}

warning: transaction executed locally, but may not be confirmed by the network yet    ]

  cleos git:(master) ./cleos set contract eosio /Users/yanhuichao/work/eos/build/contracts/eosio.system

Reading WAST/WASM from /Users/yanhuichao/work/eos/build/contracts/eosio.system/eosio.system.wasm...

Using already assembled WASM...

Publishing contract...

push_action111 testpush_transaction test

push_transaction tx_ref_block_num_or_id

push_transaction 1

push_transaction 2

push_transaction 3

Error 3080006: Transaction took too long

  cleos git:(master) ./cleos set contract eosio /Users/yanhuichao/work/eos/build/contracts/eosio.system

yanhuichao stakecpu :

yanhuichao stakecpu :

Reading WAST/WASM from /Users/yanhuichao/work/eos/build/contracts/eosio.system/eosio.system.wasm...

Using already assembled WASM...

Publishing contract...

push_action111 testpush_transaction test

push_transaction tx_ref_block_num_or_id

push_transaction 1

push_transaction 2

push_transaction 3

test3 yanhuichao,

executed transaction: 9fa0c7f4609c118be61d51431310ada56579d01a90755d496f54974ce6654256  44952 bytes  6749 us

#         eosio <= eosio::setcode               {"account":"eosio","vmtype":0,"vmversion":0,"code":"0061736d0100000001d5023360037f7e7e0060017f006002...

#         eosio <= eosio::setabi                {"account":"eosio","abi":"0e656f73696f3a3a6162692f312e30050c6163636f756e745f6e616d65046e616d650f7065...

warning: transaction executed locally, but may not be confirmed by the network yet    ]

  cleos git:(master) ./cleos push action eosio setpriv '["eosio.msig", 1]' -p eosio@active

push_action111 testpush_transaction test

push_transaction tx_ref_block_num_or_id

push_transaction 1

push_transaction 2

push_transaction 3

test3 yanhuichao,

executed transaction: 5014108aa862c6c29ebba9fb4113c52374c6cea15fcd5fd0372285debeb4445f  104 bytes  712 us

#         eosio <= eosio::setpriv               {"account":"eosio.msig","is_priv":1}

warning: transaction executed locally, but may not be confirmed by the network yet    ]

  cleos git:(master) ./cleos  create  key

yanhuichao stakecpu :

yanhuichao stakecpu :

Private key: 5J7eRYYo6LiFqmbvkQZR5npaQGRyihcnSxgRTdh1RH6r8FiR2LA

Public key: EOS66xxENMkzBjVHVatWtvgsVuaiq1WxNXXVkWiHaEgqP1dWRM462

  cleos git:(master)

  cleos git:(master)

  cleos git:(master) ./cleos wallet import --private-key  5J7eRYYo6LiFqmbvkQZR5npaQGRyihcnSxgRTdh1RH6r8FiR2LA

imported private key for: EOS66xxENMkzBjVHVatWtvgsVuaiq1WxNXXVkWiHaEgqP1dWRM462

  cleos git:(master)

  cleos git:(master)

  cleos git:(master) pgrep keosd

1148

  cleos git:(master) pkill keosd

  cleos git:(master)

  cleos git:(master) ./cleos wallet unlock

yanhuichao stakecpu :

yanhuichao stakecpu :

"/Users/yanhuichao/work/eos/build/programs/keosd/keosd" launched

password: Unlocked: default

  cleos git:(master)

  cleos git:(master)

  cleos git:(master) ./cleos system newaccount eosio --transfer accountnum11 EOS66xxENMkzBjVHVatWtvgsVuaiq1WxNXXVkWiHaEgqP1dWRM462  --stake-net "100000.0000 SYS" --stake-cpu "100000.0000 SYS"  --buy-ram  "1000.000 SYS"

yanhuichao111 stakecpu :1000000000

push_action111 testpush_transaction test

push_transaction tx_ref_block_num_or_id

push_transaction 1

push_transaction 2

push_transaction 3

test3 yanhuichao,

executed transaction: 0914b653cbe1d87c188d97357672c16b7c0991fc1211ec7cc499eeac5602db73  360 bytes  5062 us

#         eosio <= eosio::newaccount            {"creator":"eosio","name":"accountnum11","owner":{"threshold":1,"keys":[{"key":"EOS66xxENMkzBjVHVatW...

#         eosio <= eosio::buyram                {"payer":"eosio","receiver":"accountnum11","quant":"1000.0000 SYS"}

#   eosio.token <= eosio.token::transfer        {"from":"eosio","to":"eosio.ram","quantity":"995.0000 SYS","memo":"buy ram"}

#         eosio <= eosio.token::transfer        {"from":"eosio","to":"eosio.ram","quantity":"995.0000 SYS","memo":"buy ram"}

#     eosio.ram <= eosio.token::transfer        {"from":"eosio","to":"eosio.ram","quantity":"995.0000 SYS","memo":"buy ram"}

#   eosio.token <= eosio.token::transfer        {"from":"eosio","to":"eosio.ramfee","quantity":"5.0000 SYS","memo":"ram fee"}

#         eosio <= eosio.token::transfer        {"from":"eosio","to":"eosio.ramfee","quantity":"5.0000 SYS","memo":"ram fee"}

#  eosio.ramfee <= eosio.token::transfer        {"from":"eosio","to":"eosio.ramfee","quantity":"5.0000 SYS","memo":"ram fee"}

#         eosio <= eosio::delegatebw            {"from":"eosio","receiver":"accountnum11","stake_net_quantity":"100000.0000 SYS","stake_cpu_quantity...

#   eosio.token <= eosio.token::transfer        {"from":"eosio","to":"eosio.stake","quantity":"200000.0003 SYS","memo":"stake bandwidth"}

#         eosio <= eosio.token::transfer        {"from":"eosio","to":"eosio.stake","quantity":"200000.0003 SYS","memo":"stake bandwidth"}

#   eosio.stake <= eosio.token::transfer        {"from":"eosio","to":"eosio.stake","quantity":"200000.0003 SYS","memo":"stake bandwidth"}

warning: transaction executed locally, but may not be confirmed by the network yet    ]

  cleos git:(master) ./cleos get account  accountnum11

yanhuichao stakecpu :

yanhuichao stakecpu :

permissions:

     owner     1:    1 EOS66xxENMkzBjVHVatWtvgsVuaiq1WxNXXVkWiHaEgqP1dWRM462

        active     1:    1 EOS66xxENMkzBjVHVatWtvgsVuaiq1WxNXXVkWiHaEgqP1dWRM462

memory:

     quota:     65.14 MiB    used:     3.506 KiB

 

net bandwidth:

     staked:     100000.0000 SYS           (total stake delegated from account to self)

     delegated:       0.0000 SYS           (total staked delegated to account from others)

     used:                 0 bytes

     available:        4.514 TiB

     limit:            4.514 TiB

 

cpu bandwidth:

     staked:     100000.0000 SYS           (total stake delegated from account to self)

     delegated:       0.0000 SYS           (total staked delegated to account from others)

     used:                 0 us   

     available:        262.4 hr   

     limit:            262.4 hr   

 

cons bandwidth:

     delegated:       0.0003 SYS

producers:     <not voted>

  cleos git:(master) ./cleos  push action eosio.token transfer '{"from":"eosio","to":"accountnum11","quantity":"10.0000 SYS","memo":""}' -p eosio

push_action111 testpush_transaction test

push_transaction tx_ref_block_num_or_id

push_transaction 1

push_transaction 2

push_transaction 3

test3 yanhuichao,

executed transaction: d39054d999fd99c96cfb7bb9f790a7fbbe5959076af093ba8279d3d9b15058ec  128 bytes  568 us

#   eosio.token <= eosio.token::transfer        {"from":"eosio","to":"accountnum11","quantity":"10.0000 SYS","memo":""}

#         eosio <= eosio.token::transfer        {"from":"eosio","to":"accountnum11","quantity":"10.0000 SYS","memo":""}

#  accountnum11 <= eosio.token::transfer        {"from":"eosio","to":"accountnum11","quantity":"10.0000 SYS","memo":""}

warning: transaction executed locally, but may not be confirmed by the network yet    ]

  cleos git:(master) ./cleos get account  accountnum11                                                                                               

yanhuichao stakecpu :

yanhuichao stakecpu :

permissions:

     owner     1:    1 EOS66xxENMkzBjVHVatWtvgsVuaiq1WxNXXVkWiHaEgqP1dWRM462

        active     1:    1 EOS66xxENMkzBjVHVatWtvgsVuaiq1WxNXXVkWiHaEgqP1dWRM462

memory:

     quota:     65.14 MiB    used:     3.506 KiB

 

net bandwidth:

     staked:     100000.0000 SYS           (total stake delegated from account to self)

     delegated:       0.0000 SYS           (total staked delegated to account from others)

     used:                 0 bytes

     available:         5.34 TiB

     limit:             5.34 TiB

 

cpu bandwidth:

     staked:     100000.0000 SYS           (total stake delegated from account to self)

     delegated:       0.0000 SYS           (total staked delegated to account from others)

     used:                 0 us   

     available:        310.5 hr   

     limit:            310.5 hr   

 

cons bandwidth:

     delegated:       0.0003 SYS

SYS balances:

     liquid:           10.0000 SYS

     staked:       200000.0000 SYS

     unstaking:         0.0000 SYS

     total:        200010.0000 SYS

 

producers:     <not voted>

 

  cleos git:(master)

 

Python脚本创建系统账户及合约

#! /usr/bin/python
import os
import time
import sys
buildpath=sys.argv[1]
cleos=buildpath+"/programs/cleos/cleos"
contractPath=buildpath+"/contract/"
#Keys=($($cleos create key | awk -F: '{print $2}'))
#PrivKey=${Keys[0]}
#PubKey=${Keys[1]}
PubKey="UTR6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV"
PrivKey="5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3"
print("pub:"+PubKey)
print("pri:"+PrivKey)
### create default wallet
#WalletPwd=$($cleos wallet create | tail -n 1 | sed 's/\"//g')
#if test -z $WalletPwd
#then
#   echo "Wallet password is empty, quit."
#   exit 0
#fi
# echo "Password for default, please save it safely : " $WalletPwd
# WalletPwd=PW5JDL5AjogThU1avkC3cxE7xThEmeeya2bmvrZqJxYCcGq2UWY6B
# $cleos wallet unlock --password $WalletPwd
oscmd=cleos+" wallet import "+ PrivKey
os.system(oscmd)
time.sleep(1)
usrList=["user","tester","exchange","eosio.names","eosio.ram"," eosio.ramfee","eosio.bpay","eosio.msig","eosio.upay","eosio.saving","eosio.stake","eosio.token","eosio.vpay"]
for username in usrList:
    oscmd=cleos+" create account eosio "+username+ " "+PubKey+" "+PubKey
    print (oscmd)
    os.system(oscmd)


oscmd=cleos+" set contract eosio.token "+buildpath+"/contracts/eosio.token -p eosio.token "
os.system(oscmd)
time.sleep(1)
oscmd=cleos+" push action eosio.token create \'[ \"eosio\", \"1000000000.0000 SYS\", 0, 0, 0]\' -p eosio.token"
os.system(oscmd)
time.sleep(1)
oscmd=cleos+" push action eosio.token issue \'[ \"eosio\", \"300000000.0000 SYS\", \"memo\"]\' -p eosio"
os.system(oscmd)
time.sleep(1)
oscmd=cleos+" set contract eosio "+buildpath+"/contracts/eosio.system -p eosio"
os.system(oscmd)
time.sleep(1)
oscmd=cleos+" set contract eosio "+buildpath+"/contracts/eosio.system -p eosio "
os.system(oscmd)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值