blockcontract

package
v0.0.0-...-e3261ea Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// TRUE string const
	TRUE = "true"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockContract

type BlockContract struct {
	// contains filtered or unexported fields
}

func NewBlockContract

func NewBlockContract(log protocol.Logger) *BlockContract

func (*BlockContract) GetMethod

func (c *BlockContract) GetMethod(methodName string) common.ContractFunc

type BlockHeight

type BlockHeight int64

type BlockRuntime

type BlockRuntime struct {
	// contains filtered or unexported fields
}

func (*BlockRuntime) GetArchiveBlockHeight

func (r *BlockRuntime) GetArchiveBlockHeight(context protocol.TxSimContext, params map[string][]byte) ([]byte, error)

func (*BlockRuntime) GetBlockByHash

func (r *BlockRuntime) GetBlockByHash(txSimContext protocol.TxSimContext, parameters map[string][]byte) (
	[]byte, error)

func (*BlockRuntime) GetBlockByHeight

func (r *BlockRuntime) GetBlockByHeight(txSimContext protocol.TxSimContext, parameters map[string][]byte) (
	[]byte, error)

func (*BlockRuntime) GetBlockByTxId

func (r *BlockRuntime) GetBlockByTxId(txSimContext protocol.TxSimContext, parameters map[string][]byte) (
	[]byte, error)

func (*BlockRuntime) GetBlockHeaderByHeight

func (r *BlockRuntime) GetBlockHeaderByHeight(txSimContext protocol.TxSimContext, params map[string][]byte) ([]byte,
	error)

func (*BlockRuntime) GetBlockHeightByHash

func (r *BlockRuntime) GetBlockHeightByHash(txSimContext protocol.TxSimContext, params map[string][]byte) ([]byte,
	error)

func (*BlockRuntime) GetBlockHeightByTxId

func (r *BlockRuntime) GetBlockHeightByTxId(txSimContext protocol.TxSimContext, params map[string][]byte) ([]byte,
	error)

func (*BlockRuntime) GetBlockWithTxRWSetsByHash

func (r *BlockRuntime) GetBlockWithTxRWSetsByHash(txSimContext protocol.TxSimContext, parameters map[string][]byte) (
	[]byte, error)

func (*BlockRuntime) GetBlockWithTxRWSetsByHeight

func (r *BlockRuntime) GetBlockWithTxRWSetsByHeight(txSimContext protocol.TxSimContext, parameters map[string][]byte) (
	[]byte, error)

func (*BlockRuntime) GetChainInfo

func (r *BlockRuntime) GetChainInfo(txSimContext protocol.TxSimContext, parameters map[string][]byte) ([]byte, error)

func (*BlockRuntime) GetFullBlockByHeight

func (r *BlockRuntime) GetFullBlockByHeight(txSimContext protocol.TxSimContext, params map[string][]byte) ([]byte,
	error)

func (*BlockRuntime) GetLastBlock

func (r *BlockRuntime) GetLastBlock(txSimContext protocol.TxSimContext, parameters map[string][]byte) ([]byte, error)

func (*BlockRuntime) GetLastConfigBlock

func (r *BlockRuntime) GetLastConfigBlock(txSimContext protocol.TxSimContext, parameters map[string][]byte) (
	[]byte, error)

func (*BlockRuntime) GetMerklePathByTxId

func (r *BlockRuntime) GetMerklePathByTxId(txSimContext protocol.TxSimContext, parameters map[string][]byte) (
	[]byte, error)

func (*BlockRuntime) GetNodeChainList

func (r *BlockRuntime) GetNodeChainList(txSimContext protocol.TxSimContext, parameters map[string][]byte) (
	[]byte, error)

GetNodeChainList return list of chain

func (*BlockRuntime) GetTxByTxId

func (r *BlockRuntime) GetTxByTxId(txSimContext protocol.TxSimContext, parameters map[string][]byte) ([]byte, error)

type BlockRuntimeParam

type BlockRuntimeParam struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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