Sourcify
BuildBear Sourcify is a service that allows you to explore the blockchain.
Overview
The BuildBear Sourcify Plugin simplifies the verification of Solidity smart contract source code on BuildBear sandboxes using the Sourcify verification tool. Unlike other verification services, Sourcify employs Solidity metadata to achieve verification of contracts, ensuring efficiency and reliability.
Features
- Automated Contract Identification - Simply provide deployment details, and the plugin identifies the contract for verification.
- Solidity Library Handling - Automated handling of Solidity libraries for seamless verification.
- Pre-Verification Simulation - Local simulation for error detection before actual verification.
- Hardhat & Foundry Integration - Seamless integration with Hardhat and Foundry workflows.
Installation
- Log in to your BuildBear account and navigate to the Plugin Marketplace.
- Search for the "Sourcify" Plugin and click "Install".
Ensure the plugin appears as installed in the marketplace or under the 'Installed' tab.
How to Use
Hardhat Integration
- Install the Hardhat Verify plugin:
- Add the following to your
hardhat.config.js
: - Configure the Sourcify object in
hardhat.config.js
: - Optionally, disable Etherscan verification:
Foundry Integration
Programmatic Deployment & Verification
Manual Verification of Single Contract
Note: The verifier-url
should end with your Sandbox ID.
Conclusion
The BuildBear Sourcify Plugin enables seamless Solidity contract verification within BuildBear sandboxes. By integrating with Hardhat or Foundry, developers can verify contracts efficiently and ensure code transparency with minimal effort.