Feature Tip: Add private address tag to any address under My Name Tag !
More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 9,005 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Claim Many From ... | 22206747 | 15 hrs ago | IN | 0 ETH | 0.00007938 | ||||
Claim Many From ... | 22206171 | 17 hrs ago | IN | 0 ETH | 0.00010686 | ||||
Claim Many From ... | 22206170 | 17 hrs ago | IN | 0 ETH | 0.00013137 | ||||
Claim Many From ... | 22206169 | 17 hrs ago | IN | 0 ETH | 0.00013806 | ||||
Claim Many From ... | 22206167 | 17 hrs ago | IN | 0 ETH | 0.00015085 | ||||
Claim Many From ... | 22174001 | 5 days ago | IN | 0 ETH | 0.00054727 | ||||
Claim Many From ... | 22073680 | 19 days ago | IN | 0 ETH | 0.00007203 | ||||
Claim Many From ... | 22073669 | 19 days ago | IN | 0 ETH | 0.00006524 | ||||
Claim Many From ... | 21981781 | 32 days ago | IN | 0 ETH | 0.0001672 | ||||
Claim Many From ... | 21963772 | 34 days ago | IN | 0 ETH | 0.000097 | ||||
Claim Many From ... | 21872738 | 47 days ago | IN | 0 ETH | 0.00095576 | ||||
Claim Many From ... | 21763891 | 62 days ago | IN | 0 ETH | 0.00363576 | ||||
Claim Many From ... | 21763884 | 62 days ago | IN | 0 ETH | 0.00196108 | ||||
Claim Many From ... | 21584687 | 87 days ago | IN | 0 ETH | 0.00238481 | ||||
Claim Many From ... | 21573093 | 89 days ago | IN | 0 ETH | 0.00113947 | ||||
Claim Many From ... | 21530590 | 95 days ago | IN | 0 ETH | 0.00419544 | ||||
Claim Many From ... | 21517734 | 96 days ago | IN | 0 ETH | 0.00183826 | ||||
Claim Many From ... | 21516696 | 97 days ago | IN | 0 ETH | 0.0004203 | ||||
Claim Many From ... | 21516694 | 97 days ago | IN | 0 ETH | 0.00151969 | ||||
Claim Many From ... | 21516691 | 97 days ago | IN | 0 ETH | 0.00182001 | ||||
Claim Many From ... | 21455628 | 105 days ago | IN | 0 ETH | 0.00052988 | ||||
Claim Many From ... | 21453149 | 105 days ago | IN | 0 ETH | 0.00145665 | ||||
Claim Many From ... | 21453143 | 105 days ago | IN | 0 ETH | 0.0006802 | ||||
Claim Many From ... | 21402440 | 112 days ago | IN | 0 ETH | 0.00074766 | ||||
Claim Many From ... | 21399799 | 113 days ago | IN | 0 ETH | 0.00165061 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
DeezNutsCasino
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT LICENSE pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "./NutsCoin.sol"; import "./DeezNuts.sol"; contract DeezNutsCasino is Ownable, IERC721Receiver, Pausable, ReentrancyGuard { using SafeMath for uint256; using SafeMath for uint128; // struct to store a stake's token, owner, and earning values struct Stake { uint16 tokenId; uint72 dailyRate; uint40 value; address owner; } event GambleOutcome(address sender, uint128 wonAmount); // reference to the DeezNuts NFT contract DeezNuts deezNutsNFT; // reference to the $NUTS contract for minting $NUTS earnings NutsCoin nuts; // maps tokenId to stake mapping(uint16 => Stake) public casinoEmployees; mapping(address => uint16[]) public ownershipMapping; // Each nuts earns 0 $NUTS per day uint256 public DAILY_NUTS_RATE = 0 ether; // there will only ever be (roughly) 6 billion $NUTS earned through staking uint256 public MAXIMUM_GLOBAL_NUTS = 6000000000 ether; // amount of $NUTS earned so far uint256 public totalNutsEarned; // the last time $NUTS was claimed uint256 public lastClaimTimestamp; uint256 public totalStaked; mapping(string => bytes32) public rootHashes; // emergency rescue to allow unstaking without any checks but without $NUTS bool public rescueEnabled = false; /** * @param _deezNuts reference to the DeezNuts NFT contract * @param _nuts reference to the $NUTS token */ constructor(address _deezNuts, address _nuts) { deezNutsNFT = DeezNuts(_deezNuts); nuts = NutsCoin(_nuts); totalStaked = 0; rootHashes["casinoBossRoot"] = 0xfa02561f4779941bd09da0d95b8cbe7480cc5e25f485cb9edae925fac99104d3; rootHashes["floorManagerRoot"] = 0xcd47c4886790fefc6bb37a6b059204c9203fe85fbd4582588497606a140876bd; rootHashes["blueNutRoot"] = 0xdd60bd53a57e91693a9cb50bde0c1f5305359d4d39038e53901d6b19b5a2245a; rootHashes["chefRoot"] = 0x29896d4e6dea9fcba447d1a01707916f541260e79b3f1d4eea4d1478740bd77f; rootHashes["djRoot"] = 0xbf1d196a3f6575e0131e833d783e01c25c32801c6ded2c0828b84656eb417aba; rootHashes["bartenderRoot"] = 0x5df7f1188bb0d1ae32808007d67dcc6f66cf238230653eb558ab508848f9dfb9; rootHashes["impersonatorRoot"] = 0xdacb828b187ddfab251c00861ea62b71b4e1f32590b080249a2b7cca85b3d71e; rootHashes["dealerRoot"] = 0xb2b2d91dec60669d941f038c2b3d924a2ce1ef63de2c74dec02bd51abe7b7a2d; rootHashes["slotRoot"] = 0x77ca07f4452ea3e642a01a4807e18e4d0d2f167278ec2e4f6f138f64286dfaba; rootHashes["weddingOfficiantRoot"] = 0x31ebcfd78167e3016e69ed146d132d80fb0b34804b7af27e13af0aeb3c7c4058; rootHashes["busDriverRoot"] = 0x6e13c174c07bed341d3327089c982860b78900ca20d8dd8d297599ffdb76c9ea; rootHashes["penCollectorRoot"] = 0xb338e9eb86a679b212873dd4904fb9d7aa25d3923e55886236edb2546be72a3b; rootHashes["phMonitorRoot"] = 0xba9276a497ed4baca93bda576c688d3573631f1a0cdc0ae44af477ab34bb6887; } function setNewMax(uint256 newMaxGlobal) public onlyOwner { MAXIMUM_GLOBAL_NUTS = newMaxGlobal; } function updateCasinoJobRates(string calldata title, bytes32 newRoot) public onlyOwner { rootHashes[title] = newRoot; } function getAllStakedForAddress(address _address) public view returns (uint16[] memory allStaked){ return ownershipMapping[_address]; } function getTotalCalimable(address _address) public view returns (uint128 totalClaimable) { uint16[] memory tokenIds = ownershipMapping[_address]; for (uint i = 0; i < tokenIds.length; i++) { Stake memory stake = casinoEmployees[tokenIds[i]]; require(stake.owner == _address, "Not the stake owner"); uint128 owed = 0; if (totalNutsEarned < MAXIMUM_GLOBAL_NUTS) { owed = uint128(((block.timestamp.sub(stake.value)).mul(stake.dailyRate)).div(1 days)); } else if (stake.value > lastClaimTimestamp) { owed = 0; // $NUTS production stopped already } else { owed = uint128((lastClaimTimestamp.sub(stake.value)).mul(stake.dailyRate / 1 days)); // stop earning additional $NUTS if it's all been earned } totalClaimable += owed; } } function getDailyRateForToken(uint256 tokenId, bytes32[] calldata employementProof) public view returns (uint72 dailyRate){ bytes32 leaf = keccak256(abi.encodePacked(Strings.toString(tokenId))); dailyRate = 420 ether; if ( MerkleProof.verify(employementProof, rootHashes["casinoBossRoot"], leaf) ) { dailyRate = 3318 ether; } else if (MerkleProof.verify(employementProof, rootHashes["floorManagerRoot"], leaf)) { dailyRate = 3101 ether; } else if (MerkleProof.verify(employementProof, rootHashes["blueNutRoot"], leaf)) { dailyRate = 2883 ether; } else if (MerkleProof.verify(employementProof, rootHashes["chefRoot"], leaf)) { dailyRate = 2658 ether; } else if (MerkleProof.verify(employementProof, rootHashes["djRoot"], leaf)) { dailyRate = 2449 ether; } else if (MerkleProof.verify(employementProof, rootHashes["bartenderRoot"], leaf)) { dailyRate = 2231 ether; } else if (MerkleProof.verify(employementProof, rootHashes["impersonatorRoot"], leaf)) { dailyRate = 2014 ether; } else if (MerkleProof.verify(employementProof, rootHashes["dealerRoot"], leaf)) { dailyRate = 1797 ether; } else if (MerkleProof.verify(employementProof, rootHashes["slotRoot"], leaf)) { dailyRate = 1579 ether; } else if (MerkleProof.verify(employementProof, rootHashes["weddingOfficiantRoot"], leaf)) { dailyRate = 1362 ether; } else if (MerkleProof.verify(employementProof, rootHashes["busDriverRoot"], leaf)) { dailyRate = 1145 ether; } else if (MerkleProof.verify(employementProof, rootHashes["penCollectorRoot"], leaf)) { dailyRate = 927 ether; } else if (MerkleProof.verify(employementProof, rootHashes["phMonitorRoot"], leaf)) { dailyRate = 710 ether; } } /** STAKING */ /** * adds DeezNuts NFT to the CasinoEmployees (staking) * @param account the address of the staker * @param tokenIds the IDs of the Sheep and Wolves to stake */ function addManyToCasino(address account, uint16[] calldata tokenIds, bytes32[][] calldata employmentProof) external whenNotPaused nonReentrant { require(account == _msgSender(), "Rechek sender of transaction"); require(tokenIds.length > 0, "No tokens sent"); for (uint i = 0; i < tokenIds.length; i++) { require(deezNutsNFT.ownerOf(tokenIds[i]) == _msgSender(), "Token isn't yours!"); deezNutsNFT.transferFrom(_msgSender(), address(this), tokenIds[i]); _addTokenToCasino(account, tokenIds[i], employmentProof[i]); ownershipMapping[account].push(tokenIds[i]); } totalStaked += tokenIds.length; nuts.mint(msg.sender, tokenIds.length * 1000000000000000000); } /** * adds a single Sheep to the Barn * @param account the address of the staker * @param tokenId the ID of the Sheep to add to the Barn */ function _addTokenToCasino(address account, uint16 tokenId, bytes32[] calldata proofOfEmployment) internal whenNotPaused _updateEarnings { uint72 tokenDailyRate = getDailyRateForToken(tokenId, proofOfEmployment); casinoEmployees[tokenId] = Stake({ owner: account, tokenId: uint16(tokenId), value: uint40(block.timestamp), dailyRate: tokenDailyRate }); DAILY_NUTS_RATE += tokenDailyRate; } /** CLAIMING / UNSTAKING */ /** * realize $NUTS earnings and optionally unstake tokens from the Casino * @param tokenIds the IDs of the tokens to claim earnings from * @param unstake whether or not to unstake ALL of the tokens listed in tokenIds * @param gambleOption int to determine withdrawal risk */ function claimManyFromCasino(uint16[] calldata tokenIds, bool unstake, uint256 gambleOption) external nonReentrant whenNotPaused _updateEarnings { require(0 < gambleOption && gambleOption < 5, "Gamble option has to be 1, 2 or 3. Only use 4 if you don't want any bonus"); uint128 owed; for (uint i = 0; i < tokenIds.length; i++) { owed += _claimNutFromCasino(tokenIds[i], unstake); } // remove unstaked from ownership mapping if (unstake) { if (tokenIds.length == ownershipMapping[_msgSender()].length) { ownershipMapping[_msgSender()] = new uint16[](0); } else { uint16[] memory remainingStaked = new uint16[](ownershipMapping[_msgSender()]. length - tokenIds.length); uint16[] memory stakedTokens = ownershipMapping[_msgSender()]; uint index = 0; for (uint i = 0; i < stakedTokens.length; i++) { bool keepIt = true; for (uint j = 0; j < tokenIds.length; j++) { if (tokenIds[j] == stakedTokens[i]) { keepIt = false; } } if (keepIt) { remainingStaked[index] = stakedTokens[i]; index += 1; } } ownershipMapping[_msgSender()] = remainingStaked; } totalStaked -= tokenIds.length; } if (owed == 0) return; uint128 bonus; if (gambleOption == 1) { bonus = owed * 25 / 100; owed += bonus; totalNutsEarned += bonus; } else if (gambleOption == 2) { if (random(tokenIds[0]) % 100 <= 60) { bonus = owed * 75 / 100; owed += bonus; totalNutsEarned += bonus; } } else if (gambleOption == 3) { if (random(tokenIds[0]) % 4 == 0) { bonus = owed * 25 / 100; owed -= bonus; totalNutsEarned -= bonus; } else { totalNutsEarned += owed; owed += owed; } } else if (gambleOption == 4) { // to be used in case contract is close to empty and people couldn't withdraw with the 25% bonus } nuts.mint(_msgSender(), owed); emit GambleOutcome(_msgSender(), owed); } /** * realize $NUTS earnings for a single Nut * @param tokenId the ID of the Sheep to claim earnings from * @param unstake whether or not to unstake the Sheep * @return owed - the amount of $NUTS earned */ function _claimNutFromCasino(uint16 tokenId, bool unstake) internal returns (uint128 owed) { Stake memory stake = casinoEmployees[tokenId]; require(stake.owner == _msgSender(), "Not the stake owner"); if (totalNutsEarned < MAXIMUM_GLOBAL_NUTS) { owed = uint128(((block.timestamp.sub(stake.value)).mul(stake.dailyRate)).div(1 days)); } else if (stake.value > lastClaimTimestamp) { owed = 0; // $NUTS production stopped already } else { owed = uint128((lastClaimTimestamp.sub(stake.value)).mul(stake.dailyRate / 1 days)); // stop earning additional $NUTS if it's all been earned } if (unstake) { deezNutsNFT.safeTransferFrom(address(this), _msgSender(), tokenId, ""); // send back Nut DAILY_NUTS_RATE -= stake.dailyRate; delete casinoEmployees[tokenId]; } else { casinoEmployees[tokenId] = Stake({ owner: stake.owner, tokenId: uint16(tokenId), value: uint40(block.timestamp), dailyRate: stake.dailyRate }); } } /** * emergency unstake tokens * @param tokenIds the IDs of the tokens to claim earnings from */ function rescue(uint16[] calldata tokenIds) external nonReentrant { require(rescueEnabled, "RESCUE DISABLED"); uint16 tokenId; Stake memory stake; for (uint i = 0; i < tokenIds.length; i++) { tokenId = tokenIds[i]; stake = casinoEmployees[tokenId]; require(stake.owner == _msgSender(), "Only owner can withdraw"); deezNutsNFT.safeTransferFrom(address(this), _msgSender(), tokenId, ""); // send back Nut delete casinoEmployees[tokenId]; DAILY_NUTS_RATE -= stake.dailyRate; } } /** ACCOUNTING */ /** * tracks $NUTS earnings to ensure it stops once 6.9 billion is eclipsed */ modifier _updateEarnings() { if (totalNutsEarned < MAXIMUM_GLOBAL_NUTS) { totalNutsEarned += (block.timestamp - lastClaimTimestamp) * DAILY_NUTS_RATE / 1 days; lastClaimTimestamp = block.timestamp; } _; } /** ADMIN */ /** * allows owner to enable "rescue mode" * simplifies accounting, prioritizes tokens out in emergency */ function setRescueEnabled(bool _enabled) external onlyOwner { rescueEnabled = _enabled; } /** * enables owner to pause / unpause minting */ function setPaused(bool _paused) external onlyOwner { if (_paused) _pause(); else _unpause(); } /** READ ONLY */ function onERC721Received( address, address from, uint256, bytes calldata ) external pure override returns (bytes4) { require(from == address(0x0), "Cannot send tokens to Casino directly"); return IERC721Receiver.onERC721Received.selector; } /** * generates a pseudorandom number * @param seed a value ensure different outcomes for different sources in the same block * @return a pseudorandom value */ function random(uint256 seed) internal view returns (uint256) { return uint256(keccak256(abi.encodePacked( tx.origin, blockhash(block.number - 1), block.timestamp, seed ))); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = _efficientHash(computedHash, proofElement); } else { // Hash(current element of the proof + current computed hash) computedHash = _efficientHash(proofElement, computedHash); } } return computedHash; } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT LICENSE pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "hardhat/console.sol"; contract NutsCoin is ERC20, Ownable { // a mapping from an address to whether or not it can mint / burn mapping(address => bool) controllers; uint256 public maxSupply = 6900000000 ether; // community wallet receives 690,000,000 // development wallet reecives 69,000,000 // total left for staking contract = 6141000000 constructor() ERC20("NUTS", "NUTS") { } /** * mints $Deez to a recipient * @param to the recipient of the $Deez * @param amount the amount of $Deez to mint */ function mint(address to, uint256 amount) external { require(totalSupply() + amount <= maxSupply, "Max supply of token reached"); require(controllers[msg.sender], "Only controllers can mint"); _mint(to, amount); } /** * burns $Deez from a holder * @param from the holder of the $Deez * @param amount the amount of $Deez to burn */ function burn(address from, uint256 amount) external { require(controllers[msg.sender], "Only controllers can burn"); _burn(from, amount); } /** * enables an address to mint / burn * @param controller the address to enable */ function addController(address controller) external onlyOwner { controllers[controller] = true; } /** * disables an address from minting / burning * @param controller the address to disbale */ function removeController(address controller) external onlyOwner { controllers[controller] = false; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.4.22 <0.9.0; import "./ERC721Tradable.sol"; contract DeezNuts is ERC721Tradable{ constructor(address _proxyRegistryAddress) ERC721Tradable("Deez Nuts", "NTS", _proxyRegistryAddress) { } function baseTokenURI() override public pure returns (string memory) { return "https://storage.googleapis.com/deeznutsnft/final/Nut"; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom( address from, address to, uint256 amount ) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, _allowances[owner][spender] + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = _allowances[owner][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer( address from, address to, uint256 amount ) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; } _balances[to] += amount; emit Transfer(from, to, amount); _afterTokenTransfer(from, to, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Spend `amount` form the allowance of `owner` toward `spender`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance( address owner, address spender, uint256 amount ) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} }
// SPDX-License-Identifier: MIT pragma solidity >= 0.4.22 <0.9.0; library console { address constant CONSOLE_ADDRESS = address(0x000000000000000000636F6e736F6c652e6c6f67); function _sendLogPayload(bytes memory payload) private view { uint256 payloadLength = payload.length; address consoleAddress = CONSOLE_ADDRESS; assembly { let payloadStart := add(payload, 32) let r := staticcall(gas(), consoleAddress, payloadStart, payloadLength, 0, 0) } } function log() internal view { _sendLogPayload(abi.encodeWithSignature("log()")); } function logInt(int p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(int)", p0)); } function logUint(uint p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint)", p0)); } function logString(string memory p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(string)", p0)); } function logBool(bool p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool)", p0)); } function logAddress(address p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(address)", p0)); } function logBytes(bytes memory p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes)", p0)); } function logBytes1(bytes1 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes1)", p0)); } function logBytes2(bytes2 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes2)", p0)); } function logBytes3(bytes3 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes3)", p0)); } function logBytes4(bytes4 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes4)", p0)); } function logBytes5(bytes5 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes5)", p0)); } function logBytes6(bytes6 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes6)", p0)); } function logBytes7(bytes7 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes7)", p0)); } function logBytes8(bytes8 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes8)", p0)); } function logBytes9(bytes9 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes9)", p0)); } function logBytes10(bytes10 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes10)", p0)); } function logBytes11(bytes11 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes11)", p0)); } function logBytes12(bytes12 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes12)", p0)); } function logBytes13(bytes13 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes13)", p0)); } function logBytes14(bytes14 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes14)", p0)); } function logBytes15(bytes15 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes15)", p0)); } function logBytes16(bytes16 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes16)", p0)); } function logBytes17(bytes17 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes17)", p0)); } function logBytes18(bytes18 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes18)", p0)); } function logBytes19(bytes19 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes19)", p0)); } function logBytes20(bytes20 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes20)", p0)); } function logBytes21(bytes21 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes21)", p0)); } function logBytes22(bytes22 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes22)", p0)); } function logBytes23(bytes23 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes23)", p0)); } function logBytes24(bytes24 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes24)", p0)); } function logBytes25(bytes25 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes25)", p0)); } function logBytes26(bytes26 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes26)", p0)); } function logBytes27(bytes27 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes27)", p0)); } function logBytes28(bytes28 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes28)", p0)); } function logBytes29(bytes29 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes29)", p0)); } function logBytes30(bytes30 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes30)", p0)); } function logBytes31(bytes31 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes31)", p0)); } function logBytes32(bytes32 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes32)", p0)); } function log(uint p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint)", p0)); } function log(string memory p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(string)", p0)); } function log(bool p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool)", p0)); } function log(address p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(address)", p0)); } function log(uint p0, uint p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint)", p0, p1)); } function log(uint p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string)", p0, p1)); } function log(uint p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool)", p0, p1)); } function log(uint p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address)", p0, p1)); } function log(string memory p0, uint p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint)", p0, p1)); } function log(string memory p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string)", p0, p1)); } function log(string memory p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool)", p0, p1)); } function log(string memory p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address)", p0, p1)); } function log(bool p0, uint p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint)", p0, p1)); } function log(bool p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string)", p0, p1)); } function log(bool p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool)", p0, p1)); } function log(bool p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address)", p0, p1)); } function log(address p0, uint p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint)", p0, p1)); } function log(address p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string)", p0, p1)); } function log(address p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool)", p0, p1)); } function log(address p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address)", p0, p1)); } function log(uint p0, uint p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint)", p0, p1, p2)); } function log(uint p0, uint p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string)", p0, p1, p2)); } function log(uint p0, uint p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool)", p0, p1, p2)); } function log(uint p0, uint p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address)", p0, p1, p2)); } function log(uint p0, string memory p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint)", p0, p1, p2)); } function log(uint p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string)", p0, p1, p2)); } function log(uint p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool)", p0, p1, p2)); } function log(uint p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address)", p0, p1, p2)); } function log(uint p0, bool p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint)", p0, p1, p2)); } function log(uint p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string)", p0, p1, p2)); } function log(uint p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool)", p0, p1, p2)); } function log(uint p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address)", p0, p1, p2)); } function log(uint p0, address p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint)", p0, p1, p2)); } function log(uint p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string)", p0, p1, p2)); } function log(uint p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool)", p0, p1, p2)); } function log(uint p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address)", p0, p1, p2)); } function log(string memory p0, uint p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint)", p0, p1, p2)); } function log(string memory p0, uint p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string)", p0, p1, p2)); } function log(string memory p0, uint p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool)", p0, p1, p2)); } function log(string memory p0, uint p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address)", p0, p1, p2)); } function log(string memory p0, string memory p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint)", p0, p1, p2)); } function log(string memory p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string)", p0, p1, p2)); } function log(string memory p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool)", p0, p1, p2)); } function log(string memory p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address)", p0, p1, p2)); } function log(string memory p0, bool p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint)", p0, p1, p2)); } function log(string memory p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string)", p0, p1, p2)); } function log(string memory p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool)", p0, p1, p2)); } function log(string memory p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address)", p0, p1, p2)); } function log(string memory p0, address p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint)", p0, p1, p2)); } function log(string memory p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string)", p0, p1, p2)); } function log(string memory p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool)", p0, p1, p2)); } function log(string memory p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address)", p0, p1, p2)); } function log(bool p0, uint p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint)", p0, p1, p2)); } function log(bool p0, uint p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string)", p0, p1, p2)); } function log(bool p0, uint p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool)", p0, p1, p2)); } function log(bool p0, uint p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address)", p0, p1, p2)); } function log(bool p0, string memory p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint)", p0, p1, p2)); } function log(bool p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string)", p0, p1, p2)); } function log(bool p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool)", p0, p1, p2)); } function log(bool p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address)", p0, p1, p2)); } function log(bool p0, bool p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint)", p0, p1, p2)); } function log(bool p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string)", p0, p1, p2)); } function log(bool p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool)", p0, p1, p2)); } function log(bool p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address)", p0, p1, p2)); } function log(bool p0, address p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint)", p0, p1, p2)); } function log(bool p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string)", p0, p1, p2)); } function log(bool p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool)", p0, p1, p2)); } function log(bool p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address)", p0, p1, p2)); } function log(address p0, uint p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint)", p0, p1, p2)); } function log(address p0, uint p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string)", p0, p1, p2)); } function log(address p0, uint p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool)", p0, p1, p2)); } function log(address p0, uint p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address)", p0, p1, p2)); } function log(address p0, string memory p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint)", p0, p1, p2)); } function log(address p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string)", p0, p1, p2)); } function log(address p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool)", p0, p1, p2)); } function log(address p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address)", p0, p1, p2)); } function log(address p0, bool p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint)", p0, p1, p2)); } function log(address p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string)", p0, p1, p2)); } function log(address p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool)", p0, p1, p2)); } function log(address p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address)", p0, p1, p2)); } function log(address p0, address p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint)", p0, p1, p2)); } function log(address p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string)", p0, p1, p2)); } function log(address p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool)", p0, p1, p2)); } function log(address p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address)", p0, p1, p2)); } function log(uint p0, uint p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,uint)", p0, p1, p2, p3)); } function log(uint p0, uint p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,string)", p0, p1, p2, p3)); } function log(uint p0, uint p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,bool)", p0, p1, p2, p3)); } function log(uint p0, uint p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,address)", p0, p1, p2, p3)); } function log(uint p0, uint p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,uint)", p0, p1, p2, p3)); } function log(uint p0, uint p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,string)", p0, p1, p2, p3)); } function log(uint p0, uint p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,bool)", p0, p1, p2, p3)); } function log(uint p0, uint p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,address)", p0, p1, p2, p3)); } function log(uint p0, uint p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,uint)", p0, p1, p2, p3)); } function log(uint p0, uint p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,string)", p0, p1, p2, p3)); } function log(uint p0, uint p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,bool)", p0, p1, p2, p3)); } function log(uint p0, uint p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,address)", p0, p1, p2, p3)); } function log(uint p0, uint p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,uint)", p0, p1, p2, p3)); } function log(uint p0, uint p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,string)", p0, p1, p2, p3)); } function log(uint p0, uint p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,bool)", p0, p1, p2, p3)); } function log(uint p0, uint p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,address)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,uint)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,string)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,bool)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,address)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string,uint)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string,string)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string,bool)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string,address)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,uint)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,string)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,bool)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,address)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address,uint)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address,string)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address,bool)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address,address)", p0, p1, p2, p3)); } function log(uint p0, bool p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,uint)", p0, p1, p2, p3)); } function log(uint p0, bool p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,string)", p0, p1, p2, p3)); } function log(uint p0, bool p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,bool)", p0, p1, p2, p3)); } function log(uint p0, bool p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,address)", p0, p1, p2, p3)); } function log(uint p0, bool p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,uint)", p0, p1, p2, p3)); } function log(uint p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,string)", p0, p1, p2, p3)); } function log(uint p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,bool)", p0, p1, p2, p3)); } function log(uint p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,address)", p0, p1, p2, p3)); } function log(uint p0, bool p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,uint)", p0, p1, p2, p3)); } function log(uint p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,string)", p0, p1, p2, p3)); } function log(uint p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,bool)", p0, p1, p2, p3)); } function log(uint p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,address)", p0, p1, p2, p3)); } function log(uint p0, bool p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,uint)", p0, p1, p2, p3)); } function log(uint p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,string)", p0, p1, p2, p3)); } function log(uint p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,bool)", p0, p1, p2, p3)); } function log(uint p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,address)", p0, p1, p2, p3)); } function log(uint p0, address p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,uint)", p0, p1, p2, p3)); } function log(uint p0, address p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,string)", p0, p1, p2, p3)); } function log(uint p0, address p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,bool)", p0, p1, p2, p3)); } function log(uint p0, address p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,address)", p0, p1, p2, p3)); } function log(uint p0, address p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string,uint)", p0, p1, p2, p3)); } function log(uint p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string,string)", p0, p1, p2, p3)); } function log(uint p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string,bool)", p0, p1, p2, p3)); } function log(uint p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string,address)", p0, p1, p2, p3)); } function log(uint p0, address p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,uint)", p0, p1, p2, p3)); } function log(uint p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,string)", p0, p1, p2, p3)); } function log(uint p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,bool)", p0, p1, p2, p3)); } function log(uint p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,address)", p0, p1, p2, p3)); } function log(uint p0, address p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address,uint)", p0, p1, p2, p3)); } function log(uint p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address,string)", p0, p1, p2, p3)); } function log(uint p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address,bool)", p0, p1, p2, p3)); } function log(uint p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address,address)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,uint)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,string)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,address)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string,uint)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string,string)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string,address)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,uint)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address,uint)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address,string)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint,uint)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,uint)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,uint)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,uint)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,uint)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,uint)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,uint)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,uint)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint,uint)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,uint)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,uint)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,uint)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,address)", p0, p1, p2, p3)); } function log(bool p0, uint p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,uint)", p0, p1, p2, p3)); } function log(bool p0, uint p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,string)", p0, p1, p2, p3)); } function log(bool p0, uint p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,bool)", p0, p1, p2, p3)); } function log(bool p0, uint p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,address)", p0, p1, p2, p3)); } function log(bool p0, uint p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,uint)", p0, p1, p2, p3)); } function log(bool p0, uint p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,string)", p0, p1, p2, p3)); } function log(bool p0, uint p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,bool)", p0, p1, p2, p3)); } function log(bool p0, uint p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,address)", p0, p1, p2, p3)); } function log(bool p0, uint p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,uint)", p0, p1, p2, p3)); } function log(bool p0, uint p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,string)", p0, p1, p2, p3)); } function log(bool p0, uint p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, uint p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,address)", p0, p1, p2, p3)); } function log(bool p0, uint p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,uint)", p0, p1, p2, p3)); } function log(bool p0, uint p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,string)", p0, p1, p2, p3)); } function log(bool p0, uint p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,bool)", p0, p1, p2, p3)); } function log(bool p0, uint p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,uint)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,uint)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,uint)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,uint)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,uint)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,uint)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,uint)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,uint)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,uint)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,uint)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,uint)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,uint)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,address)", p0, p1, p2, p3)); } function log(address p0, uint p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,uint)", p0, p1, p2, p3)); } function log(address p0, uint p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,string)", p0, p1, p2, p3)); } function log(address p0, uint p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,bool)", p0, p1, p2, p3)); } function log(address p0, uint p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,address)", p0, p1, p2, p3)); } function log(address p0, uint p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string,uint)", p0, p1, p2, p3)); } function log(address p0, uint p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string,string)", p0, p1, p2, p3)); } function log(address p0, uint p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string,bool)", p0, p1, p2, p3)); } function log(address p0, uint p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string,address)", p0, p1, p2, p3)); } function log(address p0, uint p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,uint)", p0, p1, p2, p3)); } function log(address p0, uint p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,string)", p0, p1, p2, p3)); } function log(address p0, uint p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,bool)", p0, p1, p2, p3)); } function log(address p0, uint p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,address)", p0, p1, p2, p3)); } function log(address p0, uint p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address,uint)", p0, p1, p2, p3)); } function log(address p0, uint p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address,string)", p0, p1, p2, p3)); } function log(address p0, uint p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address,bool)", p0, p1, p2, p3)); } function log(address p0, uint p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint,uint)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,uint)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,uint)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,uint)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,uint)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,uint)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,uint)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,uint)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,address)", p0, p1, p2, p3)); } function log(address p0, address p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint,uint)", p0, p1, p2, p3)); } function log(address p0, address p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint,string)", p0, p1, p2, p3)); } function log(address p0, address p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint,address)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,uint)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,string)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,address)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,uint)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,string)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,address)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,uint)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,string)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,address)", p0, p1, p2, p3)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// 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/access/Ownable.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; contract OwnableDelegateProxy {} contract ProxyRegistry { mapping(address => OwnableDelegateProxy) public proxies; } /** * @title ERC721Tradable * ERC721Tradable - ERC721 contract that whitelists a trading address, and has minting functionality. */ abstract contract ERC721Tradable is ERC721Enumerable, Ownable { using Strings for string; using SafeMath for uint256; address proxyRegistryAddress; uint256 public MAX_SUPPLY; address factoryAddress; uint256 private _currentTokenId = 0; constructor( string memory _name, string memory _symbol, address _proxyRegistryAddress ) ERC721(_name, _symbol) { MAX_SUPPLY = 10000; proxyRegistryAddress = _proxyRegistryAddress; } // todo ipfs hash might be removed /** * @dev Mints a token to an address with a tokenURI. * @param _to address of the future owner of the token */ function mintTo(address _to) public onlyOwner { require(totalSupply() <= MAX_SUPPLY, "Purchase would exceed max supply"); uint256 newTokenId = _getNextTokenId(); _mint(_to, newTokenId); _incrementTokenId(); } function factoryMint(address _to) public { require(factoryAddress == _msgSender(), "Ownable: caller is not the factory!"); uint256 newTokenId = _getNextTokenId(); _mint(_to, newTokenId); _incrementTokenId(); } function setFactoryAddress(address _factoryAddress) public onlyOwner { factoryAddress = _factoryAddress; } /** * @dev calculates the next token ID based on value of _currentTokenId * @return uint256 for the next token ID */ function _getNextTokenId() private view returns (uint256) { return _currentTokenId.add(1); } /** * @dev increments the value of _currentTokenId */ function _incrementTokenId() private { _currentTokenId++; } function baseTokenURI() virtual public pure returns (string memory); function tokenURI(uint256 _tokenId) override public pure returns (string memory) { return string(abi.encodePacked(baseTokenURI(), uint2str(_tokenId), ".json")); } function uint2str(uint _i) internal pure returns (string memory _uintAsString) { if (_i == 0) { return "0"; } uint j = _i; uint len; while (j != 0) { len++; j /= 10; } bytes memory bstr = new bytes(len); uint k = len; while (_i != 0) { k = k-1; uint8 temp = (48 + uint8(_i - _i / 10 * 10)); bytes1 b1 = bytes1(temp); bstr[k] = b1; _i /= 10; } return string(bstr); } function burn(uint256 _tokenId) public { require(ownerOf(_tokenId) == _msgSender()); _burn(_tokenId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_deezNuts","type":"address"},{"internalType":"address","name":"_nuts","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint128","name":"wonAmount","type":"uint128"}],"name":"GambleOutcome","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"DAILY_NUTS_RATE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAXIMUM_GLOBAL_NUTS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint16[]","name":"tokenIds","type":"uint16[]"},{"internalType":"bytes32[][]","name":"employmentProof","type":"bytes32[][]"}],"name":"addManyToCasino","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"}],"name":"casinoEmployees","outputs":[{"internalType":"uint16","name":"tokenId","type":"uint16"},{"internalType":"uint72","name":"dailyRate","type":"uint72"},{"internalType":"uint40","name":"value","type":"uint40"},{"internalType":"address","name":"owner","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16[]","name":"tokenIds","type":"uint16[]"},{"internalType":"bool","name":"unstake","type":"bool"},{"internalType":"uint256","name":"gambleOption","type":"uint256"}],"name":"claimManyFromCasino","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"getAllStakedForAddress","outputs":[{"internalType":"uint16[]","name":"allStaked","type":"uint16[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes32[]","name":"employementProof","type":"bytes32[]"}],"name":"getDailyRateForToken","outputs":[{"internalType":"uint72","name":"dailyRate","type":"uint72"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"getTotalCalimable","outputs":[{"internalType":"uint128","name":"totalClaimable","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastClaimTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"ownershipMapping","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16[]","name":"tokenIds","type":"uint16[]"}],"name":"rescue","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rescueEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"rootHashes","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMaxGlobal","type":"uint256"}],"name":"setNewMax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_paused","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_enabled","type":"bool"}],"name":"setRescueEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalNutsEarned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalStaked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"title","type":"string"},{"internalType":"bytes32","name":"newRoot","type":"bytes32"}],"name":"updateCasinoJobRates","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405260006006556b1363156bbee3016d70000000600755600c805460ff191690553480156200003057600080fd5b50604051620032493803806200324983398101604081905262000053916200057a565b6200005e336200050d565b6000805460ff60a01b1916815560018055600280546001600160a01b038086166001600160a01b0319928316179092556003805492851692909116919091179055600a556040517ffa02561f4779941bd09da0d95b8cbe7480cc5e25f485cb9edae925fac99104d390600b90620000e9906d18d85cda5b9bd09bdcdcd49bdbdd60921b8152600e0190565b908152604051908190036020018120919091557fcd47c4886790fefc6bb37a6b059204c9203fe85fbd4582588497606a140876bd90600b9062000142906f199b1bdbdc93585b9859d95c949bdbdd60821b815260100190565b908152604051908190036020018120919091557fdd60bd53a57e91693a9cb50bde0c1f5305359d4d39038e53901d6b19b5a2245a90600b9062000196906a189b1d59539d5d149bdbdd60aa1b8152600b0190565b908152604051908190036020018120919091557f29896d4e6dea9fcba447d1a01707916f541260e79b3f1d4eea4d1478740bd77f90600b90620001e7906718da1959949bdbdd60c21b815260080190565b908152604051908190036020018120919091557fbf1d196a3f6575e0131e833d783e01c25c32801c6ded2c0828b84656eb417aba90600b90620002369065191a949bdbdd60d21b815260060190565b908152604051908190036020018120919091557f5df7f1188bb0d1ae32808007d67dcc6f66cf238230653eb558ab508848f9dfb990600b906200028c906c18985c9d195b99195c949bdbdd609a1b8152600d0190565b908152604051908190036020018120919091557fdacb828b187ddfab251c00861ea62b71b4e1f32590b080249a2b7cca85b3d71e90600b90620002e5906f1a5b5c195c9cdbdb985d1bdc949bdbdd60821b815260100190565b908152604051908190036020018120919091557fb2b2d91dec60669d941f038c2b3d924a2ce1ef63de2c74dec02bd51abe7b7a2d90600b906200033890691919585b195c949bdbdd60b21b8152600a0190565b908152604051908190036020018120919091557f77ca07f4452ea3e642a01a4807e18e4d0d2f167278ec2e4f6f138f64286dfaba90600b906200038990671cdb1bdd149bdbdd60c21b815260080190565b908152604051908190036020018120919091557f31ebcfd78167e3016e69ed146d132d80fb0b34804b7af27e13af0aeb3c7c405890600b90620003ef907f77656464696e674f6666696369616e74526f6f74000000000000000000000000815260140190565b908152604051908190036020018120919091557f6e13c174c07bed341d3327089c982860b78900ca20d8dd8d297599ffdb76c9ea90600b9062000445906c189d5cd11c9a5d995c949bdbdd609a1b8152600d0190565b908152604051908190036020018120919091557fb338e9eb86a679b212873dd4904fb9d7aa25d3923e55886236edb2546be72a3b90600b906200049e906f1c195b90dbdb1b1958dd1bdc949bdbdd60821b815260100190565b908152604051908190036020018120919091557fba9276a497ed4baca93bda576c688d3573631f1a0cdc0ae44af477ab34bb688790600b90620004f4906c1c1a135bdb9a5d1bdc949bdbdd609a1b8152600d0190565b9081526040519081900360200190205550620005b29050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b03811681146200057557600080fd5b919050565b600080604083850312156200058e57600080fd5b62000599836200055d565b9150620005a9602084016200055d565b90509250929050565b612c8780620005c26000396000f3fe608060405234801561001057600080fd5b50600436106101585760003560e01c8063817b1cd2116100c3578063d2f527381161007c578063d2f52738146102f7578063d38f6db414610322578063e417945414610335578063ed86695b146103cd578063f2fde38b146103f8578063fae0d1731461040b57600080fd5b8063817b1cd2146102795780638c371246146102825780638da5cb5b14610295578063a2ec11f5146102b0578063bb79966d146102c3578063c0769022146102cc57600080fd5b80635c975abb116101155780635c975abb146102195780635d428fcb1461022b578063607af39714610242578063715018a61461024b57806371c490bf14610253578063765310081461026657600080fd5b8063150b7a021461015d57806316c38b3c1461018e57806321c8da9a146101a357806339db714f146101b65780633e6f439d146101d35780635517cee5146101f3575b600080fd5b61017061016b3660046125ce565b610414565b6040516001600160e01b031990911681526020015b60405180910390f35b6101a161019c36600461277d565b610492565b005b6101a16101b13660046126df565b6104d5565b600c546101c39060ff1681565b6040519015158152602001610185565b6101e66101e1366004612594565b610744565b6040516101859190612969565b6102066102013660046126b3565b6107d8565b60405161ffff9091168152602001610185565b600054600160a01b900460ff166101c3565b61023460075481565b604051908152602001610185565b61023460095481565b6101a161081f565b6101a1610261366004612721565b610855565b6101a161027436600461277d565b610e80565b610234600a5481565b6101a16102903660046128b9565b610ebd565b6000546040516001600160a01b039091168152602001610185565b6101a16102be366004612798565b610eec565b61023460085481565b6102346102da3660046127e4565b8051602081830181018051600b8252928201919093012091525481565b61030a610305366004612594565b610f3e565b6040516001600160801b039091168152602001610185565b6101a1610330366004612641565b61118a565b61038b610343366004612895565b6004602052600090815260409020805460019091015461ffff8216916201000081046001600160481b031691600160581b90910464ffffffffff16906001600160a01b031684565b6040805161ffff90951685526001600160481b03909316602085015264ffffffffff909116918301919091526001600160a01b03166060820152608001610185565b6103e06103db3660046128d2565b6115a0565b6040516001600160481b039091168152602001610185565b6101a1610406366004612594565b611b85565b61023460065481565b60006001600160a01b038516156104805760405162461bcd60e51b815260206004820152602560248201527f43616e6e6f742073656e6420746f6b656e7320746f20436173696e6f206469726044820152646563746c7960d81b60648201526084015b60405180910390fd5b50630a85bd0160e11b95945050505050565b6000546001600160a01b031633146104bc5760405162461bcd60e51b8152600401610477906129db565b80156104cd576104ca611c1d565b50565b6104ca611c9f565b600260015414156104f85760405162461bcd60e51b815260040161047790612a10565b6002600155600c5460ff166105415760405162461bcd60e51b815260206004820152600f60248201526e149154d0d55148111254d050931151608a1b6044820152606401610477565b604080516080810182526000808252602082018190529181018290526060810182905260005b838110156107395784848281811061058157610581612c10565b90506020020160208101906105969190612895565b61ffff8181166000908152600460209081526040918290208251608081018452815494851681526201000085046001600160481b031692810192909252600160581b90930464ffffffffff16918101919091526001909101546001600160a01b031660608201819052919450925033146106525760405162461bcd60e51b815260206004820152601760248201527f4f6e6c79206f776e65722063616e2077697468647261770000000000000000006044820152606401610477565b600254604051635c46a7ef60e11b815230600482015233602482015261ffff8516604482015260806064820152600060848201526001600160a01b039091169063b88d4fde9060a401600060405180830381600087803b1580156106b557600080fd5b505af11580156106c9573d6000803e3d6000fd5b5050505061ffff83166000908152600460209081526040822080546001600160801b031916815560010180546001600160a01b0319169055830151600680546001600160481b03909216929091610721908490612b9e565b9091555081905061073181612bb5565b915050610567565b505060018055505050565b6001600160a01b0381166000908152600560209081526040918290208054835181840281018401909452808452606093928301828280156107cc57602002820191906000526020600020906000905b82829054906101000a900461ffff1661ffff16815260200190600201906020826001010492830192600103820291508084116107935790505b50505050509050919050565b600560205281600052604060002081815481106107f457600080fd5b9060005260206000209060109182820401919006600202915091509054906101000a900461ffff1681565b6000546001600160a01b031633146108495760405162461bcd60e51b8152600401610477906129db565b6108536000611d23565b565b600260015414156108785760405162461bcd60e51b815260040161047790612a10565b6002600155600054600160a01b900460ff16156108a75760405162461bcd60e51b8152600401610477906129b1565b60075460085410156108f75762015180600654600954426108c89190612b9e565b6108d29190612b57565b6108dc9190612afa565b600860008282546108ed9190612abc565b9091555050426009555b8060001080156109075750600581105b61098b5760405162461bcd60e51b815260206004820152604960248201527f47616d626c65206f7074696f6e2068617320746f20626520312c2032206f722060448201527f332e204f6e6c7920757365203420696620796f7520646f6e27742077616e7420606482015268616e7920626f6e757360b81b608482015260a401610477565b6000805b848110156109e5576109c78686838181106109ac576109ac612c10565b90506020020160208101906109c19190612895565b85611d73565b6109d19083612a91565b9150806109dd81612bb5565b91505061098f565b508215610c3f5733600090815260056020526040902054841415610a3157604080516000808252602080830180855233835260059091529290209051610a2b9290612433565b50610c24565b33600090815260056020526040812054610a4c908690612b9e565b67ffffffffffffffff811115610a6457610a64612c26565b604051908082528060200260200182016040528015610a8d578160200160208202803683370190505b5033600090815260056020908152604080832080548251818502810185019093528083529495509293909291830182828015610b1057602002820191906000526020600020906000905b82829054906101000a900461ffff1661ffff1681526020019060020190602082600101049283019260010382029150808411610ad75790505b505050505090506000805b8251811015610bfe57600160005b89811015610b9757848381518110610b4357610b43612c10565b602002602001015161ffff168b8b83818110610b6157610b61612c10565b9050602002016020810190610b769190612895565b61ffff161415610b8557600091505b80610b8f81612bb5565b915050610b29565b508015610beb57838281518110610bb057610bb0612c10565b6020026020010151858481518110610bca57610bca612c10565b61ffff90921660209283029190910190910152610be8600184612abc565b92505b5080610bf681612bb5565b915050610b1b565b503360009081526005602090815260409091208451610c1f92860190612433565b505050505b84849050600a6000828254610c399190612b9e565b90915550505b6001600160801b038116610c535750610e76565b60008260011415610ca9576064610c6b836019612b28565b610c759190612ad4565b9050610c818183612a91565b9150806001600160801b031660086000828254610c9e9190612abc565b90915550610da89050565b8260021415610d0b57603c6064610cea88886000818110610ccc57610ccc612c10565b9050602002016020810190610ce19190612895565b61ffff1661206b565b610cf49190612bd0565b11610d06576064610c6b83604b612b28565b610da8565b8260031415610da8576004610d2c87876000818110610ccc57610ccc612c10565b610d369190612bd0565b610d7a576064610d47836019612b28565b610d519190612ad4565b9050610d5d8183612b76565b9150806001600160801b031660086000828254610c9e9190612b9e565b816001600160801b031660086000828254610d959190612abc565b90915550610da590508280612a91565b91505b6003546001600160a01b03166340c10f19336040516001600160e01b031960e084901b1681526001600160a01b0390911660048201526001600160801b0385166024820152604401600060405180830381600087803b158015610e0a57600080fd5b505af1158015610e1e573d6000803e3d6000fd5b505050507f8637ddc36927e45b14e0f7bf2bc385b6df3c4eeb9e198acd550a823d6c2a6fae610e4a3390565b604080516001600160a01b0390921682526001600160801b03851660208301520160405180910390a150505b5050600180555050565b6000546001600160a01b03163314610eaa5760405162461bcd60e51b8152600401610477906129db565b600c805460ff1916911515919091179055565b6000546001600160a01b03163314610ee75760405162461bcd60e51b8152600401610477906129db565b600755565b6000546001600160a01b03163314610f165760405162461bcd60e51b8152600401610477906129db565b80600b8484604051610f2992919061291e565b90815260405190819003602001902055505050565b6001600160a01b038116600090815260056020908152604080832080548251818502810185019093528083528493830182828015610fc357602002820191906000526020600020906000905b82829054906101000a900461ffff1661ffff1681526020019060020190602082600101049283019260010382029150808411610f8a5790505b5050505050905060005b815181101561118357600060046000848481518110610fee57610fee612c10565b60209081029190910181015161ffff90811683528282019390935260409182016000208251608081018452815494851681526201000085046001600160481b031692810192909252600160581b90930464ffffffffff16918101919091526001909101546001600160a01b03908116606083018190529192508616146110ac5760405162461bcd60e51b81526020600482015260136024820152722737ba103a34329039ba30b5b29037bbb732b960691b6044820152606401610477565b60006007546008541015611103576110fc620151806110f684602001516001600160481b03166110f0866040015164ffffffffff16426120ca90919063ffffffff16565b906120dd565b906120e9565b9050611162565b600954826040015164ffffffffff16111561112057506000611162565b61115f6201518083602001516111369190612b0e565b6001600160481b03166110f0846040015164ffffffffff166009546120ca90919063ffffffff16565b90505b61116c8186612a91565b94505050808061117b90612bb5565b915050610fcd565b5050919050565b600054600160a01b900460ff16156111b45760405162461bcd60e51b8152600401610477906129b1565b600260015414156111d75760405162461bcd60e51b815260040161047790612a10565b60026001556001600160a01b03851633146112345760405162461bcd60e51b815260206004820152601c60248201527f52656368656b2073656e646572206f66207472616e73616374696f6e000000006044820152606401610477565b826112725760405162461bcd60e51b815260206004820152600e60248201526d139bc81d1bdad95b9cc81cd95b9d60921b6044820152606401610477565b60005b838110156114f85760025433906001600160a01b0316636352211e8787858181106112a2576112a2612c10565b90506020020160208101906112b79190612895565b6040516001600160e01b031960e084901b16815261ffff909116600482015260240160206040518083038186803b1580156112f157600080fd5b505afa158015611305573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061132991906125b1565b6001600160a01b0316146113745760405162461bcd60e51b8152602060048201526012602482015271546f6b656e2069736e277420796f7572732160701b6044820152606401610477565b6002546001600160a01b03166323b872dd333088888681811061139957611399612c10565b90506020020160208101906113ae9190612895565b6040516001600160e01b031960e086901b1681526001600160a01b03938416600482015292909116602483015261ffff166044820152606401600060405180830381600087803b15801561140157600080fd5b505af1158015611415573d6000803e3d6000fd5b5050505061146d8686868481811061142f5761142f612c10565b90506020020160208101906114449190612895565b85858581811061145657611456612c10565b90506020028101906114689190612a47565b6120f5565b6001600160a01b038616600090815260056020526040902085858381811061149757611497612c10565b90506020020160208101906114ac9190612895565b81546001810183556000928352602090922060108304018054600f9093166002026101000a61ffff818102199094169290931692909202179055806114f081612bb5565b915050611275565b5083839050600a600082825461150e9190612abc565b90915550506003546001600160a01b03166340c10f193361153786670de0b6b3a7640000612b57565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b15801561157d57600080fd5b505af1158015611591573d6000803e3d6000fd5b50506001805550505050505050565b6000806115ac856122ab565b6040516020016115bc919061292e565b6040516020818303038152906040528051906020012090506816c4abbebea0100000915061164a848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506040516d18d85cda5b9bd09bdcdcd49bdbdd60921b8152600b9250600e0190505b908152602001604051809103902054836123b1565b156116605768b3de7ffc7b8a1800009150611b7d565b6116bb848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506040516f199b1bdbdc93585b9859d95c949bdbdd60821b8152600b92506010019050611635565b156116d15768a81b051e32a65400009150611b7d565b611726848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506040516a189b1d59539d5d149bdbdd60aa1b8152600b925082019050611635565b1561173c57689c49a989361b2c00009150611b7d565b61178f848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506040516718da1959949bdbdd60c21b8152600b92506008019050611635565b156117a55768901728f54ffc4800009150611b7d565b6117f68484808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505060405165191a949bdbdd60d21b8152600b92506006019050611635565b1561180c576884c2b3cca453a400009150611b7d565b611864848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506040516c18985c9d195b99195c949bdbdd609a1b8152600b9250600d019050611635565b1561187a576878f15837a7c87c00009150611b7d565b6118d5848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506040516f1a5b5c195c9cdbdb985d1bdc949bdbdd60821b8152600b92506010019050611635565b156118eb57686d2ddd595ee4b800009150611b7d565b61194084848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050604051691919585b195c949bdbdd60b21b8152600b9250600a019050611635565b156119565768616a627b1600f400009150611b7d565b6119a984848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050604051671cdb1bdd149bdbdd60c21b8152600b92506008019050611635565b156119bf5768559906e61975cc00009150611b7d565b611a1e84848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050604051731dd959191a5b99d3d9999a58da585b9d149bdbdd60621b8152600b92506014019050611635565b15611a34576849d58c07d0920800009150611b7d565b611a8c848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506040516c189d5cd11c9a5d995c949bdbdd609a1b8152600b9250600d019050611635565b15611aa257683e12112987ae4400009150611b7d565b611afd848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506040516f1c195b90dbdb1b1958dd1bdc949bdbdd60821b8152600b92506010019050611635565b15611b1357683240b5948b231c00009150611b7d565b611b6b848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506040516c1c1a135bdb9a5d1bdc949bdbdd609a1b8152600b9250600d019050611635565b15611b7d5768267d3ab6423f58000091505b509392505050565b6000546001600160a01b03163314611baf5760405162461bcd60e51b8152600401610477906129db565b6001600160a01b038116611c145760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610477565b6104ca81611d23565b600054600160a01b900460ff1615611c475760405162461bcd60e51b8152600401610477906129b1565b6000805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611c823390565b6040516001600160a01b03909116815260200160405180910390a1565b600054600160a01b900460ff16611cef5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610477565b6000805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa33611c82565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61ffff82811660009081526004602090815260408083208151608081018352815495861681526201000086046001600160481b031693810193909352600160581b90940464ffffffffff16908201526001909201546001600160a01b0316606083018190529091903314611e1f5760405162461bcd60e51b81526020600482015260136024820152722737ba103a34329039ba30b5b29037bbb732b960691b6044820152606401610477565b6007546008541015611e6857611e61620151806110f683602001516001600160481b03166110f0856040015164ffffffffff16426120ca90919063ffffffff16565b9150611ec8565b600954816040015164ffffffffff161115611e865760009150611ec8565b611ec5620151808260200151611e9c9190612b0e565b6001600160481b03166110f0836040015164ffffffffff166009546120ca90919063ffffffff16565b91505b8215611fa457600254604051635c46a7ef60e11b815230600482015233602482015261ffff8616604482015260806064820152600060848201526001600160a01b039091169063b88d4fde9060a401600060405180830381600087803b158015611f3157600080fd5b505af1158015611f45573d6000803e3d6000fd5b5050505080602001516001600160481b031660066000828254611f689190612b9e565b909155505061ffff8416600090815260046020526040902080546001600160801b031916815560010180546001600160a01b0319169055612064565b6040805160808101825261ffff8681168083526020858101516001600160481b039081168286019081524264ffffffffff9081168789019081526060808b01516001600160a01b03908116918a019182526000978852600490965298909520965187549251955196166affffffffffffffffffffff19909216919091176201000094909216939093021764ffffffffff60581b1916600160581b93909216929092021782559151600190910180546001600160a01b031916919092161790555b5092915050565b600032612079600143612b9e565b60405160609290921b6bffffffffffffffffffffffff191660208301524060348201524260548201526074810183905260940160408051601f19818403018152919052805160209091012092915050565b60006120d68284612b9e565b9392505050565b60006120d68284612b57565b60006120d68284612afa565b600054600160a01b900460ff161561211f5760405162461bcd60e51b8152600401610477906129b1565b600754600854101561216f5762015180600654600954426121409190612b9e565b61214a9190612b57565b6121549190612afa565b600860008282546121659190612abc565b9091555050426009555b60006121808461ffff1684846115a0565b905060405180608001604052808561ffff168152602001826001600160481b031681526020014264ffffffffff168152602001866001600160a01b0316815250600460008661ffff1661ffff16815260200190815260200160002060008201518160000160006101000a81548161ffff021916908361ffff16021790555060208201518160000160026101000a8154816001600160481b0302191690836001600160481b03160217905550604082015181600001600b6101000a81548164ffffffffff021916908364ffffffffff16021790555060608201518160010160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550905050806001600160481b03166006600082825461229f9190612abc565b90915550505050505050565b6060816122cf5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156122f957806122e381612bb5565b91506122f29050600a83612afa565b91506122d3565b60008167ffffffffffffffff81111561231457612314612c26565b6040519080825280601f01601f19166020018201604052801561233e576020820181803683370190505b5090505b84156123a957612353600183612b9e565b9150612360600a86612bd0565b61236b906030612abc565b60f81b81838151811061238057612380612c10565b60200101906001600160f81b031916908160001a9053506123a2600a86612afa565b9450612342565b949350505050565b6000826123be85846123c7565b14949350505050565b600081815b8451811015611b7d5760008582815181106123e9576123e9612c10565b6020026020010151905080831161240f5760008381526020829052604090209250612420565b600081815260208490526040902092505b508061242b81612bb5565b9150506123cc565b82805482825590600052602060002090600f016010900481019282156124cc5791602002820160005b8382111561249c57835183826101000a81548161ffff021916908361ffff160217905550926020019260020160208160010104928301926001030261245c565b80156124ca5782816101000a81549061ffff021916905560020160208160010104928301926001030261249c565b505b506124d89291506124dc565b5090565b5b808211156124d857600081556001016124dd565b60008083601f84011261250357600080fd5b50813567ffffffffffffffff81111561251b57600080fd5b6020830191508360208260051b850101111561253657600080fd5b9250929050565b8035801515811461254d57600080fd5b919050565b60008083601f84011261256457600080fd5b50813567ffffffffffffffff81111561257c57600080fd5b60208301915083602082850101111561253657600080fd5b6000602082840312156125a657600080fd5b81356120d681612c3c565b6000602082840312156125c357600080fd5b81516120d681612c3c565b6000806000806000608086880312156125e657600080fd5b85356125f181612c3c565b9450602086013561260181612c3c565b935060408601359250606086013567ffffffffffffffff81111561262457600080fd5b61263088828901612552565b969995985093965092949392505050565b60008060008060006060868803121561265957600080fd5b853561266481612c3c565b9450602086013567ffffffffffffffff8082111561268157600080fd5b61268d89838a016124f1565b909650945060408801359150808211156126a657600080fd5b50612630888289016124f1565b600080604083850312156126c657600080fd5b82356126d181612c3c565b946020939093013593505050565b600080602083850312156126f257600080fd5b823567ffffffffffffffff81111561270957600080fd5b612715858286016124f1565b90969095509350505050565b6000806000806060858703121561273757600080fd5b843567ffffffffffffffff81111561274e57600080fd5b61275a878288016124f1565b909550935061276d90506020860161253d565b9396929550929360400135925050565b60006020828403121561278f57600080fd5b6120d68261253d565b6000806000604084860312156127ad57600080fd5b833567ffffffffffffffff8111156127c457600080fd5b6127d086828701612552565b909790965060209590950135949350505050565b6000602082840312156127f657600080fd5b813567ffffffffffffffff8082111561280e57600080fd5b818401915084601f83011261282257600080fd5b81358181111561283457612834612c26565b604051601f8201601f19908116603f0116810190838211818310171561285c5761285c612c26565b8160405282815287602084870101111561287557600080fd5b826020860160208301376000928101602001929092525095945050505050565b6000602082840312156128a757600080fd5b813561ffff811681146120d657600080fd5b6000602082840312156128cb57600080fd5b5035919050565b6000806000604084860312156128e757600080fd5b83359250602084013567ffffffffffffffff81111561290557600080fd5b612911868287016124f1565b9497909650939450505050565b8183823760009101908152919050565b6000825160005b8181101561294f5760208186018101518583015201612935565b8181111561295e576000828501525b509190910192915050565b6020808252825182820181905260009190848201906040850190845b818110156129a557835161ffff1683529284019291840191600101612985565b50909695505050505050565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6000808335601e19843603018112612a5e57600080fd5b83018035915067ffffffffffffffff821115612a7957600080fd5b6020019150600581901b360382131561253657600080fd5b60006001600160801b03808316818516808303821115612ab357612ab3612be4565b01949350505050565b60008219821115612acf57612acf612be4565b500190565b60006001600160801b0380841680612aee57612aee612bfa565b92169190910492915050565b600082612b0957612b09612bfa565b500490565b60006001600160481b0380841680612aee57612aee612bfa565b60006001600160801b0380831681851681830481118215151615612b4e57612b4e612be4565b02949350505050565b6000816000190483118215151615612b7157612b71612be4565b500290565b60006001600160801b0383811690831681811015612b9657612b96612be4565b039392505050565b600082821015612bb057612bb0612be4565b500390565b6000600019821415612bc957612bc9612be4565b5060010190565b600082612bdf57612bdf612bfa565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146104ca57600080fdfea26469706673582212206670737a0c05712946da6bc225faad4f047695625b4e9357fa0945eba9f5934164736f6c63430008070033000000000000000000000000b1469271ff094d7fb2710b0a69a80a01ec5dbf2400000000000000000000000094d40179277269e7362e17441878dece7e774285
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101585760003560e01c8063817b1cd2116100c3578063d2f527381161007c578063d2f52738146102f7578063d38f6db414610322578063e417945414610335578063ed86695b146103cd578063f2fde38b146103f8578063fae0d1731461040b57600080fd5b8063817b1cd2146102795780638c371246146102825780638da5cb5b14610295578063a2ec11f5146102b0578063bb79966d146102c3578063c0769022146102cc57600080fd5b80635c975abb116101155780635c975abb146102195780635d428fcb1461022b578063607af39714610242578063715018a61461024b57806371c490bf14610253578063765310081461026657600080fd5b8063150b7a021461015d57806316c38b3c1461018e57806321c8da9a146101a357806339db714f146101b65780633e6f439d146101d35780635517cee5146101f3575b600080fd5b61017061016b3660046125ce565b610414565b6040516001600160e01b031990911681526020015b60405180910390f35b6101a161019c36600461277d565b610492565b005b6101a16101b13660046126df565b6104d5565b600c546101c39060ff1681565b6040519015158152602001610185565b6101e66101e1366004612594565b610744565b6040516101859190612969565b6102066102013660046126b3565b6107d8565b60405161ffff9091168152602001610185565b600054600160a01b900460ff166101c3565b61023460075481565b604051908152602001610185565b61023460095481565b6101a161081f565b6101a1610261366004612721565b610855565b6101a161027436600461277d565b610e80565b610234600a5481565b6101a16102903660046128b9565b610ebd565b6000546040516001600160a01b039091168152602001610185565b6101a16102be366004612798565b610eec565b61023460085481565b6102346102da3660046127e4565b8051602081830181018051600b8252928201919093012091525481565b61030a610305366004612594565b610f3e565b6040516001600160801b039091168152602001610185565b6101a1610330366004612641565b61118a565b61038b610343366004612895565b6004602052600090815260409020805460019091015461ffff8216916201000081046001600160481b031691600160581b90910464ffffffffff16906001600160a01b031684565b6040805161ffff90951685526001600160481b03909316602085015264ffffffffff909116918301919091526001600160a01b03166060820152608001610185565b6103e06103db3660046128d2565b6115a0565b6040516001600160481b039091168152602001610185565b6101a1610406366004612594565b611b85565b61023460065481565b60006001600160a01b038516156104805760405162461bcd60e51b815260206004820152602560248201527f43616e6e6f742073656e6420746f6b656e7320746f20436173696e6f206469726044820152646563746c7960d81b60648201526084015b60405180910390fd5b50630a85bd0160e11b95945050505050565b6000546001600160a01b031633146104bc5760405162461bcd60e51b8152600401610477906129db565b80156104cd576104ca611c1d565b50565b6104ca611c9f565b600260015414156104f85760405162461bcd60e51b815260040161047790612a10565b6002600155600c5460ff166105415760405162461bcd60e51b815260206004820152600f60248201526e149154d0d55148111254d050931151608a1b6044820152606401610477565b604080516080810182526000808252602082018190529181018290526060810182905260005b838110156107395784848281811061058157610581612c10565b90506020020160208101906105969190612895565b61ffff8181166000908152600460209081526040918290208251608081018452815494851681526201000085046001600160481b031692810192909252600160581b90930464ffffffffff16918101919091526001909101546001600160a01b031660608201819052919450925033146106525760405162461bcd60e51b815260206004820152601760248201527f4f6e6c79206f776e65722063616e2077697468647261770000000000000000006044820152606401610477565b600254604051635c46a7ef60e11b815230600482015233602482015261ffff8516604482015260806064820152600060848201526001600160a01b039091169063b88d4fde9060a401600060405180830381600087803b1580156106b557600080fd5b505af11580156106c9573d6000803e3d6000fd5b5050505061ffff83166000908152600460209081526040822080546001600160801b031916815560010180546001600160a01b0319169055830151600680546001600160481b03909216929091610721908490612b9e565b9091555081905061073181612bb5565b915050610567565b505060018055505050565b6001600160a01b0381166000908152600560209081526040918290208054835181840281018401909452808452606093928301828280156107cc57602002820191906000526020600020906000905b82829054906101000a900461ffff1661ffff16815260200190600201906020826001010492830192600103820291508084116107935790505b50505050509050919050565b600560205281600052604060002081815481106107f457600080fd5b9060005260206000209060109182820401919006600202915091509054906101000a900461ffff1681565b6000546001600160a01b031633146108495760405162461bcd60e51b8152600401610477906129db565b6108536000611d23565b565b600260015414156108785760405162461bcd60e51b815260040161047790612a10565b6002600155600054600160a01b900460ff16156108a75760405162461bcd60e51b8152600401610477906129b1565b60075460085410156108f75762015180600654600954426108c89190612b9e565b6108d29190612b57565b6108dc9190612afa565b600860008282546108ed9190612abc565b9091555050426009555b8060001080156109075750600581105b61098b5760405162461bcd60e51b815260206004820152604960248201527f47616d626c65206f7074696f6e2068617320746f20626520312c2032206f722060448201527f332e204f6e6c7920757365203420696620796f7520646f6e27742077616e7420606482015268616e7920626f6e757360b81b608482015260a401610477565b6000805b848110156109e5576109c78686838181106109ac576109ac612c10565b90506020020160208101906109c19190612895565b85611d73565b6109d19083612a91565b9150806109dd81612bb5565b91505061098f565b508215610c3f5733600090815260056020526040902054841415610a3157604080516000808252602080830180855233835260059091529290209051610a2b9290612433565b50610c24565b33600090815260056020526040812054610a4c908690612b9e565b67ffffffffffffffff811115610a6457610a64612c26565b604051908082528060200260200182016040528015610a8d578160200160208202803683370190505b5033600090815260056020908152604080832080548251818502810185019093528083529495509293909291830182828015610b1057602002820191906000526020600020906000905b82829054906101000a900461ffff1661ffff1681526020019060020190602082600101049283019260010382029150808411610ad75790505b505050505090506000805b8251811015610bfe57600160005b89811015610b9757848381518110610b4357610b43612c10565b602002602001015161ffff168b8b83818110610b6157610b61612c10565b9050602002016020810190610b769190612895565b61ffff161415610b8557600091505b80610b8f81612bb5565b915050610b29565b508015610beb57838281518110610bb057610bb0612c10565b6020026020010151858481518110610bca57610bca612c10565b61ffff90921660209283029190910190910152610be8600184612abc565b92505b5080610bf681612bb5565b915050610b1b565b503360009081526005602090815260409091208451610c1f92860190612433565b505050505b84849050600a6000828254610c399190612b9e565b90915550505b6001600160801b038116610c535750610e76565b60008260011415610ca9576064610c6b836019612b28565b610c759190612ad4565b9050610c818183612a91565b9150806001600160801b031660086000828254610c9e9190612abc565b90915550610da89050565b8260021415610d0b57603c6064610cea88886000818110610ccc57610ccc612c10565b9050602002016020810190610ce19190612895565b61ffff1661206b565b610cf49190612bd0565b11610d06576064610c6b83604b612b28565b610da8565b8260031415610da8576004610d2c87876000818110610ccc57610ccc612c10565b610d369190612bd0565b610d7a576064610d47836019612b28565b610d519190612ad4565b9050610d5d8183612b76565b9150806001600160801b031660086000828254610c9e9190612b9e565b816001600160801b031660086000828254610d959190612abc565b90915550610da590508280612a91565b91505b6003546001600160a01b03166340c10f19336040516001600160e01b031960e084901b1681526001600160a01b0390911660048201526001600160801b0385166024820152604401600060405180830381600087803b158015610e0a57600080fd5b505af1158015610e1e573d6000803e3d6000fd5b505050507f8637ddc36927e45b14e0f7bf2bc385b6df3c4eeb9e198acd550a823d6c2a6fae610e4a3390565b604080516001600160a01b0390921682526001600160801b03851660208301520160405180910390a150505b5050600180555050565b6000546001600160a01b03163314610eaa5760405162461bcd60e51b8152600401610477906129db565b600c805460ff1916911515919091179055565b6000546001600160a01b03163314610ee75760405162461bcd60e51b8152600401610477906129db565b600755565b6000546001600160a01b03163314610f165760405162461bcd60e51b8152600401610477906129db565b80600b8484604051610f2992919061291e565b90815260405190819003602001902055505050565b6001600160a01b038116600090815260056020908152604080832080548251818502810185019093528083528493830182828015610fc357602002820191906000526020600020906000905b82829054906101000a900461ffff1661ffff1681526020019060020190602082600101049283019260010382029150808411610f8a5790505b5050505050905060005b815181101561118357600060046000848481518110610fee57610fee612c10565b60209081029190910181015161ffff90811683528282019390935260409182016000208251608081018452815494851681526201000085046001600160481b031692810192909252600160581b90930464ffffffffff16918101919091526001909101546001600160a01b03908116606083018190529192508616146110ac5760405162461bcd60e51b81526020600482015260136024820152722737ba103a34329039ba30b5b29037bbb732b960691b6044820152606401610477565b60006007546008541015611103576110fc620151806110f684602001516001600160481b03166110f0866040015164ffffffffff16426120ca90919063ffffffff16565b906120dd565b906120e9565b9050611162565b600954826040015164ffffffffff16111561112057506000611162565b61115f6201518083602001516111369190612b0e565b6001600160481b03166110f0846040015164ffffffffff166009546120ca90919063ffffffff16565b90505b61116c8186612a91565b94505050808061117b90612bb5565b915050610fcd565b5050919050565b600054600160a01b900460ff16156111b45760405162461bcd60e51b8152600401610477906129b1565b600260015414156111d75760405162461bcd60e51b815260040161047790612a10565b60026001556001600160a01b03851633146112345760405162461bcd60e51b815260206004820152601c60248201527f52656368656b2073656e646572206f66207472616e73616374696f6e000000006044820152606401610477565b826112725760405162461bcd60e51b815260206004820152600e60248201526d139bc81d1bdad95b9cc81cd95b9d60921b6044820152606401610477565b60005b838110156114f85760025433906001600160a01b0316636352211e8787858181106112a2576112a2612c10565b90506020020160208101906112b79190612895565b6040516001600160e01b031960e084901b16815261ffff909116600482015260240160206040518083038186803b1580156112f157600080fd5b505afa158015611305573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061132991906125b1565b6001600160a01b0316146113745760405162461bcd60e51b8152602060048201526012602482015271546f6b656e2069736e277420796f7572732160701b6044820152606401610477565b6002546001600160a01b03166323b872dd333088888681811061139957611399612c10565b90506020020160208101906113ae9190612895565b6040516001600160e01b031960e086901b1681526001600160a01b03938416600482015292909116602483015261ffff166044820152606401600060405180830381600087803b15801561140157600080fd5b505af1158015611415573d6000803e3d6000fd5b5050505061146d8686868481811061142f5761142f612c10565b90506020020160208101906114449190612895565b85858581811061145657611456612c10565b90506020028101906114689190612a47565b6120f5565b6001600160a01b038616600090815260056020526040902085858381811061149757611497612c10565b90506020020160208101906114ac9190612895565b81546001810183556000928352602090922060108304018054600f9093166002026101000a61ffff818102199094169290931692909202179055806114f081612bb5565b915050611275565b5083839050600a600082825461150e9190612abc565b90915550506003546001600160a01b03166340c10f193361153786670de0b6b3a7640000612b57565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b15801561157d57600080fd5b505af1158015611591573d6000803e3d6000fd5b50506001805550505050505050565b6000806115ac856122ab565b6040516020016115bc919061292e565b6040516020818303038152906040528051906020012090506816c4abbebea0100000915061164a848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506040516d18d85cda5b9bd09bdcdcd49bdbdd60921b8152600b9250600e0190505b908152602001604051809103902054836123b1565b156116605768b3de7ffc7b8a1800009150611b7d565b6116bb848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506040516f199b1bdbdc93585b9859d95c949bdbdd60821b8152600b92506010019050611635565b156116d15768a81b051e32a65400009150611b7d565b611726848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506040516a189b1d59539d5d149bdbdd60aa1b8152600b925082019050611635565b1561173c57689c49a989361b2c00009150611b7d565b61178f848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506040516718da1959949bdbdd60c21b8152600b92506008019050611635565b156117a55768901728f54ffc4800009150611b7d565b6117f68484808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505060405165191a949bdbdd60d21b8152600b92506006019050611635565b1561180c576884c2b3cca453a400009150611b7d565b611864848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506040516c18985c9d195b99195c949bdbdd609a1b8152600b9250600d019050611635565b1561187a576878f15837a7c87c00009150611b7d565b6118d5848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506040516f1a5b5c195c9cdbdb985d1bdc949bdbdd60821b8152600b92506010019050611635565b156118eb57686d2ddd595ee4b800009150611b7d565b61194084848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050604051691919585b195c949bdbdd60b21b8152600b9250600a019050611635565b156119565768616a627b1600f400009150611b7d565b6119a984848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050604051671cdb1bdd149bdbdd60c21b8152600b92506008019050611635565b156119bf5768559906e61975cc00009150611b7d565b611a1e84848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050604051731dd959191a5b99d3d9999a58da585b9d149bdbdd60621b8152600b92506014019050611635565b15611a34576849d58c07d0920800009150611b7d565b611a8c848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506040516c189d5cd11c9a5d995c949bdbdd609a1b8152600b9250600d019050611635565b15611aa257683e12112987ae4400009150611b7d565b611afd848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506040516f1c195b90dbdb1b1958dd1bdc949bdbdd60821b8152600b92506010019050611635565b15611b1357683240b5948b231c00009150611b7d565b611b6b848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506040516c1c1a135bdb9a5d1bdc949bdbdd609a1b8152600b9250600d019050611635565b15611b7d5768267d3ab6423f58000091505b509392505050565b6000546001600160a01b03163314611baf5760405162461bcd60e51b8152600401610477906129db565b6001600160a01b038116611c145760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610477565b6104ca81611d23565b600054600160a01b900460ff1615611c475760405162461bcd60e51b8152600401610477906129b1565b6000805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611c823390565b6040516001600160a01b03909116815260200160405180910390a1565b600054600160a01b900460ff16611cef5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610477565b6000805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa33611c82565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61ffff82811660009081526004602090815260408083208151608081018352815495861681526201000086046001600160481b031693810193909352600160581b90940464ffffffffff16908201526001909201546001600160a01b0316606083018190529091903314611e1f5760405162461bcd60e51b81526020600482015260136024820152722737ba103a34329039ba30b5b29037bbb732b960691b6044820152606401610477565b6007546008541015611e6857611e61620151806110f683602001516001600160481b03166110f0856040015164ffffffffff16426120ca90919063ffffffff16565b9150611ec8565b600954816040015164ffffffffff161115611e865760009150611ec8565b611ec5620151808260200151611e9c9190612b0e565b6001600160481b03166110f0836040015164ffffffffff166009546120ca90919063ffffffff16565b91505b8215611fa457600254604051635c46a7ef60e11b815230600482015233602482015261ffff8616604482015260806064820152600060848201526001600160a01b039091169063b88d4fde9060a401600060405180830381600087803b158015611f3157600080fd5b505af1158015611f45573d6000803e3d6000fd5b5050505080602001516001600160481b031660066000828254611f689190612b9e565b909155505061ffff8416600090815260046020526040902080546001600160801b031916815560010180546001600160a01b0319169055612064565b6040805160808101825261ffff8681168083526020858101516001600160481b039081168286019081524264ffffffffff9081168789019081526060808b01516001600160a01b03908116918a019182526000978852600490965298909520965187549251955196166affffffffffffffffffffff19909216919091176201000094909216939093021764ffffffffff60581b1916600160581b93909216929092021782559151600190910180546001600160a01b031916919092161790555b5092915050565b600032612079600143612b9e565b60405160609290921b6bffffffffffffffffffffffff191660208301524060348201524260548201526074810183905260940160408051601f19818403018152919052805160209091012092915050565b60006120d68284612b9e565b9392505050565b60006120d68284612b57565b60006120d68284612afa565b600054600160a01b900460ff161561211f5760405162461bcd60e51b8152600401610477906129b1565b600754600854101561216f5762015180600654600954426121409190612b9e565b61214a9190612b57565b6121549190612afa565b600860008282546121659190612abc565b9091555050426009555b60006121808461ffff1684846115a0565b905060405180608001604052808561ffff168152602001826001600160481b031681526020014264ffffffffff168152602001866001600160a01b0316815250600460008661ffff1661ffff16815260200190815260200160002060008201518160000160006101000a81548161ffff021916908361ffff16021790555060208201518160000160026101000a8154816001600160481b0302191690836001600160481b03160217905550604082015181600001600b6101000a81548164ffffffffff021916908364ffffffffff16021790555060608201518160010160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550905050806001600160481b03166006600082825461229f9190612abc565b90915550505050505050565b6060816122cf5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156122f957806122e381612bb5565b91506122f29050600a83612afa565b91506122d3565b60008167ffffffffffffffff81111561231457612314612c26565b6040519080825280601f01601f19166020018201604052801561233e576020820181803683370190505b5090505b84156123a957612353600183612b9e565b9150612360600a86612bd0565b61236b906030612abc565b60f81b81838151811061238057612380612c10565b60200101906001600160f81b031916908160001a9053506123a2600a86612afa565b9450612342565b949350505050565b6000826123be85846123c7565b14949350505050565b600081815b8451811015611b7d5760008582815181106123e9576123e9612c10565b6020026020010151905080831161240f5760008381526020829052604090209250612420565b600081815260208490526040902092505b508061242b81612bb5565b9150506123cc565b82805482825590600052602060002090600f016010900481019282156124cc5791602002820160005b8382111561249c57835183826101000a81548161ffff021916908361ffff160217905550926020019260020160208160010104928301926001030261245c565b80156124ca5782816101000a81549061ffff021916905560020160208160010104928301926001030261249c565b505b506124d89291506124dc565b5090565b5b808211156124d857600081556001016124dd565b60008083601f84011261250357600080fd5b50813567ffffffffffffffff81111561251b57600080fd5b6020830191508360208260051b850101111561253657600080fd5b9250929050565b8035801515811461254d57600080fd5b919050565b60008083601f84011261256457600080fd5b50813567ffffffffffffffff81111561257c57600080fd5b60208301915083602082850101111561253657600080fd5b6000602082840312156125a657600080fd5b81356120d681612c3c565b6000602082840312156125c357600080fd5b81516120d681612c3c565b6000806000806000608086880312156125e657600080fd5b85356125f181612c3c565b9450602086013561260181612c3c565b935060408601359250606086013567ffffffffffffffff81111561262457600080fd5b61263088828901612552565b969995985093965092949392505050565b60008060008060006060868803121561265957600080fd5b853561266481612c3c565b9450602086013567ffffffffffffffff8082111561268157600080fd5b61268d89838a016124f1565b909650945060408801359150808211156126a657600080fd5b50612630888289016124f1565b600080604083850312156126c657600080fd5b82356126d181612c3c565b946020939093013593505050565b600080602083850312156126f257600080fd5b823567ffffffffffffffff81111561270957600080fd5b612715858286016124f1565b90969095509350505050565b6000806000806060858703121561273757600080fd5b843567ffffffffffffffff81111561274e57600080fd5b61275a878288016124f1565b909550935061276d90506020860161253d565b9396929550929360400135925050565b60006020828403121561278f57600080fd5b6120d68261253d565b6000806000604084860312156127ad57600080fd5b833567ffffffffffffffff8111156127c457600080fd5b6127d086828701612552565b909790965060209590950135949350505050565b6000602082840312156127f657600080fd5b813567ffffffffffffffff8082111561280e57600080fd5b818401915084601f83011261282257600080fd5b81358181111561283457612834612c26565b604051601f8201601f19908116603f0116810190838211818310171561285c5761285c612c26565b8160405282815287602084870101111561287557600080fd5b826020860160208301376000928101602001929092525095945050505050565b6000602082840312156128a757600080fd5b813561ffff811681146120d657600080fd5b6000602082840312156128cb57600080fd5b5035919050565b6000806000604084860312156128e757600080fd5b83359250602084013567ffffffffffffffff81111561290557600080fd5b612911868287016124f1565b9497909650939450505050565b8183823760009101908152919050565b6000825160005b8181101561294f5760208186018101518583015201612935565b8181111561295e576000828501525b509190910192915050565b6020808252825182820181905260009190848201906040850190845b818110156129a557835161ffff1683529284019291840191600101612985565b50909695505050505050565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6000808335601e19843603018112612a5e57600080fd5b83018035915067ffffffffffffffff821115612a7957600080fd5b6020019150600581901b360382131561253657600080fd5b60006001600160801b03808316818516808303821115612ab357612ab3612be4565b01949350505050565b60008219821115612acf57612acf612be4565b500190565b60006001600160801b0380841680612aee57612aee612bfa565b92169190910492915050565b600082612b0957612b09612bfa565b500490565b60006001600160481b0380841680612aee57612aee612bfa565b60006001600160801b0380831681851681830481118215151615612b4e57612b4e612be4565b02949350505050565b6000816000190483118215151615612b7157612b71612be4565b500290565b60006001600160801b0383811690831681811015612b9657612b96612be4565b039392505050565b600082821015612bb057612bb0612be4565b500390565b6000600019821415612bc957612bc9612be4565b5060010190565b600082612bdf57612bdf612bfa565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146104ca57600080fdfea26469706673582212206670737a0c05712946da6bc225faad4f047695625b4e9357fa0945eba9f5934164736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000b1469271ff094d7fb2710b0a69a80a01ec5dbf2400000000000000000000000094d40179277269e7362e17441878dece7e774285
-----Decoded View---------------
Arg [0] : _deezNuts (address): 0xB1469271ff094d7fb2710B0a69a80a01Ec5dbF24
Arg [1] : _nuts (address): 0x94D40179277269e7362E17441878DecE7E774285
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000b1469271ff094d7fb2710b0a69a80a01ec5dbf24
Arg [1] : 00000000000000000000000094d40179277269e7362e17441878dece7e774285
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 34 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.