2021-02-08 15:17:18 +00:00
|
|
|
package standard
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/nspcc-dev/neo-go/pkg/smartcontract"
|
|
|
|
"github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest"
|
|
|
|
)
|
|
|
|
|
2022-10-26 18:23:12 +00:00
|
|
|
// DecimalTokenBase contains methods common to NEP-11 and NEP-17 token standards.
|
|
|
|
var DecimalTokenBase = &Standard{
|
2021-02-08 15:17:18 +00:00
|
|
|
Manifest: manifest.Manifest{
|
|
|
|
ABI: manifest.ABI{
|
|
|
|
Methods: []manifest.Method{
|
|
|
|
{
|
|
|
|
Name: "decimals",
|
|
|
|
ReturnType: smartcontract.IntegerType,
|
|
|
|
Safe: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "symbol",
|
|
|
|
ReturnType: smartcontract.StringType,
|
|
|
|
Safe: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "totalSupply",
|
|
|
|
ReturnType: smartcontract.IntegerType,
|
|
|
|
Safe: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|