lotus/chain/types
Phi-rjan f60d4e1208 chore:: backport #11609 to the feat/nv22 branch (#11644)
* feat: api: improve the correctness of Eth's trace_block (#11609)

* Improve the correctness of Eth's trace_block

- Improve encoding/decoding of parameters and return values:
  - Encode "native" parameters and return values with Solidity ABI.
  - Correctly decode parameters to "create" calls.
  - Use the correct (ish) output for "create" calls.
  - Handle all forms of "create".
- Make robust with respect to reverts:
  - Use the actor ID/address from the trace instead of looking it up in
    the state-tree (may not exist in the state-tree due to a revert).
  - Gracefully handle failed actor/contract creation.
- Improve performance:
  - We avoid looking anything up in the state-tree when translating the
    trace, which should significantly improve performance.
- Improve code readability:
  - Remove all "backtracking" logic.
  - Use an "environment" struct to store temporary state instead of
    attaching it to the trace.
- Fix random bugs:
  - Fix an allocation bug in the "address" logic (need to set the
    capacity before modifying the slice).
  - Improved error checking/handling.
- Use correct types for `trace_block` action/results (create, call, etc.).
  - And use the correct types for Result/Action structs instead of reusing the same "Call" action every time.
- Improve error messages.

* Make gen

Make gen

---------

Co-authored-by: Steven Allen <steven@stebalien.com>
2024-03-22 07:00:28 +01:00
..
ethtypes chore:: backport #11609 to the feat/nv22 branch (#11644) 2024-03-22 07:00:28 +01:00
mock chore: fix imports 2022-06-14 17:00:51 +02:00
testdata Add golden test for exp function 2020-06-23 16:33:10 +02:00
actor.go NV18: Filecoin EVM runtime + Actor Events + EthAccount + EAM + f4 addressing (#9998) 2023-01-13 19:11:13 +00:00
bigint_test.go fix make gen 2022-08-29 16:25:30 +02:00
bigint.go Adjust various CLI display ratios to arbitrary precision 2021-05-25 14:09:01 +02:00
blockheader_test.go fix make gen 2022-08-29 16:25:30 +02:00
blockheader.go chore: refactor: drop unused IsTicketWinner (#10801) 2023-05-02 11:22:02 -07:00
blockmsg_test.go add go linter - "unused" (#11235) 2023-09-05 12:19:43 -10:00
blockmsg.go Adding extra data check on DecodeBlockMsg 2023-05-12 21:32:44 +02:00
cbor_gen.go AggregateProofType nil when doing batch updates 2024-03-22 07:00:28 +01:00
electionproof_test.go fix make gen 2022-08-29 16:25:30 +02:00
electionproof.go chore: refactor: drop unused IsTicketWinner (#10801) 2023-05-02 11:22:02 -07:00
event.go feat: fvm: apply a max length when decoding events 2023-07-08 11:05:01 -04:00
execresult.go feat: fvm: update the FVM/FFI to v4.1 (#11608) (#11612) 2024-03-22 07:00:28 +01:00
fil_test.go fix make gen 2022-08-29 16:25:30 +02:00
fil.go lp: fix: migrate 0 panic 2023-11-24 11:00:32 -06:00
fullblock.go refactoring to accomodate the bls message changes in the spec 2019-08-01 18:19:22 -07:00
keystore.go NV18: Filecoin EVM runtime + Actor Events + EthAccount + EAM + f4 addressing (#9998) 2023-01-13 19:11:13 +00:00
logs.go Structure logs 2019-10-11 02:00:04 +02:00
message_fuzz.go feat: expose ChainGetPath on the gateway 2021-08-30 16:43:21 -07:00
message_receipt_cbor.go Fix/texts (#11298) 2023-10-27 11:32:42 -07:00
message_receipt_test.go NV18: Filecoin EVM runtime + Actor Events + EthAccount + EAM + f4 addressing (#9998) 2023-01-13 19:11:13 +00:00
message_receipt.go NV18: Filecoin EVM runtime + Actor Events + EthAccount + EAM + f4 addressing (#9998) 2023-01-13 19:11:13 +00:00
message_test.go fix make gen 2022-08-29 16:25:30 +02:00
message.go fix: Eth JSON-RPC api: handle messages with gasFeeCap less than baseFee (#10614) 2023-04-24 16:03:04 +01:00
mpool.go feat: mempool: Reduce minimum replace fee from 1.25x to 1.1x (#10416) 2023-03-09 13:17:17 -08:00
percent_test.go feat: mempool: Reduce minimum replace fee from 1.25x to 1.1x (#10416) 2023-03-09 13:17:17 -08:00
percent.go feat: mempool: Reduce minimum replace fee from 1.25x to 1.1x (#10416) 2023-03-09 13:17:17 -08:00
signature_test.go fix make gen 2022-08-29 16:25:30 +02:00
signedmessage.go chore: all: migrate from go-libipfs to boxo 2023-04-18 17:22:18 +02:00
state.go define StateTreeVersion5 for NetworkVersion18 2022-11-09 08:30:42 +02:00
tipset_key_test.go fix make gen 2022-08-29 16:25:30 +02:00
tipset_key.go chore: all: migrate from go-libipfs to boxo 2023-04-18 17:22:18 +02:00
tipset.go feat: stmgr: skip tipset execution when possible 2023-03-10 13:21:17 -08:00
types_test.go fix make gen 2022-08-29 16:25:30 +02:00
vmcontext.go add go linter - "unused" (#11235) 2023-09-05 12:19:43 -10:00