keeper

package
v0.5.0-dev.7 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2025 License: GPL-3.0 Imports: 16 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
	OracleProgram        collections.Map[[]byte, types.OracleProgram]
	CoreContractRegistry collections.Item[string]
	Params               collections.Item[types.Params]
	// contains filtered or unexported fields
}

func (Keeper) GetAllOraclePrograms

func (k Keeper) GetAllOraclePrograms(ctx sdk.Context) []types.OracleProgram

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) GetOracleProgram

func (k Keeper) GetOracleProgram(ctx context.Context, hash string) (types.OracleProgram, error)

GetOracleProgram retrieves the oracle program from the store given its hex-encoded hash.

func (Keeper) GetParams added in v0.0.6

func (k Keeper) GetParams(ctx sdk.Context) (types.Params, error)

func (Keeper) IterateOraclePrograms

func (k Keeper) IterateOraclePrograms(ctx sdk.Context, callback func(program types.OracleProgram) (stop bool)) error

IterateOraclePrograms iterates over the oracle programs and performs a given callback function.

func (Keeper) ListOraclePrograms

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

ListOraclePrograms returns hashes of all oracle programs in the store.

func (Keeper) Logger

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

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