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: code generation for cross-chain messaging #8

Merged
merged 9 commits into from
Jul 3, 2023
Merged

Conversation

fadeev
Copy link
Member

@fadeev fadeev commented Jun 12, 2023

npx hardhat message fooBar arg1 arg2:address
  • Generates a contract
  • Deploy task
  • Interact task

@fadeev fadeev marked this pull request as ready for review June 12, 2023 13:57
@@ -0,0 +1,86 @@
import * as fs from "fs";
Copy link
Contributor

Choose a reason for hiding this comment

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

For this, I recommend using plop as we did in the past (much more maintainable and extensible): https://github.com/zeta-chain/zeta-examples/blob/498e3d51b48263184614c94704251c5839fde8a7/plopfile.js#L1.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, I think this code could be refactored to use a library. I've looked into plop and it's a good candidate, however, right now there are issues with using it with TS plopjs/plop#297

Created an issue to track the refactor: #15

This refactor is a nice to have and shouldn't block the PR, I think.

@fadeev fadeev requested a review from lucas-janon June 29, 2023 13:57
@fadeev fadeev merged commit be05390 into main Jul 3, 2023
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.

3 participants