keeper

package
v0.0.0-...-b0ad14f Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2023 License: Apache-2.0 Imports: 13 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 sdk.StoreKey,

	sudoKeeper types.SudoKeeper,
	bankKeeper types.BankKeeper,
) *Keeper

func (Keeper) AddRelayer

func (k Keeper) AddRelayer(ctx sdk.Context, arena, denom, addr string)

func (Keeper) GetAllRelayer

func (k Keeper) GetAllRelayer(ctx sdk.Context) []types.Relayer

used for export genesis

func (Keeper) GetAllThreshold

func (k Keeper) GetAllThreshold(ctx sdk.Context) (list []types.Threshold)

GetAllThreshold returns all threshold

func (Keeper) GetRelayer

func (k Keeper) GetRelayer(ctx sdk.Context, arena, denom string) []string

func (Keeper) GetThreshold

func (k Keeper) GetThreshold(ctx sdk.Context, arena, denom string) (val types.Threshold, found bool)

GetThreshold returns a threshold from its index

func (Keeper) HasRelayer

func (k Keeper) HasRelayer(ctx sdk.Context, arena, denom, addr string) bool

func (Keeper) Logger

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

func (Keeper) RemoveRelayer

func (k Keeper) RemoveRelayer(ctx sdk.Context, arena, denom, addr string)

func (Keeper) SetThreshold

func (k Keeper) SetThreshold(ctx sdk.Context, threshold types.Threshold)

SetThreshold set a specific threshold in the store from its denom

Jump to

Keyboard shortcuts

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