Documentation ¶
Index ¶
- func DeserializeMemoMsgs(cdc codec.JSONCodec, data []byte) ([]sdk.Msg, error)
- type ICS20Module
- func (im ICS20Module) OnAcknowledgementPacket(ctx sdk.Context, packet channeltypes.Packet, acknowledgement []byte, ...) error
- func (im ICS20Module) OnRecvPacket(ctx sdk.Context, packet channeltypes.Packet, relayer sdk.AccAddress) exported.Acknowledgement
- func (im ICS20Module) OnTimeoutPacket(ctx sdk.Context, packet channeltypes.Packet, relayer sdk.AccAddress) error
- type ICS4
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ICS20Module ¶
ICS20Module implements ibcporttypes.IBCModule for ICS20 transfer middleware. It overwrites OnAcknowledgementPacket and OnTimeoutPacket to revert quota update on acknowledgement error or timeout.
func NewICS20Module ¶
func NewICS20Module(app porttypes.IBCModule, cdc codec.JSONCodec, k quota.KeeperBuilder, l ltypes.MsgServer, ) ICS20Module
NewICS20Module is an IBCMiddlware constructor. `app` must be an ICS20 app.
func (ICS20Module) OnAcknowledgementPacket ¶
func (im ICS20Module) OnAcknowledgementPacket( ctx sdk.Context, packet channeltypes.Packet, acknowledgement []byte, relayer sdk.AccAddress, ) error
OnAcknowledgementPacket is called on the packet sender chain, once the receiver acknowledged the packet reception.
func (ICS20Module) OnRecvPacket ¶
func (im ICS20Module) OnRecvPacket(ctx sdk.Context, packet channeltypes.Packet, relayer sdk.AccAddress, ) exported.Acknowledgement
OnRecvPacket is called when a receiver chain receives a packet from SendPacket.
func (ICS20Module) OnTimeoutPacket ¶
func (im ICS20Module) OnTimeoutPacket(ctx sdk.Context, packet channeltypes.Packet, relayer sdk.AccAddress) error
OnTimeoutPacket implements types.Middleware
type ICS4 ¶
type ICS4 struct { porttypes.ICS4Wrapper // contains filtered or unexported fields }
ICS4 implements porttypes.ICS4Wrapper (middleware to send packets and acknowledgements) and overwrites SendPacket to check IBC quota.
func NewICS4 ¶
func NewICS4(parent porttypes.ICS4Wrapper, kb quota.KeeperBuilder) ICS4
func (ICS4) SendPacket ¶
func (q ICS4) SendPacket( ctx sdk.Context, chanCap *capabilitytypes.Capability, sourcePort string, sourceChannel string, timeoutHeight clienttypes.Height, timeoutTimestamp uint64, data []byte, ) (uint64, error)
SendPacket implements types.Middleware