Skip to content

Instantly share code, notes, and snippets.

@assafmo
Last active April 11, 2022 17:45
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 assafmo/aff480497e28563121632dda84bdd952 to your computer and use it in GitHub Desktop.
Save assafmo/aff480497e28563121632dda84bdd952 to your computer and use it in GitHub Desktop.
Launching a new local testnet
SGX_MODE=SW SCRT_SGX_STORAGE="$(pwd)/.sgx_secrets" LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$(pwd)" RUST_BACKTRACE=1 ./secretd --home "$(pwd)/.secretd" tx gov submit-proposal software-upgrade v1.3 --upgrade-height 28100 --title hi --description bye --deposit 10000000uscrt -y --from a
SGX_MODE=SW SCRT_SGX_STORAGE="$(pwd)/.sgx_secrets" LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$(pwd)" RUST_BACKTRACE=1 ./secretd --home "$(pwd)/.secretd" tx gov vote 1 yes --from a -y
./secretd --home "$(pwd)/.secretd" config keyring-backend test
./secretd --home "$(pwd)/.secretd" config chain-id assaf-1
./secretd --home "$(pwd)/.secretd" config output json
./secretd --home "$(pwd)/.secretd" init banana --chain-id assaf-1
perl -i -pe 's/"stake"/"uscrt"/g' .secretd/config/genesis.json
echo "cost member exercise evoke isolate gift cattle move bundle assume spell face balance lesson resemble orange bench surge now unhappy potato dress number acid" | ./secretd --home "$(pwd)/.secretd" keys add a --recover --keyring-backend test
./secretd --home "$(pwd)/.secretd" add-genesis-account "$(./secretd --home "$(pwd)/.secretd" keys show -a --keyring-backend test a)" 1000000000000uscrt
./secretd --home "$(pwd)/.secretd" gentx a 1000000uscrt --chain-id assaf-1 --keyring-backend test
./secretd --home "$(pwd)/.secretd" collect-gentxs
./secretd --home "$(pwd)/.secretd" validate-genesis
mkdir -p ./.sgx_secrets
SGX_MODE=SW SCRT_SGX_STORAGE="$(pwd)/.sgx_secrets" ./secretd --home "$(pwd)/.secretd" init-bootstrap node-master-cert.der io-master-cert.der
./secretd --home "$(pwd)/.secretd" validate-genesis
SGX_MODE=SW SCRT_SGX_STORAGE="$(pwd)/.sgx_secrets" LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$(pwd)" RUST_BACKTRACE=1 ./secretd --home "$(pwd)/.secretd" start --bootstrap
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment