Documentation
¶
Index ¶
- type AppModule
- func (am AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock)
- func (AppModule) ConsensusVersion() uint64
- func (am AppModule) EndBlock(_ sdk.Context, _ 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, gs json.RawMessage) []abci.ValidatorUpdate
- func (am AppModule) Name() string
- func (AppModule) QuerierRoute() string
- func (am AppModule) RegisterInvariants(_ sdk.InvariantRegistry)
- func (am AppModule) RegisterServices(cfg module.Configurator)
- type AppModuleBasic
- func (AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage
- func (b AppModuleBasic) GetQueryCmd() *cobra.Command
- func (b AppModuleBasic) GetTxCmd() *cobra.Command
- func (AppModuleBasic) Name() string
- func (b AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *runtime.ServeMux)
- func (AppModuleBasic) RegisterInterfaces(registry codectypes.InterfaceRegistry)
- func (AppModuleBasic) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- func (b AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, config client.TxEncodingConfig, bz json.RawMessage) error
- 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) exported.Acknowledgement
- func (im *IBCMiddleware) OnTimeoutPacket(ctx sdk.Context, packet channeltypes.Packet, relayer sdk.AccAddress) error
- func (im *IBCMiddleware) RevertSentPacket(ctx sdk.Context, packet exported.PacketI) error
- func (im *IBCMiddleware) SendPacket(ctx sdk.Context, chanCap *capabilitytypes.Capability, ...) (uint64, error)
- func (im *IBCMiddleware) WriteAcknowledgement(ctx sdk.Context, chanCap *capabilitytypes.Capability, packet exported.PacketI, ...) error
- type ICS4Wrapper
- func (i *ICS4Wrapper) ExportGenesis(ctx sdk.Context) *types.GenesisState
- func (i *ICS4Wrapper) GetAppVersion(ctx sdk.Context, portID, channelID string) (string, bool)
- func (i *ICS4Wrapper) GetParams(ctx sdk.Context) (params types.Params)
- func (i *ICS4Wrapper) InitGenesis(ctx sdk.Context, genState types.GenesisState)
- func (i ICS4Wrapper) Params(goCtx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (i *ICS4Wrapper) RevokeQuotaHistory(ctx sdk.Context, seq uint64)
- func (i *ICS4Wrapper) SendPacket(ctx sdk.Context, chanCap *capabilitytypes.Capability, ...) (uint64, error)
- func (i *ICS4Wrapper) SetParams(ctx sdk.Context, params types.Params)
- func (i *ICS4Wrapper) UpdateQuota(ctx sdk.Context, seq uint64, data []byte) error
- func (i *ICS4Wrapper) WriteAcknowledgement(ctx sdk.Context, chanCap *capabilitytypes.Capability, packet exported.PacketI, ...) error
- type Querier
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 implements the AppModule interface for the capability module.
func NewAppModule ¶
func NewAppModule(ics4wrapper ICS4Wrapper) AppModule
func (AppModule) BeginBlock ¶
func (am AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock)
BeginBlock executes all ABCI BeginBlock logic respective to the txfees module.
func (AppModule) ConsensusVersion ¶
ConsensusVersion implements AppModule/ConsensusVersion.
func (AppModule) EndBlock ¶
func (am AppModule) EndBlock(_ sdk.Context, _ abci.RequestEndBlock) []abci.ValidatorUpdate
EndBlock executes all ABCI EndBlock logic respective to the txfees module. It returns no validator updates.
func (AppModule) ExportGenesis ¶
ExportGenesis returns the txfees module's exported genesis state as raw JSON bytes.
func (AppModule) InitGenesis ¶
func (am AppModule) InitGenesis(ctx sdk.Context, cdc codec.JSONCodec, gs json.RawMessage) []abci.ValidatorUpdate
InitGenesis performs the txfees module's genesis initialization It returns no validator updates.
func (AppModule) QuerierRoute ¶
QuerierRoute returns the ibc-rate-limit module's query routing key.
func (AppModule) RegisterInvariants ¶
func (am AppModule) RegisterInvariants(_ sdk.InvariantRegistry)
RegisterInvariants registers the txfees module's 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.
type AppModuleBasic ¶
type AppModuleBasic struct{}
func (AppModuleBasic) DefaultGenesis ¶
func (AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage
func (AppModuleBasic) GetQueryCmd ¶
func (b AppModuleBasic) GetQueryCmd() *cobra.Command
func (AppModuleBasic) GetTxCmd ¶
func (b AppModuleBasic) GetTxCmd() *cobra.Command
func (AppModuleBasic) Name ¶
func (AppModuleBasic) Name() string
func (AppModuleBasic) RegisterGRPCGatewayRoutes ¶
func (b AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *runtime.ServeMux)
--------------------------------------- Interfaces.
func (AppModuleBasic) RegisterInterfaces ¶
func (AppModuleBasic) RegisterInterfaces(registry codectypes.InterfaceRegistry)
RegisterInterfaces registers interfaces and implementations of the ibc-rate-limit module.
func (AppModuleBasic) RegisterLegacyAminoCodec ¶
func (AppModuleBasic) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
func (AppModuleBasic) ValidateGenesis ¶
func (b AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, config client.TxEncodingConfig, bz json.RawMessage) error
ValidateGenesis performs genesis state validation for the ibc-rate-limit module.
type IBCMiddleware ¶
type IBCMiddleware struct {
// contains filtered or unexported fields
}
func NewIBCMiddleware ¶
func NewIBCMiddleware(app porttypes.IBCModule, ics4 *ICS4Wrapper) 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, ) exported.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) RevertSentPacket ¶
RevertSentPacket Notifies the contract that a sent packet wasn't properly received
func (*IBCMiddleware) SendPacket ¶
func (im *IBCMiddleware) SendPacket( ctx sdk.Context, chanCap *capabilitytypes.Capability, sourcePort, sourceChannel string, timeoutHeight clienttypes.Height, timeoutTimestamp uint64, data []byte, ) (uint64, error)
SendPacket implements the ICS4 Wrapper interface
func (*IBCMiddleware) WriteAcknowledgement ¶
func (im *IBCMiddleware) WriteAcknowledgement( ctx sdk.Context, chanCap *capabilitytypes.Capability, packet exported.PacketI, ack exported.Acknowledgement, ) error
WriteAcknowledgement implements the ICS4 Wrapper interface
type ICS4Wrapper ¶
type ICS4Wrapper struct {
// contains filtered or unexported fields
}
func NewICS4Middleware ¶
func NewICS4Middleware( channel porttypes.ICS4Wrapper, accountKeeper *authkeeper.AccountKeeper, bankKeeper *bankkeeper.Keeper, quotaKeeper types.QuotaKeeper, paramSpace paramtypes.Subspace, ) ICS4Wrapper
func (*ICS4Wrapper) ExportGenesis ¶
func (i *ICS4Wrapper) ExportGenesis(ctx sdk.Context) *types.GenesisState
ExportGenesis returns the x/ibc-rate-limit module's exported genesis.
func (*ICS4Wrapper) GetAppVersion ¶
func (*ICS4Wrapper) GetParams ¶
func (i *ICS4Wrapper) GetParams(ctx sdk.Context) (params types.Params)
func (*ICS4Wrapper) InitGenesis ¶
func (i *ICS4Wrapper) InitGenesis(ctx sdk.Context, genState types.GenesisState)
InitGenesis initializes the x/ibc-rate-limit module's state from a provided genesis
func (ICS4Wrapper) Params ¶
func (i ICS4Wrapper) Params(goCtx context.Context, req *types.QueryParamsRequest, ) (*types.QueryParamsResponse, error)
func (*ICS4Wrapper) RevokeQuotaHistory ¶
func (i *ICS4Wrapper) RevokeQuotaHistory(ctx sdk.Context, seq uint64)
func (*ICS4Wrapper) SendPacket ¶
func (i *ICS4Wrapper) SendPacket(ctx sdk.Context, chanCap *capabilitytypes.Capability, sourcePort, sourceChannel string, timeoutHeight clienttypes.Height, timeoutTimestamp uint64, data []byte) (uint64, error)
SendPacket implements the ICS4 interface and is called when sending packets.
func (*ICS4Wrapper) SetParams ¶
func (i *ICS4Wrapper) SetParams(ctx sdk.Context, params types.Params)
func (*ICS4Wrapper) UpdateQuota ¶
func (*ICS4Wrapper) WriteAcknowledgement ¶
func (i *ICS4Wrapper) WriteAcknowledgement(ctx sdk.Context, chanCap *capabilitytypes.Capability, packet exported.PacketI, ack exported.Acknowledgement) error
type Querier ¶
type Querier struct {
K ICS4Wrapper
}
func (Querier) Params ¶
func (q Querier) Params(ctx sdk.Context, req *types.QueryParamsRequest, ) (*types.QueryParamsResponse, error)