Skip to content
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: autogenerate golang bindings #196

Merged
merged 1 commit into from
Oct 10, 2024

Conversation

jakim929
Copy link
Contributor

@jakim929 jakim929 commented Oct 9, 2024

generate-bindings.sh script will

  1. Downloads a tar.gz file containing contract artifacts from a specified URL.
  2. Extracts ABIs for specified contracts from the artifacts.
  3. Uses abigen to generate Go bindings for each contract.
  4. Outputs the generated bindings to a specified directory.

just generate-monorepo-bindings should generate and output the bindings into the bindings module

abigen is not smart enough yet to deduplicate same-named variables ie. ICrossL2InboxIdentifier which is generated in both L2ToL2CDM and CrossL2Inbox so there may be some manual work to be done for now

Copy link

cloudflare-workers-and-pages bot commented Oct 9, 2024

Deploying supersim with  Cloudflare Pages  Cloudflare Pages

Latest commit: 37de0d5
Status: ✅  Deploy successful!
Preview URL: https://5b263745.supersim.pages.dev
Branch Preview URL: https://10-09-feat-autogenerate-gola.supersim.pages.dev

View logs

Copy link
Contributor Author

jakim929 commented Oct 9, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @jakim929 and the rest of your teammates on Graphite Graphite

@jakim929 jakim929 force-pushed the 10-09-feat_autogenerate_golang_bindings branch from 41ce197 to aeecd36 Compare October 9, 2024 18:55
@jakim929 jakim929 marked this pull request as ready for review October 9, 2024 18:56
@jakim929 jakim929 requested a review from a team as a code owner October 9, 2024 18:56
Copy link
Contributor

@tremarkley tremarkley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great job!

Justfile Show resolved Hide resolved
@jakim929 jakim929 force-pushed the 10-09-feat_autogenerate_golang_bindings branch from aeecd36 to 37de0d5 Compare October 9, 2024 23:50
@jakim929 jakim929 merged commit 6462468 into main Oct 10, 2024
5 checks passed
@jakim929 jakim929 deleted the 10-09-feat_autogenerate_golang_bindings branch October 10, 2024 02:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants