|
1 | 1 | #!/usr/bin/env bash
|
2 | 2 | # chmod +x ./reset_std_token_infrablockchain_testnet_on_server_side.sh
|
3 | 3 |
|
| 4 | +setopt shwordsplit |
| 5 | + |
4 | 6 | INFRA_NODE_BIN_NAME=infra-node
|
5 | 7 | INFRA_CLI_BIN_NAME=infra-cli
|
6 | 8 | INFRA_KEYSTORE_BIN_NAME=infra-keystore
|
@@ -112,7 +114,7 @@ tail -n 300 $INFRA_KEYSTORE_LOG_FILE
|
112 | 114 | #Creating wallet: default
|
113 | 115 | #Save password to use in the future to unlock this wallet.
|
114 | 116 | #Without password imported keys will not be retrievable.
|
115 |
| -#"PW5Jrpn9S5ygoA9r2bv47rv9gH2jVjntdyHWKL4QdoKVFRz6U17EM" |
| 117 | +#"PW5KdHLJYdrhiARnhK8b6JrSuxuZnDYQYBTEh9RMyBpBQo9QPfEdE" |
116 | 118 | $INFRA_CLI wallet open
|
117 | 119 | $INFRA_CLI wallet unlock --password $INFRA_KEYSTORE_WALLET_PASSWORD
|
118 | 120 |
|
@@ -166,7 +168,7 @@ $INFRA_CLI create account infrasys systoken.b YOS61njg9Zs9oQmAmwLnrcVBrniWKshKAh
|
166 | 168 | { print_section_title "Install InfraBlockchain System Contract"; } 2>/dev/null
|
167 | 169 |
|
168 | 170 | sleep 2
|
169 |
| -$INFRA_CLI set contract infrasys $INFRABLOCKCHAIN_CONTRACTS_DIR/yx.system/ -p infrasys@active --txfee-payer infrasys |
| 171 | +$INFRA_CLI set contract infrasys $INFRABLOCKCHAIN_CONTRACTS_DIR/infrasys/ -p infrasys@active --txfee-payer infrasys |
170 | 172 | sleep 2
|
171 | 173 |
|
172 | 174 |
|
@@ -377,6 +379,11 @@ sleep 1
|
377 | 379 |
|
378 | 380 | { print_section_title "Resign System Contract Accounts delegating authority to \"infrasys\""; } 2>/dev/null
|
379 | 381 |
|
| 382 | +$INFRA_CLI get account sys.tokenabi |
| 383 | +$INFRA_CLI push action infrasys updateauth '{"account":"sys.tokenabi","permission":"owner","parent":"","auth":{"threshold":1,"keys":[],"waits":[],"accounts":[{"weight":1,"permission":{"actor":"infrasys","permission":"active"}}]}}' -p sys.tokenabi@owner --txfee-payer infrasys |
| 384 | +$INFRA_CLI push action infrasys updateauth '{"account":"sys.tokenabi","permission":"active","parent":"owner","auth":{"threshold":1,"keys":[],"waits":[],"accounts":[{"weight":1,"permission":{"actor":"infrasys","permission":"active"}}]}}' -p sys.tokenabi@active --txfee-payer infrasys |
| 385 | +$INFRA_CLI get account sys.tokenabi |
| 386 | + |
380 | 387 | $INFRA_CLI get account sys.identity
|
381 | 388 | $INFRA_CLI push action infrasys updateauth '{"account":"sys.identity","permission":"owner","parent":"","auth":{"threshold":1,"keys":[],"waits":[],"accounts":[{"weight":1,"permission":{"actor":"infrasys","permission":"active"}}]}}' -p sys.identity@owner --txfee-payer infrasys
|
382 | 389 | $INFRA_CLI push action infrasys updateauth '{"account":"sys.identity","permission":"active","parent":"owner","auth":{"threshold":1,"keys":[],"waits":[],"accounts":[{"weight":1,"permission":{"actor":"infrasys","permission":"active"}}]}}' -p sys.identity@active --txfee-payer infrasys
|
@@ -620,7 +627,7 @@ sleep 2
|
620 | 627 | ## useraccounta issues credit tokens and deposits to ycard service
|
621 | 628 | $INFRA_CLI push action infrasys updateauth '{"account":"useraccounta","permission":"creditissue","parent":"active","auth":{"threshold":1,"keys":[],"waits":[],"accounts":[{"weight":1,"permission":{"actor":"ycard.cusd.a","permission":"active"}}]}}' -p useraccounta@active --txfee-payer ycard.cusd.a -v producer.c
|
622 | 629 | $INFRA_CLI push action infrasys linkauth '{"account":"useraccounta","code":"ycard.cusd.a","type":"creditissue","requirement":"creditissue"}' -p useraccounta@active --txfee-payer ycard.cusd.a -v producer.c
|
623 |
| -$INFRA_CLI push action infrasys updateauth '{"account":"useraccounta","permission":"codetransfer","parent":"active","auth":{"threshold":1,"keys":[],"waits":[],"accounts":[{"weight":1,"permission":{"actor":"ycard.cusd.a","permission":"yx.code"}}]}}' -p useraccounta@active --txfee-payer ycard.cusd.a -v producer.c |
| 630 | +$INFRA_CLI push action infrasys updateauth '{"account":"useraccounta","permission":"codetransfer","parent":"active","auth":{"threshold":1,"keys":[],"waits":[],"accounts":[{"weight":1,"permission":{"actor":"ycard.cusd.a","permission":"sys.code"}}]}}' -p useraccounta@active --txfee-payer ycard.cusd.a -v producer.c |
624 | 631 | $INFRA_CLI push action infrasys linkauth '{"account":"useraccounta","code":"ycard.cusd.a","type":"transfer","requirement":"codetransfer"}' -p useraccounta@active --txfee-payer ycard.cusd.a -v producer.c
|
625 | 632 |
|
626 | 633 | $INFRA_CLI push action ycard.cusd.a creditissue '{"issuer":"useraccounta","to":"ycard.cusd.a","qty":"500.0000 CUSD","tag":"issue credit token by user, and deposit to credit service"}' -p useraccounta@creditissue --txfee-payer ycard.cusd.a -v producer.c
|
@@ -736,7 +743,7 @@ $INFRA_CLI push action sys.identity setidinfo "{\"account\":\"ycarduseraaa\", \"
|
736 | 743 | # ycarduseraaa issues credit tokens and deposits to ycard service
|
737 | 744 | $INFRA_CLI push action infrasys updateauth '{"account":"ycarduseraaa","permission":"creditissue","parent":"active","auth":{"threshold":1,"keys":[],"waits":[],"accounts":[{"weight":1,"permission":{"actor":"ycard.usd.yt","permission":"active"}}]}}' -p ycarduseraaa@active --txfee-payer ycard.usd.yt -v producer.c
|
738 | 745 | $INFRA_CLI push action infrasys linkauth '{"account":"ycarduseraaa","code":"ycard.usd.yt","type":"creditissue","requirement":"creditissue"}' -p ycarduseraaa@active --txfee-payer ycard.usd.yt -v producer.c
|
739 |
| -$INFRA_CLI push action infrasys updateauth '{"account":"ycarduseraaa","permission":"codecrdtxfer","parent":"active","auth":{"threshold":1,"keys":[],"waits":[],"accounts":[{"weight":1,"permission":{"actor":"ycard.usd.yt","permission":"yx.code"}}]}}' -p ycarduseraaa@active --txfee-payer ycard.usd.yt -v producer.c |
| 746 | +$INFRA_CLI push action infrasys updateauth '{"account":"ycarduseraaa","permission":"codecrdtxfer","parent":"active","auth":{"threshold":1,"keys":[],"waits":[],"accounts":[{"weight":1,"permission":{"actor":"ycard.usd.yt","permission":"sys.code"}}]}}' -p ycarduseraaa@active --txfee-payer ycard.usd.yt -v producer.c |
740 | 747 | $INFRA_CLI push action infrasys linkauth '{"account":"ycarduseraaa","code":"ycard.usd.yt","type":"credittxfer","requirement":"codecrdtxfer"}' -p ycarduseraaa@active --txfee-payer ycard.usd.yt -v producer.c
|
741 | 748 |
|
742 | 749 | # offering credit limit to user account ycarduseraaa (issuing credit card)
|
|
0 commit comments