Versions in this module Expand all Collapse all v0 v0.1.17 Jun 13, 2023 Changes in this version + const ModuleName + const PortID + const Version + var MockAckCanaryCapabilityName = "mock acknowledgement canary capability name" + var MockAcknowledgement = channeltypes.NewResultAcknowledgement([]byte("mock acknowledgement")) + var MockAsyncPacketData = []byte("mock async packet data") + var MockFailAcknowledgement = channeltypes.NewErrorAcknowledgement(fmt.Errorf("mock failed acknowledgement")) + var MockFailPacketData = []byte("mock failed packet data") + var MockPacketData = []byte("mock packet data") + var MockRecvCanaryCapabilityName = "mock receive canary capability name" + var MockTimeoutCanaryCapabilityName = "mock timeout canary capability name" + func GetMockAckCanaryCapabilityName(packet channeltypes.Packet) string + func GetMockRecvCanaryCapabilityName(packet channeltypes.Packet) string + func GetMockTimeoutCanaryCapabilityName(packet channeltypes.Packet) string + type AppModule struct + func NewAppModule(pk PortKeeper) AppModule + func (AppModule) ConsensusVersion() uint64 + func (AppModule) QuerierRoute() string + func (AppModule) RegisterInvariants(ir sdk.InvariantRegistry) + func (am AppModule) BeginBlock(ctx sdk.Context, req abci.RequestBeginBlock) + func (am AppModule) EndBlock(ctx sdk.Context, req abci.RequestEndBlock) []abci.ValidatorUpdate + func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.RawMessage + func (am AppModule) InitGenesis(ctx sdk.Context, cdc codec.JSONCodec, data json.RawMessage) []abci.ValidatorUpdate + func (am AppModule) LegacyQuerierHandler(*codec.LegacyAmino) sdk.Querier + func (am AppModule) RegisterServices(module.Configurator) + func (am AppModule) Route() sdk.Route + type AppModuleBasic struct + func (AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage + func (AppModuleBasic) GetQueryCmd() *cobra.Command + func (AppModuleBasic) GetTxCmd() *cobra.Command + func (AppModuleBasic) Name() string + func (AppModuleBasic) RegisterInterfaces(registry codectypes.InterfaceRegistry) + func (AppModuleBasic) RegisterLegacyAminoCodec(*codec.LegacyAmino) + func (AppModuleBasic) ValidateGenesis(codec.JSONCodec, client.TxEncodingConfig, json.RawMessage) error + func (a AppModuleBasic) RegisterGRPCGatewayRoutes(_ client.Context, _ *runtime.ServeMux) + type EmptyAcknowledgement struct + Response []byte + func NewEmptyAcknowledgement() EmptyAcknowledgement + func (ack EmptyAcknowledgement) Acknowledgement() []byte + func (ack EmptyAcknowledgement) Success() bool + type IBCApp struct + OnAcknowledgementPacket func(ctx sdk.Context, packet channeltypes.Packet, acknowledgement []byte, ...) error + OnChanCloseConfirm func(ctx sdk.Context, portID, channelID string) error + OnChanCloseInit func(ctx sdk.Context, portID, channelID string) error + OnChanOpenAck func(ctx sdk.Context, portID, channelID string, counterpartyChannelID string, ...) error + OnChanOpenConfirm func(ctx sdk.Context, portID, channelID string) error + OnChanOpenInit func(ctx sdk.Context, order channeltypes.Order, connectionHops []string, ...) (string, error) + OnChanOpenTry func(ctx sdk.Context, order channeltypes.Order, connectionHops []string, ...) (version string, err error) + OnRecvPacket func(ctx sdk.Context, packet channeltypes.Packet, relayer sdk.AccAddress) exported.Acknowledgement + OnTimeoutPacket func(ctx sdk.Context, packet channeltypes.Packet, relayer sdk.AccAddress) error + PortID string + ScopedKeeper capabilitykeeper.ScopedKeeper + func NewIBCApp(portID string, scopedKeeper capabilitykeeper.ScopedKeeper) *IBCApp + type IBCModule struct + IBCApp *IBCApp + func NewIBCModule(appModule *AppModule, app *IBCApp) IBCModule + func (im IBCModule) OnAcknowledgementPacket(ctx sdk.Context, packet channeltypes.Packet, acknowledgement []byte, ...) error + func (im IBCModule) OnChanCloseConfirm(ctx sdk.Context, portID, channelID string) error + func (im IBCModule) OnChanCloseInit(ctx sdk.Context, portID, channelID string) error + func (im IBCModule) OnChanOpenAck(ctx sdk.Context, portID string, channelID string, counterpartyChannelID string, ...) error + func (im IBCModule) OnChanOpenConfirm(ctx sdk.Context, portID, channelID string) error + func (im IBCModule) OnChanOpenInit(ctx sdk.Context, order channeltypes.Order, connectionHops []string, ...) (string, error) + func (im IBCModule) OnChanOpenTry(ctx sdk.Context, order channeltypes.Order, connectionHops []string, ...) (version string, err error) + func (im IBCModule) OnRecvPacket(ctx sdk.Context, packet channeltypes.Packet, relayer sdk.AccAddress) exported.Acknowledgement + func (im IBCModule) OnTimeoutPacket(ctx sdk.Context, packet channeltypes.Packet, relayer sdk.AccAddress) error + type PV struct + PrivKey cryptotypes.PrivKey + func NewPV() PV + func (pv PV) GetPubKey() (crypto.PubKey, error) + func (pv PV) SignProposal(chainID string, proposal *tmproto.Proposal) error + func (pv PV) SignVote(chainID string, vote *tmproto.Vote) error + type PortKeeper interface + BindPort func(ctx sdk.Context, portID string) *capabilitytypes.Capability + IsBound func(ctx sdk.Context, portID string) bool