keeper

package
v0.3.0-dev.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: GPL-3.0 Imports: 12 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 Keeper

type Keeper struct {
	Schema               collections.Schema
	DataRequestWasm      collections.Map[[]byte, types.DataRequestWasm]
	ExecutorWasm         collections.Map[[]byte, types.ExecutorWasm]
	WasmExpiration       collections.KeySet[collections.Pair[int64, []byte]]
	CoreContractRegistry collections.Item[string]
	Params               collections.Item[types.Params]
	// contains filtered or unexported fields
}

func (Keeper) EndBlock added in v0.1.4

func (k Keeper) EndBlock(ctx sdk.Context) (err error)

func (Keeper) GetAllDataRequestWasms

func (k Keeper) GetAllDataRequestWasms(ctx sdk.Context) []types.DataRequestWasm

func (Keeper) GetAllExecutorWasms

func (k Keeper) GetAllExecutorWasms(ctx sdk.Context) []types.ExecutorWasm

func (Keeper) GetAuthority added in v0.0.6

func (k Keeper) GetAuthority() string

GetAuthority returns the module's authority.

func (Keeper) GetCoreContractAddr

func (k Keeper) GetCoreContractAddr(ctx context.Context) (sdk.AccAddress, error)

GetCoreContractAddr retrieves the core contract address.

func (Keeper) GetDataRequestWasm

func (k Keeper) GetDataRequestWasm(ctx context.Context, hash string) (types.DataRequestWasm, error)

GetDataRequestWasm retrieves the data request wasm from the store given its hex-encoded hash.

func (Keeper) GetExpiredWasmKeys added in v0.1.4

func (k Keeper) GetExpiredWasmKeys(ctx sdk.Context, expirationHeight int64) ([][]byte, error)

GetExpiredWasmKeys retrieves the keys of the data request wasms that will expire at the given block height.

func (Keeper) IterateDataRequestWasms

func (k Keeper) IterateDataRequestWasms(ctx sdk.Context, callback func(wasm types.DataRequestWasm) (stop bool)) error

IterateDataRequestWasms iterates over the data request wasms and performs a given callback function.

func (Keeper) IterateExecutorWasms

func (k Keeper) IterateExecutorWasms(ctx sdk.Context, callback func(wasm types.ExecutorWasm) (stop bool)) error

IterateExecutorWasms iterates over the executor wasms and performs a given callback function.

func (Keeper) ListDataRequestWasms

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

ListDataRequestWasms returns hashes and expiration block heights of all data request wasms in the store.

func (Keeper) ListExecutorWasms

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

ListExecutorWasms returns hex-encoded hashes of all executor wasms in the store.

func (Keeper) Logger

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

func (Keeper) ProcessExpiredWasms added in v0.1.4

func (k Keeper) ProcessExpiredWasms(ctx sdk.Context) error

Directories

Path Synopsis
Package testutil is a generated GoMock package.
Package testutil is a generated GoMock package.

Jump to

Keyboard shortcuts

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