Documentation ¶
Index ¶
- Variables
- func Account() *types.Account
- func AccountMeta(addr types.Address) *types.AccountMeta
- func Address() types.Address
- func BlockChain(isGas bool) ([]*types.StateBlock, error)
- func BlockChainWithAccount(isGas bool) ([]*types.StateBlock, *types.Account, *types.Account, error)
- func ContractBlocks() []*types.StateBlock
- func GenerateAuxPow(msgBlockHash types.Hash) *types.PovAuxHeader
- func GenerateGenesisPovBlock() (*types.PovBlock, *types.PovTD)
- func GeneratePovBlock(prevBlock *types.PovBlock, txNum uint32) (*types.PovBlock, *types.PovTD)
- func GeneratePovBlockByFakePow(prevBlock *types.PovBlock, txNum uint32) (*types.PovBlock, *types.PovTD)
- func GeneratePovCoinbase() *types.Account
- func Hash() types.Hash
- func PovHeader() *types.PovHeader
- func SmartContractBlock() *types.SmartContractBlock
- func StateBlock() *types.StateBlock
- func StateBlockWithAddress(addr types.Address) *types.StateBlock
- func StateBlockWithoutWork() *types.StateBlock
- func TokenMeta(addr types.Address) *types.TokenMeta
- func TokenMeta2(addr types.Address, token types.Hash) *types.TokenMeta
- func UpdatePovHash(povBlk *types.PovBlock)
- type Mac
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TestSendBlock types.StateBlock TestReceiveBlock types.StateBlock TestSendGasBlock types.StateBlock TestReceiveGasBlock types.StateBlock TestChangeRepresentative types.StateBlock TestQGasOpenBlock types.StateBlock )
View Source
var ( Account1 = types.NewAccount(priv1) Account2 = types.NewAccount(priv2) Account3 = types.NewAccount(priv3) )
View Source
var (
MockBlocks = `` /* 7844-byte string literal not displayed */
)
Functions ¶
func AccountMeta ¶
func AccountMeta(addr types.Address) *types.AccountMeta
func BlockChain ¶
func BlockChain(isGas bool) ([]*types.StateBlock, error)
func BlockChainWithAccount ¶ added in v1.4.0
func ContractBlocks ¶ added in v1.3.1
func ContractBlocks() []*types.StateBlock
func GenerateAuxPow ¶ added in v1.4.0
func GenerateAuxPow(msgBlockHash types.Hash) *types.PovAuxHeader
func GenerateGenesisPovBlock ¶ added in v1.3.0
func GeneratePovBlock ¶ added in v1.2.4
func GeneratePovBlockByFakePow ¶ added in v1.4.0
func GeneratePovCoinbase ¶ added in v1.2.4
func SmartContractBlock ¶
func SmartContractBlock() *types.SmartContractBlock
func StateBlock ¶
func StateBlock() *types.StateBlock
func StateBlockWithAddress ¶ added in v1.2.7
func StateBlockWithAddress(addr types.Address) *types.StateBlock
func StateBlockWithoutWork ¶
func StateBlockWithoutWork() *types.StateBlock
func TokenMeta2 ¶ added in v1.4.0
func UpdatePovHash ¶ added in v1.4.0
Types ¶
Click to show internal directories.
Click to hide internal directories.