quota

package
v4.2.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2023 License: Apache-2.0 Imports: 14 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 IBCMiddleware

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

func NewIBCMiddleware

func NewIBCMiddleware(app porttypes.IBCModule, k keeper.Keeper, cdc codec.JSONCodec) IBCMiddleware

NewIBCMiddleware creates a new IBCMiddlware given the keeper and underlying application

func (IBCMiddleware) GetAppVersion

func (im IBCMiddleware) GetAppVersion(ctx sdk.Context, portID string, channelID string) (string, bool)

GetAppVersion implements types.Middleware

func (IBCMiddleware) OnAcknowledgementPacket

func (im IBCMiddleware) OnAcknowledgementPacket(ctx sdk.Context, packet channeltypes.Packet, acknowledgement []byte,
	relayer sdk.AccAddress,
) error

OnAcknowledgementPacket implements types.Middleware

func (IBCMiddleware) OnTimeoutPacket

func (im IBCMiddleware) OnTimeoutPacket(ctx sdk.Context, packet channeltypes.Packet, relayer sdk.AccAddress) error

OnTimeoutPacket implements types.Middleware

func (IBCMiddleware) RevertQuotaUpdate

func (im IBCMiddleware) RevertQuotaUpdate(
	ctx sdk.Context,
	packetData []byte,
) error

RevertQuotaUpdate Notifies the contract that a sent packet wasn't properly received

func (IBCMiddleware) SendPacket

func (im IBCMiddleware) SendPacket(ctx sdk.Context, chanCap *capabilitytypes.Capability,
	packet exported.PacketI,
) error

SendPacket implements types.Middleware

func (IBCMiddleware) WriteAcknowledgement

func (im IBCMiddleware) 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