Conversation
fabiaz84
commented
Mar 4, 2026
- foundry.toml: megaeth rpc_endpoints and etherscan (chain 4326)
- script/bao-factory:
- MegaETH verify via Etherscan API v2 (direct API, chainid=4326)
- --verify: verify-only for bootstrap implementation
- --verify-contract : verify any contract (e.g. after impl deploy)
- PATH handling for Foundry (cast/forge) when not on PATH
- Portable grep (-oE) for macOS/BSD
- NEXT STEPS: explorer URLs for megaeth, typos fixed, verify-contract hint
- README: prerequisites (git submodules), MegaETH env vars and verify flow, verify-only and implementation upgrade for megaeth, ./script/bao-factory in examples
- foundry.toml: megaeth rpc_endpoints and etherscan (chain 4326) - script/bao-factory: - MegaETH verify via Etherscan API v2 (direct API, chainid=4326) - --verify: verify-only for bootstrap implementation - --verify-contract <addr> <path>: verify any contract (e.g. after impl deploy) - PATH handling for Foundry (cast/forge) when not on PATH - Portable grep (-oE) for macOS/BSD - NEXT STEPS: explorer URLs for megaeth, typos fixed, verify-contract hint - README: prerequisites (git submodules), MegaETH env vars and verify flow, verify-only and implementation upgrade for megaeth, ./script/bao-factory in examples Made-with: Cursor
rootminus0x1
reviewed
Mar 6, 2026
| export PATH="$FOUNDRY_BIN:$PATH" | ||
| fi | ||
| fi | ||
|
|
Collaborator
There was a problem hiding this comment.
I don't thin we should be adding knowledge of where foundry is installed into the factory deploy script - it should just call it and fail if it is not installed
rootminus0x1
reviewed
Mar 6, 2026
| ./script/bao-factory --deploy --network mainnet --account <deployer> --etherscan <API_KEY> | ||
| ``` | ||
|
|
||
| For **MegaETH** (chain ID 4326), set in your environment and use `--network megaeth`: |
Collaborator
There was a problem hiding this comment.
this should say in .env not environment
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.