From 398324597eec85d37037896ead2da423cba71bff Mon Sep 17 00:00:00 2001 From: Michael Yeates Date: Tue, 6 Nov 2018 20:34:12 +0000 Subject: [PATCH] Use variable names for accounts --- eosdac-testnet/build.sh | 10 ++++++++-- eosdac-testnet/populate.sh | 10 +++++++--- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/eosdac-testnet/build.sh b/eosdac-testnet/build.sh index ba008b5..2b0752f 100755 --- a/eosdac-testnet/build.sh +++ b/eosdac-testnet/build.sh @@ -18,8 +18,14 @@ git pull cd eosdactoken/ $EOSIOCPP -o eosdactoken.wasm eosdactoken.cpp +cd $DACCONTRACTS/dacservice/ +git pull +$EOSIOCPP -DTRANSFER_DELAY=60 -o dacservice.wasm dacservice.cpp + cd $PWD -run_cmd "set contract "$dactokens" "$DACCONTRACTS/eosdactoken/eosdactoken" -p eosdactokens" +run_cmd "set contract "$dactokens" "$DACCONTRACTS/eosdactoken/eosdactoken" -p $dactokens" + +run_cmd "set contract "$daccustodian" "$DACCONTRACTS/daccustodian" -p $daccustodian" -run_cmd "set contract "$daccustodian" "$DACCONTRACTS/daccustodian" -p daccustodian" +run_cmd "set contract "$dacservice" "$DACCONTRACTS/dacservice" -p $dacservice" diff --git a/eosdac-testnet/populate.sh b/eosdac-testnet/populate.sh index 68a0068..60bda57 100755 --- a/eosdac-testnet/populate.sh +++ b/eosdac-testnet/populate.sh @@ -13,7 +13,7 @@ echo -e "\n\n----------------- POPULATING DAC -------------------\n\n"; -dacaccounts="$dacextra $dacowner $dactokens $dacauthority $daccustodian" +dacaccounts="$dacextra $dacowner $dactokens $dacauthority $daccustodian $dacservice" for act in $dacaccounts do @@ -36,16 +36,20 @@ rm -f token_config.json cleos --wallet-url $WALLET_URL -u $API_URL push action $dactokens create '["eosdactokens", "10000000000.0000 EOSDAC", 0]' -p $dactokens cleos --wallet-url $WALLET_URL -u $API_URL push action $dactokens issue '["eosdactokens", "1000000000.0000 EOSDAC", "Issue"]' -p $dactokens -run_cmd "set contract $daccustodian "$DACCONTRACTS/daccustodian" -p daccustodian" +run_cmd "set contract $daccustodian "$DACCONTRACTS/daccustodian" -p $daccustodian" run_cmd "get code $daccustodian" run_cmd "get table $daccustodian daccustodian config" -run_cmd "push action $daccustodian updateconfig dac_config.json -p $dacauthority" +run_cmd "push action $daccustodian updateconfig dac_config.json -p $daccustodian" run_cmd "get table $daccustodian $daccustodian config" +run_cmd "set contract $dacservice "$DACCONTRACTS/dacservice" -p $dacservice" +run_cmd "get code $dacservice" + + # Developer accounts create_devs() { create_act evilmikehere EOS54NkNpEt9aotyBvEZVfj54NuFAebaDLnyg2GtJ6pyvBoxxg9Aw