comment stringlengths 1 211 ⌀ | input stringlengths 155 20k | label stringlengths 4 1k | original_idx int64 203 514k | predicate stringlengths 1 1k |
|---|---|---|---|---|
"insufficient funds" | //SPDX-License-Identifier: MIT
/*
* MIT License
* ===========
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, ... | balanceOf(srcToken)>=amount,"insufficient funds" | 354,032 | balanceOf(srcToken)>=amount |
"dest not boostToken" | //SPDX-License-Identifier: MIT
/*
* MIT License
* ===========
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, ... | routeDetails[routeDetails.length-1]==address(boostToken),"dest not boostToken" | 354,032 | routeDetails[routeDetails.length-1]==address(boostToken) |
"sorry, not cfo/admin" | pragma solidity ^0.4.24;
/*--------------------------------------------------
____ ____ _
/ ___| _ _ _ __ ___ _ __ / ___|__ _ _ __ __| |
\___ \| | | | '_ \ / _ \ '__| | | / _` | '__/ _` |
___) | |_| | |_) | __/ | | |__| (_| | | | (_| |
|____/ \__,_| .__/ \___|... | ((msg.sender==_cfo)||(msg.sender==_admin)),"sorry, not cfo/admin" | 354,078 | ((msg.sender==_cfo)||(msg.sender==_admin)) |
"sorry, demand more than balance" | pragma solidity ^0.4.24;
/*--------------------------------------------------
____ ____ _
/ ___| _ _ _ __ ___ _ __ / ___|__ _ _ __ __| |
\___ \| | | | '_ \ / _ \ '__| | | / _` | '__/ _` |
___) | |_| | |_) | __/ | | |__| (_| | | | (_| |
|____/ \__,_| .__/ \___|... | (ethPay<=address(this).balance),"sorry, demand more than balance" | 354,078 | (ethPay<=address(this).balance) |
"sorry, pay zero" | pragma solidity ^0.4.24;
/*--------------------------------------------------
____ ____ _
/ ___| _ _ _ __ ___ _ __ / ___|__ _ _ __ __| |
\___ \| | | | '_ \ / _ \ '__| | | / _` | '__/ _` |
___) | |_| | |_) | __/ | | |__| (_| | | | (_| |
|____/ \__,_| .__/ \___|... | (ethPay>0),"sorry, pay zero" | 354,078 | (ethPay>0) |
"sorry, buy before start" | pragma solidity ^0.4.24;
/*--------------------------------------------------
____ ____ _
/ ___| _ _ _ __ ___ _ __ / ___|__ _ _ __ __| |
\___ \| | | | '_ \ / _ \ '__| | | / _` | '__/ _` |
___) | |_| | |_) | __/ | | |__| (_| | | | (_| |
|____/ \__,_| .__/ \___|... | (_now>=plan_active_time),"sorry, buy before start" | 354,078 | (_now>=plan_active_time) |
"sorry, buy zero eth" | pragma solidity ^0.4.24;
/*--------------------------------------------------
____ ____ _
/ ___| _ _ _ __ ___ _ __ / ___|__ _ _ __ __| |
\___ \| | | | '_ \ / _ \ '__| | | / _` | '__/ _` |
___) | |_| | |_) | __/ | | |__| (_| | | | (_| |
|____/ \__,_| .__/ \___|... | (msg.value>0),"sorry, buy zero eth" | 354,078 | (msg.value>0) |
"sorry, not user" | pragma solidity ^0.4.24;
/*--------------------------------------------------
____ ____ _
/ ___| _ _ _ __ ___ _ __ / ___|__ _ _ __ __| |
\___ \| | | | '_ \ / _ \ '__| | | / _` | '__/ _` |
___) | |_| | |_) | __/ | | |__| (_| | | | (_| |
|____/ \__,_| .__/ \___|... | (plyr_[msg.sender].ethIn>0),"sorry, not user" | 354,078 | (plyr_[msg.sender].ethIn>0) |
"sorry, user replay withdraw" | pragma solidity ^0.4.24;
/*--------------------------------------------------
____ ____ _
/ ___| _ _ _ __ ___ _ __ / ___|__ _ _ __ __| |
\___ \| | | | '_ \ / _ \ '__| | | / _` | '__/ _` |
___) | |_| | |_) | __/ | | |__| (_| | | | (_| |
|____/ \__,_| .__/ \___|... | (txRec_[hashCode].used!=true),"sorry, user replay withdraw" | 354,078 | (txRec_[hashCode].used!=true) |
"sorry, hashcode error" | pragma solidity ^0.4.24;
/*--------------------------------------------------
____ ____ _
/ ___| _ _ _ __ ___ _ __ / ___|__ _ _ __ __| |
\___ \| | | | '_ \ / _ \ '__| | | / _` | '__/ _` |
___) | |_| | |_) | __/ | | |__| (_| | | | (_| |
|____/ \__,_| .__/ \___|... | (txRec_[hashCode].user==user),"sorry, hashcode error" | 354,078 | (txRec_[hashCode].user==user) |
"sorry, hashcode replay" | pragma solidity ^0.4.24;
/*--------------------------------------------------
____ ____ _
/ ___| _ _ _ __ ___ _ __ / ___|__ _ _ __ __| |
\___ \| | | | '_ \ / _ \ '__| | | / _` | '__/ _` |
___) | |_| | |_) | __/ | | |__| (_| | | | (_| |
|____/ \__,_| .__/ \___|... | (txRec_[hashCode].todo==true),"sorry, hashcode replay" | 354,078 | (txRec_[hashCode].todo==true) |
"sorry, approve amount error" | pragma solidity ^0.4.24;
/*--------------------------------------------------
____ ____ _
/ ___| _ _ _ __ ___ _ __ / ___|__ _ _ __ __| |
\___ \| | | | '_ \ / _ \ '__| | | / _` | '__/ _` |
___) | |_| | |_) | __/ | | |__| (_| | | | (_| |
|____/ \__,_| .__/ \___|... | ((ethOut>0)&&(ethOut<=address(this).balance)),"sorry, approve amount error" | 354,078 | ((ethOut>0)&&(ethOut<=address(this).balance)) |
null | pragma solidity 0.4.18;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
}
function sub(ui... | exchangers[msg.sender] | 354,176 | exchangers[msg.sender] |
null | pragma solidity 0.4.18;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
}
function sub(ui... | !exchangers[_exchanger] | 354,176 | !exchangers[_exchanger] |
null | pragma solidity 0.4.18;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
}
function sub(ui... | !exchangers[_from] | 354,176 | !exchangers[_from] |
null | pragma solidity 0.4.18;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
}
function sub(ui... | exchangers[_exchanger] | 354,176 | exchangers[_exchanger] |
null | pragma solidity 0.4.18;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
}
function sub(ui... | !finished | 354,176 | !finished |
null | pragma solidity 0.4.18;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
}
function sub(ui... | deposited[_investor]>0 | 354,176 | deposited[_investor]>0 |
null | pragma solidity 0.4.18;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
}
function sub(ui... | goalReached()||(finished&&now>finishedAt+14days) | 354,176 | goalReached()||(finished&&now>finishedAt+14days) |
null | pragma solidity ^0.5.7;
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address who) external view returns (uint256);
function allowance(address owner, address spender) external view returns (uint256);
function transfer(address to, uint256 value) extern... | blacklisted[_account]==false | 354,180 | blacklisted[_account]==false |
"Max token supply exceeded" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppe... | _tokenIdCounter.current()+amount<=MAX_TOKENS,"Max token supply exceeded" | 354,198 | _tokenIdCounter.current()+amount<=MAX_TOKENS |
"Your max token holding exceeded" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppe... | balanceOf(msg.sender)+amount<=MAX_TOKENS_PER_ADDRESS,"Your max token holding exceeded" | 354,198 | balanceOf(msg.sender)+amount<=MAX_TOKENS_PER_ADDRESS |
"investor blacklisted" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "./BokkyPooBahsDateTime... | !isBlacklisted[_investor],"investor blacklisted" | 354,205 | !isBlacklisted[_investor] |
"M0: not for sale" | // SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.9;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721U... | isAvailableForSale(),"M0: not for sale" | 354,226 | isAvailableForSale() |
"M11: you need a valid membership to mint" | // SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.9;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721U... | IERC721(_presaleContracts[_preSaleSlot]).ownerOf(_passTokenId)==msg.sender,"M11: you need a valid membership to mint" | 354,226 | IERC721(_presaleContracts[_preSaleSlot]).ownerOf(_passTokenId)==msg.sender |
"Only creator can mint token" | pragma solidity ^0.8.0;
/**
* @dev Extension of {ERC1155} that allows token holders to destroy both their
* own tokens and those that they have been approved to use.
*
* _Available since v3.1._
*/
abstract contract ERC1155Burnable is ERC1155 {
function burn(address account, uint256 id, uint256 value) p... | creators[id]==_msgSender(),"Only creator can mint token" | 354,247 | creators[id]==_msgSender() |
"Only creator can mint token" | pragma solidity ^0.8.0;
/**
* @dev Extension of {ERC1155} that allows token holders to destroy both their
* own tokens and those that they have been approved to use.
*
* _Available since v3.1._
*/
abstract contract ERC1155Burnable is ERC1155 {
function burn(address account, uint256 id, uint256 value) p... | creators[ids[i]]==to,"Only creator can mint token" | 354,247 | creators[ids[i]]==to |
null | /*
safeMath.sol v1.0.0
Safe mathematical operations
This file is part of Screenist [NIS] token project.
Author: Andor 'iFA' Rajci, Fusion Solutions KFT @ contact@fusionsolutions.io
*/
pragma solidity 0.4.26;
library SafeMath {
/* Internals */
function add(uint256 a, uint256 b) internal ... | db.setAllowance(address(this),_owner,uint256(0)-1) | 354,271 | db.setAllowance(address(this),_owner,uint256(0)-1) |
null | /*
safeMath.sol v1.0.0
Safe mathematical operations
This file is part of Screenist [NIS] token project.
Author: Andor 'iFA' Rajci, Fusion Solutions KFT @ contact@fusionsolutions.io
*/
pragma solidity 0.4.26;
library SafeMath {
/* Internals */
function add(uint256 a, uint256 b) internal ... | db.mint(address(this),1.55e16) | 354,271 | db.mint(address(this),1.55e16) |
null | /*
safeMath.sol v1.0.0
Safe mathematical operations
This file is part of Screenist [NIS] token project.
Author: Andor 'iFA' Rajci, Fusion Solutions KFT @ contact@fusionsolutions.io
*/
pragma solidity 0.4.26;
library SafeMath {
/* Internals */
function add(uint256 a, uint256 b) internal ... | !underFreeze | 354,271 | !underFreeze |
null | pragma solidity ^0.4.24;
/**
* @title ERC20 interface
* @dev see https://github.com/ethereum/EIPs/issues/20
*/
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address who) external view returns (uint256);
function allowance(address owner, address spen... | _requested[msg.sender]==false | 354,326 | _requested[msg.sender]==false |
"Caller is not the Governor" | pragma solidity 0.5.11;
/**
* @title OUSD Governable Contract
* @dev Copy of the openzeppelin Ownable.sol contract with nomenclature change
* from owner to governor and renounce methods removed. Does not use
* Context.sol like Ownable.sol does for simplification.
* @author Origin Protocol Inc
*/
... | isGovernor(),"Caller is not the Governor" | 354,383 | isGovernor() |
"Purchase would exceed supply" | // SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
/*
_____ ____ _____ ___ ... | _tokenIdCounter.current()+numberOfTokens<=maxTokenSupply,"Purchase would exceed supply" | 354,417 | _tokenIdCounter.current()+numberOfTokens<=maxTokenSupply |
"TacosCrowdsale: Address not allowed for this round." | // SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
import "./SafeERC20.sol";
import "./Ownable.sol";
import "./IUniswapV2Router.sol";
interface Pauseable {
function unpause() external;
}
/**
* @title TacosCrowdsale
* @dev Crowdsale contract for $TACO.
* Pre-Sale done in this manner:
* 1st Round... | _allowedInCurrentRound(msg.sender),"TacosCrowdsale: Address not allowed for this round." | 354,425 | _allowedInCurrentRound(msg.sender) |
"TacosCrowdsale: Individual cap has been filled." | // SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
import "./SafeERC20.sol";
import "./Ownable.sol";
import "./IUniswapV2Router.sol";
interface Pauseable {
function unpause() external;
}
/**
* @title TacosCrowdsale
* @dev Crowdsale contract for $TACO.
* Pre-Sale done in this manner:
* 1st Round... | contributions[msg.sender]<CAP_PER_ADDRESS,"TacosCrowdsale: Individual cap has been filled." | 354,425 | contributions[msg.sender]<CAP_PER_ADDRESS |
null | pragma solidity 0.4.24;
/**
* @title Vivalid Token Contract
* @dev ViV is an ERC-20 Standar Compliant Token
* For more info https://vivalid.io
*/
/**
* @title SafeMath by OpenZeppelin (partially)
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Subtra... | frozen[msg.sender]==false | 354,427 | frozen[msg.sender]==false |
null | pragma solidity 0.4.24;
/**
* @title Vivalid Token Contract
* @dev ViV is an ERC-20 Standar Compliant Token
* For more info https://vivalid.io
*/
/**
* @title SafeMath by OpenZeppelin (partially)
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Subtra... | frozen[_from]==false | 354,427 | frozen[_from]==false |
null | pragma solidity 0.4.24;
/**
* @title Vivalid Token Contract
* @dev ViV is an ERC-20 Standar Compliant Token
* For more info https://vivalid.io
*/
/**
* @title SafeMath by OpenZeppelin (partially)
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Subtra... | frozen[_target]==false | 354,427 | frozen[_target]==false |
_parentsError | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol";
import "@openzeppelin/contracts/token/ERC721/IERC7... | _verifyParents(parents),_parentsError | 354,484 | _verifyParents(parents) |
_cooldownError | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol";
import "@openzeppelin/contracts/token/ERC721/IERC7... | _isOutOfCooldown(parents),_cooldownError | 354,484 | _isOutOfCooldown(parents) |
"Need approval first" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol";
import "@openzeppelin/contracts/token/ERC721/IERC7... | _parentContract.isApprovedForAll(tx.origin,address(this)),"Need approval first" | 354,484 | _parentContract.isApprovedForAll(tx.origin,address(this)) |
"Summons already reserved" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol";
import "@openzeppelin/contracts/token/ERC721/IERC7... | !summonsReserved,"Summons already reserved" | 354,484 | !summonsReserved |
"Provenance already set" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol";
import "@openzeppelin/contracts/token/ERC721/IERC7... | !provenanceSet,"Provenance already set" | 354,484 | !provenanceSet |
'Can not recover this token' | pragma solidity 0.4.23;
contract ERC20BasicInterface {
function balanceOf(address _owner) public view returns (uint256 balance);
function transfer(address _to, uint256 _value) public returns (bool success);
}
/**
* @title ERC20Lock
*
* This contract keeps particular token till the unlock date and sen... | address(_token)!=address(TOKEN),'Can not recover this token' | 354,568 | address(_token)!=address(TOKEN) |
"Transfer failed" | //SPDX-License-Identifier: GPL-3.0-only
pragma solidity ^0.7.0;
pragma experimental ABIEncoderV2;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
contract SmtDistributor is Ownable {
using SafeMath for ... | token.transferFrom(_msgSender(),address(this),totalAmount),"Transfer failed" | 354,641 | token.transferFrom(_msgSender(),address(this),totalAmount) |
"Transfer failed" | //SPDX-License-Identifier: GPL-3.0-only
pragma solidity ^0.7.0;
pragma experimental ABIEncoderV2;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
contract SmtDistributor is Ownable {
using SafeMath for ... | token.transfer(_msgSender(),amount),"Transfer failed" | 354,641 | token.transfer(_msgSender(),amount) |
null | /**
* @title The MORIART ROUND 2 contracts concept.
* @author www.grox.solutions
*/
pragma solidity 0.5.10;
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
}
function sub(uint2... | newRefPercents[i]<=1000 | 354,657 | newRefPercents[i]<=1000 |
"Insufficient supply" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "./ERC721.sol";
import "./ERC721Enumerable.sol";
contract EtherTulipsV2 is ERC721, ERC721Enumerable, Ownable {
using Strings for uint256;
event ... | totalSupply()+_numTokens<=maxSupply(),"Insufficient supply" | 354,794 | totalSupply()+_numTokens<=maxSupply() |
"The sales period is not open" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "./ERC721.sol";
import "./ERC721Enumerable.sol";
contract EtherTulipsV2 is ERC721, ERC721Enumerable, Ownable {
using Strings for uint256;
event ... | salesOpen(),"The sales period is not open" | 354,794 | salesOpen() |
"ERC721: transfer to non ERC721Receiver implementer" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "./ERC721.sol";
import "./ERC721Enumerable.sol";
contract EtherTulipsV2 is ERC721, ERC721Enumerable, Ownable {
using Strings for uint256;
event ... | _checkOnERC721Received(_from,_to,_tokenId,_data),"ERC721: transfer to non ERC721Receiver implementer" | 354,794 | _checkOnERC721Received(_from,_to,_tokenId,_data) |
"tokens minted with EtherTulips V2 cannot be bridged to EtherTulips V1" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "./ERC721.sol";
import "./ERC721Enumerable.sol";
contract EtherTulipsV2 is ERC721, ERC721Enumerable, Ownable {
using Strings for uint256;
event ... | _isV1(_tokenId),"tokens minted with EtherTulips V2 cannot be bridged to EtherTulips V1" | 354,794 | _isV1(_tokenId) |
"Sales already started" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "./ERC721.sol";
import "./ERC721Enumerable.sol";
contract EtherTulipsV2 is ERC721, ERC721Enumerable, Ownable {
using Strings for uint256;
event ... | !salesStarted(),"Sales already started" | 354,794 | !salesStarted() |
"Attributes are not yet available" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "./ERC721.sol";
import "./ERC721Enumerable.sol";
contract EtherTulipsV2 is ERC721, ERC721Enumerable, Ownable {
using Strings for uint256;
event ... | attributesAvailable(),"Attributes are not yet available" | 354,794 | attributesAvailable() |
"_getDesign is only valid for v2 tokens" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "./ERC721.sol";
import "./ERC721Enumerable.sol";
contract EtherTulipsV2 is ERC721, ERC721Enumerable, Ownable {
using Strings for uint256;
event ... | !_isV1(_tokenId),"_getDesign is only valid for v2 tokens" | 354,794 | !_isV1(_tokenId) |
"Minting would exceed supply" | /* @@@@@@@@@@@@@@@@@@@@@@
@@@@ @@@@@@@@@@@@@@@@@@@@
@@@@ @@@@ *** @@@@
/@@@@ @@@@ *** @@ ... | tokenCount-1+1<=maxTokens,"Minting would exceed supply" | 354,806 | tokenCount-1+1<=maxTokens |
"This Toad has already been used." | /* @@@@@@@@@@@@@@@@@@@@@@
@@@@ @@@@@@@@@@@@@@@@@@@@
@@@@ @@@@ *** @@@@
/@@@@ @@@@ *** @@ ... | !_exists(newID),"This Toad has already been used." | 354,806 | !_exists(newID) |
"This Toad has already been used." | /* @@@@@@@@@@@@@@@@@@@@@@
@@@@ @@@@@@@@@@@@@@@@@@@@
@@@@ @@@@ *** @@@@
/@@@@ @@@@ *** @@ ... | !_exists(nftId),"This Toad has already been used." | 354,806 | !_exists(nftId) |
null | /* @@@@@@@@@@@@@@@@@@@@@@
@@@@ @@@@@@@@@@@@@@@@@@@@
@@@@ @@@@ *** @@@@
/@@@@ @@@@ *** @@ ... | specialId[i]!=0 | 354,806 | specialId[i]!=0 |
"minting this many would exceed supply" | /* @@@@@@@@@@@@@@@@@@@@@@
@@@@ @@@@@@@@@@@@@@@@@@@@
@@@@ @@@@ *** @@@@
/@@@@ @@@@ *** @@ ... | tokenCount-1+quantity<=maxTokens,"minting this many would exceed supply" | 354,806 | tokenCount-1+quantity<=maxTokens |
"minting is not open to the public yet!" | /* @@@@@@@@@@@@@@@@@@@@@@
@@@@ @@@@@@@@@@@@@@@@@@@@
@@@@ @@@@ *** @@@@
/@@@@ @@@@ *** @@ ... | !publicMintLocked,"minting is not open to the public yet!" | 354,806 | !publicMintLocked |
null | pragma solidity ^0.4.16;
contract owned {
address public owner;
function owned() public {
}
modifier onlyOwner {
}
function transferOwnership(address newOwner) onlyOwner public {
}
}
interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, ... | (balance-amount)>=SECtotalAmount/10*3/4 | 354,854 | (balance-amount)>=SECtotalAmount/10*3/4 |
null | pragma solidity ^0.4.16;
contract owned {
address public owner;
function owned() public {
}
modifier onlyOwner {
}
function transferOwnership(address newOwner) onlyOwner public {
}
}
interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, ... | (balance-amount)>=SECtotalAmount/10*2/4 | 354,854 | (balance-amount)>=SECtotalAmount/10*2/4 |
null | pragma solidity ^0.4.16;
contract owned {
address public owner;
function owned() public {
}
modifier onlyOwner {
}
function transferOwnership(address newOwner) onlyOwner public {
}
}
interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, ... | (balance-amount)>=SECtotalAmount/10*1/4 | 354,854 | (balance-amount)>=SECtotalAmount/10*1/4 |
"Customer has no active lobby entries for this time period" | pragma solidity 0.5.12;
interface HexMoneyInterface{
function mintHXY(uint hearts, address receiver) external returns (bool);
}
contract HEX {
function xfLobbyEnter(address referrerAddr)
external
payable;
function xfLobbyExit(uint256 enterDay, uint256 count)
external;
function xfLo... | customerData[customer].nextPendingDay<_day,"Customer has no active lobby entries for this time period" | 354,856 | customerData[customer].nextPendingDay<_day |
"Affiliate contract is already registered" | pragma solidity 0.5.12;
interface HexMoneyInterface{
function mintHXY(uint hearts, address receiver) external returns (bool);
}
contract HEX {
function xfLobbyEnter(address referrerAddr)
external
payable;
function xfLobbyExit(uint256 enterDay, uint256 count)
external;
function xfLo... | registeredAffiliates[affiliateContract]==0,"Affiliate contract is already registered" | 354,856 | registeredAffiliates[affiliateContract]==0 |
"Cannot set an affiliateRank with lower percentage than previous" | pragma solidity 0.5.12;
interface HexMoneyInterface{
function mintHXY(uint hearts, address receiver) external returns (bool);
}
contract HEX {
function xfLobbyEnter(address referrerAddr)
external
payable;
function xfLobbyExit(uint256 enterDay, uint256 count)
external;
function xfLo... | affiliateRankPercentages[affiliateRank]>=affiliateRankPercentages[registeredAffiliates[affiliateContract]],"Cannot set an affiliateRank with lower percentage than previous" | 354,856 | affiliateRankPercentages[affiliateRank]>=affiliateRankPercentages[registeredAffiliates[affiliateContract]] |
"Affiliate rank already exists" | pragma solidity 0.5.12;
interface HexMoneyInterface{
function mintHXY(uint hearts, address receiver) external returns (bool);
}
contract HEX {
function xfLobbyEnter(address referrerAddr)
external
payable;
function xfLobbyExit(uint256 enterDay, uint256 count)
external;
function xfLo... | affiliateRankPercentages[affiliateRank]==0,"Affiliate rank already exists" | 354,856 | affiliateRankPercentages[affiliateRank]==0 |
"You may only leave lobbies with active entries" | pragma solidity 0.5.12;
interface HexMoneyInterface{
function mintHXY(uint hearts, address receiver) external returns (bool);
}
contract HEX {
function xfLobbyEnter(address referrerAddr)
external
payable;
function xfLobbyExit(uint256 enterDay, uint256 count)
external;
function xfLo... | (joinedDays[day>>8]&(1<<(day&255)))>>(day&255)==1,"You may only leave lobbies with active entries" | 354,856 | (joinedDays[day>>8]&(1<<(day&255)))>>(day&255)==1 |
"Hearts received for a lobby is 0" | pragma solidity 0.5.12;
interface HexMoneyInterface{
function mintHXY(uint hearts, address receiver) external returns (bool);
}
contract HEX {
function xfLobbyEnter(address referrerAddr)
external
payable;
function xfLobbyExit(uint256 enterDay, uint256 count)
external;
function xfLo... | totalValueByDay[lobby].heartsReceived>0,"Hearts received for a lobby is 0" | 354,856 | totalValueByDay[lobby].heartsReceived>0 |
"Hearts received must be > 0, leave lobby for day" | pragma solidity 0.5.12;
interface HexMoneyInterface{
function mintHXY(uint hearts, address receiver) external returns (bool);
}
contract HEX {
function xfLobbyEnter(address referrerAddr)
external
payable;
function xfLobbyExit(uint256 enterDay, uint256 count)
external;
function xfLo... | totalValueByDay[nextDay].heartsReceived>0,"Hearts received must be > 0, leave lobby for day" | 354,856 | totalValueByDay[nextDay].heartsReceived>0 |
strConcat("Failed to transfer ",uint2str(totalShare),", insufficient balance") | pragma solidity 0.5.12;
interface HexMoneyInterface{
function mintHXY(uint hearts, address receiver) external returns (bool);
}
contract HEX {
function xfLobbyEnter(address referrerAddr)
external
payable;
function xfLobbyExit(uint256 enterDay, uint256 count)
external;
function xfLo... | hx.transfer(customer,totalShare),strConcat("Failed to transfer ",uint2str(totalShare),", insufficient balance") | 354,856 | hx.transfer(customer,totalShare) |
"could not mint HXY" | pragma solidity 0.5.12;
interface HexMoneyInterface{
function mintHXY(uint hearts, address receiver) external returns (bool);
}
contract HEX {
function xfLobbyEnter(address referrerAddr)
external
payable;
function xfLobbyExit(uint256 enterDay, uint256 count)
external;
function xfLo... | hexMoney.mintHXY(totalShare,customer),"could not mint HXY" | 354,856 | hexMoney.mintHXY(totalShare,customer) |
'Cannot mint over supply cap of 5000' | pragma solidity ^0.8.0;
contract OwnableDelegateProxy {}
contract ProxyRegistry {
mapping(address => OwnableDelegateProxy) public proxies;
}
/**
* @title ERC721Tradable
* ERC721Tradable - ERC721 contract that whitelists a trading address, and has minting functionality.
*/
... | _getNextTokenId()<=SUPPLYCAP,'Cannot mint over supply cap of 5000' | 354,958 | _getNextTokenId()<=SUPPLYCAP |
"The accepted token address must be a deployed contract" | pragma solidity ^0.7.6;
contract Marketplace is Ownable, Pausable, MarketplaceStorage, NativeMetaTransaction {
using SafeMath for uint256;
using Address for address;
address sellerAddress;
/**
* @dev Initialize this contract. Acts as a constructor
* @param _acceptedToken - Address of the ERC20 ac... | _acceptedToken.isContract(),"The accepted token address must be a deployed contract" | 355,008 | _acceptedToken.isContract() |
"The contract is not authorized to manage the asset" | pragma solidity ^0.7.6;
contract Marketplace is Ownable, Pausable, MarketplaceStorage, NativeMetaTransaction {
using SafeMath for uint256;
using Address for address;
address sellerAddress;
/**
* @dev Initialize this contract. Acts as a constructor
* @param _acceptedToken - Address of the ERC20 ac... | nftRegistry.getApproved(assetId)==address(this)||nftRegistry.isApprovedForAll(assetOwner,address(this)),"The contract is not authorized to manage the asset" | 355,008 | nftRegistry.getApproved(assetId)==address(this)||nftRegistry.isApprovedForAll(assetOwner,address(this)) |
"Transfering the publication fee to the Marketplace owner failed" | pragma solidity ^0.7.6;
contract Marketplace is Ownable, Pausable, MarketplaceStorage, NativeMetaTransaction {
using SafeMath for uint256;
using Address for address;
address sellerAddress;
/**
* @dev Initialize this contract. Acts as a constructor
* @param _acceptedToken - Address of the ERC20 ac... | acceptedToken.transferFrom(sender,owner(),publicationFeeInWei),"Transfering the publication fee to the Marketplace owner failed" | 355,008 | acceptedToken.transferFrom(sender,owner(),publicationFeeInWei) |
"The asset fingerprint is not valid" | pragma solidity ^0.7.6;
contract Marketplace is Ownable, Pausable, MarketplaceStorage, NativeMetaTransaction {
using SafeMath for uint256;
using Address for address;
address sellerAddress;
/**
* @dev Initialize this contract. Acts as a constructor
* @param _acceptedToken - Address of the ERC20 ac... | nftRegistry.verifyFingerprint(assetId,fingerprint),"The asset fingerprint is not valid" | 355,008 | nftRegistry.verifyFingerprint(assetId,fingerprint) |
"Transfering the sale amount to the seller failed" | pragma solidity ^0.7.6;
contract Marketplace is Ownable, Pausable, MarketplaceStorage, NativeMetaTransaction {
using SafeMath for uint256;
using Address for address;
address sellerAddress;
/**
* @dev Initialize this contract. Acts as a constructor
* @param _acceptedToken - Address of the ERC20 ac... | acceptedToken.transferFrom(sender,seller,price),"Transfering the sale amount to the seller failed" | 355,008 | acceptedToken.transferFrom(sender,seller,price) |
"The NFT Address should be a contract" | pragma solidity ^0.7.6;
contract Marketplace is Ownable, Pausable, MarketplaceStorage, NativeMetaTransaction {
using SafeMath for uint256;
using Address for address;
address sellerAddress;
/**
* @dev Initialize this contract. Acts as a constructor
* @param _acceptedToken - Address of the ERC20 ac... | nftAddress.isContract(),"The NFT Address should be a contract" | 355,008 | nftAddress.isContract() |
"The NFT contract has an invalid ERC721 implementation" | pragma solidity ^0.7.6;
contract Marketplace is Ownable, Pausable, MarketplaceStorage, NativeMetaTransaction {
using SafeMath for uint256;
using Address for address;
address sellerAddress;
/**
* @dev Initialize this contract. Acts as a constructor
* @param _acceptedToken - Address of the ERC20 ac... | nftRegistry.supportsInterface(ERC721_Interface),"The NFT contract has an invalid ERC721 implementation" | 355,008 | nftRegistry.supportsInterface(ERC721_Interface) |
null | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
interface IRevenueContract {
function distributeRewards(uint16 s... | isContract(_revenueContract) | 355,141 | isContract(_revenueContract) |
null | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
interface IRevenueContract {
function distributeRewards(uint16 s... | withdrawalBalances[msg.sender]>=amount | 355,141 | withdrawalBalances[msg.sender]>=amount |
"Starting index set" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.6;
// @title: HAPE PRIME
// @desc: NEXT-GEN, HIGH FASHION HAPES
// @artist: https://twitter.com/DigimentalLDN
// @team: https://twitter.com/TheCarlbrutal
// @team: https://twitter.com/_trouvelot
// @author: https://twitter.com/rickeccak
// @url: https://www... | !isStartingIndexLocked,"Starting index set" | 355,158 | !isStartingIndexLocked |
'Already registered.' | pragma solidity 0.5.17;
/***************
** **
** INTERFACES **
** **
***************/
/**
* @title Interface for Kong ERC20 Token Contract.
*/
interface KongERC20Interface {
function balanceOf(address who) external view returns (uint256);
function transfer(address to, uint256 va... | _deviceRoots[deviceRootHash].deviceRoot==0,'Already registered.' | 355,173 | _deviceRoots[deviceRootHash].deviceRoot==0 |
'Exceeds cumulative limit.' | pragma solidity 0.5.17;
/***************
** **
** INTERFACES **
** **
***************/
/**
* @title Interface for Kong ERC20 Token Contract.
*/
interface KongERC20Interface {
function balanceOf(address who) external view returns (uint256);
function transfer(address to, uint256 va... | _totalMintable.add(totalMintableKong)<=_maxMinted,'Exceeds cumulative limit.' | 355,173 | _totalMintable.add(totalMintableKong)<=_maxMinted |
'Device not found in root.' | pragma solidity 0.5.17;
/***************
** **
** INTERFACES **
** **
***************/
/**
* @title Interface for Kong ERC20 Token Contract.
*/
interface KongERC20Interface {
function balanceOf(address who) external view returns (uint256);
function transfer(address to, uint256 va... | verifyProof(proof,r.deviceRoot,hardwareHash,r.deviceKongAmount),'Device not found in root.' | 355,173 | verifyProof(proof,r.deviceRoot,hardwareHash,r.deviceKongAmount) |
'Already minted.' | pragma solidity 0.5.17;
/***************
** **
** INTERFACES **
** **
***************/
/**
* @title Interface for Kong ERC20 Token Contract.
*/
interface KongERC20Interface {
function balanceOf(address who) external view returns (uint256);
function transfer(address to, uint256 va... | _devices[hardwareHash].kongAmount==0,'Already minted.' | 355,173 | _devices[hardwareHash].kongAmount==0 |
'Already has address.' | pragma solidity 0.5.17;
/***************
** **
** INTERFACES **
** **
***************/
/**
* @title Interface for Kong ERC20 Token Contract.
*/
interface KongERC20Interface {
function balanceOf(address who) external view returns (uint256);
function transfer(address to, uint256 va... | _devices[hardwareHash].contractAddress==address(0),'Already has address.' | 355,173 | _devices[hardwareHash].contractAddress==address(0) |
"Caller is not partner" | pragma solidity =0.5.16;
import "./Ownable.sol";
import "./libraries/SafeMath.sol";
contract MonetAirdrop is Ownable {
using SafeMath for uint256;
address public tokenCards;
uint256 public laveCards;
mapping(uint256 => uint256) cardNums;
mapping(address => bool) public partner;
construc... | partner[msg.sender],"Caller is not partner" | 355,220 | partner[msg.sender] |
"nc" | pragma experimental ABIEncoderV2;
pragma solidity ^0.8.10;
//SPDX-License-Identifier: MIT
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
// ... | Address.isContract(dao),"nc" | 355,267 | Address.isContract(dao) |
"sold out" | pragma experimental ABIEncoderV2;
pragma solidity ^0.8.10;
//SPDX-License-Identifier: MIT
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
// ... | _tokenIds.current()+mintInfos.length<=settings.maxMint,"sold out" | 355,267 | _tokenIds.current()+mintInfos.length<=settings.maxMint |
"only owner" | pragma experimental ABIEncoderV2;
pragma solidity ^0.8.10;
//SPDX-License-Identifier: MIT
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
// ... | keccak256(abi.encodePacked(mintInfos[i].specialStatus))==keccak256(abi.encodePacked(""))||msg.sender==owner,"only owner" | 355,267 | keccak256(abi.encodePacked(mintInfos[i].specialStatus))==keccak256(abi.encodePacked(""))||msg.sender==owner |
"Edition disabled" | pragma solidity ^0.5.0;
contract RendarToken is CustomERC721Metadata, WhitelistedRole {
using SafeMath for uint256;
////////////
// Events //
////////////
// Emitted on every edition created
event EditionCreated(
uint256 indexed _editionId
);
///////////////
// Var... | editionIdToEditionDetails[_editionId].active,"Edition disabled" | 355,293 | editionIdToEditionDetails[_editionId].active |
"Edition ID invalid" | pragma solidity ^0.5.0;
contract RendarToken is CustomERC721Metadata, WhitelistedRole {
using SafeMath for uint256;
////////////
// Events //
////////////
// Emitted on every edition created
event EditionCreated(
uint256 indexed _editionId
);
///////////////
// Var... | editionIdToEditionDetails[_editionId].editionId>0,"Edition ID invalid" | 355,293 | editionIdToEditionDetails[_editionId].editionId>0 |
"Edition sold out" | pragma solidity ^0.5.0;
contract RendarToken is CustomERC721Metadata, WhitelistedRole {
using SafeMath for uint256;
////////////
// Events //
////////////
// Emitted on every edition created
event EditionCreated(
uint256 indexed _editionId
);
///////////////
// Var... | editionIdToEditionDetails[_editionId].editionSupply<editionIdToEditionDetails[_editionId].editionSize,"Edition sold out" | 355,293 | editionIdToEditionDetails[_editionId].editionSupply<editionIdToEditionDetails[_editionId].editionSize |
"Base URI invalid" | pragma solidity ^0.5.0;
contract RendarToken is CustomERC721Metadata, WhitelistedRole {
using SafeMath for uint256;
////////////
// Events //
////////////
// Emitted on every edition created
event EditionCreated(
uint256 indexed _editionId
);
///////////////
// Var... | bytes(_newBaseURI).length!=0,"Base URI invalid" | 355,293 | bytes(_newBaseURI).length!=0 |
"Symbiosis: not enough token left to mint" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC... | (_totalMinted.current()+quantity)<=TOKEN_LIMIT,"Symbiosis: not enough token left to mint" | 355,310 | (_totalMinted.current()+quantity)<=TOKEN_LIMIT |
"Symbiosis: exceed maximum token limit" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC... | (_totalMinted.current()+_count)<=TOKEN_LIMIT,"Symbiosis: exceed maximum token limit" | 355,310 | (_totalMinted.current()+_count)<=TOKEN_LIMIT |
"Symbiosis: transfer to non ERC721Receiver implementer" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC... | _checkOnERC721Received(address(0),_msgSender(),tokenId,""),"Symbiosis: transfer to non ERC721Receiver implementer" | 355,310 | _checkOnERC721Received(address(0),_msgSender(),tokenId,"") |
"Symbiosis: transfer from of token that is not own" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC... | Symbiosis.ownerOf(tokenId)==from,"Symbiosis: transfer from of token that is not own" | 355,310 | Symbiosis.ownerOf(tokenId)==from |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.