Safe Protocol Library is an open-source project aimed at providing a comprehensive list of mainstream Web3 protocols and their associated smart contract addresses. The primary goal of this project is to help developers and users identify secure on-chain contract entities, thereby enhancing overall security and protecting against potential phishing attacks.
- Detailed information on mainstream Web3 protocols
- Multi-chain support (Ethereum, BSC, Polygon, etc.)
- Verified contract addresses
- Additional protocol metadata (e.g., official websites, audit reports)
-
Clone the repository:
git clone https://github.com/cryptousersecurity/safeprotocollib.git
-
Install dependencies:
npm install
-
Use the provided tools to validate or query protocol information:
node tools/address-validator.js
Information for each protocol is stored in a JSON file with the following structure:
{
"name": "Protocol Name",
"description": "Protocol Description",
"chains": [
{
"name": "Chain Name",
"contracts": [
{
"name": "Contract Name",
"address": "Contract Address"
}
]
}
],
"extra": {
"website": "Official Website",
"github": "GitHub Repository",
"securityAudits": [
{
"auditor": "Auditor Name",
"date": "Audit Date",
"report": "Audit Report Link"
}
],
"tags": ["Tag1", "Tag2"]
}
}
We welcome and encourage community contributions! If you want to add new protocol information or update existing information, please follow these steps:
- Fork this repository
- Create your feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
For detailed contribution guidelines, please check the CONTRIBUTING.md file.
While this library aims to improve security, users should remain vigilant. Always verify the contract addresses you interact with and do not rely solely on this library.
This project is licensed under the MIT License - see the LICENSE file for details.
If you have any questions or suggestions, please open an issue or contact the project maintainers directly.
By using and contributing to this library, we are collectively working towards making the Web3 ecosystem more secure. Thank you for your support!