keeper

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 11, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMsgServerImpl

func NewMsgServerImpl(keeper Keeper) types.MsgServer

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 {
	// contains filtered or unexported fields
}

func NewKeeper

func NewKeeper(cdc codec.BinaryCodec, storeKey storetypes.StoreKey, authority string, wk wasmtypes.ContractOpsKeeper) *Keeper

func (Keeper) GetAllWasms

func (k Keeper) GetAllWasms(ctx sdk.Context) []types.Wasm

func (Keeper) GetDataRequestWasm

func (k Keeper) GetDataRequestWasm(ctx sdk.Context, hash []byte) *types.Wasm

GetDataRequestWasm returns Data Request Wasm given its key.

func (Keeper) GetOverlayWasm

func (k Keeper) GetOverlayWasm(ctx sdk.Context, hash []byte) *types.Wasm

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

func (k Keeper) HasDataRequestWasm(ctx sdk.Context, wasm *types.Wasm) bool

HasDataRequestWasm checks if a given Data Request Wasm exists.

func (Keeper) HasOverlayWasm

func (k Keeper) HasOverlayWasm(ctx sdk.Context, wasm *types.Wasm) bool

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

func (k Keeper) IterateAllOverlayWasms(ctx sdk.Context, callback func(wasm types.Wasm) (stop bool))

IterateAllOverlayWasms iterates over the all the stored Overlay Wasms and performs a given callback function.

func (Keeper) ListDataRequestWasms

func (k Keeper) ListDataRequestWasms(ctx sdk.Context) []string

ListDataRequestWasms returns hashes and types of all Data Request Wasms in the store.

func (Keeper) ListOverlayWasms

func (k Keeper) ListOverlayWasms(ctx sdk.Context) []string

ListOverlayWasms returns hashes and types of all Overlay Wasms in the store.

func (Keeper) Logger

func (k Keeper) Logger(ctx sdk.Context) log.Logger

func (Keeper) SetDataRequestWasm

func (k Keeper) SetDataRequestWasm(ctx sdk.Context, wasm *types.Wasm)

SetDataRequestWasm stores Data Request Wasm using its hash as the key.

func (Keeper) SetOverlayWasm

func (k Keeper) SetOverlayWasm(ctx sdk.Context, wasm *types.Wasm)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL