Commit graph

23 commits

Author SHA1 Message Date
Jared Wasinger
8d3fc41c9a accounts/abi/bind, accounts/abi/bind/v2: fix error unpacking. update relevant binding example. make error unpacking test more comprehensive 2025-01-22 13:54:58 +01:00
Jared Wasinger
2ab719cc59 accounts/abi/bind/v2: remove unecessary TODOs. Fix TestErrors compilation 2025-01-22 13:54:58 +01:00
Jared Wasinger
1b7aecef93 don't emit constructor input packing method if the contract constructor has no inputs 2025-01-22 13:54:58 +01:00
Jared Wasinger
c92220f20e add docs explaining internal variables on the v2 binder/contractBinder structs. convert exported metadata object in binding to be non-pointer type. Fix some linter issues. remove unecessary TODO comments 2025-01-22 13:54:58 +01:00
Jared Wasinger
9dd006f4e0 update converted v1 bindings
remove commented-out line
2025-01-22 13:54:58 +01:00
Jared Wasinger
1dd531a2ba misc template additions I forgot to include in previous commits. introduce 'RawDeploymentTransact' method 2025-01-22 13:54:58 +01:00
Jared Wasinger
9b453b04fe better naming for instance of self-struct in member methods of structs in generated bindings 2025-01-22 13:54:58 +01:00
Jared Wasinger
64c13eb2b9 update converted v1 bind test cases. rename test case that checks converted-v1 bindings in v2 to something more sensible 2025-01-22 13:54:58 +01:00
Jared Wasinger
8ea9929a30 accounts/abi/bind: fix some ugliness in the generated binding code which deals with pointer types 2025-01-22 13:54:58 +01:00
Jared Wasinger
3d974b22e2 accounts/abi/bind/v2/internal/contracts: update bindings 2025-01-22 13:54:58 +01:00
Jared Wasinger
41a0cfff69 accounts/abi/bind: deduplicate logic to normalize struct elements, event/error/method arguments/results. fix for case where normalization of name '_' would return an empty string 2025-01-22 13:54:58 +01:00
Jared Wasinger
0b09319eb7 accounts/abi/bind/v2/internal/contracts: regenerate bindings (they were mistakenly generated with a broken iteration of the code, and empty/broken bindings were included) 2025-01-22 13:54:58 +01:00
Jared Wasinger
e50bfdd053 remove error return from generated pack method for constructors. add the results of feeding v1 binding test ABIs through the v2 generator. 2025-01-22 13:54:57 +01:00
Jared Wasinger
6a007cac18 wip 2025-01-22 13:54:57 +01:00
Jared Wasinger
2949b1a11d embed direct library relations in metadata in bindings. simplify dependency tree handling as a result of embedding it in the bindings. 2025-01-22 13:54:57 +01:00
Jared Wasinger
b6d6ba92de refactor builds 2025-01-22 13:54:57 +01:00
Jared Wasinger
2c9c9cf4bd regenerate bindings 2025-01-22 13:54:57 +01:00
Jared Wasinger
3129593b3f export event names in bindings. remove added APIs Filter/Watch-Logs which take event ids. 2025-01-22 13:54:57 +01:00
Jared Wasinger
2421cc3ed5 move contract dep tree, link-and-deploy to bind package. This is so that bind can build the dependency tree for each library to populate their exported deps. 2025-01-22 13:54:57 +01:00
Jared Wasinger
736d587990 full support for errors with working test 2025-01-22 13:54:57 +01:00
Jared Wasinger
9552b30263 wip (just committing so that I can rebase off master to use ethclient.RevertErrorData) 2025-01-22 13:54:57 +01:00
Jared Wasinger
9a59bdb239 generation of custom error unpacking builds (not tested yet) 2025-01-22 13:54:57 +01:00
Jared Wasinger
ba68e747b5 mv test contracts to internal directory under v2 2025-01-22 13:54:57 +01:00