2020-08-10 16:17:14 +00:00
|
|
|
package standard
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/nspcc-dev/neo-go/pkg/smartcontract"
|
|
|
|
"github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest"
|
|
|
|
)
|
|
|
|
|
2021-02-08 15:17:18 +00:00
|
|
|
var nep17 = &Standard{
|
|
|
|
Base: decimalTokenBase,
|
|
|
|
Manifest: manifest.Manifest{
|
|
|
|
ABI: manifest.ABI{
|
|
|
|
Methods: []manifest.Method{
|
|
|
|
{
|
|
|
|
Name: "balanceOf",
|
|
|
|
Parameters: []manifest.Parameter{
|
2021-02-19 10:13:36 +00:00
|
|
|
{Name: "account", Type: smartcontract.Hash160Type},
|
2021-02-08 15:17:18 +00:00
|
|
|
},
|
|
|
|
ReturnType: smartcontract.IntegerType,
|
|
|
|
Safe: true,
|
2020-08-10 16:17:14 +00:00
|
|
|
},
|
2021-02-08 15:17:18 +00:00
|
|
|
{
|
|
|
|
Name: "transfer",
|
|
|
|
Parameters: []manifest.Parameter{
|
2021-02-19 10:13:36 +00:00
|
|
|
{Name: "from", Type: smartcontract.Hash160Type},
|
|
|
|
{Name: "to", Type: smartcontract.Hash160Type},
|
|
|
|
{Name: "amount", Type: smartcontract.IntegerType},
|
|
|
|
{Name: "data", Type: smartcontract.AnyType},
|
2021-02-08 15:17:18 +00:00
|
|
|
},
|
|
|
|
ReturnType: smartcontract.BoolType,
|
2020-08-10 16:17:14 +00:00
|
|
|
},
|
|
|
|
},
|
2021-02-08 15:17:18 +00:00
|
|
|
Events: []manifest.Event{
|
|
|
|
{
|
|
|
|
Name: "Transfer",
|
|
|
|
Parameters: []manifest.Parameter{
|
2021-02-19 10:13:36 +00:00
|
|
|
{Name: "from", Type: smartcontract.Hash160Type},
|
|
|
|
{Name: "to", Type: smartcontract.Hash160Type},
|
|
|
|
{Name: "amount", Type: smartcontract.IntegerType},
|
2021-02-08 15:17:18 +00:00
|
|
|
},
|
2020-08-10 16:17:14 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|