@@ -24,17 +24,17 @@ You must consider the decision points carefully because it cannot be changed onc
24
24
## setting fee for operations
25
25
* Transaction fee for operations is set by [ yx.txfee] ( ../../contracts/yx.txfee/ ) ::settxfee operation.
26
26
```
27
- clyos push action yx.txfee settxfee '{"operation":"tf.tcreate", "fee":"10000.00 DKRW"}}' -p yosemite
28
- clyos push action yx.txfee settxfee '{"operation":"tf.tissue", "fee":"100.00 DKRW"}}' -p yosemite
29
- clyos push action yx.txfee settxfee '{"operation":"tf.tredeem", "fee":"100.00 DKRW"}}' -p yosemite
30
- clyos push action yx.txfee settxfee '{"operation":"tf.ttransfer", "fee":"10.00 DKRW"}}' -p yosemite
31
- clyos push action yx.txfee settxfee '{"operation":"tf.tsetkyc", "fee":"5.00 DKRW"}}' -p yosemite
32
- clyos push action yx.txfee settxfee '{"operation":"tf.tsetopts", "fee":"5.00 DKRW"}}' -p yosemite
33
- clyos push action yx.txfee settxfee '{"operation":"tf.tfreezeac", "fee":"5.00 DKRW"}}' -p yosemite
34
- clyos push action yx.txfee settxfee '{"operation":"tf.tsetuilim", "fee":"10.00 DKRW"}}' -p yosemite
35
- clyos push action yx.txfee settxfee '{"operation":"tf.tissuebyu", "fee":"10.00 DKRW"}}' -p yosemite
36
- clyos push action yx.txfee settxfee '{"operation":"tf.ttrustui", "fee":"10.00 DKRW"}}' -p yosemite
37
- clyos push action yx.txfee settxfee '{"operation":"tf.tchangeis", "fee":"10.00 DKRW"}}' -p yosemite
27
+ infra-cli push action yx.txfee settxfee '{"operation":"tf.tcreate", "fee":"10000.00 DKRW"}}' -p yosemite
28
+ infra-cli push action yx.txfee settxfee '{"operation":"tf.tissue", "fee":"100.00 DKRW"}}' -p yosemite
29
+ infra-cli push action yx.txfee settxfee '{"operation":"tf.tredeem", "fee":"100.00 DKRW"}}' -p yosemite
30
+ infra-cli push action yx.txfee settxfee '{"operation":"tf.ttransfer", "fee":"10.00 DKRW"}}' -p yosemite
31
+ infra-cli push action yx.txfee settxfee '{"operation":"tf.tsetkyc", "fee":"5.00 DKRW"}}' -p yosemite
32
+ infra-cli push action yx.txfee settxfee '{"operation":"tf.tsetopts", "fee":"5.00 DKRW"}}' -p yosemite
33
+ infra-cli push action yx.txfee settxfee '{"operation":"tf.tfreezeac", "fee":"5.00 DKRW"}}' -p yosemite
34
+ infra-cli push action yx.txfee settxfee '{"operation":"tf.tsetuilim", "fee":"10.00 DKRW"}}' -p yosemite
35
+ infra-cli push action yx.txfee settxfee '{"operation":"tf.tissuebyu", "fee":"10.00 DKRW"}}' -p yosemite
36
+ infra-cli push action yx.txfee settxfee '{"operation":"tf.ttrustui", "fee":"10.00 DKRW"}}' -p yosemite
37
+ infra-cli push action yx.txfee settxfee '{"operation":"tf.tchangeis", "fee":"10.00 DKRW"}}' -p yosemite
38
38
```
39
39
40
40
# Actions
@@ -45,7 +45,7 @@ Create a (non-native) token with its symbol and precision
45
45
* The token creator naturally becomes the token depository.
46
46
* Enabling the setting of options cannot be done any more after creation, because the owners of the token should know about what options can be set and it must not be changed after they own.
47
47
```
48
- clyos push action yx.token create '{"ysymbol":{"tsymbol":"4,BTC","issuer":"d2"},"can_set_options":0}' -p d2
48
+ infra-cli push action yx.token create '{"ysymbol":{"tsymbol":"4,BTC","issuer":"d2"},"can_set_options":0}' -p d2
49
49
```
50
50
51
51
### parameters of create
@@ -68,7 +68,7 @@ clyos push action yx.token create '{"ysymbol":{"tsymbol":"4,BTC","issuer":"d2"},
68
68
Issue the token to an account by the token depository
69
69
70
70
```
71
- clyos push action yx.token issue '{"to":"user2","token":{"amount":"100000.0000 BTC","issuer":"d2"},"memo":"my memo"}' -p d2
71
+ infra-cli push action yx.token issue '{"to":"user2","token":{"amount":"100000.0000 BTC","issuer":"d2"},"memo":"my memo"}' -p d2
72
72
```
73
73
74
74
### parameters of issue
@@ -103,11 +103,11 @@ Redeem(burn) token from an account by the token depository
103
103
104
104
* At first, the account transfers the token to the depository.
105
105
```
106
- clyos push action yx.token transfer '{"from":"user2","to":"d2","token":{"amount":"10000.0000 BTC","issuer":"d2"},"memo":"redeem by user2"}' -p user2
106
+ infra-cli push action yx.token transfer '{"from":"user2","to":"d2","token":{"amount":"10000.0000 BTC","issuer":"d2"},"memo":"redeem by user2"}' -p user2
107
107
```
108
108
* Then the token depository checks the transfer action is irreversible and calls redeem action.
109
109
```
110
- clyos push action yx.token redeem '{"token":{"amount":"10000.0000 BTC","issuer":"d2"},"memo":"redeem for user2"}' -p d2
110
+ infra-cli push action yx.token redeem '{"token":{"amount":"10000.0000 BTC","issuer":"d2"},"memo":"redeem for user2"}' -p d2
111
111
```
112
112
113
113
### parameters of redeem
@@ -121,7 +121,7 @@ clyos push action yx.token redeem '{"token":{"amount":"10000.0000 BTC","issuer":
121
121
Transfer token
122
122
123
123
```
124
- clyos push action yx.token transfer '{"from":"user2","to":"user3","token":{"amount":"10000.0000 BTC","issuer":"d2"},"memo":"my memo"}' -p user2
124
+ infra-cli push action yx.token transfer '{"from":"user2","to":"user3","token":{"amount":"10000.0000 BTC","issuer":"d2"},"memo":"my memo"}' -p user2
125
125
```
126
126
127
127
### parameters of transfer
@@ -138,8 +138,8 @@ Set the KYC vector for send or receive
138
138
139
139
* SET_KYC_RULE flag of can_set_options must be set at token creation time.
140
140
```
141
- clyos push action yx.token setkycrule '{"ysymbol":{"tsymbol":"4,BTC","issuer":"d2"}, "type":0, "kyc":4}' -p d2
142
- clyos push action yx.token setkycrule '{"ysymbol":{"tsymbol":"4,BTC","issuer":"d2"}, "type":1, "kyc":4}' -p d2
141
+ infra-cli push action yx.token setkycrule '{"ysymbol":{"tsymbol":"4,BTC","issuer":"d2"}, "type":0, "kyc":4}' -p d2
142
+ infra-cli push action yx.token setkycrule '{"ysymbol":{"tsymbol":"4,BTC","issuer":"d2"}, "type":1, "kyc":4}' -p d2
143
143
```
144
144
145
145
### parameters of setkycrule
@@ -156,7 +156,7 @@ set or add token options
156
156
* FREEZE_TOKEN_TRANSFER flag of can_set_options must be set at token creation time.
157
157
158
158
```
159
- clyos push action yx.token setoptions '{"ysymbol":{"tsymbol":"4,BTC","issuer":"d2"}, "options":1, "reset":1}' -p d2
159
+ infra-cli push action yx.token setoptions '{"ysymbol":{"tsymbol":"4,BTC","issuer":"d2"}, "options":1, "reset":1}' -p d2
160
160
```
161
161
162
162
### parameters of setoptions
@@ -173,8 +173,8 @@ Freeze an account which has the token by its issuer
173
173
174
174
* FREEZE_ACCOUNT flag of can_set_options must be set at token creation time.
175
175
```
176
- clyos push action yx.token freezeacc '{"ysymbol":{"tsymbol":"4,BTC","issuer":"d2"}, "accs":["user1","user2"], "freeze":1}' -p d2
177
- clyos push action yx.token freezeacc '{"ysymbol":{"tsymbol":"4,BTC","issuer":"d2"}, "accs":["user2"], "freeze":0}' -p d2
176
+ infra-cli push action yx.token freezeacc '{"ysymbol":{"tsymbol":"4,BTC","issuer":"d2"}, "accs":["user1","user2"], "freeze":1}' -p d2
177
+ infra-cli push action yx.token freezeacc '{"ysymbol":{"tsymbol":"4,BTC","issuer":"d2"}, "accs":["user2"], "freeze":0}' -p d2
178
178
```
179
179
180
180
### parameters of freezeacc
@@ -186,7 +186,7 @@ clyos push action yx.token freezeacc '{"ysymbol":{"tsymbol":"4,BTC","issuer":"d2
186
186
## setuilimit
187
187
Set the limit of user issue amount by the token depository.
188
188
```
189
- clyos push action yx.token setuilimit '{"to":"user1", "limit":{"amount":"1000000.0000 BTC","issuer":"d2"}}' -p d2
189
+ infra-cli push action yx.token setuilimit '{"to":"user1", "limit":{"amount":"1000000.0000 BTC","issuer":"d2"}}' -p d2
190
190
```
191
191
192
192
### parameters of setuilimit
@@ -201,7 +201,7 @@ Issue the token by the user with the user issue authority and the limit
201
201
* The total 'issued' amount of the user is incresed by the amount of token.
202
202
* The total 'issued' amount of the user cannot exceed the issue limit granted by the token issuer.
203
203
```
204
- clyos push action yx.token issuebyuser '{"user":"user1","to":"user1","token":{"amount":"100000.0000 BTC","issuer":"d2"}, "memo":"my memo"}' -p user1
204
+ infra-cli push action yx.token issuebyuser '{"user":"user1","to":"user1","token":{"amount":"100000.0000 BTC","issuer":"d2"}, "memo":"my memo"}' -p user1
205
205
```
206
206
207
207
### parameters of issuebyuser
@@ -218,7 +218,7 @@ Entrust the user issue authority to another account
218
218
219
219
* Agreed by the user under the terms and conditions, the delegated account can issue the amount of the token by the issue limit.
220
220
```
221
- clyos push action yx.token entrustui '{"user":"user1","to":"d2","ysymbol":{"tsymbol":"4,BTC","issuer":"d2"}}' -p user1
221
+ infra-cli push action yx.token entrustui '{"user":"user1","to":"d2","ysymbol":{"tsymbol":"4,BTC","issuer":"d2"}}' -p user1
222
222
```
223
223
224
224
### parameters of issuebyuser
@@ -231,7 +231,7 @@ clyos push action yx.token entrustui '{"user":"user1","to":"d2","ysymbol":{"tsym
231
231
## changeissued
232
232
Decrease or increase the total user-issued amount of token of the user
233
233
```
234
- clyos push action yx.token changeissued '{"user":"user1", "delta":{"amount":"1000000.0000 BTC","issuer":"d2"}, "decrease":1}' -p d2
234
+ infra-cli push action yx.token changeissued '{"user":"user1", "delta":{"amount":"1000000.0000 BTC","issuer":"d2"}, "decrease":1}' -p d2
235
235
```
236
236
237
237
### parameters of changeissued
@@ -247,7 +247,7 @@ clyos push action yx.token changeissued '{"user":"user1", "delta":{"amount":"100
247
247
## tstats
248
248
Get the token statistics
249
249
```
250
- clyos get table yx.token 4,BTC tstats
250
+ infra-cli get table yx.token 4,BTC tstats
251
251
```
252
252
253
253
### results of tstats
@@ -270,7 +270,7 @@ clyos get table yx.token 4,BTC tstats
270
270
## taccounts
271
271
Get all the token balances of the user
272
272
```
273
- clyos get table yx.token user2 taccounts
273
+ infra-cli get table yx.token user2 taccounts
274
274
```
275
275
276
276
### results of taccounts
@@ -297,5 +297,5 @@ clyos get table yx.token user2 taccounts
297
297
* | the symbol(64-bit integer) | issuer (64-bit integer) |
298
298
* Web Assembly VM follows little endian.
299
299
```
300
- clyos get table yx.token user2 taccounts --index 2 --key-type i128 -L 0x00000000000080480654455354000000 -l 1
300
+ infra-cli get table yx.token user2 taccounts --index 2 --key-type i128 -L 0x00000000000080480654455354000000 -l 1
301
301
```
0 commit comments