tokencontract

package
v0.95.5-pre Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 9, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BalanceOf added in v0.90.0

func BalanceOf(holder interop.Hash160) int

BalanceOf returns the amount of token on the specified address

func Decimals added in v0.90.0

func Decimals() int

Decimals returns the token decimals

func Mint added in v0.90.0

func Mint(to interop.Hash160) bool

Mint initial supply of tokens

func Symbol added in v0.90.0

func Symbol() string

Symbol returns the token symbol

func TotalSupply added in v0.90.0

func TotalSupply() int

TotalSupply returns the token total supply value

func Transfer added in v0.90.0

func Transfer(from interop.Hash160, to interop.Hash160, amount int, data interface{}) bool

Transfer token from one user to another

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL