ics20

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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIBCInflow added in v4.3.0

func CheckIBCInflow(ctx sdk.Context,
	packet channeltypes.Packet,
	lkeeper uibc.LeverageKeeper,
	dataDenom string, isSourceChain bool,
) ibcexported.Acknowledgement

Types

type IBCModule

type IBCModule struct {

	// embed the ICS-20 transfer's AppModule: ibctransfer.IBCModule
	ibcporttypes.IBCModule
	// contains filtered or unexported fields
}

IBCModule wraps ICS-20 IBC module to limit token transfer inflows.

func NewIBCModule

func NewIBCModule(leverageKeeper uibc.LeverageKeeper, am ibctransfer.IBCModule, k keeper.Keeper) IBCModule

func (IBCModule) OnRecvPacket

func (am IBCModule) OnRecvPacket(
	ctx sdk.Context,
	packet channeltypes.Packet,
	relayer sdk.AccAddress,
) ibcexported.Acknowledgement

OnRecvPacket delegates the OnRecvPacket call to the embedded ICS-20 transfer IBCModule and updates metadata if successful.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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