Update README.md
Browse files
README.md
CHANGED
|
@@ -35,6 +35,16 @@ These audits are nicely compiled by [Solodit](https://solodit.xyz/).
|
|
| 35 |
5. `impact` (Optional) - Explains how the vulnerability affects the smart contract
|
| 36 |
6. `function` - Raw vulnerable *solidity* code (*Sometimes this could be inaccurate. Best efforts were made to clean-up the dataset but some rows might include other programming languages e.g. javascript*)
|
| 37 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
# Verified functions (`verified-functions`)
|
| 39 |
|
| 40 |
This repository also includes a dataset with functions with no known vulnerabilities. They were scraped-off from [Etherscan](https://etherscan.io).
|
|
@@ -44,11 +54,15 @@ Specifically, the functions are a part of the top 500 auditted contracts holding
|
|
| 44 |
## Fields
|
| 45 |
1. `function` - Raw solidity code
|
| 46 |
|
| 47 |
-
|
| 48 |
|
| 49 |
```python
|
| 50 |
from datasets import load_dataset
|
| 51 |
-
dataset = load_dataset(
|
|
|
|
|
|
|
|
|
|
|
|
|
| 52 |
```
|
| 53 |
|
| 54 |
# Additional Info
|
|
|
|
| 35 |
5. `impact` (Optional) - Explains how the vulnerability affects the smart contract
|
| 36 |
6. `function` - Raw vulnerable *solidity* code (*Sometimes this could be inaccurate. Best efforts were made to clean-up the dataset but some rows might include other programming languages e.g. javascript*)
|
| 37 |
|
| 38 |
+
## Usage
|
| 39 |
+
|
| 40 |
+
```python
|
| 41 |
+
from datasets import load_dataset
|
| 42 |
+
dataset = load_dataset(
|
| 43 |
+
"msc-smart-contract-audition/vulnerable-functions-base",
|
| 44 |
+
escapechar='\\',
|
| 45 |
+
)
|
| 46 |
+
```
|
| 47 |
+
|
| 48 |
# Verified functions (`verified-functions`)
|
| 49 |
|
| 50 |
This repository also includes a dataset with functions with no known vulnerabilities. They were scraped-off from [Etherscan](https://etherscan.io).
|
|
|
|
| 54 |
## Fields
|
| 55 |
1. `function` - Raw solidity code
|
| 56 |
|
| 57 |
+
## Usage
|
| 58 |
|
| 59 |
```python
|
| 60 |
from datasets import load_dataset
|
| 61 |
+
dataset = load_dataset(
|
| 62 |
+
"msc-smart-contract-audition/vulnerable-functions-base",
|
| 63 |
+
name="verified-functions",
|
| 64 |
+
escapechar='\\',
|
| 65 |
+
)
|
| 66 |
```
|
| 67 |
|
| 68 |
# Additional Info
|