Documentation ¶
Index ¶
- type AppModule
- func (am AppModule) ConsensusVersion() uint64
- func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.RawMessage
- func (am 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 (am AppModule) ProposalContents(_ module.SimulationState) []simtypes.WeightedProposalContent
- func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)
- func (am AppModule) RegisterServices(cfg module.Configurator)
- func (am AppModule) RegisterStoreDecoder(sdr 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(clientCtx client.Context, mux *runtime.ServeMux)
- func (AppModuleBasic) RegisterInterfaces(registry codectypes.InterfaceRegistry)
- func (AppModuleBasic) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- func (AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, config client.TxEncodingConfig, bz json.RawMessage) error
- type ExampleIBCModule
- func (im ExampleIBCModule) OnAcknowledgementPacket(ctx sdk.Context, packet channeltypes.Packet, acknowledgement []byte, ...) error
- func (im ExampleIBCModule) OnChanCloseConfirm(ctx sdk.Context, portID, channelID string) error
- func (im ExampleIBCModule) OnChanCloseInit(ctx sdk.Context, portID, channelID string) error
- func (im ExampleIBCModule) OnChanOpenAck(ctx sdk.Context, portID, channelID string, counterpartyChannelID string, ...) error
- func (im ExampleIBCModule) OnChanOpenConfirm(ctx sdk.Context, portID, channelID string) error
- func (im ExampleIBCModule) OnChanOpenInit(ctx sdk.Context, order channeltypes.Order, connectionHops []string, ...) (string, error)
- func (im ExampleIBCModule) OnChanOpenTry(ctx sdk.Context, order channeltypes.Order, connectionHops []string, ...) (version string, err error)
- func (im ExampleIBCModule) OnRecvPacket(ctx sdk.Context, packet channeltypes.Packet, relayer sdk.AccAddress) ibcexported.Acknowledgement
- func (im ExampleIBCModule) OnTimeoutPacket(ctx sdk.Context, packet channeltypes.Packet, relayer sdk.AccAddress) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppModule ¶
type AppModule struct { AppModuleBasic // contains filtered or unexported fields }
AppModule is the module AppModule.
func NewAppModule ¶
NewAppModule initializes a new AppModule for the module.
func (AppModule) ConsensusVersion ¶
ConsensusVersion returns the consensus state breaking version for the swap module.
func (AppModule) ExportGenesis ¶
ExportGenesis returns the exported genesis state as raw bytes for the swap module.
func (AppModule) GenerateGenesisState ¶
func (am AppModule) GenerateGenesisState(simState *module.SimulationState)
GenerateGenesisState implements the AppModuleSimulation interface.
func (AppModule) InitGenesis ¶
func (am AppModule) InitGenesis( ctx sdk.Context, cdc codec.JSONCodec, data json.RawMessage, ) []abci.ValidatorUpdate
InitGenesis performs genesis initialization for the ibc-router module. It returns no validator updates.
func (AppModule) IsAppModule ¶
func (AppModule) IsAppModule()
IsAppModule implements module.AppModule.
func (AppModule) IsOnePerModuleType ¶
func (AppModule) IsOnePerModuleType()
IsOnePerModuleType implements module.AppModule.
func (AppModule) ProposalContents ¶
func (am AppModule) ProposalContents(_ module.SimulationState) []simtypes.WeightedProposalContent
ProposalContents implements the AppModuleSimulation interface.
func (AppModule) RegisterInvariants ¶
func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)
RegisterInvariants implements the AppModule interface.
func (AppModule) RegisterServices ¶
func (am AppModule) RegisterServices(cfg module.Configurator)
RegisterServices registers module services.
func (AppModule) RegisterStoreDecoder ¶
func (am AppModule) RegisterStoreDecoder(sdr simtypes.StoreDecoderRegistry)
RegisterStoreDecoder implements the AppModuleSimulation interface.
func (AppModule) WeightedOperations ¶
func (am AppModule) WeightedOperations(_ module.SimulationState) []simtypes.WeightedOperation
WeightedOperations implements the AppModuleSimulation interface.
type AppModuleBasic ¶
type AppModuleBasic struct{}
AppModuleBasic is the module AppModuleBasic.
func (AppModuleBasic) DefaultGenesis ¶
func (AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage
DefaultGenesis returns default genesis state as raw bytes for the swap module.
func (AppModuleBasic) GetQueryCmd ¶
func (AppModuleBasic) GetQueryCmd() *cobra.Command
GetQueryCmd implements AppModuleBasic interface.
func (AppModuleBasic) GetTxCmd ¶
func (AppModuleBasic) GetTxCmd() *cobra.Command
GetTxCmd implements AppModuleBasic interface.
func (AppModuleBasic) Name ¶
func (AppModuleBasic) Name() string
Name implements AppModuleBasic interface.
func (AppModuleBasic) RegisterGRPCGatewayRoutes ¶
func (AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *runtime.ServeMux)
RegisterGRPCGatewayRoutes registers the gRPC Gateway routes for the swap module.
func (AppModuleBasic) RegisterInterfaces ¶
func (AppModuleBasic) RegisterInterfaces(registry codectypes.InterfaceRegistry)
RegisterInterfaces registers module concrete types into protobuf Any.
func (AppModuleBasic) RegisterLegacyAminoCodec ¶
func (AppModuleBasic) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
RegisterLegacyAminoCodec implements AppModuleBasic interface.
func (AppModuleBasic) ValidateGenesis ¶
func (AppModuleBasic) ValidateGenesis( cdc codec.JSONCodec, config client.TxEncodingConfig, bz json.RawMessage, ) error
ValidateGenesis performs genesis state validation for the swap module.
type ExampleIBCModule ¶
type ExampleIBCModule struct {
// contains filtered or unexported fields
}
ExampleIBCModule implements all the callbacks that modules must define as specified in ICS-26
func NewExampleIBCModule ¶
func NewExampleIBCModule(k keeper.Keeper) ExampleIBCModule
NewExampleIBCModule creates a new IBCModule given the keeper and underlying application.
func (ExampleIBCModule) OnAcknowledgementPacket ¶
func (im ExampleIBCModule) OnAcknowledgementPacket( ctx sdk.Context, packet channeltypes.Packet, acknowledgement []byte, relayer sdk.AccAddress, ) error
OnAcknowledgementPacket implements the IBCModule interface.
func (ExampleIBCModule) OnChanCloseConfirm ¶
func (im ExampleIBCModule) OnChanCloseConfirm(ctx sdk.Context, portID, channelID string) error
OnChanCloseConfirm implements the IBCModule interface.
func (ExampleIBCModule) OnChanCloseInit ¶
func (im ExampleIBCModule) OnChanCloseInit(ctx sdk.Context, portID, channelID string) error
OnChanCloseInit implements the IBCModule interface.
func (ExampleIBCModule) OnChanOpenAck ¶
func (ExampleIBCModule) OnChanOpenConfirm ¶
func (im ExampleIBCModule) OnChanOpenConfirm(ctx sdk.Context, portID, channelID string) error
OnChanOpenConfirm implements the IBCModule interface.
func (ExampleIBCModule) OnChanOpenInit ¶
func (im ExampleIBCModule) OnChanOpenInit( ctx sdk.Context, order channeltypes.Order, connectionHops []string, portID string, channelID string, chanCap *capabilitytypes.Capability, counterparty channeltypes.Counterparty, version string, ) (string, error)
func (ExampleIBCModule) OnChanOpenTry ¶
func (im ExampleIBCModule) OnChanOpenTry( ctx sdk.Context, order channeltypes.Order, connectionHops []string, portID, channelID string, chanCap *capabilitytypes.Capability, counterparty channeltypes.Counterparty, counterpartyVersion string, ) (version string, err error)
func (ExampleIBCModule) OnRecvPacket ¶
func (im ExampleIBCModule) OnRecvPacket( ctx sdk.Context, packet channeltypes.Packet, relayer sdk.AccAddress, ) ibcexported.Acknowledgement
OnRecvPacket implements the IBCModule interface.
func (ExampleIBCModule) OnTimeoutPacket ¶
func (im ExampleIBCModule) OnTimeoutPacket( ctx sdk.Context, packet channeltypes.Packet, relayer sdk.AccAddress, ) error
OnTimeoutPacket implements the IBCMiddleware interface.