Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 17,583 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Approval For... | 21305558 | 23 days ago | IN | 0 ETH | 0.00018511 | ||||
Set Approval For... | 21296465 | 24 days ago | IN | 0 ETH | 0.00023658 | ||||
Set Approval For... | 20986550 | 67 days ago | IN | 0 ETH | 0.00057475 | ||||
Set Approval For... | 20802798 | 93 days ago | IN | 0 ETH | 0.00020336 | ||||
Set Approval For... | 20235064 | 172 days ago | IN | 0 ETH | 0.00020129 | ||||
Set Approval For... | 19916879 | 216 days ago | IN | 0 ETH | 0.00039601 | ||||
Set Approval For... | 19892229 | 220 days ago | IN | 0 ETH | 0.00009723 | ||||
Set Approval For... | 19666196 | 251 days ago | IN | 0 ETH | 0.00019755 | ||||
Set Approval For... | 19630039 | 257 days ago | IN | 0 ETH | 0.00040522 | ||||
Set Approval For... | 19630011 | 257 days ago | IN | 0 ETH | 0.00037332 | ||||
Set Approval For... | 19333680 | 298 days ago | IN | 0 ETH | 0.00220604 | ||||
Set Approval For... | 19320843 | 300 days ago | IN | 0 ETH | 0.00138231 | ||||
Set Approval For... | 19311979 | 301 days ago | IN | 0 ETH | 0.00129377 | ||||
Set Approval For... | 19298490 | 303 days ago | IN | 0 ETH | 0.0006805 | ||||
Set Approval For... | 19161630 | 322 days ago | IN | 0 ETH | 0.00035517 | ||||
Set Approval For... | 19154619 | 323 days ago | IN | 0 ETH | 0.00034948 | ||||
Set Approval For... | 19102617 | 331 days ago | IN | 0 ETH | 0.00024902 | ||||
Set Approval For... | 19076255 | 334 days ago | IN | 0 ETH | 0.00033092 | ||||
Set Approval For... | 19066533 | 336 days ago | IN | 0 ETH | 0.00024866 | ||||
Set Approval For... | 19016509 | 343 days ago | IN | 0 ETH | 0.00070325 | ||||
Set Approval For... | 18998797 | 345 days ago | IN | 0 ETH | 0.00045755 | ||||
Set Approval For... | 18919667 | 356 days ago | IN | 0 ETH | 0.00037815 | ||||
Set Approval For... | 18919666 | 356 days ago | IN | 0 ETH | 0.0003781 | ||||
Set Approval For... | 18919665 | 356 days ago | IN | 0 ETH | 0.00036097 | ||||
Set Approval For... | 18913300 | 357 days ago | IN | 0 ETH | 0.00028429 |
Loading...
Loading
Contract Name:
LL420GreenPass
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)
// // __ __ _____ ______ // /__/\/__/\ /_____/\ /_____/\ // \ \ \: \ \__\:::_:\ \\:::_ \ \ // \::\_\::\/_/\ _\:\| \:\ \ \ \ // \_::: __\/ /::_/__ \:\ \ \ \ // \::\ \ \:\____/\\:\_\ \ \ // \__\/ \_____\/ \_____\/ // // 420.game Green Pass and O.G. Pass // // by LOOK LABS // // SPDX-License-Identifier: Unlicensed pragma solidity >=0.8.0; import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Burnable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; contract LL420GreenPass is ERC1155Burnable, ReentrancyGuard, Ownable { using SafeMath for uint256; string private baseURI; uint256 public constant GREEN_PASS_FEE = 0.142 ether; uint256 public constant OG_TIME_LIMIT = 4 hours + 20 minutes; uint256 public constant GREEN_LIST_TIME_LIMIT = 48 hours; uint8 public constant GREEN_PASS_TOKEN_ID = 0; uint8 public constant OG_TOKEN_ID = 1; uint8 public constant MAX_PASSES = 3; string public constant NAME = "420.game Green Pass"; string public constant SYMBOL = "420GP"; address public VAULT; uint16[2] public supplyCaps = [10000, 420]; bytes32 public ogMerkleRoot; bytes32 public greenListMerkleRoot; uint256 public startTimestamp; mapping(address => bool) public hasOGClaimed; mapping(uint8 => uint256) public supplies; mapping(address => uint256) public amountPerWallets; event SetStartTimestamp(uint256 indexed _timestamp); event ClaimOGNFT(address indexed _user); event ClaimGreenPassNFT(address indexed _user); event VaultPasses(address indexed _user); modifier onlyUnclaimedOG() { require( hasOGClaimed[msg.sender] == false, "LL420GreenPass: Can't claim multiple times" ); _; } modifier onlyStarted() { require( block.timestamp >= startTimestamp, "LL420GreenPass: Not started yet" ); _; } constructor( string memory _baseURI, uint256 _startTimestamp, bytes32 _ogMerkleRoot, bytes32 _greenListMerkleRoot ) ERC1155(_baseURI) { baseURI = _baseURI; ogMerkleRoot = _ogMerkleRoot; greenListMerkleRoot = _greenListMerkleRoot; startTimestamp = _startTimestamp; emit SetStartTimestamp(startTimestamp); } function claim(bytes32[] calldata merkleProof, uint256 _qty) external payable nonReentrant onlyStarted { require( _qty > 0 && _qty <= MAX_PASSES, "LL420GreenPass: Can't mint 0 or more than MAX_PASSES" ); require( msg.value >= GREEN_PASS_FEE.mul(_qty), "LL420GreenPass: Not enough fee" ); bytes32 node = keccak256(abi.encodePacked(msg.sender)); bool isOGVerified = MerkleProof.verify(merkleProof, ogMerkleRoot, node); uint256 timePeriod = block.timestamp - startTimestamp; if (timePeriod <= OG_TIME_LIMIT) { require(isOGVerified, "LL420GreenPass: Not allowed time"); require( amountPerWallets[msg.sender] + _qty <= MAX_PASSES, "LL420GreenPass: Can't mint more than MAX_PASSES during OG period" ); amountPerWallets[msg.sender] += _qty; } else if (timePeriod <= OG_TIME_LIMIT + GREEN_LIST_TIME_LIMIT) { bool isGreenListVerified = MerkleProof.verify( merkleProof, greenListMerkleRoot, node ); require( isOGVerified || isGreenListVerified, "LL420GreenPass: Not allowed time" ); require( amountPerWallets[msg.sender] + _qty <= MAX_PASSES, "LL420GreenPass: Can't mint more than MAX_PASSES during Green List period" ); amountPerWallets[msg.sender] += _qty; } _mint(msg.sender, GREEN_PASS_TOKEN_ID, _qty, ""); emit ClaimGreenPassNFT(msg.sender); } function claimOG(bytes32[] calldata merkleProof) external nonReentrant onlyStarted onlyUnclaimedOG { bytes32 node = keccak256(abi.encodePacked(msg.sender)); require( MerkleProof.verify(merkleProof, ogMerkleRoot, node), "LL420GreenPass: Not OG address" ); hasOGClaimed[msg.sender] = true; _mint(msg.sender, OG_TOKEN_ID, 1, ""); emit ClaimOGNFT(msg.sender); } function setBaseUri(string memory _baseURI) external onlyOwner { baseURI = _baseURI; } function setOgMerkleRoot(bytes32 _ogMerkleRoot) external onlyOwner { ogMerkleRoot = _ogMerkleRoot; } function setGreenListMerkleRoot(bytes32 _greenListMerkleRoot) external onlyOwner { greenListMerkleRoot = _greenListMerkleRoot; } function setStartTimestamp(uint256 _startTimestamp) external onlyOwner { startTimestamp = _startTimestamp; emit SetStartTimestamp(startTimestamp); } function name() public pure returns (string memory) { return NAME; } function symbol() public pure returns (string memory) { return SYMBOL; } function uri(uint256 typeId) public view override returns (string memory) { require( typeId == GREEN_PASS_TOKEN_ID || typeId == OG_TOKEN_ID, "LL420GreenPass: URI requested for invalid token type" ); require(bytes(baseURI).length > 0, "LL420GreenPass: base URI is not set"); return string(abi.encodePacked(baseURI, Strings.toString(typeId))); } function withdrawAll() external onlyOwner { (bool success, ) = payable(VAULT).call{value: address(this).balance}(""); require(success, "LL420GreenPass: Failed to withdraw to the owner"); } function setVault(address _newVaultAddress) external onlyOwner { VAULT = _newVaultAddress; } function withdraw(uint256 _amount) external onlyOwner { require(address(VAULT) != address(0), "LL420GreenPass: No vault"); require(payable(VAULT).send(_amount), "LL420GreenPass: Withdraw failed"); } function _mint( address to, uint256 id, uint256 amount, bytes memory data ) internal override { require( supplies[uint8(id)] < supplyCaps[uint8(id)], "LL420GreenPass: Suppy limit was hit" ); supplies[uint8(id)] += amount; super._mint(to, id, amount, data); } function vaultMint(uint256 _id, uint256 _amount) external onlyOwner { _mint(msg.sender, _id, _amount, ""); emit VaultPasses(msg.sender); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/ERC1155Burnable.sol) pragma solidity ^0.8.0; import "../ERC1155.sol"; /** * @dev Extension of {ERC1155} that allows token holders to destroy both their * own tokens and those that they have been approved to use. * * _Available since v3.1._ */ abstract contract ERC1155Burnable is ERC1155 { function burn( address account, uint256 id, uint256 value ) public virtual { require( account == _msgSender() || isApprovedForAll(account, _msgSender()), "ERC1155: caller is not owner nor approved" ); _burn(account, id, value); } function burnBatch( address account, uint256[] memory ids, uint256[] memory values ) public virtual { require( account == _msgSender() || isApprovedForAll(account, _msgSender()), "ERC1155: caller is not owner nor approved" ); _burnBatch(account, ids, values); } }
// 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 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/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 // OpenZeppelin Contracts v4.4.1 (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 = keccak256(abi.encodePacked(computedHash, proofElement)); } else { // Hash(current element of the proof + current computed hash) computedHash = keccak256(abi.encodePacked(proofElement, computedHash)); } } return computedHash; } }
// 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 (token/ERC1155/ERC1155.sol) pragma solidity ^0.8.0; import "./IERC1155.sol"; import "./IERC1155Receiver.sol"; import "./extensions/IERC1155MetadataURI.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the basic standard multi-token. * See https://eips.ethereum.org/EIPS/eip-1155 * Originally based on code by Enjin: https://github.com/enjin/erc-1155 * * _Available since v3.1._ */ contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI { using Address for address; // Mapping from token ID to account balances mapping(uint256 => mapping(address => uint256)) private _balances; // Mapping from account to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json string private _uri; /** * @dev See {_setURI}. */ constructor(string memory uri_) { _setURI(uri_); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC1155).interfaceId || interfaceId == type(IERC1155MetadataURI).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC1155MetadataURI-uri}. * * This implementation returns the same URI for *all* token types. It relies * on the token type ID substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * Clients calling this function must replace the `\{id\}` substring with the * actual token type ID. */ function uri(uint256) public view virtual override returns (string memory) { return _uri; } /** * @dev See {IERC1155-balanceOf}. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) public view virtual override returns (uint256) { require(account != address(0), "ERC1155: balance query for the zero address"); return _balances[id][account]; } /** * @dev See {IERC1155-balanceOfBatch}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] memory accounts, uint256[] memory ids) public view virtual override returns (uint256[] memory) { require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch"); uint256[] memory batchBalances = new uint256[](accounts.length); for (uint256 i = 0; i < accounts.length; ++i) { batchBalances[i] = balanceOf(accounts[i], ids[i]); } return batchBalances; } /** * @dev See {IERC1155-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC1155-isApprovedForAll}. */ function isApprovedForAll(address account, address operator) public view virtual override returns (bool) { return _operatorApprovals[account][operator]; } /** * @dev See {IERC1155-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: caller is not owner nor approved" ); _safeTransferFrom(from, to, id, amount, data); } /** * @dev See {IERC1155-safeBatchTransferFrom}. */ function safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: transfer caller is not owner nor approved" ); _safeBatchTransferFrom(from, to, ids, amounts, data); } /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, to, _asSingletonArray(id), _asSingletonArray(amount), data); uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; emit TransferSingle(operator, from, to, id, amount); _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, to, ids, amounts, data); for (uint256 i = 0; i < ids.length; ++i) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; } emit TransferBatch(operator, from, to, ids, amounts); _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data); } /** * @dev Sets a new URI for all token types, by relying on the token type ID * substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * By this mechanism, any occurrence of the `\{id\}` substring in either the * URI or any of the amounts in the JSON file at said URI will be replaced by * clients with the token type ID. * * For example, the `https://token-cdn-domain/\{id\}.json` URI would be * interpreted by clients as * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json` * for token type ID 0x4cce0. * * See {uri}. * * Because these URIs cannot be meaningfully represented by the {URI} event, * this function emits no events. */ function _setURI(string memory newuri) internal virtual { _uri = newuri; } /** * @dev Creates `amount` tokens of token type `id`, and assigns them to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _mint( address to, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), to, _asSingletonArray(id), _asSingletonArray(amount), data); _balances[id][to] += amount; emit TransferSingle(operator, address(0), to, id, amount); _doSafeTransferAcceptanceCheck(operator, address(0), to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _mintBatch( address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), to, ids, amounts, data); for (uint256 i = 0; i < ids.length; i++) { _balances[ids[i]][to] += amounts[i]; } emit TransferBatch(operator, address(0), to, ids, amounts); _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data); } /** * @dev Destroys `amount` tokens of token type `id` from `from` * * Requirements: * * - `from` cannot be the zero address. * - `from` must have at least `amount` tokens of token type `id`. */ function _burn( address from, uint256 id, uint256 amount ) internal virtual { require(from != address(0), "ERC1155: burn from the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, address(0), _asSingletonArray(id), _asSingletonArray(amount), ""); uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][from] = fromBalance - amount; } emit TransferSingle(operator, from, address(0), id, amount); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}. * * Requirements: * * - `ids` and `amounts` must have the same length. */ function _burnBatch( address from, uint256[] memory ids, uint256[] memory amounts ) internal virtual { require(from != address(0), "ERC1155: burn from the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, address(0), ids, amounts, ""); for (uint256 i = 0; i < ids.length; i++) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][from] = fromBalance - amount; } } emit TransferBatch(operator, from, address(0), ids, amounts); } /** * @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, "ERC1155: setting approval status for self"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Hook that is called before any token transfer. This includes minting * and burning, as well as batched variants. * * The same hook is called on both single and batched variants. For single * transfers, the length of the `id` and `amount` arrays will be 1. * * Calling conditions (for each `id` and `amount` pair): * * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens * of token type `id` will be transferred to `to`. * - When `from` is zero, `amount` tokens of token type `id` will be minted * for `to`. * - when `to` is zero, `amount` of ``from``'s tokens of token type `id` * will be burned. * - `from` and `to` are never both zero. * - `ids` and `amounts` have the same, non-zero length. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual {} function _doSafeTransferAcceptanceCheck( address operator, address from, address to, uint256 id, uint256 amount, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) { if (response != IERC1155Receiver.onERC1155Received.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _doSafeBatchTransferAcceptanceCheck( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns ( bytes4 response ) { if (response != IERC1155Receiver.onERC1155BatchReceived.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) { uint256[] memory array = new uint256[](1); array[0] = element; return array; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[EIP]. * * _Available since v3.1._ */ interface IERC1155 is IERC165 { /** * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`. */ event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value); /** * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all * transfers. */ event TransferBatch( address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values ); /** * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to * `approved`. */ event ApprovalForAll(address indexed account, address indexed operator, bool approved); /** * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. * * If an {URI} event was emitted for `id`, the standard * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value * returned by {IERC1155MetadataURI-uri}. */ event URI(string value, uint256 indexed id); /** * @dev Returns the amount of tokens of token type `id` owned by `account`. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) external view returns (uint256); /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory); /** * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the caller. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns true if `operator` is approved to transfer ``account``'s tokens. * * See {setApprovalForAll}. */ function isApprovedForAll(address account, address operator) external view returns (bool); /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes calldata data ) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function safeBatchTransferFrom( address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155Receiver.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev _Available since v3.1._ */ interface IERC1155Receiver is IERC165 { /** @dev Handles the receipt of a single ERC1155 token type. This function is called at the end of a `safeTransferFrom` after the balance has been updated. To accept the transfer, this must return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` (i.e. 0xf23a6e61, or its own function selector). @param operator The address which initiated the transfer (i.e. msg.sender) @param from The address which previously owned the token @param id The ID of the token being transferred @param value The amount of tokens being transferred @param data Additional data with no specified format @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed */ function onERC1155Received( address operator, address from, uint256 id, uint256 value, bytes calldata data ) external returns (bytes4); /** @dev Handles the receipt of a multiple ERC1155 token types. This function is called at the end of a `safeBatchTransferFrom` after the balances have been updated. To accept the transfer(s), this must return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` (i.e. 0xbc197c81, or its own function selector). @param operator The address which initiated the batch transfer (i.e. msg.sender) @param from The address which previously owned the token @param ids An array containing ids of each token being transferred (order and length must match values array) @param values An array containing amounts of each token being transferred (order and length must match ids array) @param data Additional data with no specified format @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed */ function onERC1155BatchReceived( address operator, address from, uint256[] calldata ids, uint256[] calldata values, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol) pragma solidity ^0.8.0; import "../IERC1155.sol"; /** * @dev Interface of the optional ERC1155MetadataExtension interface, as defined * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP]. * * _Available since v3.1._ */ interface IERC1155MetadataURI is IERC1155 { /** * @dev Returns the URI for token type `id`. * * If the `\{id\}` substring is present in the URI, it must be replaced by * clients with the actual token type ID. */ function uri(uint256 id) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) pragma solidity ^0.8.0; /** * @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 * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 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/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 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); }
{ "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
[{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"},{"internalType":"uint256","name":"_startTimestamp","type":"uint256"},{"internalType":"bytes32","name":"_ogMerkleRoot","type":"bytes32"},{"internalType":"bytes32","name":"_greenListMerkleRoot","type":"bytes32"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_user","type":"address"}],"name":"ClaimGreenPassNFT","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_user","type":"address"}],"name":"ClaimOGNFT","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":true,"internalType":"uint256","name":"_timestamp","type":"uint256"}],"name":"SetStartTimestamp","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_user","type":"address"}],"name":"VaultPasses","type":"event"},{"inputs":[],"name":"GREEN_LIST_TIME_LIMIT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"GREEN_PASS_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"GREEN_PASS_TOKEN_ID","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PASSES","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NAME","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OG_TIME_LIMIT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OG_TOKEN_ID","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SYMBOL","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"VAULT","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"amountPerWallets","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"burnBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"},{"internalType":"uint256","name":"_qty","type":"uint256"}],"name":"claim","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"claimOG","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"greenListMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"hasOGClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"ogMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"}],"name":"setBaseUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_greenListMerkleRoot","type":"bytes32"}],"name":"setGreenListMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_ogMerkleRoot","type":"bytes32"}],"name":"setOgMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startTimestamp","type":"uint256"}],"name":"setStartTimestamp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newVaultAddress","type":"address"}],"name":"setVault","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"","type":"uint8"}],"name":"supplies","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"supplyCaps","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"typeId","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"vaultMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60c060405261271060809081526101a460a0526200002290600790600262000135565b503480156200003057600080fd5b506040516200365638038062003656833981016040819052620000539162000266565b836200005f81620000ca565b5060016003556200007033620000e3565b835162000085906005906020870190620001d2565b5060088290556009819055600a83905560405183907f20752a55fca28e2836604deeba40ea6eca93703435bfc988685cae56449ea5dd90600090a250505050620003b1565b8051620000df906002906020840190620001d2565b5050565b600480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600183019183908215620001c05791602002820160005b838211156200018e57835183826101000a81548161ffff021916908361ffff16021790555092602001926002016020816001010492830192600103026200014c565b8015620001be5782816101000a81549061ffff02191690556002016020816001010492830192600103026200018e565b505b50620001ce9291506200024f565b5090565b828054620001e0906200035e565b90600052602060002090601f016020900481019282620002045760008555620001c0565b82601f106200021f57805160ff1916838001178555620001c0565b82800160010185558215620001c0579182015b82811115620001c057825182559160200191906001019062000232565b5b80821115620001ce576000815560010162000250565b600080600080608085870312156200027d57600080fd5b84516001600160401b03808211156200029557600080fd5b818701915087601f830112620002aa57600080fd5b815181811115620002bf57620002bf6200039b565b604051601f8201601f19908116603f01168101908382118183101715620002ea57620002ea6200039b565b81604052828152602093508a848487010111156200030757600080fd5b600091505b828210156200032b57848201840151818301850152908301906200030c565b828211156200033d5760008484830101525b9289015160408a01516060909a0151939b909a509297509195505050505050565b600181811c908216806200037357607f821691505b602082108114156200039557634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b61329580620003c16000396000f3fe6080604052600436106102455760003560e01c80636b20c45411610139578063c44bef75116100b6578063e985e9c51161007a578063e985e9c514610707578063f242432a14610750578063f2fde38b14610770578063f5298aca14610790578063f57a5388146107b0578063f76f8d78146107e357600080fd5b8063c44bef751461066e578063d8a7ab891461068e578063dbaae913146106ae578063dd4cfaa7146106db578063e6fd48bc146106f157600080fd5b806395d89b41116100fd57806395d89b41146105a15780639716eb46146105cf578063a0bcfc7f146105ef578063a22cb4651461060f578063a3f4df7e1461062f57600080fd5b80636b20c45414610524578063715018a614610544578063853828b6146105595780638da5cb5b1461056e578063954b82a81461058c57600080fd5b80633b439351116101c75780634e1273f41161018b5780634e1273f41461047f57806352b20c9e146104ac5780635def2d7c146104c25780636817031b146104d75780636a9e18a6146104f757600080fd5b80633b439351146103c8578063405ff32d146103db578063411557d11461040b578063435ccdb61461044357806348d1f4ab1461045f57600080fd5b8063196e36701161020e578063196e3670146103285780632a58d0a51461033f5780632e1a7d4d146103665780632eb2c2d6146103885780633844d3d3146103a857600080fd5b8062fdd58e1461024a57806301ffc9a71461027d57806306fdde03146102ad5780630a302530146102f25780630e89341c14610308575b600080fd5b34801561025657600080fd5b5061026a610265366004612930565b610814565b6040519081526020015b60405180910390f35b34801561028957600080fd5b5061029d610298366004612b02565b6108ab565b6040519015158152602001610274565b3480156102b957600080fd5b506040805180820190915260138152723432302e67616d6520477265656e205061737360681b60208201525b6040516102749190612dce565b3480156102fe57600080fd5b5061026a60085481565b34801561031457600080fd5b506102e5610323366004612ae9565b6108fd565b34801561033457600080fd5b5061026a6202a30081565b34801561034b57600080fd5b50610354600181565b60405160ff9091168152602001610274565b34801561037257600080fd5b50610386610381366004612ae9565b610a11565b005b34801561039457600080fd5b506103866103a3366004612774565b610b0b565b3480156103b457600080fd5b506103866103c3366004612a5d565b610ba2565b6103866103d6366004612a9e565b610df2565b3480156103e757600080fd5b5061029d6103f6366004612726565b600b6020526000908152604090205460ff1681565b34801561041757600080fd5b5060065461042b906001600160a01b031681565b6040516001600160a01b039091168152602001610274565b34801561044f57600080fd5b5061026a6701f87c3f661b000081565b34801561046b57600080fd5b5061038661047a366004612b84565b6112ea565b34801561048b57600080fd5b5061049f61049a36600461298d565b61135e565b6040516102749190612d96565b3480156104b857600080fd5b5061026a613cf081565b3480156104ce57600080fd5b50610354600381565b3480156104e357600080fd5b506103866104f2366004612726565b611487565b34801561050357600080fd5b5061026a610512366004612ba6565b600c6020526000908152604090205481565b34801561053057600080fd5b5061038661053f366004612881565b6114d3565b34801561055057600080fd5b5061038661151b565b34801561056557600080fd5b50610386611551565b34801561057a57600080fd5b506004546001600160a01b031661042b565b34801561059857600080fd5b50610354600081565b3480156105ad57600080fd5b50604080518082019091526005815264034323047560dc1b60208201526102e5565b3480156105db57600080fd5b506103866105ea366004612ae9565b611636565b3480156105fb57600080fd5b5061038661060a366004612b3c565b611665565b34801561061b57600080fd5b5061038661062a3660046128f4565b6116a6565b34801561063b57600080fd5b506102e5604051806040016040528060138152602001723432302e67616d6520477265656e205061737360681b81525081565b34801561067a57600080fd5b50610386610689366004612ae9565b6116b1565b34801561069a57600080fd5b506103866106a9366004612ae9565b61170e565b3480156106ba57600080fd5b5061026a6106c9366004612726565b600d6020526000908152604090205481565b3480156106e757600080fd5b5061026a60095481565b3480156106fd57600080fd5b5061026a600a5481565b34801561071357600080fd5b5061029d610722366004612741565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b34801561075c57600080fd5b5061038661076b36600461281d565b61173d565b34801561077c57600080fd5b5061038661078b366004612726565b611782565b34801561079c57600080fd5b506103866107ab36600461295a565b61181a565b3480156107bc57600080fd5b506107d06107cb366004612ae9565b61185d565b60405161ffff9091168152602001610274565b3480156107ef57600080fd5b506102e560405180604001604052806005815260200164034323047560dc1b81525081565b60006001600160a01b0383166108855760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b14806108dc57506001600160e01b031982166303a24d0760e21b145b806108f757506301ffc9a760e01b6001600160e01b03198316145b92915050565b606081158061090c5750600182145b6109755760405162461bcd60e51b815260206004820152603460248201527f4c4c343230477265656e506173733a205552492072657175657374656420666f6044820152737220696e76616c696420746f6b656e207479706560601b606482015260840161087c565b600060058054610984906130b6565b9050116109df5760405162461bcd60e51b815260206004820152602360248201527f4c4c343230477265656e506173733a206261736520555249206973206e6f74206044820152621cd95d60ea1b606482015260840161087c565b60056109ea8361188b565b6040516020016109fb929190612c4c565b6040516020818303038152906040529050919050565b6004546001600160a01b03163314610a3b5760405162461bcd60e51b815260040161087c90612f88565b6006546001600160a01b0316610a935760405162461bcd60e51b815260206004820152601860248201527f4c4c343230477265656e506173733a204e6f207661756c740000000000000000604482015260640161087c565b6006546040516001600160a01b039091169082156108fc029083906000818181858888f19350505050610b085760405162461bcd60e51b815260206004820152601f60248201527f4c4c343230477265656e506173733a205769746864726177206661696c656400604482015260640161087c565b50565b6001600160a01b038516331480610b275750610b278533610722565b610b8e5760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b606482015260840161087c565b610b9b8585858585611990565b5050505050565b60026003541415610bf55760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161087c565b6002600355600a54421015610c4c5760405162461bcd60e51b815260206004820152601f60248201527f4c4c343230477265656e506173733a204e6f7420737461727465642079657400604482015260640161087c565b336000908152600b602052604090205460ff1615610cbf5760405162461bcd60e51b815260206004820152602a60248201527f4c4c343230477265656e506173733a2043616e277420636c61696d206d756c7460448201526969706c652074696d657360b01b606482015260840161087c565b6040516bffffffffffffffffffffffff193360601b166020820152600090603401604051602081830303815290604052805190602001209050610d39838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506008549150849050611b2c565b610d855760405162461bcd60e51b815260206004820152601e60248201527f4c4c343230477265656e506173733a204e6f74204f4720616464726573730000604482015260640161087c565b336000818152600b60209081526040808320805460ff191660019081179091558151928301909152918152610dbd9291908190611b42565b60405133907fbf3151dad1880f5f517533f8a7ecc658ee3f4995f21a933ae5dfbf7dab0c529390600090a25050600160035550565b60026003541415610e455760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161087c565b6002600355600a54421015610e9c5760405162461bcd60e51b815260206004820152601f60248201527f4c4c343230477265656e506173733a204e6f7420737461727465642079657400604482015260640161087c565b600081118015610ead575060038111155b610f165760405162461bcd60e51b815260206004820152603460248201527f4c4c343230477265656e506173733a2043616e2774206d696e742030206f72206044820152736d6f7265207468616e204d41585f50415353455360601b606482015260840161087c565b610f286701f87c3f661b000082611c23565b341015610f775760405162461bcd60e51b815260206004820152601e60248201527f4c4c343230477265656e506173733a204e6f7420656e6f756768206665650000604482015260640161087c565b6040516bffffffffffffffffffffffff193360601b1660208201526000906034016040516020818303038152906040528051906020012090506000610ff3858580806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506008549150859050611b2c565b90506000600a54426110059190613073565b9050613cf0811161111b578161105d5760405162461bcd60e51b815260206004820181905260248201527f4c4c343230477265656e506173733a204e6f7420616c6c6f7765642074696d65604482015260640161087c565b336000908152600d602052604090205460039061107b908690613028565b11156110f1576040805162461bcd60e51b81526020600482015260248101919091527f4c4c343230477265656e506173733a2043616e2774206d696e74206d6f72652060448201527f7468616e204d41585f50415353455320647572696e67204f4720706572696f64606482015260840161087c565b336000908152600d602052604081208054869290611110908490613028565b909155506112939050565b61112a6202a300613cf0613028565b8111611293576000611173878780806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506009549150879050611b2c565b9050828061117e5750805b6111ca5760405162461bcd60e51b815260206004820181905260248201527f4c4c343230477265656e506173733a204e6f7420616c6c6f7765642074696d65604482015260640161087c565b336000908152600d60205260409020546003906111e8908790613028565b111561126d5760405162461bcd60e51b815260206004820152604860248201527f4c4c343230477265656e506173733a2043616e2774206d696e74206d6f72652060448201527f7468616e204d41585f50415353455320647572696e6720477265656e204c69736064820152671d081c195c9a5bd960c21b608482015260a40161087c565b336000908152600d60205260408120805487929061128c908490613028565b9091555050505b6112b233600060ff168660405180602001604052806000815250611b42565b60405133907f6d26d937ce19af221f9dd7bef368717816d3dd749e9fcc84b617682f816706fc90600090a25050600160035550505050565b6004546001600160a01b031633146113145760405162461bcd60e51b815260040161087c90612f88565b61132f33838360405180602001604052806000815250611b42565b60405133907fda8d598ccad9748ee7bfdc95efae5bdd0de5168b24e904ce38f28dc704a2baba90600090a25050565b606081518351146113c35760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b606482015260840161087c565b600083516001600160401b038111156113de576113de61318e565b604051908082528060200260200182016040528015611407578160200160208202803683370190505b50905060005b845181101561147f5761145285828151811061142b5761142b613178565b602002602001015185838151811061144557611445613178565b6020026020010151610814565b82828151811061146457611464613178565b60209081029190910101526114788161311d565b905061140d565b509392505050565b6004546001600160a01b031633146114b15760405162461bcd60e51b815260040161087c90612f88565b600680546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b0383163314806114ef57506114ef8333610722565b61150b5760405162461bcd60e51b815260040161087c90612e6d565b611516838383611c36565b505050565b6004546001600160a01b031633146115455760405162461bcd60e51b815260040161087c90612f88565b61154f6000611db2565b565b6004546001600160a01b0316331461157b5760405162461bcd60e51b815260040161087c90612f88565b6006546040516000916001600160a01b03169047908381818185875af1925050503d80600081146115c8576040519150601f19603f3d011682016040523d82523d6000602084013e6115cd565b606091505b5050905080610b085760405162461bcd60e51b815260206004820152602f60248201527f4c4c343230477265656e506173733a204661696c656420746f2077697468647260448201526e30bb903a37903a34329037bbb732b960891b606482015260840161087c565b6004546001600160a01b031633146116605760405162461bcd60e51b815260040161087c90612f88565b600955565b6004546001600160a01b0316331461168f5760405162461bcd60e51b815260040161087c90612f88565b80516116a2906005906020840190612532565b5050565b6116a2338383611e04565b6004546001600160a01b031633146116db5760405162461bcd60e51b815260040161087c90612f88565b600a81905560405181907f20752a55fca28e2836604deeba40ea6eca93703435bfc988685cae56449ea5dd90600090a250565b6004546001600160a01b031633146117385760405162461bcd60e51b815260040161087c90612f88565b600855565b6001600160a01b03851633148061175957506117598533610722565b6117755760405162461bcd60e51b815260040161087c90612e6d565b610b9b8585858585611ee5565b6004546001600160a01b031633146117ac5760405162461bcd60e51b815260040161087c90612f88565b6001600160a01b0381166118115760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161087c565b610b0881611db2565b6001600160a01b03831633148061183657506118368333610722565b6118525760405162461bcd60e51b815260040161087c90612e6d565b61151683838361200b565b6007816002811061186d57600080fd5b60109182820401919006600202915054906101000a900461ffff1681565b6060816118af5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156118d957806118c38161311d565b91506118d29050600a83613040565b91506118b3565b6000816001600160401b038111156118f3576118f361318e565b6040519080825280601f01601f19166020018201604052801561191d576020820181803683370190505b5090505b841561198857611932600183613073565b915061193f600a86613138565b61194a906030613028565b60f81b81838151811061195f5761195f613178565b60200101906001600160f81b031916908160001a905350611981600a86613040565b9450611921565b949350505050565b81518351146119b15760405162461bcd60e51b815260040161087c90612fbd565b6001600160a01b0384166119d75760405162461bcd60e51b815260040161087c90612eb6565b3360005b8451811015611abe5760008582815181106119f8576119f8613178565b602002602001015190506000858381518110611a1657611a16613178565b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015611a665760405162461bcd60e51b815260040161087c90612f3e565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611aa3908490613028565b9250508190555050505080611ab79061311d565b90506119db565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611b0e929190612da9565b60405180910390a4611b2481878787878761210d565b505050505050565b600082611b398584612278565b14949350505050565b60078360ff1660028110611b5857611b58613178565b601091828204019190066002029054906101000a900461ffff1661ffff16600c60008560ff1660ff1681526020019081526020016000205410611be95760405162461bcd60e51b815260206004820152602360248201527f4c4c343230477265656e506173733a205375707079206c696d697420776173206044820152621a1a5d60ea1b606482015260840161087c565b60ff83166000908152600c602052604081208054849290611c0b908490613028565b90915550611c1d90508484848461231c565b50505050565b6000611c2f8284613054565b9392505050565b6001600160a01b038316611c5c5760405162461bcd60e51b815260040161087c90612efb565b8051825114611c7d5760405162461bcd60e51b815260040161087c90612fbd565b604080516020810190915260009081905233905b8351811015611d53576000848281518110611cae57611cae613178565b602002602001015190506000848381518110611ccc57611ccc613178565b602090810291909101810151600084815280835260408082206001600160a01b038c168352909352919091205490915081811015611d1c5760405162461bcd60e51b815260040161087c90612e29565b6000928352602083815260408085206001600160a01b038b1686529091529092209103905580611d4b8161311d565b915050611c91565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051611da4929190612da9565b60405180910390a450505050565b600480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b03161415611e785760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b606482015260840161087c565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b038416611f0b5760405162461bcd60e51b815260040161087c90612eb6565b33611f24818787611f1b8861241d565b610b9b8861241d565b6000848152602081815260408083206001600160a01b038a16845290915290205483811015611f655760405162461bcd60e51b815260040161087c90612f3e565b6000858152602081815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290611fa2908490613028565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4612002828888888888612468565b50505050505050565b6001600160a01b0383166120315760405162461bcd60e51b815260040161087c90612efb565b33612061818560006120428761241d565b61204b8761241d565b5050604080516020810190915260009052505050565b6000838152602081815260408083206001600160a01b0388168452909152902054828110156120a25760405162461bcd60e51b815260040161087c90612e29565b6000848152602081815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b6001600160a01b0384163b15611b245760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906121519089908990889088908890600401612cf3565b602060405180830381600087803b15801561216b57600080fd5b505af192505050801561219b575060408051601f3d908101601f1916820190925261219891810190612b1f565b60015b612248576121a76131a4565b806308c379a014156121e157506121bc6131c0565b806121c757506121e3565b8060405162461bcd60e51b815260040161087c9190612dce565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b606482015260840161087c565b6001600160e01b0319811663bc197c8160e01b146120025760405162461bcd60e51b815260040161087c90612de1565b600081815b845181101561147f57600085828151811061229a5761229a613178565b602002602001015190508083116122dc576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250612309565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b50806123148161311d565b91505061227d565b6001600160a01b03841661237c5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b606482015260840161087c565b3361238d81600087611f1b8861241d565b6000848152602081815260408083206001600160a01b0389168452909152812080548592906123bd908490613028565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610b9b81600087878787612468565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061245757612457613178565b602090810291909101015292915050565b6001600160a01b0384163b15611b245760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906124ac9089908990889088908890600401612d51565b602060405180830381600087803b1580156124c657600080fd5b505af19250505080156124f6575060408051601f3d908101601f191682019092526124f391810190612b1f565b60015b612502576121a76131a4565b6001600160e01b0319811663f23a6e6160e01b146120025760405162461bcd60e51b815260040161087c90612de1565b82805461253e906130b6565b90600052602060002090601f01602090048101928261256057600085556125a6565b82601f1061257957805160ff19168380011785556125a6565b828001600101855582156125a6579182015b828111156125a657825182559160200191906001019061258b565b506125b29291506125b6565b5090565b5b808211156125b257600081556001016125b7565b60006001600160401b038311156125e4576125e461318e565b6040516125fb601f8501601f1916602001826130f1565b80915083815284848401111561261057600080fd5b83836020830137600060208583010152509392505050565b80356001600160a01b038116811461263f57600080fd5b919050565b60008083601f84011261265657600080fd5b5081356001600160401b0381111561266d57600080fd5b6020830191508360208260051b850101111561268857600080fd5b9250929050565b600082601f8301126126a057600080fd5b813560206126ad82613005565b6040516126ba82826130f1565b8381528281019150858301600585901b870184018810156126da57600080fd5b60005b858110156126f9578135845292840192908401906001016126dd565b5090979650505050505050565b600082601f83011261271757600080fd5b611c2f838335602085016125cb565b60006020828403121561273857600080fd5b611c2f82612628565b6000806040838503121561275457600080fd5b61275d83612628565b915061276b60208401612628565b90509250929050565b600080600080600060a0868803121561278c57600080fd5b61279586612628565b94506127a360208701612628565b935060408601356001600160401b03808211156127bf57600080fd5b6127cb89838a0161268f565b945060608801359150808211156127e157600080fd5b6127ed89838a0161268f565b9350608088013591508082111561280357600080fd5b5061281088828901612706565b9150509295509295909350565b600080600080600060a0868803121561283557600080fd5b61283e86612628565b945061284c60208701612628565b9350604086013592506060860135915060808601356001600160401b0381111561287557600080fd5b61281088828901612706565b60008060006060848603121561289657600080fd5b61289f84612628565b925060208401356001600160401b03808211156128bb57600080fd5b6128c78783880161268f565b935060408601359150808211156128dd57600080fd5b506128ea8682870161268f565b9150509250925092565b6000806040838503121561290757600080fd5b61291083612628565b91506020830135801515811461292557600080fd5b809150509250929050565b6000806040838503121561294357600080fd5b61294c83612628565b946020939093013593505050565b60008060006060848603121561296f57600080fd5b61297884612628565b95602085013595506040909401359392505050565b600080604083850312156129a057600080fd5b82356001600160401b03808211156129b757600080fd5b818501915085601f8301126129cb57600080fd5b813560206129d882613005565b6040516129e582826130f1565b8381528281019150858301600585901b870184018b1015612a0557600080fd5b600096505b84871015612a2f57612a1b81612628565b835260019690960195918301918301612a0a565b5096505086013592505080821115612a4657600080fd5b50612a538582860161268f565b9150509250929050565b60008060208385031215612a7057600080fd5b82356001600160401b03811115612a8657600080fd5b612a9285828601612644565b90969095509350505050565b600080600060408486031215612ab357600080fd5b83356001600160401b03811115612ac957600080fd5b612ad586828701612644565b909790965060209590950135949350505050565b600060208284031215612afb57600080fd5b5035919050565b600060208284031215612b1457600080fd5b8135611c2f81613249565b600060208284031215612b3157600080fd5b8151611c2f81613249565b600060208284031215612b4e57600080fd5b81356001600160401b03811115612b6457600080fd5b8201601f81018413612b7557600080fd5b611988848235602084016125cb565b60008060408385031215612b9757600080fd5b50508035926020909101359150565b600060208284031215612bb857600080fd5b813560ff81168114611c2f57600080fd5b600081518084526020808501945080840160005b83811015612bf957815187529582019590820190600101612bdd565b509495945050505050565b60008151808452612c1c81602086016020860161308a565b601f01601f19169290920160200192915050565b60008151612c4281856020860161308a565b9290920192915050565b600080845481600182811c915080831680612c6857607f831692505b6020808410821415612c8857634e487b7160e01b86526022600452602486fd5b818015612c9c5760018114612cad57612cda565b60ff19861689528489019650612cda565b60008b81526020902060005b86811015612cd25781548b820152908501908301612cb9565b505084890196505b505050505050612cea8185612c30565b95945050505050565b6001600160a01b0386811682528516602082015260a060408201819052600090612d1f90830186612bc9565b8281036060840152612d318186612bc9565b90508281036080840152612d458185612c04565b98975050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090612d8b90830184612c04565b979650505050505050565b602081526000611c2f6020830184612bc9565b604081526000612dbc6040830185612bc9565b8281036020840152612cea8185612bc9565b602081526000611c2f6020830184612c04565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b606082015260800190565b60208082526029908201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201526808185c1c1c9bdd995960ba1b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60006001600160401b0382111561301e5761301e61318e565b5060051b60200190565b6000821982111561303b5761303b61314c565b500190565b60008261304f5761304f613162565b500490565b600081600019048311821515161561306e5761306e61314c565b500290565b6000828210156130855761308561314c565b500390565b60005b838110156130a557818101518382015260200161308d565b83811115611c1d5750506000910152565b600181811c908216806130ca57607f821691505b602082108114156130eb57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8201601f191681016001600160401b03811182821017156131165761311661318e565b6040525050565b60006000198214156131315761313161314c565b5060010190565b60008261314757613147613162565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d11156131bd5760046000803e5060005160e01c5b90565b600060443d10156131ce5790565b6040516003193d81016004833e81513d6001600160401b0381602484011181841117156131fd57505050505090565b82850191508151818111156132155750505050505090565b843d870101602082850101111561322f5750505050505090565b61323e602082860101876130f1565b509095945050505050565b6001600160e01b031981168114610b0857600080fdfea2646970667358221220d9b6ab2e1e14783e35530c26fa2f7515c05e5a0208b19d9d98f89596f99f308464736f6c634300080700330000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000006207e7902dc2c9ac92fa4f1d59e9689f2a57a2dafee3837a943a6122ff578be55b315c37e0372c9bb6f35c5cf2d4616243ef33a5d66b1f0ce4b4e75f366ab8de503f1b20000000000000000000000000000000000000000000000000000000000000001c68747470733a2f2f3432302e6c6f6f6b6c6162732e78797a2f67702f00000000
Deployed Bytecode
0x6080604052600436106102455760003560e01c80636b20c45411610139578063c44bef75116100b6578063e985e9c51161007a578063e985e9c514610707578063f242432a14610750578063f2fde38b14610770578063f5298aca14610790578063f57a5388146107b0578063f76f8d78146107e357600080fd5b8063c44bef751461066e578063d8a7ab891461068e578063dbaae913146106ae578063dd4cfaa7146106db578063e6fd48bc146106f157600080fd5b806395d89b41116100fd57806395d89b41146105a15780639716eb46146105cf578063a0bcfc7f146105ef578063a22cb4651461060f578063a3f4df7e1461062f57600080fd5b80636b20c45414610524578063715018a614610544578063853828b6146105595780638da5cb5b1461056e578063954b82a81461058c57600080fd5b80633b439351116101c75780634e1273f41161018b5780634e1273f41461047f57806352b20c9e146104ac5780635def2d7c146104c25780636817031b146104d75780636a9e18a6146104f757600080fd5b80633b439351146103c8578063405ff32d146103db578063411557d11461040b578063435ccdb61461044357806348d1f4ab1461045f57600080fd5b8063196e36701161020e578063196e3670146103285780632a58d0a51461033f5780632e1a7d4d146103665780632eb2c2d6146103885780633844d3d3146103a857600080fd5b8062fdd58e1461024a57806301ffc9a71461027d57806306fdde03146102ad5780630a302530146102f25780630e89341c14610308575b600080fd5b34801561025657600080fd5b5061026a610265366004612930565b610814565b6040519081526020015b60405180910390f35b34801561028957600080fd5b5061029d610298366004612b02565b6108ab565b6040519015158152602001610274565b3480156102b957600080fd5b506040805180820190915260138152723432302e67616d6520477265656e205061737360681b60208201525b6040516102749190612dce565b3480156102fe57600080fd5b5061026a60085481565b34801561031457600080fd5b506102e5610323366004612ae9565b6108fd565b34801561033457600080fd5b5061026a6202a30081565b34801561034b57600080fd5b50610354600181565b60405160ff9091168152602001610274565b34801561037257600080fd5b50610386610381366004612ae9565b610a11565b005b34801561039457600080fd5b506103866103a3366004612774565b610b0b565b3480156103b457600080fd5b506103866103c3366004612a5d565b610ba2565b6103866103d6366004612a9e565b610df2565b3480156103e757600080fd5b5061029d6103f6366004612726565b600b6020526000908152604090205460ff1681565b34801561041757600080fd5b5060065461042b906001600160a01b031681565b6040516001600160a01b039091168152602001610274565b34801561044f57600080fd5b5061026a6701f87c3f661b000081565b34801561046b57600080fd5b5061038661047a366004612b84565b6112ea565b34801561048b57600080fd5b5061049f61049a36600461298d565b61135e565b6040516102749190612d96565b3480156104b857600080fd5b5061026a613cf081565b3480156104ce57600080fd5b50610354600381565b3480156104e357600080fd5b506103866104f2366004612726565b611487565b34801561050357600080fd5b5061026a610512366004612ba6565b600c6020526000908152604090205481565b34801561053057600080fd5b5061038661053f366004612881565b6114d3565b34801561055057600080fd5b5061038661151b565b34801561056557600080fd5b50610386611551565b34801561057a57600080fd5b506004546001600160a01b031661042b565b34801561059857600080fd5b50610354600081565b3480156105ad57600080fd5b50604080518082019091526005815264034323047560dc1b60208201526102e5565b3480156105db57600080fd5b506103866105ea366004612ae9565b611636565b3480156105fb57600080fd5b5061038661060a366004612b3c565b611665565b34801561061b57600080fd5b5061038661062a3660046128f4565b6116a6565b34801561063b57600080fd5b506102e5604051806040016040528060138152602001723432302e67616d6520477265656e205061737360681b81525081565b34801561067a57600080fd5b50610386610689366004612ae9565b6116b1565b34801561069a57600080fd5b506103866106a9366004612ae9565b61170e565b3480156106ba57600080fd5b5061026a6106c9366004612726565b600d6020526000908152604090205481565b3480156106e757600080fd5b5061026a60095481565b3480156106fd57600080fd5b5061026a600a5481565b34801561071357600080fd5b5061029d610722366004612741565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b34801561075c57600080fd5b5061038661076b36600461281d565b61173d565b34801561077c57600080fd5b5061038661078b366004612726565b611782565b34801561079c57600080fd5b506103866107ab36600461295a565b61181a565b3480156107bc57600080fd5b506107d06107cb366004612ae9565b61185d565b60405161ffff9091168152602001610274565b3480156107ef57600080fd5b506102e560405180604001604052806005815260200164034323047560dc1b81525081565b60006001600160a01b0383166108855760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b14806108dc57506001600160e01b031982166303a24d0760e21b145b806108f757506301ffc9a760e01b6001600160e01b03198316145b92915050565b606081158061090c5750600182145b6109755760405162461bcd60e51b815260206004820152603460248201527f4c4c343230477265656e506173733a205552492072657175657374656420666f6044820152737220696e76616c696420746f6b656e207479706560601b606482015260840161087c565b600060058054610984906130b6565b9050116109df5760405162461bcd60e51b815260206004820152602360248201527f4c4c343230477265656e506173733a206261736520555249206973206e6f74206044820152621cd95d60ea1b606482015260840161087c565b60056109ea8361188b565b6040516020016109fb929190612c4c565b6040516020818303038152906040529050919050565b6004546001600160a01b03163314610a3b5760405162461bcd60e51b815260040161087c90612f88565b6006546001600160a01b0316610a935760405162461bcd60e51b815260206004820152601860248201527f4c4c343230477265656e506173733a204e6f207661756c740000000000000000604482015260640161087c565b6006546040516001600160a01b039091169082156108fc029083906000818181858888f19350505050610b085760405162461bcd60e51b815260206004820152601f60248201527f4c4c343230477265656e506173733a205769746864726177206661696c656400604482015260640161087c565b50565b6001600160a01b038516331480610b275750610b278533610722565b610b8e5760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b606482015260840161087c565b610b9b8585858585611990565b5050505050565b60026003541415610bf55760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161087c565b6002600355600a54421015610c4c5760405162461bcd60e51b815260206004820152601f60248201527f4c4c343230477265656e506173733a204e6f7420737461727465642079657400604482015260640161087c565b336000908152600b602052604090205460ff1615610cbf5760405162461bcd60e51b815260206004820152602a60248201527f4c4c343230477265656e506173733a2043616e277420636c61696d206d756c7460448201526969706c652074696d657360b01b606482015260840161087c565b6040516bffffffffffffffffffffffff193360601b166020820152600090603401604051602081830303815290604052805190602001209050610d39838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506008549150849050611b2c565b610d855760405162461bcd60e51b815260206004820152601e60248201527f4c4c343230477265656e506173733a204e6f74204f4720616464726573730000604482015260640161087c565b336000818152600b60209081526040808320805460ff191660019081179091558151928301909152918152610dbd9291908190611b42565b60405133907fbf3151dad1880f5f517533f8a7ecc658ee3f4995f21a933ae5dfbf7dab0c529390600090a25050600160035550565b60026003541415610e455760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161087c565b6002600355600a54421015610e9c5760405162461bcd60e51b815260206004820152601f60248201527f4c4c343230477265656e506173733a204e6f7420737461727465642079657400604482015260640161087c565b600081118015610ead575060038111155b610f165760405162461bcd60e51b815260206004820152603460248201527f4c4c343230477265656e506173733a2043616e2774206d696e742030206f72206044820152736d6f7265207468616e204d41585f50415353455360601b606482015260840161087c565b610f286701f87c3f661b000082611c23565b341015610f775760405162461bcd60e51b815260206004820152601e60248201527f4c4c343230477265656e506173733a204e6f7420656e6f756768206665650000604482015260640161087c565b6040516bffffffffffffffffffffffff193360601b1660208201526000906034016040516020818303038152906040528051906020012090506000610ff3858580806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506008549150859050611b2c565b90506000600a54426110059190613073565b9050613cf0811161111b578161105d5760405162461bcd60e51b815260206004820181905260248201527f4c4c343230477265656e506173733a204e6f7420616c6c6f7765642074696d65604482015260640161087c565b336000908152600d602052604090205460039061107b908690613028565b11156110f1576040805162461bcd60e51b81526020600482015260248101919091527f4c4c343230477265656e506173733a2043616e2774206d696e74206d6f72652060448201527f7468616e204d41585f50415353455320647572696e67204f4720706572696f64606482015260840161087c565b336000908152600d602052604081208054869290611110908490613028565b909155506112939050565b61112a6202a300613cf0613028565b8111611293576000611173878780806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506009549150879050611b2c565b9050828061117e5750805b6111ca5760405162461bcd60e51b815260206004820181905260248201527f4c4c343230477265656e506173733a204e6f7420616c6c6f7765642074696d65604482015260640161087c565b336000908152600d60205260409020546003906111e8908790613028565b111561126d5760405162461bcd60e51b815260206004820152604860248201527f4c4c343230477265656e506173733a2043616e2774206d696e74206d6f72652060448201527f7468616e204d41585f50415353455320647572696e6720477265656e204c69736064820152671d081c195c9a5bd960c21b608482015260a40161087c565b336000908152600d60205260408120805487929061128c908490613028565b9091555050505b6112b233600060ff168660405180602001604052806000815250611b42565b60405133907f6d26d937ce19af221f9dd7bef368717816d3dd749e9fcc84b617682f816706fc90600090a25050600160035550505050565b6004546001600160a01b031633146113145760405162461bcd60e51b815260040161087c90612f88565b61132f33838360405180602001604052806000815250611b42565b60405133907fda8d598ccad9748ee7bfdc95efae5bdd0de5168b24e904ce38f28dc704a2baba90600090a25050565b606081518351146113c35760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b606482015260840161087c565b600083516001600160401b038111156113de576113de61318e565b604051908082528060200260200182016040528015611407578160200160208202803683370190505b50905060005b845181101561147f5761145285828151811061142b5761142b613178565b602002602001015185838151811061144557611445613178565b6020026020010151610814565b82828151811061146457611464613178565b60209081029190910101526114788161311d565b905061140d565b509392505050565b6004546001600160a01b031633146114b15760405162461bcd60e51b815260040161087c90612f88565b600680546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b0383163314806114ef57506114ef8333610722565b61150b5760405162461bcd60e51b815260040161087c90612e6d565b611516838383611c36565b505050565b6004546001600160a01b031633146115455760405162461bcd60e51b815260040161087c90612f88565b61154f6000611db2565b565b6004546001600160a01b0316331461157b5760405162461bcd60e51b815260040161087c90612f88565b6006546040516000916001600160a01b03169047908381818185875af1925050503d80600081146115c8576040519150601f19603f3d011682016040523d82523d6000602084013e6115cd565b606091505b5050905080610b085760405162461bcd60e51b815260206004820152602f60248201527f4c4c343230477265656e506173733a204661696c656420746f2077697468647260448201526e30bb903a37903a34329037bbb732b960891b606482015260840161087c565b6004546001600160a01b031633146116605760405162461bcd60e51b815260040161087c90612f88565b600955565b6004546001600160a01b0316331461168f5760405162461bcd60e51b815260040161087c90612f88565b80516116a2906005906020840190612532565b5050565b6116a2338383611e04565b6004546001600160a01b031633146116db5760405162461bcd60e51b815260040161087c90612f88565b600a81905560405181907f20752a55fca28e2836604deeba40ea6eca93703435bfc988685cae56449ea5dd90600090a250565b6004546001600160a01b031633146117385760405162461bcd60e51b815260040161087c90612f88565b600855565b6001600160a01b03851633148061175957506117598533610722565b6117755760405162461bcd60e51b815260040161087c90612e6d565b610b9b8585858585611ee5565b6004546001600160a01b031633146117ac5760405162461bcd60e51b815260040161087c90612f88565b6001600160a01b0381166118115760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161087c565b610b0881611db2565b6001600160a01b03831633148061183657506118368333610722565b6118525760405162461bcd60e51b815260040161087c90612e6d565b61151683838361200b565b6007816002811061186d57600080fd5b60109182820401919006600202915054906101000a900461ffff1681565b6060816118af5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156118d957806118c38161311d565b91506118d29050600a83613040565b91506118b3565b6000816001600160401b038111156118f3576118f361318e565b6040519080825280601f01601f19166020018201604052801561191d576020820181803683370190505b5090505b841561198857611932600183613073565b915061193f600a86613138565b61194a906030613028565b60f81b81838151811061195f5761195f613178565b60200101906001600160f81b031916908160001a905350611981600a86613040565b9450611921565b949350505050565b81518351146119b15760405162461bcd60e51b815260040161087c90612fbd565b6001600160a01b0384166119d75760405162461bcd60e51b815260040161087c90612eb6565b3360005b8451811015611abe5760008582815181106119f8576119f8613178565b602002602001015190506000858381518110611a1657611a16613178565b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015611a665760405162461bcd60e51b815260040161087c90612f3e565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611aa3908490613028565b9250508190555050505080611ab79061311d565b90506119db565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611b0e929190612da9565b60405180910390a4611b2481878787878761210d565b505050505050565b600082611b398584612278565b14949350505050565b60078360ff1660028110611b5857611b58613178565b601091828204019190066002029054906101000a900461ffff1661ffff16600c60008560ff1660ff1681526020019081526020016000205410611be95760405162461bcd60e51b815260206004820152602360248201527f4c4c343230477265656e506173733a205375707079206c696d697420776173206044820152621a1a5d60ea1b606482015260840161087c565b60ff83166000908152600c602052604081208054849290611c0b908490613028565b90915550611c1d90508484848461231c565b50505050565b6000611c2f8284613054565b9392505050565b6001600160a01b038316611c5c5760405162461bcd60e51b815260040161087c90612efb565b8051825114611c7d5760405162461bcd60e51b815260040161087c90612fbd565b604080516020810190915260009081905233905b8351811015611d53576000848281518110611cae57611cae613178565b602002602001015190506000848381518110611ccc57611ccc613178565b602090810291909101810151600084815280835260408082206001600160a01b038c168352909352919091205490915081811015611d1c5760405162461bcd60e51b815260040161087c90612e29565b6000928352602083815260408085206001600160a01b038b1686529091529092209103905580611d4b8161311d565b915050611c91565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051611da4929190612da9565b60405180910390a450505050565b600480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b03161415611e785760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b606482015260840161087c565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b038416611f0b5760405162461bcd60e51b815260040161087c90612eb6565b33611f24818787611f1b8861241d565b610b9b8861241d565b6000848152602081815260408083206001600160a01b038a16845290915290205483811015611f655760405162461bcd60e51b815260040161087c90612f3e565b6000858152602081815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290611fa2908490613028565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4612002828888888888612468565b50505050505050565b6001600160a01b0383166120315760405162461bcd60e51b815260040161087c90612efb565b33612061818560006120428761241d565b61204b8761241d565b5050604080516020810190915260009052505050565b6000838152602081815260408083206001600160a01b0388168452909152902054828110156120a25760405162461bcd60e51b815260040161087c90612e29565b6000848152602081815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b6001600160a01b0384163b15611b245760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906121519089908990889088908890600401612cf3565b602060405180830381600087803b15801561216b57600080fd5b505af192505050801561219b575060408051601f3d908101601f1916820190925261219891810190612b1f565b60015b612248576121a76131a4565b806308c379a014156121e157506121bc6131c0565b806121c757506121e3565b8060405162461bcd60e51b815260040161087c9190612dce565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b606482015260840161087c565b6001600160e01b0319811663bc197c8160e01b146120025760405162461bcd60e51b815260040161087c90612de1565b600081815b845181101561147f57600085828151811061229a5761229a613178565b602002602001015190508083116122dc576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250612309565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b50806123148161311d565b91505061227d565b6001600160a01b03841661237c5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b606482015260840161087c565b3361238d81600087611f1b8861241d565b6000848152602081815260408083206001600160a01b0389168452909152812080548592906123bd908490613028565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610b9b81600087878787612468565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061245757612457613178565b602090810291909101015292915050565b6001600160a01b0384163b15611b245760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906124ac9089908990889088908890600401612d51565b602060405180830381600087803b1580156124c657600080fd5b505af19250505080156124f6575060408051601f3d908101601f191682019092526124f391810190612b1f565b60015b612502576121a76131a4565b6001600160e01b0319811663f23a6e6160e01b146120025760405162461bcd60e51b815260040161087c90612de1565b82805461253e906130b6565b90600052602060002090601f01602090048101928261256057600085556125a6565b82601f1061257957805160ff19168380011785556125a6565b828001600101855582156125a6579182015b828111156125a657825182559160200191906001019061258b565b506125b29291506125b6565b5090565b5b808211156125b257600081556001016125b7565b60006001600160401b038311156125e4576125e461318e565b6040516125fb601f8501601f1916602001826130f1565b80915083815284848401111561261057600080fd5b83836020830137600060208583010152509392505050565b80356001600160a01b038116811461263f57600080fd5b919050565b60008083601f84011261265657600080fd5b5081356001600160401b0381111561266d57600080fd5b6020830191508360208260051b850101111561268857600080fd5b9250929050565b600082601f8301126126a057600080fd5b813560206126ad82613005565b6040516126ba82826130f1565b8381528281019150858301600585901b870184018810156126da57600080fd5b60005b858110156126f9578135845292840192908401906001016126dd565b5090979650505050505050565b600082601f83011261271757600080fd5b611c2f838335602085016125cb565b60006020828403121561273857600080fd5b611c2f82612628565b6000806040838503121561275457600080fd5b61275d83612628565b915061276b60208401612628565b90509250929050565b600080600080600060a0868803121561278c57600080fd5b61279586612628565b94506127a360208701612628565b935060408601356001600160401b03808211156127bf57600080fd5b6127cb89838a0161268f565b945060608801359150808211156127e157600080fd5b6127ed89838a0161268f565b9350608088013591508082111561280357600080fd5b5061281088828901612706565b9150509295509295909350565b600080600080600060a0868803121561283557600080fd5b61283e86612628565b945061284c60208701612628565b9350604086013592506060860135915060808601356001600160401b0381111561287557600080fd5b61281088828901612706565b60008060006060848603121561289657600080fd5b61289f84612628565b925060208401356001600160401b03808211156128bb57600080fd5b6128c78783880161268f565b935060408601359150808211156128dd57600080fd5b506128ea8682870161268f565b9150509250925092565b6000806040838503121561290757600080fd5b61291083612628565b91506020830135801515811461292557600080fd5b809150509250929050565b6000806040838503121561294357600080fd5b61294c83612628565b946020939093013593505050565b60008060006060848603121561296f57600080fd5b61297884612628565b95602085013595506040909401359392505050565b600080604083850312156129a057600080fd5b82356001600160401b03808211156129b757600080fd5b818501915085601f8301126129cb57600080fd5b813560206129d882613005565b6040516129e582826130f1565b8381528281019150858301600585901b870184018b1015612a0557600080fd5b600096505b84871015612a2f57612a1b81612628565b835260019690960195918301918301612a0a565b5096505086013592505080821115612a4657600080fd5b50612a538582860161268f565b9150509250929050565b60008060208385031215612a7057600080fd5b82356001600160401b03811115612a8657600080fd5b612a9285828601612644565b90969095509350505050565b600080600060408486031215612ab357600080fd5b83356001600160401b03811115612ac957600080fd5b612ad586828701612644565b909790965060209590950135949350505050565b600060208284031215612afb57600080fd5b5035919050565b600060208284031215612b1457600080fd5b8135611c2f81613249565b600060208284031215612b3157600080fd5b8151611c2f81613249565b600060208284031215612b4e57600080fd5b81356001600160401b03811115612b6457600080fd5b8201601f81018413612b7557600080fd5b611988848235602084016125cb565b60008060408385031215612b9757600080fd5b50508035926020909101359150565b600060208284031215612bb857600080fd5b813560ff81168114611c2f57600080fd5b600081518084526020808501945080840160005b83811015612bf957815187529582019590820190600101612bdd565b509495945050505050565b60008151808452612c1c81602086016020860161308a565b601f01601f19169290920160200192915050565b60008151612c4281856020860161308a565b9290920192915050565b600080845481600182811c915080831680612c6857607f831692505b6020808410821415612c8857634e487b7160e01b86526022600452602486fd5b818015612c9c5760018114612cad57612cda565b60ff19861689528489019650612cda565b60008b81526020902060005b86811015612cd25781548b820152908501908301612cb9565b505084890196505b505050505050612cea8185612c30565b95945050505050565b6001600160a01b0386811682528516602082015260a060408201819052600090612d1f90830186612bc9565b8281036060840152612d318186612bc9565b90508281036080840152612d458185612c04565b98975050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090612d8b90830184612c04565b979650505050505050565b602081526000611c2f6020830184612bc9565b604081526000612dbc6040830185612bc9565b8281036020840152612cea8185612bc9565b602081526000611c2f6020830184612c04565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b606082015260800190565b60208082526029908201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201526808185c1c1c9bdd995960ba1b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60006001600160401b0382111561301e5761301e61318e565b5060051b60200190565b6000821982111561303b5761303b61314c565b500190565b60008261304f5761304f613162565b500490565b600081600019048311821515161561306e5761306e61314c565b500290565b6000828210156130855761308561314c565b500390565b60005b838110156130a557818101518382015260200161308d565b83811115611c1d5750506000910152565b600181811c908216806130ca57607f821691505b602082108114156130eb57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8201601f191681016001600160401b03811182821017156131165761311661318e565b6040525050565b60006000198214156131315761313161314c565b5060010190565b60008261314757613147613162565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d11156131bd5760046000803e5060005160e01c5b90565b600060443d10156131ce5790565b6040516003193d81016004833e81513d6001600160401b0381602484011181841117156131fd57505050505090565b82850191508151818111156132155750505050505090565b843d870101602082850101111561322f5750505050505090565b61323e602082860101876130f1565b509095945050505050565b6001600160e01b031981168114610b0857600080fdfea2646970667358221220d9b6ab2e1e14783e35530c26fa2f7515c05e5a0208b19d9d98f89596f99f308464736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000006207e7902dc2c9ac92fa4f1d59e9689f2a57a2dafee3837a943a6122ff578be55b315c37e0372c9bb6f35c5cf2d4616243ef33a5d66b1f0ce4b4e75f366ab8de503f1b20000000000000000000000000000000000000000000000000000000000000001c68747470733a2f2f3432302e6c6f6f6b6c6162732e78797a2f67702f00000000
-----Decoded View---------------
Arg [0] : _baseURI (string): https://420.looklabs.xyz/gp/
Arg [1] : _startTimestamp (uint256): 1644685200
Arg [2] : _ogMerkleRoot (bytes32): 0x2dc2c9ac92fa4f1d59e9689f2a57a2dafee3837a943a6122ff578be55b315c37
Arg [3] : _greenListMerkleRoot (bytes32): 0xe0372c9bb6f35c5cf2d4616243ef33a5d66b1f0ce4b4e75f366ab8de503f1b20
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 000000000000000000000000000000000000000000000000000000006207e790
Arg [2] : 2dc2c9ac92fa4f1d59e9689f2a57a2dafee3837a943a6122ff578be55b315c37
Arg [3] : e0372c9bb6f35c5cf2d4616243ef33a5d66b1f0ce4b4e75f366ab8de503f1b20
Arg [4] : 000000000000000000000000000000000000000000000000000000000000001c
Arg [5] : 68747470733a2f2f3432302e6c6f6f6b6c6162732e78797a2f67702f00000000
Loading...
Loading
Loading...
Loading
OVERVIEW
420.game is a P2E weed game powered by the in-game token $HIGH & its innovative economy. Green Pass holders receive one Gen0 weed bud, one Goat PFP, and one piece of land for free.Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ 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.