tokencontract

package
v0.90.1-pre Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2020 License: MIT Imports: 3 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 []byte) interface{}

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 Main

func Main(operation string, args []interface{}) interface{}

Main function = contract entry

func Mint added in v0.90.0

func Mint(to []byte) bool

Mint initial supply of tokens

func Name added in v0.90.0

func Name() string

Name returns the token name

func Symbol added in v0.90.0

func Symbol() string

Symbol returns the token symbol

func TotalSupply added in v0.90.0

func TotalSupply() interface{}

TotalSupply returns the token total supply value

func Transfer added in v0.90.0

func Transfer(from []byte, to []byte, amount int) 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