go-ethereum/accounts/abi
Daniel Liu ad9003c41e
eth/tracers: live chain tracing with hooks #29189 (#1352)
Here we add a Go API for running tracing plugins within the main block import process.

As an advanced user of geth, you can now create a Go file in eth/tracers/live/, and within
that file register your custom tracer implementation. Then recompile geth and select your tracer
on the command line. Hooks defined in the tracer will run whenever a block is processed.

The hook system is defined in package core/tracing. It uses a struct with callbacks, instead of
requiring an interface, for several reasons:

- We plan to keep this API stable long-term. The core/tracing hook API does not depend on
  on deep geth internals.
- There are a lot of hooks, and tracers will only need some of them. Using a struct allows you
   to implement only the hooks you want to actually use.

All existing tracers in eth/tracers/native have been rewritten to use the new hook system.

This change breaks compatibility with the vm.EVMLogger interface that we used to have.
If you are a user of vm.EVMLogger, please migrate to core/tracing, and sorry for breaking
your stuff. But we just couldn't have both the old and new tracing APIs coexist in the EVM.

---------

Co-authored-by: Sina M <1591639+s1na@users.noreply.github.com>
Co-authored-by: Matthieu Vachon <matthieu.o.vachon@gmail.com>
Co-authored-by: Delweng <delweng@gmail.com>
Co-authored-by: Martin HS <martin@swende.se>
2025-09-09 17:30:56 +08:00
..
abigen accounts/abi: precompile regex #32301 (#1427) 2025-09-08 15:36:33 +08:00
bind eth/tracers: live chain tracing with hooks #29189 (#1352) 2025-09-09 17:30:56 +08:00
abi.go accounts/abi: support unpacking solidity errors (#30738) 2025-01-24 16:54:12 +08:00
abi_test.go accounts/abi: support unpacking solidity errors (#30738) 2025-01-24 16:54:12 +08:00
abifuzzer_test.go accounts: run tests in parallel (#28544) 2025-01-24 16:54:12 +08:00
argument.go accounts/abi: improve unpack performance #31387 (#1415) 2025-09-03 15:46:23 +08:00
doc.go all: fix license headers one more time 2015-07-23 18:35:11 +02:00
error.go accounts/abi: context info on unpack-errors (#28529) 2025-01-24 16:54:12 +08:00
error_handling.go accounts/abi: error when packing negative values in unsigned types #31790 (#1422) 2025-09-03 15:48:44 +08:00
event.go accounts/abi/bind: fix duplicate field names in the generated go struct (#24924) 2025-01-24 16:54:11 +08:00
event_test.go accounts/abi: golangci-lint 1.61.0 (#30587) 2025-01-24 16:54:12 +08:00
method.go accounts/abi: improve readability of method-to-string conversion (#28530) 2025-01-24 16:54:12 +08:00
method_test.go accounts: run tests in parallel (#28544) 2025-01-24 16:54:12 +08:00
pack.go accounts/abi: error when packing negative values in unsigned types #31790 (#1422) 2025-09-03 15:48:44 +08:00
pack_test.go accounts/abi: error when packing negative values in unsigned types #31790 (#1422) 2025-09-03 15:48:44 +08:00
packing_test.go accounts/abi: ABI explicit difference between Unpack and UnpackIntoInterface (#21091) 2025-01-24 16:18:30 +08:00
reflect.go accounts/abi, accounts/keystore: use reflect.TypeFor #32323 (#1428) 2025-09-06 17:01:22 +08:00
reflect_test.go accounts/abi, accounts/keystore: use reflect.TypeFor #32323 (#1428) 2025-09-06 17:01:22 +08:00
topics.go accounts/abi: fix MakeTopics mutation of big.Int inputs (#30785) 2025-01-24 16:54:12 +08:00
topics_test.go accounts/abi: fix MakeTopics mutation of big.Int inputs (#30785) 2025-01-24 16:54:12 +08:00
type.go accounts/abi, accounts/keystore: use reflect.TypeFor #32323 (#1428) 2025-09-06 17:01:22 +08:00
type_test.go accounts/abi: fix typos (#29542 #29600) 2025-01-24 16:54:12 +08:00
unpack.go account/abi: convert if-else-if chain to tagged switch (#27869) 2025-01-24 16:54:12 +08:00
unpack_test.go accounts/abi: error when packing negative values in unsigned types #31790 (#1422) 2025-09-03 15:48:44 +08:00
utils.go accounts: lint comments (#25726) 2025-01-24 16:54:11 +08:00