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

chore: abi typings #35

Merged
merged 5 commits into from
Apr 18, 2024
Merged

chore: abi typings #35

merged 5 commits into from
Apr 18, 2024

Conversation

0xApotheosis
Copy link
Contributor

@0xApotheosis 0xApotheosis commented Apr 18, 2024

Adds automatically generated TypeScript types for whitelisted .sol contracts.

The command yarn build-and-generate will compile all contracts with forge, then use wagmi-cli to generate ABI typings for each contract.

Closes #4

Screenshot 2024-04-18 at 11 21 16 AM

Wagmi CLI is needed as TypeScript doesn't support importing the generated Foundry JSON as a const: microsoft/TypeScript#32063

Screenshot 2024-04-17 at 3 59 35 PM

@0xApotheosis 0xApotheosis mentioned this pull request Apr 18, 2024
@gomesalexandre gomesalexandre self-requested a review April 18, 2024 04:18
.gitignore Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
Copy link
Contributor

@gomesalexandre gomesalexandre left a comment

Choose a reason for hiding this comment

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

Does precisely what it says on the box!
A few smallish comments to tackle at your convenience, but get in

@0xApotheosis 0xApotheosis merged commit a315834 into main Apr 18, 2024
1 check passed
@0xean 0xean deleted the abi-types-2 branch May 29, 2024 17:59
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.

Generate typings from ABI for distro script
2 participants