Smart contract vulnerability templates for ReinforcedAI
Project description
Vulnerabilities Database
Smart contract vulnerability templates for ReinforcedAI.
Dependencies
- Modern Liniux
- Python 3.11+
API
-
initialize(environment: str)Loads native vulnerabilities database library. You must call this function before any other library function.environmentсan bemainnet,testnetorlocal. -
activate(activation_code: str)Activates the library with your activation code. This is required before you can generate contracts.activation_codeis your personal activation code received from relayer. -
generate_contract()Generates a new vulnerable contract template. The library must be initialized and activated before calling this function.Returns
Contractobject withvulnerability_class,descriptionandcodefields.
Demo
import vuldb
vuldb.initialize('local')
vuldb.activate('AAAA-BBBB-CCCC')
contract = vuldb.generate_contract()
print('Vulnerability class:', contract.vulnerability_class)
print('Description:', contract.description)
print('Code:', contract.code)
How to build wheel?
- Setup virtual environment
- Install dependencies with
pip install build wheel - Build wheel using
python -m build --wheel - Copy wheel from
distfolder
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file solidity_vulnerabilities_db2-0.0.1-py3-none-any.whl.
File metadata
- Download URL: solidity_vulnerabilities_db2-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7e99ab3ef593fbccd767840e2d59fa82e615660de3cb3ff4544f361b85046b91
|
|
| MD5 |
6f8cf8a40056059b60511b719e63ab68
|
|
| BLAKE2b-256 |
48a58d59ad6d67936afac77ef0a09f51352279159d56e8c318d09471612deb09
|