Documentation
¶
Index ¶
- type AppModule
- func (am AppModule) ConsensusVersion() uint64
- func (am AppModule) IsAppModule()
- func (am AppModule) IsOnePerModuleType()
- func (am AppModule) OnAcknowledgementPacket(ctx sdk.Context, packet packettypes.Packet, acknowledgement []byte) (*sdk.Result, error)
- func (am AppModule) OnRecvPacket(ctx sdk.Context, packet packettypes.Packet) (*sdk.Result, []byte, error)
- func (am AppModule) RegisterServices(cfg module.Configurator)
- type AppModuleBasic
- func (AppModuleBasic) GetQueryCmd() *cobra.Command
- func (a AppModuleBasic) GetTxCmd() *cobra.Command
- func (a AppModuleBasic) Name() string
- func (AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *runtime.ServeMux)
- func (a AppModuleBasic) RegisterInterfaces(registry codectypes.InterfaceRegistry)
- func (a AppModuleBasic) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- type Inputs
- type Outputs
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 represents the AppModule for this module
func NewAppModule ¶
NewAppModule creates a new tibc-mt-transfer module
func (AppModule) ConsensusVersion ¶
ConsensusVersion implements AppModule/ConsensusVersion.
func (AppModule) IsAppModule ¶ added in v0.6.0
func (am AppModule) IsAppModule()
IsAppModule implements the appmodule.AppModule interface.
func (AppModule) IsOnePerModuleType ¶ added in v0.6.0
func (am AppModule) IsOnePerModuleType()
IsOnePerModuleType implements the depinject.OnePerModuleType interface.
func (AppModule) OnAcknowledgementPacket ¶
func (am AppModule) OnAcknowledgementPacket( ctx sdk.Context, packet packettypes.Packet, acknowledgement []byte, ) (*sdk.Result, error)
OnAcknowledgementPacket implements the TIBCModule interface. It processes the acknowledgement that the counterparty chain sends back in response to a packet that was sent by this chain.
func (AppModule) OnRecvPacket ¶
func (am AppModule) OnRecvPacket( ctx sdk.Context, packet packettypes.Packet, ) (*sdk.Result, []byte, error)
OnRecvPacket implements the TIBCModule interface. It processes the incoming packet from counterparty chain using the Keeper.OnRecvPacket method. It emits an event with the packet data and acknowledgement status. It returns the acknowledgement bytes and error.
func (AppModule) RegisterServices ¶
func (am AppModule) RegisterServices(cfg module.Configurator)
RegisterServices registers module services.
type AppModuleBasic ¶
type AppModuleBasic struct{}
AppModuleBasic is the TIBC mt Transfer AppModuleBasic
func (AppModuleBasic) GetQueryCmd ¶
func (AppModuleBasic) GetQueryCmd() *cobra.Command
GetQueryCmd returns no root query command for the tibc-nft-transfer module.
func (AppModuleBasic) GetTxCmd ¶
func (a AppModuleBasic) GetTxCmd() *cobra.Command
GetTxCmd returns the root tx command for the tibc-mt-transfer module.
func (AppModuleBasic) Name ¶
func (a AppModuleBasic) Name() string
Name returns the name of the module.
func (AppModuleBasic) RegisterGRPCGatewayRoutes ¶
func (AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *runtime.ServeMux)
RegisterGRPCGatewayRoutes registers the gRPC Gateway routes for the tibc-mt-transfer module.
func (AppModuleBasic) RegisterInterfaces ¶
func (a AppModuleBasic) RegisterInterfaces(registry codectypes.InterfaceRegistry)
RegisterInterfaces registers module concrete types into protobuf Any.
func (AppModuleBasic) RegisterLegacyAminoCodec ¶
func (a AppModuleBasic) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
RegisterLegacyAminoCodec implements AppModuleBasic interface
type Inputs ¶ added in v0.6.0
type Inputs struct {
depinject.In
Config *modulev1.Module
Cdc codec.Codec
Key *store.KVStoreKey
AccountKeeper types.AccountKeeper
MtKeeper types.MtKeeper
PacketKeeper types.PacketKeeper
ClientKeeper types.ClientKeeper
}
Inputs define the module inputs for the depinject.
type Outputs ¶ added in v0.6.0
type Outputs struct {
depinject.Out
MtTransferKeeper keeper.Keeper
Route routingtypes.Route
Module appmodule.AppModule
}
Outputs define the module outputs for the depinject.
func ProvideModule ¶ added in v0.6.0
ProvideModule creates and returns the farm module with the specified inputs.
It takes Inputs as the parameter, which includes the configuration, codec, key, account keeper, bank keeper, governance keeper, coinswap keeper, and legacy subspace. It returns Outputs containing the farm keeper and the app module.