go-ethereum/libevm/pseudo
Arran Schlosberg 380aa319f9
refactor!: consolidate params and types payload access (#84)
## Why this should be merged

There are 3 places at which we perform the same, sensitive logic to
access registered payloads and as we modify more types this is likely to
expand. (e.g. `types.Header`).

## How this works

Introduces `pseudo.Accessor` to abstract the reusable code.

## How this was tested

Existing unit tests. Note that the `types.StateAccount` tests needed a
minor refactor to provide the assertions with access to the
`ExtraPayloads[T]` without introducing generic types anywhere.
2024-12-09 18:32:15 +00:00
..
accessor.go refactor!: consolidate params and types payload access (#84) 2024-12-09 18:32:15 +00:00
constructor.go feat: pseudo.Type RLP round-tripping (#43) 2024-10-01 08:23:51 -07:00
constructor_test.go doc: licensing of libevm additions and modifications (#34) 2024-09-19 21:38:26 +00:00
fmt.go feat: types.StateAccount pseudo-generic payload (#44) 2024-10-02 16:00:13 +01:00
fmt_test.go feat: types.StateAccount pseudo-generic payload (#44) 2024-10-02 16:00:13 +01:00
reflect.go Merge branch 'auto-rename-module_source-2bd6bd01d2e8561dd7fc21b631f4a34ac16627a1_workflow-c1fc594f020d23958b641a4e5a856b6e52c49d3bece94b95594864db16c1b0fc-main' into arr4n/rename-module 2024-10-17 13:07:28 +11:00
rlp_test.go Merge branch 'auto-rename-module_source-2bd6bd01d2e8561dd7fc21b631f4a34ac16627a1_workflow-c1fc594f020d23958b641a4e5a856b6e52c49d3bece94b95594864db16c1b0fc-main' into arr4n/rename-module 2024-10-17 13:07:28 +11:00
type.go Merge branch 'auto-rename-module_source-2bd6bd01d2e8561dd7fc21b631f4a34ac16627a1_workflow-c1fc594f020d23958b641a4e5a856b6e52c49d3bece94b95594864db16c1b0fc-main' into arr4n/rename-module 2024-10-17 13:07:28 +11:00
type_test.go feat: pseudo.Type RLP round-tripping (#43) 2024-10-01 08:23:51 -07:00