quota

package
v4.4.2 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

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

type ICS20Middleware struct {
	porttypes.IBCModule
	// contains filtered or unexported fields
}

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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