Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- func NewQuerierImpl(keeper Keeper) types.QueryServer
- type Keeper
- func (k Keeper) GetAllWasms(ctx sdk.Context) []types.Wasm
- func (k Keeper) GetDataRequestWasm(ctx sdk.Context, hash []byte) *types.Wasm
- func (k Keeper) GetOverlayWasm(ctx sdk.Context, hash []byte) *types.Wasm
- func (k Keeper) GetProxyContractRegistry(ctx sdk.Context) sdk.AccAddress
- func (k Keeper) HasDataRequestWasm(ctx sdk.Context, wasm *types.Wasm) bool
- func (k Keeper) HasOverlayWasm(ctx sdk.Context, wasm *types.Wasm) bool
- func (k Keeper) IterateAllDataRequestWasms(ctx sdk.Context, callback func(wasm types.Wasm) (stop bool))
- func (k Keeper) IterateAllOverlayWasms(ctx sdk.Context, callback func(wasm types.Wasm) (stop bool))
- 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)
- func (k Keeper) SetOverlayWasm(ctx sdk.Context, wasm *types.Wasm)
- func (k Keeper) SetProxyContractRegistry(ctx sdk.Context, address sdk.AccAddress)
- 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, req *types.QueryOverlayWasmsRequest) (*types.QueryOverlayWasmsResponse, error)
- func (q Querier) ProxyContractRegistry(c context.Context, req *types.QueryProxyContractRegistryRequest) (*types.QueryProxyContractRegistryResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.
func NewQuerierImpl ¶
func NewQuerierImpl(keeper Keeper) types.QueryServer
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func NewKeeper ¶
func NewKeeper(cdc codec.BinaryCodec, storeKey storetypes.StoreKey, authority string, wk wasmtypes.ContractOpsKeeper) *Keeper
func (Keeper) GetDataRequestWasm ¶
GetDataRequestWasm returns Data Request Wasm given its key.
func (Keeper) GetOverlayWasm ¶
GetOverlayWasm returns Overlay Wasm given its key.
func (Keeper) GetProxyContractRegistry ¶
func (k Keeper) GetProxyContractRegistry(ctx sdk.Context) sdk.AccAddress
GetProxyContractRegistry returns Proxy Contract address.
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))
IterateAllDataRequestWasms iterates over the all the stored Data Request Wasms and performs a given callback function.
func (Keeper) IterateAllOverlayWasms ¶
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.
func (Keeper) SetOverlayWasm ¶
SetOverlayWasm stores Overlay Wasm using its hash as the key.
func (Keeper) SetProxyContractRegistry ¶
func (k Keeper) SetProxyContractRegistry(ctx sdk.Context, address sdk.AccAddress)
SetProxyContractRegistry stores Proxy Contract address.
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, req *types.QueryOverlayWasmsRequest) (*types.QueryOverlayWasmsResponse, error)
func (Querier) ProxyContractRegistry ¶
func (q Querier) ProxyContractRegistry(c context.Context, req *types.QueryProxyContractRegistryRequest) (*types.QueryProxyContractRegistryResponse, error)