Documentation
¶
Index ¶
- Constants
- Variables
- type QueryPlugin
- func (qp *QueryPlugin) HandleERC20Allowance(ctx sdk.Context, call *evmbindingtypes.ERC20AllowanceRequest) (*evmbindingtypes.ERC20AllowanceResponse, error)
- func (qp *QueryPlugin) HandleERC20Balance(ctx sdk.Context, call *evmbindingtypes.ERC20BalanceRequest) (*evmbindingtypes.ERC20BalanceResponse, error)
- func (qp *QueryPlugin) HandleERC20Information(ctx sdk.Context, call *evmbindingtypes.ERC20InformationRequest) (*evmbindingtypes.ERC20InformationResponse, error)
- func (qp *QueryPlugin) HandleEVMQuery(ctx sdk.Context, evmQuery evmbindingtypes.Query) ([]byte, error)
- func (qp *QueryPlugin) HandleEthCall(ctx sdk.Context, call *evmbindingtypes.EthCallRequest) (*evmbindingtypes.EthCallResponse, error)
Constants ¶
View Source
const (
ErrorCodespace = "evm_wasmbinding"
)
Variables ¶
View Source
var ( ErrExecutionReverted = errorsmod.Register(ErrorCodespace, 1, "execution reverted") ErrExecutingEthCall = errorsmod.Register(ErrorCodespace, 2, "error executing eth call") )
Functions ¶
This section is empty.
Types ¶
type QueryPlugin ¶
type QueryPlugin struct {
// contains filtered or unexported fields
}
QueryPlugin is a custom query plugin for the EVM module
func NewQueryPlugin ¶
func NewQueryPlugin(ek *evmkeeper.Keeper) *QueryPlugin
NewQueryPlugin returns a reference to a new QueryPlugin for the EVM module
func (*QueryPlugin) HandleERC20Allowance ¶
func (qp *QueryPlugin) HandleERC20Allowance(ctx sdk.Context, call *evmbindingtypes.ERC20AllowanceRequest) (*evmbindingtypes.ERC20AllowanceResponse, error)
HandleERC20Allowance handles the ERC20Allowance query
func (*QueryPlugin) HandleERC20Balance ¶
func (qp *QueryPlugin) HandleERC20Balance(ctx sdk.Context, call *evmbindingtypes.ERC20BalanceRequest) (*evmbindingtypes.ERC20BalanceResponse, error)
HandleERC20Balance handles the ERC20Balance query
func (*QueryPlugin) HandleERC20Information ¶
func (qp *QueryPlugin) HandleERC20Information(ctx sdk.Context, call *evmbindingtypes.ERC20InformationRequest) (*evmbindingtypes.ERC20InformationResponse, error)
HandleERC20Information handles the ERC20Information query Since we are using a ABI, we don't need to timeout the call
func (*QueryPlugin) HandleEVMQuery ¶
func (qp *QueryPlugin) HandleEVMQuery(ctx sdk.Context, evmQuery evmbindingtypes.Query) ([]byte, error)
HandleEVMQuery is a custom querier for the EVM module
func (*QueryPlugin) HandleEthCall ¶
func (qp *QueryPlugin) HandleEthCall(ctx sdk.Context, call *evmbindingtypes.EthCallRequest) (*evmbindingtypes.EthCallResponse, error)
HandleEthCall handles the EthCall query
Click to show internal directories.
Click to hide internal directories.