Documentation
¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) AuthenticateCapability(ctx sdk.Context, cap *capabilitytypes.Capability, name string) bool
- func (k Keeper) BindPort(ctx sdk.Context, portID string) error
- func (k Keeper) ChanCloseInit(ctx sdk.Context, portID, channelID string) error
- func (k Keeper) ClaimCapability(ctx sdk.Context, cap *capabilitytypes.Capability, name string) error
- func (k Keeper) Deposit(goCtx context.Context, msg *types.MsgDepositRequest) (*types.MsgDepositResponse, error)
- func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState
- func (k Keeper) GetAllInterchainLiquidityPool(ctx sdk.Context) (list []types.InterchainLiquidityPool)
- func (k Keeper) GetAllInterchainMarketMaker(ctx sdk.Context) (list []types.InterchainMarketMaker)
- func (k Keeper) GetBalance(ctx sdk.Context, sender sdk.AccAddress) sdk.Coin
- func (k Keeper) GetInterchainLiquidityPool(ctx sdk.Context, poolId string) (val types.InterchainLiquidityPool, found bool)
- func (k Keeper) GetInterchainMarketMaker(ctx sdk.Context, poolId string) (val types.InterchainMarketMaker, found bool)
- func (k Keeper) GetParams(ctx sdk.Context) types.Params
- func (k Keeper) GetPort(ctx sdk.Context) string
- func (k Keeper) GetSwapEnabled(ctx sdk.Context) bool
- func (k Keeper) GetSwapMaxFeeRate(ctx sdk.Context) uint32
- func (k Keeper) InitGenesis(ctx sdk.Context, state types.GenesisState)
- func (k Keeper) InterchainLiquidityPool(goCtx context.Context, req *types.QueryGetInterchainLiquidityPoolRequest) (*types.QueryGetInterchainLiquidityPoolResponse, error)
- func (k Keeper) InterchainLiquidityPoolAll(goCtx context.Context, req *types.QueryAllInterchainLiquidityPoolRequest) (*types.QueryAllInterchainLiquidityPoolResponse, error)
- func (k Keeper) InterchainMarketMaker(goCtx context.Context, req *types.QueryGetInterchainMarketMakerRequest) (*types.QueryGetInterchainMarketMakerResponse, error)
- func (k Keeper) InterchainMarketMakerAll(goCtx context.Context, req *types.QueryAllInterchainMarketMakerRequest) (*types.QueryAllInterchainMarketMakerResponse, error)
- func (k Keeper) IsBound(ctx sdk.Context, portID string) bool
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) OnAcknowledgementPacket(ctx sdk.Context, packet channeltypes.Packet, data *types.IBCSwapDataPacket, ...) error
- func (k Keeper) OnCreatePoolAcknowledged(ctx sdk.Context, msg *types.MsgCreatePoolRequest)
- func (k Keeper) OnCreatePoolReceived(ctx sdk.Context, msg *types.MsgCreatePoolRequest, destPort, destChannel string) (*string, error)
- func (k Keeper) OnDepositReceived(ctx sdk.Context, msg *types.MsgDepositRequest) (*types.MsgDepositResponse, error)
- func (k Keeper) OnRecvPacket(ctx sdk.Context, packet channeltypes.Packet, data types.IBCSwapDataPacket) (interface{}, error)
- func (k Keeper) OnSingleDepositAcknowledged(ctx sdk.Context, req *types.MsgDepositRequest, res *types.MsgDepositResponse) error
- func (k Keeper) OnSwapAcknowledged(ctx sdk.Context, req *types.MsgSwapRequest, res *types.MsgSwapResponse) error
- func (k Keeper) OnSwapReceived(ctx sdk.Context, msg *types.MsgSwapRequest) (*types.MsgSwapResponse, error)
- func (k Keeper) OnTimeoutPacket(ctx sdk.Context, packet channeltypes.Packet, data *types.IBCSwapDataPacket) error
- func (k Keeper) OnWithdrawAcknowledged(ctx sdk.Context, req *types.MsgWithdrawRequest, res *types.MsgWithdrawResponse) error
- func (k Keeper) OndWithdrawReceive(ctx sdk.Context, msg *types.MsgWithdrawRequest) (*types.MsgWithdrawResponse, error)
- func (k Keeper) Params(goCtx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) RemoveInterchainLiquidityPool(ctx sdk.Context, poolId string)
- func (k Keeper) RemoveInterchainMarketMaker(ctx sdk.Context, poolId string)
- func (k Keeper) SendIBCSwapPacket(ctx sdk.Context, sourcePort, sourceChannel string, ...) error
- func (k Keeper) SetInterchainLiquidityPool(ctx sdk.Context, interchainLiquidityPool types.InterchainLiquidityPool)
- func (k Keeper) SetInterchainMarketMaker(ctx sdk.Context, interchainMarketMaker types.InterchainMarketMaker)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) SetPort(ctx sdk.Context, portID string)
- func (k Keeper) SingleDepositTest(ctx sdk.Context, sender sdk.AccAddress) sdk.Coin
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
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 storetypes.StoreKey, ps paramtypes.Subspace, ics4Wrapper types.ICS4Wrapper, channelKeeper types.ChannelKeeper, portKeeper types.PortKeeper, scopedKeeper capabilitykeeper.ScopedKeeper, bankKeeper types.BankKeeper, ) *Keeper
func (Keeper) AuthenticateCapability ¶
func (k Keeper) AuthenticateCapability(ctx sdk.Context, cap *capabilitytypes.Capability, name string) bool
AuthenticateCapability wraps the scopedKeeper's AuthenticateCapability function
func (Keeper) BindPort ¶
BindPort defines a wrapper function for the port Keeper's function in order to expose it to module's InitGenesis function
func (Keeper) ChanCloseInit ¶
ChanCloseInit defines a wrapper function for the channel Keeper's function.
func (Keeper) ClaimCapability ¶
func (k Keeper) ClaimCapability(ctx sdk.Context, cap *capabilitytypes.Capability, name string) error
ClaimCapability allows the IBC app module to claim a capability that core IBC passes to it
func (Keeper) Deposit ¶
func (k Keeper) Deposit(goCtx context.Context, msg *types.MsgDepositRequest) (*types.MsgDepositResponse, error)
func (Keeper) ExportGenesis ¶
func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState
ExportGenesis exports ibc-transfer module's portID and denom trace info into its genesis state.
func (Keeper) GetAllInterchainLiquidityPool ¶
func (k Keeper) GetAllInterchainLiquidityPool(ctx sdk.Context) (list []types.InterchainLiquidityPool)
GetAllInterchainLiquidityPool returns all interchainLiquidityPool
func (Keeper) GetAllInterchainMarketMaker ¶
func (k Keeper) GetAllInterchainMarketMaker(ctx sdk.Context) (list []types.InterchainMarketMaker)
GetAllInterchainMarketMaker returns all interchainMarketMaker
func (Keeper) GetBalance ¶
func (Keeper) GetInterchainLiquidityPool ¶
func (k Keeper) GetInterchainLiquidityPool( ctx sdk.Context, poolId string, ) (val types.InterchainLiquidityPool, found bool)
GetInterchainLiquidityPool returns a interchainLiquidityPool from its index
func (Keeper) GetInterchainMarketMaker ¶
func (k Keeper) GetInterchainMarketMaker( ctx sdk.Context, poolId string, ) (val types.InterchainMarketMaker, found bool)
GetInterchainMarketMaker returns a interchainMarketMaker from its index
func (Keeper) GetSwapEnabled ¶
GetSwapEnabled retrieves the send enabled boolean from the paramstore
func (Keeper) InitGenesis ¶
func (k Keeper) InitGenesis(ctx sdk.Context, state types.GenesisState)
InitGenesis initializes the ibc-transfer state and binds to PortID.
func (Keeper) InterchainLiquidityPool ¶
func (k Keeper) InterchainLiquidityPool(goCtx context.Context, req *types.QueryGetInterchainLiquidityPoolRequest) (*types.QueryGetInterchainLiquidityPoolResponse, error)
func (Keeper) InterchainLiquidityPoolAll ¶
func (k Keeper) InterchainLiquidityPoolAll(goCtx context.Context, req *types.QueryAllInterchainLiquidityPoolRequest) (*types.QueryAllInterchainLiquidityPoolResponse, error)
func (Keeper) InterchainMarketMaker ¶
func (k Keeper) InterchainMarketMaker(goCtx context.Context, req *types.QueryGetInterchainMarketMakerRequest) (*types.QueryGetInterchainMarketMakerResponse, error)
func (Keeper) InterchainMarketMakerAll ¶
func (k Keeper) InterchainMarketMakerAll(goCtx context.Context, req *types.QueryAllInterchainMarketMakerRequest) (*types.QueryAllInterchainMarketMakerResponse, error)
func (Keeper) OnAcknowledgementPacket ¶
func (k Keeper) OnAcknowledgementPacket(ctx sdk.Context, packet channeltypes.Packet, data *types.IBCSwapDataPacket, ack channeltypes.Acknowledgement) error
func (Keeper) OnCreatePoolAcknowledged ¶
func (k Keeper) OnCreatePoolAcknowledged(ctx sdk.Context, msg *types.MsgCreatePoolRequest)
func (Keeper) OnCreatePoolReceived ¶
func (Keeper) OnDepositReceived ¶
func (k Keeper) OnDepositReceived(ctx sdk.Context, msg *types.MsgDepositRequest) (*types.MsgDepositResponse, error)
func (Keeper) OnRecvPacket ¶
func (k Keeper) OnRecvPacket(ctx sdk.Context, packet channeltypes.Packet, data types.IBCSwapDataPacket) (interface{}, error)
func (Keeper) OnSingleDepositAcknowledged ¶
func (k Keeper) OnSingleDepositAcknowledged(ctx sdk.Context, req *types.MsgDepositRequest, res *types.MsgDepositResponse) error
func (Keeper) OnSwapAcknowledged ¶
func (k Keeper) OnSwapAcknowledged(ctx sdk.Context, req *types.MsgSwapRequest, res *types.MsgSwapResponse) error
func (Keeper) OnSwapReceived ¶
func (k Keeper) OnSwapReceived(ctx sdk.Context, msg *types.MsgSwapRequest) (*types.MsgSwapResponse, error)
func (Keeper) OnTimeoutPacket ¶
func (k Keeper) OnTimeoutPacket(ctx sdk.Context, packet channeltypes.Packet, data *types.IBCSwapDataPacket) error
func (Keeper) OnWithdrawAcknowledged ¶
func (k Keeper) OnWithdrawAcknowledged(ctx sdk.Context, req *types.MsgWithdrawRequest, res *types.MsgWithdrawResponse) error
func (Keeper) OndWithdrawReceive ¶
func (k Keeper) OndWithdrawReceive(ctx sdk.Context, msg *types.MsgWithdrawRequest) (*types.MsgWithdrawResponse, error)
func (Keeper) Params ¶
func (k Keeper) Params(goCtx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) RemoveInterchainLiquidityPool ¶
RemoveInterchainLiquidityPool removes a interchainLiquidityPool from the store
func (Keeper) RemoveInterchainMarketMaker ¶
RemoveInterchainMarketMaker removes a interchainMarketMaker from the store
func (Keeper) SendIBCSwapPacket ¶
func (k Keeper) SendIBCSwapPacket( ctx sdk.Context, sourcePort, sourceChannel string, timeoutHeight clienttypes.Height, timeoutTimestamp uint64, swapPacket types.IBCSwapDataPacket, ) error
func (Keeper) SetInterchainLiquidityPool ¶
func (k Keeper) SetInterchainLiquidityPool(ctx sdk.Context, interchainLiquidityPool types.InterchainLiquidityPool)
SetInterchainLiquidityPool set a specific interchainLiquidityPool in the store from its index
func (Keeper) SetInterchainMarketMaker ¶
func (k Keeper) SetInterchainMarketMaker(ctx sdk.Context, interchainMarketMaker types.InterchainMarketMaker)
SetInterchainMarketMaker set a specific interchainMarketMaker in the store from its index