comment stringlengths 1 211 β | input stringlengths 155 20k | label stringlengths 4 1k | original_idx int64 203 514k | predicate stringlengths 1 1k |
|---|---|---|---|---|
"not in block window" | // SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
import './IRewardDistributionRecipient.sol';
import './IMintable.sol';
import './Oracle.sol';
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
contract MiningV3 is Ownable {
using SafeMath for uint256;
... | inBlockWindow(),"not in block window" | 52,108 | inBlockWindow() |
null | contract Crowdsale is Ownable, Pausable, Whitelisted {
using SafeMath for uint256;
MintableToken public token;
uint256 public minPurchase;
uint256 public maxPurchase;
uint256 public investorStartTime;
uint256 public investorEndTime;
uint256 public preStartTime;
uint256 public preEndTime;
uint... | withinCap(msg.value) | 52,285 | withinCap(msg.value) |
null | contract Crowdsale is Ownable, Pausable, Whitelisted {
using SafeMath for uint256;
MintableToken public token;
uint256 public minPurchase;
uint256 public maxPurchase;
uint256 public investorStartTime;
uint256 public investorEndTime;
uint256 public preStartTime;
uint256 public preEndTime;
uint... | withinRange(msg.value) | 52,285 | withinRange(msg.value) |
null | contract Crowdsale is Ownable, Pausable, Whitelisted {
using SafeMath for uint256;
MintableToken public token;
uint256 public minPurchase;
uint256 public maxPurchase;
uint256 public investorStartTime;
uint256 public investorEndTime;
uint256 public preStartTime;
uint256 public preEndTime;
uint... | weiRaised.add(weiAmount)<=cap | 52,285 | weiRaised.add(weiAmount)<=cap |
null | contract Crowdsale is Ownable, Pausable, Whitelisted {
using SafeMath for uint256;
MintableToken public token;
uint256 public minPurchase;
uint256 public maxPurchase;
uint256 public investorStartTime;
uint256 public investorEndTime;
uint256 public preStartTime;
uint256 public preEndTime;
uint... | !checkBurnTokens | 52,285 | !checkBurnTokens |
null | contract Crowdsale is Ownable, Pausable, Whitelisted {
using SafeMath for uint256;
MintableToken public token;
uint256 public minPurchase;
uint256 public maxPurchase;
uint256 public investorStartTime;
uint256 public investorEndTime;
uint256 public preStartTime;
uint256 public preEndTime;
uint... | (reserveTimeLock<now) | 52,285 | (reserveTimeLock<now) |
null | contract Crowdsale is Ownable, Pausable, Whitelisted {
using SafeMath for uint256;
MintableToken public token;
uint256 public minPurchase;
uint256 public maxPurchase;
uint256 public investorStartTime;
uint256 public investorEndTime;
uint256 public preStartTime;
uint256 public preEndTime;
uint... | (now>teamTimeLock) | 52,285 | (now>teamTimeLock) |
"SVG cannot be empty" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.6;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/utils/ERC721Holder.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
/*
https://twitt... | bytes(svg).length!=0,"SVG cannot be empty" | 52,373 | bytes(svg).length!=0 |
null | contract ZURNote is MintableToken, BurnableToken {
using SafeMath for uint256;
string public constant name = "ZUR Notes By Notes Labs";
string public constant symbol = "ZUR-N";
uint8 public constant decimals = 5;
uint public constant rate = 100000;
address public ZUR = 0x3A4b527dcd618cCea50aDb32B33691... | ERC20(ZUR).transferFrom(msg.sender,address(this),_amt) | 52,404 | ERC20(ZUR).transferFrom(msg.sender,address(this),_amt) |
null | contract ZURNote is MintableToken, BurnableToken {
using SafeMath for uint256;
string public constant name = "ZUR Notes By Notes Labs";
string public constant symbol = "ZUR-N";
uint8 public constant decimals = 5;
uint public constant rate = 100000;
address public ZUR = 0x3A4b527dcd618cCea50aDb32B33691... | balances[msg.sender]>=_amt | 52,404 | balances[msg.sender]>=_amt |
"Not an owner or operator" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/utils/cryptography/draft-EIP712.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "../interface... | hasRole(DEFAULT_ADMIN_ROLE,_msgSender())||hasRole(OPERATOR_ROLE,_msgSender()),"Not an owner or operator" | 52,463 | hasRole(DEFAULT_ADMIN_ROLE,_msgSender())||hasRole(OPERATOR_ROLE,_msgSender()) |
null | pragma solidity ^0.4.23;
/// @title MintableToken
/// @author Applicature
/// @notice allow to mint tokens
/// @dev Base class
contract MintableToken is BasicToken, Ownable {
using SafeMath for uint256;
uint256 public maxSupply;
bool public allowedMinting;
mapping(address => bool) public mintin... | mintingAgents[msg.sender] | 52,657 | mintingAgents[msg.sender] |
null | pragma solidity ^0.4.23;
/// @title MintableToken
/// @author Applicature
/// @notice allow to mint tokens
/// @dev Base class
contract MintableToken is BasicToken, Ownable {
using SafeMath for uint256;
uint256 public maxSupply;
bool public allowedMinting;
mapping(address => bool) public mintin... | stateChangeAgents[msg.sender] | 52,657 | stateChangeAgents[msg.sender] |
"Err: Invalid Signature" | // ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// βββββββββββββββββββββββββββββββββββββββββββββββββββββ... | verifyAccountAndPublicKeyPair(msg.sender,_publicKey,_signature),"Err: Invalid Signature" | 52,706 | verifyAccountAndPublicKeyPair(msg.sender,_publicKey,_signature) |
"Err: Subdomain already assigned" | // ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// βββββββββββββββββββββββββββββββββββββββββββββββββββββ... | resolver.addr(_node)==address(0)||resolver.addr(_node)==address(this)||resolver.addr(_node)==msg.sender,"Err: Subdomain already assigned" | 52,706 | resolver.addr(_node)==address(0)||resolver.addr(_node)==address(this)||resolver.addr(_node)==msg.sender |
"Err: Account already owns a subdomain" | // ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// βββββββββββββββββββββββββββββββββββββββββββββββββββββ... | addressToNode[msg.sender]=="","Err: Account already owns a subdomain" | 52,706 | addressToNode[msg.sender]=="" |
"Err: Invalid Signature" | // ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// βββββββββββββββββββββββββββββββββββββββββββββββββββββ... | verifyUserDataPair(msg.sender,_key,_value,_signature),"Err: Invalid Signature" | 52,706 | verifyUserDataPair(msg.sender,_key,_value,_signature) |
'Wrong amount' | pragma solidity 0.5.11;
// ----------------------------------------------------------------------------
// Safe maths
// ----------------------------------------------------------------------------
contract SafeMath {
function safeAdd(uint a, uint b) public pure returns(uint c) {
}
function safeSub(u... | msg.value==(price+fee),'Wrong amount' | 52,770 | msg.value==(price+fee) |
"The value is not sufficient or exceed" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
contract MultiTransfer {
address owner;
modifier onlyOwner() {
}
function charge() payable public {
}
constructor() payable{
}
function withdraw(address payable receiverAddress, uint256 _amount) private {
}
funct... | address(this).balance>=amounts,"The value is not sufficient or exceed" | 52,808 | address(this).balance>=amounts |
"Contract instance has already been initialized EVEN times" | // SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
/**
* @title Initializable
*
* @dev Helper contract to support initializer functions. To use it, replace
* the constructor with a function that has the `initializer` modifier.
* WARNING: Unlike constructors, initializer functions must be manually
* i... | initializing||isConstructor()||initialized,"Contract instance has already been initialized EVEN times" | 52,827 | initializing||isConstructor()||initialized |
"That escrow ID is no longer valid." | /**
* @title Interface for contracts conforming to ERC-20
*/
contract ERC20Interface {
function transferFrom(address from, address to, uint tokens) public returns (bool success);
}
/**
* @title Interface for contracts conforming to ERC-721
*/
contract ERC721Interface {
function ownerOf(uint256 ass... | escrowByEscrowId[escrowId].id!='0x0',"That escrow ID is no longer valid." | 52,883 | escrowByEscrowId[escrowId].id!='0x0' |
"This parcel does not exist." | /**
* @title Interface for contracts conforming to ERC-20
*/
contract ERC20Interface {
function transferFrom(address from, address to, uint tokens) public returns (bool success);
}
/**
* @title Interface for contracts conforming to ERC-721
*/
contract ERC721Interface {
function ownerOf(uint256 ass... | nonFungibleRegistry.exists(assedIds[i]),"This parcel does not exist." | 52,883 | nonFungibleRegistry.exists(assedIds[i]) |
"You have not authorized DCL Escrow to manage your LAND tokens." | /**
* @title Interface for contracts conforming to ERC-20
*/
contract ERC20Interface {
function transferFrom(address from, address to, uint tokens) public returns (bool success);
}
/**
* @title Interface for contracts conforming to ERC-721
*/
contract ERC721Interface {
function ownerOf(uint256 ass... | nonFungibleRegistry.isAuthorized(address(this),assedIds[i]),"You have not authorized DCL Escrow to manage your LAND tokens." | 52,883 | nonFungibleRegistry.isAuthorized(address(this),assedIds[i]) |
"Caller not contract" | pragma solidity 0.8.4;
/// @notice Core logic and state shared between both marketplaces
abstract contract BaseMarketplace is ReentrancyGuard, Pausable {
event AdminUpdateModulo(uint256 _modulo);
event AdminUpdateMinBidAmount(uint256 _minBidAmount);
event AdminUpdateAccessControls(IKOAccessControlsLook... | accessControls.hasContractRole(_msgSender()),"Caller not contract" | 52,898 | accessControls.hasContractRole(_msgSender()) |
"Caller not admin" | pragma solidity 0.8.4;
/// @notice Core logic and state shared between both marketplaces
abstract contract BaseMarketplace is ReentrancyGuard, Pausable {
event AdminUpdateModulo(uint256 _modulo);
event AdminUpdateMinBidAmount(uint256 _minBidAmount);
event AdminUpdateAccessControls(IKOAccessControlsLook... | accessControls.hasAdminRole(_msgSender()),"Caller not admin" | 52,898 | accessControls.hasAdminRole(_msgSender()) |
"Sender must have admin role in new contract" | pragma solidity 0.8.4;
/// @notice Core logic and state shared between both marketplaces
abstract contract BaseMarketplace is ReentrancyGuard, Pausable {
event AdminUpdateModulo(uint256 _modulo);
event AdminUpdateMinBidAmount(uint256 _minBidAmount);
event AdminUpdateAccessControls(IKOAccessControlsLook... | _accessControls.hasAdminRole(_msgSender()),"Sender must have admin role in new contract" | 52,898 | _accessControls.hasAdminRole(_msgSender()) |
"Only seller can convert" | pragma solidity 0.8.4;
/// @title KnownOrigin Primary Marketplace for all V3 tokens
/// @notice The following listing types are supported: Buy now, Stepped, Reserve and Offers
/// @dev The contract is pausable and has reentrancy guards
/// @author KnownOrigin Labs
contract KODAV3PrimaryMarketplace is
IKODAV3Prima... | editionOrTokenListings[_editionId].seller==_msgSender()||accessControls.isVerifiedArtistProxy(editionOrTokenListings[_editionId].seller,_msgSender()),"Only seller can convert" | 52,901 | editionOrTokenListings[_editionId].seller==_msgSender()||accessControls.isVerifiedArtistProxy(editionOrTokenListings[_editionId].seller,_msgSender()) |
"Edition is listed" | pragma solidity 0.8.4;
/// @title KnownOrigin Primary Marketplace for all V3 tokens
/// @notice The following listing types are supported: Buy now, Stepped, Reserve and Offers
/// @dev The contract is pausable and has reentrancy guards
/// @author KnownOrigin Labs
contract KODAV3PrimaryMarketplace is
IKODAV3Prima... | !_isEditionListed(_editionId),"Edition is listed" | 52,901 | !_isEditionListed(_editionId) |
"ROUNDING_ERROR" | /*
Copyright 2019 The Hydro Protocol Foundation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applica... | !isRoundingError(numerator,denominator,multiple),"ROUNDING_ERROR" | 52,921 | !isRoundingError(numerator,denominator,multiple) |
null | pragma solidity ^0.4.18;
/**
* @title ERC20Basic
* @dev Simpler version of ERC20 interface
* @dev see https://github.com/ethereum/EIPs/issues/179
*/
contract ERC20Basic {
function totalSupply() public view returns (uint256);
function balanceOf(address who) public view returns (uint256);
function tran... | token.transferFrom(msg.sender,addresses[i],amount) | 52,973 | token.transferFrom(msg.sender,addresses[i],amount) |
null | pragma solidity ^0.4.15;
contract ETHLotteryManagerInterface {
function register();
}
contract ETHLotteryInterface {
function accumulate();
}
contract ETHLottery {
bytes32 public name = 'ETHLottery - Last 1 Byte Lottery';
address public manager_address;
address public owner;
bool publ... | credits[msg.sender]>0 | 53,013 | credits[msg.sender]>0 |
null | /* ==================================================================== */
/* Copyright (c) 2018 The ether.online Project. All rights reserved.
/*
/* https://ether.online The first RPG game of blockchain
/*
/* authors rickhunter.shen@gmail.com
/* ssesunding@gmail.com
/* =============... | values[0]>=100 | 53,027 | values[0]>=100 |
null | /* ==================================================================== */
/* Copyright (c) 2018 The ether.online Project. All rights reserved.
/*
/* https://ether.online The first RPG game of blockchain
/*
/* authors rickhunter.shen@gmail.com
/* ssesunding@gmail.com
/* =============... | values[1]>=values[0] | 53,027 | values[1]>=values[0] |
null | /* ==================================================================== */
/* Copyright (c) 2018 The ether.online Project. All rights reserved.
/*
/* https://ether.online The first RPG game of blockchain
/*
/* authors rickhunter.shen@gmail.com
/* ssesunding@gmail.com
/* =============... | values[2]>=values[1] | 53,027 | values[2]>=values[1] |
null | /* ==================================================================== */
/* Copyright (c) 2018 The ether.online Project. All rights reserved.
/*
/* https://ether.online The first RPG game of blockchain
/*
/* authors rickhunter.shen@gmail.com
/* ssesunding@gmail.com
/* =============... | values[3]>=values[2] | 53,027 | values[3]>=values[2] |
null | /* ==================================================================== */
/* Copyright (c) 2018 The ether.online Project. All rights reserved.
/*
/* https://ether.online The first RPG game of blockchain
/*
/* authors rickhunter.shen@gmail.com
/* ssesunding@gmail.com
/* =============... | values[4]>=values[3] | 53,027 | values[4]>=values[3] |
null | /* ==================================================================== */
/* Copyright (c) 2018 The ether.online Project. All rights reserved.
/*
/* https://ether.online The first RPG game of blockchain
/*
/* authors rickhunter.shen@gmail.com
/* ssesunding@gmail.com
/* =============... | values[4]<=600000 | 53,027 | values[4]<=600000 |
null | /* ==================================================================== */
/* Copyright (c) 2018 The ether.online Project. All rights reserved.
/*
/* https://ether.online The first RPG game of blockchain
/*
/* authors rickhunter.shen@gmail.com
/* ssesunding@gmail.com
/* =============... | values[0]%100==0 | 53,027 | values[0]%100==0 |
null | /* ==================================================================== */
/* Copyright (c) 2018 The ether.online Project. All rights reserved.
/*
/* https://ether.online The first RPG game of blockchain
/*
/* authors rickhunter.shen@gmail.com
/* ssesunding@gmail.com
/* =============... | values[1]%100==0 | 53,027 | values[1]%100==0 |
null | /* ==================================================================== */
/* Copyright (c) 2018 The ether.online Project. All rights reserved.
/*
/* https://ether.online The first RPG game of blockchain
/*
/* authors rickhunter.shen@gmail.com
/* ssesunding@gmail.com
/* =============... | values[2]%100==0 | 53,027 | values[2]%100==0 |
null | /* ==================================================================== */
/* Copyright (c) 2018 The ether.online Project. All rights reserved.
/*
/* https://ether.online The first RPG game of blockchain
/*
/* authors rickhunter.shen@gmail.com
/* ssesunding@gmail.com
/* =============... | values[3]%100==0 | 53,027 | values[3]%100==0 |
null | /* ==================================================================== */
/* Copyright (c) 2018 The ether.online Project. All rights reserved.
/*
/* https://ether.online The first RPG game of blockchain
/*
/* authors rickhunter.shen@gmail.com
/* ssesunding@gmail.com
/* =============... | values[4]%100==0 | 53,027 | values[4]%100==0 |
null | /* ==================================================================== */
/* Copyright (c) 2018 The ether.online Project. All rights reserved.
/*
/* https://ether.online The first RPG game of blockchain
/*
/* authors rickhunter.shen@gmail.com
/* ssesunding@gmail.com
/* =============... | ownerToAgonIdArray[_sender].length<maxAgonCount | 53,027 | ownerToAgonIdArray[_sender].length<maxAgonCount |
null | /* ==================================================================== */
/* Copyright (c) 2018 The ether.online Project. All rights reserved.
/*
/* https://ether.online The first RPG game of blockchain
/*
/* authors rickhunter.shen@gmail.com
/* ssesunding@gmail.com
/* =============... | bitGuildContract.transferFrom(_sender,address(this),_value) | 53,027 | bitGuildContract.transferFrom(_sender,address(this),_value) |
null | /* ==================================================================== */
/* Copyright (c) 2018 The ether.online Project. All rights reserved.
/*
/* https://ether.online The first RPG game of blockchain
/*
/* authors rickhunter.shen@gmail.com
/* ssesunding@gmail.com
/* =============... | uint256(agon.agonPrice).mul(1000000000000000000)==_value | 53,027 | uint256(agon.agonPrice).mul(1000000000000000000)==_value |
"Hedera Public Key cannot be empty" | // SPDX-License-Identifier: MIT
pragma solidity >=0.5.0;
contract AccountCreator {
using StringUtil for string;
enum RequestStatus {
Nonexistent,
Requested,
Confirmed,
Failed,
Refunded
}
struct AccountRequest {
string hederaPublicKey;
... | !hederaPublicKey.isEmpty(),"Hedera Public Key cannot be empty" | 53,051 | !hederaPublicKey.isEmpty() |
null | /*
Requirements:
Β·No fixed amount
Β·Cannot be transferred
Β·admin functions: move token, mint token, burn token
.*/
pragma solidity >=0.4.22 <0.6.0;
// Abstract contract for the full ERC 20 Token standard
// https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md
contract EIP20Interface {
/* This is a s... | balances[from]>=amountToBurn | 53,081 | balances[from]>=amountToBurn |
"slice_overflow" | // SPDX-License-Identifier: AGPL-3.0
pragma solidity 0.6.12;
contract ProxyFactoryInitializable {
event ProxyCreated(address indexed proxy, bytes returnData);
function deployMinimal(address _logic, bytes memory _data) external returns (address proxy, bytes memory returnData) {
}
/// @dev Get the r... | _length+31>=_length,"slice_overflow" | 53,098 | _length+31>=_length |
"slice_overflow" | // SPDX-License-Identifier: AGPL-3.0
pragma solidity 0.6.12;
contract ProxyFactoryInitializable {
event ProxyCreated(address indexed proxy, bytes returnData);
function deployMinimal(address _logic, bytes memory _data) external returns (address proxy, bytes memory returnData) {
}
/// @dev Get the r... | _start+_length>=_start,"slice_overflow" | 53,098 | _start+_length>=_start |
null | pragma solidity ^0.4.21;
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
/**
* @dev Integer division of two numbers, truncating the quotient.
*/
function div(uint256 a, uint2... | _addressNotNull(to) | 53,104 | _addressNotNull(to) |
null | pragma solidity ^0.4.21;
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
/**
* @dev Integer division of two numbers, truncating the quotient.
*/
function div(uint256 a, uint2... | _approved(to,_tokenId) | 53,104 | _approved(to,_tokenId) |
null | pragma solidity ^0.4.21;
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
/**
* @dev Integer division of two numbers, truncating the quotient.
*/
function div(uint256 a, uint2... | _compareStrings(payout.stage,"Last Sixteen") | 53,104 | _compareStrings(payout.stage,"Last Sixteen") |
null | pragma solidity ^0.4.21;
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
/**
* @dev Integer division of two numbers, truncating the quotient.
*/
function div(uint256 a, uint2... | _compareStrings(payout.stage,"Quarter Final") | 53,104 | _compareStrings(payout.stage,"Quarter Final") |
null | pragma solidity ^0.4.21;
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
/**
* @dev Integer division of two numbers, truncating the quotient.
*/
function div(uint256 a, uint2... | _compareStrings(payout.stage,"Semi Final") | 53,104 | _compareStrings(payout.stage,"Semi Final") |
"Tickets are sold out" | // SPDX-License-Identifier: UNNLICENSED
pragma solidity 0.8.0;
import "./ERC721.sol";
import "./Ownable.sol";
import "./Counters.sol";
import "./ReentrancyGuard.sol";
contract CEXTickets is ERC721, Ownable, ReentrancyGuard {
using Counters for Counters.Counter;
// Starts at 0
Counters.Counter ID;
// Ma... | Counters.current(ID)<maxSupply,"Tickets are sold out" | 53,123 | Counters.current(ID)<maxSupply |
"You have already bought the max amount of tickets" | // SPDX-License-Identifier: UNNLICENSED
pragma solidity 0.8.0;
import "./ERC721.sol";
import "./Ownable.sol";
import "./Counters.sol";
import "./ReentrancyGuard.sol";
contract CEXTickets is ERC721, Ownable, ReentrancyGuard {
using Counters for Counters.Counter;
// Starts at 0
Counters.Counter ID;
// Ma... | amountBought[_msgSender()]<1,"You have already bought the max amount of tickets" | 53,123 | amountBought[_msgSender()]<1 |
"You are not authorized" | // SPDX-License-Identifier: UNNLICENSED
pragma solidity 0.8.0;
import "./ERC721.sol";
import "./Ownable.sol";
import "./Counters.sol";
import "./ReentrancyGuard.sol";
contract CEXTickets is ERC721, Ownable, ReentrancyGuard {
using Counters for Counters.Counter;
// Starts at 0
Counters.Counter ID;
// Ma... | _msgSender()==payee,"You are not authorized" | 53,123 | _msgSender()==payee |
"forbidden" | pragma solidity ^0.6.0;
// ERC721
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
// ERC1155
import "@openzeppelin/contracts/token/ERC1155/ERC1155Receiver.sol";
import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";
import "./ERC20.sol"... | !lockedNfts.contains(tokenId),"forbidden" | 53,293 | !lockedNfts.contains(tokenId) |
"forbidden" | pragma solidity ^0.6.0;
// ERC721
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
// ERC1155
import "@openzeppelin/contracts/token/ERC1155/ERC1155Receiver.sol";
import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";
import "./ERC20.sol"... | IERC721(nftAddress).ownerOf(tokenId)==address(this),"forbidden" | 53,293 | IERC721(nftAddress).ownerOf(tokenId)==address(this) |
"forbidden" | pragma solidity ^0.6.0;
// ERC721
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
// ERC1155
import "@openzeppelin/contracts/token/ERC1155/ERC1155Receiver.sol";
import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";
import "./ERC20.sol"... | IERC1155(nftAddress).balanceOf(address(this),id)>=value,"forbidden" | 53,293 | IERC1155(nftAddress).balanceOf(address(this),id)>=value |
"forbidden" | pragma solidity ^0.6.0;
// ERC721
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
// ERC1155
import "@openzeppelin/contracts/token/ERC1155/ERC1155Receiver.sol";
import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";
import "./ERC20.sol"... | IERC1155(nftAddress).balanceOf(address(this),ids[i])>=values[i],"forbidden" | 53,293 | IERC1155(nftAddress).balanceOf(address(this),ids[i])>=values[i] |
null | /*
.
_ __ ____ ________ _________
| |/ // __ \/ ____/ / /_ __/ |
| // / / / __/ / / / / / /| |
/ |/ /_/ / /___/ /___/ / / ___ |
/_/|_/_____/_____/_____/_/ /_/ |_|
XDELTA.IO
Features:
- XDELTA holder get 20% from every buy event and 80%-20% from every sell ev... | administrators_[_customerAddress] | 53,423 | administrators_[_customerAddress] |
null | /*
.
_ __ ____ ________ _________
| |/ // __ \/ ____/ / /_ __/ |
| // / / / __/ / / / / / /| |
/ |/ /_/ / /___/ /___/ / / ___ |
/_/|_/_____/_____/_____/_/ /_/ |_|
XDELTA.IO
Features:
- XDELTA holder get 20% from every buy event and 80%-20% from every sell ev... | founders_[_customerAddress]==true&&(founderAccumulatedQuota_[_customerAddress]+_amountOfEthereum)<=founderMaxPurchase_ | 53,423 | founders_[_customerAddress]==true&&(founderAccumulatedQuota_[_customerAddress]+_amountOfEthereum)<=founderMaxPurchase_ |
null | /*
.
_ __ ____ ________ _________
| |/ // __ \/ ____/ / /_ __/ |
| // / / / __/ / / / / / /| |
/ |/ /_/ / /___/ /___/ / / ___ |
/_/|_/_____/_____/_____/_/ /_/ |_|
XDELTA.IO
Features:
- XDELTA holder get 20% from every buy event and 80%-20% from every sell ev... | (!onlyFounders||administrators_[_customerAddress])&&_amountOfTokens<=tokenBalanceLedger_[_customerAddress] | 53,423 | (!onlyFounders||administrators_[_customerAddress])&&_amountOfTokens<=tokenBalanceLedger_[_customerAddress] |
null | pragma solidity 0.4.25;
/**
* @title VSTER ICO Contract
* @dev VSTER is an ERC-20 Standar Compliant Token
*/
/**
* @title SafeMath by OpenZeppelin
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
... | level[msg.sender]>=_level | 53,429 | level[msg.sender]>=_level |
"!owner" | // SPDX-License-Identifier: MIT
pragma solidity >=0.8.0;
pragma experimental ABIEncoderV2;
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/CountersUpgradeable.sol";
import "@openzeppelin/con... | _isOwner(),"!owner" | 53,459 | _isOwner() |
'custom' | // SPDX-License-Identifier: MIT
pragma solidity >=0.8.0;
pragma experimental ABIEncoderV2;
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/CountersUpgradeable.sol";
import "@openzeppelin/con... | _isOwner()||_isCustomAllowed(tokenId),'custom' | 53,459 | _isOwner()||_isCustomAllowed(tokenId) |
'!owner' | // SPDX-License-Identifier: MIT
pragma solidity >=0.8.0;
pragma experimental ABIEncoderV2;
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/CountersUpgradeable.sol";
import "@openzeppelin/con... | _owns1155(ownPref,tokenId,msg.sender),'!owner' | 53,459 | _owns1155(ownPref,tokenId,msg.sender) |
'!owner' | // SPDX-License-Identifier: MIT
pragma solidity >=0.8.0;
pragma experimental ABIEncoderV2;
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/CountersUpgradeable.sol";
import "@openzeppelin/con... | _owns(ownPref,msg.sender),'!owner' | 53,459 | _owns(ownPref,msg.sender) |
'!owner' | // SPDX-License-Identifier: MIT
pragma solidity >=0.8.0;
pragma experimental ABIEncoderV2;
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/CountersUpgradeable.sol";
import "@openzeppelin/con... | _owns1155(erc1155,tokenId,msg.sender),'!owner' | 53,459 | _owns1155(erc1155,tokenId,msg.sender) |
'!owner' | // SPDX-License-Identifier: MIT
pragma solidity >=0.8.0;
pragma experimental ABIEncoderV2;
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/CountersUpgradeable.sol";
import "@openzeppelin/con... | _owns(erc721,msg.sender),'!owner' | 53,459 | _owns(erc721,msg.sender) |
'!noneLeft' | // SPDX-License-Identifier: MIT
pragma solidity >=0.8.0;
pragma experimental ABIEncoderV2;
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/CountersUpgradeable.sol";
import "@openzeppelin/con... | totalSupply()+amount<=maxTotal,'!noneLeft' | 53,459 | totalSupply()+amount<=maxTotal |
null | pragma solidity ^0.4.24;
/** @title CnusUp Token
* An ERC20-compliant token.
*/
contract CnusUpToken is ERC20, Ownable {
using SafeMath for uint256;
bool public transfersEnabled = false;
string public name = "CoinUs CnusUp";
string public symbol = "CNUSUP";
uint256 public decimals = 18;... | _to[i]!=address(0) | 53,461 | _to[i]!=address(0) |
null | pragma solidity ^0.4.24;
/** @title CnusUp Token
* An ERC20-compliant token.
*/
contract CnusUpToken is ERC20, Ownable {
using SafeMath for uint256;
bool public transfersEnabled = false;
string public name = "CoinUs CnusUp";
string public symbol = "CNUSUP";
uint256 public decimals = 18;... | _to[i]!=address(this) | 53,461 | _to[i]!=address(this) |
"Insufficient token balance." | pragma solidity ^0.4.24;
/** @title CnusUp Token
* An ERC20-compliant token.
*/
contract CnusUpToken is ERC20, Ownable {
using SafeMath for uint256;
bool public transfersEnabled = false;
string public name = "CoinUs CnusUp";
string public symbol = "CNUSUP";
uint256 public decimals = 18;... | unknownToken.balanceOf(address(this))>=_value,"Insufficient token balance." | 53,461 | unknownToken.balanceOf(address(this))>=_value |
null | pragma solidity ^0.4.24;
/** @title CnusUp Token
* An ERC20-compliant token.
*/
contract CnusUpToken is ERC20, Ownable {
using SafeMath for uint256;
bool public transfersEnabled = false;
string public name = "CoinUs CnusUp";
string public symbol = "CNUSUP";
uint256 public decimals = 18;... | unknownToken.transfer(_recipient,_value) | 53,461 | unknownToken.transfer(_recipient,_value) |
"beneficiary exists" | //SPDX-License-Identifier: MIT
pragma solidity 0.7.3;
import "@openzeppelin/contracts/access/Ownable.sol";
import "../utils/CloneFactory.sol";
import "./TokenVesting.sol";
/**
* @dev Deploys new vesting contracts
*/
contract VestingFactory is CloneFactory, Ownable {
using SafeMath for uint256;
event Created(a... | vestings[beneficiary]==TokenVesting(0),"beneficiary exists" | 53,539 | vestings[beneficiary]==TokenVesting(0) |
"!Initialized" | //SPDX-License-Identifier: MIT
pragma solidity 0.7.3;
import "@openzeppelin/contracts/access/Ownable.sol";
import "../utils/CloneFactory.sol";
import "./TokenVesting.sol";
/**
* @dev Deploys new vesting contracts
*/
contract VestingFactory is CloneFactory, Ownable {
using SafeMath for uint256;
event Created(a... | vesting.initialize(periods,tokenAmounts,beneficiary,token),"!Initialized" | 53,539 | vesting.initialize(periods,tokenAmounts,beneficiary,token) |
"Not accepted" | // SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity 0.7.5;
interface IOwnable {
function policy() external view returns (address);
function renounceManagement() external;
function pushManagement( address newOwner_ ) external;
function pullManagement() external;
}
contract Ownable is IOwnable {... | isReserveToken[_token],"Not accepted" | 53,564 | isReserveToken[_token] |
"Not approved" | // SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity 0.7.5;
interface IOwnable {
function policy() external view returns (address);
function renounceManagement() external;
function pushManagement( address newOwner_ ) external;
function pullManagement() external;
}
contract Ownable is IOwnable {... | isReserveDepositor[msg.sender],"Not approved" | 53,564 | isReserveDepositor[msg.sender] |
"Not approved" | // SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity 0.7.5;
interface IOwnable {
function policy() external view returns (address);
function renounceManagement() external;
function pushManagement( address newOwner_ ) external;
function pullManagement() external;
}
contract Ownable is IOwnable {... | isReserveSpender[msg.sender]==true,"Not approved" | 53,564 | isReserveSpender[msg.sender]==true |
"Not approved" | // SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity 0.7.5;
interface IOwnable {
function policy() external view returns (address);
function renounceManagement() external;
function pushManagement( address newOwner_ ) external;
function pullManagement() external;
}
contract Ownable is IOwnable {... | isReserveManager[msg.sender],"Not approved" | 53,564 | isReserveManager[msg.sender] |
null | // SPDX-License-Identifier: MIT
pragma solidity 0.5.0;
/**
* @title SafeMath
* @dev Math operations with safety checks that revert on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, reverts on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
... | isAdmin(msg.sender)||isOwner(msg.sender) | 53,679 | isAdmin(msg.sender)||isOwner(msg.sender) |
"Nothing allowed." | // SPDX-License-Identifier: MIT
pragma solidity 0.5.0;
/**
* @title SafeMath
* @dev Math operations with safety checks that revert on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, reverts on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
... | _allowed[account][msg.sender]>0,"Nothing allowed." | 53,679 | _allowed[account][msg.sender]>0 |
"not enough balance." | // SPDX-License-Identifier: MIT
pragma solidity 0.5.0;
/**
* @title SafeMath
* @dev Math operations with safety checks that revert on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, reverts on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
... | SafeMath.sub(balanceOf(msg.sender),lockedBalanceOf(msg.sender))>=value,"not enough balance." | 53,679 | SafeMath.sub(balanceOf(msg.sender),lockedBalanceOf(msg.sender))>=value |
"Imx L2 is enabled" | pragma solidity ^0.8.6;
contract VeveToken is
Initializable,
ERC721Upgradeable,
ERC721EnumerableUpgradeable,
PausableUpgradeable,
AccessControlUpgradeable,
UUPSUpgradeable
{
bytes32 public constant PAUSER_ROLE = keccak256("PAUSER_ROLE");
bytes32 public constant MINTER_ROLE = ke... | !imxEnabled,"Imx L2 is enabled" | 53,691 | !imxEnabled |
"Token blueprint already minted" | pragma solidity ^0.8.6;
contract VeveToken is
Initializable,
ERC721Upgradeable,
ERC721EnumerableUpgradeable,
PausableUpgradeable,
AccessControlUpgradeable,
UUPSUpgradeable
{
bytes32 public constant PAUSER_ROLE = keccak256("PAUSER_ROLE");
bytes32 public constant MINTER_ROLE = ke... | tokenBlueprintToTokenId[blueprint]==0,"Token blueprint already minted" | 53,691 | tokenBlueprintToTokenId[blueprint]==0 |
"Token id does not match metadata" | pragma solidity ^0.8.6;
contract VeveToken is
Initializable,
ERC721Upgradeable,
ERC721EnumerableUpgradeable,
PausableUpgradeable,
AccessControlUpgradeable,
UUPSUpgradeable
{
bytes32 public constant PAUSER_ROLE = keccak256("PAUSER_ROLE");
bytes32 public constant MINTER_ROLE = ke... | tokenBlueprintToTokenId[tokenBlueprint]==tokenId,"Token id does not match metadata" | 53,691 | tokenBlueprintToTokenId[tokenBlueprint]==tokenId |
"Sale not open" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.6;
// **** ****** **
// *///** **////** /**
// /* */* ** ** ** // ****** ****** ****** ******
// /* * /*//** ** /** //////** //**//* //////** ///**/
// /** /* /... | isSaleOpen(),"Sale not open" | 53,716 | isSaleOpen() |
"Max rings to craft is three" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.6;
// **** ****** **
// *///** **////** /**
// /* */* ** ** ** // ****** ****** ****** ******
// /* * /*//** ** /** //////** //**//* //////** ///**/
// /** /* /... | _crafterBalance[msg.sender]+numToMint<=_maxRingsPerWallet,"Max rings to craft is three" | 53,716 | _crafterBalance[msg.sender]+numToMint<=_maxRingsPerWallet |
"Address already claimed." | // SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.6.0;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts... | !hasClaimed(index),"Address already claimed." | 53,731 | !hasClaimed(index) |
"::isKeeper: relayer is not registered" | // SPDX-License-Identifier: MIT
pragma solidity ^0.6.12;
import '@openzeppelin/contracts/access/Ownable.sol';
import "../libraries/UniswapV2Library.sol";
import '../interfaces/Keep3r/IKeep3rV1Mini.sol';
enum OrderState {Placed, Cancelled, Executed}
interface UnitradeInterface {
function cancelOrder(uint256 orderId)... | RLR.isKeeper(msg.sender),"::isKeeper: relayer is not registered" | 53,770 | RLR.isKeeper(msg.sender) |
"No executable trades" | // SPDX-License-Identifier: MIT
pragma solidity ^0.6.12;
import '@openzeppelin/contracts/access/Ownable.sol';
import "../libraries/UniswapV2Library.sol";
import '../interfaces/Keep3r/IKeep3rV1Mini.sol';
enum OrderState {Placed, Cancelled, Executed}
interface UnitradeInterface {
function cancelOrder(uint256 orderId)... | workable(),"No executable trades" | 53,770 | workable() |
"Giveaway not minted" | // SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.7;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "./ERC721A.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
con... | totalSupply()>=giveawaySupply,"Giveaway not minted" | 53,771 | totalSupply()>=giveawaySupply |
"Invalid Address" | // SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.7;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "./ERC721A.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
con... | _verifyWhitelist(_leaf(msg.sender),_proof)==true,"Invalid Address" | 53,771 | _verifyWhitelist(_leaf(msg.sender),_proof)==true |
"Max supply reached" | // SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.7;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "./ERC721A.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
con... | totalSupply()+_amount<=supplyForPreSale,"Max supply reached" | 53,771 | totalSupply()+_amount<=supplyForPreSale |
"can not mint this many" | // SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.7;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "./ERC721A.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
con... | numberMinted(msg.sender)+_amount<=mintLimit,"can not mint this many" | 53,771 | numberMinted(msg.sender)+_amount<=mintLimit |
"CANNOT_CONTROL_EVENTS" | // SPDX-License-Identifier: MIT
pragma solidity 0.6.11;
pragma experimental ABIEncoderV2;
import "./Destinations.sol";
import "./IEventSender.sol";
abstract contract EventSender is IEventSender {
bool public eventSend;
Destinations public destinations;
modifier onEventSend() {
}
modifier onlyEventSe... | canControlEventSend(),"CANNOT_CONTROL_EVENTS" | 53,887 | canControlEventSend() |
"ADDRESS_NOT_SET" | // SPDX-License-Identifier: MIT
pragma solidity 0.6.11;
pragma experimental ABIEncoderV2;
import "./Destinations.sol";
import "./IEventSender.sol";
abstract contract EventSender is IEventSender {
bool public eventSend;
Destinations public destinations;
modifier onEventSend() {
}
modifier onlyEventSe... | address(destinations.fxStateSender)!=address(0),"ADDRESS_NOT_SET" | 53,887 | address(destinations.fxStateSender)!=address(0) |
"Deposit not found" | pragma solidity ^0.4.25;
/**
* @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(uin... | userDeposit[msg.sender]>0,"Deposit not found" | 53,991 | userDeposit[msg.sender]>0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.