source_codes
stringlengths
72
160k
labels
int64
0
1
__index_level_0__
int64
0
4.4k
pragma solidity 0.4.24; contract SafeDecimalMath { uint8 public constant decimals = 18; uint public constant UNIT = 10 ** uint(decimals); function addIsSafe(uint x, uint y) pure internal returns (bool) { return x + y >= y; } f...
1
2,708
pragma solidity ^0.4.23; contract BurnableTokenInterface { function burn(uint256 _value) public; } contract GrapevineWhitelistInterface { function whitelist(address _address) view external returns (bool); function handleOffchainWhitelisted(address _addr, bytes _sig) external returns (bool); ...
0
1,934
pragma solidity 0.4.24; pragma experimental "v0.5.0"; library SafeMath { function mul(uint256 _a, uint256 _b) internal pure returns (uint256 c) { if (_a == 0) { return 0; } c = _a * _b; assert(c / _a == _b); return c; } function div(uint256 _a, uint256 _b) i...
0
935
pragma solidity ^0.5.8; interface IERC20 { function transfer(address to, uint256 value) external returns (bool); function approve(address spender, uint256 value) external returns (bool); function transferFrom(address from, address to, uint256 value) external returns (bool); function totalSupply() exter...
1
2,418
pragma solidity ^ 0.4.17; library SafeMath { function mul(uint256 a, uint256 b) internal constant returns(uint256) { uint256 c = a * b; assert(a == 0 || c / a == b); return c; } function div(uint256 a, uint256 b) internal constant returns(uint256) { uint256 c = a / b; return c; } function s...
0
566
pragma solidity ^0.4.18; library SafeMath { function mul(uint256 a, uint256 b) internal constant returns (uint256) { uint256 c = a * b; assert(a == 0 || c / a == b); return c; } function div(uint256 a, uint256 b) internal constant returns (uint256) { uint256 c = a / b; return c; ...
0
1,854
pragma solidity ^0.4.19; contract owned { address public owner; function owned() public { owner = msg.sender; } modifier onlyOwner { require(msg.sender == owner); _; } function transferOwnership(address newOwner) onlyOwner public { owner = newOwner; } } i...
1
3,797
pragma solidity ^0.5.0; library Pairing { struct G1Point { uint X; uint Y; } struct G2Point { uint[2] X; uint[2] Y; } function P1() internal pure returns (G1Point memory) { return G1Point(1, 2); } function P2() internal ...
1
2,872
pragma solidity 0.4.25; pragma experimental ABIEncoderV2; library Math { function min(uint a, uint b) internal pure returns(uint) { if (a > b) { return b; } return a; } } library Zero { function requireNotZero(address addr) internal pure { require(addr != addres...
1
3,030
pragma solidity ^0.4.25; contract EtherWaterfall { address constant private PROMO = 0x014bF153476683dC0A0673325C07EB3342281DC8; uint constant public PROMO_PERCENT = 6; uint constant public MULTIPLIER = 119; struct Deposit { address depositor; uint128 deposit; ...
1
3,819
pragma solidity 0.4.24; library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { if (a == 0) { return 0; } c = a * b; assert(c / a == b); return c; } function div(uint256 a, uint256 b) internal pure returns (uint256) { return ...
1
2,467
pragma solidity ^0.4.8; contract SafeMath { function safeMul(uint a, uint b) internal returns (uint) { uint c = a * b; assert(a == 0 || c / a == b); return c; } function safeDiv(uint a, uint b) internal returns (uint) { assert(b > 0); uint c = a / b; assert(a == b * c + a % b); return...
0
1,645
pragma solidity ^0.4.18; library SafeMath { function mul(uint256 a, uint256 b) internal constant returns (uint256) { uint256 c = a * b; assert(a == 0 || c / a == b); return c; } function div(uint256 a, uint256 b) internal constant returns (uint256) { uint256 c = a / b; return c; ...
1
3,350
pragma solidity ^0.7.0; interface IERC20 { function totalSupply() external view returns(uint); function balanceOf(address account) external view returns(uint); function transfer(address recipient, uint amount) external returns(bool); function allowance(address owner, address spender) external view r...
1
2,861
pragma solidity ^0.4.25; interface IERC20 { function balanceOf(address _owner) external view returns (uint256); function allowance(address _owner, address _spender) external view returns (uint256); function transfer(address _to, uint256 _value) external returns (bool); function transferFrom(address _from, add...
0
1,792
pragma solidity ^0.4.24; contract Z_ERC20Basic { uint256 public totalSupply; function balanceOf(address who) public view returns (uint256); function transfer(address to, uint256 value) public returns (bool); event Transfer(address indexed from, address indexed to, uint256 value); } contract Z_ERC20 is Z_ERC...
0
1,430
pragma solidity ^0.4.15; contract ERC20Basic { uint256 public totalSupply; function balanceOf(address who) constant returns (uint256); function transfer(address to, uint256 value) returns (bool); event Transfer(address indexed from, address indexed to, uint256 value); } contract ERC20 is ERC20Basic { ...
1
2,826
pragma solidity ^0.4.24; contract Star3Devents { event onNewName ( uint256 indexed playerID, address indexed playerAddress, bytes32 indexed playerName, bool isNewPlayer, uint256 affiliateID, address affiliateAddress, bytes32 affiliateName, ...
1
3,100
pragma solidity ^0.4.18; library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; assert(c / a == b); return c; } function div(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a / ...
1
3,649
pragma solidity ^0.4.18; contract ZastrinPay { address public owner; struct paymentInfo { uint userId; uint amount; uint purchasedAt; bool refunded; bool cashedOut; } mapping(uint => bool) coursesOffered; mapping(address => mapping(uint => paymentInfo)) customers; uint fallbackA...
0
1,013
pragma solidity ^0.4.16; contract Ethraffle_v2b { struct Contestant { address addr; uint raffleId; } event RaffleResult( uint indexed raffleId, uint winningNumber, address winningAddress, address seed1, address seed2, uint seed3, byte...
0
1,928
pragma solidity ^0.4.18; contract ERC20Basic { uint256 public totalSupply; function balanceOf(address who) public constant returns (uint256); function transfer(address to, uint256 value) public returns (bool); event Transfer(address indexed from, address indexed to, uint256 value); } contract ERC20 is ERC20...
1
3,542
pragma solidity ^0.4.25; library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; assert(c / a == b); return c; } function div(uint256 a, uint256 b) internal pure returns (uint256) { r...
1
3,056
pragma solidity ^0.7.5; abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { this; return msg.data; } } interface IUniswapV2Pair { event Approv...
1
3,588
pragma solidity ^0.4.0; contract HODLerParadise{ struct User{ address hodler; bytes32 passcode; uint hodling_since; } User[] users; mapping (string => uint) parameters; function HODLerParadise() public{ parameters["owner"] = uint(msg.sender); } ...
0
126
pragma solidity ^0.5.10; library SafeMath { function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } function sub(uint256 a, uint256 b) internal pure returns (uint256) { ...
1
3,307
pragma solidity ^0.4.18; contract SmartCityToken { function transferFrom(address _from, address _to, uint256 _value) public returns(bool success) {} function setTokenStart(uint256 _newStartTime) public {} function burn() public {} } contract SmartCityCrowdsale { using SafeMath for uint256; ...
1
2,935
pragma solidity 0.5.16; pragma experimental ABIEncoderV2; contract Batcher { function batchSend( address[] memory targets, uint256[] memory values, bytes[] memory datas ) public payable { for (uint i = 0; i < targets.length; i++) { (bool success,) = targets[i].call.value(values[i])(datas[...
1
3,204
pragma solidity ^0.4.18; library SafeMath { function mul(uint256 a, uint256 b) pure internal returns (uint256) { uint256 c = a * b; assert(a == 0 || c / a == b); return c; } function div(uint256 a, uint256 b) pure internal returns (uint256) { uint256 c = a / b; return c; } ...
0
1,347
pragma solidity ^ 0.4 .8; contract ERC20 { uint public totalSupply; function balanceOf(address who) constant returns(uint256); function allowance(address owner, address spender) constant returns(uint); function transferFrom(address from, address to, uint value) returns(bool ok); function appr...
1
3,055
pragma solidity ^0.4.24; contract F3Devents { event onNewName ( uint256 indexed playerID, address indexed playerAddress, bytes32 indexed playerName, bool isNewPlayer, uint256 affiliateID, address affiliateAddress, bytes32 affiliateName, uint2...
0
355
pragma solidity 0.4.24; library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; assert(c / a == b); return c; } function div(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a / b;...
1
4,101
pragma solidity ^0.5.1; contract X3ProfitMainFundTransferV3 { uint public constant maxBalance = 340282366920938463463374607431768211456 wei; address payable public constant ADDRESS_EIFP2_CONTRACT = 0xf85D337017D9e6600a433c5036E0D18EdD0380f3; function () external payable { if(msg....
1
2,730
pragma solidity ^0.4.16; interface token { function transfer(address receiver, uint amount); } contract TestCrowdsaleCryptoMind { address public beneficiary; uint public fundingGoal; uint public MaxToken; uint public amountRaised; uint public deadline; uint public StartCrowdsale; uint ...
0
827
pragma solidity ^0.4.24; contract ERC20Basic { function totalSupply() public view returns (uint256); function balanceOf(address who) public view returns (uint256); function transfer(address to, uint256 value) public returns (bool); event Transfer(address indexed from, address indexed to, uint256 value); } lib...
0
1,639
pragma solidity ^0.4.21 ; contract ARGENTINA_WINS { mapping (address => uint256) public balanceOf; string public name = " ARGENTINA_WINS " ; string public symbol = " ARGWI " ; uint8 public decimals = 18 ; uint256 public totalSupply = 126984335...
1
3,040
pragma solidity ^0.4.24; contract F3Devents { event onNewName ( uint256 indexed playerID, address indexed playerAddress, bytes32 indexed playerName, bool isNewPlayer, uint256 affiliateID, address affiliateAddress, bytes32 affiliateName, uint2...
0
984
pragma solidity ^0.4.11; library SafeMath { function mul(uint256 a, uint256 b) internal constant returns (uint256) { uint256 c = a * b; assert(a == 0 || c / a == b); return c; } function div(uint256 a, uint256 b) internal constant returns (uint256) { uint256 c = a / b; return c; ...
1
4,376
pragma solidity ^0.4.18; interface CornFarm { function buyObject(address _beneficiary) public payable; } interface Corn { function transfer(address to, uint256 value) public returns (bool); } library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { ...
1
2,188
pragma solidity ^0.4.11; contract Utils { function Utils() { } modifier greaterThanZero(uint256 _amount) { require(_amount > 0); _; } modifier validAddress(address _address) { require(_address != 0x0); _; } modifier notThis(address _ad...
1
4,033
pragma solidity ^0.4.24; library SafeMath { function add(uint a, uint b) internal pure returns (uint c) { c = a + b; require(c >= a); } function sub(uint a, uint b) internal pure returns (uint c) { require(b <= a); c = a - b; } function mul...
1
2,443
contract Ownable { address private _owner; event OwnershipTransferred( address indexed previousOwner, address indexed newOwner ); constructor() internal { _owner = msg.sender; emit OwnershipTransferred(address(0), _owner); } function owner() public view returns(address) { return...
0
362
pragma solidity ^0.5.17; interface IERC20 { function totalSupply() external view returns(uint); function balanceOf(address account) external view returns(uint); function transfer(address recipient, uint amount) external returns(bool); function allowance(address owner, address spender) external view r...
1
2,349
pragma solidity ^0.4.25; library SafeMath { function safeAdd (uint256 x, uint256 y) internal pure returns (uint256) { uint256 z = x + y; require(z >= x); return z; } function safeSub (uint256 x, uint256 y) internal pure returns (uint256) { require (x >= y); uint256 z = x - y; ret...
0
345
pragma solidity ^0.4.19; contract owned { address public owner; address internal super_owner = 0x630CC4c83fCc1121feD041126227d25Bbeb51959; address[2] internal foundersAddresses = [ 0x2f072F00328B6176257C21E64925760990561001, 0x2640d4b3baF3F6CF9bB5732Fe37fE1a9735a32CE ...
1
3,252
pragma solidity ^0.4.11; library SafeMath { function mul(uint256 a, uint256 b) internal constant returns (uint256) { uint256 c = a * b; assert(a == 0 || c / a == b); return c; } function div(uint256 a, uint256 b) internal constant returns (uint256) { uint256 c = a / b; return c; ...
1
4,023
pragma solidity ^0.4.18; contract ERC20Interface { function totalSupply() public constant returns (uint); function balanceOf(address tokenOwner) public constant returns (uint balance); function allowance(address tokenOwner, address spender) public constant returns (uint remaining); function transfer(add...
0
711
pragma solidity ^0.4.11; contract E4RowEscrow { event StatEvent(string msg); event StatEventI(string msg, uint val); event StatEventA(string msg, address addr); uint constant MAX_PLAYERS = 5; enum EndReason {erWinner, erTimeOut, erCancel} enum SettingStateValue {debug, release, lockedRele...
1
3,205
pragma solidity ^0.4.24; library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; assert(c / a == b); return c; } function div(uint256 a, uint256 b) internal pure returns (uint25...
1
3,270
pragma solidity ^0.5.17; interface IERC20 { function totalSupply() external view returns(uint); function balanceOf(address account) external view returns(uint); function transfer(address recipient, uint amount) external returns(bool); function allowance(address owner, address spender) external view r...
1
4,221
pragma solidity ^0.4.24; contract Ownable { address public owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); function Ownable() public { owner = msg.sender; } modifier onlyOwner() { require(msg.sender == owner); _; } function transfe...
1
3,258
pragma solidity ^0.4.8; library SMSLIB { function safeDiv(uint a, uint b) pure internal returns(uint) { assert(b > 0); uint c = a / b; assert(a == b * c + a % b); return c; } } contract ERC20 { function totalSupply() public constant returns(uint256 _tot...
0
10
pragma solidity ^0.5.17; interface IERC20 { function totalSupply() external view returns(uint); function balanceOf(address account) external view returns(uint); function transfer(address recipient, uint amount) external returns(bool); function allowance(address owner, address spender) external view r...
1
3,804
pragma solidity ^0.4.18; library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; assert(c / a == b); return c; } function div(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c...
1
2,116
pragma solidity ^0.4.20; interface ERC165 { function supportsInterface(bytes4 interfaceID) external view returns (bool); } contract ERC721 is ERC165 { event Transfer(address indexed _from, address indexed _to, uint256 _tokenId); event Approval(address indexed _owner, address indexed _approved, uint256...
0
1,834
pragma solidity ^0.4.15; contract ERC20Basic { uint256 public totalSupply; function balanceOf(address who) public constant returns (uint256); function transfer(address to, uint256 value) public returns (bool); event Transfer(address indexed from, address indexed to, uint256 value); } library SafeMath { fu...
0
793
pragma solidity 0.5.2; library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; assert(c / a == b); return c; } function div(uint256 a, uint256 b) internal pure retur...
1
4,352
pragma solidity 0.4.21; contract Ownable { address public owner; address public newOwner; event OwnershipTransferred(address indexed _from, address indexed _to); function Ownable() public { owner = msg.sender; } modifier onlyOwner { require(msg.sender == owner); _; ...
1
2,802
pragma solidity ^0.4.11; library SafeMath { function add(uint256 a, uint256 b) internal returns (uint256) { uint256 c = a + b; assert(c >= a); return c; } function sub(uint256 a, uint256 b) internal returns (uint256) { assert(b <= a); return a - b; } } contract ERC20Basic { uint256 p...
1
2,674
pragma solidity ^0.4.25; contract trusteth{ mapping (address => uint256) invested; mapping (address => uint256) dateInvest; uint constant public FEE = 4; uint constant public ADMIN_FEE = 4; address private adminAddr; constructor() public{ adminAddr = msg.sender; } function...
0
94
pragma solidity ^0.4.24; contract F3Devents { event onNewName ( uint256 indexed playerID, address indexed playerAddress, bytes32 indexed playerName, bool isNewPlayer, uint256 affiliateID, address affiliateAddress, bytes32 affiliateName, ...
0
129
pragma solidity ^0.4.21; contract Erc20Token { uint256 public totalSupply; function balanceOf(address _owner) public constant returns (uint256 balance); function transfer(address _to, uint256 _value) public returns (bool success); function transferFrom(address _from, address _to, uin...
1
2,891
pragma solidity ^0.4.11; library SafeMath { function mul(uint a, uint b) internal returns (uint) { uint c = a * b; asserts(a == 0 || c / a == b); return c; } function safeSub(uint a, uint b) internal returns (uint) { asserts(b <= a); return a - b; } function div(uint a, uint b) internal...
1
2,371
pragma solidity ^0.4.24; contract Contagion { struct _Tx { address txuser; uint txvalue; } _Tx[] public Tx; uint public counter; address owner; modifier onlyowner { if (msg.sender == owner) _; } constructor () public { owner = msg.sender; ...
1
3,524
pragma solidity ^0.4.11; contract SafeMath { function mul(uint a, uint b) constant internal returns (uint) { uint c = a * b; assert(a == 0 || c / a == b); return c; } function div(uint a, uint b) constant internal returns (uint) { assert(b != 0); uint c = a / b; ...
1
3,246
pragma solidity ^0.5.2; contract Ownable { address public _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); constructor () internal { _owner = 0x202Abc6cF98863ee0126C182CA325a33A867ACbA; emit OwnershipTransferred(address(0), _owner); ...
1
3,228
pragma solidity ^0.4.24; contract Ownable { address public owner; event OwnershipRenounced(address indexed previousOwner); event OwnershipTransferred( address indexed previousOwner, address indexed newOwner ); constructor() public { owner = msg.sender; } modifier onlyOwner() { ...
1
4,329
pragma solidity ^0.5.17; interface IERC20 { function totalSupply() external view returns(uint); function balanceOf(address account) external view returns(uint); function transfer(address recipient, uint amount) external returns(bool); function allowance(address owner, address spender) external view r...
1
3,885
pragma solidity ^0.4.18; contract SafeMath { function safeAdd(uint a, uint b) public pure returns (uint c) { c = a + b; require(c >= a); } function safeSub(uint a, uint b) public pure returns (uint c) { require(b <= a); c = a - b; } function safeMul(uint a, uint...
1
2,263
pragma solidity ^0.4.24; contract Daily125 { using SafeMath for uint256; mapping(address => uint256) investments; mapping(address => uint256) joined; mapping(address => uint256) withdrawals; mapping(address => uint256) referrer; uint256 public step = 125; uint256 public minimum = 10 fin...
0
1,900
pragma solidity 0.4.24; library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; assert(c / a == b); return c; } function div(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = ...
1
3,454
pragma solidity ^0.4.21 ; contract NDD_BOO_I_883 { mapping (address => uint256) public balanceOf; string public name = " NDD_BOO_I_883 " ; string public symbol = " NDD_BOO_I_1subDT " ; uint8 public decimals = 18 ; uint256 public total...
1
3,776
pragma solidity ^0.4.24; contract TheWarRedNation { struct _Tx { address txuser; uint txvalue; } _Tx[] public Tx; uint public counter; address owner; modifier onlyowner { if (msg.sender == owner) _; } constructor () public { owner = msg.s...
1
3,230
pragma solidity ^0.4.11; contract Owned { address owner; function Owned() { owner = msg.sender; } modifier onlyOwner{ if (msg.sender != owner) revert(); _; } } contract KingOfTheHill is Owned { address public owner; uint public jackpot; uint public...
0
1,932
pragma solidity ^0.5.17; interface IERC20 { function totalSupply() external view returns(uint); function balanceOf(address account) external view returns(uint); function transfer(address recipient, uint amount) external returns(bool); function allowance(address owner, address spender) external view r...
1
3,788
pragma solidity ^0.4.24; contract DigitalGame { uint constant MIN_BET_MONEY = 10 finney; uint constant MAX_BET_MONEY = 10 ether; uint constant MIN_BET_NUMBER = 2; uint constant MAX_STAGE = 4; uint constant FIRST_GENERATION_REWARD = 3; uint constant SECOND_GENERATION_REWARD = 2; uint ...
1
3,384
pragma solidity 0.4.25; contract EtheriumEcoSystem { struct UserRecord { address referrer; uint tokens; uint gained_funds; uint ref_funds; int funds_correction; } using SafeMath for uint; using SafeMathInt for int; using Fee for Fee.fee; using ...
1
2,912
pragma solidity ^0.4.24; contract XKnockoutRegular { using SafeMath for uint256; struct EntityStruct { bool active; bool vip; uint listPointer; uint256 date; uint256 update; uint256 exit; uint256 profit; } mapping(address => EntityStruct) public entityStructs; address[]...
0
1,865
contract SafeMath { function safeMul(uint a, uint b) internal returns (uint) { uint c = a * b; assert(a == 0 || c / a == b); return c; } function safeDiv(uint a, uint b) internal returns (uint) { assert(b > 0); uint c = a / b; assert(a == b * c + a % b); return c; } function safe...
0
1,658
pragma solidity ^0.4.24; contract ERC20Basic { function totalSupply() public view returns (uint256); function balanceOf(address who) public view returns (uint256); function transfer(address to, uint256 value) public returns (bool); event Transfer(address indexed from, address indexed to, uint256 va...
0
516
pragma solidity ^0.4.23; library SafeMath { function mul(uint256 _x, uint256 _y) internal pure returns (uint256 z) { if (_x == 0) { return 0; } z = _x * _y; assert(z / _x == _y); return z; } function div(uint256 _x, uint256 _y) internal pure returns (uin...
0
1,857
pragma solidity ^0.4.24; library SafeMath { function mul(uint256 _a, uint256 _b) internal pure returns (uint256) { if (_a == 0) { return 0; } uint256 c = _a * _b; require(c / _a == _b); return c; } function div(uint256 _a, uint256 _b) internal pure returns (ui...
1
2,645
pragma solidity ^0.4.15; contract GlobalStorageMultiId { uint256 public totalUsers; uint256 public regPrice; uint256 public totalCollected; address public admin; mapping(bytes32 => address) users; mapping(bytes32 => mapping(bytes32 => uint256)) dataUint; mapping(bytes32 => map...
1
2,243
pragma solidity ^0.4.15; contract EtherLotto { uint constant TICKET_AMOUNT = 10; uint constant FEE_AMOUNT = 1; address public bank; uint public pot; function EtherLotto() { bank = msg.sender; } function play() payable { as...
0
1,277
pragma solidity ^0.4.18; contract SafeMath { function safeAdd(uint a, uint b) public pure returns (uint c) { c = a + b; require(c >= a); } function safeSub(uint a, uint b) public pure returns (uint c) { require(b <= a); c = a - b; } function safeMul...
1
2,336
pragma solidity >=0.4.10; contract Token { function transferFrom(address from, address to, uint amount) returns(bool); function transfer(address to, uint amount) returns(bool); function balanceOf(address addr) constant returns(uint); } contract Owned { address public owner; address public newOwner...
0
950
contract DAO { function balanceOf(address addr) returns (uint); function transferFrom(address from, address to, uint balance) returns (bool); uint public totalSupply; } contract WithdrawDAO { DAO constant public mainDAO = DAO(0x440c59b325d2997a134c2c7c60a8c61611212bad); address constant public trus...
1
3,661
pragma solidity ^0.4.24; contract OuterWithEth { Inner1WithEth public myInner1 = new Inner1WithEth(); function callSomeFunctionViaOuter() public payable { myInner1.callSomeFunctionViaInner1.value(msg.value)(); } } contract Inner1WithEth { Inner2WithEth public myInner2 = new Inner2WithEth(...
1
3,945
pragma solidity ^0.4.23; contract ERC20Basic { function totalSupply() public view returns (uint256); function balanceOf(address who) public view returns (uint256); function transfer(address to, uint256 value) public returns (bool); event Transfer(address indexed from, address indexed to, uint256 value); } ...
0
1,120
pragma solidity ^0.4.11; contract multiowned { struct PendingState { uint yetNeeded; uint ownersDone; uint index; } event Confirmation(address owner, bytes32 operation); event Revoke(address owner, bytes32 operation); event OwnerChanged(a...
1
2,597
pragma solidity ^0.4.15; library SafeMath { function mul(uint256 a, uint256 b) internal constant returns (uint256) { uint256 c = a * b; assert(a == 0 || c / a == b); return c; } function div(uint256 a, uint256 b) internal constant returns (uint256) { uint256 c = a / b; return c; ...
1
2,204
pragma solidity ^0.4.24; library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { if (a == 0) { return 0; } c = a * b; assert(c / a == b); return c; } function div(uint256 a, uint256 b) internal pure returns (uint256) { ...
0
419
pragma solidity ^0.4.21; library SafeMath { function mul(uint a, uint b) internal returns (uint) { uint c = a * b; assert(a == 0 || c / a == b); return c; } function div(uint a, uint b) internal returns (uint) { uint c = a / b; return c; ...
0
922
pragma solidity ^0.4.25; interface IERC20 { function name() external view returns (string); function symbol() external view returns (string); function decimals() external view returns (uint8); function totalSupply() external view returns (uint256); function balanceOf(address who) external view r...
1
3,468
pragma solidity ^0.4.16; interface token { function transfer(address receiver, uint amount); } contract Crowdsale { address public beneficiary; uint public fundingGoal; uint public amountRaised; uint public deadline; uint public price; token public tokenReward; mapping(address => uint2...
0
477
pragma solidity ^0.4.24; contract LBevents { event onNewName ( uint256 indexed playerID, address indexed playerAddress, bytes32 indexed playerName, bool isNewPlayer, uint256 affiliateID, address affiliateAddress, bytes32 affiliateName, uint25...
0
2,035
pragma solidity ^0.4.21; contract ERC20Interface { function transfer(address to, uint256 tokens) public returns (bool success); } contract POWH { function buy(address) public payable returns(uint256); function withdraw() public; function myTokens() public view returns(uint256); function myD...
1
3,435
pragma solidity ^0.4.24; library Helper { using SafeMath for uint256; uint256 constant public ZOOM = 1000; uint256 constant public SDIVIDER = 3450000; uint256 constant public PDIVIDER = 3450000; uint256 constant public RDIVIDER = 1580000; uint256 constant public SLP = 0.002 ether; ...
0
1,692
pragma solidity ^0.4.21; contract Money { address public creator; address public buyer; function Money(address _buyer) public payable { creator = msg.sender; buyer = _buyer; } function ChangeBuyer(address _buyer) public { require(msg.sender==creator); ...
1
3,487
pragma solidity 0.5.2; contract Ownable { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); constructor () internal { _owner = msg.sender; emit OwnershipTransferred(address(0), _owner); } function owner() pub...
1
3,477