Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- func NewQuerier(keeper Keeper) types.QueryServer
- type Keeper
- func (k Keeper) BuildGmpRequest(goCtx context.Context, msg *types.MsgRelayPrice) (*ibctransfertypes.MsgTransfer, error)
- func (k Keeper) GetParams(ctx sdk.Context) (params types.Params)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) RelayPrice(goCtx context.Context, msg *types.MsgRelayPrice) (*types.MsgRelayPriceResponse, error)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
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 // contains filtered or unexported fields }
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, storeKey storetypes.StoreKey, oracleKeeper types.OracleKeeper, authority string, ibcKeeper ibctransfer.Keeper, ) 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) 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.
Click to show internal directories.
Click to hide internal directories.