diff --git a/CHANGELOG.md b/CHANGELOG.md index ca304d933a..d2a9b44e87 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -43,6 +43,7 @@ Ref: https://keepachangelog.com/en/1.0.0/ * (ante) [#773](https://github.com/crypto-org-chain/ethermint/pull/773) fix: race condition in antecache * (ante) [#788](https://github.com/crypto-org-chain/ethermint/pull/788) fix: add check on evm transaction tip * (rpc) [#804](https://github.com/crypto-org-chain/ethermint/pull/804) fix: add allow-unprotected-txs config +* (rpc) [#810](https://github.com/crypto-org-chain/ethermint/pull/810) fix: estimate gas not accurate ## [v0.22.0] - 2025-08-12 diff --git a/go.mod b/go.mod index aca43714a1..8bfe01fbdb 100644 --- a/go.mod +++ b/go.mod @@ -107,8 +107,7 @@ require ( github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06 // indirect github.com/coinbase/rosetta-sdk-go/types v1.0.0 // indirect github.com/cometbft/cometbft-db v0.15.0 // indirect - github.com/consensys/bavard v0.1.27 // indirect - github.com/consensys/gnark-crypto v0.16.0 // indirect + github.com/consensys/gnark-crypto v0.18.1 // indirect github.com/cosmos/btcutil v1.0.5 // indirect github.com/cosmos/gogogateway v1.2.0 // indirect github.com/cosmos/iavl v1.2.2 // indirect @@ -199,7 +198,6 @@ require ( github.com/minio/highwayhash v1.0.3 // indirect github.com/mitchellh/go-homedir v1.1.0 // indirect github.com/mitchellh/mapstructure v1.5.0 // indirect - github.com/mmcloughlin/addchain v0.4.0 // indirect github.com/mtibben/percent v0.2.1 // indirect github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a // indirect @@ -240,7 +238,7 @@ require ( github.com/tklauser/go-sysconf v0.3.12 // indirect github.com/tklauser/numcpus v0.6.1 // indirect github.com/twitchyliquid64/golang-asm v0.15.1 // indirect - github.com/ulikunitz/xz v0.5.14 // indirect + github.com/ulikunitz/xz v0.5.15 // indirect github.com/zeebo/errs v1.4.0 // indirect github.com/zondax/hid v0.9.2 // indirect github.com/zondax/ledger-go v0.14.3 // indirect @@ -274,7 +272,6 @@ require ( gotest.tools/v3 v3.5.2 // indirect nhooyr.io/websocket v1.8.11 // indirect pgregory.net/rapid v1.2.0 // indirect - rsc.io/tmplfunc v0.0.3 // indirect ) replace ( diff --git a/go.sum b/go.sum index 19a8aab780..30fd61b82b 100644 --- a/go.sum +++ b/go.sum @@ -840,10 +840,8 @@ github.com/coinbase/rosetta-sdk-go/types v1.0.0 h1:jpVIwLcPoOeCR6o1tU+Xv7r5bMONN github.com/coinbase/rosetta-sdk-go/types v1.0.0/go.mod h1:eq7W2TMRH22GTW0N0beDnN931DW0/WOI1R2sdHNHG4c= github.com/cometbft/cometbft-db v0.15.0 h1:VLtsRt8udD4jHCyjvrsTBpgz83qne5hnL245AcPJVRk= github.com/cometbft/cometbft-db v0.15.0/go.mod h1:EBrFs1GDRiTqrWXYi4v90Awf/gcdD5ExzdPbg4X8+mk= -github.com/consensys/bavard v0.1.27 h1:j6hKUrGAy/H+gpNrpLU3I26n1yc+VMGmd6ID5+gAhOs= -github.com/consensys/bavard v0.1.27/go.mod h1:k/zVjHHC4B+PQy1Pg7fgvG3ALicQw540Crag8qx+dZs= -github.com/consensys/gnark-crypto v0.16.0 h1:8Dl4eYmUWK9WmlP1Bj6je688gBRJCJbT8Mw4KoTAawo= -github.com/consensys/gnark-crypto v0.16.0/go.mod h1:Ke3j06ndtPTVvo++PhGNgvm+lgpLvzbcE2MqljY7diU= +github.com/consensys/gnark-crypto v0.18.1 h1:RyLV6UhPRoYYzaFnPQA4qK3DyuDgkTgskDdoGqFt3fI= +github.com/consensys/gnark-crypto v0.18.1/go.mod h1:L3mXGFTe1ZN+RSJ+CLjUt9x7PNdx8ubaYfDROyp2Z8c= github.com/containerd/continuity v0.3.0 h1:nisirsYROK15TAMVukJOUyGJjz4BNQJBVsNvAXZJ/eg= github.com/containerd/continuity v0.3.0/go.mod h1:wJEAIwKOm/pBZuBd0JmeTvnLquTB1Ag8espWhkykbPM= github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= @@ -1184,7 +1182,6 @@ github.com/google/pprof v0.0.0-20250403155104-27863c87afa6/go.mod h1:boTsfXsheKC github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= github.com/google/s2a-go v0.1.9 h1:LGD7gtMgezd8a/Xak7mEWL0PjoTQFvpRudN895yqKW0= github.com/google/s2a-go v0.1.9/go.mod h1:YA0Ei2ZQL3acow2O62kdp9UlnvMmU7kA6Eutn0dXayM= -github.com/google/subcommands v1.2.0/go.mod h1:ZjhPrFU+Olkh9WazFPsl27BQ4UPiG37m3yTrtFlrHVk= github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= @@ -1432,9 +1429,6 @@ github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyua github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/mitchellh/pointerstructure v1.2.0 h1:O+i9nHnXS3l/9Wu7r4NrEdwA2VFTicjUEN1uBnDo34A= github.com/mitchellh/pointerstructure v1.2.0/go.mod h1:BRAsLI5zgXmw97Lf6s25bs8ohIXc3tViBH44KcwB2g4= -github.com/mmcloughlin/addchain v0.4.0 h1:SobOdjm2xLj1KkXN5/n0xTIWyZA2+s99UCY1iPfkHRY= -github.com/mmcloughlin/addchain v0.4.0/go.mod h1:A86O+tHqZLMNO4w6ZZ4FlVQEadcoqkyU72HC5wJ4RlU= -github.com/mmcloughlin/profile v0.1.1/go.mod h1:IhHD7q1ooxgwTgjxQYkACGA77oFTDdFVejUS1/tS/qU= github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= @@ -1700,8 +1694,8 @@ github.com/tyler-smith/go-bip39 v1.1.0/go.mod h1:gUYDtqQw1JS3ZJ8UWVcGTGqqr6YIN3C github.com/ugorji/go v1.1.7/go.mod h1:kZn38zHttfInRq0xu/PH0az30d+z6vm202qpg1oXVMw= github.com/ugorji/go/codec v1.1.7/go.mod h1:Ax+UKWsSmolVDwsd+7N3ZtXu+yMGCf907BLYF3GoBXY= github.com/ulikunitz/xz v0.5.10/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14= -github.com/ulikunitz/xz v0.5.14 h1:uv/0Bq533iFdnMHZdRBTOlaNMdb1+ZxXIlHDZHIHcvg= -github.com/ulikunitz/xz v0.5.14/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14= +github.com/ulikunitz/xz v0.5.15 h1:9DNdB5s+SgV3bQ2ApL10xRc35ck0DuIX/isZvIk+ubY= +github.com/ulikunitz/xz v0.5.15/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14= github.com/urfave/cli v1.20.0/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA= github.com/urfave/cli v1.22.1 h1:+mkCCcOFKPnCmVYVcURKps1Xe+3zP90gSYGNfRkjoIY= github.com/urfave/cli v1.22.1/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= @@ -2631,8 +2625,6 @@ rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8 rsc.io/pdf v0.1.1/go.mod h1:n8OzWcQ6Sp37PL01nO98y4iUCRdTGarVfzxY20ICaU4= rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= -rsc.io/tmplfunc v0.0.3 h1:53XFQh69AfOa8Tw0Jm7t+GV7KZhOi6jzsCzTtKbMvzU= -rsc.io/tmplfunc v0.0.3/go.mod h1:AG3sTPzElb1Io3Yg4voV9AGZJuleGAwaVRxL9M49PhA= sigs.k8s.io/yaml v1.1.0/go.mod h1:UJmg0vDUVViEyp3mgSv9WPwZCDxu4rQW1olrI1uml+o= sigs.k8s.io/yaml v1.6.0 h1:G8fkbMSAFqgEFgh4b1wmtzDnioxFCUgTZhlbj5P9QYs= sigs.k8s.io/yaml v1.6.0/go.mod h1:796bPqUfzR/0jLAl6XjHl3Ck7MiyVv8dbTdyT3/pMf4= diff --git a/gomod2nix.toml b/gomod2nix.toml index af77f1a543..0210a3a952 100644 --- a/gomod2nix.toml +++ b/gomod2nix.toml @@ -197,12 +197,9 @@ schema = 3 [mod."github.com/cometbft/cometbft-db"] version = "v0.15.0" hash = "sha256-hNtUoPsgrsc9MhU7AONKMOB6k4bEbg757BSXVp7G5EA=" - [mod."github.com/consensys/bavard"] - version = "v0.1.27" - hash = "sha256-qRbdMAIcsg/2RCkmyfUtsFc/R99n50epZtTjX6QaWac=" [mod."github.com/consensys/gnark-crypto"] - version = "v0.16.0" - hash = "sha256-Yq7cCmfiNdnX5Vl0oW9/wioxi9hOkXBWCB4pvHu4/fw=" + version = "v0.18.1" + hash = "sha256-8NFI8oeqRkMBnKdGUpGZfwt3gr4nmzmE3yoasQ3zZkg=" [mod."github.com/cosmos/btcutil"] version = "v1.0.5" hash = "sha256-t572Sr5iiHcuMKLMWa2i+LBAt192oa+G1oA371tG/eI=" @@ -529,9 +526,6 @@ schema = 3 [mod."github.com/mitchellh/mapstructure"] version = "v1.5.0" hash = "sha256-ztVhGQXs67MF8UadVvG72G3ly0ypQW0IRDdOOkjYwoE=" - [mod."github.com/mmcloughlin/addchain"] - version = "v0.4.0" - hash = "sha256-zSWSSUElCVFH5mydFlF2mzn4Wsm1WHASRxQ5TKa+To8=" [mod."github.com/mtibben/percent"] version = "v0.2.1" hash = "sha256-Zj1lpCP6mKQ0UUTMs2By4LC414ou+iJzKkK+eBHfEcc=" @@ -691,8 +685,8 @@ schema = 3 version = "v1.1.0" hash = "sha256-3YhWBtSwRLGwm7vNwqumphZG3uLBW1vwT9QkQ8JuSjU=" [mod."github.com/ulikunitz/xz"] - version = "v0.5.14" - hash = "sha256-21oXcIVmFyw+ukGQtflly0wpqaqh1jE0C9hLDSFYR7E=" + version = "v0.5.15" + hash = "sha256-L5KYLue5U14bxUuNyhZ6lIjbda6eCQsx1V6gToqfRdk=" [mod."github.com/zeebo/errs"] version = "v1.4.0" hash = "sha256-vh1b1ns2mFyr5KCECjQd2pf2JKfUfB6oR2O+k/vFda8=" @@ -810,9 +804,6 @@ schema = 3 [mod."pgregory.net/rapid"] version = "v1.2.0" hash = "sha256-GT8thcMb5IH7KSFiK7p2IpThK9daDvZwqOGAP8eELko=" - [mod."rsc.io/tmplfunc"] - version = "v0.0.3" - hash = "sha256-Kii+7DxaSzzn2NphVcEk0W42TXMBFINtm3+B2t7e0cc=" [mod."sigs.k8s.io/yaml"] version = "v1.6.0" hash = "sha256-49hg7IVPzwxeovp+HTMiWa/10NMMTSTjAdCmIv6p9dw=" diff --git a/proto/ethermint/evm/v1/tx.proto b/proto/ethermint/evm/v1/tx.proto index 694ed9591f..b3426ab87a 100644 --- a/proto/ethermint/evm/v1/tx.proto +++ b/proto/ethermint/evm/v1/tx.proto @@ -208,6 +208,9 @@ message MsgEthereumTxResponse { uint64 gas_used = 5; // include the block hash for json-rpc to use bytes block_hash = 6; + // execution_gas_used specifies the actual gas consumed during EVM execution, + // before the minGasMultiplier adjustment. This is used for gas estimation. + uint64 execution_gas_used = 7; } // MsgUpdateParams defines a Msg for updating the x/evm module parameters. diff --git a/tests/integration_tests/hardhat/contracts/GasConsumerTryCatch.sol b/tests/integration_tests/hardhat/contracts/GasConsumerTryCatch.sol new file mode 100644 index 0000000000..8aad97a283 --- /dev/null +++ b/tests/integration_tests/hardhat/contracts/GasConsumerTryCatch.sol @@ -0,0 +1,68 @@ +pragma solidity ^0.8.10; + +/** + * @title GasConsumerTryCatch + * @notice A contract to test try-catch behavior with high gas consumption using a single contract + */ +contract GasConsumerTryCatch { + mapping(uint256 => uint256) public data; + uint256 public totalWrites; + uint256 public lastResult; + uint256 public callCount; + + event TrySuccess(uint256 result, uint256 gasUsed); + event TryCatchFailed(string reason, uint256 gasUsed); + event TryCatchFailedBytes(bytes reason, uint256 gasUsed); + + error GasConsumerReverted(uint256 iterationsCompleted); + + /** + * @notice Consumes gas by writing to storage. + * Must be external to be called via this.consumeGas() in try-catch. + * @param iterations Number of storage writes (~20,000 gas each) + * @param shouldRevert If true, reverts after consuming gas + * @return The total number of writes performed + */ + function consumeGas(uint256 iterations, bool shouldRevert) external returns (uint256) { + uint256 startValue = totalWrites; + + // Each SSTORE costs ~20,000 gas for a new slot (cold access) + // To consume ~400,000 gas, we need about 20 iterations + for (uint256 i = 0; i < iterations; i++) { + data[startValue + i] = block.timestamp + i; + totalWrites++; + } + + if (shouldRevert) { + revert GasConsumerReverted(iterations); + } + + return totalWrites; + } + + /** + * @notice Calls the gas-consuming function with try-catch + * @param iterations Number of storage write iterations + * @param shouldRevert If true, the try block will revert after consuming gas + */ + function callWithTryCatch(uint256 iterations, bool shouldRevert) external returns (bool success) { + uint256 gasBefore = gasleft(); + callCount++; + + // using "this" to make an external call, enabling try-catch + try this.consumeGas(iterations, shouldRevert) returns (uint256 result) { + uint256 gasUsed = gasBefore - gasleft(); + lastResult = result; + emit TrySuccess(result, gasUsed); + return true; + } catch Error(string memory reason) { + uint256 gasUsed = gasBefore - gasleft(); + emit TryCatchFailed(reason, gasUsed); + return false; + } catch (bytes memory reason) { + uint256 gasUsed = gasBefore - gasleft(); + emit TryCatchFailedBytes(reason, gasUsed); + return false; + } + } +} \ No newline at end of file diff --git a/tests/integration_tests/test_trycatch_gas.py b/tests/integration_tests/test_trycatch_gas.py new file mode 100644 index 0000000000..104a3e7044 --- /dev/null +++ b/tests/integration_tests/test_trycatch_gas.py @@ -0,0 +1,51 @@ +from concurrent.futures import ThreadPoolExecutor + +import pytest + +from .utils import ADDRS, CONTRACTS, deploy_contract, send_transaction + +pytestmark = pytest.mark.filter + + +def test_trycatch_gas_estimation_underestimate(ethermint, geth): + def process(w3, name): + contract, _ = deploy_contract(w3, CONTRACTS["GasConsumerTryCatch"]) + tx = contract.functions.callWithTryCatch(20, False).build_transaction( + { + "from": ADDRS["community"], + } + ) + + estimated_gas = w3.eth.estimate_gas(tx) + tx["gas"] = 1000000 + receipt = send_transaction(w3, tx) + actual_gas = receipt["gasUsed"] + + # Calculate the difference + gas_diff = actual_gas - estimated_gas + + return { + "name": name, + "estimated_gas": estimated_gas, + "actual_gas": actual_gas, + "gas_diff": gas_diff, + } + + with ThreadPoolExecutor(max_workers=2) as executor: + ethermint_future = executor.submit(process, ethermint.w3, "ethermint") + geth_future = executor.submit(process, geth.w3, "geth") + ethermint_result = ethermint_future.result() + geth_result = geth_future.result() + + # Compare results from ethermint and geth + for result in (ethermint_result, geth_result): + assert result["gas_diff"] == 0, ( + f"Testing on {result['name']} " + f"Gas estimation is not accurate: " + f"{result['estimated_gas']} estimated vs " + f"{result['actual_gas']} actual " + f"({result['gas_diff']} difference)" + ) + + assert ethermint_result["estimated_gas"] == geth_result["estimated_gas"] + assert ethermint_result["actual_gas"] == geth_result["actual_gas"] diff --git a/tests/integration_tests/utils.py b/tests/integration_tests/utils.py index 6a22e18089..de35fd1649 100644 --- a/tests/integration_tests/utils.py +++ b/tests/integration_tests/utils.py @@ -48,6 +48,7 @@ "FeeCollector": "FeeCollector.sol", "SelfDestruct": "SelfDestruct.sol", "BytecodeDeployer": "BytecodeDeployer.sol", + "GasConsumerTryCatch": "GasConsumerTryCatch.sol", } diff --git a/x/evm/keeper/grpc_query.go b/x/evm/keeper/grpc_query.go index 1d9fb38696..8acb164efa 100644 --- a/x/evm/keeper/grpc_query.go +++ b/x/evm/keeper/grpc_query.go @@ -20,6 +20,7 @@ import ( "encoding/json" "errors" "fmt" + "math" "math/big" "time" @@ -352,6 +353,12 @@ func (k Keeper) EstimateGas(c context.Context, req *types.EthCallRequest) (*type } else { gasCap = hi } + + // Cap hi to MaxInt64 since gas calculations use int64 internally + if hi > math.MaxInt64 { + hi = math.MaxInt64 + } + cfg, err := k.EVMConfig(ctx, chainID, common.Hash{}) if err != nil { return nil, status.Error(codes.Internal, "failed to load evm config") @@ -383,35 +390,43 @@ func (k Keeper) EstimateGas(c context.Context, req *types.EthCallRequest) (*type } return true, nil, err // Bail out } - return len(rsp.VmError) > 0, rsp, nil + return rsp.Failed(), rsp, nil } - // Execute the binary search and hone in on an executable gas limit - hi, err = types.BinSearch(lo, hi, executable) + // We first execute the transaction at the highest allowable gas limit, since if this fails we + // can return error immediately. + failed, result, err := executable(hi) if err != nil { return nil, err } - - // Reject the transaction as invalid if it still fails at the highest allowance - if hi == gasCap { - failed, result, err := executable(hi) - if err != nil { - return nil, err - } - - if failed { - if result != nil && result.VmError != vm.ErrOutOfGas.Error() { - if result.VmError == vm.ErrExecutionReverted.Error() { - return &types.EstimateGasResponse{ - Ret: result.Ret, - VmError: result.VmError, - }, nil - } - return nil, errors.New(result.VmError) + if failed { + if result != nil && result.VmError != vm.ErrOutOfGas.Error() { + if result.VmError == vm.ErrExecutionReverted.Error() { + return &types.EstimateGasResponse{ + Ret: result.Ret, + VmError: result.VmError, + }, nil } - // Otherwise, the specified gas cap is too low - return nil, fmt.Errorf("gas required exceeds allowance (%d)", gasCap) + return nil, errors.New(result.VmError) } + // Otherwise, the specified gas cap is too low + return nil, fmt.Errorf("gas required exceeds allowance (%d)", hi) + } + + // For almost any transaction, the gas consumed by the unconstrained execution + // above lower-bounds the gas limit required for it to succeed. One exception + // is those that explicitly check gas remaining in order to execute within a + // given limit, but we probably don't want to return the lowest possible gas + // limit for these cases anyway. + // Use ExecutionGasUsed (actual gas before minGasMultiplier adjustment) for accurate estimation. + if result.ExecutionGasUsed > 0 { + lo = result.ExecutionGasUsed - 1 + } + + // Execute the binary search and hone in on an executable gas limit + hi, err = types.BinSearch(lo, hi, executable) + if err != nil { + return nil, err } return &types.EstimateGasResponse{Gas: hi}, nil } diff --git a/x/evm/keeper/state_transition.go b/x/evm/keeper/state_transition.go index 938efebabb..9ea1d190db 100644 --- a/x/evm/keeper/state_transition.go +++ b/x/evm/keeper/state_transition.go @@ -505,11 +505,12 @@ func (k *Keeper) ApplyMessageWithConfig( } return &types.MsgEthereumTxResponse{ - GasUsed: gasUsed, - VmError: vmError, - Ret: ret, - Logs: types.NewLogsFromEth(stateDB.Logs()), - Hash: cfg.TxConfig.TxHash.Hex(), - BlockHash: ctx.HeaderHash(), + GasUsed: gasUsed, + VmError: vmError, + Ret: ret, + Logs: types.NewLogsFromEth(stateDB.Logs()), + Hash: cfg.TxConfig.TxHash.Hex(), + BlockHash: ctx.HeaderHash(), + ExecutionGasUsed: temporaryGasUsed, }, nil } diff --git a/x/evm/types/tx.pb.go b/x/evm/types/tx.pb.go index ba9a97f612..a46e95866e 100644 --- a/x/evm/types/tx.pb.go +++ b/x/evm/types/tx.pb.go @@ -380,6 +380,9 @@ type MsgEthereumTxResponse struct { GasUsed uint64 `protobuf:"varint,5,opt,name=gas_used,json=gasUsed,proto3" json:"gas_used,omitempty"` // include the block hash for json-rpc to use BlockHash []byte `protobuf:"bytes,6,opt,name=block_hash,json=blockHash,proto3" json:"block_hash,omitempty"` + // execution_gas_used specifies the actual gas consumed during EVM execution, + // before the minGasMultiplier adjustment. This is used for gas estimation. + ExecutionGasUsed uint64 `protobuf:"varint,7,opt,name=execution_gas_used,json=executionGasUsed,proto3" json:"execution_gas_used,omitempty"` } func (m *MsgEthereumTxResponse) Reset() { *m = MsgEthereumTxResponse{} } @@ -524,79 +527,80 @@ func init() { func init() { proto.RegisterFile("ethermint/evm/v1/tx.proto", fileDescriptor_f75ac0a12d075f21) } var fileDescriptor_f75ac0a12d075f21 = []byte{ - // 1147 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x56, 0xcf, 0x6f, 0x1b, 0x45, - 0x14, 0xce, 0xda, 0xeb, 0x5f, 0x63, 0x27, 0xad, 0x46, 0x89, 0xba, 0xb6, 0x1a, 0xaf, 0x71, 0xa1, - 0xb8, 0x45, 0xb1, 0xd5, 0x80, 0x2a, 0x35, 0x27, 0xbc, 0xf9, 0x01, 0x45, 0x89, 0xa8, 0xb6, 0xee, - 0x05, 0x90, 0xac, 0xc9, 0xee, 0x64, 0xbd, 0xaa, 0x77, 0x67, 0xb5, 0x33, 0x36, 0x76, 0x25, 0xa4, - 0xaa, 0x27, 0x8e, 0x54, 0xfc, 0x03, 0x9c, 0x39, 0xf5, 0xd0, 0x33, 0x17, 0x2e, 0x15, 0xa7, 0x0a, - 0x2e, 0xa8, 0x42, 0x06, 0x25, 0x48, 0x15, 0x39, 0x72, 0xe6, 0x80, 0x66, 0x66, 0x1d, 0xdb, 0x5d, - 0x9c, 0x40, 0x25, 0x90, 0x90, 0x7a, 0x9b, 0x37, 0xef, 0x7b, 0x33, 0xef, 0x7d, 0xdf, 0xdb, 0x9d, - 0x07, 0x8a, 0x98, 0x75, 0x70, 0xe8, 0xb9, 0x3e, 0x6b, 0xe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0x11, 0x88, 0x56, 0x34, 0xc5, 0x1a, 0x5e, 0x01, 0x6a, 0x97, 0x38, 0x54, 0x4b, - 0x88, 0x4a, 0x57, 0xe2, 0x95, 0xee, 0x12, 0xc7, 0x14, 0x10, 0x78, 0x1e, 0x24, 0x43, 0xcc, 0x44, - 0x8f, 0x15, 0x4c, 0xbe, 0x84, 0x45, 0x90, 0xed, 0x7b, 0x6d, 0x1c, 0x86, 0x24, 0x8c, 0x1e, 0xd3, - 0x4c, 0xdf, 0xdb, 0xe6, 0x26, 0x77, 0xf1, 0xee, 0xea, 0x51, 0x6c, 0xcb, 0x3e, 0x31, 0x33, 0x0e, - 0xa2, 0x77, 0x28, 0xb6, 0xe1, 0x2a, 0x00, 0xfb, 0x5d, 0x62, 0xdd, 0x95, 0xe3, 0x89, 0x7c, 0x37, - 0x73, 0x62, 0x87, 0x0f, 0x23, 0x51, 0x15, 0x0f, 0x15, 0x70, 0x6e, 0x8f, 0x3a, 0x77, 0x02, 0x1b, - 0x31, 0x7c, 0x4b, 0x0c, 0x5a, 0xfc, 0xa5, 0x8a, 0x46, 0x29, 0x36, 0x8c, 0xbe, 0x27, 0xed, 0xfb, - 0xc7, 0x6b, 0xcb, 0xd1, 0xd8, 0xd8, 0xb4, 0xed, 0x10, 0x53, 0x7a, 0x9b, 0x85, 0xae, 0xef, 0x98, - 0x13, 0x28, 0xbc, 0x0e, 0xd2, 0x72, 0x54, 0x13, 0xdf, 0x4e, 0x7e, 0x5d, 0x8b, 0x57, 0x29, 0x6f, - 0x30, 0x54, 0xae, 0xa0, 0x19, 0xa1, 0x37, 0x96, 0xf8, 0xac, 0x32, 0x39, 0xa7, 0x5a, 0x04, 0x17, - 0x5e, 0x48, 0x69, 0x4c, 0xed, 0xfa, 0x6f, 0x0a, 0x48, 0xee, 0x51, 0x07, 0x7e, 0x06, 0xa6, 0xa6, - 0x1e, 0xa8, 0xc7, 0x2f, 0x9a, 0x51, 0xa6, 0xf4, 0xe6, 0x19, 0x80, 0xf1, 0xf9, 0xd5, 0x37, 0x1e, - 0xfc, 0xf0, 0xeb, 0x97, 0x09, 0xbd, 0xba, 0xda, 0x88, 0x8d, 0x99, 0x38, 0x42, 0xb7, 0xd9, 0x00, - 0x7e, 0x02, 0x0a, 0x33, 0x8c, 0xbd, 0xf6, 0x97, 0xe7, 0x4f, 0x43, 0x4a, 0x57, 0xce, 0x84, 0x8c, - 0x93, 0x28, 0xa5, 0xee, 0x3f, 0x7f, 0x74, 0x55, 0x31, 0xde, 0x7d, 0x72, 0x58, 0x56, 0x9e, 0x1e, - 0x96, 0x95, 0x5f, 0x0e, 0xcb, 0xca, 0x17, 0x47, 0xe5, 0x85, 0xa7, 0x47, 0xe5, 0x85, 0x1f, 0x8f, - 0xca, 0x0b, 0x1f, 0x5d, 0x76, 0x5c, 0xd6, 0xe9, 0xed, 0xd7, 0x2d, 0xe2, 0xf1, 0xec, 0x08, 0x9d, - 0xca, 0x76, 0x20, 0xf2, 0x65, 0xc3, 0x00, 0xd3, 0xfd, 0xb4, 0x18, 0x6a, 0xdf, 0xfe, 0x33, 0x00, - 0x00, 0xff, 0xff, 0xe8, 0x95, 0x8e, 0xe7, 0x44, 0x0c, 0x00, 0x00, + // 1166 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x56, 0xcd, 0x6f, 0x1b, 0x45, + 0x14, 0xcf, 0xda, 0xeb, 0xaf, 0xb1, 0x93, 0x46, 0xa3, 0x44, 0x5d, 0x5b, 0x8d, 0xd7, 0xb8, 0x50, + 0xdc, 0x42, 0x6c, 0x35, 0xa0, 0x4a, 0xcd, 0x09, 0x3b, 0x1f, 0xa5, 0x28, 0x11, 0xd5, 0xd6, 0xbd, + 0x00, 0x92, 0x35, 0xd9, 0x9d, 0xac, 0x57, 0xf5, 0xee, 0xac, 0x76, 0xc6, 0xc6, 0xae, 0x84, 0x54, + 0xf5, 0xc4, 0x91, 0x8a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7e, 0x0c, 0x2c, 0xee, 0x53, + 0x7b, 0x87, 0x3b, 0xe1, 0xae, 0xdb, 0xec, 0xc3, 0x0a, 0x50, 0x2d, 0xc4, 0x90, 0xa6, 0x94, 0x94, + 0x4a, 0x76, 0x63, 0xa5, 0x2a, 0x4b, 0xa9, 0x8e, 0x4a, 0xa9, 0xd6, 0xbd, 0x81, 0x21, 0x10, 0x30, + 0x0f, 0x54, 0xea, 0xdc, 0xc3, 0x5a, 0xac, 0xa4, 0x54, 0x94, 0x46, 0xe2, 0x64, 0xa8, 0x2b, 0xeb, + 0x86, 0x38, 0x82, 0xef, 0x82, 0x73, 0x16, 0xf6, 0x03, 0x6c, 0x22, 0x86, 0xad, 0x56, 0x1b, 0xd1, + 0xb6, 0x16, 0x2f, 0x29, 0x95, 0x4c, 0x23, 0xfb, 0xfb, 0x50, 0x4f, 0x05, 0x1d, 0x7f, 0xb3, 0xbc, + 0x5e, 0x36, 0x96, 0x26, 0x98, 0xf7, 0x11, 0x6d, 0xc3, 0xb7, 0x66, 0xbc, 0x0e, 0x03, 0xe2, 0x6a, + 0xaa, 0xf0, 0x8a, 0x69, 0xca, 0x34, 0x78, 0x37, 0x20, 0x2e, 0x84, 0x40, 0x15, 0x88, 0x44, 0x49, + 0xa9, 0xe4, 0x0c, 0xb1, 0x86, 0xaf, 0x83, 0x78, 0x80, 0x3e, 0xd5, 0x92, 0xfc, 0xa8, 0x01, 0x9f, + 0x0c, 0xf5, 0x85, 0x67, 0x43, 0x1d, 0x4c, 0x8a, 0x33, 0xb8, 0x79, 0x73, 0xf1, 0xf3, 0xaf, 0xf4, + 0x85, 0x07, 0xcf, 0x1f, 0x5d, 0x11, 0x4e, 0xe5, 0x87, 0x31, 0x90, 0xde, 0xc3, 0x36, 0x32, 0x07, + 0xcd, 0x3e, 0x5c, 0x01, 0x09, 0x8f, 0x78, 0x26, 0x16, 0xe5, 0xab, 0x86, 0xdc, 0xc0, 0x6b, 0x20, + 0x63, 0x23, 0xde, 0x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37, 0x72, 0x0c, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1320,6 +1324,11 @@ func (m *MsgEthereumTxResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if m.ExecutionGasUsed != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.ExecutionGasUsed)) + i-- + dAtA[i] = 0x38 + } if len(m.BlockHash) > 0 { i -= len(m.BlockHash) copy(dAtA[i:], m.BlockHash) @@ -1730,6 +1739,9 @@ func (m *MsgEthereumTxResponse) Size() (n int) { if l > 0 { n += 1 + l + sovTx(uint64(l)) } + if m.ExecutionGasUsed != 0 { + n += 1 + sovTx(uint64(m.ExecutionGasUsed)) + } return n } @@ -3883,6 +3895,25 @@ func (m *MsgEthereumTxResponse) Unmarshal(dAtA []byte) error { m.BlockHash = []byte{} } iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ExecutionGasUsed", wireType) + } + m.ExecutionGasUsed = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ExecutionGasUsed |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipTx(dAtA[iNdEx:])