manifest: add Safe
flag for NEP-17 methods
This commit is contained in:
parent
2341ae0c53
commit
ec1ff42872
3 changed files with 6 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
name: "My awesome token"
|
||||
supportedstandards: ["NEP-17"]
|
||||
safemethods: ["balanceOf", "decimals", "symbol", "totalSupply"]
|
||||
events:
|
||||
- name: Transfer
|
||||
parameters:
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
name: "Awesome NEO Token"
|
||||
supportedstandards: ["NEP-17"]
|
||||
safemethods: ["balanceOf", "decimals", "symbol", "totalSupply"]
|
||||
events:
|
||||
- name: Transfer
|
||||
parameters:
|
||||
|
|
|
@ -14,18 +14,22 @@ var nep17 = &manifest.Manifest{
|
|||
{Type: smartcontract.Hash160Type},
|
||||
},
|
||||
ReturnType: smartcontract.IntegerType,
|
||||
Safe: true,
|
||||
},
|
||||
{
|
||||
Name: "decimals",
|
||||
ReturnType: smartcontract.IntegerType,
|
||||
Safe: true,
|
||||
},
|
||||
{
|
||||
Name: "symbol",
|
||||
ReturnType: smartcontract.StringType,
|
||||
Safe: true,
|
||||
},
|
||||
{
|
||||
Name: "totalSupply",
|
||||
ReturnType: smartcontract.IntegerType,
|
||||
Safe: true,
|
||||
},
|
||||
{
|
||||
Name: "transfer",
|
||||
|
|
Loading…
Reference in a new issue