package types
import (
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/x/capability"
channeltypes "github.com/cosmos/cosmos-sdk/x/ibc/04-channel/types"
ibctypes "github.com/cosmos/cosmos-sdk/x/ibc/types"
)
// IBCModule defines an interface that implements all the callbacks
// that modules must define as specified in ICS-26
type IBCModule interface {
OnChanOpenInit(
ctx sdk.Context,
order ibctypes.Order,
connectionHops []string,
portID string,
channelID string,
channelCap *capability.Capability,
counterParty channeltypes.Counterparty,
version string,
) error
OnChanOpenTry(
portID,
counterparty channeltypes.Counterparty,
version,
counterpartyVersion string,
OnChanOpenAck(
OnChanOpenConfirm(
OnChanCloseInit(
OnChanCloseConfirm(
OnRecvPacket(
packet channeltypes.Packet,
) (*sdk.Result, error)
OnAcknowledgementPacket(
acknowledgement []byte,
OnTimeoutPacket(
}