keeper

package
v2.1.0-alpha1 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2022 License: Apache-2.0 Imports: 9 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.

Types

type Keeper

type Keeper struct {
	// contains filtered or unexported fields
}

func NewKeeper

func NewKeeper(
	cdc codec.Marshaler,
	storeKey,
	memKey sdk.StoreKey,
	accountKeeper types.AccountKeeper,
) *Keeper

func (Keeper) GetAllOracles

func (k Keeper) GetAllOracles(ctx sdk.Context) ([]types.Oracle, error)

func (Keeper) GetOracle

func (k Keeper) GetOracle(ctx sdk.Context, oracleAddress sdk.AccAddress) (types.Oracle, error)

func (Keeper) IsRegisteredOracle

func (k Keeper) IsRegisteredOracle(ctx sdk.Context, oracleAddress sdk.AccAddress) bool

func (Keeper) Logger

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

func (Keeper) Oracle

func (Keeper) RegisterOracle

func (k Keeper) RegisterOracle(ctx sdk.Context, oracle types.Oracle) error

func (Keeper) SetOracle

func (k Keeper) SetOracle(ctx sdk.Context, oracle types.Oracle) error

func (Keeper) UpdateOracle

func (k Keeper) UpdateOracle(ctx sdk.Context, address sdk.AccAddress, endpoint string) error

Jump to

Keyboard shortcuts

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