-
Notifications
You must be signed in to change notification settings - Fork 24
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
Conversation
fadeev
commented
Jun 12, 2023
•
edited
Loading
edited
- Generates a contract
- Deploy task
- Interact task
@@ -0,0 +1,86 @@ | |||
import * as fs from "fs"; |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.