keeper

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2024 License: Apache-2.0 Imports: 20 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 gmp MsgServer interface for the provided Keeper.

func NewQuerier

func NewQuerier(keeper Keeper) types.QueryServer

NewQuerier returns an implementation of the gmp QueryServer interface for the provided Keeper.

Types

type Keeper

type Keeper struct {
	IBCKeeper         *ibctransfer.Keeper
	BankKeeper        types.BankKeeper
	GasEstimateKeeper types.GasEstimateKeeper
	// contains filtered or unexported fields
}

func NewKeeper

func NewKeeper(
	cdc codec.BinaryCodec,
	storeKey storetypes.StoreKey,
	oracleKeeper types.OracleKeeper,
	authority string,
	ibcKeeper ibctransfer.Keeper,
	bankKeeper types.BankKeeper,
	gasEstimateKeeper types.GasEstimateKeeper,
) Keeper

NewKeeper constructs a new keeper for gmp module.

func (Keeper) BuildGmpRequest

func (k Keeper) BuildGmpRequest(
	goCtx context.Context,
	msg *types.MsgRelayPrice,
) (*ibctransfertypes.MsgTransfer, error)

func (Keeper) CreatePayment added in v0.5.0

func (k Keeper) CreatePayment(
	goCtx context.Context,
	msg *types.MsgCreatePayment,
) (*types.MsgCreatePaymentResponse, error)

func (Keeper) DeletePayment added in v0.5.0

func (k Keeper) DeletePayment(
	ctx sdk.Context,
	payment types.Payment,
)

func (Keeper) GetAllPayments added in v0.5.0

func (k Keeper) GetAllPayments(
	ctx sdk.Context,
) []types.Payment

func (Keeper) GetParams

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

GetParams gets the gmp module's parameters.

func (Keeper) GetPayment added in v0.5.0

func (k Keeper) GetPayment(
	ctx sdk.Context,
	authority string,
	denom string,
) (types.MsgCreatePayment, error)

func (Keeper) Logger

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

Logger returns a module-specific logger.

func (Keeper) ProcessPayment added in v0.5.0

func (k Keeper) ProcessPayment(
	goCtx context.Context,
	payment types.Payment,
) error

func (Keeper) RelayPrice

func (k Keeper) RelayPrice(
	goCtx context.Context,
	msg *types.MsgRelayPrice,
) (*types.MsgRelayPriceResponse, error)

RelayPrice submits an IBC transfer with a MsgRelayPrice payload. This is so the IBC Transfer module can then use BuildGmpRequest and perform the GMP request.

func (Keeper) SetParams

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

SetParams sets the gmp module's parameters.

func (Keeper) SetPayment added in v0.5.0

func (k Keeper) SetPayment(
	ctx sdk.Context,
	payment types.Payment,
)

Jump to

Keyboard shortcuts

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