Documentation ¶
Index ¶
- func Migrate5to6(k Keeper) func(ctx sdk.Context) error
- func NewAddressValidator(keeper types.BaseKeeper) nexus.AddressValidator
- func NewMessageRoute(keeper Keeper, ibcK types.IBCKeeper, feegrantK types.FeegrantKeeper, ...) nexus.MessageRoute
- func NewMsgServerImpl(k Keeper, n types.Nexus, b types.BankKeeper, a types.AccountKeeper, ...) types.MsgServiceServer
- type Coin
- type Hooks
- func (h Hooks) AfterProposalDeposit(ctx sdk.Context, proposalID uint64, _ sdk.AccAddress)
- func (Hooks) AfterProposalFailedMinDeposit(ctx sdk.Context, proposalID uint64)
- func (h Hooks) AfterProposalSubmission(ctx sdk.Context, proposalID uint64)
- func (Hooks) AfterProposalVote(ctx sdk.Context, proposalID uint64, voterAddr sdk.AccAddress)
- func (Hooks) AfterProposalVotingPeriodEnded(ctx sdk.Context, proposalID uint64)
- type IBCKeeper
- type Keeper
- func (k Keeper) DeleteSeqIDMapping(ctx sdk.Context, portID, channelID string, seq uint64)
- func (k Keeper) DeleteSeqMessageIDMapping(ctx sdk.Context, portID, channelID string, seq uint64)
- func (k Keeper) EnqueueIBCTransfer(ctx sdk.Context, transfer types.IBCTransfer) error
- func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState
- func (k Keeper) GetChainNameByIBCPath(ctx sdk.Context, ibcPath string) (nexus.ChainName, bool)
- func (k Keeper) GetCosmosChainByName(ctx sdk.Context, chain nexus.ChainName) (cosmosChain types.CosmosChain, found bool)
- func (k Keeper) GetCosmosChains(ctx sdk.Context) []nexus.ChainName
- func (k Keeper) GetEndBlockerLimit(ctx sdk.Context) uint64
- 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) GetParams(ctx sdk.Context) (params types.Params)
- func (k Keeper) GetRouteTimeoutWindow(ctx sdk.Context) uint64
- func (k Keeper) GetSeqIDMapping(ctx sdk.Context, portID, channelID string, seq uint64) (nexus.TransferID, bool)
- func (k Keeper) GetSeqMessageIDMapping(ctx sdk.Context, portID, channelID string, seq uint64) (string, bool)
- func (k Keeper) GetTransfer(ctx sdk.Context, id nexus.TransferID) (transfer types.IBCTransfer, ok bool)
- func (k Keeper) GetTransferLimit(ctx sdk.Context) uint64
- func (k Keeper) Hooks(nexus types.Nexus, gov types.GovKeeper) Hooks
- 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) SetChainByIBCPath(ctx sdk.Context, ibcPath string, chain nexus.ChainName) error
- func (k Keeper) SetCosmosChain(ctx sdk.Context, chain types.CosmosChain) error
- func (k Keeper) SetFeeCollector(ctx sdk.Context, address sdk.AccAddress) error
- func (k Keeper) SetParams(ctx sdk.Context, p types.Params)
- func (k Keeper) SetSeqIDMapping(ctx sdk.Context, t types.IBCTransfer) error
- func (k Keeper) SetSeqMessageIDMapping(ctx sdk.Context, portID, channelID string, seq uint64, id string) error
- func (k Keeper) SetTransferCompleted(ctx sdk.Context, transferID nexus.TransferID) error
- func (k Keeper) SetTransferFailed(ctx sdk.Context, transferID nexus.TransferID) error
- func (k Keeper) SetTransferPending(ctx sdk.Context, transferID nexus.TransferID) error
- type Querier
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Migrate5to6 ¶ added in v0.34.0
Migrate5to6 returns the handler that performs in-place store migrations from version 5 to 6
func NewAddressValidator ¶ added in v0.9.0
func NewAddressValidator(keeper types.BaseKeeper) nexus.AddressValidator
NewAddressValidator returns the callback for validating cosmos SDK addresses
func NewMessageRoute ¶ added in v0.35.0
func NewMessageRoute( keeper Keeper, ibcK types.IBCKeeper, feegrantK types.FeegrantKeeper, bankK types.BankKeeper, nexusK types.Nexus, accountK types.AccountKeeper, ) nexus.MessageRoute
NewMessageRoute creates a new message route
func NewMsgServerImpl ¶
func NewMsgServerImpl(k Keeper, n types.Nexus, b types.BankKeeper, a types.AccountKeeper, ibcK IBCKeeper) types.MsgServiceServer
NewMsgServerImpl returns an implementation of the axelarnet MsgServiceServer interface for the provided Keeper.
Types ¶
type Coin ¶ added in v0.27.0
Coin provides functionality to lock and release coins
func NewCoin ¶ added in v0.27.0
NewCoin creates a coin struct, assign a coin type and normalize the denom if it's a ICS20 token
func (Coin) GetOriginalDenom ¶ added in v0.33.0
GetOriginalDenom returns the coin's original denom
func (Coin) Lock ¶ added in v0.27.0
func (c Coin) Lock(bankK types.BankKeeper, depositAddr sdk.AccAddress) error
Lock locks coin from deposit address to escrow address
type Hooks ¶ added in v0.34.0
type Hooks struct {
// contains filtered or unexported fields
}
Hooks defines the nexus hooks for the gov module.
func (Hooks) AfterProposalDeposit ¶ added in v0.34.0
AfterProposalDeposit implements govtypes.GovHooks.
func (Hooks) AfterProposalFailedMinDeposit ¶ added in v0.34.0
AfterProposalFailedMinDeposit implements govtypes.GovHooks.
func (Hooks) AfterProposalSubmission ¶ added in v0.34.0
AfterProposalSubmission implements govtypes.GovHooks.
func (Hooks) AfterProposalVote ¶ added in v0.34.0
AfterProposalVote implements govtypes.GovHooks.
type IBCKeeper ¶ added in v0.23.0
type IBCKeeper struct { Keeper // contains filtered or unexported fields }
IBCKeeper provides function to send IBC transfer
func NewIBCKeeper ¶ added in v0.23.0
func NewIBCKeeper(k Keeper, ibcTransferK types.IBCTransferKeeper) IBCKeeper
NewIBCKeeper returns a new IBCKeeper
func (IBCKeeper) ParseIBCDenom ¶ added in v0.27.0
ParseIBCDenom retrieves the full identifiers trace and base denomination from the IBC transfer keeper store
func (IBCKeeper) SendIBCTransfer ¶ added in v0.23.0
SendIBCTransfer inits an IBC transfer
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
Keeper provides access to all state changes regarding the Axelarnet module
func NewKeeper ¶
func NewKeeper(cdc codec.BinaryCodec, storeKey sdk.StoreKey, paramSpace params.Subspace, channelK types.ChannelKeeper, feegrantK types.FeegrantKeeper) Keeper
NewKeeper returns a new axelarnet keeper
func (Keeper) DeleteSeqIDMapping ¶ added in v0.23.0
DeleteSeqIDMapping deletes (port, channel, packet seq) -> transfer ID mapping
func (Keeper) DeleteSeqMessageIDMapping ¶ added in v0.32.0
DeleteSeqMessageIDMapping deletes (port, channel, packet seq) -> general message ID mapping
func (Keeper) EnqueueIBCTransfer ¶ added in v0.23.0
EnqueueIBCTransfer 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) GetChainNameByIBCPath ¶ added in v0.27.0
GetChainNameByIBCPath returns the chain name for the given ibc path
func (Keeper) GetCosmosChainByName ¶ added in v0.9.0
func (k Keeper) GetCosmosChainByName(ctx sdk.Context, chain nexus.ChainName) (cosmosChain types.CosmosChain, found bool)
GetCosmosChainByName gets the address prefix of the given cosmos chain
func (Keeper) GetCosmosChains ¶
GetCosmosChains retrieves all registered cosmos chain names
func (Keeper) GetEndBlockerLimit ¶ added in v0.25.0
GetEndBlockerLimit returns the transfer limit for IBC transfers routed in the end blocker by axelarnet
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) GetSeqIDMapping ¶ added in v0.23.0
func (k Keeper) GetSeqIDMapping(ctx sdk.Context, portID, channelID string, seq uint64) (nexus.TransferID, bool)
GetSeqIDMapping gets transfer ID by port, channel and packet seq
func (Keeper) GetSeqMessageIDMapping ¶ added in v0.32.0
func (k Keeper) GetSeqMessageIDMapping(ctx sdk.Context, portID, channelID string, seq uint64) (string, bool)
GetSeqMessageIDMapping gets general message ID by port, channel and packet seq
func (Keeper) GetTransfer ¶ added in v0.23.0
func (k Keeper) GetTransfer(ctx sdk.Context, id nexus.TransferID) (transfer types.IBCTransfer, ok bool)
GetTransfer returns the ibc transfer for the given transfer ID
func (Keeper) GetTransferLimit ¶ added in v0.25.0
GetTransferLimit returns the transfer limit for transfers processed 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) SetChainByIBCPath ¶ added in v0.27.0
SetChainByIBCPath sets the chain name for the given ibc path
func (Keeper) SetCosmosChain ¶ added in v0.9.0
SetCosmosChain sets the address prefix for the given cosmos chain
func (Keeper) SetFeeCollector ¶
SetFeeCollector sets axelarnet fee collector
func (Keeper) SetSeqIDMapping ¶ added in v0.23.0
SetSeqIDMapping sets transfer ID by port, channel and packet seq
func (Keeper) SetSeqMessageIDMapping ¶ added in v0.32.0
func (k Keeper) SetSeqMessageIDMapping(ctx sdk.Context, portID, channelID string, seq uint64, id string) error
SetSeqMessageIDMapping sets general message ID by port, channel and packet seq
func (Keeper) SetTransferCompleted ¶ added in v0.23.0
SetTransferCompleted sets the transfer as completed
func (Keeper) SetTransferFailed ¶ added in v0.23.0
SetTransferFailed sets the transfer as failed
func (Keeper) SetTransferPending ¶ added in v0.23.0
SetTransferPending sets the transfer as pending
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) Params ¶ added in v0.34.0
func (q Querier) Params(c context.Context, req *types.ParamsRequest) (*types.ParamsResponse, error)
Params returns the reward module params
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, upto the transfer limit