-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add contract bindings #38
Conversation
📚
|
registry/src/chainio/mod.rs
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you like the ABI workflow more than just the contract interface in the macros? I guess it's less error prone
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like it because there's a single source of truth and no copy pasting interfaces manually, otherwise no strong opinion
I like this, can we add a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, one request
registry/Cargo.toml
Outdated
@@ -35,7 +35,7 @@ axum = "0.8.1" | |||
sqlx = { version = "0.8", features = ["runtime-tokio", "tls-native-tls", "postgres", "chrono"] } | |||
|
|||
# ethereum | |||
alloy = { version = "0.9.1", features = ["consensus", "rpc-types", "reqwest"] } | |||
alloy = { version = "0.9.1", features = ["full", "rpc-types", "reqwest"] } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need full
? I think it's good practice to only pull in what you need
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good call, 7668af1
ABIs can be refreshed by using the
just abigen
command