keeper

package
v0.19.1 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2022 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const (
	QTokenAddressBySymbol = "token-address-symbol"
	QTokenAddressByAsset  = "token-address-asset"
	QAddressByKeyRole     = "address-by-key-role"
	QAddressByKeyID       = "address-by-key-id"
	QPendingCommands      = "pending-commands"
	QCommand              = "command"
)

Query labels

View Source
const (
	BCToken  = "token"
	BCBurner = "burner"
)

Bytecode labels

View Source
const (
	BySymbol = "symbol"
	ByAsset  = "asset"
)

Token address labels

Variables

This section is empty.

Functions

func GetCommandResponse added in v0.10.0

func GetCommandResponse(cmd types.Command) (types.QueryCommandResponse, error)

GetCommandResponse converts a Command into a CommandResponse type

func GetMigrationHandler added in v0.14.0

func GetMigrationHandler(k BaseKeeper, n types.Nexus) func(ctx sdk.Context) error

GetMigrationHandler returns the handler that performs in-place store migrations from v0.17 to v0.18. The migration includes: - migrate contracts bytecode (CRUCIAL AND DO NOT DELETE) for all evm chains - delete pending chains from the base keeper - add VotingGracePeriod param for all evm chains - delete uaxl token for all evm chains - delete uaxl token's burners for all evm chains - migrate uaxl token's confirmed deposits to burnt for all evm chains - delete uaxl token's deployment commands for all evm chains

func NewAddressValidator added in v0.9.0

func NewAddressValidator() nexus.AddressValidator

NewAddressValidator returns the callback for validating hex-encoded EVM addresses

func NewMsgServerImpl

func NewMsgServerImpl(keeper types.BaseKeeper, t types.TSS, n types.Nexus, s types.Signer, v types.Voter, snap types.Snapshotter) types.MsgServiceServer

NewMsgServerImpl returns an implementation of the bitcoin MsgServiceServer interface for the provided Keeper.

func NewQuerier

func NewQuerier(k types.BaseKeeper, s types.Signer, n types.Nexus) sdk.Querier

NewQuerier returns a new querier for the evm module

func NewTssHandler

func NewTssHandler(cdc codec.Codec, keeper types.BaseKeeper, signer types.Signer) tss.Handler

NewTssHandler returns the handler for processing signatures delivered by the tss module

func NewVoteHandler added in v0.17.0

func NewVoteHandler(cdc codec.Codec, keeper types.BaseKeeper, nexus types.Nexus, rewarder types.Rewarder) vote.VoteHandler

NewVoteHandler returns the handler for processing vote delivered by the vote module

func QueryTokenAddressByAsset

func QueryTokenAddressByAsset(ctx sdk.Context, k types.ChainKeeper, n types.Nexus, asset string) ([]byte, error)

QueryTokenAddressByAsset returns the address of the token contract by asset

func QueryTokenAddressBySymbol

func QueryTokenAddressBySymbol(ctx sdk.Context, k types.ChainKeeper, n types.Nexus, symbol string) ([]byte, error)

QueryTokenAddressBySymbol returns the address of the token contract by symbol

Types

type BaseKeeper added in v0.13.3

type BaseKeeper struct {
	// contains filtered or unexported fields
}

BaseKeeper implements the base Keeper

func NewKeeper

func NewKeeper(cdc codec.BinaryCodec, storeKey sdk.StoreKey, paramsKeeper types.ParamsKeeper) BaseKeeper

NewKeeper returns a new EVM base keeper

func (BaseKeeper) ExportGenesis added in v0.13.3

func (k BaseKeeper) ExportGenesis(ctx sdk.Context) types.GenesisState

ExportGenesis generates a genesis file from the state

func (BaseKeeper) ForChain added in v0.13.3

func (k BaseKeeper) ForChain(chain nexus.ChainName) types.ChainKeeper

ForChain returns the keeper associated to the given chain

func (BaseKeeper) HasChain added in v0.13.3

func (k BaseKeeper) HasChain(ctx sdk.Context, chain nexus.ChainName) bool

HasChain returns true of the chain has been set up

func (BaseKeeper) InitGenesis added in v0.13.3

func (k BaseKeeper) InitGenesis(ctx sdk.Context, state types.GenesisState)

InitGenesis initializes the state from a genesis file

func (BaseKeeper) Logger added in v0.13.3

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

Logger returns a module-specific logger.

type Querier added in v0.13.4

type Querier struct {
	// contains filtered or unexported fields
}

Querier implements the grpc querier

func NewGRPCQuerier added in v0.13.4

func NewGRPCQuerier(k types.BaseKeeper, n types.Nexus, s types.Signer) Querier

NewGRPCQuerier returns a new Querier

func (Querier) BatchedCommands added in v0.16.0

BatchedCommands implements the batched commands query If BatchedCommandsResponse.Id is set, it returns the latest batched commands with the specified id. Otherwise returns the latest batched commands.

func (Querier) BurnerInfo added in v0.13.4

BurnerInfo implements the burner info grpc query

func (Querier) Bytecode added in v0.16.0

Bytecode returns the bytecode of a specified contract and chain

func (Querier) Chains added in v0.16.0

Chains returns the available evm chains

func (Querier) ConfirmationHeight added in v0.13.4

ConfirmationHeight implements the confirmation height grpc query

func (Querier) DepositState added in v0.13.4

DepositState fetches the state of a deposit confirmation using a grpc query

func (Querier) Event added in v0.17.0

Event implements the query for an event at a chain based on the event's ID

func (Querier) GatewayAddress added in v0.16.0

GatewayAddress returns the axelar gateway address for the specified chain

func (Querier) KeyAddress added in v0.16.0

KeyAddress returns the address the specified key for the specified chain

func (Querier) PendingCommands added in v0.16.0

PendingCommands returns the pending commands from a gateway

Jump to

Keyboard shortcuts

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