types

package
v2.2.0-rc0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: Apache-2.0 Imports: 4 Imported by: 13

Documentation

Index

Constants

View Source
const (
	ModuleName = "ibchooker"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type IBCHandshakeHooks

type IBCHandshakeHooks interface {
	// Do we care about `relayer sdk.AccAddress` argument here?
	OnRecvPacket(ctx sdk.Context, packet types.Packet, relayer sdk.AccAddress, transferAck exported.Acknowledgement) error
	OnAcknowledgementPacket(ctx sdk.Context, packet types.Packet, acknowledgement []byte, relayer sdk.AccAddress, transferAckErr error) error
	OnTimeoutPacket(ctx sdk.Context, packet types.Packet, relayer sdk.AccAddress, transferTimeoutErr error) error
}

type MultiIBCHandshakeHooks

type MultiIBCHandshakeHooks []IBCHandshakeHooks

MultiIBCHandshakeHooks combine multiple ibc transfer hooks, all hook functions are run in array sequence

func NewMultiStakingHooks

func NewMultiStakingHooks(hooks ...IBCHandshakeHooks) MultiIBCHandshakeHooks

func (MultiIBCHandshakeHooks) OnAcknowledgementPacket

func (h MultiIBCHandshakeHooks) OnAcknowledgementPacket(ctx sdk.Context, packet types.Packet, acknowledgement []byte, relayer sdk.AccAddress, transferAckErr error) error

func (MultiIBCHandshakeHooks) OnRecvPacket

func (h MultiIBCHandshakeHooks) OnRecvPacket(ctx sdk.Context, packet types.Packet, relayer sdk.AccAddress, transferAck exported.Acknowledgement) error

func (MultiIBCHandshakeHooks) OnTimeoutPacket

func (h MultiIBCHandshakeHooks) OnTimeoutPacket(ctx sdk.Context, packet types.Packet, relayer sdk.AccAddress, transferTimeoutErr error) error

Jump to

Keyboard shortcuts

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