github.com/nspcc-dev/neo-go@v0.105.2-0.20240517133400-6be757af3eba/pkg/smartcontract/manifest/standard/token.go (about)

     1  package standard
     2  
     3  import (
     4  	"github.com/nspcc-dev/neo-go/pkg/smartcontract"
     5  	"github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest"
     6  )
     7  
     8  // DecimalTokenBase contains methods common to NEP-11 and NEP-17 token standards.
     9  var DecimalTokenBase = &Standard{
    10  	Manifest: manifest.Manifest{
    11  		ABI: manifest.ABI{
    12  			Methods: []manifest.Method{
    13  				{
    14  					Name:       "decimals",
    15  					ReturnType: smartcontract.IntegerType,
    16  					Safe:       true,
    17  				},
    18  				{
    19  					Name:       "symbol",
    20  					ReturnType: smartcontract.StringType,
    21  					Safe:       true,
    22  				},
    23  				{
    24  					Name:       "totalSupply",
    25  					ReturnType: smartcontract.IntegerType,
    26  					Safe:       true,
    27  				},
    28  			},
    29  		},
    30  	},
    31  }