Commit graph

40 commits

Author SHA1 Message Date
Felix Lange
1bdc820c98 accounts/abi/bind/v2: pass contract instance as value 2025-01-22 13:54:58 +01:00
Felix Lange
0e856b512a accounts/abi/bind/v2: rename package to "bind" and reexport some v1 stuff 2025-01-22 13:54:58 +01:00
Felix Lange
dbe316a48d accounts/abi/bind/v2: remove some unnecessary type parameters 2025-01-22 13:54:58 +01:00
Jared Wasinger
bda5e4c496 fix test 'BindingV2ConvertedV1Tests'. add more comprehensive output checking to solc errors test. 2025-01-22 13:54:58 +01:00
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
0a751f8727 accounts/abi/bind/v2: fix test that doesn't compile 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
b896ed2966 accounts/abi/bind, accounts/abi/bind/v2: move DeployContractRaw into v2 package 2025-01-22 13:54:58 +01:00
Jared Wasinger
fe2827e9d3 accounts/abi/bind/v2: fix lib_test.go (update test to reflect that bindings changed s.t. constructor unpack does not return error) 2025-01-22 13:54:58 +01:00
Jared Wasinger
708dc59223 copy DeploymentParams overrides before creating tree deployer (prevent the backing-array provided by the API user from being mutated). re-enable deployment-with-overrides test 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
f90a88e85a make DeploymentParams fields private. instantiate it with a constructor method 2025-01-22 13:54:57 +01:00
Jared Wasinger
adc4ab6e79 remove unecessarily-added method 2025-01-22 13:54:57 +01:00
Jared Wasinger
b1f3970c57 tests pass 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
709ff38bc1 gofmt files. add a TODO comment and remove another useless comment 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
60fc16dea8 rewrite contract link/deploy again 2025-01-22 13:54:57 +01:00
Jared Wasinger
c8b17ca9c4 staging changes for linking tests. rework LinkAndDeploy to decouple logic of contract deployment, by passing a callback that does it. 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
Jared Wasinger
4872d7fde5 remove unecessary abi parameter from WatchEvents. simplify event tests 2025-01-22 13:54:57 +01:00
Jared Wasinger
a0485167d5 add generic call/transact 2025-01-22 13:54:57 +01:00
Jared Wasinger
28d57002ff add generic log watching/filtering. skip adding generic call/transact (issue with interface regarding contract methods that don't take arguments) 2025-01-22 13:54:57 +01:00
Jared Wasinger
69e6f2932d add binding generation test 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
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
Renamed from accounts/abi/bind/v2/v2_test.go (Browse further)