keeper

package
v4.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Keeper

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

func NewKeeper

func NewKeeper(
	cdc codec.Codec,
	storeKey storetypes.StoreKey,
	transientKey *storetypes.TransientStoreKey,
	authKeeper types.AccountKeeper,
	bankKeeper types.BankKeeper,
	channelKeeper types.ChannelKeeper,
	transferKeeper types.TransferKeeper,
) *Keeper

func (*Keeper) Address

func (*Keeper) ClearAccount

func (k *Keeper) ClearAccount(goCtx context.Context, msg *types.MsgClearAccount) (*types.MsgClearAccountResponse, error)

func (*Keeper) ExecuteForwards

func (k *Keeper) ExecuteForwards(ctx sdk.Context)

ExecuteForwards is an end block hook that clears all pending forwards from transient state.

func (*Keeper) GetAllNumOfAccounts

func (k *Keeper) GetAllNumOfAccounts(ctx sdk.Context) map[string]uint64

func (*Keeper) GetAllNumOfForwards

func (k *Keeper) GetAllNumOfForwards(ctx sdk.Context) map[string]uint64

func (*Keeper) GetAllTotalForwarded

func (k *Keeper) GetAllTotalForwarded(ctx sdk.Context) map[string]string

func (*Keeper) GetNumOfAccounts

func (k *Keeper) GetNumOfAccounts(ctx sdk.Context, channel string) uint64

func (*Keeper) GetNumOfForwards

func (k *Keeper) GetNumOfForwards(ctx sdk.Context, channel string) uint64

func (*Keeper) GetPendingForwards

func (k *Keeper) GetPendingForwards(ctx sdk.Context) (accounts []types.ForwardingAccount)

func (*Keeper) GetTotalForwarded

func (k *Keeper) GetTotalForwarded(ctx sdk.Context, channel string) sdk.Coins

func (*Keeper) HasPendingForward

func (k *Keeper) HasPendingForward(ctx sdk.Context, account *types.ForwardingAccount) bool

func (*Keeper) IncrementNumOfAccounts

func (k *Keeper) IncrementNumOfAccounts(ctx sdk.Context, channel string)

func (*Keeper) IncrementNumOfForwards

func (k *Keeper) IncrementNumOfForwards(ctx sdk.Context, channel string)

func (*Keeper) IncrementTotalForwarded

func (k *Keeper) IncrementTotalForwarded(ctx sdk.Context, channel string, coin sdk.Coin)

func (*Keeper) Logger

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

func (*Keeper) RegisterAccount

func (*Keeper) SetNumOfAccounts

func (k *Keeper) SetNumOfAccounts(ctx sdk.Context, channel string, count uint64)

func (*Keeper) SetNumOfForwards

func (k *Keeper) SetNumOfForwards(ctx sdk.Context, channel string, count uint64)

func (*Keeper) SetPendingForward

func (k *Keeper) SetPendingForward(ctx sdk.Context, account *types.ForwardingAccount)

func (*Keeper) SetTotalForwarded

func (k *Keeper) SetTotalForwarded(ctx sdk.Context, channel string, total sdk.Coins)

func (*Keeper) StatsByChannel

Jump to

Keyboard shortcuts

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