manifest: add Safe flag for NEP-17 methods

This commit is contained in:
Evgenii Stratonikov 2020-12-10 18:04:49 +03:00
parent 2341ae0c53
commit ec1ff42872
3 changed files with 6 additions and 0 deletions

View file

@ -1,5 +1,6 @@
name: "My awesome token"
supportedstandards: ["NEP-17"]
safemethods: ["balanceOf", "decimals", "symbol", "totalSupply"]
events:
- name: Transfer
parameters:

View file

@ -1,5 +1,6 @@
name: "Awesome NEO Token"
supportedstandards: ["NEP-17"]
safemethods: ["balanceOf", "decimals", "symbol", "totalSupply"]
events:
- name: Transfer
parameters:

View file

@ -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",