mock

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2018 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Account

func Account() *types.Account

func AccountMeta

func AccountMeta(addr types.Address) *types.AccountMeta

func Address

func Address() types.Address

func BalanceToRaw

func BalanceToRaw(b types.Balance, unit string) (types.Balance, error)

func BlockChain

func BlockChain() ([]types.Block, error)

func GetChainTokenType

func GetChainTokenType() types.Hash

func GetGenesis

func GetGenesis() []types.Block

func GetSmartContracts

func GetSmartContracts() []types.Block

func Hash

func Hash() types.Hash

func RawToBalance

func RawToBalance(b types.Balance, unit string) (types.Balance, error)

func StateBlock

func StateBlock() types.Block

func TokenMeta

func TokenMeta(addr types.Address) *types.TokenMeta

Types

type TokenInfo

type TokenInfo struct {
	TokenId     types.Hash    `json:"tokenId"`
	TokenName   string        `json:"tokenName"`
	TokenSymbol string        `json:"tokenSymbol"`
	TotalSupply types.Balance `json:"totalSupply"`
	Decimals    uint8         `json:"decimals"`
	Owner       types.Address `json:"owner"`
}

func GetTokenById

func GetTokenById(tokenId types.Hash) (TokenInfo, error)

Jump to

Keyboard shortcuts

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