Skip to content

added interface generation to abigen#28279

Closed
samlaf wants to merge 1 commit intoethereum:masterfrom
samlaf:issue-28278/abigen-interfaces
Closed

added interface generation to abigen#28279
samlaf wants to merge 1 commit intoethereum:masterfrom
samlaf:issue-28278/abigen-interfaces

Conversation

@samlaf
Copy link
Copy Markdown
Contributor

@samlaf samlaf commented Oct 8, 2023

Implements feature-request #28278

The proposed names for the interfaces are pretty awful, but the structs have already taken the Caller/Transactor/Filterer names. Open to suggestions for renaming the interfaces.

@jwasinger
Copy link
Copy Markdown
Contributor

We have introduced a new version of abigen which only generates a minimal set of bindings for packing/unpacking ABI-encoded data for various methods/events/errors defined in a contract's interface. These bare-bones bindings can be used in conjunction with various APIs provided by go-ethereum to cover a wide array of use-cases that were previously impossible with abigen v1. Please check out the tutorial here for an overview of how to use the new version: https://geth.ethereum.org/docs/developers/dapp-developer/native-bindings-v2 .

Closing this as it's no longer necessary to expand the interface of abigen v2.

@jwasinger jwasinger closed this May 6, 2025
@samlaf
Copy link
Copy Markdown
Contributor Author

samlaf commented May 6, 2025

@jwasinger are there release notes somewhere expanding on the diff between v1 and v2?

@jwasinger
Copy link
Copy Markdown
Contributor

The abigen v2 PR gives an overview of the changes in functionality that we shipped with the new version: #31379 .

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