Documentation ¶
Index ¶
- Constants
- type BlockContract
- type BlockHeight
- type BlockRuntime
- func (r *BlockRuntime) GetArchiveBlockHeight(context protocol.TxSimContext, params map[string][]byte) ([]byte, error)
- func (r *BlockRuntime) GetBlockByHash(txSimContext protocol.TxSimContext, parameters map[string][]byte) ([]byte, error)
- func (r *BlockRuntime) GetBlockByHeight(txSimContext protocol.TxSimContext, parameters map[string][]byte) ([]byte, error)
- func (r *BlockRuntime) GetBlockByTxId(txSimContext protocol.TxSimContext, parameters map[string][]byte) ([]byte, error)
- func (r *BlockRuntime) GetBlockHeaderByHeight(txSimContext protocol.TxSimContext, params map[string][]byte) ([]byte, error)
- func (r *BlockRuntime) GetBlockHeightByHash(txSimContext protocol.TxSimContext, params map[string][]byte) ([]byte, error)
- func (r *BlockRuntime) GetBlockHeightByTxId(txSimContext protocol.TxSimContext, params map[string][]byte) ([]byte, error)
- func (r *BlockRuntime) GetBlockWithTxRWSetsByHash(txSimContext protocol.TxSimContext, parameters map[string][]byte) ([]byte, error)
- func (r *BlockRuntime) GetBlockWithTxRWSetsByHeight(txSimContext protocol.TxSimContext, parameters map[string][]byte) ([]byte, error)
- func (r *BlockRuntime) GetChainInfo(txSimContext protocol.TxSimContext, parameters map[string][]byte) ([]byte, error)
- func (r *BlockRuntime) GetFullBlockByHeight(txSimContext protocol.TxSimContext, params map[string][]byte) ([]byte, error)
- func (r *BlockRuntime) GetLastBlock(txSimContext protocol.TxSimContext, parameters map[string][]byte) ([]byte, error)
- func (r *BlockRuntime) GetLastConfigBlock(txSimContext protocol.TxSimContext, parameters map[string][]byte) ([]byte, error)
- func (r *BlockRuntime) GetMerklePathByTxId(txSimContext protocol.TxSimContext, parameters map[string][]byte) ([]byte, error)
- func (r *BlockRuntime) GetNodeChainList(txSimContext protocol.TxSimContext, parameters map[string][]byte) ([]byte, error)
- func (r *BlockRuntime) GetTxByTxId(txSimContext protocol.TxSimContext, parameters map[string][]byte) ([]byte, error)
- type BlockRuntimeParam
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
}
Click to show internal directories.
Click to hide internal directories.