Documentation ¶
Index ¶
- Constants
- func AlwaysMigrateBytecode(k *BaseKeeper, n types.Nexus, otherMigrations func(ctx sdk.Context) error) func(ctx sdk.Context) error
- func GetCommandResponse(cmd types.Command) (types.QueryCommandResponse, error)
- func Migrate8to9(bk *BaseKeeper, n types.Nexus) func(ctx sdk.Context) error
- func NewAddressValidator() nexus.AddressValidator
- func NewMsgServerImpl(keeper types.BaseKeeper, n types.Nexus, v types.Voter, snap types.Snapshotter, ...) types.MsgServiceServer
- func NewQuerier(k types.BaseKeeper, n types.Nexus) sdk.Querier
- func NewSigHandler(cdc codec.Codec, keeper types.BaseKeeper) multisig.SigHandler
- func NewVoteHandler(cdc codec.Codec, keeper types.BaseKeeper, nexus types.Nexus, ...) vote.VoteHandler
- func QueryTokenAddressByAsset(ctx sdk.Context, k types.ChainKeeper, n types.Nexus, asset string) ([]byte, error)
- func QueryTokenAddressBySymbol(ctx sdk.Context, k types.ChainKeeper, n types.Nexus, symbol string) ([]byte, error)
- type BaseKeeper
- func (k BaseKeeper) CreateChain(ctx sdk.Context, params types.Params) (err error)
- func (k BaseKeeper) ExportGenesis(ctx sdk.Context) types.GenesisState
- func (k BaseKeeper) ForChain(ctx sdk.Context, chain nexus.ChainName) (types.ChainKeeper, error)
- func (k *BaseKeeper) InitChains(ctx sdk.Context)
- func (k BaseKeeper) InitGenesis(ctx sdk.Context, state types.GenesisState)
- func (k BaseKeeper) Logger(ctx sdk.Context) log.Logger
- type Querier
- func (q Querier) BatchedCommands(c context.Context, req *types.BatchedCommandsRequest) (*types.BatchedCommandsResponse, error)
- func (q Querier) BurnerInfo(c context.Context, req *types.BurnerInfoRequest) (*types.BurnerInfoResponse, error)
- func (q Querier) Bytecode(c context.Context, req *types.BytecodeRequest) (*types.BytecodeResponse, error)
- func (q Querier) Chains(c context.Context, req *types.ChainsRequest) (*types.ChainsResponse, error)
- func (q Querier) Command(c context.Context, req *types.CommandRequest) (*types.CommandResponse, error)
- func (q Querier) ConfirmationHeight(c context.Context, req *types.ConfirmationHeightRequest) (*types.ConfirmationHeightResponse, error)
- func (q Querier) DepositState(c context.Context, req *types.DepositStateRequest) (*types.DepositStateResponse, error)
- func (q Querier) ERC20Tokens(c context.Context, req *types.ERC20TokensRequest) (*types.ERC20TokensResponse, error)
- func (q Querier) Event(c context.Context, req *types.EventRequest) (*types.EventResponse, error)
- func (q Querier) GatewayAddress(c context.Context, req *types.GatewayAddressRequest) (*types.GatewayAddressResponse, error)
- func (q Querier) KeyAddress(c context.Context, req *types.KeyAddressRequest) (*types.KeyAddressResponse, error)
- func (q Querier) PendingCommands(c context.Context, req *types.PendingCommandsRequest) (*types.PendingCommandsResponse, error)
- func (q Querier) TokenInfo(c context.Context, req *types.TokenInfoRequest) (*types.TokenInfoResponse, error)
Constants ¶
const ( QTokenAddressBySymbol = "token-address-symbol" QTokenAddressByAsset = "token-address-asset" )
Query labels
const ( BCToken = "token" BCBurner = "burner" )
Bytecode labels
const ( BySymbol = "symbol" ByAsset = "asset" ByAddress = "address" )
Token address labels
Variables ¶
This section is empty.
Functions ¶
func AlwaysMigrateBytecode ¶ added in v0.27.0
func AlwaysMigrateBytecode(k *BaseKeeper, n types.Nexus, otherMigrations func(ctx sdk.Context) error) func(ctx sdk.Context) error
AlwaysMigrateBytecode migrates contracts bytecode for all evm chains (CRUCIAL, DO NOT DELETE AND ALWAYS REGISTER)
func GetCommandResponse ¶ added in v0.10.0
func GetCommandResponse(cmd types.Command) (types.QueryCommandResponse, error)
GetCommandResponse converts a Command into a CommandResponse type
func Migrate8to9 ¶ added in v0.31.0
Migrate8to9 returns the handler that performs in-place store migrations
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, n types.Nexus, v types.Voter, snap types.Snapshotter, staking types.StakingKeeper, slashing types.SlashingKeeper, multisigKeeper types.MultisigKeeper) types.MsgServiceServer
NewMsgServerImpl returns an implementation of the evm MsgServiceServer interface for the provided Keeper.
func NewQuerier ¶
NewQuerier returns a new querier for the evm module
func NewSigHandler ¶ added in v0.21.0
func NewSigHandler(cdc codec.Codec, keeper types.BaseKeeper) multisig.SigHandler
NewSigHandler returns the handler for processing signatures delivered by the multisig 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
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) CreateChain ¶ added in v0.27.0
CreateChain creates the subspace for a new EVM chain. Returns an error if the chain already exists
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(ctx sdk.Context, chain nexus.ChainName) (types.ChainKeeper, error)
ForChain returns the keeper associated to the given chain
func (*BaseKeeper) InitChains ¶ added in v0.26.2
func (k *BaseKeeper) InitChains(ctx sdk.Context)
InitChains initializes all existing EVM chains and their respective param subspaces
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
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, multisig types.MultisigKeeper) Querier
NewGRPCQuerier returns a new Querier
func (Querier) BatchedCommands ¶ added in v0.16.0
func (q Querier) BatchedCommands(c context.Context, req *types.BatchedCommandsRequest) (*types.BatchedCommandsResponse, error)
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
func (q Querier) BurnerInfo(c context.Context, req *types.BurnerInfoRequest) (*types.BurnerInfoResponse, error)
BurnerInfo implements the burner info grpc query
func (Querier) Bytecode ¶ added in v0.16.0
func (q Querier) Bytecode(c context.Context, req *types.BytecodeRequest) (*types.BytecodeResponse, error)
Bytecode returns the bytecode of a specified contract and chain
func (Querier) Chains ¶ added in v0.16.0
func (q Querier) Chains(c context.Context, req *types.ChainsRequest) (*types.ChainsResponse, error)
Chains returns the available evm chains
func (Querier) Command ¶ added in v0.31.3
func (q Querier) Command(c context.Context, req *types.CommandRequest) (*types.CommandResponse, error)
Command returns the command provided an id and a chain
func (Querier) ConfirmationHeight ¶ added in v0.13.4
func (q Querier) ConfirmationHeight(c context.Context, req *types.ConfirmationHeightRequest) (*types.ConfirmationHeightResponse, error)
ConfirmationHeight implements the confirmation height grpc query
func (Querier) DepositState ¶ added in v0.13.4
func (q Querier) DepositState(c context.Context, req *types.DepositStateRequest) (*types.DepositStateResponse, error)
DepositState returns the status of the deposit matching the given chain, tx ID and burner address Deprecated
func (Querier) ERC20Tokens ¶ added in v0.19.2
func (q Querier) ERC20Tokens(c context.Context, req *types.ERC20TokensRequest) (*types.ERC20TokensResponse, error)
ERC20Tokens returns the ERC20 tokens registered for a chain
func (Querier) Event ¶ added in v0.17.0
func (q Querier) Event(c context.Context, req *types.EventRequest) (*types.EventResponse, error)
Event implements the query for an event at a chain based on the event's ID
func (Querier) GatewayAddress ¶ added in v0.16.0
func (q Querier) GatewayAddress(c context.Context, req *types.GatewayAddressRequest) (*types.GatewayAddressResponse, error)
GatewayAddress returns the axelar gateway address for the specified chain
func (Querier) KeyAddress ¶ added in v0.16.0
func (q Querier) KeyAddress(c context.Context, req *types.KeyAddressRequest) (*types.KeyAddressResponse, error)
KeyAddress returns the address the specified key for the specified chain
func (Querier) PendingCommands ¶ added in v0.16.0
func (q Querier) PendingCommands(c context.Context, req *types.PendingCommandsRequest) (*types.PendingCommandsResponse, error)
PendingCommands returns the pending commands from a gateway
func (Querier) TokenInfo ¶ added in v0.19.2
func (q Querier) TokenInfo(c context.Context, req *types.TokenInfoRequest) (*types.TokenInfoResponse, error)
TokenInfo returns the token info for a registered asset