keeper

package
v2.4.1 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2024 License: Apache-2.0 Imports: 16 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 {
	Chains     []xchain.FundCollecter
	KeeperUtil keeperutil.KeeperUtilI[*types.Fees]
	Store      types.TreasuryStore
	// contains filtered or unexported fields
}

func (Keeper) GetCombinedFeesForRelay

func (k Keeper) GetCombinedFeesForRelay(
	ctx context.Context,
	valAddress sdk.ValAddress,
	chainReferenceID string,
) (*consensustypes.MessageFeeSettings, error)

func (Keeper) GetFees

func (k Keeper) GetFees(ctx context.Context) (*types.Fees, error)

func (Keeper) GetParams

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

GetParams get all parameters as types.Params

func (Keeper) GetRelayerFees

func (k Keeper) GetRelayerFees(ctx context.Context) ([]types.RelayerFeeSetting, error)

func (Keeper) GetRelayerFeesByChainReferenceID

func (k Keeper) GetRelayerFeesByChainReferenceID(ctx context.Context, chainReferenceID string) (map[string]math.LegacyDec, error)

func (Keeper) Logger

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

func (Keeper) ModuleName

func (k Keeper) ModuleName() string

func (Keeper) Params

func (Keeper) QueryFees

func (k Keeper) QueryFees(c context.Context, req *types.QueryFeesRequest) (*types.Fees, error)

func (Keeper) RelayerFee

func (Keeper) SetCommunityFundFee

func (k Keeper) SetCommunityFundFee(ctx context.Context, fee string) error

func (Keeper) SetParams

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

SetParams set the params

func (Keeper) SetRelayerFee

func (k Keeper) SetRelayerFee(ctx context.Context, valAddr sdk.ValAddress, rfs *types.RelayerFeeSetting) error

func (Keeper) SetSecurityFee

func (k Keeper) SetSecurityFee(ctx context.Context, fee string) error

Jump to

Keyboard shortcuts

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