Commit Graph

15696 Commits

Author SHA1 Message Date
Jared Wasinger 69e6f2932d add binding generation test 2025-01-22 13:54:57 +01:00
Jared Wasinger 57e13591cc small cleanups 2025-01-22 13:54:57 +01:00
Jared Wasinger 2df68eb106 remove unused error test, other unused code in tests 2025-01-22 13:54:57 +01:00
Jared Wasinger 6b5967afd8 delete unused test data. remove useless v2 helper methods. update tests 2025-01-22 13:54:57 +01:00
Jared Wasinger d3d6926683 fix contract filter test. rename *Logs methods to *Events, to reflect the fact that these are specific to solidity events. 2025-01-22 13:54:57 +01:00
Jared Wasinger 1f25c68ec4 add error unpacking. simplify WatchLogs api. 2025-01-22 13:54:57 +01:00
Jared Wasinger 4fc62e94b3 add errors to emitted code. 2025-01-22 13:54:57 +01:00
Jared Wasinger f2d78fcfaf return multiple results in exported struct (instead of anonymous one). add return_structs contract example to have an example of it. 2025-01-22 13:54:57 +01:00
Jared Wasinger 51207183cd add coverage for event filtering 2025-01-22 13:54:57 +01:00
Jared Wasinger cd18d99180 add test coverage for events watching 2025-01-22 13:54:57 +01:00
Jared Wasinger 1e8aca95e9 add test for overrides 2025-01-22 13:54:57 +01:00
Jared Wasinger 77158e5bf0 various small fixes: better error message, remove unecessary comments. address review about missing word in function documentation. 2025-01-22 13:54:57 +01:00
Jared Wasinger d0a8ead758 add copyright notices. move v2 template to its own file. Rename V2Backend->BackendV2 2025-01-22 13:54:57 +01:00
Jared Wasinger 26641a190a make tests run again 2025-01-22 13:54:57 +01:00
Jared Wasinger afe887fcc3 remove old half-written test case with events (I will add it back in when I complete it). 2025-01-22 13:54:57 +01:00
Jared Wasinger b612cab7f1 simplify generated code for list of library dependencies 2025-01-22 13:54:57 +01:00
Jared Wasinger 0bdf69cbc6 some more docs 2025-01-22 13:54:57 +01:00
Jared Wasinger 0cff488b04 fix v2 test 2025-01-22 13:54:57 +01:00
Jared Wasinger ab97d38da5 more docs. fix nested library contract. fix associated test case. 2025-01-22 13:54:57 +01:00
Jared Wasinger b2aec5af41 add missing files from testdata. refactor contract deployment API to be cleaner 2025-01-22 13:54:57 +01:00
Jared Wasinger 03a6ade16b format improvements 2025-01-22 13:54:57 +01:00
Jared Wasinger 41b77f9d9c update library test contract to have constructor with inputs. remove some debug print statements 2025-01-22 13:54:57 +01:00
Jared Wasinger 42d159fb9a fix contract 2025-01-22 13:54:57 +01:00
Jared Wasinger 7c95aa1411 closer to test passing now... 2025-01-22 13:54:57 +01:00
Jared Wasinger 5ba939f50c rework contract deployment API 2025-01-22 13:54:57 +01:00
Jared Wasinger cc04aa4e9e commit of wip-code: rework the contract deployment code to be cleaner 2025-01-22 13:54:57 +01:00
Jared Wasinger 6d9104e706 dependency graph calculation working 2025-01-22 13:54:57 +01:00
Jared Wasinger 26491ae5cd still in a wip state 2025-01-22 13:54:57 +01:00
Jared Wasinger 61263dcd68 stage point before I try to dedup contract interaction api 2025-01-22 13:54:57 +01:00
Jared Wasinger 0aac1981f5 move v2 contract interaction methods into v2 package. add test 2025-01-22 13:54:57 +01:00
Jared Wasinger 9c086811ae isolate V2 contract interaction API into its own package 2025-01-22 13:54:57 +01:00
Jared Wasinger cb0d1ea3ba fix last rebase regression 2025-01-22 13:54:56 +01:00
Jared Wasinger f7fa3fe037 add back code that got mistakenly removed in the rebase 2025-01-22 13:54:56 +01:00
Sina Mahmoodi 135ef69b9b fix test 2025-01-22 13:54:56 +01:00
Sina Mahmoodi c14bd3d6e7 clean lang selection leftovers 2025-01-22 13:54:55 +01:00
Sina Mahmoodi b504552373 Pass pointer to log for unpack 2025-01-22 13:53:59 +01:00
Sina Mahmoodi f7084f4723 Add deploy code to contract struct 2025-01-22 13:53:59 +01:00
Sina Mahmoodi e2746e7f54 define contract instance type 2025-01-22 13:53:59 +01:00
Sina Mahmoodi 040f808742 skip unpack method when no return args 2025-01-22 13:53:59 +01:00
Sina Mahmoodi ee1263a78c drop fmt 2025-01-22 13:53:59 +01:00
Sina Mahmoodi 7b6f0eadd7 replace fmt with errors
Co-authored-by: Marius van der Wijden <m.vanderwijden@live.de>
2025-01-22 13:53:59 +01:00
Sina Mahmoodi 6b69f4c90c drop unnecessary imports 2025-01-22 13:53:59 +01:00
Sina Mahmoodi d4ccdc30c2 add copyright header to lib.go 2025-01-22 13:53:59 +01:00
Sina Mahmoodi ed627ccf8b accounts/abi: abigen v2 2025-01-22 13:53:59 +01:00
Felix Lange 4af9af419d
go.mod: remove toolchain line (#31057)
We have our own system for downloading the toolchain, and really don't
want Go's to get in the way of that. We may switch to Go's builtin
toolchain support, but not now.
2025-01-21 22:23:46 +01:00
jwasinger 6c10996bf5
eth/filters: ensure API timeoutLoop terminates with event system (#31056)
Discovered from failing test introduced
https://github.com/ethereum/go-ethereum/pull/31033 . We should ensure
`timeoutLoop` terminates if the filter event system is terminated.
2025-01-21 13:11:05 +01:00
Martin HS 2bf4a8ff73
cmd/evm: refactor handling output-files for `t8n` (#30854)
As part of trying to make the inputs and outputs of the evm subcommands
more streamlined and aligned, this PR modifies how `evm t8n` manages
output-files.

Previously, we do a kind of wonky thing where between each transaction,
we invoke a `getTracer` closure. In that closure, we create a new
output-file, a tracer, and then make the tracer stream output to the
file. We also fiddle a bit to ensure that the file becomes properly
closed.

It is a kind of hacky solution we have in place. This PR changes it, so
that from the execution-pipeline point of view, we have just a regular
tracer. No fiddling with re-setting it or closing files.

That particular tracer, however, is a bit special: it takes care of
creating new files per transaction (in the tx-start-hook) and closing
(on tx-end-hook). Also instantiating the right type of underlying
tracer, which can be a json-logger or a custom tracer.

---------

Co-authored-by: Gary Rong <garyrong0905@gmail.com>
2025-01-21 15:35:03 +08:00
jwasinger e25cedf16d
core/txpool: terminate subpool reset goroutine if pool was closed (#31030)
if the pool terminates before `resetDone` can be read, then the
go-routine will hang.
2025-01-21 11:42:05 +08:00
Shude Li 530adfc8e3
core/types: initialize ChainID in SetCodeTx copy method (#31054) 2025-01-20 17:06:39 +01:00
levisyin 448e16ad54
build: upgrade -dlgo version to Go 1.23.5 (#31037) 2025-01-20 17:04:29 +01:00