keeper

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: Apache-2.0 Imports: 14 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMsgServerImpl added in v1.1.0

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,
	channelKeeper types.ChannelKeeper,
	bankKeeper types.BankKeeper,
	authority string,
) *Keeper

func (Keeper) DistributeAcknowledgementFee

func (k Keeper) DistributeAcknowledgementFee(ctx sdk.Context, receiver sdk.AccAddress, packetID types.PacketID)

func (Keeper) DistributeTimeoutFee

func (k Keeper) DistributeTimeoutFee(ctx sdk.Context, receiver sdk.AccAddress, packetID types.PacketID)

func (Keeper) FeeInfo

func (k Keeper) FeeInfo(goCtx context.Context, request *types.FeeInfoRequest) (*types.FeeInfoResponse, error)

func (Keeper) GetAllFeeInfos

func (k Keeper) GetAllFeeInfos(ctx sdk.Context) []types.FeeInfo

func (Keeper) GetAuthority added in v1.1.0

func (k Keeper) GetAuthority() string

func (Keeper) GetFeeInfo

func (k Keeper) GetFeeInfo(ctx sdk.Context, packetID types.PacketID) (*types.FeeInfo, error)

func (Keeper) GetMinFee added in v0.3.0

func (k Keeper) GetMinFee(ctx sdk.Context) types.Fee

func (Keeper) GetParams

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

GetParams get all parameters as types.Params

func (Keeper) LockFees

func (k Keeper) LockFees(ctx sdk.Context, payer sdk.AccAddress, packetID types.PacketID, fee types.Fee) error

func (Keeper) Logger

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

func (Keeper) Params

func (Keeper) SetParams

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

SetParams set the params

func (Keeper) StoreFeeInfo

func (k Keeper) StoreFeeInfo(ctx sdk.Context, feeInfo types.FeeInfo)

func (Keeper) UpdateParams added in v1.1.0

UpdateParams updates the module parameters

Jump to

Keyboard shortcuts

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