keeper

package
v0.17.2 Latest Latest
Warning

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

Go to latest
Published: May 4, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMigrationHandler added in v0.14.0

func GetMigrationHandler(k Keeper) func(ctx sdk.Context) error

GetMigrationHandler returns the handler that performs in-place store migrations from v0.13 to v0.14. The migration includes: - remove all path - remove all chain <-> asset mapping

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(getter types.CosmosChainGetter) nexus.AddressValidator

NewAddressValidator returns the callback for validating cosmos SDK addresses

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) 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 string) (types.CosmosChain, bool)

GetCosmosChainByName gets the address prefix of the given cosmos chain

func (Keeper) GetCosmosChains

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

GetCosmosChains retrieves all registered cosmos chain names

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

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

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

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

IsCosmosChain returns true if the given chain name is for a cosmos chain

func (Keeper) Logger

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

Logger returns a module-specific logger.

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

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

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

PendingIBCTransferCount returns the number of pending IBC transfers per Cosmos chain

Jump to

Keyboard shortcuts

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