-
Notifications
You must be signed in to change notification settings - Fork 40
Feat/foundry verification docs #363
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
base: main
Are you sure you want to change the base?
Conversation
|
@gboigwe is attempting to deploy a commit to the IOV Labs Team on Vercel. A member of the Team first needs to authorize it. |
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.
Great work @gboigwe!
The new Foundry verification guide is clear, well-structured, and fully aligned with the requirements:
- proper forge verify-contract usage for Testnet/Mainnet
- automated script (Verify.s.sol)
- env/RPC setup
- troubleshooting
- CI/CD examples
Overall, excellent addition, thanks!
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
| @@ -0,0 +1,951 @@ | |||
| # Advanced Smart Contract Development and Deployment with Foundry on Rootstock | |||
|
|
|||
| --- | |||
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.
@gboigwe Metadata is not formatted properly: https://devportal-rootstock-git-fork-gboigwe-feat-f-74737b-iov-labs-mkt.vercel.app/developers/smart-contracts/foundry/advanced-development-patterns/
Kindly refer to existing pages for the right metadata values, and remove location in the metadata
|
|
||
| ### 2. Multi-Contract System with Factory Pattern | ||
|
|
||
| Complex DApps often require multiple interacting contracts. This pattern demonstrates a factory-vault system: |
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.
| Complex DApps often require multiple interacting contracts. This pattern demonstrates a factory-vault system: | |
| Complex dApps often require multiple interacting contracts. This pattern demonstrates a factory-vault system: |
|
|
||
| ## Testing Advanced Contracts | ||
|
|
||
| ### Comprehensive Test Suite |
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.
Add summary
|
|
||
| ## Integration with Verification System | ||
|
|
||
| This advanced smart contract system integrates seamlessly with the verification workflow documented in [Verify Smart Contracts Using Foundry Script](/developers/smart-contracts/foundry/verify-smart-contracts/). Key integration points include: |
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.
| This advanced smart contract system integrates seamlessly with the verification workflow documented in [Verify Smart Contracts Using Foundry Script](/developers/smart-contracts/foundry/verify-smart-contracts/). Key integration points include: | |
| This advanced smart contract system integrates seamlessly with the verification workflow documented in [Verify Smart Contracts Using Foundry Script](/developers/smart-contracts/foundry/verify-smart-contracts/). | |
| Key integration points include: |
|
|
||
| ### 1. Automated Verification Integration | ||
|
|
||
| The deployment scripts generate verification commands automatically, as demonstrated in the `_generateVerificationCommands()` function. This ensures that complex multi-contract systems are properly verified. |
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.
Hyper link to Comprehensive Deployment Script with Verification section
| - **Constructor Arguments**: Documentation of all constructor parameters used during deployment | ||
| - **Environment Setup**: Properly configured `.env` file with necessary API keys and RPC URLs | ||
|
|
||
| > **Important**: This guide assumes familiarity with Foundry basics. For foundational knowledge, review the [Foundry Project Creation](/developers/smart-contracts/foundry/create-foundry-project/) and [Smart Contract Development](/developers/smart-contracts/foundry/smart-contracts/) guides. |
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.
Use the admonition components for TIP or Info: https://dev.rootstock.io/components/#admonitions
| - **Testing Knowledge**: Experience with [Testing Smart Contracts](/developers/smart-contracts/foundry/test-smart-contracts/) | ||
| - **Deployment Experience**: Successful completion of [Deploy Smart Contracts](/developers/smart-contracts/foundry/deploy-smart-contracts/) | ||
|
|
||
| > **Note**: This guide assumes intermediate to advanced Solidity knowledge. For basic Solidity concepts, refer to the [Solidity Documentation](https://docs.soliditylang.org/). |
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.
Use the admonition component for Note or Info: https://dev.rootstock.io/components/#admonitions
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.
Hi @gboigwe Any update on this?
Add Comprehensive Foundry Smart Contract Verification Documentation
Title
Description
Purpose: Resolves GitHub Issue Add Documentation for Verifying Smart Contracts Using Foundry Script on Rootstock #308 by providing complete documentation for smart contract verification using Foundry scripts on Rootstock Explorer and Blockscout.
Issue Resolved: GitHub Issue Add Documentation for Verifying Smart Contracts Using Foundry Script on Rootstock #308 - "Verify Smart Contract Using Foundry Script" - addresses the gap in scripted verification documentation for Rootstock developers.
Specific Changes Made:
docs/02-developers/05-smart-contracts/05-foundry/verify-smart-contracts.md- Comprehensive verification guide with CLI commands, automated scripts, constructor argument handling, error troubleshooting, and CI/CD integrationdocs/02-developers/05-smart-contracts/05-foundry/advanced-smart-contracts.md- Advanced smart contract development patterns including upgradeable contracts, factory patterns, multi-contract systems, and comprehensive testing strategiesKey Features:
Screenshots/GIFs
Testing
Checklist
Refs
/docs/02-developers/05-smart-contracts/05-foundry/