comment stringlengths 1 211 ⌀ | input stringlengths 155 20k | label stringlengths 4 1k | original_idx int64 203 514k | predicate stringlengths 1 1k |
|---|---|---|---|---|
"TheLostGlitchesComic: Purchase would exceed cap" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;
import "@openzeppelin/contracts/access/AccessControlEnumerable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "./TheLostGlitches.sol";
... | totalSupply()+amount<=MAX_COMICS,"TheLostGlitchesComic: Purchase would exceed cap" | 9,878 | totalSupply()+amount<=MAX_COMICS |
"TheLostGlitchesComic: Minting would exceed cap" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;
import "@openzeppelin/contracts/access/AccessControlEnumerable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "./TheLostGlitches.sol";
... | totalSupply()+1<=MAX_COMICS,"TheLostGlitchesComic: Minting would exceed cap" | 9,878 | totalSupply()+1<=MAX_COMICS |
"TheLostGlitchesComic: Ether value sent is not correct" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;
import "@openzeppelin/contracts/access/AccessControlEnumerable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "./TheLostGlitches.sol";
... | discountedMintPrice*amount<=msg.value,"TheLostGlitchesComic: Ether value sent is not correct" | 9,878 | discountedMintPrice*amount<=msg.value |
"TheLostGlitchesComic: Ether value sent is not correct" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;
import "@openzeppelin/contracts/access/AccessControlEnumerable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "./TheLostGlitches.sol";
... | mintPrice*amount<=msg.value,"TheLostGlitchesComic: Ether value sent is not correct" | 9,878 | mintPrice*amount<=msg.value |
CONTEXT_NOT_FOUND | pragma solidity ^0.6.3;
contract BrightID {
uint256 public id;
struct Context {
bool isActive;
mapping(address => bool) owners;
mapping(address => bool) nodes;
mapping(uint256 => address[]) accounts;
mapping(bytes32 => uint256) cIdToUid;
mapping(address =... | isContext(context),CONTEXT_NOT_FOUND | 10,042 | isContext(context) |
DUPLICATE_CONTEXT_ID | pragma solidity ^0.6.3;
contract BrightID {
uint256 public id;
struct Context {
bool isActive;
mapping(address => bool) owners;
mapping(address => bool) nodes;
mapping(uint256 => address[]) accounts;
mapping(bytes32 => uint256) cIdToUid;
mapping(address =... | contexts[context].cIdToUid[cIds[0]]==0,DUPLICATE_CONTEXT_ID | 10,042 | contexts[context].cIdToUid[cIds[0]]==0 |
DUPLICATE_ETHEREUM_ADDRESS | pragma solidity ^0.6.3;
contract BrightID {
uint256 public id;
struct Context {
bool isActive;
mapping(address => bool) owners;
mapping(address => bool) nodes;
mapping(uint256 => address[]) accounts;
mapping(bytes32 => uint256) cIdToUid;
mapping(address =... | contexts[context].ethToUid[msg.sender]==0,DUPLICATE_ETHEREUM_ADDRESS | 10,042 | contexts[context].ethToUid[msg.sender]==0 |
UNAUTHORIZED_NODE | pragma solidity ^0.6.3;
contract BrightID {
uint256 public id;
struct Context {
bool isActive;
mapping(address => bool) owners;
mapping(address => bool) nodes;
mapping(uint256 => address[]) accounts;
mapping(bytes32 => uint256) cIdToUid;
mapping(address =... | contexts[context].nodes[signerAddress],UNAUTHORIZED_NODE | 10,042 | contexts[context].nodes[signerAddress] |
ALREADY_EXISTS | pragma solidity ^0.6.3;
contract BrightID {
uint256 public id;
struct Context {
bool isActive;
mapping(address => bool) owners;
mapping(address => bool) nodes;
mapping(uint256 => address[]) accounts;
mapping(bytes32 => uint256) cIdToUid;
mapping(address =... | contexts[context].isActive!=true,ALREADY_EXISTS | 10,042 | contexts[context].isActive!=true |
ALREADY_EXISTS | pragma solidity ^0.6.3;
contract BrightID {
uint256 public id;
struct Context {
bool isActive;
mapping(address => bool) owners;
mapping(address => bool) nodes;
mapping(uint256 => address[]) accounts;
mapping(bytes32 => uint256) cIdToUid;
mapping(address =... | contexts[context].nodes[nodeAddress]!=true,ALREADY_EXISTS | 10,042 | contexts[context].nodes[nodeAddress]!=true |
NODE_NOT_FOUND | pragma solidity ^0.6.3;
contract BrightID {
uint256 public id;
struct Context {
bool isActive;
mapping(address => bool) owners;
mapping(address => bool) nodes;
mapping(uint256 => address[]) accounts;
mapping(bytes32 => uint256) cIdToUid;
mapping(address =... | contexts[context].nodes[nodeAddress]==true,NODE_NOT_FOUND | 10,042 | contexts[context].nodes[nodeAddress]==true |
ONLY_CONTEXT_OWNER | pragma solidity ^0.6.3;
contract BrightID {
uint256 public id;
struct Context {
bool isActive;
mapping(address => bool) owners;
mapping(address => bool) nodes;
mapping(uint256 => address[]) accounts;
mapping(bytes32 => uint256) cIdToUid;
mapping(address =... | contexts[context].owners[msg.sender],ONLY_CONTEXT_OWNER | 10,042 | contexts[context].owners[msg.sender] |
"Disbursement Handler is closed" | /// @title Disbursement handler - Manages time locked disbursements of ERC20 tokens
contract DisbursementHandler is DisbursementHandlerI, Ownable {
using SafeMath for uint256;
using SafeERC20 for ERC20;
struct Disbursement {
// Tokens cannot be withdrawn before this timestamp
uint256 t... | !closed,"Disbursement Handler is closed" | 10,094 | !closed |
"Arrays not of equal length" | /// @title Disbursement handler - Manages time locked disbursements of ERC20 tokens
contract DisbursementHandler is DisbursementHandlerI, Ownable {
using SafeMath for uint256;
using SafeERC20 for ERC20;
struct Disbursement {
// Tokens cannot be withdrawn before this timestamp
uint256 t... | (_beneficiaries.length==_values.length)&&(_beneficiaries.length==_timestamps.length),"Arrays not of equal length" | 10,094 | (_beneficiaries.length==_values.length)&&(_beneficiaries.length==_timestamps.length) |
"don't own enough" | pragma solidity 0.8.7;
//SPDX-License-Identifier: UNLICENSED
contract StakeBulk is IERC721Receiver {
IERC721 public nft_address;
IERC20 public ft_address;
uint256 public blocks_per_day = 6500;
uint256 public rewards_per_day = 11 * 10**18;
address admin;
struct StakeData {
uint25... | NftOwnerToData[msg.sender].numStaked>0,"don't own enough" | 10,296 | NftOwnerToData[msg.sender].numStaked>0 |
null | pragma solidity 0.8.7;
//SPDX-License-Identifier: UNLICENSED
contract StakeBulk is IERC721Receiver {
IERC721 public nft_address;
IERC20 public ft_address;
uint256 public blocks_per_day = 6500;
uint256 public rewards_per_day = 11 * 10**18;
address admin;
struct StakeData {
uint25... | NftOwnerToData[tx.origin].numStaked>0 | 10,296 | NftOwnerToData[tx.origin].numStaked>0 |
"contract doesn't own enough rewards" | pragma solidity 0.8.7;
//SPDX-License-Identifier: UNLICENSED
contract StakeBulk is IERC721Receiver {
IERC721 public nft_address;
IERC20 public ft_address;
uint256 public blocks_per_day = 6500;
uint256 public rewards_per_day = 11 * 10**18;
address admin;
struct StakeData {
uint25... | ft_address.balanceOf(address(this))>=rewardAmount,"contract doesn't own enough rewards" | 10,296 | ft_address.balanceOf(address(this))>=rewardAmount |
null | pragma solidity ^0.4.18;
/**
* Math operations with safety checks
*/
library SafeMath {
function mul(uint a, uint b) internal pure returns (uint) {
}
function sub(uint a, uint b) internal pure returns (uint) {
}
function add(uint a, uint b) internal pure returns (uint) {
}
}
/*
... | isFailed() | 10,333 | isFailed() |
null | pragma solidity ^0.4.18;
/**
* Math operations with safety checks
*/
library SafeMath {
function mul(uint a, uint b) internal pure returns (uint) {
}
function sub(uint a, uint b) internal pure returns (uint) {
}
function add(uint a, uint b) internal pure returns (uint) {
}
}
/*
... | isSuccess() | 10,333 | isSuccess() |
null | pragma solidity ^0.4.18;
/**
* Math operations with safety checks
*/
library SafeMath {
function mul(uint a, uint b) internal pure returns (uint) {
}
function sub(uint a, uint b) internal pure returns (uint) {
}
function add(uint a, uint b) internal pure returns (uint) {
}
}
/*
... | (now>startPresale&&now<endPresale)||now>startIco | 10,333 | (now>startPresale&&now<endPresale)||now>startIco |
null | pragma solidity ^0.4.18;
/**
* Math operations with safety checks
*/
library SafeMath {
function mul(uint a, uint b) internal pure returns (uint) {
}
function sub(uint a, uint b) internal pure returns (uint) {
}
function add(uint a, uint b) internal pure returns (uint) {
}
}
/*
... | !refunds[msg.sender] | 10,333 | !refunds[msg.sender] |
null | pragma solidity ^0.4.18;
/**
* Math operations with safety checks
*/
library SafeMath {
function mul(uint a, uint b) internal pure returns (uint) {
}
function sub(uint a, uint b) internal pure returns (uint) {
}
function add(uint a, uint b) internal pure returns (uint) {
}
}
/*
... | contributions[msg.sender]>0 | 10,333 | contributions[msg.sender]>0 |
"only 1 contract per address" | pragma solidity 0.5.1;
contract GoForItToken is ERC20Burnable {
uint constant TOTALTOKENSUPPLY = 12500000000 ether;
string public name = "Goin Token";
string public symbol = "GOI";
uint8 public decimals = 18;
mapping(address => address) public vestingContracts;
event TokenVested(address b... | vestingContracts[beneficiaries[i]]==address(0),"only 1 contract per address" | 10,407 | vestingContracts[beneficiaries[i]]==address(0) |
"totalsupply does not match" | pragma solidity 0.5.1;
contract GoForItToken is ERC20Burnable {
uint constant TOTALTOKENSUPPLY = 12500000000 ether;
string public name = "Goin Token";
string public symbol = "GOI";
uint8 public decimals = 18;
mapping(address => address) public vestingContracts;
event TokenVested(address b... | totalSupply()==TOTALTOKENSUPPLY,"totalsupply does not match" | 10,407 | totalSupply()==TOTALTOKENSUPPLY |
"no tokens vested" | pragma solidity 0.5.1;
contract GoForItToken is ERC20Burnable {
uint constant TOTALTOKENSUPPLY = 12500000000 ether;
string public name = "Goin Token";
string public symbol = "GOI";
uint8 public decimals = 18;
mapping(address => address) public vestingContracts;
event TokenVested(address b... | vestingContracts[msg.sender]!=address(0),"no tokens vested" | 10,407 | vestingContracts[msg.sender]!=address(0) |
null | /**
EMC United Co. Inc.
*/
pragma solidity 0.4.11;
contract SafeMath {
function safeMul(uint a, uint b) internal returns (uint) {
}
function safeSub(uint a, uint b) internal returns (uint) {
}
function safeAdd(uint a, uint b) internal returns (uint) {
}
// mitigate short address attack
// t... | allowed[msg.sender][_spender]==_oldValue | 10,536 | allowed[msg.sender][_spender]==_oldValue |
"<minimum" | pragma solidity ^0.5.0;
import "./Math.sol";
import "./Ownable.sol";
import "./SafeERC20.sol";
interface Executor {
function execute(uint, uint, uint, uint) external;
}
contract KaniGovernance is Ownable {
using SafeERC20 for IERC20;
using SafeMath for uint256;
function seize(IERC20 _token, uint amount)... | votesOf(msg.sender)>minimum,"<minimum" | 10,540 | votesOf(msg.sender)>minimum |
"!quorum" | pragma solidity ^0.5.0;
import "./Math.sol";
import "./Ownable.sol";
import "./SafeERC20.sol";
interface Executor {
function execute(uint, uint, uint, uint) external;
}
contract KaniGovernance is Ownable {
using SafeERC20 for IERC20;
using SafeMath for uint256;
function seize(IERC20 _token, uint amount)... | proposals[id].quorumRequired<_quorum,"!quorum" | 10,540 | proposals[id].quorumRequired<_quorum |
"!end" | pragma solidity ^0.5.0;
import "./Math.sol";
import "./Ownable.sol";
import "./SafeERC20.sol";
interface Executor {
function execute(uint, uint, uint, uint) external;
}
contract KaniGovernance is Ownable {
using SafeERC20 for IERC20;
using SafeMath for uint256;
function seize(IERC20 _token, uint amount)... | proposals[id].end<block.number,"!end" | 10,540 | proposals[id].end<block.number |
"!open" | pragma solidity ^0.5.0;
import "./Math.sol";
import "./Ownable.sol";
import "./SafeERC20.sol";
interface Executor {
function execute(uint, uint, uint, uint) external;
}
contract KaniGovernance is Ownable {
using SafeERC20 for IERC20;
using SafeMath for uint256;
function seize(IERC20 _token, uint amount)... | proposals[id].open==true,"!open" | 10,540 | proposals[id].open==true |
"voter" | pragma solidity ^0.5.0;
import "./Math.sol";
import "./Ownable.sol";
import "./SafeERC20.sol";
interface Executor {
function execute(uint, uint, uint, uint) external;
}
contract KaniGovernance is Ownable {
using SafeERC20 for IERC20;
using SafeMath for uint256;
function seize(IERC20 _token, uint amount)... | voters[msg.sender]==false,"voter" | 10,540 | voters[msg.sender]==false |
"!voter" | pragma solidity ^0.5.0;
import "./Math.sol";
import "./Ownable.sol";
import "./SafeERC20.sol";
interface Executor {
function execute(uint, uint, uint, uint) external;
}
contract KaniGovernance is Ownable {
using SafeERC20 for IERC20;
using SafeMath for uint256;
function seize(IERC20 _token, uint amount)... | voters[msg.sender]==true,"!voter" | 10,540 | voters[msg.sender]==true |
"<start" | pragma solidity ^0.5.0;
import "./Math.sol";
import "./Ownable.sol";
import "./SafeERC20.sol";
interface Executor {
function execute(uint, uint, uint, uint) external;
}
contract KaniGovernance is Ownable {
using SafeERC20 for IERC20;
using SafeMath for uint256;
function seize(IERC20 _token, uint amount)... | proposals[id].start<block.number,"<start" | 10,540 | proposals[id].start<block.number |
">end" | pragma solidity ^0.5.0;
import "./Math.sol";
import "./Ownable.sol";
import "./SafeERC20.sol";
interface Executor {
function execute(uint, uint, uint, uint) external;
}
contract KaniGovernance is Ownable {
using SafeERC20 for IERC20;
using SafeMath for uint256;
function seize(IERC20 _token, uint amount)... | proposals[id].end>block.number,">end" | 10,540 | proposals[id].end>block.number |
"invalid signature 's' value" | // SPDX-License-Identifier: MIT
pragma solidity 0.8.7;
/**
* @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
*
* These functions can be used to verify that a message was signed by the holder
* of the private keys of a given address.
*
* @dev Copy of the Zeppelin's library:
* https://gith... | uint256(s)<=0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0,"invalid signature 's' value" | 10,554 | uint256(s)<=0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0 |
null | contract Marketplace is Ownable {
ERC721 public nft;
mapping (uint256 => Listing) public listings;
uint256 public minListingSeconds;
uint256 public maxListingSeconds;
struct Listing {
address seller;
uint256 startingPrice;
uint256 minimumPrice;
uint256 create... | !listingActive(_tokenId) | 10,571 | !listingActive(_tokenId) |
null | contract Marketplace is Ownable {
ERC721 public nft;
mapping (uint256 => Listing) public listings;
uint256 public minListingSeconds;
uint256 public maxListingSeconds;
struct Listing {
address seller;
uint256 startingPrice;
uint256 minimumPrice;
uint256 create... | listingActive(_tokenId) | 10,571 | listingActive(_tokenId) |
null | pragma solidity ^0.4.11;
contract SafeMath {
function safeMul(uint256 a, uint256 b) internal constant returns (uint256 ) {
}
function safeDiv(uint256 a, uint256 b) internal constant returns (uint256 ) {
}
function safeSub(uint256 a, uint256 b) internal constant returns (uint256 ) {
}
... | isOwner(msg.sender) | 10,667 | isOwner(msg.sender) |
null | pragma solidity ^0.4.11;
contract SafeMath {
function safeMul(uint256 a, uint256 b) internal constant returns (uint256 ) {
}
function safeDiv(uint256 a, uint256 b) internal constant returns (uint256 ) {
}
function safeSub(uint256 a, uint256 b) internal constant returns (uint256 ) {
}
... | safeSub(saleLimit,safeAdd(tokensSold,_value))>=0 | 10,667 | safeSub(saleLimit,safeAdd(tokensSold,_value))>=0 |
'User amount above limit' | pragma solidity 0.8.1;
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the token decimals.
*/
function decimals() external view returns (uint8);
/**
* @dev Returns the token symbol.... | _amount.add(user.amount)<=poolLimitPerUser,'User amount above limit' | 10,677 | _amount.add(user.amount)<=poolLimitPerUser |
'BANANA: Withdraw was locked' | pragma solidity 0.8.1;
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the token decimals.
*/
function decimals() external view returns (uint8);
/**
* @dev Returns the token symbol.... | user.withdrawDate+lockWithdrawDate>=block.timestamp,'BANANA: Withdraw was locked' | 10,677 | user.withdrawDate+lockWithdrawDate>=block.timestamp |
null | pragma solidity ^0.4.21;
interface Token {
function totalSupply() constant external returns (uint256 ts);
function balanceOf(address _owner) constant external returns (uint256 balance);
function transfer(address _to, uint256 _value) external returns (bool success);
function transferFrom(address _fr... | (z>=x)&&(z>=y) | 10,792 | (z>=x)&&(z>=y) |
null | pragma solidity ^0.4.21;
interface Token {
function totalSupply() constant external returns (uint256 ts);
function balanceOf(address _owner) constant external returns (uint256 balance);
function transfer(address _to, uint256 _value) external returns (bool success);
function transferFrom(address _fr... | (x==0)||(z/x==y) | 10,792 | (x==0)||(z/x==y) |
null | pragma solidity ^0.4.21;
interface Token {
function totalSupply() constant external returns (uint256 ts);
function balanceOf(address _owner) constant external returns (uint256 balance);
function transfer(address _to, uint256 _value) external returns (bool success);
function transferFrom(address _fr... | Token(XPA).transfer(user,amount_) | 10,792 | Token(XPA).transfer(user,amount_) |
null | pragma solidity ^0.4.21;
interface Token {
function totalSupply() constant external returns (uint256 ts);
function balanceOf(address _owner) constant external returns (uint256 balance);
function transfer(address _to, uint256 _value) external returns (bool success);
function transferFrom(address _fr... | Token(XPA).transfer(fundAccount,safeDiv(safeMul(safeSub(userFromAmount,remainingXPA),1ether),safeAdd(1ether,offsetFeeRate))) | 10,792 | Token(XPA).transfer(fundAccount,safeDiv(safeMul(safeSub(userFromAmount,remainingXPA),1ether),safeAdd(1ether,offsetFeeRate))) |
null | pragma solidity ^0.4.21;
interface Token {
function totalSupply() constant external returns (uint256 ts);
function balanceOf(address _owner) constant external returns (uint256 balance);
function transfer(address _to, uint256 _value) external returns (bool success);
function transferFrom(address _fr... | Token(XPA).transfer(fundAccount,safeDiv(safeMul(safeSub(userFromAmount,remainingXPA),safeSub(1ether,offsetFeeRate)),1ether)) | 10,792 | Token(XPA).transfer(fundAccount,safeDiv(safeMul(safeSub(userFromAmount,remainingXPA),safeSub(1ether,offsetFeeRate)),1ether)) |
null | pragma solidity ^0.4.21;
interface Token {
function totalSupply() constant external returns (uint256 ts);
function balanceOf(address _owner) constant external returns (uint256 balance);
function transfer(address _to, uint256 _value) external returns (bool success);
function transferFrom(address _fr... | Token(XPA).transfer(fundAccount,safeAdd(forceOffsetFee[1],safeSub(safeSub(punishXPA,allFee),remainingXPA))) | 10,792 | Token(XPA).transfer(fundAccount,safeAdd(forceOffsetFee[1],safeSub(safeSub(punishXPA,allFee),remainingXPA))) |
null | pragma solidity ^0.4.21;
interface Token {
function totalSupply() constant external returns (uint256 ts);
function balanceOf(address _owner) constant external returns (uint256 balance);
function transfer(address _to, uint256 _value) external returns (bool success);
function transferFrom(address _fr... | Token(XPA).transfer(msg.sender,forceOffsetFee[2]) | 10,792 | Token(XPA).transfer(msg.sender,forceOffsetFee[2]) |
null | pragma solidity ^0.4.21;
interface Token {
function totalSupply() constant external returns (uint256 ts);
function balanceOf(address _owner) constant external returns (uint256 balance);
function transfer(address _to, uint256 _value) external returns (bool success);
function transferFrom(address _fr... | Token(token_).transfer(bank,amount_) | 10,792 | Token(token_).transfer(bank,amount_) |
null | pragma solidity ^0.4.21;
interface Token {
function totalSupply() constant external returns (uint256 ts);
function balanceOf(address _owner) constant external returns (uint256 balance);
function transfer(address _to, uint256 _value) external returns (bool success);
function transferFrom(address _fr... | !migrateBooks[user_] | 10,792 | !migrateBooks[user_] |
null | contract buyable is bloomingPool {
address INFRASTRUCTURE_POOL_ADDRESS;
mapping (uint256 => uint256) TokenIdtosetprice;
mapping (uint256 => uint256) TokenIdtoprice;
event Set_price_and_sell(uint256 tokenId, uint256 Price);
event Stop_sell(uint256 tokenId);
constructor() public {}
func... | tokenOwner[UniqueID]==msg.sender | 10,802 | tokenOwner[UniqueID]==msg.sender |
null | contract buyable is bloomingPool {
address INFRASTRUCTURE_POOL_ADDRESS;
mapping (uint256 => uint256) TokenIdtosetprice;
mapping (uint256 => uint256) TokenIdtoprice;
event Set_price_and_sell(uint256 tokenId, uint256 Price);
event Stop_sell(uint256 tokenId);
constructor() public {}
func... | TokenIdtosetprice[UniqueID]==msg.value | 10,802 | TokenIdtosetprice[UniqueID]==msg.value |
null | contract buyable is bloomingPool {
address INFRASTRUCTURE_POOL_ADDRESS;
mapping (uint256 => uint256) TokenIdtosetprice;
mapping (uint256 => uint256) TokenIdtoprice;
event Set_price_and_sell(uint256 tokenId, uint256 Price);
event Stop_sell(uint256 tokenId);
constructor() public {}
func... | tokenOwner[UniqueID].call.gas(99999).value(_amount_for_seller)() | 10,802 | tokenOwner[UniqueID].call.gas(99999).value(_amount_for_seller)() |
null | pragma solidity 0.4.24;
/**
* Math operations with safety checks
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
}
function div(uint256 a, uint256 b) internal pure returns (uint256 c) {
}
function sub(uint256 a, uint256 b) internal pure returns (uint256 ... | balances[msg.sender]>=tokens | 10,887 | balances[msg.sender]>=tokens |
null | pragma solidity 0.4.24;
/**
* Math operations with safety checks
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
}
function div(uint256 a, uint256 b) internal pure returns (uint256 c) {
}
function sub(uint256 a, uint256 b) internal pure returns (uint256 ... | freezeOf[msg.sender]>=tokens | 10,887 | freezeOf[msg.sender]>=tokens |
null | pragma solidity ^0.5.0;
/*
* Ownable
*
* Base contract with an owner.
* Provides onlyOwner modifier, which prevents function from running if it is called by anyone other than the owner.
*/
contract Ownable {
address public owner;
constructor() public {
}
modifier onlyOwner() {
}
... | frozenAddresses[msg.sender]==false | 10,893 | frozenAddresses[msg.sender]==false |
null | pragma solidity ^0.5.0;
/*
* Ownable
*
* Base contract with an owner.
* Provides onlyOwner modifier, which prevents function from running if it is called by anyone other than the owner.
*/
contract Ownable {
address public owner;
constructor() public {
}
modifier onlyOwner() {
}
... | frozenAddresses[from]==true | 10,893 | frozenAddresses[from]==true |
"NPass:MAX_ALLOCATION_REACHED" | //SPDX-License-Identifier: MIT
pragma solidity 0.8.6;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppe... | (reservedAllowance==0&&totalSupply()+numberOfMints<=maxTotalSupply)||reserveMinted+numberOfMints<=reservedAllowance,"NPass:MAX_ALLOCATION_REACHED" | 10,897 | (reservedAllowance==0&&totalSupply()+numberOfMints<=maxTotalSupply)||reserveMinted+numberOfMints<=reservedAllowance |
"MUST_BE_AN_N_OWNER" | //SPDX-License-Identifier: MIT
pragma solidity 0.8.6;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppe... | _isNHolder(),"MUST_BE_AN_N_OWNER" | 10,897 | _isNHolder() |
"NPass:MAX_ALLOCATION_REACHED" | //SPDX-License-Identifier: MIT
pragma solidity 0.8.6;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppe... | (reservedAllowance==0&&totalSupply()<maxTotalSupply)||reserveMinted<reservedAllowance,"NPass:MAX_ALLOCATION_REACHED" | 10,897 | (reservedAllowance==0&&totalSupply()<maxTotalSupply)||reserveMinted<reservedAllowance |
"NPass:OPEN_MINTING_DISABLED" | //SPDX-License-Identifier: MIT
pragma solidity 0.8.6;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppe... | !onlyNHolders,"NPass:OPEN_MINTING_DISABLED" | 10,897 | !onlyNHolders |
"NPass:MAX_ALLOCATION_REACHED" | //SPDX-License-Identifier: MIT
pragma solidity 0.8.6;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppe... | openMintsAvailable()>0,"NPass:MAX_ALLOCATION_REACHED" | 10,897 | openMintsAvailable()>0 |
"Exceeding max supply!" | // @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@... | reserved.add(numberOfTokens)<=maxReserveSupply,"Exceeding max supply!" | 10,936 | reserved.add(numberOfTokens)<=maxReserveSupply |
"Wait for the sale to start!" | // @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@... | saleStarted(),"Wait for the sale to start!" | 10,936 | saleStarted() |
"Exceeding max supply!" | // @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@... | totalIssued.add(numberOfTokens)<=maxRockSupply,"Exceeding max supply!" | 10,936 | totalIssued.add(numberOfTokens)<=maxRockSupply |
"Dont fuck around." | // @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@... | rockPrice.mul(numberOfTokens)<=msg.value,"Dont fuck around." | 10,936 | rockPrice.mul(numberOfTokens)<=msg.value |
'Start block cannot be changed once sale has started.' | // @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@... | !saleStarted(),'Start block cannot be changed once sale has started.' | 10,936 | !saleStarted() |
null | // @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@... | payable(sara).send(_each) | 10,936 | payable(sara).send(_each) |
null | // @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@... | payable(shaun).send(_each) | 10,936 | payable(shaun).send(_each) |
null | // @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@... | payable(mark).send(_each) | 10,936 | payable(mark).send(_each) |
null | // @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@... | payable(community).send(_each) | 10,936 | payable(community).send(_each) |
"ERC721K: token already minted" | // SPDX-License-Identifier: MIT
/**
* ERC721Keg is a slight modification from the recently created ERC721A standard to meet
* the Keg Plebs needs.
*/
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@... | !_exists(firstTokenId),"ERC721K: token already minted" | 10,970 | !_exists(firstTokenId) |
"ERC721Keg: transfer to non ERC721Receiver implementer" | // SPDX-License-Identifier: MIT
/**
* ERC721Keg is a slight modification from the recently created ERC721A standard to meet
* the Keg Plebs needs.
*/
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@... | _checkOnERC721Received(address(0),to,updatedIndex,_data),"ERC721Keg: transfer to non ERC721Receiver implementer" | 10,970 | _checkOnERC721Received(address(0),to,updatedIndex,_data) |
"ERC721Keg: transfer not called by owner or approved of." | // SPDX-License-Identifier: MIT
/**
* ERC721Keg is a slight modification from the recently created ERC721A standard to meet
* the Keg Plebs needs.
*/
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@... | _isApprovedOrOwner(_msgSender(),tokenId,currOwner),"ERC721Keg: transfer not called by owner or approved of." | 10,970 | _isApprovedOrOwner(_msgSender(),tokenId,currOwner) |
"Account state has already been proven." | // SPDX-License-Identifier: MIT
// @unsupported: ovm
pragma solidity >0.5.0 <0.8.0;
pragma experimental ABIEncoderV2;
/* Library Imports */
import { Lib_OVMCodec } from "../../libraries/codec/Lib_OVMCodec.sol";
import { Lib_AddressResolver } from "../../libraries/resolver/Lib_AddressResolver.sol";
import { Lib_EthUtils... | (ovmStateManager.hasAccount(_ovmContractAddress)==false&&ovmStateManager.hasEmptyAccount(_ovmContractAddress)==false),"Account state has already been proven." | 11,008 | (ovmStateManager.hasAccount(_ovmContractAddress)==false&&ovmStateManager.hasEmptyAccount(_ovmContractAddress)==false) |
"OVM_StateTransitioner: Provided L1 contract code hash does not match L2 contract code hash." | // SPDX-License-Identifier: MIT
// @unsupported: ovm
pragma solidity >0.5.0 <0.8.0;
pragma experimental ABIEncoderV2;
/* Library Imports */
import { Lib_OVMCodec } from "../../libraries/codec/Lib_OVMCodec.sol";
import { Lib_AddressResolver } from "../../libraries/resolver/Lib_AddressResolver.sol";
import { Lib_EthUtils... | Lib_EthUtils.getCodeHash(ethContractAddress)==account.codeHash,"OVM_StateTransitioner: Provided L1 contract code hash does not match L2 contract code hash." | 11,008 | Lib_EthUtils.getCodeHash(ethContractAddress)==account.codeHash |
"Storage slot has already been proven." | // SPDX-License-Identifier: MIT
// @unsupported: ovm
pragma solidity >0.5.0 <0.8.0;
pragma experimental ABIEncoderV2;
/* Library Imports */
import { Lib_OVMCodec } from "../../libraries/codec/Lib_OVMCodec.sol";
import { Lib_AddressResolver } from "../../libraries/resolver/Lib_AddressResolver.sol";
import { Lib_EthUtils... | ovmStateManager.hasContractStorage(_ovmContractAddress,_key)==false,"Storage slot has already been proven." | 11,008 | ovmStateManager.hasContractStorage(_ovmContractAddress,_key)==false |
"Contract must be verified before proving a storage slot." | // SPDX-License-Identifier: MIT
// @unsupported: ovm
pragma solidity >0.5.0 <0.8.0;
pragma experimental ABIEncoderV2;
/* Library Imports */
import { Lib_OVMCodec } from "../../libraries/codec/Lib_OVMCodec.sol";
import { Lib_AddressResolver } from "../../libraries/resolver/Lib_AddressResolver.sol";
import { Lib_EthUtils... | ovmStateManager.hasAccount(_ovmContractAddress)==true,"Contract must be verified before proving a storage slot." | 11,008 | ovmStateManager.hasAccount(_ovmContractAddress)==true |
"Invalid transaction provided." | // SPDX-License-Identifier: MIT
// @unsupported: ovm
pragma solidity >0.5.0 <0.8.0;
pragma experimental ABIEncoderV2;
/* Library Imports */
import { Lib_OVMCodec } from "../../libraries/codec/Lib_OVMCodec.sol";
import { Lib_AddressResolver } from "../../libraries/resolver/Lib_AddressResolver.sol";
import { Lib_EthUtils... | Lib_OVMCodec.hashTransaction(_transaction)==transactionHash,"Invalid transaction provided." | 11,008 | Lib_OVMCodec.hashTransaction(_transaction)==transactionHash |
"Not enough gas to execute transaction deterministically." | // SPDX-License-Identifier: MIT
// @unsupported: ovm
pragma solidity >0.5.0 <0.8.0;
pragma experimental ABIEncoderV2;
/* Library Imports */
import { Lib_OVMCodec } from "../../libraries/codec/Lib_OVMCodec.sol";
import { Lib_AddressResolver } from "../../libraries/resolver/Lib_AddressResolver.sol";
import { Lib_EthUtils... | gasleft()>=100000+_transaction.gasLimit*1032/1000,"Not enough gas to execute transaction deterministically." | 11,008 | gasleft()>=100000+_transaction.gasLimit*1032/1000 |
"All storage must be committed before committing account states." | // SPDX-License-Identifier: MIT
// @unsupported: ovm
pragma solidity >0.5.0 <0.8.0;
pragma experimental ABIEncoderV2;
/* Library Imports */
import { Lib_OVMCodec } from "../../libraries/codec/Lib_OVMCodec.sol";
import { Lib_AddressResolver } from "../../libraries/resolver/Lib_AddressResolver.sol";
import { Lib_EthUtils... | ovmStateManager.getTotalUncommittedContractStorage()==0,"All storage must be committed before committing account states." | 11,008 | ovmStateManager.getTotalUncommittedContractStorage()==0 |
"Account state wasn't changed or has already been committed." | // SPDX-License-Identifier: MIT
// @unsupported: ovm
pragma solidity >0.5.0 <0.8.0;
pragma experimental ABIEncoderV2;
/* Library Imports */
import { Lib_OVMCodec } from "../../libraries/codec/Lib_OVMCodec.sol";
import { Lib_AddressResolver } from "../../libraries/resolver/Lib_AddressResolver.sol";
import { Lib_EthUtils... | ovmStateManager.commitAccount(_ovmContractAddress)==true,"Account state wasn't changed or has already been committed." | 11,008 | ovmStateManager.commitAccount(_ovmContractAddress)==true |
"Storage slot value wasn't changed or has already been committed." | // SPDX-License-Identifier: MIT
// @unsupported: ovm
pragma solidity >0.5.0 <0.8.0;
pragma experimental ABIEncoderV2;
/* Library Imports */
import { Lib_OVMCodec } from "../../libraries/codec/Lib_OVMCodec.sol";
import { Lib_AddressResolver } from "../../libraries/resolver/Lib_AddressResolver.sol";
import { Lib_EthUtils... | ovmStateManager.commitContractStorage(_ovmContractAddress,_key)==true,"Storage slot value wasn't changed or has already been committed." | 11,008 | ovmStateManager.commitContractStorage(_ovmContractAddress,_key)==true |
"All accounts must be committed before completing a transition." | // SPDX-License-Identifier: MIT
// @unsupported: ovm
pragma solidity >0.5.0 <0.8.0;
pragma experimental ABIEncoderV2;
/* Library Imports */
import { Lib_OVMCodec } from "../../libraries/codec/Lib_OVMCodec.sol";
import { Lib_AddressResolver } from "../../libraries/resolver/Lib_AddressResolver.sol";
import { Lib_EthUtils... | ovmStateManager.getTotalUncommittedAccounts()==0,"All accounts must be committed before completing a transition." | 11,008 | ovmStateManager.getTotalUncommittedAccounts()==0 |
"Invalid pre-state root inclusion proof." | // SPDX-License-Identifier: MIT
pragma solidity >0.5.0 <0.8.0;
pragma experimental ABIEncoderV2;
/* Library Imports */
import { Lib_OVMCodec } from "../../libraries/codec/Lib_OVMCodec.sol";
import { Lib_AddressResolver } from "../../libraries/resolver/Lib_AddressResolver.sol";
/* Interface Imports */
import { iOVM_Frau... | ovmStateCommitmentChain.verifyStateCommitment(_preStateRoot,_preStateRootBatchHeader,_preStateRootProof),"Invalid pre-state root inclusion proof." | 11,014 | ovmStateCommitmentChain.verifyStateCommitment(_preStateRoot,_preStateRootBatchHeader,_preStateRootProof) |
"Invalid transaction inclusion proof." | // SPDX-License-Identifier: MIT
pragma solidity >0.5.0 <0.8.0;
pragma experimental ABIEncoderV2;
/* Library Imports */
import { Lib_OVMCodec } from "../../libraries/codec/Lib_OVMCodec.sol";
import { Lib_AddressResolver } from "../../libraries/resolver/Lib_AddressResolver.sol";
/* Interface Imports */
import { iOVM_Frau... | ovmCanonicalTransactionChain.verifyTransaction(_transaction,_txChainElement,_transactionBatchHeader,_transactionProof),"Invalid transaction inclusion proof." | 11,014 | ovmCanonicalTransactionChain.verifyTransaction(_transaction,_txChainElement,_transactionBatchHeader,_transactionProof) |
"Pre-state root global index must equal to the transaction root global index." | // SPDX-License-Identifier: MIT
pragma solidity >0.5.0 <0.8.0;
pragma experimental ABIEncoderV2;
/* Library Imports */
import { Lib_OVMCodec } from "../../libraries/codec/Lib_OVMCodec.sol";
import { Lib_AddressResolver } from "../../libraries/resolver/Lib_AddressResolver.sol";
/* Interface Imports */
import { iOVM_Frau... | _preStateRootBatchHeader.prevTotalElements+_preStateRootProof.index+1==_transactionBatchHeader.prevTotalElements+_transactionProof.index,"Pre-state root global index must equal to the transaction root global index." | 11,014 | _preStateRootBatchHeader.prevTotalElements+_preStateRootProof.index+1==_transactionBatchHeader.prevTotalElements+_transactionProof.index |
"State transition process must be completed prior to finalization." | // SPDX-License-Identifier: MIT
pragma solidity >0.5.0 <0.8.0;
pragma experimental ABIEncoderV2;
/* Library Imports */
import { Lib_OVMCodec } from "../../libraries/codec/Lib_OVMCodec.sol";
import { Lib_AddressResolver } from "../../libraries/resolver/Lib_AddressResolver.sol";
/* Interface Imports */
import { iOVM_Frau... | transitioner.isComplete()==true,"State transition process must be completed prior to finalization." | 11,014 | transitioner.isComplete()==true |
"Post-state root global index must equal to the pre state root global index plus one." | // SPDX-License-Identifier: MIT
pragma solidity >0.5.0 <0.8.0;
pragma experimental ABIEncoderV2;
/* Library Imports */
import { Lib_OVMCodec } from "../../libraries/codec/Lib_OVMCodec.sol";
import { Lib_AddressResolver } from "../../libraries/resolver/Lib_AddressResolver.sol";
/* Interface Imports */
import { iOVM_Frau... | _postStateRootBatchHeader.prevTotalElements+_postStateRootProof.index==_preStateRootBatchHeader.prevTotalElements+_preStateRootProof.index+1,"Post-state root global index must equal to the pre state root global index plus one." | 11,014 | _postStateRootBatchHeader.prevTotalElements+_postStateRootProof.index==_preStateRootBatchHeader.prevTotalElements+_preStateRootProof.index+1 |
"Invalid post-state root inclusion proof." | // SPDX-License-Identifier: MIT
pragma solidity >0.5.0 <0.8.0;
pragma experimental ABIEncoderV2;
/* Library Imports */
import { Lib_OVMCodec } from "../../libraries/codec/Lib_OVMCodec.sol";
import { Lib_AddressResolver } from "../../libraries/resolver/Lib_AddressResolver.sol";
/* Interface Imports */
import { iOVM_Frau... | ovmStateCommitmentChain.verifyStateCommitment(_postStateRoot,_postStateRootBatchHeader,_postStateRootProof),"Invalid post-state root inclusion proof." | 11,014 | ovmStateCommitmentChain.verifyStateCommitment(_postStateRoot,_postStateRootBatchHeader,_postStateRootProof) |
Errors.ALREADY_FINALIZED | // SPDX-License-Identifier: MIT
pragma solidity >0.5.0 <0.8.0;
/* Library Imports */
import { Lib_AddressResolver } from "../../libraries/resolver/Lib_AddressResolver.sol";
/* Interface Imports */
import { iOVM_BondManager, Errors, ERC20 } from "../../iOVM/verification/iOVM_BondManager.sol";
import { iOVM_FraudVerifier... | witnessProviders[_preStateRoot].canClaim==false,Errors.ALREADY_FINALIZED | 11,015 | witnessProviders[_preStateRoot].canClaim==false |
Errors.ERC20_ERR | // SPDX-License-Identifier: MIT
pragma solidity >0.5.0 <0.8.0;
/* Library Imports */
import { Lib_AddressResolver } from "../../libraries/resolver/Lib_AddressResolver.sol";
/* Interface Imports */
import { iOVM_BondManager, Errors, ERC20 } from "../../iOVM/verification/iOVM_BondManager.sol";
import { iOVM_FraudVerifier... | token.transferFrom(msg.sender,address(this),requiredCollateral),Errors.ERC20_ERR | 11,015 | token.transferFrom(msg.sender,address(this),requiredCollateral) |
Errors.ERC20_ERR | // SPDX-License-Identifier: MIT
pragma solidity >0.5.0 <0.8.0;
/* Library Imports */
import { Lib_AddressResolver } from "../../libraries/resolver/Lib_AddressResolver.sol";
/* Interface Imports */
import { iOVM_BondManager, Errors, ERC20 } from "../../iOVM/verification/iOVM_BondManager.sol";
import { iOVM_FraudVerifier... | token.transfer(msg.sender,requiredCollateral),Errors.ERC20_ERR | 11,015 | token.transfer(msg.sender,requiredCollateral) |
Errors.CANNOT_CLAIM | // SPDX-License-Identifier: MIT
pragma solidity >0.5.0 <0.8.0;
/* Library Imports */
import { Lib_AddressResolver } from "../../libraries/resolver/Lib_AddressResolver.sol";
/* Interface Imports */
import { iOVM_BondManager, Errors, ERC20 } from "../../iOVM/verification/iOVM_BondManager.sol";
import { iOVM_FraudVerifier... | rewards.canClaim,Errors.CANNOT_CLAIM | 11,015 | rewards.canClaim |
Errors.ERC20_ERR | // SPDX-License-Identifier: MIT
pragma solidity >0.5.0 <0.8.0;
/* Library Imports */
import { Lib_AddressResolver } from "../../libraries/resolver/Lib_AddressResolver.sol";
/* Interface Imports */
import { iOVM_BondManager, Errors, ERC20 } from "../../iOVM/verification/iOVM_BondManager.sol";
import { iOVM_FraudVerifier... | token.transfer(msg.sender,amount),Errors.ERC20_ERR | 11,015 | token.transfer(msg.sender,amount) |
"Exceed airdop allowance limit." | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzep... | totalAirdrop+(_to.length*amount)<=maxAirdrop,"Exceed airdop allowance limit." | 11,065 | totalAirdrop+(_to.length*amount)<=maxAirdrop |
"You have already generated a random seed" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzep... | !_requestedVRF,"You have already generated a random seed" | 11,065 | !_requestedVRF |
null | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzep... | LINK.balanceOf(address(this))>=2000000000000000000 | 11,065 | LINK.balanceOf(address(this))>=2000000000000000000 |
"You can only reveal once." | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzep... | !_revealed,"You can only reveal once." | 11,065 | !_revealed |
"Only whitelist addresses allowed." | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzep... | inAllowlist(collector),"Only whitelist addresses allowed." | 11,065 | inAllowlist(collector) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.