-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathexamples.json
45 lines (45 loc) · 1.89 KB
/
examples.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{
"scripts": {
"script-token": {
"name": "token",
"commands": [
"account create -a random --args privateKey,privKeyAcc1 --args alias,aliasAcc1 --args accountId,idAcc1",
"account create -a random --args privateKey,privKeyAcc2 --args alias,aliasAcc2 --args accountId,idAcc2",
"account create -a random --args privateKey,privKeyAcc3 --args alias,aliasAcc3 --args accountId,idAcc3",
"token create -n mytoken -s MTK -d 2 -i 1000 --supply-type infinite -a {{privKeyAcc1}} -t {{idAcc2}} -k {{privKeyAcc2}} --args tokenId,tokenId",
"token associate --account-id {{idAcc3}} --token-id {{tokenId}}",
"token transfer -t {{tokenId}} -b 1 --from {{aliasAcc2}} --to {{aliasAcc3}}",
"wait 3",
"account balance --account-id-or-alias {{aliasAcc3}} --token-id {{tokenId}}",
"state view --token-id {{tokenId}}"
]
},
"script-account-create": {
"name": "account-create",
"commands": [
"account create -a random -b 10000000 --type ecdsa --args privateKey,privKeyAcc1 --args alias,aliasAcc1 --args accountId,idAcc1",
"wait 5",
"account balance --account-id-or-alias {{idAcc1}} --only-hbar"
]
},
"script-account-create-simple": {
"name": "account-create-simple",
"creation": 1706620441200,
"commands": [
"account create -a random -b 10000000 --type ecdsa --args privateKey,privKeyAcc1 --args alias,aliasAcc1 --args accountId,idAcc1",
"wait 5"
],
"args": {}
},
"script-topic-create": {
"name": "topic-create",
"creation": 1697103669402,
"commands": [
"account create -a random --args privateKey,privKeyAdmin",
"account create -a random --args privateKey,privKeySubmit",
"topic create --admin-key {{privKeyAdmin}} --submit-key {{privKeySubmit}} --args topicId,topicId"
],
"args": {}
}
}
}