Documentation ¶
Index ¶
- func GetMigrationHandler() func(_ sdk.Context) error
- func NewAddressValidator(getter types.CosmosChainGetter) nexus.AddressValidator
- func NewMsgServerImpl(k types.BaseKeeper, n types.Nexus, b types.BankKeeper, ...) types.MsgServiceServer
- type Keeper
- func (k Keeper) EnqueueTransfer(ctx sdk.Context, transfer types.IBCTransfer) error
- func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState
- func (k Keeper) GetCosmosChainByName(ctx sdk.Context, chain nexus.ChainName) (types.CosmosChain, bool)
- func (k Keeper) GetCosmosChains(ctx sdk.Context) []nexus.ChainName
- func (k Keeper) GetFailedTransfer(ctx sdk.Context, id nexus.TransferID) (transfer types.IBCTransfer, ok bool)
- func (k Keeper) GetFeeCollector(ctx sdk.Context) (sdk.AccAddress, bool)
- func (k Keeper) GetIBCPath(ctx sdk.Context, chain nexus.ChainName) (string, bool)
- func (k Keeper) GetIBCTransferQueue(ctx sdk.Context) utils.KVQueue
- func (k Keeper) GetRouteTimeoutWindow(ctx sdk.Context) uint64
- func (k Keeper) InitGenesis(ctx sdk.Context, genState *types.GenesisState)
- func (k Keeper) IsCosmosChain(ctx sdk.Context, chain nexus.ChainName) bool
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) RegisterIBCPath(ctx sdk.Context, chain nexus.ChainName, path string) error
- func (k Keeper) SetCosmosChain(ctx sdk.Context, chain types.CosmosChain)
- func (k Keeper) SetFailedTransfer(ctx sdk.Context, transfer types.IBCTransfer)
- func (k Keeper) SetFeeCollector(ctx sdk.Context, address sdk.AccAddress) error
- type Querier
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMigrationHandler ¶ added in v0.14.0
GetMigrationHandler returns the handler that performs in-place store migrations
func NewAddressValidator ¶ added in v0.9.0
func NewAddressValidator(getter types.CosmosChainGetter) nexus.AddressValidator
NewAddressValidator returns the callback for validating cosmos SDK addresses
func NewMsgServerImpl ¶
func NewMsgServerImpl(k types.BaseKeeper, n types.Nexus, b types.BankKeeper, t types.IBCTransferKeeper, a types.AccountKeeper) types.MsgServiceServer
NewMsgServerImpl returns an implementation of the axelarnet MsgServiceServer interface for the provided Keeper.
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
Keeper provides access to all state changes regarding the Axelarnet module
func (Keeper) EnqueueTransfer ¶ added in v0.21.0
EnqueueTransfer stores the pending ibc transfer in the queue
func (Keeper) ExportGenesis ¶ added in v0.9.0
func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState
ExportGenesis returns the reward module's genesis state.
func (Keeper) GetCosmosChainByName ¶ added in v0.9.0
func (k Keeper) GetCosmosChainByName(ctx sdk.Context, chain nexus.ChainName) (types.CosmosChain, bool)
GetCosmosChainByName gets the address prefix of the given cosmos chain
func (Keeper) GetCosmosChains ¶
GetCosmosChains retrieves all registered cosmos chain names
func (Keeper) GetFailedTransfer ¶ added in v0.21.0
func (k Keeper) GetFailedTransfer(ctx sdk.Context, id nexus.TransferID) (transfer types.IBCTransfer, ok bool)
GetFailedTransfer returns the failed transfer for the given transfer ID
func (Keeper) GetFeeCollector ¶
GetFeeCollector gets axelarnet fee collector
func (Keeper) GetIBCPath ¶
GetIBCPath retrieves the IBC path associated to the specified chain
func (Keeper) GetIBCTransferQueue ¶ added in v0.21.0
GetIBCTransferQueue returns the queue of IBC transfers
func (Keeper) GetRouteTimeoutWindow ¶
GetRouteTimeoutWindow returns the timeout window for IBC transfers routed by axelarnet
func (Keeper) InitGenesis ¶ added in v0.9.0
func (k Keeper) InitGenesis(ctx sdk.Context, genState *types.GenesisState)
InitGenesis initializes the axelarnet module's state from a given genesis state.
func (Keeper) IsCosmosChain ¶ added in v0.12.0
IsCosmosChain returns true if the given chain name is for a cosmos chain
func (Keeper) RegisterIBCPath ¶
RegisterIBCPath registers an IBC path for a cosmos chain
func (Keeper) SetCosmosChain ¶ added in v0.9.0
func (k Keeper) SetCosmosChain(ctx sdk.Context, chain types.CosmosChain)
SetCosmosChain sets the address prefix for the given cosmos chain
func (Keeper) SetFailedTransfer ¶ added in v0.21.0
func (k Keeper) SetFailedTransfer(ctx sdk.Context, transfer types.IBCTransfer)
SetFailedTransfer saves failed IBC transfer
func (Keeper) SetFeeCollector ¶
SetFeeCollector sets axelarnet fee collector
type Querier ¶ added in v0.17.0
type Querier struct {
// contains filtered or unexported fields
}
Querier implements the grpc querier
func NewGRPCQuerier ¶ added in v0.17.0
func NewGRPCQuerier(k types.BaseKeeper, n types.Nexus) Querier
NewGRPCQuerier returns a new Querier
func (Querier) PendingIBCTransferCount ¶ added in v0.17.0
func (q Querier) PendingIBCTransferCount(c context.Context, _ *types.PendingIBCTransferCountRequest) (*types.PendingIBCTransferCountResponse, error)
PendingIBCTransferCount returns the number of pending IBC transfers per Cosmos chain