Documentation ¶
Index ¶
- Constants
- func NewHandler(k wrapkeeper.KeeperTransferWrapper) sdk.Handler
- type AppModule
- type AppModuleBasic
- type IBCModule
- func (im IBCModule) HandleAcknowledgement(ctx sdk.Context, packet channeltypes.Packet, acknowledgement []byte, ...) error
- func (im IBCModule) HandleTimeout(ctx sdk.Context, packet channeltypes.Packet, relayer sdk.AccAddress) error
- func (im IBCModule) OnAcknowledgementPacket(ctx sdk.Context, packet channeltypes.Packet, acknowledgement []byte, ...) error
- func (im IBCModule) OnTimeoutPacket(ctx sdk.Context, packet channeltypes.Packet, relayer sdk.AccAddress) error
Constants ¶
const (
// We need to reserve this amount of gas on the context gas meter in order to add contract failure to keeper
GasReserve = 15000
)
Variables ¶
This section is empty.
Functions ¶
func NewHandler ¶
func NewHandler(k wrapkeeper.KeeperTransferWrapper) sdk.Handler
Types ¶
type AppModule ¶
func NewAppModule ¶
func NewAppModule(k wrapkeeper.KeeperTransferWrapper) AppModule
NewAppModule creates a new 20-transfer module
func (AppModule) RegisterServices ¶
func (am AppModule) RegisterServices(cfg module.Configurator)
RegisterServices registers module services.
type AppModuleBasic ¶
type AppModuleBasic struct {
transfer.AppModuleBasic
}
func NewAppModuleBasic ¶
func NewAppModuleBasic() AppModuleBasic
func (AppModuleBasic) RegisterCodec ¶
func (AppModuleBasic) RegisterCodec(cdc *codec.LegacyAmino)
func (AppModuleBasic) RegisterInterfaces ¶
func (am AppModuleBasic) RegisterInterfaces(reg cdctypes.InterfaceRegistry)
RegisterInterfaces registers the module's interface types
func (AppModuleBasic) RegisterLegacyAminoCodec ¶
func (am AppModuleBasic) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
type IBCModule ¶
type IBCModule struct { ContractManagerKeeper petritypes.ContractManagerKeeper transfer.IBCModule // contains filtered or unexported fields }
func NewIBCModule ¶
func NewIBCModule(k wrapkeeper.KeeperTransferWrapper) IBCModule
NewIBCModule creates a new IBCModule given the keeper
func (IBCModule) HandleAcknowledgement ¶
func (im IBCModule) HandleAcknowledgement(ctx sdk.Context, packet channeltypes.Packet, acknowledgement []byte, relayer sdk.AccAddress) error
HandleAcknowledgement passes the acknowledgement data to the appropriate contract via a Sudo call.
func (IBCModule) HandleTimeout ¶
func (im IBCModule) HandleTimeout(ctx sdk.Context, packet channeltypes.Packet, relayer sdk.AccAddress) error
HandleTimeout passes the timeout data to the appropriate contract via a Sudo call. Since all ICA channels are ORDERED, a single timeout shuts down a channel. The affected zone should be paused after a timeout.
func (IBCModule) OnAcknowledgementPacket ¶
func (im IBCModule) OnAcknowledgementPacket( ctx sdk.Context, packet channeltypes.Packet, acknowledgement []byte, relayer sdk.AccAddress, ) error
OnAcknowledgementPacket implements the IBCModule interface. Wrapper struct shadows(overrides) the OnAcknowledgementPacket method to achieve the package's purpose.
func (IBCModule) OnTimeoutPacket ¶
func (im IBCModule) OnTimeoutPacket( ctx sdk.Context, packet channeltypes.Packet, relayer sdk.AccAddress, ) error
OnTimeoutPacket implements the IBCModule interface.