keeper

package
v0.0.0-...-64405af Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2022 License: Apache-2.0 Imports: 10 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 oracle MsgServer interface for the provided Keeper.

Types

type Keeper

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

Keeper maintains the link to data storage and exposes getter/setter methods for the various parts of the state machine

func NewKeeper

func NewKeeper(stakeKeeper stakingkeeper.Keeper, storeKey sdk.StoreKey, cdc *codec.LegacyAmino, paramSubspace paramtypes.Subspace, consensusNeeded float64) (Keeper, error)

NewKeeper creates new instances of the oracle Keeper

func (Keeper) Codespace

func (k Keeper) Codespace() paramtypes.Subspace

Codespace returns the codespace

func (Keeper) GetProphecy

func (k Keeper) GetProphecy(ctx sdk.Context, id string) (oracletypes.Prophecy, error)

GetProphecy gets the entire prophecy data struct for a given id

func (Keeper) ProcessClaim

func (k Keeper) ProcessClaim(ctx sdk.Context, id string, validator sdk.ValAddress, claim string) (oracletypes.Status, error)

Jump to

Keyboard shortcuts

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