Documentation ¶
Index ¶
- func IBCTransfer(ctx sdk.Context, k types.BaseKeeper, t types.IBCTransferKeeper, ...) error
- func NewAddressValidator(k Keeper) nexus.AddressValidator
- func NewMsgServerImpl(k types.BaseKeeper, n types.Nexus, b types.BankKeeper, ...) types.MsgServiceServer
- type Keeper
- func (k Keeper) DeletePendingIBCTransfer(ctx sdk.Context, portID, channelID string, sequence uint64)
- func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState
- func (k Keeper) GetCosmosChainByAsset(ctx sdk.Context, asset string) (types.CosmosChain, bool)
- func (k Keeper) GetCosmosChainByName(ctx sdk.Context, chain string) (types.CosmosChain, bool)
- func (k Keeper) GetCosmosChains(ctx sdk.Context) []string
- func (k Keeper) GetFeeCollector(ctx sdk.Context) (sdk.AccAddress, bool)
- func (k Keeper) GetIBCPath(ctx sdk.Context, chain string) (string, bool)
- func (k Keeper) GetMinAmount(ctx sdk.Context) sdk.Int
- func (k Keeper) GetPendingIBCTransfer(ctx sdk.Context, portID, channelID string, sequence uint64) (types.IBCTransfer, bool)
- func (k Keeper) GetRouteTimeoutWindow(ctx sdk.Context) uint64
- func (k Keeper) GetTransactionFeeRate(ctx sdk.Context) sdk.Dec
- func (k Keeper) InitGenesis(ctx sdk.Context, nexus types.Nexus, genState *types.GenesisState)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) RegisterAssetToCosmosChain(ctx sdk.Context, asset string, chain string) error
- func (k Keeper) RegisterIBCPath(ctx sdk.Context, chain, path string) error
- func (k Keeper) SetCosmosChain(ctx sdk.Context, chain types.CosmosChain)
- func (k Keeper) SetFeeCollector(ctx sdk.Context, address sdk.AccAddress)
- func (k Keeper) SetPendingIBCTransfer(ctx sdk.Context, transfer types.IBCTransfer)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IBCTransfer ¶
func IBCTransfer(ctx sdk.Context, k types.BaseKeeper, t types.IBCTransferKeeper, c types.ChannelKeeper, token sdk.Coin, sender sdk.AccAddress, receiver string, path string) error
IBCTransfer inits an IBC transfer
func NewAddressValidator ¶ added in v0.9.0
func NewAddressValidator(k Keeper) 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, c types.ChannelKeeper, 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) DeletePendingIBCTransfer ¶
func (k Keeper) DeletePendingIBCTransfer(ctx sdk.Context, portID, channelID string, sequence uint64)
DeletePendingIBCTransfer deletes a pending IBC transfer routed by axelarnet
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) GetCosmosChainByAsset ¶ added in v0.9.0
GetCosmosChainByAsset gets an asset's original chain
func (Keeper) GetCosmosChainByName ¶ added in v0.9.0
GetCosmosChainByName gets the address prefix of the given cosmos chain
func (Keeper) GetCosmosChains ¶
GetCosmosChains retrieves all registered cosmos chains
func (Keeper) GetFeeCollector ¶
GetFeeCollector gets axelarnet fee collector
func (Keeper) GetIBCPath ¶
GetIBCPath retrieves the IBC path associated to the specified chain
func (Keeper) GetMinAmount ¶ added in v0.9.0
GetMinAmount returns the minimum deposit amount
func (Keeper) GetPendingIBCTransfer ¶
func (k Keeper) GetPendingIBCTransfer(ctx sdk.Context, portID, channelID string, sequence uint64) (types.IBCTransfer, bool)
GetPendingIBCTransfer gets a pending IBC transfer routed by axelarnet
func (Keeper) GetRouteTimeoutWindow ¶
GetRouteTimeoutWindow returns the timeout window for IBC transfers routed by axelarnet
func (Keeper) GetTransactionFeeRate ¶
GetTransactionFeeRate returns the transaction fee rate for axelarnet and cosmos chains
func (Keeper) InitGenesis ¶ added in v0.9.0
InitGenesis initializes the reward module's state from a given genesis state.
func (Keeper) RegisterAssetToCosmosChain ¶
RegisterAssetToCosmosChain sets an asset's original 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) SetFeeCollector ¶
func (k Keeper) SetFeeCollector(ctx sdk.Context, address sdk.AccAddress)
SetFeeCollector sets axelarnet fee collector
func (Keeper) SetPendingIBCTransfer ¶
func (k Keeper) SetPendingIBCTransfer(ctx sdk.Context, transfer types.IBCTransfer)
SetPendingIBCTransfer saves a pending IBC transfer routed by axelarnet