grpc

package
v0.6.6 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2026 License: Apache-2.0 Imports: 12 Imported by: 5 modules, 3 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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

func NewIntegrationHandler(network network.Network) Handler

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

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.

Jump to

Keyboard shortcuts

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