keeper

package
v1.1.4-rc2 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2024 License: MIT Imports: 15 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.BinaryCodec,
	storeKey,
	memKey storetypes.StoreKey,
	rarimo types.RarimoKeeper,
	bank bankkeeper.Keeper,
	ak types.AccountKeeper,
) *Keeper

func (Keeper) AddToFreezedQueue

func (k Keeper) AddToFreezedQueue(ctx sdk.Context, block uint64, index *types.OracleIndex)

func (Keeper) AddToMonitorQueue

func (k Keeper) AddToMonitorQueue(ctx sdk.Context, block uint64, operationId string)

func (Keeper) ChangeParamsProposal

func (k Keeper) ChangeParamsProposal(ctx sdk.Context, proposal *types.ChangeParamsProposal) error

func (Keeper) EndBlocker

func (k Keeper) EndBlocker(ctx sdk.Context)

func (Keeper) FreezedQueueIterator

func (k Keeper) FreezedQueueIterator(ctx sdk.Context, endBlock uint64) sdk.Iterator

func (Keeper) GetAllOracle

func (k Keeper) GetAllOracle(ctx sdk.Context) (list []types.Oracle)

GetAllOracle returns all oracles

func (Keeper) GetOracle

func (k Keeper) GetOracle(
	ctx sdk.Context,
	index *types.OracleIndex,
) (val types.Oracle, found bool)

GetOracle returns an oracle from its index

func (Keeper) GetOracleForChain

func (k Keeper) GetOracleForChain(ctx sdk.Context, chain string) (list []types.Oracle)

func (Keeper) GetParams

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

GetParams get all parameters as types.Params

func (Keeper) IterateOverFreezedQueue

func (k Keeper) IterateOverFreezedQueue(ctx sdk.Context, block uint64, cb func(oracle types.Oracle) (stop bool))

func (Keeper) IterateOverMonitorQueue

func (k Keeper) IterateOverMonitorQueue(ctx sdk.Context, block uint64, cb func(operation rarimotypes.Operation) (stop bool))

func (Keeper) Logger

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

func (Keeper) MonitorQueueIterator

func (k Keeper) MonitorQueueIterator(ctx sdk.Context, endBlock uint64) sdk.Iterator

func (Keeper) NoteMissed

func (k Keeper) NoteMissed(ctx sdk.Context, index *types.OracleIndex)

func (Keeper) NoteViolation

func (k Keeper) NoteViolation(ctx sdk.Context, index *types.OracleIndex)

func (Keeper) OracleUnfreezeProposal

func (k Keeper) OracleUnfreezeProposal(ctx sdk.Context, proposal *types.OracleUnfreezeProposal) error

func (Keeper) Params

func (Keeper) RemoveFromFreezedQueue

func (k Keeper) RemoveFromFreezedQueue(ctx sdk.Context, block uint64, index *types.OracleIndex)

func (Keeper) RemoveFromMonitorQueue

func (k Keeper) RemoveFromMonitorQueue(ctx sdk.Context, block uint64, operationId string)

func (Keeper) RemoveOracle

func (k Keeper) RemoveOracle(
	ctx sdk.Context,
	index *types.OracleIndex,
)

RemoveOracle removes an oracle from the store

func (Keeper) SetOracle

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

SetOracle set a specific oracle in the store from its index

func (Keeper) SetParams

func (k Keeper) SetParams(ctx sdk.Context, params types.Params)

SetParams set the params

Jump to

Keyboard shortcuts

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