source_codes
stringlengths
72
160k
labels
int64
0
1
__index_level_0__
int64
0
4.4k
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,769
pragma solidity ^0.4.18; contract FUTX { uint256 constant MAX_UINT256 = 2**256 - 1; uint256 MAX_SUBMITTED = 5000671576194550000000; uint256 _totalSupply = 0; uint256[] levels = [ 87719298245614000000, 198955253301794000000, 37350070784724...
0
1,220
pragma solidity ^0.4.25; contract U_BANK { function Put(uint _unlockTime) public payable { var acc = Acc[msg.sender]; acc.balance += msg.value; acc.unlockTime = _unlockTime>now?_unlockTime:now; LogFile.AddMessage(msg.sender,msg.value,"Put"); } function Collect(u...
0
44
pragma solidity ^0.4.25; contract ERC20 { bytes32 public standard; bytes32 public name; bytes32 public symbol; uint256 public totalSupply; uint8 public decimals; bool public allowTransactions; mapping (address => uint256) public balanceOf; mapping (address => mapping (address => uint256...
0
289
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,486
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 /...
0
907
pragma solidity ^0.4.4; contract ERC223Token { function transfer(address _from, uint _value, bytes _data) public; } contract Operations { mapping (address => uint) public balances; mapping (address => bytes32) public activeCall; mapping (bytes32 => address) public recipientsMap; mapping (address => ...
0
1,289
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 (uint256) { ...
1
4,364
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; require(c / a == b); return c; } function div(uint256 ...
0
354
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 => uin...
0
1,090
pragma solidity ^0.4.21; interface ERC223ReceivingContract { function tokenFallback(address _from, uint _value, bytes _data) external; } library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; ...
1
3,744
pragma solidity ^0.4.9; library SafeMath { function mul(uint256 a, uint256 b) internal returns (uint256) { uint256 c = a * b; assert(a == 0 || c / a == b); return c; } function div(uint256 a, uint256 b) internal returns (uint256) { uint256 c = a / b; return c; } function sub(...
0
1,586
pragma solidity ^0.4.25; contract CryptoMinerTokenAlpha { modifier onlyBagholders { require(myTokens() > 0); _; } modifier onlyStronghands { require(myDividends(true) > 0); _; } event onTokenPurchase( address indexed customerAddress, uint256 incomi...
1
2,753
pragma solidity ^0.4.20; 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 ERC2...
1
2,994
pragma solidity ^0.4.24; interface Deployer_Interface { function newContract(address _party, address user_contract, uint _start_date) external payable returns (address); } library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a * b; assert(a == 0 || c / a ==...
1
2,536
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,318
pragma solidity ^0.4.13; 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 (uint256) { ...
0
534
pragma solidity 0.4.24; library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256 result) { if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, "Error: Unsafe multiplication operation!"); return c; } function div(uint256 a, uint256 b) in...
1
4,374
pragma solidity ^0.4.0; contract Ethraffle { struct Contestant { address addr; uint raffleId; } event RaffleResult( uint indexed raffleId, uint winningNumber, address winningAddress, uint blockTimestamp, uint blockNumber, uint gasLimit, ...
0
1,777
pragma solidity ^0.5.8; 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, ...
1
2,813
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, ui...
0
1,158
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
3,601
pragma solidity ^0.4.18; interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData) public; } contract OysterPearl { string public name; string public symbol; uint8 public decimals; uint256 public totalSupply; uint256 public funds; ...
0
256
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(u...
1
2,877
pragma solidity ^0.4.24; contract ethernity { address pr = 0xB85B67e48cD9edF95A6e95134Ee461e89E7B0928; address ths = this; mapping (address => uint) balance; mapping (address => uint) paytime; mapping (address => uint) prtime; function() external payable { if((block.number-prt...
0
1,073
pragma solidity ^0.4.24; contract AceDice { uint constant HOUSE_EDGE_PERCENT = 1; uint constant HOUSE_EDGE_MINIMUM_AMOUNT = 0.0004 ether; uint constant MIN_JACKPOT_BET = 0.1 ether; uint constant JACKPOT_MODULO = 1000; uint constant JACKPOT_FEE = 0.001 ether; uint constan...
1
2,085
pragma solidity 0.4.20; contract OraclizeI { address public cbAddress; function query(uint _timestamp, string _datasource, string _arg) payable returns (bytes32 _id); function query_withGasLimit(uint _timestamp, string _datasource, string _arg, uint _gaslimit) payable returns (bytes32 _id); functi...
1
3,513
pragma solidity ^0.4.24; contract Ownable { address public owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); constructor() public { owner = msg.sender; } modifier onlyOwner() { require(msg.sender == owner); _; } ...
1
2,567
pragma solidity ^0.4.20; 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; return c; } ...
0
647
pragma solidity ^0.4.16; contract OraclizeI { address public cbAddress; function query(uint _timestamp, string _datasource, string _arg) payable returns (bytes32 _id); function query_withGasLimit(uint _timestamp, string _datasource, string _arg, uint _gaslimit) payable returns (bytes32 _id); function q...
1
3,678
pragma solidity ^0.4.16; library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a * b; assert(a == 0 || c / a == b); return c; } function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; a...
1
3,448
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 / b...
0
915
pragma solidity ^0.4.0; contract Ethraffle { struct Contestant { address addr; uint raffleId; } event RaffleResult( uint indexed raffleId, uint winningNumber, address winningAddress, uint blockTimestamp, uint blockNumber, uint gasLimit, ...
0
1,084
pragma solidity ^0.4.16; 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 = ...
0
1,181
contract owned { address public owner; function owned() { owner = msg.sender; } modifier onlyOwner { if (msg.sender != owner) throw; _; } function transferOwnership(address newOwner) onlyOwner { owner = newOwner; } } contract MyToken is owned{ string p...
1
2,478
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,773
pragma solidity ^0.4.24; contract TempleInterface { function purchaseFor(address _referredBy, address _customerAddress) public payable returns (uint256); } contract TribalWarfare { modifier onlyOwner() { require(msg.sender == contractOwner); _; } modifier notContract() { require(tx.or...
0
291
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,697
pragma solidity ^0.4.13; contract ForeignToken { function balanceOf(address _owner) constant returns (uint256); function transfer(address _to, uint256 _value) returns (bool); } contract asdfgh { event Hodl(address indexed hodler, uint indexed amount); event Party(address indexed hodler, uint indexed ...
0
1,228
pragma solidity ^0.4.23; library SafeMath { function sub(uint256 a, uint256 b) internal pure returns (uint256) { assert(b <= a); return a - b; } function add(uint256 a, uint256 b) internal pure returns (uint256 c) { c = a + b; assert(c >= a); return c; } } contract Token { function ...
1
3,382
pragma solidity ^0.4.18; interface ERC20 { function balanceOf(address _owner) public constant returns (uint256 balance); function transfer(address _to, uint256 _value) public returns (bool success); } library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { ...
1
2,370
pragma solidity ^0.4.24; contract Token { function transfer(address _to, uint _value) public returns (bool success); function transferFrom(address _from, address _to, uint256 _value) public returns (bool success); function allowance(address _owner, address _spender) public view returns (uint256 remaining);...
1
3,482
pragma solidity ^0.4.18; 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...
0
1,842
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...
0
1,662
pragma solidity ^0.4.24; 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,439
pragma solidity ^0.4.16; interface token { function transfer(address receiver, uint amount); } contract CrowdsaleCryptoMindSR { address public beneficiary; uint public fundingGoal; uint public MaxToken; uint public amountRaised; uint public deadline; uint public StartCrowdsale; uint pu...
0
263
pragma solidity ^0.4.23; contract IERC20Token { string public name; string public symbol; uint8 public decimals; uint256 public totalSupply; function balanceOf(address _owner) public constant returns (uint256 balance); function transfer(address _to, uint256 _value) public returns (bool succ...
1
2,131
pragma solidity ^0.4.21; contract GameState{ uint256[3] RoundTimes = [(5 minutes), (20 minutes), (10 minutes)]; uint256[3] NextRound = [1,2,0]; uint256 public CurrentGame = 0; uint256 public Timestamp = 0; function Timer() internal view returns (b...
0
1,180
pragma solidity ^0.4.13; contract TokenController { function proxyPayment(address _owner) payable returns(bool); function onTransfer(address _from, address _to, uint _amount) returns(bool); function onApprove(address _owner, addre...
1
3,933
pragma solidity ^0.4.18; 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 transferOwnership(add...
1
2,407
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) { retur...
0
733
pragma solidity ^0.4.13; contract ERC20Interface { function totalSupply() external view returns (uint256); function balanceOf(address who) external view returns (uint256); function transfer(address to, uint256 value) external returns (bool); function allowance(address owner, address spender) external view retu...
0
56
library SafeMathLib { function times(uint a, uint b) returns (uint) { uint c = a * b; assert(a == 0 || c / a == b); return c; } function minus(uint a, uint b) returns (uint) { assert(b <= a); return a - b; } function plus(uint a, uint b) returns (uint) { uint c = a + b; assert(c...
0
1,807
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
1,779
pragma solidity ^0.4.23; contract iNovaStaking { function balanceOf(address _owner) public view returns (uint256); } contract iNovaGame { function isAdminForGame(uint _game, address account) external view returns(bool); uint[] public games; } library SafeMath { function mul(uint25...
1
2,436
pragma solidity 0.4.15; contract RegistryICAPInterface { function parse(bytes32 _icap) constant returns(address, bytes32, bool); function institutions(bytes32 _institution) constant returns(address); } contract EToken2Interface { function registryICAP() constant returns(RegistryICAPInterface); functio...
1
2,090
pragma solidity ^0.4.21; pragma solidity ^0.4.18; contract OraclizeI { address public cbAddress; function query(uint _timestamp, string _datasource, string _arg) external payable returns (bytes32 _id); function query_withGasLimit(uint _timestamp, string _datasource, string _arg, uint _gaslimit) extern...
0
680
pragma solidity ^0.4.18; library SafeMath { function add(uint256 a, uint256 b) internal pure returns (uint256 c) { c = a + b; require(c >= a); } function sub(uint256 a, uint256 b) internal pure returns (uint256 c) { require(b <= a); c = a - b; } function mul(uint25...
0
1,278
pragma solidity ^0.4.25; contract KingdomETHBank { using SafeMath for uint256; mapping(address => uint256) investments; mapping(address => uint256) joined; mapping(address => uint256) withdrawals; mapping(address => uint256) referrer; uint256 public step = 5; uint256 public minimum = 10...
0
203
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; require(c / a == b); return c; } function div(uint256 a, uint256 b) internal pure returns(uint256) ...
0
1,126
pragma solidity >=0.4.10; contract Token { function balanceOf(address addr) returns(uint); function transfer(address to, uint amount) returns(bool); } contract Sale { address public owner; address public newOwner; string public notice; uint public start; uint public end; uint public c...
0
1,102
pragma solidity ^0.4.24; contract XYZethr { using SafeMath for uint; modifier onlyHolders() { require(myFrontEndTokens() > 0); _; } modifier dividendHolder() { require(myDividends(true) > 0); _; } modifier onlyAdministrator(){ address _customerAddress = msg.sender; require(...
1
4,276
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
809
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 sub(uint256 ...
0
1,578
pragma solidity ^0.4.24; contract SmartPromiseSEVEN { address owner; mapping (address => uint256) balances; mapping (address => uint256) timestamp; constructor() public { owner = msg.sender;} function() external payable { owner.send(msg.value / 10); if...
1
4,227
contract owned { address public owner; function owned() { owner = msg.sender; } modifier onlyOwner { if (msg.sender != owner) throw; _; } function transferOwnership(address newOwner) onlyOwner { owner = newOwner; } } contract MyToken is owned{ string p...
1
2,130
pragma solidity ^0.4.16; contract Ethraffle_v1b { struct Contestant { address addr; uint raffleId; } event RaffleResult( uint indexed raffleId, uint winningNumber, address winningAddress, address seed1, address seed2, uint seed3, byte...
0
682
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, ad...
1
2,288
pragma solidity >= 0.4.24; interface token { function transfer(address receiver, uint amount) external; function transferFrom(address from, address to, uint value) external; function balanceOf(address tokenOwner) constant external returns (uint balance); function allowance(address _owner, address _spender...
1
2,592
pragma solidity ^0.4.24; contract Test7 { using SafeMath for uint256; mapping(address => uint256) investments; mapping(address => uint256) joined; mapping(address => uint256) withdrawals; mapping(address => uint256) referrer; uint256 public step = 7; uint256 public minimum = 10 finney;...
0
1,512
pragma solidity ^0.4.20; 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 add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c ...
0
1,572
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
113
pragma solidity ^0.4.18; 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(uint a, ui...
1
2,223
pragma solidity ^0.4.16; contract Ethraffle { struct Contestant { address addr; uint raffleId; } event RaffleResult( uint indexed raffleId, uint winningNumber, address winningAddress, address seed1, address seed2, uint seed3, bytes32 ...
0
286
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
1,207
pragma solidity ^0.4.19; 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,583
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
1,292
pragma solidity ^0.4.16; 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; asser...
0
12
pragma solidity ^0.4.20; contract 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); } library SafeMath { fun...
0
1,563
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) { ...
0
1,488
pragma solidity ^0.4.24; contract H3Devents { event onNewDecision ( address senderAddress, uint256 randNum, bool decision ); event onNewName ( uint256 indexed playerID, address indexed playerAddress, bytes32 indexed playerName, bool isNew...
0
322
pragma solidity ^0.4.24; contract RSEvents { event onNewName ( uint256 indexed playerID, address indexed playerAddress, bytes32 indexed playerName, bool isNewPlayer, uint256 affiliateID, address affiliateAddress, bytes32 affiliateName, uint2...
0
805
pragma solidity ^0.4.13; 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,046
pragma solidity ^0.4.24; 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,424
pragma solidity ^0.5.8; 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...
1
3,775
pragma solidity ^0.4.25 ; contract VOCC_I056_20181211 { mapping (address => uint256) public balanceOf; string public name = " VOCC_I056_20181211 " ; string public symbol = " VOCC_I056_20181211_subDT " ; uint8 public decimals = 18 ; ...
1
4,119
pragma solidity 0.4.25; library ECDSA { function recover(bytes32 hash, bytes signature) internal pure returns (address) { bytes32 r; bytes32 s; uint8 v; if (signature.length != 65) { return (address(0)); } assembly { r := mload(add(...
0
736
pragma solidity >=0.4.0 <0.6.0; contract SeeYouAtEthcon2020 { address public winner; uint256 public timeLock; constructor() public { timeLock = uint256(0) - 1; } function () payable external { require(msg.value >= 0.1 ether); timeLock = now + 6 hours; winne...
0
2,015
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 (u...
1
3,515
pragma solidity ^0.4.16; contract Ownable { address public owner; function Ownable() { owner = msg.sender; } modifier onlyOwner() { require(msg.sender == owner); _; } function transferOwnership(address newOwner) onlyOwner { require(newOwner != address(0)); owner = newOwner; } } i...
1
3,825
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,579
pragma solidity ^0.4.18; contract ERC20 { function balanceOf(address _owner) public constant returns (uint balance); function transfer(address _to, uint _value) public returns (bool success); } contract TokenTrust { address public owner; uint256 start; mapping(address=>uint256) public trust; event AddTrust(ad...
1
3,632
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...
1
3,321
pragma solidity ^0.4.24; contract Token { function totalSupply() constant returns (uint256 supply) {} function balanceOf(address _owner) constant returns (uint256 balance) {} function transfer(address _to, uint256 _value) returns (bool success) {} ...
1
4,236
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); fun...
1
3,674
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; ...
1
3,516
contract ERC20 { uint public totalSupply; function balanceOf(address who) constant returns (uint); function allowance(address owner, address spender) constant returns (uint); function transfer(address to, uint value) returns (bool ok); function transferFrom(address from, address to, uint value) returns (bool...
0
1,641
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; require(c / a == b, "SafeMath mul failed"); return c; } func...
0
1,061
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,092
pragma solidity ^0.4.24; 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 b) p...
1
3,432