Documentation
¶
Index ¶
- func BalanceOf(account interop.Hash160) int
- func Burn(from interop.Hash160, amount int, txDetails []byte)
- func Decimals() int
- func Lock(txDetails []byte, from, to interop.Hash160, amount, until int)
- func Migrate(script []byte, manifest []byte, data interface{}) bool
- func Mint(to interop.Hash160, amount int, txDetails []byte)
- func NewEpoch(epochNum int)
- func Symbol() string
- func TotalSupply() int
- func Transfer(from, to interop.Hash160, amount int, data interface{}) bool
- func TransferX(from, to interop.Hash160, amount int, details []byte)
- func Version() int
- type Account
- type Token
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TotalSupply ¶
func TotalSupply() int
Types ¶
type Token ¶
type Token struct {
// Ticker symbol
Symbol string
// Amount of decimals
Decimals int
// Storage key for circulation value
CirculationKey string
}
Token holds all token info.
func CreateToken ¶
func CreateToken() Token
CreateToken initializes the Token Interface for the Smart Contract to operate with.
Click to show internal directories.
Click to hide internal directories.