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"
|
name: "My awesome token"
|
||||||
supportedstandards: ["NEP-17"]
|
supportedstandards: ["NEP-17"]
|
||||||
|
safemethods: ["balanceOf", "decimals", "symbol", "totalSupply"]
|
||||||
events:
|
events:
|
||||||
- name: Transfer
|
- name: Transfer
|
||||||
parameters:
|
parameters:
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
name: "Awesome NEO Token"
|
name: "Awesome NEO Token"
|
||||||
supportedstandards: ["NEP-17"]
|
supportedstandards: ["NEP-17"]
|
||||||
|
safemethods: ["balanceOf", "decimals", "symbol", "totalSupply"]
|
||||||
events:
|
events:
|
||||||
- name: Transfer
|
- name: Transfer
|
||||||
parameters:
|
parameters:
|
||||||
|
|
|
@ -14,18 +14,22 @@ var nep17 = &manifest.Manifest{
|
||||||
{Type: smartcontract.Hash160Type},
|
{Type: smartcontract.Hash160Type},
|
||||||
},
|
},
|
||||||
ReturnType: smartcontract.IntegerType,
|
ReturnType: smartcontract.IntegerType,
|
||||||
|
Safe: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "decimals",
|
Name: "decimals",
|
||||||
ReturnType: smartcontract.IntegerType,
|
ReturnType: smartcontract.IntegerType,
|
||||||
|
Safe: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "symbol",
|
Name: "symbol",
|
||||||
ReturnType: smartcontract.StringType,
|
ReturnType: smartcontract.StringType,
|
||||||
|
Safe: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "totalSupply",
|
Name: "totalSupply",
|
||||||
ReturnType: smartcontract.IntegerType,
|
ReturnType: smartcontract.IntegerType,
|
||||||
|
Safe: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "transfer",
|
Name: "transfer",
|
||||||
|
|
Loading…
Reference in a new issue