Documentation ¶
Index ¶
- func CreateMarkerMemo(marker markertypes.MarkerAccountI) (interface{}, error)
- func IsJSONAckError(acknowledgement []byte) bool
- func MustExtractDenomFromPacketOnRecv(packet ibcexported.PacketI) string
- func NewEmitErrorAcknowledgement(ctx sdktypes.Context, err error, errorContexts ...string) channeltypes.Acknowledgement
- func ProcessMarkerMemo(memo string) ([]sdktypes.AccAddress, markertypes.MarkerType, bool, error)
- func ResetMarkerAccessGrants(transferAuths []sdktypes.AccAddress, marker markertypes.MarkerAccountI) error
- func SanitizeMemo(memo string) map[string]interface{}
- func ValidateAndParseMemo(memo string, receiver string) (isWasmRouted bool, contractAddr sdktypes.AccAddress, msgBytes []byte, ...)
- type AppModule
- func (AppModule) ConsensusVersion() uint64
- func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.RawMessage
- func (AppModule) GenerateGenesisState(simState *module.SimulationState)
- func (am AppModule) InitGenesis(ctx sdk.Context, cdc codec.JSONCodec, data json.RawMessage) []abci.ValidatorUpdate
- func (AppModule) IsAppModule()
- func (AppModule) IsOnePerModuleType()
- func (AppModule) Name() string
- func (AppModule) RandomizedParams(_ *rand.Rand) []simtypes.LegacyParamChange
- func (am AppModule) RegisterInvariants(_ sdk.InvariantRegistry)
- func (am AppModule) RegisterServices(cfg module.Configurator)
- func (am AppModule) RegisterStoreDecoder(_ simtypes.StoreDecoderRegistry)
- func (am AppModule) WeightedOperations(_ module.SimulationState) []simtypes.WeightedOperation
- type AppModuleBasic
- func (AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage
- func (AppModuleBasic) GetQueryCmd() *cobra.Command
- func (AppModuleBasic) GetTxCmd() *cobra.Command
- func (AppModuleBasic) Name() string
- func (AppModuleBasic) RegisterGRPCGatewayRoutes(_ client.Context, _ *runtime.ServeMux)
- func (a AppModuleBasic) RegisterInterfaces(reg cdctypes.InterfaceRegistry)
- func (AppModuleBasic) RegisterLegacyAminoCodec(_ *codec.LegacyAmino)
- func (AppModuleBasic) RegisterRESTRoutes(_ client.Context, _ *mux.Router)
- func (AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, _ client.TxEncodingConfig, bz json.RawMessage) error
- type GetAppVersionAfterHooks
- type GetAppVersionBeforeHooks
- type GetAppVersionOverrideHooks
- type Hooks
- type IBCMiddleware
- func (im IBCMiddleware) GetAppVersion(ctx sdk.Context, portID, channelID string) (string, bool)
- func (im IBCMiddleware) OnAcknowledgementPacket(ctx sdk.Context, packet channeltypes.Packet, acknowledgement []byte, ...) error
- func (im IBCMiddleware) OnChanCloseConfirm(ctx sdk.Context, portID, channelID string) error
- func (im IBCMiddleware) OnChanCloseInit(ctx sdk.Context, portID, channelID string) error
- func (im IBCMiddleware) OnChanOpenAck(ctx sdk.Context, portID, channelID string, counterpartyChannelID string, ...) error
- func (im IBCMiddleware) OnChanOpenConfirm(ctx sdk.Context, portID, channelID string) error
- func (im IBCMiddleware) OnChanOpenInit(ctx sdk.Context, order channeltypes.Order, connectionHops []string, ...) (string, error)
- func (im IBCMiddleware) OnChanOpenTry(ctx sdk.Context, order channeltypes.Order, connectionHops []string, ...) (string, error)
- func (im IBCMiddleware) OnRecvPacket(ctx sdk.Context, packet channeltypes.Packet, relayer sdk.AccAddress) ibcexported.Acknowledgement
- func (im IBCMiddleware) OnTimeoutPacket(ctx sdk.Context, packet channeltypes.Packet, relayer sdk.AccAddress) error
- func (im IBCMiddleware) SendPacket(ctx sdk.Context, chanCap *capabilitytypes.Capability, sourcePort string, ...) (sequence uint64, err error)
- func (im IBCMiddleware) WriteAcknowledgement(ctx sdk.Context, chanCap *capabilitytypes.Capability, ...) error
- type ICS4Middleware
- func (i ICS4Middleware) GetAppVersion(ctx sdk.Context, portID, channelID string) (string, bool)
- func (i ICS4Middleware) SendPacket(ctx sdk.Context, chanCap *capabilitytypes.Capability, sourcePort string, ...) (sequence uint64, err error)
- func (i ICS4Middleware) WriteAcknowledgement(ctx sdk.Context, chanCap *capabilitytypes.Capability, ...) error
- type IbcHooks
- func (h IbcHooks) GetSendPacketPreProcessors() []types.PreSendPacketDataProcessingFn
- func (h IbcHooks) OnAcknowledgementPacketOverride(im IBCMiddleware, ctx sdktypes.Context, packet channeltypes.Packet, ...) error
- func (h IbcHooks) OnRecvPacketOverride(im IBCMiddleware, ctx sdktypes.Context, packet channeltypes.Packet, ...) ibcexported.Acknowledgement
- func (h IbcHooks) OnTimeoutPacketOverride(im IBCMiddleware, ctx sdktypes.Context, packet channeltypes.Packet, ...) error
- func (h IbcHooks) ProperlyConfigured() bool
- func (h IbcHooks) SendPacketAfterHook(ctx sdktypes.Context, chanCap *capabilitytypes.Capability, sourcePort string, ...)
- type MarkerHooks
- func (h MarkerHooks) AddUpdateMarker(ctx sdktypes.Context, packet exported.PacketI, ibcKeeper *ibckeeper.Keeper) error
- func (h MarkerHooks) GetChainID(ctx sdktypes.Context, ibcPort, ibcChannel string, ibcKeeper *ibckeeper.Keeper) string
- func (h MarkerHooks) ProperlyConfigured() bool
- func (h MarkerHooks) SetupMarkerMemoFn(ctx sdktypes.Context, data []byte, _ map[string]interface{}) ([]byte, error)
- type OnAcknowledgementPacketAfterHooks
- type OnAcknowledgementPacketBeforeHooks
- type OnAcknowledgementPacketOverrideHooks
- type OnChanCloseConfirmAfterHooks
- type OnChanCloseConfirmBeforeHooks
- type OnChanCloseConfirmOverrideHooks
- type OnChanCloseInitAfterHooks
- type OnChanCloseInitBeforeHooks
- type OnChanCloseInitOverrideHooks
- type OnChanOpenAckAfterHooks
- type OnChanOpenAckBeforeHooks
- type OnChanOpenAckOverrideHooks
- type OnChanOpenConfirmAfterHooks
- type OnChanOpenConfirmBeforeHooks
- type OnChanOpenConfirmOverrideHooks
- type OnChanOpenInitAfterHooks
- type OnChanOpenInitBeforeHooks
- type OnChanOpenInitOverrideHooks
- type OnChanOpenTryAfterHooks
- type OnChanOpenTryBeforeHooks
- type OnChanOpenTryOverrideHooks
- type OnRecvPacketAfterHooks
- type OnRecvPacketBeforeHooks
- type OnRecvPacketOverrideHooks
- type OnTimeoutPacketAfterHooks
- type OnTimeoutPacketBeforeHooks
- type OnTimeoutPacketOverrideHooks
- type SendPacketAfterHooks
- type SendPacketBeforeHooks
- type SendPacketOverrideHooks
- type SendPacketPreProcessors
- type WasmHooks
- func (h WasmHooks) GetWasmSendPacketPreProcessor(_ sdktypes.Context, data []byte, processData map[string]interface{}) ([]byte, error)
- func (h WasmHooks) OnAcknowledgementPacketOverride(im IBCMiddleware, ctx sdktypes.Context, packet channeltypes.Packet, ...) error
- func (h WasmHooks) OnRecvPacketOverride(im IBCMiddleware, ctx sdktypes.Context, packet channeltypes.Packet, ...) ibcexported.Acknowledgement
- func (h WasmHooks) OnTimeoutPacketOverride(im IBCMiddleware, ctx sdktypes.Context, packet channeltypes.Packet, ...) error
- func (h WasmHooks) ProperlyConfigured() bool
- func (h WasmHooks) SendPacketAfterHook(ctx sdktypes.Context, _ *capabilitytypes.Capability, _ string, ...)
- func (h WasmHooks) SendPacketOverride(i ICS4Middleware, ctx sdktypes.Context, chanCap *capabilitytypes.Capability, ...) (uint64, error)
- type WriteAcknowledgementAfterHooks
- type WriteAcknowledgementBeforeHooks
- type WriteAcknowledgementOverrideHooks
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateMarkerMemo ¶
func CreateMarkerMemo(marker markertypes.MarkerAccountI) (interface{}, error)
CreateMarkerMemo returns a json memo for marker
func IsJSONAckError ¶
IsJSONAckError checks an IBC acknowledgement to see if it's an error. This is a replacement for ack.Success() which is currently not working on some circumstances
func MustExtractDenomFromPacketOnRecv ¶
func MustExtractDenomFromPacketOnRecv(packet ibcexported.PacketI) string
MustExtractDenomFromPacketOnRecv takes a packet with a valid ICS20 token data in the Data field and returns the denom as represented in the local chain. If the data cannot be unmarshalled this function will panic
func NewEmitErrorAcknowledgement ¶
func NewEmitErrorAcknowledgement(ctx sdktypes.Context, err error, errorContexts ...string) channeltypes.Acknowledgement
NewEmitErrorAcknowledgement creates a new error acknowledgement after having emitted an event with the details of the error.
func ProcessMarkerMemo ¶
func ProcessMarkerMemo(memo string) ([]sdktypes.AccAddress, markertypes.MarkerType, bool, error)
ProcessMarkerMemo extracts the list of transfer auth address from marker part of packet memo
func ResetMarkerAccessGrants ¶
func ResetMarkerAccessGrants(transferAuths []sdktypes.AccAddress, marker markertypes.MarkerAccountI) error
ResetMarkerAccessGrants removes all current access grants from marker and adds new transfer grants for transferAuths
func SanitizeMemo ¶
SanitizeMemo returns a keyed json object for memo
func ValidateAndParseMemo ¶
Types ¶
type AppModule ¶
type AppModule struct { AppModuleBasic // contains filtered or unexported fields }
AppModule implements an application module for the ibchooks module.
func NewAppModule ¶
func NewAppModule(ak authkeeper.AccountKeeper, keeper keeper.Keeper) AppModule
NewAppModule creates a new AppModule object.
func (AppModule) ConsensusVersion ¶
ConsensusVersion implements AppModule/ConsensusVersion.
func (AppModule) ExportGenesis ¶
func (AppModule) GenerateGenesisState ¶
func (AppModule) GenerateGenesisState(simState *module.SimulationState)
GenerateGenesisState creates a randomized GenState of the name module.
func (AppModule) InitGenesis ¶
func (am AppModule) InitGenesis(ctx sdk.Context, cdc codec.JSONCodec, data json.RawMessage) []abci.ValidatorUpdate
InitGenesis performs genesis initialization for the ibchooks module. It returns no validator updates.
func (AppModule) IsAppModule ¶ added in v1.19.0
func (AppModule) IsAppModule()
IsAppModule is a dummy function that satisfies the AppModule interface.
func (AppModule) IsOnePerModuleType ¶ added in v1.19.0
func (AppModule) IsOnePerModuleType()
IsOnePerModuleType is a dummy function that satisfies the OnePerModuleType interface (needed by AppModule).
func (AppModule) RandomizedParams ¶
func (AppModule) RandomizedParams(_ *rand.Rand) []simtypes.LegacyParamChange
RandomizedParams creates randomized name param changes for the simulator.
func (AppModule) RegisterInvariants ¶
func (am AppModule) RegisterInvariants(_ sdk.InvariantRegistry)
RegisterInvariants registers the ibchooks module invariants.
func (AppModule) RegisterServices ¶
func (am AppModule) RegisterServices(cfg module.Configurator)
RegisterServices registers a gRPC query service to respond to the module-specific gRPC queries.
func (AppModule) RegisterStoreDecoder ¶
func (am AppModule) RegisterStoreDecoder(_ simtypes.StoreDecoderRegistry)
RegisterStoreDecoder registers a decoder for name module's types
func (AppModule) WeightedOperations ¶
func (am AppModule) WeightedOperations(_ module.SimulationState) []simtypes.WeightedOperation
WeightedOperations returns the all the gov module operations with their respective weights.
type AppModuleBasic ¶
type AppModuleBasic struct{}
AppModuleBasic defines the basic application module used by the ibchooks module.
func (AppModuleBasic) DefaultGenesis ¶
func (AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage
DefaultGenesis returns default genesis state as raw bytes for the module.
func (AppModuleBasic) GetQueryCmd ¶
func (AppModuleBasic) GetQueryCmd() *cobra.Command
GetQueryCmd returns the root query command for the ibchooks module.
func (AppModuleBasic) GetTxCmd ¶
func (AppModuleBasic) GetTxCmd() *cobra.Command
GetTxCmd returns no root tx command for the ibchooks module.
func (AppModuleBasic) Name ¶
func (AppModuleBasic) Name() string
Name returns the ibchooks module's name.
func (AppModuleBasic) RegisterGRPCGatewayRoutes ¶
func (AppModuleBasic) RegisterGRPCGatewayRoutes(_ client.Context, _ *runtime.ServeMux)
RegisterGRPCGatewayRoutes registers the gRPC Gateway routes for the ibchooks module.
func (AppModuleBasic) RegisterInterfaces ¶
func (a AppModuleBasic) RegisterInterfaces(reg cdctypes.InterfaceRegistry)
RegisterInterfaces registers the module's interface types
func (AppModuleBasic) RegisterLegacyAminoCodec ¶
func (AppModuleBasic) RegisterLegacyAminoCodec(_ *codec.LegacyAmino)
RegisterLegacyAminoCodec registers the ibchooks module's types on the given LegacyAmino codec.
func (AppModuleBasic) RegisterRESTRoutes ¶
func (AppModuleBasic) RegisterRESTRoutes(_ client.Context, _ *mux.Router)
RegisterRESTRoutes registers the REST routes for the ibchooks module.
func (AppModuleBasic) ValidateGenesis ¶
func (AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, _ client.TxEncodingConfig, bz json.RawMessage) error
ValidateGenesis performs genesis state validation for the ibchooks module.
type GetAppVersionAfterHooks ¶
type GetAppVersionOverrideHooks ¶
type GetAppVersionOverrideHooks interface {
GetAppVersionOverride(i ICS4Middleware, ctx sdk.Context, portID, channelID string) (string, bool)
}
GetAppVersion Hooks
type IBCMiddleware ¶
type IBCMiddleware struct { App porttypes.IBCModule ICS4Middleware *ICS4Middleware }
func NewIBCMiddleware ¶
func NewIBCMiddleware(app porttypes.IBCModule, ics4 *ICS4Middleware) IBCMiddleware
func (IBCMiddleware) GetAppVersion ¶
func (IBCMiddleware) OnAcknowledgementPacket ¶
func (im IBCMiddleware) OnAcknowledgementPacket( ctx sdk.Context, packet channeltypes.Packet, acknowledgement []byte, relayer sdk.AccAddress, ) error
OnAcknowledgementPacket implements the IBCMiddleware interface
func (IBCMiddleware) OnChanCloseConfirm ¶
func (im IBCMiddleware) OnChanCloseConfirm( ctx sdk.Context, portID, channelID string, ) error
OnChanCloseConfirm implements the IBCMiddleware interface
func (IBCMiddleware) OnChanCloseInit ¶
func (im IBCMiddleware) OnChanCloseInit( ctx sdk.Context, portID, channelID string, ) error
OnChanCloseInit implements the IBCMiddleware interface
func (IBCMiddleware) OnChanOpenAck ¶
func (im IBCMiddleware) OnChanOpenAck( ctx sdk.Context, portID, channelID string, counterpartyChannelID string, counterpartyVersion string, ) error
OnChanOpenAck implements the IBCMiddleware interface
func (IBCMiddleware) OnChanOpenConfirm ¶
func (im IBCMiddleware) OnChanOpenConfirm( ctx sdk.Context, portID, channelID string, ) error
OnChanOpenConfirm implements the IBCMiddleware interface
func (IBCMiddleware) OnChanOpenInit ¶
func (im IBCMiddleware) OnChanOpenInit( ctx sdk.Context, order channeltypes.Order, connectionHops []string, portID string, channelID string, channelCap *capabilitytypes.Capability, counterparty channeltypes.Counterparty, version string, ) (string, error)
OnChanOpenInit implements the IBCMiddleware interface
func (IBCMiddleware) OnChanOpenTry ¶
func (im IBCMiddleware) OnChanOpenTry( ctx sdk.Context, order channeltypes.Order, connectionHops []string, portID, channelID string, channelCap *capabilitytypes.Capability, counterparty channeltypes.Counterparty, counterpartyVersion string, ) (string, error)
OnChanOpenTry implements the IBCMiddleware interface
func (IBCMiddleware) OnRecvPacket ¶
func (im IBCMiddleware) OnRecvPacket( ctx sdk.Context, packet channeltypes.Packet, relayer sdk.AccAddress, ) ibcexported.Acknowledgement
OnRecvPacket implements the IBCMiddleware interface
func (IBCMiddleware) OnTimeoutPacket ¶
func (im IBCMiddleware) OnTimeoutPacket( ctx sdk.Context, packet channeltypes.Packet, relayer sdk.AccAddress, ) error
OnTimeoutPacket implements the IBCMiddleware interface
func (IBCMiddleware) SendPacket ¶
func (im IBCMiddleware) SendPacket( ctx sdk.Context, chanCap *capabilitytypes.Capability, sourcePort string, sourceChannel string, timeoutHeight clienttypes.Height, timeoutTimestamp uint64, data []byte, ) (sequence uint64, err error)
SendPacket implements the ICS4 Wrapper interface
func (IBCMiddleware) WriteAcknowledgement ¶
func (im IBCMiddleware) WriteAcknowledgement( ctx sdk.Context, chanCap *capabilitytypes.Capability, packet ibcexported.PacketI, ack ibcexported.Acknowledgement, ) error
WriteAcknowledgement implements the ICS4 Wrapper interface
type ICS4Middleware ¶
type ICS4Middleware struct { // Hooks Hooks Hooks // contains filtered or unexported fields }
func NewICS4Middleware ¶
func NewICS4Middleware(channel porttypes.ICS4Wrapper, hooks Hooks) ICS4Middleware
func (ICS4Middleware) GetAppVersion ¶
func (ICS4Middleware) SendPacket ¶
func (i ICS4Middleware) SendPacket( ctx sdk.Context, chanCap *capabilitytypes.Capability, sourcePort string, sourceChannel string, timeoutHeight clienttypes.Height, timeoutTimestamp uint64, data []byte, ) (sequence uint64, err error)
func (ICS4Middleware) WriteAcknowledgement ¶
func (i ICS4Middleware) WriteAcknowledgement(ctx sdk.Context, chanCap *capabilitytypes.Capability, packet ibcexported.PacketI, ack ibcexported.Acknowledgement) error
type IbcHooks ¶
type IbcHooks struct { SendPacketPreProcessors []types.PreSendPacketDataProcessingFn // contains filtered or unexported fields }
func NewIbcHooks ¶
func NewIbcHooks(cdc codec.BinaryCodec, ibcHooksKeeper *keeper.Keeper, ibcKeeper *ibckeeper.Keeper, wasmHooks *WasmHooks, markerHooks *MarkerHooks, preSendPacketDataProcessingFns []types.PreSendPacketDataProcessingFn) IbcHooks
func (IbcHooks) GetSendPacketPreProcessors ¶
func (h IbcHooks) GetSendPacketPreProcessors() []types.PreSendPacketDataProcessingFn
GetSendPacketPreProcessors returns a list of ordered functions to be executed before ibc's SendPacket function in middleware
func (IbcHooks) OnAcknowledgementPacketOverride ¶
func (h IbcHooks) OnAcknowledgementPacketOverride(im IBCMiddleware, ctx sdktypes.Context, packet channeltypes.Packet, acknowledgement []byte, relayer sdktypes.AccAddress) error
OnAcknowledgementPacketOverride returns impl of wasm OnAcknowledgementPacketOverride
func (IbcHooks) OnRecvPacketOverride ¶
func (h IbcHooks) OnRecvPacketOverride(im IBCMiddleware, ctx sdktypes.Context, packet channeltypes.Packet, relayer sdktypes.AccAddress) ibcexported.Acknowledgement
OnRecvPacketOverride executes wasm or marker hooks for Ics20 packets, if not ics20 packet it will continue to process packet with no override
func (IbcHooks) OnTimeoutPacketOverride ¶
func (h IbcHooks) OnTimeoutPacketOverride(im IBCMiddleware, ctx sdktypes.Context, packet channeltypes.Packet, relayer sdktypes.AccAddress) error
OnTimeoutPacketOverride returns impl of wasm hook for OnTimeoutPacketOverride
func (IbcHooks) ProperlyConfigured ¶
ProperlyConfigured returns false if either wasm or marker hooks are configured incorrectly
func (IbcHooks) SendPacketAfterHook ¶
func (h IbcHooks) SendPacketAfterHook(ctx sdktypes.Context, chanCap *capabilitytypes.Capability, sourcePort string, sourceChannel string, timeoutHeight clienttypes.Height, timeoutTimestamp uint64, data []byte, sequence uint64, err error, processData map[string]interface{}, )
SendPacketAfterHook function is executed after ibc's SendPacket Note: processData is a JSON object of state data from the PreSendPacketDataProcessingFns
type MarkerHooks ¶
type MarkerHooks struct {
MarkerKeeper *markerkeeper.Keeper
}
func NewMarkerHooks ¶
func NewMarkerHooks(markerkeeper *markerkeeper.Keeper) MarkerHooks
func (MarkerHooks) AddUpdateMarker ¶
func (h MarkerHooks) AddUpdateMarker(ctx sdktypes.Context, packet exported.PacketI, ibcKeeper *ibckeeper.Keeper) error
AddUpdateMarker will add or update ibc Marker with transfer authorities
func (MarkerHooks) GetChainID ¶
func (h MarkerHooks) GetChainID(ctx sdktypes.Context, ibcPort, ibcChannel string, ibcKeeper *ibckeeper.Keeper) string
GetChainID returns the source chain id from packet for a `07-tendermint` client connection or returns `unknown`
func (MarkerHooks) ProperlyConfigured ¶
func (h MarkerHooks) ProperlyConfigured() bool
ProperlyConfigured returns false when marker hooks are configured incorrectly
func (MarkerHooks) SetupMarkerMemoFn ¶
func (h MarkerHooks) SetupMarkerMemoFn( ctx sdktypes.Context, data []byte, _ map[string]interface{}, ) ([]byte, error)
SetupMarkerMemoFn processes a ics20 packets memo part to have `marker` setup information for receiving chain
type OnAcknowledgementPacketAfterHooks ¶
type OnAcknowledgementPacketAfterHooks interface {
OnAcknowledgementPacketAfterHook(ctx sdk.Context, packet channeltypes.Packet, acknowledgement []byte, relayer sdk.AccAddress, err error)
}
type OnAcknowledgementPacketBeforeHooks ¶
type OnAcknowledgementPacketBeforeHooks interface {
OnAcknowledgementPacketBeforeHook(ctx sdk.Context, packet channeltypes.Packet, acknowledgement []byte, relayer sdk.AccAddress)
}
type OnAcknowledgementPacketOverrideHooks ¶
type OnAcknowledgementPacketOverrideHooks interface {
OnAcknowledgementPacketOverride(im IBCMiddleware, ctx sdk.Context, packet channeltypes.Packet, acknowledgement []byte, relayer sdk.AccAddress) error
}
OnAcknowledgementPacket Hooks
type OnChanCloseConfirmOverrideHooks ¶
type OnChanCloseConfirmOverrideHooks interface {
OnChanCloseConfirmOverride(im IBCMiddleware, ctx sdk.Context, portID, channelID string) error
}
OnChanCloseConfirm Hooks
type OnChanCloseInitOverrideHooks ¶
type OnChanCloseInitOverrideHooks interface {
OnChanCloseInitOverride(im IBCMiddleware, ctx sdk.Context, portID, channelID string) error
}
OnChanCloseInit Hooks
type OnChanOpenAckAfterHooks ¶
type OnChanOpenAckOverrideHooks ¶
type OnChanOpenAckOverrideHooks interface {
OnChanOpenAckOverride(im IBCMiddleware, ctx sdk.Context, portID, channelID string, counterpartyChannelID string, counterpartyVersion string) error
}
OnChanOpenAck Hooks
type OnChanOpenConfirmOverrideHooks ¶
type OnChanOpenConfirmOverrideHooks interface {
OnChanOpenConfirmOverride(im IBCMiddleware, ctx sdk.Context, portID, channelID string) error
}
OnChanOpenConfirm Hooks
type OnChanOpenInitAfterHooks ¶
type OnChanOpenInitAfterHooks interface {
OnChanOpenInitAfterHook(ctx sdk.Context, order channeltypes.Order, connectionHops []string, portID string, channelID string, channelCap *capabilitytypes.Capability, counterparty channeltypes.Counterparty, version string, finalVersion string, err error)
}
type OnChanOpenInitBeforeHooks ¶
type OnChanOpenInitBeforeHooks interface {
OnChanOpenInitBeforeHook(ctx sdk.Context, order channeltypes.Order, connectionHops []string, portID string, channelID string, channelCap *capabilitytypes.Capability, counterparty channeltypes.Counterparty, version string)
}
type OnChanOpenInitOverrideHooks ¶
type OnChanOpenInitOverrideHooks interface {
OnChanOpenInitOverride(im IBCMiddleware, ctx sdk.Context, order channeltypes.Order, connectionHops []string, portID string, channelID string, channelCap *capabilitytypes.Capability, counterparty channeltypes.Counterparty, version string) (string, error)
}
type OnChanOpenTryAfterHooks ¶
type OnChanOpenTryAfterHooks interface {
OnChanOpenTryAfterHook(ctx sdk.Context, order channeltypes.Order, connectionHops []string, portID, channelID string, channelCap *capabilitytypes.Capability, counterparty channeltypes.Counterparty, counterpartyVersion string, version string, err error)
}
type OnChanOpenTryBeforeHooks ¶
type OnChanOpenTryBeforeHooks interface {
OnChanOpenTryBeforeHook(ctx sdk.Context, order channeltypes.Order, connectionHops []string, portID, channelID string, channelCap *capabilitytypes.Capability, counterparty channeltypes.Counterparty, counterpartyVersion string)
}
type OnChanOpenTryOverrideHooks ¶
type OnChanOpenTryOverrideHooks interface {
OnChanOpenTryOverride(im IBCMiddleware, ctx sdk.Context, order channeltypes.Order, connectionHops []string, portID, channelID string, channelCap *capabilitytypes.Capability, counterparty channeltypes.Counterparty, counterpartyVersion string) (string, error)
}
OnChanOpenTry Hooks
type OnRecvPacketAfterHooks ¶
type OnRecvPacketAfterHooks interface {
OnRecvPacketAfterHook(ctx sdk.Context, packet channeltypes.Packet, relayer sdk.AccAddress, ack ibcexported.Acknowledgement)
}
type OnRecvPacketBeforeHooks ¶
type OnRecvPacketBeforeHooks interface {
OnRecvPacketBeforeHook(ctx sdk.Context, packet channeltypes.Packet, relayer sdk.AccAddress)
}
type OnRecvPacketOverrideHooks ¶
type OnRecvPacketOverrideHooks interface {
OnRecvPacketOverride(im IBCMiddleware, ctx sdk.Context, packet channeltypes.Packet, relayer sdk.AccAddress) ibcexported.Acknowledgement
}
OnRecvPacket Hooks
type OnTimeoutPacketAfterHooks ¶
type OnTimeoutPacketAfterHooks interface {
OnTimeoutPacketAfterHook(ctx sdk.Context, packet channeltypes.Packet, relayer sdk.AccAddress, err error)
}
type OnTimeoutPacketBeforeHooks ¶
type OnTimeoutPacketBeforeHooks interface {
OnTimeoutPacketBeforeHook(ctx sdk.Context, packet channeltypes.Packet, relayer sdk.AccAddress)
}
type OnTimeoutPacketOverrideHooks ¶
type OnTimeoutPacketOverrideHooks interface {
OnTimeoutPacketOverride(im IBCMiddleware, ctx sdk.Context, packet channeltypes.Packet, relayer sdk.AccAddress) error
}
OnTimeoutPacket Hooks
type SendPacketAfterHooks ¶
type SendPacketAfterHooks interface { SendPacketAfterHook(ctx sdk.Context, chanCap *capabilitytypes.Capability, sourcePort string, sourceChannel string, timeoutHeight clienttypes.Height, timeoutTimestamp uint64, data []byte, sequence uint64, err error, processData map[string]interface{}, ) }
type SendPacketBeforeHooks ¶
type SendPacketBeforeHooks interface { SendPacketBeforeHook(ctx sdk.Context, chanCap *capabilitytypes.Capability, sourcePort string, sourceChannel string, timeoutHeight clienttypes.Height, timeoutTimestamp uint64, data []byte, ) }
type SendPacketOverrideHooks ¶
type SendPacketOverrideHooks interface { SendPacketOverride( i ICS4Middleware, ctx sdk.Context, chanCap *capabilitytypes.Capability, sourcePort string, sourceChannel string, timeoutHeight clienttypes.Height, timeoutTimestamp uint64, data []byte, ) (sequence uint64, err error) }
SendPacket Hooks
type SendPacketPreProcessors ¶
type SendPacketPreProcessors interface {
GetSendPacketPreProcessors() []types.PreSendPacketDataProcessingFn
}
SendPacketPreProcessors returns a list of ordered functions to be executed before ibc's SendPacket function in middleware
type WasmHooks ¶
type WasmHooks struct { ContractKeeper *wasmkeeper.Keeper // contains filtered or unexported fields }
func NewWasmHooks ¶
func (WasmHooks) GetWasmSendPacketPreProcessor ¶
func (WasmHooks) OnAcknowledgementPacketOverride ¶
func (h WasmHooks) OnAcknowledgementPacketOverride(im IBCMiddleware, ctx sdktypes.Context, packet channeltypes.Packet, acknowledgement []byte, relayer sdktypes.AccAddress) error
func (WasmHooks) OnRecvPacketOverride ¶
func (h WasmHooks) OnRecvPacketOverride(im IBCMiddleware, ctx sdktypes.Context, packet channeltypes.Packet, relayer sdktypes.AccAddress) ibcexported.Acknowledgement
func (WasmHooks) OnTimeoutPacketOverride ¶
func (h WasmHooks) OnTimeoutPacketOverride(im IBCMiddleware, ctx sdktypes.Context, packet channeltypes.Packet, relayer sdktypes.AccAddress) error
func (WasmHooks) ProperlyConfigured ¶
ProperlyConfigured returns false when wasm hooks are configured incorrectly
func (WasmHooks) SendPacketAfterHook ¶
func (h WasmHooks) SendPacketAfterHook(ctx sdktypes.Context, _ *capabilitytypes.Capability, _ string, sourceChannel string, _ clienttypes.Height, _ uint64, _ []byte, sequence uint64, err error, processData map[string]interface{}, )
func (WasmHooks) SendPacketOverride ¶
func (h WasmHooks) SendPacketOverride( i ICS4Middleware, ctx sdktypes.Context, chanCap *capabilitytypes.Capability, sourcePort string, sourceChannel string, timeoutHeight clienttypes.Height, timeoutTimestamp uint64, data []byte, ) (uint64, error)
type WriteAcknowledgementAfterHooks ¶
type WriteAcknowledgementAfterHooks interface {
WriteAcknowledgementAfterHook(ctx sdk.Context, chanCap *capabilitytypes.Capability, packet ibcexported.PacketI, ack ibcexported.Acknowledgement, err error)
}
type WriteAcknowledgementBeforeHooks ¶
type WriteAcknowledgementBeforeHooks interface {
WriteAcknowledgementBeforeHook(ctx sdk.Context, chanCap *capabilitytypes.Capability, packet ibcexported.PacketI, ack ibcexported.Acknowledgement)
}
type WriteAcknowledgementOverrideHooks ¶
type WriteAcknowledgementOverrideHooks interface {
WriteAcknowledgementOverride(i ICS4Middleware, ctx sdk.Context, chanCap *capabilitytypes.Capability, packet ibcexported.PacketI, ack ibcexported.Acknowledgement) error
}
WriteAcknowledgement Hooks
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
client
|
|
Package types is a reverse proxy.
|
Package types is a reverse proxy. |