mock

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2019 License: MIT Imports: 15 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 BlockChain

func BlockChain() ([]*types.StateBlock, error)

func GeneratePovBlock added in v1.2.4

func GeneratePovBlock(prevBlock *types.PovBlock, txNum uint32) (*types.PovBlock, *big.Int)

func GeneratePovCoinbase added in v1.2.4

func GeneratePovCoinbase() *types.Account

func Hash

func Hash() types.Hash

func SmartContractBlock

func SmartContractBlock() *types.SmartContractBlock

func StateBlock

func StateBlock() *types.StateBlock

func StateBlockWithoutWork

func StateBlockWithoutWork() *types.StateBlock

func TokenMeta

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

Types

type Mac

type Mac [6]byte

func NewRandomMac

func NewRandomMac() Mac

func (Mac) String

func (m Mac) String() string

Jump to

Keyboard shortcuts

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