Conversation
|
Current dependencies on/for this PR:
This stack of pull requests is managed by Graphite. |
9f68969 to
b9aed79
Compare
|
Currently blocked by #8269 |
b9aed79 to
a36df5d
Compare
WalkthroughWalkthroughThe changes involve a significant update to the Go package responsible for generating Ethereum smart contract bindings. A new Changes
TipsChat with CodeRabbit Bot (
|
There was a problem hiding this comment.
Review Status
Actionable comments generated: 4
Configuration used: CodeRabbit UI
Files ignored due to filter (1)
- op-bindings/artifacts.json
Files selected for processing (4)
- op-bindings/Makefile (2 hunks)
- op-bindings/bindgen/generator_local.go (1 hunks)
- op-bindings/bindgen/main.go (1 hunks)
- op-bindings/bindgen/utils.go (1 hunks)
Additional comments: 5
op-bindings/Makefile (4)
9-9: The
alltarget correctly depends onbindgen-localas per the changes described.26-36: The
bindgen-generate-localrule correctly invokes the Go script with the necessary parameters.24-24: The
bindgen-localtarget correctly depends oncompileandbindgen-generate-local.38-39: The
mkdirtarget is correctly defined to ensure the necessary directory exists.op-bindings/bindgen/utils.go (1)
- 110-111: Ensure that the
abigentool is installed and available in the system's PATH as thegenContractBindingsfunction relies on it.
hamdiallam
left a comment
There was a problem hiding this comment.
Looks really great! Left a few comments
4c3a3a8 to
c2bac37
Compare
c2bac37 to
08e676f
Compare
08e676f to
e4536f9
Compare
hamdiallam
left a comment
There was a problem hiding this comment.
Looks good after another pass, great code!
Mainly reviewed by just looking at the logic & not actually running it locally to verify -- i'm sure you've verified expected behavior locally
mslipper
left a comment
There was a problem hiding this comment.
I've verified that these changes are drop-in replacements for the existing bindings functionality, and generate the same output as the original bindings script. LGTM.

This PR is refactoring the existing bindings generation code to better fit with an extension of the code to allow for bindings created for remotely sourced contracts (#8281). For the most part, the original code isn't modified other than breaking out code into smaller functions