Documentation ¶
Index ¶
- type BlockAPI
- func (_m *BlockAPI) BestBlockHash() common.Hash
- func (_m *BlockAPI) FreeFinalisedNotifierChannel(ch chan *types.FinalisationInfo)
- func (_m *BlockAPI) FreeImportedBlockNotifierChannel(ch chan *types.Block)
- func (_m *BlockAPI) GetBlockByHash(hash common.Hash) (*types.Block, error)
- func (_m *BlockAPI) GetFinalisedHash(_a0 uint64, _a1 uint64) (common.Hash, error)
- func (_m *BlockAPI) GetFinalisedNotifierChannel() chan *types.FinalisationInfo
- func (_m *BlockAPI) GetHashByNumber(blockNumber uint) (common.Hash, error)
- func (_m *BlockAPI) GetHeader(hash common.Hash) (*types.Header, error)
- func (_m *BlockAPI) GetHighestFinalisedHash() (common.Hash, error)
- func (_m *BlockAPI) GetImportedBlockNotifierChannel() chan *types.Block
- func (_m *BlockAPI) GetJustification(hash common.Hash) ([]byte, error)
- func (_m *BlockAPI) GetRuntime(blockHash common.Hash) (runtime.Instance, error)
- func (_m *BlockAPI) HasJustification(hash common.Hash) (bool, error)
- func (_m *BlockAPI) RegisterRuntimeUpdatedChannel(ch chan<- runtime.Version) (uint32, error)
- func (_m *BlockAPI) SubChain(start common.Hash, end common.Hash) ([]common.Hash, error)
- func (_m *BlockAPI) UnregisterRuntimeUpdatedChannel(id uint32) bool
- type BlockFinalityAPI
- type BlockProducerAPI
- type CoreAPI
- func (_m *CoreAPI) DecodeSessionKeys(enc []byte) ([]byte, error)
- func (_m *CoreAPI) GetMetadata(bhash *common.Hash) ([]byte, error)
- func (_m *CoreAPI) GetReadProofAt(block common.Hash, keys [][]byte) (common.Hash, [][]byte, error)
- func (_m *CoreAPI) GetRuntimeVersion(bhash *common.Hash) (runtime.Version, error)
- func (_m *CoreAPI) HandleSubmittedExtrinsic(_a0 types.Extrinsic) error
- func (_m *CoreAPI) HasKey(pubKeyStr string, keyType string) (bool, error)
- func (_m *CoreAPI) InsertKey(kp crypto.Keypair, keystoreType string) error
- type NetworkAPI
- func (_m *NetworkAPI) AddReservedPeers(addrs ...string) error
- func (_m *NetworkAPI) Health() common.Health
- func (_m *NetworkAPI) IsStopped() bool
- func (_m *NetworkAPI) NetworkState() common.NetworkState
- func (_m *NetworkAPI) NodeRoles() common.Roles
- func (_m *NetworkAPI) Peers() []common.PeerInfo
- func (_m *NetworkAPI) RemoveReservedPeers(addrs ...string) error
- func (_m *NetworkAPI) Start() error
- func (_m *NetworkAPI) StartingBlock() int64
- func (_m *NetworkAPI) Stop() error
- type RPCAPI
- type RuntimeStorageAPI
- type StorageAPI
- func (_m *StorageAPI) Entries(root *common.Hash) (map[string][]byte, error)
- func (_m *StorageAPI) GetKeysWithPrefix(root *common.Hash, prefix []byte) ([][]byte, error)
- func (_m *StorageAPI) GetStateRootFromBlock(bhash *common.Hash) (*common.Hash, error)
- func (_m *StorageAPI) GetStorage(root *common.Hash, key []byte) ([]byte, error)
- func (_m *StorageAPI) GetStorageByBlockHash(bhash *common.Hash, key []byte) ([]byte, error)
- func (_m *StorageAPI) GetStorageChild(root *common.Hash, keyToChild []byte) (*trie.Trie, error)
- func (_m *StorageAPI) GetStorageFromChild(root *common.Hash, keyToChild []byte, key []byte) ([]byte, error)
- func (_m *StorageAPI) RegisterStorageObserver(observer state.Observer)
- func (_m *StorageAPI) UnregisterStorageObserver(observer state.Observer)
- type SyncStateAPI
- type SystemAPI
- type TransactionStateAPI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockAPI ¶
BlockAPI is an autogenerated mock type for the BlockAPI type
func NewBlockAPI ¶
func NewBlockAPI(t mockConstructorTestingTNewBlockAPI) *BlockAPI
NewBlockAPI creates a new instance of BlockAPI. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*BlockAPI) BestBlockHash ¶
BestBlockHash provides a mock function with given fields:
func (*BlockAPI) FreeFinalisedNotifierChannel ¶
func (_m *BlockAPI) FreeFinalisedNotifierChannel(ch chan *types.FinalisationInfo)
FreeFinalisedNotifierChannel provides a mock function with given fields: ch
func (*BlockAPI) FreeImportedBlockNotifierChannel ¶
FreeImportedBlockNotifierChannel provides a mock function with given fields: ch
func (*BlockAPI) GetBlockByHash ¶
GetBlockByHash provides a mock function with given fields: hash
func (*BlockAPI) GetFinalisedHash ¶
GetFinalisedHash provides a mock function with given fields: _a0, _a1
func (*BlockAPI) GetFinalisedNotifierChannel ¶
func (_m *BlockAPI) GetFinalisedNotifierChannel() chan *types.FinalisationInfo
GetFinalisedNotifierChannel provides a mock function with given fields:
func (*BlockAPI) GetHashByNumber ¶
GetHashByNumber provides a mock function with given fields: blockNumber
func (*BlockAPI) GetHighestFinalisedHash ¶
GetHighestFinalisedHash provides a mock function with given fields:
func (*BlockAPI) GetImportedBlockNotifierChannel ¶
GetImportedBlockNotifierChannel provides a mock function with given fields:
func (*BlockAPI) GetJustification ¶
GetJustification provides a mock function with given fields: hash
func (*BlockAPI) GetRuntime ¶
GetRuntime provides a mock function with given fields: blockHash
func (*BlockAPI) HasJustification ¶
HasJustification provides a mock function with given fields: hash
func (*BlockAPI) RegisterRuntimeUpdatedChannel ¶
RegisterRuntimeUpdatedChannel provides a mock function with given fields: ch
func (*BlockAPI) UnregisterRuntimeUpdatedChannel ¶
UnregisterRuntimeUpdatedChannel provides a mock function with given fields: id
type BlockFinalityAPI ¶
BlockFinalityAPI is an autogenerated mock type for the BlockFinalityAPI type
func NewBlockFinalityAPI ¶
func NewBlockFinalityAPI(t mockConstructorTestingTNewBlockFinalityAPI) *BlockFinalityAPI
NewBlockFinalityAPI creates a new instance of BlockFinalityAPI. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*BlockFinalityAPI) GetRound ¶
func (_m *BlockFinalityAPI) GetRound() uint64
GetRound provides a mock function with given fields:
func (*BlockFinalityAPI) GetSetID ¶
func (_m *BlockFinalityAPI) GetSetID() uint64
GetSetID provides a mock function with given fields:
func (*BlockFinalityAPI) GetVoters ¶
func (_m *BlockFinalityAPI) GetVoters() types.GrandpaVoters
GetVoters provides a mock function with given fields:
func (*BlockFinalityAPI) PreCommits ¶
func (_m *BlockFinalityAPI) PreCommits() []ed25519.PublicKeyBytes
PreCommits provides a mock function with given fields:
func (*BlockFinalityAPI) PreVotes ¶
func (_m *BlockFinalityAPI) PreVotes() []ed25519.PublicKeyBytes
PreVotes provides a mock function with given fields:
type BlockProducerAPI ¶
BlockProducerAPI is an autogenerated mock type for the BlockProducerAPI type
func NewBlockProducerAPI ¶
func NewBlockProducerAPI(t mockConstructorTestingTNewBlockProducerAPI) *BlockProducerAPI
NewBlockProducerAPI creates a new instance of BlockProducerAPI. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*BlockProducerAPI) EpochLength ¶
func (_m *BlockProducerAPI) EpochLength() uint64
EpochLength provides a mock function with given fields:
func (*BlockProducerAPI) Pause ¶
func (_m *BlockProducerAPI) Pause() error
Pause provides a mock function with given fields:
func (*BlockProducerAPI) Resume ¶
func (_m *BlockProducerAPI) Resume() error
Resume provides a mock function with given fields:
func (*BlockProducerAPI) SlotDuration ¶
func (_m *BlockProducerAPI) SlotDuration() uint64
SlotDuration provides a mock function with given fields:
type CoreAPI ¶
CoreAPI is an autogenerated mock type for the CoreAPI type
func NewCoreAPI ¶
func NewCoreAPI(t mockConstructorTestingTNewCoreAPI) *CoreAPI
NewCoreAPI creates a new instance of CoreAPI. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*CoreAPI) DecodeSessionKeys ¶
DecodeSessionKeys provides a mock function with given fields: enc
func (*CoreAPI) GetMetadata ¶
GetMetadata provides a mock function with given fields: bhash
func (*CoreAPI) GetReadProofAt ¶
GetReadProofAt provides a mock function with given fields: block, keys
func (*CoreAPI) GetRuntimeVersion ¶
GetRuntimeVersion provides a mock function with given fields: bhash
func (*CoreAPI) HandleSubmittedExtrinsic ¶
HandleSubmittedExtrinsic provides a mock function with given fields: _a0
type NetworkAPI ¶
NetworkAPI is an autogenerated mock type for the NetworkAPI type
func NewNetworkAPI ¶
func NewNetworkAPI(t mockConstructorTestingTNewNetworkAPI) *NetworkAPI
NewNetworkAPI creates a new instance of NetworkAPI. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*NetworkAPI) AddReservedPeers ¶
func (_m *NetworkAPI) AddReservedPeers(addrs ...string) error
AddReservedPeers provides a mock function with given fields: addrs
func (*NetworkAPI) Health ¶
func (_m *NetworkAPI) Health() common.Health
Health provides a mock function with given fields:
func (*NetworkAPI) IsStopped ¶
func (_m *NetworkAPI) IsStopped() bool
IsStopped provides a mock function with given fields:
func (*NetworkAPI) NetworkState ¶
func (_m *NetworkAPI) NetworkState() common.NetworkState
NetworkState provides a mock function with given fields:
func (*NetworkAPI) NodeRoles ¶
func (_m *NetworkAPI) NodeRoles() common.Roles
NodeRoles provides a mock function with given fields:
func (*NetworkAPI) Peers ¶
func (_m *NetworkAPI) Peers() []common.PeerInfo
Peers provides a mock function with given fields:
func (*NetworkAPI) RemoveReservedPeers ¶
func (_m *NetworkAPI) RemoveReservedPeers(addrs ...string) error
RemoveReservedPeers provides a mock function with given fields: addrs
func (*NetworkAPI) Start ¶
func (_m *NetworkAPI) Start() error
Start provides a mock function with given fields:
func (*NetworkAPI) StartingBlock ¶
func (_m *NetworkAPI) StartingBlock() int64
StartingBlock provides a mock function with given fields:
func (*NetworkAPI) Stop ¶
func (_m *NetworkAPI) Stop() error
Stop provides a mock function with given fields:
type RPCAPI ¶
RPCAPI is an autogenerated mock type for the RPCAPI type
func NewRPCAPI ¶
func NewRPCAPI(t mockConstructorTestingTNewRPCAPI) *RPCAPI
NewRPCAPI creates a new instance of RPCAPI. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*RPCAPI) BuildMethodNames ¶
BuildMethodNames provides a mock function with given fields: rcvr, name
type RuntimeStorageAPI ¶
RuntimeStorageAPI is an autogenerated mock type for the RuntimeStorageAPI type
func NewRuntimeStorageAPI ¶
func NewRuntimeStorageAPI(t mockConstructorTestingTNewRuntimeStorageAPI) *RuntimeStorageAPI
NewRuntimeStorageAPI creates a new instance of RuntimeStorageAPI. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*RuntimeStorageAPI) GetLocal ¶
func (_m *RuntimeStorageAPI) GetLocal(k []byte) ([]byte, error)
GetLocal provides a mock function with given fields: k
func (*RuntimeStorageAPI) GetPersistent ¶
func (_m *RuntimeStorageAPI) GetPersistent(k []byte) ([]byte, error)
GetPersistent provides a mock function with given fields: k
func (*RuntimeStorageAPI) SetLocal ¶
func (_m *RuntimeStorageAPI) SetLocal(k []byte, v []byte) error
SetLocal provides a mock function with given fields: k, v
func (*RuntimeStorageAPI) SetPersistent ¶
func (_m *RuntimeStorageAPI) SetPersistent(k []byte, v []byte) error
SetPersistent provides a mock function with given fields: k, v
type StorageAPI ¶
StorageAPI is an autogenerated mock type for the StorageAPI type
func NewStorageAPI ¶
func NewStorageAPI(t mockConstructorTestingTNewStorageAPI) *StorageAPI
NewStorageAPI creates a new instance of StorageAPI. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*StorageAPI) GetKeysWithPrefix ¶
GetKeysWithPrefix provides a mock function with given fields: root, prefix
func (*StorageAPI) GetStateRootFromBlock ¶
GetStateRootFromBlock provides a mock function with given fields: bhash
func (*StorageAPI) GetStorage ¶
GetStorage provides a mock function with given fields: root, key
func (*StorageAPI) GetStorageByBlockHash ¶
GetStorageByBlockHash provides a mock function with given fields: bhash, key
func (*StorageAPI) GetStorageChild ¶
GetStorageChild provides a mock function with given fields: root, keyToChild
func (*StorageAPI) GetStorageFromChild ¶
func (_m *StorageAPI) GetStorageFromChild(root *common.Hash, keyToChild []byte, key []byte) ([]byte, error)
GetStorageFromChild provides a mock function with given fields: root, keyToChild, key
func (*StorageAPI) RegisterStorageObserver ¶
func (_m *StorageAPI) RegisterStorageObserver(observer state.Observer)
RegisterStorageObserver provides a mock function with given fields: observer
func (*StorageAPI) UnregisterStorageObserver ¶
func (_m *StorageAPI) UnregisterStorageObserver(observer state.Observer)
UnregisterStorageObserver provides a mock function with given fields: observer
type SyncStateAPI ¶
SyncStateAPI is an autogenerated mock type for the SyncStateAPI type
func NewSyncStateAPI ¶
func NewSyncStateAPI(t mockConstructorTestingTNewSyncStateAPI) *SyncStateAPI
NewSyncStateAPI creates a new instance of SyncStateAPI. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*SyncStateAPI) GenSyncSpec ¶
func (_m *SyncStateAPI) GenSyncSpec(raw bool) (*genesis.Genesis, error)
GenSyncSpec provides a mock function with given fields: raw
type SystemAPI ¶
SystemAPI is an autogenerated mock type for the SystemAPI type
func NewSystemAPI ¶
func NewSystemAPI(t mockConstructorTestingTNewSystemAPI) *SystemAPI
NewSystemAPI creates a new instance of SystemAPI. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*SystemAPI) Properties ¶
Properties provides a mock function with given fields:
func (*SystemAPI) SystemName ¶
SystemName provides a mock function with given fields:
func (*SystemAPI) SystemVersion ¶
SystemVersion provides a mock function with given fields:
type TransactionStateAPI ¶
TransactionStateAPI is an autogenerated mock type for the TransactionStateAPI type
func NewTransactionStateAPI ¶
func NewTransactionStateAPI(t mockConstructorTestingTNewTransactionStateAPI) *TransactionStateAPI
NewTransactionStateAPI creates a new instance of TransactionStateAPI. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*TransactionStateAPI) FreeStatusNotifierChannel ¶
func (_m *TransactionStateAPI) FreeStatusNotifierChannel(ch chan transaction.Status)
FreeStatusNotifierChannel provides a mock function with given fields: ch
func (*TransactionStateAPI) GetStatusNotifierChannel ¶
func (_m *TransactionStateAPI) GetStatusNotifierChannel(ext types.Extrinsic) chan transaction.Status
GetStatusNotifierChannel provides a mock function with given fields: ext
func (*TransactionStateAPI) Pending ¶
func (_m *TransactionStateAPI) Pending() []*transaction.ValidTransaction
Pending provides a mock function with given fields: