Documentation ¶
Index ¶
- Constants
- func GetCommandResponse(ctx sdk.Context, chainName string, n types.Nexus, cmd types.Command) (types.QueryCommandResponse, error)
- func GetMigrationHandler(k types.BaseKeeper, n types.Nexus) func(ctx sdk.Context) error
- func NewAddressValidator() nexus.AddressValidator
- func NewMsgServerImpl(keeper types.BaseKeeper, t types.TSS, n types.Nexus, s types.Signer, ...) types.MsgServiceServer
- func NewQuerier(k types.BaseKeeper, s types.Signer, n types.Nexus) sdk.Querier
- func NewTssHandler(keeper types.BaseKeeper, nexus types.Nexus, signer types.Signer) tss.Handler
- 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) DeletePendingChain(ctx sdk.Context, chain string)
- func (k BaseKeeper) ExportGenesis(ctx sdk.Context) types.GenesisState
- func (k BaseKeeper) ForChain(chain string) types.ChainKeeper
- func (k BaseKeeper) GetPendingChain(ctx sdk.Context, chainName string) (types.PendingChain, bool)
- func (k BaseKeeper) HasChain(ctx sdk.Context, chain string) bool
- func (k BaseKeeper) InitGenesis(ctx sdk.Context, state types.GenesisState)
- func (k BaseKeeper) Logger(ctx sdk.Context) log.Logger
- func (k BaseKeeper) SetPendingChain(ctx sdk.Context, chain nexus.Chain, p types.Params)
- 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) 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) 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)
Constants ¶
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
const ( BCGateway = "gateway" BCGatewayDeployment = "gateway-deployment" BCToken = "token" BCBurner = "burner" )
Bytecode labels
const ( BySymbol = "symbol" ByAsset = "asset" )
Token address labels
Variables ¶
This section is empty.
Functions ¶
func GetCommandResponse ¶ added in v0.10.0
func GetCommandResponse(ctx sdk.Context, chainName string, n types.Nexus, cmd types.Command) (types.QueryCommandResponse, error)
GetCommandResponse converts a Command into a CommandResponse type
func GetMigrationHandler ¶ added in v0.14.0
GetMigrationHandler returns the handler that performs in-place store migrations from v0.13 to v0.14. The migration includes: - Update contracts' bytecode - Set burner code on existing tokens
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 ¶
NewQuerier returns a new querier for the evm module
func NewTssHandler ¶
NewTssHandler returns the handler for processing signatures delivered by the tss 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) DeletePendingChain ¶ added in v0.13.3
func (k BaseKeeper) DeletePendingChain(ctx sdk.Context, chain string)
DeletePendingChain deletes a chain that is not registered yet
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 string) types.ChainKeeper
ForChain returns the keeper associated to the given chain
func (BaseKeeper) GetPendingChain ¶ added in v0.13.3
func (k BaseKeeper) GetPendingChain(ctx sdk.Context, chainName string) (types.PendingChain, bool)
GetPendingChain returns the chain object with the given name, false if the chain is either unknown or confirmed
func (BaseKeeper) HasChain ¶ added in v0.13.3
func (k BaseKeeper) HasChain(ctx sdk.Context, chain string) 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.
func (BaseKeeper) SetPendingChain ¶ added in v0.13.3
SetPendingChain stores the chain pending for confirmation
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
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) 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 fetches the state of a deposit confirmation using a grpc query
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