Skip to content

Commit fc3dc61

Browse files
committed
fix chain bios test scripts, yx.code => sys.code
1 parent 70f92f2 commit fc3dc61

5 files changed

+17
-6
lines changed

contracts/yosemite.card.ytoken/yosemite_card_ytoken_sample_transactions.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ $INFRA_CLI push action sys.identity setidinfo "{\"account\":\"ycarduseraaa\", \"
6565
# ycarduseraaa issues credit tokens and deposits to ycard service
6666
$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
6767
$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
68-
$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
68+
$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
6969
$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
7070

7171
# offering credit limit to user account ycarduseraaa (issuing credit card)

contracts/yosemite.card.ytoken/yosemite_card_ytoken_sample_transactions_testnet.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ $INFRA_CLI_TESTNET push action sys.identity setidinfo "{\"account\":\"ycardusera
6868
# ycarduseraaa issues credit tokens and deposits to ycard service
6969
$INFRA_CLI_TESTNET 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
7070
$INFRA_CLI_TESTNET 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
71-
$INFRA_CLI_TESTNET 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
71+
$INFRA_CLI_TESTNET 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
7272
$INFRA_CLI_TESTNET 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
7373

7474
# offering credit limit to user account ycarduseraaa (issuing credit card)

infrablockchain_bios/reset_std_token_infrablockchain_testnet_on_server_side.sh

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#!/usr/bin/env bash
22
# chmod +x ./reset_std_token_infrablockchain_testnet_on_server_side.sh
33

4+
setopt shwordsplit
5+
46
INFRA_NODE_BIN_NAME=infra-node
57
INFRA_CLI_BIN_NAME=infra-cli
68
INFRA_KEYSTORE_BIN_NAME=infra-keystore
@@ -112,7 +114,7 @@ tail -n 300 $INFRA_KEYSTORE_LOG_FILE
112114
#Creating wallet: default
113115
#Save password to use in the future to unlock this wallet.
114116
#Without password imported keys will not be retrievable.
115-
#"PW5Jrpn9S5ygoA9r2bv47rv9gH2jVjntdyHWKL4QdoKVFRz6U17EM"
117+
#"PW5KdHLJYdrhiARnhK8b6JrSuxuZnDYQYBTEh9RMyBpBQo9QPfEdE"
116118
$INFRA_CLI wallet open
117119
$INFRA_CLI wallet unlock --password $INFRA_KEYSTORE_WALLET_PASSWORD
118120

@@ -166,7 +168,7 @@ $INFRA_CLI create account infrasys systoken.b YOS61njg9Zs9oQmAmwLnrcVBrniWKshKAh
166168
{ print_section_title "Install InfraBlockchain System Contract"; } 2>/dev/null
167169

168170
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
170172
sleep 2
171173

172174

@@ -377,6 +379,11 @@ sleep 1
377379

378380
{ print_section_title "Resign System Contract Accounts delegating authority to \"infrasys\""; } 2>/dev/null
379381

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+
380387
$INFRA_CLI get account sys.identity
381388
$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
382389
$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
620627
## useraccounta issues credit tokens and deposits to ycard service
621628
$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
622629
$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
624631
$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
625632

626633
$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\", \"
736743
# ycarduseraaa issues credit tokens and deposits to ycard service
737744
$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
738745
$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
740747
$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
741748

742749
# offering credit limit to user account ycarduseraaa (issuing credit card)

infrablockchain_bios/start_infrablockchain_testnet_node.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
#YSMT_TESTNET_NODE_USER_HOST=ubuntu@ec2-13-124-23-23.ap-northeast-2.compute.amazonaws.com
66
#scp -i ${YSMT_TESTNET_SSH_KEY_FILE} ./start_infrablockchain_testnet_node.sh ${YSMT_TESTNET_NODE_USER_HOST}:/mnt/infrablockchain_testnet_mgmt/start_infrablockchain_testnet_node.sh
77

8+
setopt shwordsplit
9+
810
INFRA_NODE_BIN_NAME=infra-node
911
INFRA_CLI_BIN_NAME=infra-cli
1012
INFRA_KEYSTORE_BIN_NAME=infra-keystore

infrablockchain_bios/stop_infrablockchain_testnet_node.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
#YSMT_TESTNET_NODE_USER_HOST=ubuntu@ec2-13-124-23-23.ap-northeast-2.compute.amazonaws.com
66
#scp -i ${YSMT_TESTNET_SSH_KEY_FILE} ./stop_infrablockchain_testnet_node.sh ${YSMT_TESTNET_NODE_USER_HOST}:/mnt/infrablockchain_testnet_mgmt/stop_infrablockchain_testnet_node.sh
77

8+
setopt shwordsplit
9+
810
INFRA_NODE_BIN_NAME=infra-node
911
INFRA_CLI_BIN_NAME=infra-cli
1012
INFRA_KEYSTORE_BIN_NAME=infra-keystore

0 commit comments

Comments
 (0)