laconicd/x/evm/types
yihuang 2a205e561a
rpc: debug_traceTransaction fails for succesful tx (#720)
* Problem: traceTransaction fails for succesful tx

Solution:
- Change the context to the begining of the block, rather than the end
  of it, while override block context to correct one

pass predecessors

pass current block information to grpc query

* changelog

* fix build

* fix lint

* refactor traceBlock

* update protobuf

* fix Predecessors

* traceBlock refactor

* refactor traceBlock response

* Update proto/ethermint/evm/v1/tx.proto

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>

* Update proto/ethermint/evm/v1/query.proto

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>

* Update proto/ethermint/evm/v1/query.proto

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>

* Update proto/ethermint/evm/v1/query.proto

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>

* Update proto/ethermint/evm/v1/query.proto

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>

* Update proto/ethermint/evm/v1/query.proto

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>

* check tx index is not out of bound

* fix build

* Update rpc/ethereum/namespaces/debug/api.go

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>

* Update rpc/ethereum/namespaces/debug/api.go

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>

* Update rpc/ethereum/namespaces/debug/api.go

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>

* Update rpc/ethereum/namespaces/debug/api.go

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>

* remove prealloc

* add traceBlock test

* Update x/evm/keeper/grpc_query.go

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>

* use bytes2Hex

* fix error message

* add comment

* Apply suggestions from code review

Co-authored-by: Freddy Caceres <freddy.caceres@crypto.com>
Co-authored-by: crypto-facs <84574577+crypto-facs@users.noreply.github.com>
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
2021-11-09 18:38:22 +00:00
..
access_list_test.go evm: unit tests (#619) 2021-10-08 13:11:19 +02:00
access_list_tx.go fix: Web3 RPC handlers panic (#702) 2021-10-26 13:13:27 +02:00
access_list.go all: cleanup imports (#524) 2021-09-03 18:06:36 +00:00
chain_config_test.go build(deps): bump github.com/ethereum/go-ethereum from 1.10.9 to 1.10.11 (#676) 2021-10-25 15:01:04 +00:00
chain_config.go build(deps): bump github.com/ethereum/go-ethereum from 1.10.9 to 1.10.11 (#676) 2021-10-25 15:01:04 +00:00
codec_test.go all: linter (#532) 2021-09-05 11:03:06 +00:00
codec.go all: linter (#532) 2021-09-05 11:03:06 +00:00
compiled_contract.go tests: add message call benchmark (#717) 2021-11-08 13:04:49 +00:00
config.go evm: refactor dup state transition code (#674) 2021-10-22 19:21:03 +02:00
dynamic_fee_tx_test.go fix: Web3 RPC handlers panic (#702) 2021-10-26 13:13:27 +02:00
dynamic_fee_tx.go fix: Web3 RPC handlers panic (#702) 2021-10-26 13:13:27 +02:00
ERC20Contract.json rpc: transaction receipt test (#678) 2021-10-20 21:00:17 +02:00
errors_test.go all: linter (#532) 2021-09-05 11:03:06 +00:00
errors.go fix: Web3 RPC handlers panic (#702) 2021-10-26 13:13:27 +02:00
events.go evm: remove tx logs and block bloom from chain state (#556) 2021-09-15 09:45:03 +00:00
evm.pb.go build(deps): bump github.com/ethereum/go-ethereum from 1.10.9 to 1.10.11 (#676) 2021-10-25 15:01:04 +00:00
genesis_test.go evm: unit tests (#619) 2021-10-08 13:11:19 +02:00
genesis.go evm: fixed commented out simulations, pubsub, and handler tests (#655) 2021-10-11 13:09:53 +02:00
genesis.pb.go build(deps): bump github.com/ethereum/go-ethereum from 1.10.9 to 1.10.11 (#676) 2021-10-25 15:01:04 +00:00
interfaces.go evm: geth 1.10.9 fee market changes to Keeper and AnteHandler (#620) 2021-10-04 14:58:06 +00:00
key.go evm: fix import/export genesis for contract storage (#590) 2021-09-27 12:26:45 +02:00
legacy_tx_test.go fix: Web3 RPC handlers panic (#702) 2021-10-26 13:13:27 +02:00
legacy_tx.go fix: Web3 RPC handlers panic (#702) 2021-10-26 13:13:27 +02:00
logs_test.go crypto: updates from reviews (#535) 2021-09-07 17:29:24 +00:00
logs.go all: linter (#532) 2021-09-05 11:03:06 +00:00
msg_test.go feat: add raw ethereum tx CLI (#712) 2021-11-02 12:20:19 +01:00
msg.go feat: add raw ethereum tx CLI (#712) 2021-11-02 12:20:19 +01:00
params_test.go evm, rpc: disable BaseFee for non London block (#662) 2021-10-13 15:39:47 +02:00
params.go evm, rpc: disable BaseFee for non London block (#662) 2021-10-13 15:39:47 +02:00
query.go rpc: debug_traceTransaction fails for succesful tx (#720) 2021-11-09 18:38:22 +00:00
query.pb.go rpc: debug_traceTransaction fails for succesful tx (#720) 2021-11-09 18:38:22 +00:00
query.pb.gw.go rpc: debug_traceTransaction fails for succesful tx (#720) 2021-11-09 18:38:22 +00:00
storage_test.go all: cleanup imports (#524) 2021-09-03 18:06:36 +00:00
storage.go all: linter (#532) 2021-09-05 11:03:06 +00:00
TestMessageCall.json tests: add message call benchmark (#717) 2021-11-08 13:04:49 +00:00
tracer_test.go evm: unit tests (#619) 2021-10-08 13:11:19 +02:00
tracer.go evm: unit tests (#619) 2021-10-08 13:11:19 +02:00
tx_args.go rpc: geth v1.10.9 changes (#624) 2021-10-06 11:22:32 +00:00
tx_data_test.go evm: fix Chain ID derivation (#579) 2021-09-21 11:31:19 +00:00
tx_data.go fix: Web3 RPC handlers panic (#702) 2021-10-26 13:13:27 +02:00
tx.go evm: treat all vm errors the same as reverted (#276) 2021-07-15 02:01:05 -04:00
tx.pb.go rpc: debug_traceTransaction fails for succesful tx (#720) 2021-11-09 18:38:22 +00:00
tx.pb.gw.go rpc: debug_traceTransaction fails for succesful tx (#720) 2021-11-09 18:38:22 +00:00
utils_test.go all: bump go-ethereum to v1.10.9 (#231) 2021-10-05 15:38:20 +00:00
utils.go fix: Web3 RPC handlers panic (#702) 2021-10-26 13:13:27 +02:00