Documentation ¶
Index ¶
- Variables
- func GetDataRequestWasmKeyPrefixFull(hash []byte) []byte
- func GetOverlayWasmKeyPrefixFull(hash []byte) []byte
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- func NewQuerierImpl(keeper Keeper) types.QueryServer
- type EventStoreDataRequestWasmWrapper
- type EventStoreOverlayWasmWrapper
- type Keeper
- func (k Keeper) GetAllWasms(ctx sdk.Context) []types.Wasm
- func (k Keeper) GetAuthority() string
- func (k Keeper) GetDataRequestWasm(ctx sdk.Context, hash []byte) (*types.Wasm, error)
- func (k Keeper) GetOverlayWasm(ctx sdk.Context, hash []byte) (*types.Wasm, error)
- func (k Keeper) HasDataRequestWasm(ctx sdk.Context, wasm *types.Wasm) (bool, error)
- func (k Keeper) HasOverlayWasm(ctx sdk.Context, wasm *types.Wasm) (bool, error)
- func (k Keeper) IterateAllDataRequestWasms(ctx sdk.Context, callback func(wasm types.Wasm) (stop bool)) error
- func (k Keeper) IterateAllOverlayWasms(ctx sdk.Context, callback func(wasm types.Wasm) (stop bool)) error
- func (k Keeper) ListDataRequestWasms(ctx sdk.Context) []string
- func (k Keeper) ListOverlayWasms(ctx sdk.Context) []string
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) SetDataRequestWasm(ctx sdk.Context, wasm *types.Wasm) error
- func (k Keeper) SetOverlayWasm(ctx sdk.Context, wasm *types.Wasm) error
- type Querier
- func (q Querier) DataRequestWasm(c context.Context, req *types.QueryDataRequestWasmRequest) (*types.QueryDataRequestWasmResponse, error)
- func (q Querier) DataRequestWasms(c context.Context, _ *types.QueryDataRequestWasmsRequest) (*types.QueryDataRequestWasmsResponse, error)
- func (q Querier) OverlayWasm(c context.Context, req *types.QueryOverlayWasmRequest) (*types.QueryOverlayWasmResponse, error)
- func (q Querier) OverlayWasms(c context.Context, _ *types.QueryOverlayWasmsRequest) (*types.QueryOverlayWasmsResponse, error)
- func (q Querier) ProxyContractRegistry(c context.Context, _ *types.QueryProxyContractRegistryRequest) (*types.QueryProxyContractRegistryResponse, error)
Constants ¶
This section is empty.
Variables ¶
var ( // DataRequestPrefix defines prefix to store Data Request Wasm binaries. DataRequestPrefix = collections.NewPrefix(0) // OverlayPrefix defines prefix to store Overlay Wasm binaries. OverlayPrefix = collections.NewPrefix(1) ParamsPrefix = collections.NewPrefix(2) )
Functions ¶
func GetDataRequestWasmKeyPrefixFull ¶ added in v0.1.2
func GetOverlayWasmKeyPrefixFull ¶ added in v0.1.2
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.
func NewQuerierImpl ¶
func NewQuerierImpl(keeper Keeper) types.QueryServer
Types ¶
type EventStoreDataRequestWasmWrapper ¶
type EventStoreDataRequestWasmWrapper struct {
*types.EventStoreDataRequestWasm
}
func (EventStoreDataRequestWasmWrapper) MarshalJSON ¶
func (e EventStoreDataRequestWasmWrapper) MarshalJSON() ([]byte, error)
MarshalJSON customizes the JSON encoding of the type that implements it
type EventStoreOverlayWasmWrapper ¶
type EventStoreOverlayWasmWrapper struct {
*types.EventStoreOverlayWasm
}
func (EventStoreOverlayWasmWrapper) MarshalJSON ¶
func (e EventStoreOverlayWasmWrapper) MarshalJSON() ([]byte, error)
type Keeper ¶
type Keeper struct { // state management Schema collections.Schema DataRequestWasm collections.Map[[]byte, types.Wasm] OverlayWasm collections.Map[[]byte, types.Wasm] ProxyContractRegistry collections.Item[[]byte] Params collections.Item[types.Params] // contains filtered or unexported fields }
func NewKeeper ¶
func NewKeeper(cdc codec.BinaryCodec, storeService storetypes.KVStoreService, authority string, wk wasmtypes.ContractOpsKeeper) *Keeper
func (Keeper) GetAuthority ¶ added in v0.0.6
GetAuthority returns the module's authority.
func (Keeper) GetDataRequestWasm ¶
GetDataRequestWasm returns Data Request Wasm given its key.
func (Keeper) GetOverlayWasm ¶
GetOverlayWasm returns Overlay Wasm given its key.
func (Keeper) HasDataRequestWasm ¶
HasDataRequestWasm checks if a given Data Request Wasm exists.
func (Keeper) HasOverlayWasm ¶
HasOverlayWasm checks if a given Overlay Wasm exists.
func (Keeper) IterateAllDataRequestWasms ¶
func (k Keeper) IterateAllDataRequestWasms(ctx sdk.Context, callback func(wasm types.Wasm) (stop bool)) error
IterateAllDataRequestWasms iterates over the all the stored Data Request Wasms and performs a given callback function.
func (Keeper) IterateAllOverlayWasms ¶
func (k Keeper) IterateAllOverlayWasms(ctx sdk.Context, callback func(wasm types.Wasm) (stop bool)) error
IterateAllOverlayWasms iterates over the all the stored Overlay Wasms and performs a given callback function.
func (Keeper) ListDataRequestWasms ¶
ListDataRequestWasms returns hashes and types of all Data Request Wasms in the store.
func (Keeper) ListOverlayWasms ¶
ListOverlayWasms returns hashes and types of all Overlay Wasms in the store.
func (Keeper) SetDataRequestWasm ¶
SetDataRequestWasm stores Data Request Wasm using its hash as the key.
type Querier ¶
type Querier struct {
Keeper
}
func (Querier) DataRequestWasm ¶
func (q Querier) DataRequestWasm(c context.Context, req *types.QueryDataRequestWasmRequest) (*types.QueryDataRequestWasmResponse, error)
func (Querier) DataRequestWasms ¶
func (q Querier) DataRequestWasms(c context.Context, _ *types.QueryDataRequestWasmsRequest) (*types.QueryDataRequestWasmsResponse, error)
func (Querier) OverlayWasm ¶
func (q Querier) OverlayWasm(c context.Context, req *types.QueryOverlayWasmRequest) (*types.QueryOverlayWasmResponse, error)
func (Querier) OverlayWasms ¶
func (q Querier) OverlayWasms(c context.Context, _ *types.QueryOverlayWasmsRequest) (*types.QueryOverlayWasmsResponse, error)
func (Querier) ProxyContractRegistry ¶
func (q Querier) ProxyContractRegistry(c context.Context, _ *types.QueryProxyContractRegistryRequest) (*types.QueryProxyContractRegistryResponse, error)