Documentation ¶
Index ¶
- type SubstrateApiI
- func (_m *SubstrateApiI) GetBlock(blockHash types.Hash) (*types.SignedBlock, error)
- func (_m *SubstrateApiI) GetBlockHash(blockNumber uint64) (types.Hash, error)
- func (_m *SubstrateApiI) GetBlockHashLatest() (types.Hash, error)
- func (_m *SubstrateApiI) GetBlockLatest() (*types.SignedBlock, error)
- func (_m *SubstrateApiI) GetChildKeys(childStorageKey types.StorageKey, prefix types.StorageKey, ...) ([]types.StorageKey, error)
- func (_m *SubstrateApiI) GetChildKeysLatest(childStorageKey types.StorageKey, prefix types.StorageKey) ([]types.StorageKey, error)
- func (_m *SubstrateApiI) GetChildStorage(childStorageKey types.StorageKey, key types.StorageKey, target interface{}, ...) (bool, error)
- func (_m *SubstrateApiI) GetChildStorageHash(childStorageKey types.StorageKey, key types.StorageKey, blockHash types.Hash) (types.Hash, error)
- func (_m *SubstrateApiI) GetChildStorageHashLatest(childStorageKey types.StorageKey, key types.StorageKey) (types.Hash, error)
- func (_m *SubstrateApiI) GetChildStorageLatest(childStorageKey types.StorageKey, key types.StorageKey, target interface{}) (bool, error)
- func (_m *SubstrateApiI) GetChildStorageRaw(childStorageKey types.StorageKey, key types.StorageKey, blockHash types.Hash) (*types.StorageDataRaw, error)
- func (_m *SubstrateApiI) GetChildStorageRawLatest(childStorageKey types.StorageKey, key types.StorageKey) (*types.StorageDataRaw, error)
- func (_m *SubstrateApiI) GetChildStorageSize(childStorageKey types.StorageKey, key types.StorageKey, blockHash types.Hash) (types.U64, error)
- func (_m *SubstrateApiI) GetChildStorageSizeLatest(childStorageKey types.StorageKey, key types.StorageKey) (types.U64, error)
- func (_m *SubstrateApiI) GetFinalizedHead() (types.Hash, error)
- func (_m *SubstrateApiI) GetHeader(blockHash types.Hash) (*types.Header, error)
- func (_m *SubstrateApiI) GetHeaderLatest() (*types.Header, error)
- func (_m *SubstrateApiI) GetKeys(prefix types.StorageKey, blockHash types.Hash) ([]types.StorageKey, error)
- func (_m *SubstrateApiI) GetKeysLatest(prefix types.StorageKey) ([]types.StorageKey, error)
- func (_m *SubstrateApiI) GetMetadata(blockHash types.Hash) (*types.Metadata, error)
- func (_m *SubstrateApiI) GetMetadataLatest() (*types.Metadata, error)
- func (_m *SubstrateApiI) GetRuntimeVersion(blockHash types.Hash) (*types.RuntimeVersion, error)
- func (_m *SubstrateApiI) GetRuntimeVersionLatest() (*types.RuntimeVersion, error)
- func (_m *SubstrateApiI) GetStorage(key types.StorageKey, target interface{}, blockHash types.Hash) (bool, error)
- func (_m *SubstrateApiI) GetStorageHash(key types.StorageKey, blockHash types.Hash) (types.Hash, error)
- func (_m *SubstrateApiI) GetStorageHashLatest(key types.StorageKey) (types.Hash, error)
- func (_m *SubstrateApiI) GetStorageLatest(key types.StorageKey, target interface{}) (bool, error)
- func (_m *SubstrateApiI) GetStorageRaw(key types.StorageKey, blockHash types.Hash) (*types.StorageDataRaw, error)
- func (_m *SubstrateApiI) GetStorageRawLatest(key types.StorageKey) (*types.StorageDataRaw, error)
- func (_m *SubstrateApiI) GetStorageSize(key types.StorageKey, blockHash types.Hash) (types.U64, error)
- func (_m *SubstrateApiI) GetStorageSizeLatest(key types.StorageKey) (types.U64, error)
- func (_m *SubstrateApiI) PendingExtrinsics() ([]types.Extrinsic, error)
- func (_m *SubstrateApiI) QueryStorage(keys []types.StorageKey, startBlock types.Hash, block types.Hash) ([]types.StorageChangeSet, error)
- func (_m *SubstrateApiI) QueryStorageAt(keys []types.StorageKey, block types.Hash) ([]types.StorageChangeSet, error)
- func (_m *SubstrateApiI) QueryStorageAtLatest(keys []types.StorageKey) ([]types.StorageChangeSet, error)
- func (_m *SubstrateApiI) QueryStorageLatest(keys []types.StorageKey, startBlock types.Hash) ([]types.StorageChangeSet, error)
- func (_m *SubstrateApiI) SubmitAndWatchExtrinsic(xt types.Extrinsic) (*author.ExtrinsicStatusSubscription, error)
- func (_m *SubstrateApiI) SubmitExtrinsic(xt types.Extrinsic) (types.Hash, error)
- func (_m *SubstrateApiI) SubscribeFinalizedHeads() (*chain.FinalizedHeadsSubscription, error)
- func (_m *SubstrateApiI) SubscribeNewHeads() (*chain.NewHeadsSubscription, error)
- func (_m *SubstrateApiI) SubscribeRuntimeVersion() (*state.RuntimeVersionSubscription, error)
- func (_m *SubstrateApiI) SubscribeStorageRaw(keys []types.StorageKey) (*state.StorageSubscription, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SubstrateApiI ¶
SubstrateApiI is an autogenerated mock type for the SubstrateApiI type
func NewSubstrateApiI ¶
func NewSubstrateApiI(t mockConstructorTestingTNewSubstrateApiI) *SubstrateApiI
NewSubstrateApiI creates a new instance of SubstrateApiI. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*SubstrateApiI) GetBlock ¶
func (_m *SubstrateApiI) GetBlock(blockHash types.Hash) (*types.SignedBlock, error)
GetBlock provides a mock function with given fields: blockHash
func (*SubstrateApiI) GetBlockHash ¶
func (_m *SubstrateApiI) GetBlockHash(blockNumber uint64) (types.Hash, error)
GetBlockHash provides a mock function with given fields: blockNumber
func (*SubstrateApiI) GetBlockHashLatest ¶
func (_m *SubstrateApiI) GetBlockHashLatest() (types.Hash, error)
GetBlockHashLatest provides a mock function with given fields:
func (*SubstrateApiI) GetBlockLatest ¶
func (_m *SubstrateApiI) GetBlockLatest() (*types.SignedBlock, error)
GetBlockLatest provides a mock function with given fields:
func (*SubstrateApiI) GetChildKeys ¶
func (_m *SubstrateApiI) GetChildKeys(childStorageKey types.StorageKey, prefix types.StorageKey, blockHash types.Hash) ([]types.StorageKey, error)
GetChildKeys provides a mock function with given fields: childStorageKey, prefix, blockHash
func (*SubstrateApiI) GetChildKeysLatest ¶
func (_m *SubstrateApiI) GetChildKeysLatest(childStorageKey types.StorageKey, prefix types.StorageKey) ([]types.StorageKey, error)
GetChildKeysLatest provides a mock function with given fields: childStorageKey, prefix
func (*SubstrateApiI) GetChildStorage ¶
func (_m *SubstrateApiI) GetChildStorage(childStorageKey types.StorageKey, key types.StorageKey, target interface{}, blockHash types.Hash) (bool, error)
GetChildStorage provides a mock function with given fields: childStorageKey, key, target, blockHash
func (*SubstrateApiI) GetChildStorageHash ¶
func (_m *SubstrateApiI) GetChildStorageHash(childStorageKey types.StorageKey, key types.StorageKey, blockHash types.Hash) (types.Hash, error)
GetChildStorageHash provides a mock function with given fields: childStorageKey, key, blockHash
func (*SubstrateApiI) GetChildStorageHashLatest ¶
func (_m *SubstrateApiI) GetChildStorageHashLatest(childStorageKey types.StorageKey, key types.StorageKey) (types.Hash, error)
GetChildStorageHashLatest provides a mock function with given fields: childStorageKey, key
func (*SubstrateApiI) GetChildStorageLatest ¶
func (_m *SubstrateApiI) GetChildStorageLatest(childStorageKey types.StorageKey, key types.StorageKey, target interface{}) (bool, error)
GetChildStorageLatest provides a mock function with given fields: childStorageKey, key, target
func (*SubstrateApiI) GetChildStorageRaw ¶
func (_m *SubstrateApiI) GetChildStorageRaw(childStorageKey types.StorageKey, key types.StorageKey, blockHash types.Hash) (*types.StorageDataRaw, error)
GetChildStorageRaw provides a mock function with given fields: childStorageKey, key, blockHash
func (*SubstrateApiI) GetChildStorageRawLatest ¶
func (_m *SubstrateApiI) GetChildStorageRawLatest(childStorageKey types.StorageKey, key types.StorageKey) (*types.StorageDataRaw, error)
GetChildStorageRawLatest provides a mock function with given fields: childStorageKey, key
func (*SubstrateApiI) GetChildStorageSize ¶
func (_m *SubstrateApiI) GetChildStorageSize(childStorageKey types.StorageKey, key types.StorageKey, blockHash types.Hash) (types.U64, error)
GetChildStorageSize provides a mock function with given fields: childStorageKey, key, blockHash
func (*SubstrateApiI) GetChildStorageSizeLatest ¶
func (_m *SubstrateApiI) GetChildStorageSizeLatest(childStorageKey types.StorageKey, key types.StorageKey) (types.U64, error)
GetChildStorageSizeLatest provides a mock function with given fields: childStorageKey, key
func (*SubstrateApiI) GetFinalizedHead ¶
func (_m *SubstrateApiI) GetFinalizedHead() (types.Hash, error)
GetFinalizedHead provides a mock function with given fields:
func (*SubstrateApiI) GetHeaderLatest ¶
func (_m *SubstrateApiI) GetHeaderLatest() (*types.Header, error)
GetHeaderLatest provides a mock function with given fields:
func (*SubstrateApiI) GetKeys ¶
func (_m *SubstrateApiI) GetKeys(prefix types.StorageKey, blockHash types.Hash) ([]types.StorageKey, error)
GetKeys provides a mock function with given fields: prefix, blockHash
func (*SubstrateApiI) GetKeysLatest ¶
func (_m *SubstrateApiI) GetKeysLatest(prefix types.StorageKey) ([]types.StorageKey, error)
GetKeysLatest provides a mock function with given fields: prefix
func (*SubstrateApiI) GetMetadata ¶
GetMetadata provides a mock function with given fields: blockHash
func (*SubstrateApiI) GetMetadataLatest ¶
func (_m *SubstrateApiI) GetMetadataLatest() (*types.Metadata, error)
GetMetadataLatest provides a mock function with given fields:
func (*SubstrateApiI) GetRuntimeVersion ¶
func (_m *SubstrateApiI) GetRuntimeVersion(blockHash types.Hash) (*types.RuntimeVersion, error)
GetRuntimeVersion provides a mock function with given fields: blockHash
func (*SubstrateApiI) GetRuntimeVersionLatest ¶
func (_m *SubstrateApiI) GetRuntimeVersionLatest() (*types.RuntimeVersion, error)
GetRuntimeVersionLatest provides a mock function with given fields:
func (*SubstrateApiI) GetStorage ¶
func (_m *SubstrateApiI) GetStorage(key types.StorageKey, target interface{}, blockHash types.Hash) (bool, error)
GetStorage provides a mock function with given fields: key, target, blockHash
func (*SubstrateApiI) GetStorageHash ¶
func (_m *SubstrateApiI) GetStorageHash(key types.StorageKey, blockHash types.Hash) (types.Hash, error)
GetStorageHash provides a mock function with given fields: key, blockHash
func (*SubstrateApiI) GetStorageHashLatest ¶
func (_m *SubstrateApiI) GetStorageHashLatest(key types.StorageKey) (types.Hash, error)
GetStorageHashLatest provides a mock function with given fields: key
func (*SubstrateApiI) GetStorageLatest ¶
func (_m *SubstrateApiI) GetStorageLatest(key types.StorageKey, target interface{}) (bool, error)
GetStorageLatest provides a mock function with given fields: key, target
func (*SubstrateApiI) GetStorageRaw ¶
func (_m *SubstrateApiI) GetStorageRaw(key types.StorageKey, blockHash types.Hash) (*types.StorageDataRaw, error)
GetStorageRaw provides a mock function with given fields: key, blockHash
func (*SubstrateApiI) GetStorageRawLatest ¶
func (_m *SubstrateApiI) GetStorageRawLatest(key types.StorageKey) (*types.StorageDataRaw, error)
GetStorageRawLatest provides a mock function with given fields: key
func (*SubstrateApiI) GetStorageSize ¶
func (_m *SubstrateApiI) GetStorageSize(key types.StorageKey, blockHash types.Hash) (types.U64, error)
GetStorageSize provides a mock function with given fields: key, blockHash
func (*SubstrateApiI) GetStorageSizeLatest ¶
func (_m *SubstrateApiI) GetStorageSizeLatest(key types.StorageKey) (types.U64, error)
GetStorageSizeLatest provides a mock function with given fields: key
func (*SubstrateApiI) PendingExtrinsics ¶
func (_m *SubstrateApiI) PendingExtrinsics() ([]types.Extrinsic, error)
PendingExtrinsics provides a mock function with given fields:
func (*SubstrateApiI) QueryStorage ¶
func (_m *SubstrateApiI) QueryStorage(keys []types.StorageKey, startBlock types.Hash, block types.Hash) ([]types.StorageChangeSet, error)
QueryStorage provides a mock function with given fields: keys, startBlock, block
func (*SubstrateApiI) QueryStorageAt ¶
func (_m *SubstrateApiI) QueryStorageAt(keys []types.StorageKey, block types.Hash) ([]types.StorageChangeSet, error)
QueryStorageAt provides a mock function with given fields: keys, block
func (*SubstrateApiI) QueryStorageAtLatest ¶
func (_m *SubstrateApiI) QueryStorageAtLatest(keys []types.StorageKey) ([]types.StorageChangeSet, error)
QueryStorageAtLatest provides a mock function with given fields: keys
func (*SubstrateApiI) QueryStorageLatest ¶
func (_m *SubstrateApiI) QueryStorageLatest(keys []types.StorageKey, startBlock types.Hash) ([]types.StorageChangeSet, error)
QueryStorageLatest provides a mock function with given fields: keys, startBlock
func (*SubstrateApiI) SubmitAndWatchExtrinsic ¶
func (_m *SubstrateApiI) SubmitAndWatchExtrinsic(xt types.Extrinsic) (*author.ExtrinsicStatusSubscription, error)
SubmitAndWatchExtrinsic provides a mock function with given fields: xt
func (*SubstrateApiI) SubmitExtrinsic ¶
SubmitExtrinsic provides a mock function with given fields: xt
func (*SubstrateApiI) SubscribeFinalizedHeads ¶
func (_m *SubstrateApiI) SubscribeFinalizedHeads() (*chain.FinalizedHeadsSubscription, error)
SubscribeFinalizedHeads provides a mock function with given fields:
func (*SubstrateApiI) SubscribeNewHeads ¶
func (_m *SubstrateApiI) SubscribeNewHeads() (*chain.NewHeadsSubscription, error)
SubscribeNewHeads provides a mock function with given fields:
func (*SubstrateApiI) SubscribeRuntimeVersion ¶
func (_m *SubstrateApiI) SubscribeRuntimeVersion() (*state.RuntimeVersionSubscription, error)
SubscribeRuntimeVersion provides a mock function with given fields:
func (*SubstrateApiI) SubscribeStorageRaw ¶
func (_m *SubstrateApiI) SubscribeStorageRaw(keys []types.StorageKey) (*state.StorageSubscription, error)
SubscribeStorageRaw provides a mock function with given fields: keys