keeper

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2021 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

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 NewMsgServerImpl

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 NewKeeper

func NewKeeper(cdc codec.BinaryCodec, storeKey sdk.StoreKey, paramSpace params.Subspace) Keeper

NewKeeper returns a new axelarnet keeper

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) DeletePendingRefund

func (k Keeper) DeletePendingRefund(ctx sdk.Context, req types.RefundMsgRequest)

DeletePendingRefund retrieves a pending refundable message

func (Keeper) GetCosmosChain

func (k Keeper) GetCosmosChain(ctx sdk.Context, asset string) (string, bool)

GetCosmosChain gets a asset's original chain

func (Keeper) GetCosmosChains

func (k Keeper) GetCosmosChains(ctx sdk.Context) []string

GetCosmosChains retrieves all registered cosmos chains

func (Keeper) GetFeeCollector

func (k Keeper) GetFeeCollector(ctx sdk.Context) (sdk.AccAddress, bool)

GetFeeCollector gets axelarnet fee collector

func (Keeper) GetIBCPath

func (k Keeper) GetIBCPath(ctx sdk.Context, chain string) (string, bool)

GetIBCPath retrieves the IBC path associated to the specified chain

func (Keeper) GetParams

func (k Keeper) GetParams(ctx sdk.Context) (params types.Params)

GetParams gets the axelarnet module's parameters

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) GetPendingRefund

func (k Keeper) GetPendingRefund(ctx sdk.Context, req types.RefundMsgRequest) (sdk.Coin, bool)

GetPendingRefund retrieves a pending refundable message

func (Keeper) GetRouteTimeoutWindow

func (k Keeper) GetRouteTimeoutWindow(ctx sdk.Context) uint64

GetRouteTimeoutWindow returns the timeout window for IBC transfers routed by axelarnet

func (Keeper) GetTransactionFeeRate

func (k Keeper) GetTransactionFeeRate(ctx sdk.Context) sdk.Dec

GetTransactionFeeRate returns the transaction fee rate for axelarnet and cosmos chains

func (Keeper) Logger

func (k Keeper) Logger(ctx sdk.Context) log.Logger

Logger returns a module-specific logger.

func (Keeper) RegisterAssetToCosmosChain

func (k Keeper) RegisterAssetToCosmosChain(ctx sdk.Context, asset string, chain string)

RegisterAssetToCosmosChain sets an asset origins from a cosmos chain

func (Keeper) RegisterIBCPath

func (k Keeper) RegisterIBCPath(ctx sdk.Context, chain, path string) error

RegisterIBCPath registers an IBC path for a cosmos chain

func (Keeper) SetFeeCollector

func (k Keeper) SetFeeCollector(ctx sdk.Context, address sdk.AccAddress)

SetFeeCollector sets axelarnet fee collector

func (Keeper) SetParams

func (k Keeper) SetParams(ctx sdk.Context, n types.Nexus, p types.Params)

SetParams sets the axelarnet module's parameters

func (Keeper) SetPendingIBCTransfer

func (k Keeper) SetPendingIBCTransfer(ctx sdk.Context, portID, channelID string, sequence uint64, value types.IBCTransfer)

SetPendingIBCTransfer saves a pending IBC transfer routed by axelarnet

func (Keeper) SetPendingRefund

func (k Keeper) SetPendingRefund(ctx sdk.Context, req types.RefundMsgRequest, fee sdk.Coin) error

SetPendingRefund saves pending refundable message

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL