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

Generate Brownie interface for Foundry project #121

Merged
merged 1 commit into from
Nov 8, 2023
Merged

Conversation

zomglings
Copy link
Contributor

It is now possible to call moonworm generate-brownie with the --foundry argument.

If it is called this way, the Brownie interface is generated with reference to a Foundry project.

Rough around the edges, and may not play nice with --prod, which is anyway not working well for deployments (even before the addition of --foundry).

The same scheme we use to remap the build object for --foundry should be generalized across both --foundry and --prod.

It is now possible to call `moonworm generate-brownie` with the
`--foundry` argument.

If it is called this way, the Brownie interface is generated with
reference to a Foundry project.

Rough around the edges, and may not play nice with `--prod`, which is
anyway not working well for deployments (even before the addition of
`--foundry`).

The same scheme we use to remap the build object for `--foundry` should
be generalized across both `--foundry` and `--prod`.
Copy link

@kellan-simiotics kellan-simiotics left a comment

Choose a reason for hiding this comment

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

Looks good. Just small observation about the cli method name.

help=f"Path to brownie project directory",
help=f"Path to brownie/foundry project directory",
)
generate_brownie_parser.add_argument(

Choose a reason for hiding this comment

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

It feels a bit odd to call generate-brownie with a foundry arg. Can we change the name of the method to something more general? If this is too disruptive, we could just expose a duplicate method and say that generate-brownie will eventually be deprecated.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We are generating a CLI which uses brownie (hence generate-brownie). Against smart contract that are built using foundry.

But I think the larger thing is we need to work on moonworm-rs. :)

@zomglings zomglings merged commit 05274f3 into main Nov 8, 2023
4 checks passed
@zomglings zomglings deleted the foundry-projects branch November 8, 2023 20:12
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