Introducing Sourcify Plugin: Streamline Contract Verification on BuildBear Sandboxes
We are excited to announce that the BuildBear sandbox now supports Sourcify, enhancing the verification capabilities within the platform. This integration empowers BuildBear Users to conduct contract verification seamlessly on their sandboxes by directly utilizing the Sourcify verification tool. The direct integration with Sourcify adds a new layer of efficiency to the verification process on BuildBear’s sandboxes.
What is Sourcify and How does it differ from Existing Tools?
Sourcify is a smart contract verification tool for verifying open-sourced and decentralized contracts. Unlike some other verification services, Sourcify focuses on contracts across various EVM-based networks and emphasizes full matches with metadata hashes, ensuring a more thorough verification process. The verified contracts on Sourcify are stored in a public repository accessible via HTTPS and IPFS, providing a more robust and decentralized way to access contract metadata and source code files.
Quick Starter Guide to Getting Started with Sourcify Verification:
To quickly get started with Sourcify Plugin follow the step-by-step procedure below:
- Create Your Private Sandbox: If you are new to BuildBear, refer to our comprehensive documentation to sign up and create your sandbox here.
2. Install Sourcify Plugin: Click on the Plugins option from the sandbox dashboard and Install Sourcify. After Installation, it will be available under the installed Plugins tab.
- Setting up the project: This repository contains sample contracts for you to deploy and verify. Clone the repo and install necessary libraries using the below command:
git clone https://github.com/BuildBearLabs/Sourcify-verify.git
cd Sourcify-verify
forge install foundry-rs/forge-std
4. Deploy and Verify Contracts: Utilize the provided command from the dashboard to deploy and verify contracts with Sourcify:
Note: Replace the RPC URL, private key with yours, and for verification URL pass the sandbox name at the end. There might be a revert error during deployment for certain versions of the forge.
forge create --rpc-url https://rpc.buildbear.io/exuberant-doctorstrange-7d31c756 \
--private-key 670e8f5f547a3bc4bd1869d47591ff10f6cf0d69a254257b61eca3f244ef188 \
src/Counter.sol:Counter \
--verify --verifier sourcify \
--verifier-url https://rpc.buildbear.io/verify/sourcify/server/exuberant-doctorstrange-7d31c756
After running the above command your contract will be deployed and verified for Sourcify as shown below:
Conclusion:
The integration of BuildBear Sandbox and Sourcify streamlines the contract verification process on BuildBear Sandbox using Foundry, making it more efficient for DApp testing. With this synergy, users can experience a smoother and more effective contract verification journey.
About BuildBear Labs:
BuildBear is a specialized platform dedicated to dApp development and testing, offering developers the ability to craft customized Private Testnet sandboxes across multiple EVM and EVM-compatible blockchain networks. Key features include private faucets for unlimited Native and ERC20 token minting, explorer, and plugin support. BuildBear empowers developers to build and test dApps with confidence and efficiency.
Subscribe to my newsletter
Read articles from BuildBear directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
BuildBear
BuildBear
BuildBear is a platform for testing dApps at scale, for teams. It provides users with their own private Testnet to test their smart contracts and dApps, which can be forked from any EVM chain. It also provides a Faucet, Explorer, and RPC for testing purposes.