Documentation
¶
Index ¶
- type Handler
- type IntegrationHandler
- func (gqh *IntegrationHandler) EstimateGas(args []byte, gasCap uint64) (*evmtypes.EstimateGasResponse, error)
- func (gqh *IntegrationHandler) EthCall(args []byte, gasCap uint64) (*evmtypes.MsgEthereumTxResponse, error)
- func (gqh *IntegrationHandler) GetBalanceFromEVM(address sdktypes.AccAddress) (*evmtypes.QueryBalanceResponse, error)
- func (gqh *IntegrationHandler) GetBaseFee() (*feemarkettypes.QueryBaseFeeResponse, error)
- func (gqh *IntegrationHandler) GetEvmAccount(address common.Address) (*evmtypes.QueryAccountResponse, error)
- func (gqh *IntegrationHandler) GetEvmBaseFee() (*evmtypes.QueryBaseFeeResponse, error)
- func (gqh *IntegrationHandler) GetEvmParams() (*evmtypes.QueryParamsResponse, error)
- func (gqh *IntegrationHandler) GetFeeMarketParams() (*feemarkettypes.QueryParamsResponse, error)
- func (gqh *IntegrationHandler) GetGovParams(paramsType string) (*govtypes.QueryParamsResponse, error)
- func (gqh *IntegrationHandler) GetProposal(proposalID uint64) (*govtypes.QueryProposalResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler interface {
basegrpc.Handler
// EVM methods
GetEvmAccount(address common.Address) (*evmtypes.QueryAccountResponse, error)
EstimateGas(args []byte, GasCap uint64) (*evmtypes.EstimateGasResponse, error)
EthCall(args []byte, gasCap uint64) (*evmtypes.MsgEthereumTxResponse, error)
GetEvmParams() (*evmtypes.QueryParamsResponse, error)
GetEvmBaseFee() (*evmtypes.QueryBaseFeeResponse, error)
GetBalanceFromEVM(address sdk.AccAddress) (*evmtypes.QueryBalanceResponse, error)
// FeeMarket methods
GetBaseFee() (*feemarkettypes.QueryBaseFeeResponse, error)
GetFeeMarketParams() (*feemarkettypes.QueryParamsResponse, error)
// Gov methods
GetProposal(proposalID uint64) (*govtypes.QueryProposalResponse, error)
GetGovParams(paramsType string) (*govtypes.QueryParamsResponse, error)
}
Handler is an interface that defines the methods that are used to query the network's modules via gRPC.
func NewIntegrationHandler ¶
NewIntegrationHandler creates a new IntegrationHandler instance.
type IntegrationHandler ¶
type IntegrationHandler struct {
// We take the IntegrationHandler from common/grpc to get the common methods.
*basegrpc.IntegrationHandler
// contains filtered or unexported fields
}
IntegrationHandler is a helper struct to query the network's modules via gRPC. This is to simulate the behavior of a real user and avoid querying the modules directly.
func (*IntegrationHandler) EstimateGas ¶
func (gqh *IntegrationHandler) EstimateGas(args []byte, gasCap uint64) (*evmtypes.EstimateGasResponse, error)
EstimateGas returns the estimated gas for the given call args.
func (*IntegrationHandler) EthCall ¶ added in v0.5.0
func (gqh *IntegrationHandler) EthCall(args []byte, gasCap uint64) (*evmtypes.MsgEthereumTxResponse, error)
EthCall executes a read-only call against the EVM without modifying state.
func (*IntegrationHandler) GetBalanceFromEVM ¶
func (gqh *IntegrationHandler) GetBalanceFromEVM(address sdktypes.AccAddress) (*evmtypes.QueryBalanceResponse, error)
GetBalanceFromEVM returns the balance for the given address.
func (*IntegrationHandler) GetBaseFee ¶
func (gqh *IntegrationHandler) GetBaseFee() (*feemarkettypes.QueryBaseFeeResponse, error)
GetBaseFee returns the base fee from the feemarket module.
func (*IntegrationHandler) GetEvmAccount ¶
func (gqh *IntegrationHandler) GetEvmAccount(address common.Address) (*evmtypes.QueryAccountResponse, error)
GetEvmAccount returns the EVM account for the given address.
func (*IntegrationHandler) GetEvmBaseFee ¶
func (gqh *IntegrationHandler) GetEvmBaseFee() (*evmtypes.QueryBaseFeeResponse, error)
GetEvmParams returns the EVM module params.
func (*IntegrationHandler) GetEvmParams ¶
func (gqh *IntegrationHandler) GetEvmParams() (*evmtypes.QueryParamsResponse, error)
GetEvmParams returns the EVM module params.
func (*IntegrationHandler) GetFeeMarketParams ¶
func (gqh *IntegrationHandler) GetFeeMarketParams() (*feemarkettypes.QueryParamsResponse, error)
GetBaseFee returns the base fee from the feemarket module.
func (*IntegrationHandler) GetGovParams ¶
func (gqh *IntegrationHandler) GetGovParams(paramsType string) (*govtypes.QueryParamsResponse, error)
GetGovParams returns the gov params from the gov module.
func (*IntegrationHandler) GetProposal ¶
func (gqh *IntegrationHandler) GetProposal(proposalID uint64) (*govtypes.QueryProposalResponse, error)
GetProposal returns the proposal from the gov module.