Documentation ¶
Index ¶
- Constants
- type IBCHandshakeHooks
- type MultiIBCHandshakeHooks
- func (h MultiIBCHandshakeHooks) OnAcknowledgementPacket(ctx sdk.Context, packet types.Packet, acknowledgement []byte, ...) error
- func (h MultiIBCHandshakeHooks) OnRecvPacket(ctx sdk.Context, packet types.Packet, relayer sdk.AccAddress, ...) error
- func (h MultiIBCHandshakeHooks) OnTimeoutPacket(ctx sdk.Context, packet types.Packet, relayer sdk.AccAddress, ...) error
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
Click to show internal directories.
Click to hide internal directories.