Documentation ¶
Index ¶
- type NewStateT
- type State
- func (_m *State) GetChildKeys(childStorageKey types.StorageKey, prefix types.StorageKey, ...) ([]types.StorageKey, error)
- func (_m *State) GetChildKeysLatest(childStorageKey types.StorageKey, prefix types.StorageKey) ([]types.StorageKey, error)
- func (_m *State) GetChildStorage(childStorageKey types.StorageKey, key types.StorageKey, target interface{}, ...) (bool, error)
- func (_m *State) GetChildStorageHash(childStorageKey types.StorageKey, key types.StorageKey, blockHash types.Hash) (types.Hash, error)
- func (_m *State) GetChildStorageHashLatest(childStorageKey types.StorageKey, key types.StorageKey) (types.Hash, error)
- func (_m *State) GetChildStorageLatest(childStorageKey types.StorageKey, key types.StorageKey, target interface{}) (bool, error)
- func (_m *State) GetChildStorageRaw(childStorageKey types.StorageKey, key types.StorageKey, blockHash types.Hash) (*types.StorageDataRaw, error)
- func (_m *State) GetChildStorageRawLatest(childStorageKey types.StorageKey, key types.StorageKey) (*types.StorageDataRaw, error)
- func (_m *State) GetChildStorageSize(childStorageKey types.StorageKey, key types.StorageKey, blockHash types.Hash) (types.U64, error)
- func (_m *State) GetChildStorageSizeLatest(childStorageKey types.StorageKey, key types.StorageKey) (types.U64, error)
- func (_m *State) GetKeys(prefix types.StorageKey, blockHash types.Hash) ([]types.StorageKey, error)
- func (_m *State) GetKeysLatest(prefix types.StorageKey) ([]types.StorageKey, error)
- func (_m *State) GetMetadata(blockHash types.Hash) (*types.Metadata, error)
- func (_m *State) GetMetadataLatest() (*types.Metadata, error)
- func (_m *State) GetRuntimeVersion(blockHash types.Hash) (*types.RuntimeVersion, error)
- func (_m *State) GetRuntimeVersionLatest() (*types.RuntimeVersion, error)
- func (_m *State) GetStorage(key types.StorageKey, target interface{}, blockHash types.Hash) (bool, error)
- func (_m *State) GetStorageHash(key types.StorageKey, blockHash types.Hash) (types.Hash, error)
- func (_m *State) GetStorageHashLatest(key types.StorageKey) (types.Hash, error)
- func (_m *State) GetStorageLatest(key types.StorageKey, target interface{}) (bool, error)
- func (_m *State) GetStorageRaw(key types.StorageKey, blockHash types.Hash) (*types.StorageDataRaw, error)
- func (_m *State) GetStorageRawLatest(key types.StorageKey) (*types.StorageDataRaw, error)
- func (_m *State) GetStorageSize(key types.StorageKey, blockHash types.Hash) (types.U64, error)
- func (_m *State) GetStorageSizeLatest(key types.StorageKey) (types.U64, error)
- func (_m *State) QueryStorage(keys []types.StorageKey, startBlock types.Hash, block types.Hash) ([]types.StorageChangeSet, error)
- func (_m *State) QueryStorageAt(keys []types.StorageKey, block types.Hash) ([]types.StorageChangeSet, error)
- func (_m *State) QueryStorageAtLatest(keys []types.StorageKey) ([]types.StorageChangeSet, error)
- func (_m *State) QueryStorageLatest(keys []types.StorageKey, startBlock types.Hash) ([]types.StorageChangeSet, error)
- func (_m *State) SubscribeRuntimeVersion() (*state.RuntimeVersionSubscription, error)
- func (_m *State) SubscribeStorageRaw(keys []types.StorageKey) (*state.StorageSubscription, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type State ¶
State is an autogenerated mock type for the State type
func NewState ¶
NewState creates a new instance of State. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*State) GetChildKeys ¶
func (_m *State) 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 (*State) GetChildKeysLatest ¶
func (_m *State) GetChildKeysLatest(childStorageKey types.StorageKey, prefix types.StorageKey) ([]types.StorageKey, error)
GetChildKeysLatest provides a mock function with given fields: childStorageKey, prefix
func (*State) GetChildStorage ¶
func (_m *State) 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 (*State) GetChildStorageHash ¶
func (_m *State) 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 (*State) GetChildStorageHashLatest ¶
func (_m *State) GetChildStorageHashLatest(childStorageKey types.StorageKey, key types.StorageKey) (types.Hash, error)
GetChildStorageHashLatest provides a mock function with given fields: childStorageKey, key
func (*State) GetChildStorageLatest ¶
func (_m *State) GetChildStorageLatest(childStorageKey types.StorageKey, key types.StorageKey, target interface{}) (bool, error)
GetChildStorageLatest provides a mock function with given fields: childStorageKey, key, target
func (*State) GetChildStorageRaw ¶
func (_m *State) 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 (*State) GetChildStorageRawLatest ¶
func (_m *State) GetChildStorageRawLatest(childStorageKey types.StorageKey, key types.StorageKey) (*types.StorageDataRaw, error)
GetChildStorageRawLatest provides a mock function with given fields: childStorageKey, key
func (*State) GetChildStorageSize ¶
func (_m *State) 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 (*State) GetChildStorageSizeLatest ¶
func (_m *State) GetChildStorageSizeLatest(childStorageKey types.StorageKey, key types.StorageKey) (types.U64, error)
GetChildStorageSizeLatest provides a mock function with given fields: childStorageKey, key
func (*State) GetKeys ¶
func (_m *State) GetKeys(prefix types.StorageKey, blockHash types.Hash) ([]types.StorageKey, error)
GetKeys provides a mock function with given fields: prefix, blockHash
func (*State) GetKeysLatest ¶
func (_m *State) GetKeysLatest(prefix types.StorageKey) ([]types.StorageKey, error)
GetKeysLatest provides a mock function with given fields: prefix
func (*State) GetMetadata ¶
GetMetadata provides a mock function with given fields: blockHash
func (*State) GetMetadataLatest ¶
GetMetadataLatest provides a mock function with given fields:
func (*State) GetRuntimeVersion ¶
GetRuntimeVersion provides a mock function with given fields: blockHash
func (*State) GetRuntimeVersionLatest ¶
func (_m *State) GetRuntimeVersionLatest() (*types.RuntimeVersion, error)
GetRuntimeVersionLatest provides a mock function with given fields:
func (*State) GetStorage ¶
func (_m *State) GetStorage(key types.StorageKey, target interface{}, blockHash types.Hash) (bool, error)
GetStorage provides a mock function with given fields: key, target, blockHash
func (*State) GetStorageHash ¶
GetStorageHash provides a mock function with given fields: key, blockHash
func (*State) GetStorageHashLatest ¶
GetStorageHashLatest provides a mock function with given fields: key
func (*State) GetStorageLatest ¶
func (_m *State) GetStorageLatest(key types.StorageKey, target interface{}) (bool, error)
GetStorageLatest provides a mock function with given fields: key, target
func (*State) GetStorageRaw ¶
func (_m *State) GetStorageRaw(key types.StorageKey, blockHash types.Hash) (*types.StorageDataRaw, error)
GetStorageRaw provides a mock function with given fields: key, blockHash
func (*State) GetStorageRawLatest ¶
func (_m *State) GetStorageRawLatest(key types.StorageKey) (*types.StorageDataRaw, error)
GetStorageRawLatest provides a mock function with given fields: key
func (*State) GetStorageSize ¶
GetStorageSize provides a mock function with given fields: key, blockHash
func (*State) GetStorageSizeLatest ¶
GetStorageSizeLatest provides a mock function with given fields: key
func (*State) QueryStorage ¶
func (_m *State) 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 (*State) QueryStorageAt ¶
func (_m *State) QueryStorageAt(keys []types.StorageKey, block types.Hash) ([]types.StorageChangeSet, error)
QueryStorageAt provides a mock function with given fields: keys, block
func (*State) QueryStorageAtLatest ¶
func (_m *State) QueryStorageAtLatest(keys []types.StorageKey) ([]types.StorageChangeSet, error)
QueryStorageAtLatest provides a mock function with given fields: keys
func (*State) QueryStorageLatest ¶
func (_m *State) QueryStorageLatest(keys []types.StorageKey, startBlock types.Hash) ([]types.StorageChangeSet, error)
QueryStorageLatest provides a mock function with given fields: keys, startBlock
func (*State) SubscribeRuntimeVersion ¶
func (_m *State) SubscribeRuntimeVersion() (*state.RuntimeVersionSubscription, error)
SubscribeRuntimeVersion provides a mock function with given fields:
func (*State) SubscribeStorageRaw ¶
func (_m *State) SubscribeStorageRaw(keys []types.StorageKey) (*state.StorageSubscription, error)
SubscribeStorageRaw provides a mock function with given fields: keys