Skip to content

Instantly share code, notes, and snippets.

@jchung00
Created August 8, 2019 18:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jchung00/1cd44d8f1e9676b42a62d9addbc62809 to your computer and use it in GitHub Desktop.
Save jchung00/1cd44d8f1e9676b42a62d9addbc62809 to your computer and use it in GitHub Desktop.

Launch Sequence

Setup

curl -X POST http://127.0.0.1:18888/v1/producer/schedule_protocol_feature_activations -d '{"protocol_features_to_activate": ["0ec7e080177b2c02b278d5088611686b49d739925a92d9bfcacd7fc6b74053bd"]}' | jq

./testeos.sh set contract eosio ~/wax-system-contracts/contracts/eosio.bios/bin/eosio.bios/

./testeos.sh push action eosio setprods '{"schedule":[{"producer_name":"eosio","block_signing_key":"EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV"}]}' -p eosio

./testeos.sh push action eosio activate '["f0af56d2c5a48d60a4a5b5c903edfb7db3a736a94ed589d0b797df33ff9d3e1d"]' -p eosio

./testeos.sh push action eosio activate '["2652f5f96006294109b3dd0bbde63693f55324af452b799ee137a81a905eed25"]' -p eosio

./testeos.sh push action eosio activate '["8ba52fe7a3956c5cd3a656a3174b931d3bb2abb45578befc59f283ecd816a405"]' -p eosio

./testeos.sh push action eosio activate '["ad9e3d8f650687709fd68f4b90b41f7d825a365b02c23a636cef88ac2ac00c43"]' -p eosio

./testeos.sh push action eosio activate '["68dcaa34c0517d19666e6b33add67351d8c5f69e999ca1e37931bc410a297428"]' -p eosio

./testeos.sh push action eosio activate '["e0fb64b1085cc5538970158d05a009c24e276fb94e1a0bf6a528b48fbc4ff526"]' -p eosio

./testeos.sh push action eosio activate '["ef43112c6543b88db2283a2e077278c315ae2c84719a8b25f25cc88565fbea99"]' -p eosio

./testeos.sh push action eosio activate '["4a90c00d55454dc5b059055ca213579c6ea856967712a56017487886a4d4cc0f"]' -p eosio

./testeos.sh push action eosio activate '["1a99a59d87e06e09ec5b028a9cbb7749b4a5ad8819004365d02dc4379a8b7241"]' -p eosio

./testeos.sh push action eosio activate '["4e7bf348da00a945489b2a681749eb56f5de00b900014e137ddae39f48f69d67"]' -p eosio

Accounts

./testeos.sh create account eosio eosio.bpay EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV

./testeos.sh create account eosio eosio.msig EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV

./testeos.sh create account eosio eosio.ram EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV

./testeos.sh create account eosio eosio.names EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV

./testeos.sh create account eosio eosio.vpay EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV

./testeos.sh create account eosio eosio.token EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV

./testeos.sh create account eosio eosio.stake EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV

./testeos.sh create account eosio eosio.saving EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV

./testeos.sh create account eosio eosio.ramfee EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV

./testeos.sh create account eosio eosio.rex EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV

./testeos.sh create account eosio eosio.voters EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV

./testeos.sh create account eosio genesis.wax EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV

Set token and msig contracts

./testeos.sh set contract eosio.token ~/wax-system-contracts/contracts/eosio.token/bin/eosio.token/

./testeos.sh set contract eosio.msig ~/wax-system-contracts/contracts/eosio.msig/bin/eosio.msig/

Create and Issue Tokens

./testeos.sh push action eosio.token create '["eosio", "10000000000.00000000 WAX"]' -p eosio.token

./testeos.sh push action eosio.token issue '["eosio",  "1000000000.00000000 WAX", "init"]' -p eosio

Set system contract

./testeos.sh set contract eosio ~/wax-system-contracts/contracts/eosio.system/bin/eosio.system/ -x 3000

./testeos.sh push action eosio setpriv '["eosio.msig",1]' -p eosio

./testeos.sh push action eosio init '[0, "8,WAX"]' -p eosio


Test Account Setup and Vote to Activate Network
./testeos.sh system newaccount eosio jaejaejaejae EOS8LeFLFvJRywYfPyV5cVECvEZiVDYfBY45VFcYiS6yA7AvFyKjZ --stake-net "100.00000000 WAX" --stake-cpu "100.00000000 WAX" --buy-ram-kbytes 300 --transfer

./testeos.sh transfer eosio jaejaejaejae "200000000.00000000 WAX"

./testeos.sh system delegatebw jaejaejaejae jaejaejaejae "50000000.00000000 WAX" "110000000.00000000 WAX"

./testeos.sh system regproducer eosio EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV "https://hkeos.com" "343"

./testeos.sh system voteproducer prods jaejaejaejae eosio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment