code string | bytecode string | opcode string | label string | label_encoded int64 | cfg string | adj_matrix string | cfg_dot string | cfg_nodes int64 | cfg_edges int64 | cfg_density float64 |
|---|---|---|---|---|---|---|---|---|---|---|
pragma solidity ^0.4.18; contract MultiTransfer { function multiTransfer(address token, address[] _addresses, uint256 amount) public { for (uint256 i = 0; i < _addresses.length; i++) { token.transfer(amount); } } } | 606060405260043610610041576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630aa20e7314610046575b600080fd5b341561005157600080fd5b6100c6600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091908035906020019082018035906020019080806020026020016040519081016040528093929190818152... | PUSH1 PUSH1 MSTORE PUSH1 CALLDATASIZE LT PUSH2 JUMPI PUSH1 CALLDATALOAD PUSH29 SWAP1 DIV PUSH4 AND DUP1 PUSH4 EQ PUSH2 JUMPI JUMPDEST PUSH1 DUP1 REVERT JUMPDEST CALLVALUE ISZERO PUSH2 JUMPI PUSH1 DUP1 REVERT JUMPDEST PUSH2 PUSH1 DUP1 DUP1 CALLDATALOAD PUSH20 AND SWAP1 PUSH1 ADD SWAP1 SWAP2 SWAP1 DUP1 CALLDATALOAD SWAP1... | benign | 0 | {'blocks': [[{'address': 0, 'opcode': 'PUSH1', 'args': ''}, {'address': 1, 'opcode': 'PUSH1', 'args': ''}, {'address': 2, 'opcode': 'MSTORE', 'args': ''}, {'address': 3, 'opcode': 'PUSH1', 'args': ''}, {'address': 4, 'opcode': 'CALLDATASIZE', 'args': ''}, {'address': 5, 'opcode': 'LT', 'args': ''}, {'address': 6, 'opco... | [[0. 1. 1. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0.]
[0. 0. 1. 1. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0.]
[0. 0. 0. 1. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0.]
[0. 0. 0. 0. 1. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
0.]
... | digraph CFG {
rankdir=UD;
node [shape=box];
block_0 [label="PUSH1\nPUSH1\nMSTORE\nPUSH1\nCALLDATASIZE\nLT\nPUSH2\nJUMPI"];
block_1 [label="PUSH1\nCALLDATALOAD\nPUSH29\nSWAP1\nDIV\nPUSH4\nAND\nDUP1\nPUSH4\nEQ\nPUSH2\nJUMPI"];
block_2 [label="JUMPDEST"];
block_3 [label="PUSH1\nDUP1\nREVERT"];
block_4 [label="JUMPDEST"];... | 25 | 29 | 1.16 |
pragma solidity ^0.4.18; /** * Digital Fantasy Sports is a digital sports platform that brings this concept of playing fantasy sports * while using cryptocurrencies to extraordinary fantasy players. It has created an ER20 token called * DFS that provides a simple secure interface between the players and the league acti... | 6060604052341561000f57600080fd5b6104008061001e6000396000f300606060405260043610610057576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806318160ddd1461005c57806370a0823114610085578063a9059cbb146100d2575b600080fd5b341561006757600080fd5b61006f61012c565b604051808281526020019150506040518091... | PUSH1 PUSH1 MSTORE CALLVALUE ISZERO PUSH2 JUMPI PUSH1 DUP1 REVERT JUMPDEST PUSH2 DUP1 PUSH2 PUSH1 CODECOPY PUSH1 RETURN STOP PUSH1 PUSH1 MSTORE PUSH1 CALLDATASIZE LT PUSH2 JUMPI PUSH1 CALLDATALOAD PUSH29 SWAP1 DIV PUSH4 AND DUP1 PUSH4 EQ PUSH2 JUMPI DUP1 PUSH4 EQ PUSH2 JUMPI DUP1 PUSH4 EQ PUSH2 JUMPI JUMPDEST PUSH1 DUP... | unchecked_calls | 1 | {'blocks': [[{'address': 0, 'opcode': 'PUSH1', 'args': ''}, {'address': 1, 'opcode': 'PUSH1', 'args': ''}, {'address': 2, 'opcode': 'MSTORE', 'args': ''}, {'address': 3, 'opcode': 'CALLVALUE', 'args': ''}, {'address': 4, 'opcode': 'ISZERO', 'args': ''}, {'address': 5, 'opcode': 'PUSH2', 'args': ''}, {'address': 6, 'opc... | [[0. 1. 1. ... 0. 0. 0.]
[0. 0. 1. ... 0. 0. 0.]
[0. 0. 0. ... 0. 0. 0.]
...
[0. 0. 0. ... 0. 1. 0.]
[0. 0. 0. ... 0. 0. 1.]
[0. 0. 0. ... 0. 0. 0.]] | digraph CFG {
rankdir=UD;
node [shape=box];
block_0 [label="PUSH1\nPUSH1\nMSTORE\nCALLVALUE\nISZERO\nPUSH2\nJUMPI"];
block_1 [label="PUSH1\nDUP1\nREVERT"];
block_2 [label="JUMPDEST"];
block_3 [label="PUSH2\nDUP1\nPUSH2\nPUSH1\nCODECOPY\nPUSH1\nRETURN"];
block_4 [label="STOP"];
block_5 [label="PUSH1\nPUSH1\nMSTORE\nPUS... | 71 | 82 | 1.15493 |
contract check { function add(address _add, uint _req) { _add.callcode(bytes4(keccak256("changeRequirement(uint256)")), _req); } } | 6060604052341561000f57600080fd5b6101758061001e6000396000f300606060405260043610610041576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff168063f5d82b6b14610046575b600080fd5b341561005157600080fd5b610086600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091908035906020019091905050... | PUSH1 PUSH1 MSTORE CALLVALUE ISZERO PUSH2 JUMPI PUSH1 DUP1 REVERT JUMPDEST PUSH2 DUP1 PUSH2 PUSH1 CODECOPY PUSH1 RETURN STOP PUSH1 PUSH1 MSTORE PUSH1 CALLDATASIZE LT PUSH2 JUMPI PUSH1 CALLDATALOAD PUSH29 SWAP1 DIV PUSH4 AND DUP1 PUSH4 EQ PUSH2 JUMPI JUMPDEST PUSH1 DUP1 REVERT JUMPDEST CALLVALUE ISZERO PUSH2 JUMPI PUSH1... | unchecked_calls | 1 | {'blocks': [[{'address': 0, 'opcode': 'PUSH1', 'args': ''}, {'address': 1, 'opcode': 'PUSH1', 'args': ''}, {'address': 2, 'opcode': 'MSTORE', 'args': ''}, {'address': 3, 'opcode': 'CALLVALUE', 'args': ''}, {'address': 4, 'opcode': 'ISZERO', 'args': ''}, {'address': 5, 'opcode': 'PUSH2', 'args': ''}, {'address': 6, 'opc... | [[0. 1. 1. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.]
[0. 0. 1. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.]
[0. 0. 0. 1. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.]
[0. 0. 0. 0. 1. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.]
[0. 0. 0. 0. 0. 1. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. ... | digraph CFG {
rankdir=UD;
node [shape=box];
block_0 [label="PUSH1\nPUSH1\nMSTORE\nCALLVALUE\nISZERO\nPUSH2\nJUMPI"];
block_1 [label="PUSH1\nDUP1\nREVERT"];
block_2 [label="JUMPDEST"];
block_3 [label="PUSH2\nDUP1\nPUSH2\nPUSH1\nCODECOPY\nPUSH1\nRETURN"];
block_4 [label="STOP"];
block_5 [label="PUSH1\nPUSH1\nMSTORE\nPUS... | 21 | 24 | 1.142857 |
pragma solidity >=0.4.22 <0.6.0; contract owned { address public owner; constructor(address _owner) public { owner = _owner; } modifier onlyOwner { require(msg.sender == owner); _; } function transferOwnership(address newOwner) onlyOwner public { owner = newOwner; } } contract MHPERC20 { // Public variables of the toke... | 608060405260043610610083576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806306fdde031461008857806318160ddd14610118578063313ce5671461014357806342966c681461017457806370a08231146101b957806395d89b4114610210578063a9059cbb146102a0575b600080fd5b34801561009457600080fd5b5061009d610305565b6040... | PUSH1 PUSH1 MSTORE PUSH1 CALLDATASIZE LT PUSH2 JUMPI PUSH1 CALLDATALOAD PUSH29 SWAP1 DIV PUSH4 AND DUP1 PUSH4 EQ PUSH2 JUMPI DUP1 PUSH4 EQ PUSH2 JUMPI DUP1 PUSH4 EQ PUSH2 JUMPI DUP1 PUSH4 EQ PUSH2 JUMPI DUP1 PUSH4 EQ PUSH2 JUMPI DUP1 PUSH4 EQ PUSH2 JUMPI DUP1 PUSH4 EQ PUSH2 JUMPI JUMPDEST PUSH1 DUP1 REVERT JUMPDEST CAL... | benign | 0 | {'blocks': [[{'address': 0, 'opcode': 'PUSH1', 'args': ''}, {'address': 1, 'opcode': 'PUSH1', 'args': ''}, {'address': 2, 'opcode': 'MSTORE', 'args': ''}, {'address': 3, 'opcode': 'PUSH1', 'args': ''}, {'address': 4, 'opcode': 'CALLDATASIZE', 'args': ''}, {'address': 5, 'opcode': 'LT', 'args': ''}, {'address': 6, 'opco... | [[0. 1. 1. ... 0. 0. 0.]
[0. 0. 1. ... 0. 0. 0.]
[0. 0. 0. ... 0. 0. 0.]
...
[0. 0. 0. ... 0. 1. 1.]
[0. 0. 0. ... 0. 0. 1.]
[0. 0. 0. ... 0. 0. 0.]] | digraph CFG {
rankdir=UD;
node [shape=box];
block_0 [label="PUSH1\nPUSH1\nMSTORE\nPUSH1\nCALLDATASIZE\nLT\nPUSH2\nJUMPI"];
block_1 [label="PUSH1\nCALLDATALOAD\nPUSH29\nSWAP1\nDIV\nPUSH4\nAND\nDUP1\nPUSH4\nEQ\nPUSH2\nJUMPI"];
block_2 [label="DUP1\nPUSH4\nEQ\nPUSH2\nJUMPI"];
block_3 [label="DUP1\nPUSH4\nEQ\nPUSH2\nJUMPI... | 128 | 158 | 1.234375 |
"pragma solidity ^0.4.21; // File: contracts/ownership/Ownable.sol /** * @title Ownable * @dev The O(...TRUNCATED) | "6060604052600436106100e6576000357c0100000000000000000000000000000000000000000000000000000000900463f(...TRUNCATED) | "PUSH1 PUSH1 MSTORE PUSH1 CALLDATASIZE LT PUSH2 JUMPI PUSH1 CALLDATALOAD PUSH29 SWAP1 DIV PUSH4 AND (...TRUNCATED) | benign | 0 | "{'blocks': [[{'address': 0, 'opcode': 'PUSH1', 'args': ''}, {'address': 1, 'opcode': 'PUSH1', 'args(...TRUNCATED) | "[[0. 1. 1. ... 0. 0. 0.]\n [0. 0. 1. ... 0. 0. 0.]\n [0. 0. 0. ... 0. 0. 0.]\n ...\n [0. 0. 0. ... (...TRUNCATED) | "digraph CFG {\nrankdir=UD;\nnode [shape=box];\n\nblock_0 [label=\"PUSH1\\nPUSH1\\nMSTORE\\nPUSH1\\n(...TRUNCATED) | 247 | 298 | 1.206478 |
"pragma solidity 0.4.15; // File: contracts/wallet/MultiSigWallet.sol /// @title Multisignature wall(...TRUNCATED) | "606060405234156200001057600080fd5b60405162002388380380620023888339810160405280805182019190602001805(...TRUNCATED) | "PUSH1 PUSH1 MSTORE CALLVALUE ISZERO PUSH3 JUMPI PUSH1 DUP1 REVERT JUMPDEST PUSH1 MLOAD PUSH3 CODESI(...TRUNCATED) | unchecked_calls | 1 | "{'blocks': [[{'address': 0, 'opcode': 'PUSH1', 'args': ''}, {'address': 1, 'opcode': 'PUSH1', 'args(...TRUNCATED) | "[[0. 1. 1. ... 0. 0. 0.]\n [0. 0. 1. ... 0. 0. 0.]\n [0. 0. 0. ... 0. 0. 0.]\n ...\n [0. 0. 0. ... (...TRUNCATED) | "digraph CFG {\nrankdir=UD;\nnode [shape=box];\n\nblock_0 [label=\"PUSH1\\nPUSH1\\nMSTORE\\nCALLVALU(...TRUNCATED) | 644 | 791 | 1.228261 |
"pragma solidity ^0.4.21; // File: zeppelin-solidity/contracts/ownership/Ownable.sol /** * @title Ow(...TRUNCATED) | "6080604052336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373fffffffffffff(...TRUNCATED) | "PUSH1 PUSH1 MSTORE CALLER PUSH1 DUP1 PUSH2 EXP DUP2 SLOAD DUP2 PUSH20 MUL NOT AND SWAP1 DUP4 PUSH20(...TRUNCATED) | unchecked_calls | 1 | "{'blocks': [[{'address': 0, 'opcode': 'PUSH1', 'args': ''}, {'address': 1, 'opcode': 'PUSH1', 'args(...TRUNCATED) | "[[0. 1. 0. ... 0. 0. 0.]\n [0. 0. 1. ... 0. 0. 0.]\n [0. 0. 0. ... 0. 0. 0.]\n ...\n [0. 0. 0. ... (...TRUNCATED) | "digraph CFG {\nrankdir=UD;\nnode [shape=box];\n\nblock_0 [label=\"PUSH1\\nPUSH1\\nMSTORE\\nCALLER\\(...TRUNCATED) | 67 | 77 | 1.149254 |
"pragma solidity ^0.4.13; contract Token { /// @return total amount of tokens function totalSupply()(...TRUNCATED) | "60606040526040805190810160405280600481526020017f48312e300000000000000000000000000000000000000000000(...TRUNCATED) | "PUSH1 PUSH1 MSTORE PUSH1 DUP1 MLOAD SWAP1 DUP2 ADD PUSH1 MSTORE DUP1 PUSH1 DUP2 MSTORE PUSH1 ADD PU(...TRUNCATED) | unchecked_calls | 1 | "{'blocks': [[{'address': 0, 'opcode': 'PUSH1', 'args': ''}, {'address': 1, 'opcode': 'PUSH1', 'args(...TRUNCATED) | "[[0. 1. 0. ... 0. 0. 0.]\n [0. 0. 1. ... 0. 0. 0.]\n [0. 0. 0. ... 0. 0. 0.]\n ...\n [0. 0. 0. ... (...TRUNCATED) | "digraph CFG {\nrankdir=UD;\nnode [shape=box];\n\nblock_0 [label=\"PUSH1\\nPUSH1\\nMSTORE\\nPUSH1\\n(...TRUNCATED) | 434 | 515 | 1.186636 |
"pragma solidity ^0.4.4; /// @title Multisignature wallet - Allows multiple parties to agree on tran(...TRUNCATED) | "606060405234156200001057600080fd5b6040516200227f3803806200227f8339810160405280805182019190602001805(...TRUNCATED) | "PUSH1 PUSH1 MSTORE CALLVALUE ISZERO PUSH3 JUMPI PUSH1 DUP1 REVERT JUMPDEST PUSH1 MLOAD PUSH3 CODESI(...TRUNCATED) | unchecked_calls | 1 | "{'blocks': [[{'address': 0, 'opcode': 'PUSH1', 'args': ''}, {'address': 1, 'opcode': 'PUSH1', 'args(...TRUNCATED) | "[[0. 1. 1. ... 0. 0. 0.]\n [0. 0. 1. ... 0. 0. 0.]\n [0. 0. 0. ... 0. 0. 0.]\n ...\n [0. 0. 0. ... (...TRUNCATED) | "digraph CFG {\nrankdir=UD;\nnode [shape=box];\n\nblock_0 [label=\"PUSH1\\nPUSH1\\nMSTORE\\nCALLVALU(...TRUNCATED) | 569 | 714 | 1.254833 |
"contract SafeMath { //internals function safeMul(uint a, uint b) internal returns (uint) { uint c =(...TRUNCATED) | "6080604052600436106101b7576000357c0100000000000000000000000000000000000000000000000000000000900463f(...TRUNCATED) | "PUSH1 PUSH1 MSTORE PUSH1 CALLDATASIZE LT PUSH2 JUMPI PUSH1 CALLDATALOAD PUSH29 SWAP1 DIV PUSH4 AND (...TRUNCATED) | benign | 0 | "{'blocks': [[{'address': 0, 'opcode': 'PUSH1', 'args': ''}, {'address': 1, 'opcode': 'PUSH1', 'args(...TRUNCATED) | "[[0. 1. 1. ... 0. 0. 0.]\n [0. 0. 1. ... 0. 0. 0.]\n [0. 0. 0. ... 0. 0. 0.]\n ...\n [0. 0. 0. ... (...TRUNCATED) | "digraph CFG {\nrankdir=UD;\nnode [shape=box];\n\nblock_0 [label=\"PUSH1\\nPUSH1\\nMSTORE\\nPUSH1\\n(...TRUNCATED) | 569 | 700 | 1.230228 |
End of preview. Expand in Data Studio
SmartUecDB
Description
SmartUecDB is a specialized, multimodal dataset designed for the high-fidelity detection of vulnerabilities in smart contract bytecode, with a primary focus on identifying unchecked external calls. The dataset curates a robust corpus of EVM-compatible execution traces and structural graph representations, enabling the training of Graph Neural Networks (GNN) to pinpoint insecure dispatch patterns and reentrancy vectors.
Usage
You can start by downloading the primary dataset folder:
import os
import requests
import tarfile
import shutil
FILE = "data.tar"
url = f"https://huggingface.co/datasets/Adson59/SmartUecDB/resolve/main/{FILE}"
def download_dataset(url, filename):
response = requests.get(url)
if response.status_code == 200:
with open(filename, 'wb') as f:
f.write(response.content)
print(f"Successfully downloaded {filename}")
else:
print(f"Failed to download. Status code: {response.status_code}")
download_dataset(url, FILE)
with tarfile.open("data.tar", 'r') as tar:
tar.extractall(".")
Structure
The following is the standard directory structure for the dataset, organized to support modular GNN training and inference pipelines:
SmartUecDB/
├── processed/ # cleaned and prepared rows
├── raw/ # original rows collected from the smartmaldb
├── split/ # Train/validation/test splits defined for reproducible model benchmarking
Citation
If you use this dataset, cite:
@misc{smartuecdb25,
author = {B. William},
title = {SmartUecDB},
year = {2026},
publisher = {Hugging Face},
url= {https://huggingface.co/datasets/Adson59/SmartUecDB},
}
license: cc-by-4.0
- Downloads last month
- 48