Skip to content

Commit

Permalink
Use variable names for accounts
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljyeates committed Nov 6, 2018
1 parent a7276da commit 3983245
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
10 changes: 8 additions & 2 deletions eosdac-testnet/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
10 changes: 7 additions & 3 deletions eosdac-testnet/populate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 3983245

Please sign in to comment.