contract_name stringlengths 1 100 | contract_address stringlengths 42 42 | language stringclasses 2
values | source_code stringlengths 0 1.24M | abi stringlengths 2 59.6k | compiler_version stringlengths 11 42 | optimization_used bool 2
classes | runs int64 0 1B | constructor_arguments stringlengths 0 60.2k | evm_version stringclasses 8
values | library stringlengths 0 510 | license_type stringclasses 14
values | proxy bool 2
classes | implementation stringlengths 0 42 | swarm_source stringlengths 0 71 | solidetector stringlengths 2 3.89k ⌀ | slither stringlengths 2 4.49M ⌀ | oyente stringlengths 2 8.17k ⌀ | smartcheck stringlengths 2 78.6k ⌀ | __index_level_0__ int64 0 137k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
UserWallet | 0x84dabbb8999f508ce1cbb7057d260c74c6c9815c | Solidity | pragma solidity ^0.4.10;
// Copyright 2017 Bittrex
contract AbstractSweeper {
function sweep(address token, uint amount) returns (bool);
function () { throw; }
Controller controller;
function AbstractSweeper(address _controller) {
controller = Controller(_controller);
}
... | [{"constant":false,"inputs":[{"name":"_token","type":"address"},{"name":"_amount","type":"uint256"}],"name":"sweep","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_value","type":"uint256"},{"name":"_data","type":"bytes"}],"... | v0.4.11+commit.68ef5810 | true | 200 | 000000000000000000000000a3C1E324CA1ce40db73eD6026c4A177F099B5770 | Default | false | bzzr://4cdd69fdcf3cf6cbee9677fe380fa5f044048aa9e060ec5619a21ca5a5bd4cd1 | [{"defect": "Unchecked_send", "type": "Function_call", "severity": "High", "lines": ["88"]}, {"defect": "Frozen_Ether", "type": "Code_specification", "severity": "Medium", "lines": ["71"]}, {"defect": "Erroneous_constructor_name", "type": "Access_control", "severity": "Medium", "lines": ["23"]}, {"defect": "Exceed_auth... | [{"check": "controlled-delegatecall", "impact": "High", "confidence": "Medium", "lines": {"UserWallet.sol": [88]}}, {"check": "deprecated-standards", "impact": "Informational", "confidence": "High", "lines": {"UserWallet.sol": [118]}}, {"check": "deprecated-standards", "impact": "Informational", "confidence": "High", "... | null | [{"rule": "SOLIDITY_DEPRECATED_CONSTRUCTIONS", "line": 8, "severity": 1}, {"rule": "SOLIDITY_DEPRECATED_CONSTRUCTIONS", "line": 17, "severity": 1}, {"rule": "SOLIDITY_DEPRECATED_CONSTRUCTIONS", "line": 18, "severity": 1}, {"rule": "SOLIDITY_DEPRECATED_CONSTRUCTIONS", "line": 108, "severity": 1}, {"rule": "SOLIDITY_DEPR... | 0 | |||
Forwarder | 0x17be21ab0d0a5255d5cd4ce387f42d95b81f88ea | Solidity | pragma solidity ^0.4.14;
/**
* Contract that exposes the needed erc20 token functions
*/
contract ERC20Interface {
// Send _value amount of tokens to address _to
function transfer(address _to, uint256 _value) returns (bool success);
// Get the account balance of another account with address _owner
... | [{"constant":true,"inputs":[],"name":"parentAddress","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"tokenContractAddress","type":"address"}],"name":"flushTokens","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"flush"... | v0.4.16-nightly.2017.8.11+commit.c84de7fa | true | 200 | Default | false | bzzr://d0f8838ba17108a895d34ae8ef3bff4e0dc9d639c3c51921fee1d17eaa803721 | [{"defect": "Erroneous_constructor_name", "type": "Access_control", "severity": "Medium", "lines": ["7"]}, {"defect": "Unused_state_variable", "type": "Code_specification", "severity": "Low", "lines": ["111"]}, {"defect": "Integer_overflow_and_underflow", "type": "Code_specification", "severity": "High", "lines": ["303... | [{"check": "arbitrary-send", "impact": "High", "confidence": "Medium", "lines": {"Forwarder.sol": [76]}}, {"check": "assembly", "impact": "Informational", "confidence": "High", "lines": {"Forwarder.sol": [297, 298, 299, 300, 301, 302]}}, {"check": "deprecated-standards", "impact": "Informational", "confidence": "High",... | null | [{"rule": "SOLIDITY_CALL_WITHOUT_DATA", "line": 76, "severity": 2}, {"rule": "SOLIDITY_DEPRECATED_CONSTRUCTIONS", "line": 172, "severity": 1}, {"rule": "SOLIDITY_DEPRECATED_CONSTRUCTIONS", "line": 198, "severity": 1}, {"rule": "SOLIDITY_DEPRECATED_CONSTRUCTIONS", "line": 39, "severity": 1}, {"rule": "SOLIDITY_DEPRECATE... | 1 | ||||
OwnableDelegateProxy | 0x1994c717ec123fe2830399fe4f0f3054c8e69ebc | Solidity | contract OwnedUpgradeabilityStorage {
// Current implementation
address internal _implementation;
// Owner of the contract
address private _upgradeabilityOwner;
/**
* @dev Tells the address of the owner
* @return the address of the owner
*/
function upgradeabilityOwner() public view ... | [{"constant":true,"inputs":[],"name":"proxyOwner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"implementation","type":"address"}],"name":"upgradeTo","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}... | v0.4.23+commit.124ca40d | true | 200 | 00000000000000000000000074451193ccf4d1c9182c973538d9d2339350ee1a000000000000000000000000f9e266af4bca5890e2781812cc6a6e89495a79f200000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000044485cc95500000000000000000000000074451193ccf4d1c9182c973538d9d233... | Default | MIT | false | bzzr://5f26049bbc794226b505f589b2ee1130db54310d79dd8a635c6f6c61e305a777 | [{"defect": "DelegateCall", "type": "Function_call", "severity": "High", "lines": ["146", "158"]}, {"defect": "Frozen_Ether", "type": "Code_specification", "severity": "Medium", "lines": ["43"]}, {"defect": "Exceed_authority_access", "type": "Access_control", "severity": "Medium", "lines": ["111", "9", "119"]}] | [{"check": "assembly", "impact": "Informational", "confidence": "High", "lines": {"OwnableDelegateProxy.sol": [65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76]}}, {"check": "external-function", "impact": "Optimization", "confidence": "High", "lines": {"OwnableDelegateProxy.sol": [55]}}, {"check": "external-function", "i... | null | null | 2 | ||
Proxy | 0xeb623971dac04d3ac48dd97583dda06808fc691a | Solidity | pragma solidity ^0.5.3;
/// @title Proxy - Generic proxy contract allows to execute all transactions applying the code of a master contract.
/// @author Stefan George - <stefan@gnosis.io>
/// @author Richard Meissner - <richard@gnosis.io>
contract Proxy {
// masterCopy always needs to be first declared var... | [{"inputs":[{"internalType":"address","name":"_masterCopy","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"}] | v0.5.14+commit.1f1aaa4 | false | 200 | 00000000000000000000000034cfac646f301356faa8b21e94227e3583fe3f5f | Default | MIT | false | bzzr://d8a00dc4fe6bf675a9d7416fc2d00bb3433362aa8186b750f76c4027269667ff | [{"defect": "Frozen_Ether", "type": "Code_specification", "severity": "Medium", "lines": ["6"]}] | [{"check": "assembly", "impact": "Informational", "confidence": "High", "lines": {"Proxy.sol": [32, 33, 34, 35, 36, 37, 38, 39, 27, 28, 29, 30, 31]}}, {"check": "solc-version", "impact": "Informational", "confidence": "High", "lines": {"Proxy.sol": [1]}}, {"check": "solc-version", "impact": "Informational", "confidence... | null | [{"rule": "SOLIDITY_LOCKED_MONEY", "line": 6, "severity": 3}, {"rule": "SOLIDITY_PRAGMAS_VERSION", "line": 1, "severity": 1}, {"rule": "SOLIDITY_USING_INLINE_ASSEMBLY", "line": 27, "severity": 1}] | 3 | ||
GnosisSafeProxy | 0x7ce3eb23e26675fbb2596455440ffd7034e70954 | Solidity | // SPDX-License-Identifier: LGPL-3.0-only
pragma solidity >=0.7.0 <0.9.0;
/// @title IProxy - Helper interface to access masterCopy of the Proxy on-chain
/// @author Richard Meissner - <richard@gnosis.io>
interface IProxy {
function masterCopy() external view returns (address);
}
/// @title GnosisSafePro... | [{"inputs":[{"internalType":"address","name":"_singleton","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"stateMutability":"payable","type":"fallback"}] | v0.7.6+commit.7338295f | false | 200 | 000000000000000000000000d9Db270c1B5E3Bd161E8c8503c55cEABeE709552 | Default | GNU LGPLv3 | false | ipfs://d1429297349653a4918076d650332de1a1068c5f3e07c5c82360c277770b9552 | [{"defect": "Frozen_Ether", "type": "Code_specification", "severity": "Medium", "lines": ["13"]}, {"defect": "Erroneous_constructor_name", "type": "Access_control", "severity": "Medium", "lines": ["48"]}, {"defect": "Unused_state_variable", "type": "Code_specification", "severity": "Low", "lines": ["88"]}] | [{"check": "assembly", "impact": "Informational", "confidence": "High", "lines": {"GnosisSafeProxy.sol": [90, 91, 92]}}, {"check": "assembly", "impact": "Informational", "confidence": "High", "lines": {"GnosisSafeProxy.sol": [32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 28, 29, 30, 31]}}, {"check": "assembly", "impact":... | null | [{"rule": "SOLIDITY_FUNCTIONS_RETURNS_TYPE_AND_NO_RETURN", "line": 81, "severity": 1}, {"rule": "SOLIDITY_PRAGMAS_VERSION", "line": 2, "severity": 1}, {"rule": "SOLIDITY_PRAGMAS_VERSION", "line": 2, "severity": 1}, {"rule": "SOLIDITY_USING_INLINE_ASSEMBLY", "line": 58, "severity": 1}, {"rule": "SOLIDITY_USING_INLINE_AS... | 4 | ||
Forwarder | 0x14bee40a811044821e8b546e7c8de502c4f7c90e | Solidity | pragma solidity 0.7.5;
/*
The MIT License (MIT)
Copyright (c) 2018 Murray Software, LLC.
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
... | [{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"}],"name":"ForwarderDeposited","type":"event"},{"stateMutability":"payabl... | v0.7.5+commit.eb77ed08 | false | 200 | Default | Apache-2.0 | false | ipfs://934a7b5f246917d20f5e049b9344e4f3d923110c9d150ea2a4118848dd414bc3 | [{"defect": "Frozen_Ether", "type": "Code_specification", "severity": "Medium", "lines": ["171"]}, {"defect": "Erroneous_constructor_name", "type": "Access_control", "severity": "Medium", "lines": ["171"]}, {"defect": "Unused_state_variable", "type": "Code_specification", "severity": "Low", "lines": ["31", "68", "274"]... | [{"check": "arbitrary-send", "impact": "High", "confidence": "Medium", "lines": {"Forwarder.sol": [255]}}, {"check": "arbitrary-send", "impact": "High", "confidence": "Medium", "lines": {"Forwarder.sol": [187]}}, {"check": "assembly", "impact": "Informational", "confidence": "High", "lines": {"Forwarder.sol": [69, 70, ... | null | [{"rule": "SOLIDITY_ADDRESS_HARDCODED", "line": 126, "severity": 1}, {"rule": "SOLIDITY_ADDRESS_HARDCODED", "line": 139, "severity": 1}, {"rule": "SOLIDITY_ADDRESS_HARDCODED", "line": 153, "severity": 1}, {"rule": "SOLIDITY_ADDRESS_HARDCODED", "line": 208, "severity": 1}, {"rule": "SOLIDITY_UNCHECKED_CALL", "line": 126... | 5 | |||
DSProxy | 0x980cfcab781f1e6b1ea7c6a58097d8c6734a0de8 | Solidity | // proxy.sol - execute actions atomically through the proxy's identity
// Copyright (C) 2017 DappHub, LLC
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the Lice... | [{"constant":false,"inputs":[{"name":"owner_","type":"address"}],"name":"setOwner","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_target","type":"address"},{"name":"_data","type":"bytes"}],"name":"execute","outputs":[{"name":"response","type":"bytes3... | v0.4.23+commit.124ca40d | true | 200 | 000000000000000000000000271293c67e2d3140a0e9381eff1f9b01e07b0795 | Default | false | bzzr://e498874c9ba9e75028e0c84f1b1d83b2dad5de910c59b837b32e5a190794c5e1 | [{"defect": "Frozen_Ether", "type": "Code_specification", "severity": "Medium", "lines": ["104"]}, {"defect": "Erroneous_constructor_name", "type": "Access_control", "severity": "Medium", "lines": ["166", "20", "196"]}, {"defect": "Exceed_authority_access", "type": "Access_control", "severity": "Medium", "lines": ["40"... | [{"check": "assembly", "impact": "Informational", "confidence": "High", "lines": {"DSProxy.sol": [139, 140, 141, 142, 143, 144, 145, 146, 147, 148]}}, {"check": "assembly", "impact": "Informational", "confidence": "High", "lines": {"DSProxy.sol": [205, 206, 207, 208, 209, 210, 211, 212, 213]}}, {"check": "external-func... | [{"error": "Integer Overflow.", "line": 129, "level": "Warning"}, {"error": "Integer Overflow.", "line": 115, "level": "Warning"}, {"error": "Integer Overflow.", "line": 199, "level": "Warning"}, {"error": "Integer Overflow.", "line": 204, "level": "Warning"}] | [{"rule": "SOLIDITY_FUNCTIONS_RETURNS_TYPE_AND_NO_RETURN", "line": 129, "severity": 1}, {"rule": "SOLIDITY_FUNCTIONS_RETURNS_TYPE_AND_NO_RETURN", "line": 204, "severity": 1}, {"rule": "SOLIDITY_LOCKED_MONEY", "line": 104, "severity": 3}, {"rule": "SOLIDITY_PRAGMAS_VERSION", "line": 18, "severity": 1}, {"rule": "SOLIDIT... | 6 | |||
ReversibleDemo | 0xf24b424fe9aeb87baad995aa807decae29bf91c2 | Solidity | // `interface` would make a nice keyword ;)
contract TheDaoHardForkOracle {
// `ran()` manually verified true on both ETH and ETC chains
function forked() constant returns (bool);
}
// demostrates calling own function in a "reversible" manner
/* important lines are marked by multi-line comments */
cont... | [{"constant":true,"inputs":[],"name":"numsuccesses","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":true,"inputs":[],"name":"numfails","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":true,"inputs":[],"name":"numcalls","outputs":[{"name":"","type":"uint256"}],"type":"funct... | v0.3.5-2016-08-07-f7af7de | true | 200 | Default | false | [{"defect": "Unchecked_send", "type": "Function_call", "severity": "High", "lines": ["42"]}, {"defect": "Erroneous_constructor_name", "type": "Access_control", "severity": "Medium", "lines": ["2"]}, {"defect": "Unused_state_variable", "type": "Code_specification", "severity": "Low", "lines": ["12"]}, {"defect": "Exceed... | null | null | null | 7 | |||||
USDOGE | 0xcdb8ceabf7f5ca49039404f6a20f54421aca983e | Solidity | /*
*/
// SPDX-License-Identifier: MIT
pragma solidity >=0.5.0 <0.8.0;
abstract contract Context {
function _msgSender() internal view virtual returns (address payable) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes memory) {
this; // silence ... | [{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"ow... | v0.7.3+commit.9bfce1f6 | true | 200 | 000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000314dc6448d9338c15b0a00000000000000000000000000000000000000000000000000000000000000000000000d416d65726963616e20446f676500000000000000000000000000000000000000... | Default | MIT | false | ipfs://121516d17af92dafa3dc013dc4b17a9775e25e0efa479afa06727954b2554f48 | [{"defect": "Uninitialized_storage", "type": "Code_specification", "severity": "Low", "lines": ["355", "319", "370", "245"]}, {"defect": "Exceed_authority_access", "type": "Access_control", "severity": "Medium", "lines": ["202", "179", "197"]}, {"defect": "Dependency_of_timestamp", "type": "Business_logic", "severity":... | [{"check": "assembly", "impact": "Informational", "confidence": "High", "lines": {"USDOGE.sol": [27]}}, {"check": "assembly", "impact": "Informational", "confidence": "High", "lines": {"USDOGE.sol": [72, 69, 70, 71]}}, {"check": "boolean-equal", "impact": "Informational", "confidence": "High", "lines": {"USDOGE.sol": [... | null | [{"rule": "SOLIDITY_ADDRESS_HARDCODED", "line": 199, "severity": 1}, {"rule": "SOLIDITY_ERC20_APPROVE", "line": 265, "severity": 2}, {"rule": "SOLIDITY_LOCKED_MONEY", "line": 143, "severity": 3}, {"rule": "SOLIDITY_PRAGMAS_VERSION", "line": 6, "severity": 1}, {"rule": "SOLIDITY_PRAGMAS_VERSION", "line": 6, "severity": ... | 8 | ||
MethodVaultV2 | 0x6401e2ff943722e8583d0f7b99987e7b39f9cc75 | Solidity | "// File: contracts/methodNFT/MethodVaultV2.sol\n\n\n\n// SPDX-License-Identifier: GPL-3.0-only\npra(...TRUNCATED) | "[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"operat(...TRUNCATED) | v0.7.6+commit.7338295f | true | 1,000 | Default | false | null | "[{\"check\": \"pragma\", \"impact\": \"Informational\", \"confidence\": \"High\", \"lines\": {\"@op(...TRUNCATED) | null | "[{\"rule\": \"SOLIDITY_ADDRESS_HARDCODED\", \"line\": 1170, \"severity\": 1}, {\"rule\": \"SOLIDITY(...TRUNCATED) | 9 |
End of preview. Expand in Data Studio
No dataset card yet
- Downloads last month
- 15