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: Add ABI sync automation for React frontend #321

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

Taombawkry
Copy link

@Taombawkry Taombawkry commented Nov 7, 2024

this PR closes #318

Added automatic ABI synchronization between Hardhat contracts and React frontend:

  • Added sync-abis.js script in Hardhat root directory for managing ABI updates
  • Updated package.json with sync commands and postinstall executable setup
  • Added ABI sync documentation to README.md

This automation ensures React frontend always has access to the latest contract ABIs by copying them to react-app directory during compilation or on-demand. The file can be configured and customized however one wishes.

Copy link

netlify bot commented Nov 7, 2024

👷 Deploy request for celo-composer pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 4f30abc

@GigaHierz
Copy link
Contributor

Hi @Taombawkry ,

this looks good to me, only the documentation needs some updates. left some comments

Compatibility with Both Yarn and npm:

- yarn can use all scripts directly (e.g., yarn compile).
npm can use the same scripts with npm run (e.g., npm run compile).
yarn and npm documentation
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.

[Feature]: Add ABIs of Deployed Contracts into the react-app folder
2 participants