Skip to content

Commit a99a07f

Browse files
committed
[Node] Support new commontoken for DTO feature
1 parent 432b2ae commit a99a07f

2 files changed

Lines changed: 25 additions & 25 deletions

File tree

service/node/config/commontoken.abi

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,78 +4,78 @@
44
"name": "CreateTokenReq",
55
"base": "",
66
"fields": {
7-
"tokenType": "bytes",
7+
"tokenType": "string",
88
"maxSupply": "uint64"
99
}
1010
},
1111
{
1212
"name": "IssueTokenReq",
1313
"base": "",
1414
"fields": {
15-
"tokenType": "bytes",
16-
"targetAccount": "bytes",
15+
"tokenType": "string",
16+
"targetAccount": "string",
1717
"issueAmount": "uint64"
1818
}
1919
},
2020
{
2121
"name": "TransferReq",
2222
"base": "",
2323
"fields": {
24-
"from": "bytes",
25-
"to": "bytes",
26-
"tokenType": "bytes",
24+
"from": "string",
25+
"to": "string",
26+
"tokenType": "string",
2727
"value": "uint64"
2828
}
2929
},
3030
{
3131
"name": "TransferCredit",
3232
"base": "",
3333
"fields": {
34-
"name": "bytes",
35-
"spender": "bytes",
36-
"tokenType": "bytes",
34+
"name": "string",
35+
"spender": "string",
36+
"tokenType": "string",
3737
"value" : "uint64"
3838
}
3939
},
4040
{
4141
"name": "CancelCredit",
4242
"base": "",
4343
"fields": {
44-
"name": "bytes",
45-
"spender": "bytes",
46-
"tokenType": "bytes"
44+
"name": "string",
45+
"spender": "string",
46+
"tokenType": "string"
4747
}
4848
},
4949
{
5050
"name": "TransferFromParam4XTO",
5151
"base": "",
5252
"fields": {
53-
"from": "bytes",
54-
"to": "bytes",
55-
"tokenType": "bytes",
53+
"from": "string",
54+
"to": "string",
55+
"tokenType": "string",
5656
"value": "uint64"
5757
}
5858
}
5959
],
6060
"actions": [{
61-
"name": "create",
61+
"action_name": "create",
6262
"type": "CreateTokenReq"
6363
},
6464
{
65-
"name": "issue",
65+
"action_name": "issue",
6666
"type": "IssueTokenReq"
6767
},
6868
{
69-
"name": "transfer",
69+
"action_name": "transfer",
7070
"type": "TransferReq"
7171
},{
72-
"name": "grandcredit",
72+
"action_name": "grandcredit",
7373
"type": "TransferCredit"
7474
},{
75-
"name": "deletecredit",
75+
"action_name": "deletecredit",
7676
"type": "CancelCredit"
7777
},{
78-
"name": "from",
78+
"action_name": "from",
7979
"type": "TransferFromParam4XTO"
8080
}
8181
],

service/node/scripts/startup.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -345,13 +345,13 @@ function startcontract()
345345
cp -rf ~/mnt/bottos/src/github.com/bottos-project/magiccube/service/node/config/*.abi $CORE_PROC_FILE_DIR/contract/ 2>/dev/null
346346

347347
echo
348-
echo -e "${BLUE}######## Deploy Contract commontoken ########${NC}"
348+
echo -e "${BLUE}######## Deploy Contract bottostoken ########${NC}"
349349
echo
350-
${CORE_PROC_FILE_DIR}/./bcli newaccount -name commontoken -pubkey 0454f1c2223d553aa6ee53ea1ccea8b7bf78b8ca99f3ff622a3bb3e62dedc712089033d6091d77296547bc071022ca2838c9e86dec29667cf740e5c9e654b6127f &
350+
${CORE_PROC_FILE_DIR}/./bcli newaccount -name bottostoken -pubkey 0454f1c2223d553aa6ee53ea1ccea8b7bf78b8ca99f3ff622a3bb3e62dedc712089033d6091d77296547bc071022ca2838c9e86dec29667cf740e5c9e654b6127f &
351351
sleep 3
352-
${CORE_PROC_FILE_DIR}/./bcli deploycode -contract commontoken -wasm $CORE_PROC_FILE_DIR/contract/usermng.wasm &
352+
${CORE_PROC_FILE_DIR}/./bcli deploycode -contract bottostoken -wasm $CORE_PROC_FILE_DIR/contract/commontoken.wasm &
353353
sleep 3
354-
${CORE_PROC_FILE_DIR}/./bcli deployabi -contract commontoken -abi $CORE_PROC_FILE_DIR/contract/usermng.abi &
354+
${CORE_PROC_FILE_DIR}/./bcli deployabi -contract bottostoken -abi $CORE_PROC_FILE_DIR/contract/commontoken.abi &
355355
sleep 5
356356
echo
357357
echo -e "${BLUE}######## Deploy Contract usermng ########${NC}"

0 commit comments

Comments
 (0)