Documentation ¶
Index ¶
- func ValidateReceiverAddress(packet channeltypes.Packet) error
- type ICS20Middleware
- func (im ICS20Middleware) GetAppVersion(ctx sdk.Context, portID string, channelID string) (string, bool)
- func (im ICS20Middleware) OnAcknowledgementPacket(ctx sdk.Context, packet channeltypes.Packet, acknowledgement []byte, ...) error
- func (im ICS20Middleware) OnTimeoutPacket(ctx sdk.Context, packet channeltypes.Packet, relayer sdk.AccAddress) error
- func (im ICS20Middleware) SendPacket(ctx sdk.Context, chanCap *capabilitytypes.Capability, sourcePort string, ...) (uint64, error)
- func (im ICS20Middleware) WriteAcknowledgement(ctx sdk.Context, chanCap *capabilitytypes.Capability, packet exported.PacketI, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateReceiverAddress ¶
func ValidateReceiverAddress(packet channeltypes.Packet) error
Types ¶
type ICS20Middleware ¶ added in v4.3.0
ICS20Middleware overwrites OnAcknowledgementPacket and OnTimeoutPacket to revert quota update on acknowledgement error or timeout.
func NewICS20Middleware ¶ added in v4.3.0
func NewICS20Middleware(app porttypes.IBCModule, k keeper.Keeper, cdc codec.JSONCodec) ICS20Middleware
NewICS20Middleware is an IBCMiddlware constructor. `app` must be an ICS20 app.
func (ICS20Middleware) GetAppVersion ¶ added in v4.3.0
func (im ICS20Middleware) GetAppVersion(ctx sdk.Context, portID string, channelID string) (string, bool)
GetAppVersion implements types.Middleware
func (ICS20Middleware) OnAcknowledgementPacket ¶ added in v4.3.0
func (im ICS20Middleware) OnAcknowledgementPacket(ctx sdk.Context, packet channeltypes.Packet, acknowledgement []byte, relayer sdk.AccAddress, ) error
OnAcknowledgementPacket implements types.Middleware
func (ICS20Middleware) OnTimeoutPacket ¶ added in v4.3.0
func (im ICS20Middleware) OnTimeoutPacket(ctx sdk.Context, packet channeltypes.Packet, relayer sdk.AccAddress) error
OnTimeoutPacket implements types.Middleware
func (ICS20Middleware) SendPacket ¶ added in v4.3.0
func (im ICS20Middleware) SendPacket( ctx sdk.Context, chanCap *capabilitytypes.Capability, sourcePort string, sourceChannel string, timeoutHeight clienttypes.Height, timeoutTimestamp uint64, data []byte, ) (uint64, error)
SendPacket implements types.Middleware
func (ICS20Middleware) WriteAcknowledgement ¶ added in v4.3.0
func (im ICS20Middleware) WriteAcknowledgement(ctx sdk.Context, chanCap *capabilitytypes.Capability, packet exported.PacketI, ack exported.Acknowledgement, ) error
WriteAcknowledgement implements types.Middleware
Click to show internal directories.
Click to hide internal directories.