ERC-721
Overview
Max Total Supply
37 MM
Holders
37
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 MMLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
MintMonster
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
Yes with 50 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.11; // Todo // - Update Merkle Root - done // - Update token image URL (and animation URL) - done // - Update subscription tiers and references to [1] // - Format expiry metadata has a real date - Done, need to test import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; contract MintMonster is ERC721, ERC721Enumerable, Ownable { struct SubscriptionPlan { uint256 price; uint256 renewalFee; uint256 duration; uint256 maxSubscribers; } struct ActiveSubscriptions { uint256 tier; uint256 Expiration; } mapping(uint256 => SubscriptionPlan) subscriptionPlans; // tier => plan mapping(uint256 => ActiveSubscriptions) subscriptionExpiration; //token => subscription mapping(uint256 => uint256) mintedTokens; //token index string public tokenImage = "ipfs://bafybeidwj3vqu2yxkbyd63hmbw34qmk5grdsck3ieqrrrsw6cma3dya7z4"; string public animationURL = "ipfs://bafybeid75ggqe7y7x34f747azfcjovcvozsdbfcllskd3i3jchtf2fzcoa"; bytes32 public merkleRoot = 0x1dbead77f94505340ff1b4a6ae6e7f248899941f0f1a741672e27c2256bc5509; enum SALE_STATE { CLOSED, WHITELIST, PUBLIC } SALE_STATE public sale_state; constructor() ERC721("MintMonster", "MM") { // WL 1 month: 0.1 eth to buy, 0.08 eth to renew - Double duration for WL subscriptionPlans[0] = SubscriptionPlan( 0.1 ether, 0.08 ether, 30 * DateTimeLibrary.SECONDS_PER_DAY, 100 ); // 1 month: 0.1 eth to buy, 0.08 eth to renew - Double duration for WL subscriptionPlans[1] = SubscriptionPlan( 0.1 ether, 0.08 ether, 30 * DateTimeLibrary.SECONDS_PER_DAY, 300 ); // 3 months: 0.25 eth to buy, 0.2 eth to renew subscriptionPlans[2] = SubscriptionPlan( 0.25 ether, 0.2 ether, 90 * DateTimeLibrary.SECONDS_PER_DAY, 150 ); // 6 months: 0.45 eth to buy, 0.36 eth to renew subscriptionPlans[3] = SubscriptionPlan( 0.45 ether, 0.36 ether, 180 * DateTimeLibrary.SECONDS_PER_DAY, 75 ); // 12 months: 0.75 eth to buy, 0.6 eth to renew subscriptionPlans[4] = SubscriptionPlan( 0.75 ether, 0.6 ether, 360 * DateTimeLibrary.SECONDS_PER_DAY, 50 ); } // Create a new plan function newSubscriptionPlan( uint256 _tier, uint256 _price, uint256 _renewalFee, uint256 _duration, uint256 _maxSubscribers ) public onlyOwner { require(subscriptionPlans[_tier].duration < 1, "Plan already exists"); subscriptionPlans[_tier] = SubscriptionPlan( _price, _renewalFee, _duration, _maxSubscribers ); } // Edit a existing plan function editSubscriptionPlan( uint256 _tier, uint256 _price, uint256 _renewalFee, uint256 _duration, uint256 _maxSubscribers ) public onlyOwner { SubscriptionPlan storage plan = subscriptionPlans[_tier]; require(plan.duration > 0, "Plan doesn't exist"); if (_price != plan.price) { subscriptionPlans[_tier].price = _price; } if (_renewalFee != plan.renewalFee) { subscriptionPlans[_tier].renewalFee = _renewalFee; } if (_duration != plan.duration) { subscriptionPlans[_tier].duration = _duration; } if (_maxSubscribers != plan.maxSubscribers) { subscriptionPlans[_tier].maxSubscribers = _maxSubscribers; } } function getSubscriptionExpiration(uint256 _tokenId) public view returns (ActiveSubscriptions memory) { ActiveSubscriptions memory plan = subscriptionExpiration[_tokenId]; return plan; } function checkUserSub(address _user, uint256 _tier) public view returns (uint256) { for (uint256 i = 0; i < balanceOf(_user); i++) { if (checkSubscription(tokenOfOwnerByIndex(_user, i))) { if ( subscriptionExpiration[tokenOfOwnerByIndex(_user, i)] .tier == _tier ) { return subscriptionExpiration[tokenOfOwnerByIndex(_user, i)] .Expiration; } } } return 0; } function getSubscriptionPlan(uint256 _tier) public view onlyOwner returns (SubscriptionPlan memory) { SubscriptionPlan memory plan = subscriptionPlans[_tier]; require(plan.duration > 0, "Plan doesn't exist"); return plan; } function renew(uint256 _tokenId) public payable { uint256 _tier = subscriptionExpiration[_tokenId].tier; SubscriptionPlan memory plan = subscriptionPlans[_tier]; require(plan.duration > 0, "Plan doesn't exist"); require( msg.value >= plan.renewalFee, "Incorrect value sent for renewal" ); require(ownerOf(_tokenId) == msg.sender, "You do not own token."); uint256 startTimestamp = block.timestamp; if (subscriptionExpiration[_tokenId].Expiration < startTimestamp) { uint256 expiresTimestamp = startTimestamp + plan.duration; subscriptionExpiration[_tokenId] = ActiveSubscriptions( _tier, expiresTimestamp ); } else { uint256 expiresTimestamp = subscriptionExpiration[_tokenId] .Expiration + plan.duration; subscriptionExpiration[_tokenId] = ActiveSubscriptions( _tier, expiresTimestamp ); } } // Check if token is expired. Returns true if valid function checkSubscription(uint256 _tokenId) public view returns (bool) { ActiveSubscriptions memory plan = getSubscriptionExpiration(_tokenId); return plan.Expiration > block.timestamp; } function getMintedCount(uint256 _tier) internal view returns (uint256) { return mintedTokens[_tier]; } function setSaleState(SALE_STATE _state) public onlyOwner { sale_state = _state; } // WL Mint is plan 0 function whiteListMint(bytes32[] calldata _proof) public payable { SubscriptionPlan memory plan = subscriptionPlans[0]; uint256 mintedCount = getMintedCount(0); bytes32 leaf = keccak256(abi.encodePacked(msg.sender)); require(MerkleProof.verify(_proof, merkleRoot, leaf), "Invalid proof"); require(sale_state == SALE_STATE.WHITELIST, "not WL sale"); require(plan.maxSubscribers > mintedCount, "Out of stock"); require(msg.value >= plan.price, "Incorrect value"); uint256 offset = 0; uint256 tokenId = offset + mintedCount + 1; uint256 expiresTimestamp = block.timestamp + (plan.duration * 2); // double duration at start only subscriptionExpiration[tokenId] = ActiveSubscriptions( 1, expiresTimestamp ); _safeMint(msg.sender, tokenId); mintedTokens[1] += 1; } function mintNewToken(uint256 _tier) public payable { SubscriptionPlan memory plan = subscriptionPlans[_tier]; uint256 mintedCount = getMintedCount(_tier); require(plan.duration > 0, "Plan doesn't exist"); require(plan.maxSubscribers > mintedCount, "Out of stock"); if (msg.sender != owner()) { require(msg.value >= plan.price, "Incorrect value"); } require(sale_state == SALE_STATE.PUBLIC, "Not Public sale"); require(_tier > 0, "WL Mint Over"); uint256 offset = 1000000 * _tier; uint256 tokenId = offset + mintedCount + 1; uint256 expiresTimestamp = block.timestamp + plan.duration; subscriptionExpiration[tokenId] = ActiveSubscriptions( _tier, expiresTimestamp ); _safeMint(msg.sender, tokenId); mintedTokens[_tier] += 1; } function adminMint( address[] memory tos_, uint256 _tier, uint256 _bonusTime ) public payable onlyOwner { SubscriptionPlan memory plan = subscriptionPlans[_tier]; uint256 mintedCount = getMintedCount(_tier); require(plan.duration > 0, "Plan does not exist"); require( plan.maxSubscribers >= mintedCount + tos_.length, "Out of stock" ); for (uint256 i = 0; i < tos_.length; i++) { uint256 offset = 1000000 * _tier; uint256 tokenId = offset + mintedCount + 1; uint256 expiresTimestamp = block.timestamp + (plan.duration * _bonusTime); subscriptionExpiration[tokenId + i] = ActiveSubscriptions( _tier, expiresTimestamp ); _safeMint(tos_[i], tokenId + i); mintedTokens[_tier] += 1; } } function setmerkleRoot(bytes32 _root) external onlyOwner { merkleRoot = _root; } function withdraw() public onlyOwner { uint256 balance = address(this).balance; payable(msg.sender).transfer(balance); } function updateTokenImage(string memory _url) public onlyOwner { tokenImage = _url; } function updateTokenAnimation(string memory _url) public onlyOwner { animationURL = _url; } function getMetadata(uint256 _tokenId) internal view returns (string memory) { ActiveSubscriptions memory plan = subscriptionExpiration[_tokenId]; string[7] memory parts; parts[0] = ', "attributes": [{"trait_type": "Tier","value": "'; parts[1] = toString(plan.tier); parts[2] = '"}, {"trait_type": "Expiration","value": "'; parts[3] = timestampToUTCDate(plan.Expiration); parts[4] = '"}, {"trait_type": "Expired","value": "'; parts[5] = plan.Expiration < block.timestamp ? "true" : "false"; parts[6] = '"}], '; string memory output = string( abi.encodePacked( parts[0], parts[1], parts[2], parts[3], parts[4], parts[5], parts[6] ) ); return output; } function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require( _exists(tokenId), "ERC721Metadata: URI query for nonexistent token." ); string memory json = Base64.encode( bytes( string( abi.encodePacked( '{"name": "MintMonster Access Token", "description": "Access to MintMonster private community and tools."', getMetadata(tokenId), '"image": "', tokenImage, '",' '"animation_url": "', animationURL, '"}' ) ) ) ); json = string(abi.encodePacked("data:application/json;base64,", json)); return json; } //required by Solidity function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal override(ERC721, ERC721Enumerable) { super._beforeTokenTransfer(from, to, tokenId); } //required by Solidity function supportsInterface(bytes4 interfaceId) public view override(ERC721, ERC721Enumerable) returns (bool) { return super.supportsInterface(interfaceId); } function toString(uint256 value) internal pure returns (string memory) { 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); } // Create a 2 digit string from a string that could be 1 character function toPadString(uint256 value) internal pure returns (string memory) { string memory str = toString(value); uint strlen = bytes(str).length; string memory output = strlen == 1 ? string(abi.encodePacked("0", str)) : str; return output; } function timestampToUTCDate(uint timestamp) internal pure returns (string memory) { (uint year, uint month, uint day) = DateTimeLibrary.timestampToDate( timestamp ); string memory output = string( abi.encodePacked( toString(year), "-", toPadString(day), "-", toPadString(month) ) ); return output; } } library Base64 { bytes internal constant TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; /// @notice Encodes some bytes to the base64 representation function encode(bytes memory data) internal pure returns (string memory) { uint256 len = data.length; if (len == 0) return ""; // multiply by 4/3 rounded up uint256 encodedLen = 4 * ((len + 2) / 3); // Add some extra buffer at the end bytes memory result = new bytes(encodedLen + 32); bytes memory table = TABLE; assembly { let tablePtr := add(table, 1) let resultPtr := add(result, 32) for { let i := 0 } lt(i, len) { } { i := add(i, 3) let input := and(mload(add(data, i)), 0xffffff) let out := mload(add(tablePtr, and(shr(18, input), 0x3F))) out := shl(8, out) out := add( out, and(mload(add(tablePtr, and(shr(12, input), 0x3F))), 0xFF) ) out := shl(8, out) out := add( out, and(mload(add(tablePtr, and(shr(6, input), 0x3F))), 0xFF) ) out := shl(8, out) out := add( out, and(mload(add(tablePtr, and(input, 0x3F))), 0xFF) ) out := shl(224, out) mstore(resultPtr, out) resultPtr := add(resultPtr, 4) } switch mod(len, 3) case 1 { mstore(sub(resultPtr, 2), shl(240, 0x3d3d)) } case 2 { mstore(sub(resultPtr, 1), shl(248, 0x3d)) } mstore(result, encodedLen) } return string(result); } } // Short version of the BokkyPooBahsDateTimeLibrary Library library DateTimeLibrary { uint constant SECONDS_PER_DAY = 24 * 60 * 60; int constant OFFSET19700101 = 2440588; function _daysToDate(uint _days) internal pure returns ( uint year, uint month, uint day ) { int __days = int(_days); int L = __days + 68569 + OFFSET19700101; int N = (4 * L) / 146097; L = L - (146097 * N + 3) / 4; int _year = (4000 * (L + 1)) / 1461001; L = L - (1461 * _year) / 4 + 31; int _month = (80 * L) / 2447; int _day = L - (2447 * _month) / 80; L = _month / 11; _month = _month + 2 - 12 * L; _year = 100 * (N - 49) + _year + L; year = uint(_year); month = uint(_month); day = uint(_day); } function timestampToDate(uint timestamp) internal pure returns ( uint year, uint month, uint day ) { (year, month, day) = _daysToDate(timestamp / SECONDS_PER_DAY); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree 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. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. */ 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 Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle 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++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`, * consuming from one or the other at each step according to the instructions given by * `proofFlags`. * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof} * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (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/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: address zero is not a valid owner"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: invalid token ID"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { _requireMinted(tokenId); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not token owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _safeTransfer(from, to, tokenId, data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (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 Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { 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 (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (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.0 (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.0 (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.0 (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 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (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": 50 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","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":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address[]","name":"tos_","type":"address[]"},{"internalType":"uint256","name":"_tier","type":"uint256"},{"internalType":"uint256","name":"_bonusTime","type":"uint256"}],"name":"adminMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"animationURL","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"checkSubscription","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"uint256","name":"_tier","type":"uint256"}],"name":"checkUserSub","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tier","type":"uint256"},{"internalType":"uint256","name":"_price","type":"uint256"},{"internalType":"uint256","name":"_renewalFee","type":"uint256"},{"internalType":"uint256","name":"_duration","type":"uint256"},{"internalType":"uint256","name":"_maxSubscribers","type":"uint256"}],"name":"editSubscriptionPlan","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getSubscriptionExpiration","outputs":[{"components":[{"internalType":"uint256","name":"tier","type":"uint256"},{"internalType":"uint256","name":"Expiration","type":"uint256"}],"internalType":"struct MintMonster.ActiveSubscriptions","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tier","type":"uint256"}],"name":"getSubscriptionPlan","outputs":[{"components":[{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"renewalFee","type":"uint256"},{"internalType":"uint256","name":"duration","type":"uint256"},{"internalType":"uint256","name":"maxSubscribers","type":"uint256"}],"internalType":"struct MintMonster.SubscriptionPlan","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tier","type":"uint256"}],"name":"mintNewToken","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tier","type":"uint256"},{"internalType":"uint256","name":"_price","type":"uint256"},{"internalType":"uint256","name":"_renewalFee","type":"uint256"},{"internalType":"uint256","name":"_duration","type":"uint256"},{"internalType":"uint256","name":"_maxSubscribers","type":"uint256"}],"name":"newSubscriptionPlan","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"renew","outputs":[],"stateMutability":"payable","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":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sale_state","outputs":[{"internalType":"enum MintMonster.SALE_STATE","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum MintMonster.SALE_STATE","name":"_state","type":"uint8"}],"name":"setSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_root","type":"bytes32"}],"name":"setmerkleRoot","outputs":[],"stateMutability":"nonpayable","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":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenImage","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_url","type":"string"}],"name":"updateTokenAnimation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_url","type":"string"}],"name":"updateTokenImage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"}],"name":"whiteListMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
610100604052604260808181529062003e7360a039600e9062000023908262000669565b5060405180608001604052806042815260200162003e3160429139600f906200004d908262000669565b507f1dbead77f94505340ff1b4a6ae6e7f248899941f0f1a741672e27c2256bc55096010553480156200007f57600080fd5b506040518060400160405280600b81526020016a26b4b73a26b7b739ba32b960a91b815250604051806040016040528060028152602001614d4d60f01b8152508160009081620000d0919062000669565b506001620000df828262000669565b505050620000fc620000f66200056e60201b60201c565b62000572565b6040805160808101825267016345785d8a0000815267011c37937e08000060208201529081016200013262015180601e62000735565b8152606460209182015260008052600b815281517fdf7de25b7f1fd6d0b5205f0e18f1f35bd7b8d84cce336588d184533ce43a6f7655818101517fdf7de25b7f1fd6d0b5205f0e18f1f35bd7b8d84cce336588d184533ce43a6f77556040828101517fdf7de25b7f1fd6d0b5205f0e18f1f35bd7b8d84cce336588d184533ce43a6f78556060909201517fdf7de25b7f1fd6d0b5205f0e18f1f35bd7b8d84cce336588d184533ce43a6f7955815160808101835267016345785d8a0000815267011c37937e080000918101919091529081016200021462015180601e62000735565b815261012c6020918201526001600052600b815281517f72c6bfb7988af3a1efa6568f02a999bc52252641c659d85961ca3d372b57d5cf55818101517f72c6bfb7988af3a1efa6568f02a999bc52252641c659d85961ca3d372b57d5d0556040828101517f72c6bfb7988af3a1efa6568f02a999bc52252641c659d85961ca3d372b57d5d1556060909201517f72c6bfb7988af3a1efa6568f02a999bc52252641c659d85961ca3d372b57d5d25581516080810183526703782dace9d9000081526702c68af0bb14000091810191909152908101620002f862015180605a62000735565b815260966020918201526002600052600b815281517fa50eece07c7db1631545c0069bd8f5f54d5935e215d59097edf258a44ba9163455818101517fa50eece07c7db1631545c0069bd8f5f54d5935e215d59097edf258a44ba91635556040828101517fa50eece07c7db1631545c0069bd8f5f54d5935e215d59097edf258a44ba91636556060909201517fa50eece07c7db1631545c0069bd8f5f54d5935e215d59097edf258a44ba9163755815160808101835267063eb89da4ed000081526704fefa17b724000091810191909152908101620003db6201518060b462000735565b8152604b6020918201526003600052600b815281517f64c15cc42be7899b001f818cf4433057002112c418d1d3a67cd5cb453051d33e55818101517f64c15cc42be7899b001f818cf4433057002112c418d1d3a67cd5cb453051d33f556040828101517f64c15cc42be7899b001f818cf4433057002112c418d1d3a67cd5cb453051d340556060909201517f64c15cc42be7899b001f818cf4433057002112c418d1d3a67cd5cb453051d341558151608081018352670a688906bd8b00008152670853a0d2313c000091810191909152908101620004bf6201518061016862000735565b815260326020918201526004600052600b815281517f12d0c11577e2f0950f57c455c117796550b79f444811db8ba2f69c57b646c784558101517f12d0c11577e2f0950f57c455c117796550b79f444811db8ba2f69c57b646c7855560408101517f12d0c11577e2f0950f57c455c117796550b79f444811db8ba2f69c57b646c78655606001517f12d0c11577e2f0950f57c455c117796550b79f444811db8ba2f69c57b646c7875562000761565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620005ef57607f821691505b6020821081036200061057634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200066457600081815260208120601f850160051c810160208610156200063f5750805b601f850160051c820191505b8181101562000660578281556001016200064b565b5050505b505050565b81516001600160401b03811115620006855762000685620005c4565b6200069d81620006968454620005da565b8462000616565b602080601f831160018114620006d55760008415620006bc5750858301515b600019600386901b1c1916600185901b17855562000660565b600085815260208120601f198616915b828110156200070657888601518255948401946001909101908401620006e5565b5085821015620007255787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b80820281158282048414176200075b57634e487b7160e01b600052601160045260246000fd5b92915050565b6136c080620007716000396000f3fe6080604052600436106101e55760003560e01c8063715018a611610103578063a8fef4a71161009b578063a8fef4a714610580578063ae5303dd146105a0578063b88d4fde146105c0578063c1aef4f2146105e0578063c87b56dd146105f5578063d0c4e7fb14610615578063e858ad0314610628578063e985e9c514610648578063f2fde38b14610668578063f5e1713e1461068857600080fd5b8063715018a61461048057806379169b1d14610495578063872f7807146104b55780638da5cb5b146104f05780639246149b1461050557806395d89b411461051857806397254e551461052d57806399ac9afa14610540578063a22cb4651461056057600080fd5b80634128929b116101815780634128929b1461032557806342842e0e146103455780634898fe8a146103655780634f6ccce7146103b85780635a67de07146103d85780635baa7509146103f85780636352211e1461040b5780636d8e25951461042b5780636e569bee1461044057806370a082311461046057600080fd5b806301ffc9a7146101ea57806306fdde031461021f578063081812fc14610241578063095ea7b31461027957806318160ddd1461029b57806323b872dd146102ba5780632eb4a7ab146102da5780632f745c59146102f05780633ccfd60b14610310575b600080fd5b3480156101f657600080fd5b5061020a6102053660046129d1565b6106af565b60405190151581526020015b60405180910390f35b34801561022b57600080fd5b506102346106c0565b6040516102169190612a3e565b34801561024d57600080fd5b5061026161025c366004612a51565b610752565b6040516001600160a01b039091168152602001610216565b34801561028557600080fd5b50610299610294366004612a81565b610779565b005b3480156102a757600080fd5b506008545b604051908152602001610216565b3480156102c657600080fd5b506102996102d5366004612aab565b610893565b3480156102e657600080fd5b506102ac60105481565b3480156102fc57600080fd5b506102ac61030b366004612a81565b6108c4565b34801561031c57600080fd5b5061029961095a565b34801561033157600080fd5b506102ac610340366004612a81565b610995565b34801561035157600080fd5b50610299610360366004612aab565b610a25565b34801561037157600080fd5b50610385610380366004612a51565b610a40565b60405161021691908151815260208083015190820152604080830151908201526060918201519181019190915260800190565b3480156103c457600080fd5b506102ac6103d3366004612a51565b610ad6565b3480156103e457600080fd5b506102996103f3366004612ae7565b610b69565b610299610406366004612a51565b610b98565b34801561041757600080fd5b50610261610426366004612a51565b610d61565b34801561043757600080fd5b50610234610d96565b34801561044c57600080fd5b5061029961045b366004612b08565b610e24565b34801561046c57600080fd5b506102ac61047b366004612b43565b610edd565b34801561048c57600080fd5b50610299610f63565b3480156104a157600080fd5b506102996104b0366004612bfb565b610f77565b3480156104c157600080fd5b506104d56104d0366004612a51565b610f8b565b60408051825181526020928301519281019290925201610216565b3480156104fc57600080fd5b50610261610fc9565b610299610513366004612c43565b610fd8565b34801561052457600080fd5b506102346111a5565b61029961053b366004612cff565b6111b4565b34801561054c57600080fd5b5061029961055b366004612bfb565b611486565b34801561056c57600080fd5b5061029961057b366004612d73565b61149a565b34801561058c57600080fd5b5061020a61059b366004612a51565b6114a5565b3480156105ac57600080fd5b506102996105bb366004612b08565b6114be565b3480156105cc57600080fd5b506102996105db366004612daf565b611566565b3480156105ec57600080fd5b50610234611598565b34801561060157600080fd5b50610234610610366004612a51565b6115a5565b610299610623366004612a51565b611677565b34801561063457600080fd5b50610299610643366004612a51565b61187f565b34801561065457600080fd5b5061020a610663366004612e2a565b61188c565b34801561067457600080fd5b50610299610683366004612b43565b6118ba565b34801561069457600080fd5b506011546106a29060ff1681565b6040516102169190612e73565b60006106ba82611933565b92915050565b6060600080546106cf90612e9b565b80601f01602080910402602001604051908101604052809291908181526020018280546106fb90612e9b565b80156107485780601f1061071d57610100808354040283529160200191610748565b820191906000526020600020905b81548152906001019060200180831161072b57829003601f168201915b5050505050905090565b600061075d82611958565b506000908152600460205260409020546001600160a01b031690565b600061078482610d61565b9050806001600160a01b0316836001600160a01b0316036107f65760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b03821614806108125750610812813361188c565b6108845760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c000060648201526084016107ed565b61088e838361197d565b505050565b61089d33826119eb565b6108b95760405162461bcd60e51b81526004016107ed90612ed5565b61088e838383611a4a565b60006108cf83610edd565b82106109315760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016107ed565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b610962611bf1565b6040514790339082156108fc029083906000818181858888f19350505050158015610991573d6000803e3d6000fd5b5050565b6000805b6109a284610edd565b811015610a1b576109b661059b85836108c4565b15610a095782600c60006109ca87856108c4565b81526020019081526020016000206000015403610a0957600c60006109ef86846108c4565b8152602001908152602001600020600101549150506106ba565b80610a1381612f39565b915050610999565b5060009392505050565b61088e83838360405180602001604052806000815250611566565b610a6b6040518060800160405280600081526020016000815260200160008152602001600081525090565b610a73611bf1565b6000828152600b6020908152604091829020825160808101845281548152600182015492810192909252600281015492820183905260030154606082015290610ace5760405162461bcd60e51b81526004016107ed90612f52565b90505b919050565b6000610ae160085490565b8210610b445760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016107ed565b60088281548110610b5757610b57612f7e565b90600052602060002001549050919050565b610b71611bf1565b6011805482919060ff19166001836002811115610b9057610b90612e5d565b021790555050565b6000818152600c6020908152604080832054808452600b8352928190208151608081018352815481526001820154938101939093526002810154918301829052600301546060830152610bfd5760405162461bcd60e51b81526004016107ed90612f52565b8060200151341015610c515760405162461bcd60e51b815260206004820181905260248201527f496e636f72726563742076616c75652073656e7420666f722072656e6577616c60448201526064016107ed565b33610c5b84610d61565b6001600160a01b031614610ca95760405162461bcd60e51b81526020600482015260156024820152742cb7ba903237903737ba1037bbb7103a37b5b2b71760591b60448201526064016107ed565b6000838152600c60205260409020600101544290811115610d0a576000826040015182610cd69190612f94565b60408051808201825286815260208082019384526000898152600c9091529190912090518155905160019091015550610d5b565b6040808301516000868152600c60205291822060010154610d2b9190612f94565b60408051808201825286815260208082019384526000898152600c90915291909120905181559051600190910155505b50505050565b6000818152600260205260408120546001600160a01b031680610ace5760405162461bcd60e51b81526004016107ed90612fa7565b600f8054610da390612e9b565b80601f0160208091040260200160405190810160405280929190818152602001828054610dcf90612e9b565b8015610e1c5780601f10610df157610100808354040283529160200191610e1c565b820191906000526020600020905b815481529060010190602001808311610dff57829003601f168201915b505050505081565b610e2c611bf1565b6000858152600b602052604090206002810154610e5b5760405162461bcd60e51b81526004016107ed90612f52565b80548514610e75576000868152600b602052604090208590555b80600101548414610e95576000868152600b602052604090206001018490555b80600201548314610eb5576000868152600b602052604090206002018390555b80600301548214610ed5576000868152600b602052604090206003018290555b505050505050565b60006001600160a01b038216610f475760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b60648201526084016107ed565b506001600160a01b031660009081526003602052604090205490565b610f6b611bf1565b610f756000611c50565b565b610f7f611bf1565b600f610991828261301f565b6040805180820190915260008082526020820152506000908152600c6020908152604091829020825180840190935280548352600101549082015290565b600a546001600160a01b031690565b610fe0611bf1565b6000828152600b602090815260408083208151608081018352815481526001820154818501526002820154818401526003909101546060820152858452600d90925282205490915060008260400151116110725760405162461bcd60e51b8152602060048201526013602482015272141b185b88191bd95cc81b9bdd08195e1a5cdd606a1b60448201526064016107ed565b845161107e9082612f94565b826060015110156110a15760405162461bcd60e51b81526004016107ed906130de565b60005b8551811015610ed55760006110bc86620f4240613104565b905060006110ca8483612f94565b6110d5906001612f94565b905060008686604001516110e99190613104565b6110f39042612f94565b9050604051806040016040528089815260200182815250600c6000868561111a9190612f94565b8152602080820192909252604001600020825181559101516001909101558851611169908a908690811061115057611150612f7e565b602002602001015185846111649190612f94565b611ca2565b6000888152600d60205260408120805460019290611188908490612f94565b92505081905550505050808061119d90612f39565b9150506110a4565b6060600180546106cf90612e9b565b604080516080810182527fdf7de25b7f1fd6d0b5205f0e18f1f35bd7b8d84cce336588d184533ce43a6f765481527fdf7de25b7f1fd6d0b5205f0e18f1f35bd7b8d84cce336588d184533ce43a6f77546020808301919091527fdf7de25b7f1fd6d0b5205f0e18f1f35bd7b8d84cce336588d184533ce43a6f7854828401527fdf7de25b7f1fd6d0b5205f0e18f1f35bd7b8d84cce336588d184533ce43a6f795460608084019190915260008052600d82527f81955a0a11e65eac625c29e8882660bae4e165a75d72780094acae8ece9a29ee5484513390921b6001600160601b0319168284015284516014818403018152603483018087528151918501919091206054948802808501860190975287825294959194936112f7939192899289928392910190849080828437600092019190915250506010549150849050611cbc565b6113335760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b60448201526064016107ed565b600160115460ff16600281111561134c5761134c612e5d565b146113875760405162461bcd60e51b815260206004820152600b60248201526a6e6f7420574c2073616c6560a81b60448201526064016107ed565b818360600151116113aa5760405162461bcd60e51b81526004016107ed906130de565b82513410156113cb5760405162461bcd60e51b81526004016107ed9061311b565b6000806113d88482612f94565b6113e3906001612f94565b90506000856040015160026113f89190613104565b6114029042612f94565b604080518082018252600180825260208083018581526000888152600c909252939020915182559151910155905061143a3383611ca2565b60016000818152600d6020527ffd54ff1ed53f34a900b24c5ba64f85761163b5d82d98a47b9bd80e45466993c58054909190611477908490612f94565b90915550505050505050505050565b61148e611bf1565b600e610991828261301f565b610991338383611cd2565b6000806114b183610f8b565b6020015142109392505050565b6114c6611bf1565b6000858152600b602052604090206002015460011161151d5760405162461bcd60e51b8152602060048201526013602482015272506c616e20616c72656164792065786973747360681b60448201526064016107ed565b604080516080810182529485526020808601948552858201938452606086019283526000968752600b905290942092518355905160018301555160028201559051600390910155565b61157033836119eb565b61158c5760405162461bcd60e51b81526004016107ed90612ed5565b610d5b84848484611d9c565b600e8054610da390612e9b565b60606115b082611dcf565b6116155760405162461bcd60e51b815260206004820152603060248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526f3732bc34b9ba32b73a103a37b5b2b71760811b60648201526084016107ed565b600061164d61162384611dec565b600e600f604051602001611639939291906131b7565b604051602081830303815290604052611f61565b90508060405160200161166091906132ae565b60408051601f198184030181529190529392505050565b6000818152600b602090815260408083208151608081018352815481526001820154818501526002820154818401526003909101546060820152848452600d90925282205490915060008260400151116116e35760405162461bcd60e51b81526004016107ed90612f52565b808260600151116117065760405162461bcd60e51b81526004016107ed906130de565b61170e610fc9565b6001600160a01b0316336001600160a01b0316146117475781513410156117475760405162461bcd60e51b81526004016107ed9061311b565b600260115460ff16600281111561176057611760612e5d565b1461179f5760405162461bcd60e51b815260206004820152600f60248201526e4e6f74205075626c69632073616c6560881b60448201526064016107ed565b600083116117de5760405162461bcd60e51b815260206004820152600c60248201526b2ba61026b4b73a1027bb32b960a11b60448201526064016107ed565b60006117ed84620f4240613104565b905060006117fb8383612f94565b611806906001612f94565b9050600084604001514261181a9190612f94565b60408051808201825288815260208082018481526000878152600c90925292902090518155905160019091015590506118533383611ca2565b6000868152600d60205260408120805460019290611872908490612f94565b9091555050505050505050565b611887611bf1565b601055565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6118c2611bf1565b6001600160a01b0381166119275760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107ed565b61193081611c50565b50565b60006001600160e01b0319821663780e9d6360e01b14806106ba57506106ba826120ca565b61196181611dcf565b6119305760405162461bcd60e51b81526004016107ed90612fa7565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906119b282610d61565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000806119f783610d61565b9050806001600160a01b0316846001600160a01b03161480611a1e5750611a1e818561188c565b80611a425750836001600160a01b0316611a3784610752565b6001600160a01b0316145b949350505050565b826001600160a01b0316611a5d82610d61565b6001600160a01b031614611ac15760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b60648201526084016107ed565b6001600160a01b038216611b235760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016107ed565b611b2e83838361211a565b611b3960008261197d565b6001600160a01b0383166000908152600360205260408120805460019290611b629084906132f3565b90915550506001600160a01b0382166000908152600360205260408120805460019290611b90908490612f94565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b33611bfa610fc9565b6001600160a01b031614610f755760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107ed565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610991828260405180602001604052806000815250612125565b600082611cc98584612158565b14949350505050565b816001600160a01b0316836001600160a01b031603611d2f5760405162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b60448201526064016107ed565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611da7848484611a4a565b611db3848484846121a5565b610d5b5760405162461bcd60e51b81526004016107ed90613306565b6000908152600260205260409020546001600160a01b0316151590565b6000818152600c60209081526040918290208251808401909352805483526001015490820152606090611e1d612994565b6040518060600160405280603181526020016135c96031913981528151611e43906122a6565b81600160200201819052506040518060600160405280602a81526020016135fa602a913960408201526020820151611e7a906123a6565b60608083019190915260408051918201905260278082526136646020830139608082015260208201514211611ecc576040518060400160405280600581526020016466616c736560d81b815250611eea565b604051806040016040528060048152602001637472756560e01b8152505b60a0820190815260408051808201825260058152640113eae96160dd1b60208083019190915260c08501829052845181860151848701516060880151608089015197519651600098611f489895979496939592949093909101613358565b60408051601f1981840301815291905295945050505050565b80516060906000819003611f85575050604080516020810190915260008152919050565b60006003611f94836002612f94565b611f9e9190613400565b611fa9906004613104565b90506000611fb8826020612f94565b6001600160401b03811115611fcf57611fcf612b5e565b6040519080825280601f01601f191660200182016040528015611ff9576020820181803683370190505b5090506000604051806060016040528060408152602001613624604091399050600181016020830160005b86811015612085576003818a01810151603f601282901c8116860151600c83901c8216870151600684901c831688015192909316870151600891821b60ff94851601821b92841692909201901b91160160e01b835260049092019101612024565b50600386066001811461209f57600281146120b0576120bc565b613d3d60f01b6001198301526120bc565b603d60f81b6000198301525b505050918152949350505050565b60006001600160e01b031982166380ac58cd60e01b14806120fb57506001600160e01b03198216635b5e139f60e01b145b806106ba57506301ffc9a760e01b6001600160e01b03198316146106ba565b61088e838383612405565b61212f83836124bd565b61213c60008484846121a5565b61088e5760405162461bcd60e51b81526004016107ed90613306565b600081815b845181101561219d576121898286838151811061217c5761217c612f7e565b60200260200101516125fc565b91508061219581612f39565b91505061215d565b509392505050565b60006001600160a01b0384163b1561229b57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906121e9903390899088908890600401613414565b6020604051808303816000875af1925050508015612224575060408051601f3d908101601f1916820190925261222191810190613451565b60015b612281573d808015612252576040519150601f19603f3d011682016040523d82523d6000602084013e612257565b606091505b5080516000036122795760405162461bcd60e51b81526004016107ed90613306565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611a42565b506001949350505050565b6060816000036122cd5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156122f757806122e181612f39565b91506122f09050600a83613400565b91506122d1565b6000816001600160401b0381111561231157612311612b5e565b6040519080825280601f01601f19166020018201604052801561233b576020820181803683370190505b5090505b8415611a42576123506001836132f3565b915061235d600a8661346e565b612368906030612f94565b60f81b81838151811061237d5761237d612f7e565b60200101906001600160f81b031916908160001a90535061239f600a86613400565b945061233f565b606060008060006123b68561262e565b92509250925060006123c7846122a6565b6123d083612654565b6123d985612654565b6040516020016123eb93929190613482565b60408051601f198184030181529190529695505050505050565b6001600160a01b0383166124605761245b81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b612483565b816001600160a01b0316836001600160a01b031614612483576124838382612690565b6001600160a01b03821661249a5761088e8161272d565b826001600160a01b0316826001600160a01b03161461088e5761088e82826127dc565b6001600160a01b0382166125135760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016107ed565b61251c81611dcf565b156125695760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016107ed565b6125756000838361211a565b6001600160a01b038216600090815260036020526040812080546001929061259e908490612f94565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000818310612618576000828152602084905260409020612627565b60008381526020839052604090205b9392505050565b600080806126476126426201518086613400565b612820565b9196909550909350915050565b60606000612661836122a6565b80519091506000600182146126765782612687565b82604051602001611f4891906134dc565b95945050505050565b6000600161269d84610edd565b6126a791906132f3565b6000838152600760205260409020549091508082146126fa576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061273f906001906132f3565b6000838152600960205260408120546008805493945090928490811061276757612767612f7e565b90600052602060002001549050806008838154811061278857612788612f7e565b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806127c0576127c0613505565b6001900381819060005260206000200160009055905550505050565b60006127e783610edd565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b60008080838162253d8c6128378362010bd961351b565b612841919061351b565b9050600062023ab1612854836004613543565b61285e9190613573565b9050600461286f8262023ab1613543565b61287a90600361351b565b6128849190613573565b61288e90836135a1565b9150600062164b096128a184600161351b565b6128ad90610fa0613543565b6128b79190613573565b905060046128c7826105b5613543565b6128d19190613573565b6128db90846135a1565b6128e690601f61351b565b9250600061098f6128f8856050613543565b6129029190613573565b9050600060506129148361098f613543565b61291e9190613573565b61292890866135a1565b9050612935600b83613573565b945061294285600c613543565b61294d83600261351b565b61295791906135a1565b915084836129666031876135a1565b612971906064613543565b61297b919061351b565b612985919061351b565b9a919950975095505050505050565b6040518060e001604052806007905b60608152602001906001900390816129a35790505090565b6001600160e01b03198116811461193057600080fd5b6000602082840312156129e357600080fd5b8135612627816129bb565b60005b83811015612a095781810151838201526020016129f1565b50506000910152565b60008151808452612a2a8160208601602086016129ee565b601f01601f19169290920160200192915050565b6020815260006126276020830184612a12565b600060208284031215612a6357600080fd5b5035919050565b80356001600160a01b0381168114610ad157600080fd5b60008060408385031215612a9457600080fd5b612a9d83612a6a565b946020939093013593505050565b600080600060608486031215612ac057600080fd5b612ac984612a6a565b9250612ad760208501612a6a565b9150604084013590509250925092565b600060208284031215612af957600080fd5b81356003811061262757600080fd5b600080600080600060a08688031215612b2057600080fd5b505083359560208501359550604085013594606081013594506080013592509050565b600060208284031215612b5557600080fd5b61262782612a6a565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715612b9c57612b9c612b5e565b604052919050565b60006001600160401b03831115612bbd57612bbd612b5e565b612bd0601f8401601f1916602001612b74565b9050828152838383011115612be457600080fd5b828260208301376000602084830101529392505050565b600060208284031215612c0d57600080fd5b81356001600160401b03811115612c2357600080fd5b8201601f81018413612c3457600080fd5b611a4284823560208401612ba4565b600080600060608486031215612c5857600080fd5b83356001600160401b0380821115612c6f57600080fd5b818601915086601f830112612c8357600080fd5b8135602082821115612c9757612c97612b5e565b8160051b9250612ca8818401612b74565b828152928401810192818101908a851115612cc257600080fd5b948201945b84861015612ce757612cd886612a6a565b82529482019490820190612cc7565b9a918901359950506040909701359695505050505050565b60008060208385031215612d1257600080fd5b82356001600160401b0380821115612d2957600080fd5b818501915085601f830112612d3d57600080fd5b813581811115612d4c57600080fd5b8660208260051b8501011115612d6157600080fd5b60209290920196919550909350505050565b60008060408385031215612d8657600080fd5b612d8f83612a6a565b915060208301358015158114612da457600080fd5b809150509250929050565b60008060008060808587031215612dc557600080fd5b612dce85612a6a565b9350612ddc60208601612a6a565b92506040850135915060608501356001600160401b03811115612dfe57600080fd5b8501601f81018713612e0f57600080fd5b612e1e87823560208401612ba4565b91505092959194509250565b60008060408385031215612e3d57600080fd5b612e4683612a6a565b9150612e5460208401612a6a565b90509250929050565b634e487b7160e01b600052602160045260246000fd5b6020810160038310612e9557634e487b7160e01b600052602160045260246000fd5b91905290565b600181811c90821680612eaf57607f821691505b602082108103612ecf57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b600060018201612f4b57612f4b612f23565b5060010190565b602080825260129082015271141b185b88191bd95cdb89dd08195e1a5cdd60721b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b808201808211156106ba576106ba612f23565b602080825260189082015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b604082015260600190565b601f82111561088e57600081815260208120601f850160051c810160208610156130005750805b601f850160051c820191505b81811015610ed55782815560010161300c565b81516001600160401b0381111561303857613038612b5e565b61304c816130468454612e9b565b84612fd9565b602080601f83116001811461308157600084156130695750858301515b600019600386901b1c1916600185901b178555610ed5565b600085815260208120601f198616915b828110156130b057888601518255948401946001909101908401613091565b50858210156130ce5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6020808252600c908201526b4f7574206f662073746f636b60a01b604082015260600190565b80820281158282048414176106ba576106ba612f23565b6020808252600f908201526e496e636f72726563742076616c756560881b604082015260600190565b6000815461315181612e9b565b60018281168015613169576001811461317e576131ad565b60ff19841687528215158302870194506131ad565b8560005260208060002060005b858110156131a45781548a82015290840190820161318b565b50505082870194505b5050505092915050565b7f7b226e616d65223a20224d696e744d6f6e737465722041636365737320546f6b81527f656e222c20226465736372697074696f6e223a202241636365737320746f204d60208201527f696e744d6f6e73746572207072697661746520636f6d6d756e69747920616e64604082015267103a37b7b639971160c11b60608201526000845161324c8160688501602089016129ee565b691134b6b0b3b2911d101160b11b6068918401918201526132706072820186613144565b7311161130b734b6b0ba34b7b72fbab936111d101160611b815290506132996014820185613144565b61227d60f01b81526002019695505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c0000008152600082516132e681601d8501602087016129ee565b91909101601d0192915050565b818103818111156106ba576106ba612f23565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60008851602061336b8285838e016129ee565b89519184019161337e8184848e016129ee565b89519201916133908184848d016129ee565b88519201916133a28184848c016129ee565b87519201916133b48184848b016129ee565b86519201916133c68184848a016129ee565b85519201916133d881848489016129ee565b919091019a9950505050505050505050565b634e487b7160e01b600052601260045260246000fd5b60008261340f5761340f6133ea565b500490565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061344790830184612a12565b9695505050505050565b60006020828403121561346357600080fd5b8151612627816129bb565b60008261347d5761347d6133ea565b500690565b600084516134948184602089016129ee565b8083019050602d60f81b80825285516134b4816001850160208a016129ee565b600192019182015283516134cf8160028401602088016129ee565b0160020195945050505050565b600360fc1b8152600082516134f88160018501602087016129ee565b9190910160010192915050565b634e487b7160e01b600052603160045260246000fd5b808201828112600083128015821682158216171561353b5761353b612f23565b505092915050565b80820260008212600160ff1b8414161561355f5761355f612f23565b81810583148215176106ba576106ba612f23565b600082613582576135826133ea565b600160ff1b82146000198414161561359c5761359c612f23565b500590565b81810360008312801583831316838312821617156135c1576135c1612f23565b509291505056fe2c202261747472696275746573223a205b7b2274726169745f74797065223a202254696572222c2276616c7565223a2022227d2c207b2274726169745f74797065223a202245787069726174696f6e222c2276616c7565223a20224142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f227d2c207b2274726169745f74797065223a202245787069726564222c2276616c7565223a2022a2646970667358221220a7fac14b46a112b38829b084d0043c2d54cf08596fdae2116e9848a9262a999664736f6c63430008110033697066733a2f2f626166796265696437356767716537793778333466373437617a66636a6f7663766f7a73646266636c6c736b643369336a6368746632667a636f61697066733a2f2f6261667962656964776a337671753279786b6279643633686d62773334716d6b3567726473636b33696571727272737736636d6133647961377a34
Deployed Bytecode
0x6080604052600436106101e55760003560e01c8063715018a611610103578063a8fef4a71161009b578063a8fef4a714610580578063ae5303dd146105a0578063b88d4fde146105c0578063c1aef4f2146105e0578063c87b56dd146105f5578063d0c4e7fb14610615578063e858ad0314610628578063e985e9c514610648578063f2fde38b14610668578063f5e1713e1461068857600080fd5b8063715018a61461048057806379169b1d14610495578063872f7807146104b55780638da5cb5b146104f05780639246149b1461050557806395d89b411461051857806397254e551461052d57806399ac9afa14610540578063a22cb4651461056057600080fd5b80634128929b116101815780634128929b1461032557806342842e0e146103455780634898fe8a146103655780634f6ccce7146103b85780635a67de07146103d85780635baa7509146103f85780636352211e1461040b5780636d8e25951461042b5780636e569bee1461044057806370a082311461046057600080fd5b806301ffc9a7146101ea57806306fdde031461021f578063081812fc14610241578063095ea7b31461027957806318160ddd1461029b57806323b872dd146102ba5780632eb4a7ab146102da5780632f745c59146102f05780633ccfd60b14610310575b600080fd5b3480156101f657600080fd5b5061020a6102053660046129d1565b6106af565b60405190151581526020015b60405180910390f35b34801561022b57600080fd5b506102346106c0565b6040516102169190612a3e565b34801561024d57600080fd5b5061026161025c366004612a51565b610752565b6040516001600160a01b039091168152602001610216565b34801561028557600080fd5b50610299610294366004612a81565b610779565b005b3480156102a757600080fd5b506008545b604051908152602001610216565b3480156102c657600080fd5b506102996102d5366004612aab565b610893565b3480156102e657600080fd5b506102ac60105481565b3480156102fc57600080fd5b506102ac61030b366004612a81565b6108c4565b34801561031c57600080fd5b5061029961095a565b34801561033157600080fd5b506102ac610340366004612a81565b610995565b34801561035157600080fd5b50610299610360366004612aab565b610a25565b34801561037157600080fd5b50610385610380366004612a51565b610a40565b60405161021691908151815260208083015190820152604080830151908201526060918201519181019190915260800190565b3480156103c457600080fd5b506102ac6103d3366004612a51565b610ad6565b3480156103e457600080fd5b506102996103f3366004612ae7565b610b69565b610299610406366004612a51565b610b98565b34801561041757600080fd5b50610261610426366004612a51565b610d61565b34801561043757600080fd5b50610234610d96565b34801561044c57600080fd5b5061029961045b366004612b08565b610e24565b34801561046c57600080fd5b506102ac61047b366004612b43565b610edd565b34801561048c57600080fd5b50610299610f63565b3480156104a157600080fd5b506102996104b0366004612bfb565b610f77565b3480156104c157600080fd5b506104d56104d0366004612a51565b610f8b565b60408051825181526020928301519281019290925201610216565b3480156104fc57600080fd5b50610261610fc9565b610299610513366004612c43565b610fd8565b34801561052457600080fd5b506102346111a5565b61029961053b366004612cff565b6111b4565b34801561054c57600080fd5b5061029961055b366004612bfb565b611486565b34801561056c57600080fd5b5061029961057b366004612d73565b61149a565b34801561058c57600080fd5b5061020a61059b366004612a51565b6114a5565b3480156105ac57600080fd5b506102996105bb366004612b08565b6114be565b3480156105cc57600080fd5b506102996105db366004612daf565b611566565b3480156105ec57600080fd5b50610234611598565b34801561060157600080fd5b50610234610610366004612a51565b6115a5565b610299610623366004612a51565b611677565b34801561063457600080fd5b50610299610643366004612a51565b61187f565b34801561065457600080fd5b5061020a610663366004612e2a565b61188c565b34801561067457600080fd5b50610299610683366004612b43565b6118ba565b34801561069457600080fd5b506011546106a29060ff1681565b6040516102169190612e73565b60006106ba82611933565b92915050565b6060600080546106cf90612e9b565b80601f01602080910402602001604051908101604052809291908181526020018280546106fb90612e9b565b80156107485780601f1061071d57610100808354040283529160200191610748565b820191906000526020600020905b81548152906001019060200180831161072b57829003601f168201915b5050505050905090565b600061075d82611958565b506000908152600460205260409020546001600160a01b031690565b600061078482610d61565b9050806001600160a01b0316836001600160a01b0316036107f65760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b03821614806108125750610812813361188c565b6108845760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c000060648201526084016107ed565b61088e838361197d565b505050565b61089d33826119eb565b6108b95760405162461bcd60e51b81526004016107ed90612ed5565b61088e838383611a4a565b60006108cf83610edd565b82106109315760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016107ed565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b610962611bf1565b6040514790339082156108fc029083906000818181858888f19350505050158015610991573d6000803e3d6000fd5b5050565b6000805b6109a284610edd565b811015610a1b576109b661059b85836108c4565b15610a095782600c60006109ca87856108c4565b81526020019081526020016000206000015403610a0957600c60006109ef86846108c4565b8152602001908152602001600020600101549150506106ba565b80610a1381612f39565b915050610999565b5060009392505050565b61088e83838360405180602001604052806000815250611566565b610a6b6040518060800160405280600081526020016000815260200160008152602001600081525090565b610a73611bf1565b6000828152600b6020908152604091829020825160808101845281548152600182015492810192909252600281015492820183905260030154606082015290610ace5760405162461bcd60e51b81526004016107ed90612f52565b90505b919050565b6000610ae160085490565b8210610b445760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016107ed565b60088281548110610b5757610b57612f7e565b90600052602060002001549050919050565b610b71611bf1565b6011805482919060ff19166001836002811115610b9057610b90612e5d565b021790555050565b6000818152600c6020908152604080832054808452600b8352928190208151608081018352815481526001820154938101939093526002810154918301829052600301546060830152610bfd5760405162461bcd60e51b81526004016107ed90612f52565b8060200151341015610c515760405162461bcd60e51b815260206004820181905260248201527f496e636f72726563742076616c75652073656e7420666f722072656e6577616c60448201526064016107ed565b33610c5b84610d61565b6001600160a01b031614610ca95760405162461bcd60e51b81526020600482015260156024820152742cb7ba903237903737ba1037bbb7103a37b5b2b71760591b60448201526064016107ed565b6000838152600c60205260409020600101544290811115610d0a576000826040015182610cd69190612f94565b60408051808201825286815260208082019384526000898152600c9091529190912090518155905160019091015550610d5b565b6040808301516000868152600c60205291822060010154610d2b9190612f94565b60408051808201825286815260208082019384526000898152600c90915291909120905181559051600190910155505b50505050565b6000818152600260205260408120546001600160a01b031680610ace5760405162461bcd60e51b81526004016107ed90612fa7565b600f8054610da390612e9b565b80601f0160208091040260200160405190810160405280929190818152602001828054610dcf90612e9b565b8015610e1c5780601f10610df157610100808354040283529160200191610e1c565b820191906000526020600020905b815481529060010190602001808311610dff57829003601f168201915b505050505081565b610e2c611bf1565b6000858152600b602052604090206002810154610e5b5760405162461bcd60e51b81526004016107ed90612f52565b80548514610e75576000868152600b602052604090208590555b80600101548414610e95576000868152600b602052604090206001018490555b80600201548314610eb5576000868152600b602052604090206002018390555b80600301548214610ed5576000868152600b602052604090206003018290555b505050505050565b60006001600160a01b038216610f475760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b60648201526084016107ed565b506001600160a01b031660009081526003602052604090205490565b610f6b611bf1565b610f756000611c50565b565b610f7f611bf1565b600f610991828261301f565b6040805180820190915260008082526020820152506000908152600c6020908152604091829020825180840190935280548352600101549082015290565b600a546001600160a01b031690565b610fe0611bf1565b6000828152600b602090815260408083208151608081018352815481526001820154818501526002820154818401526003909101546060820152858452600d90925282205490915060008260400151116110725760405162461bcd60e51b8152602060048201526013602482015272141b185b88191bd95cc81b9bdd08195e1a5cdd606a1b60448201526064016107ed565b845161107e9082612f94565b826060015110156110a15760405162461bcd60e51b81526004016107ed906130de565b60005b8551811015610ed55760006110bc86620f4240613104565b905060006110ca8483612f94565b6110d5906001612f94565b905060008686604001516110e99190613104565b6110f39042612f94565b9050604051806040016040528089815260200182815250600c6000868561111a9190612f94565b8152602080820192909252604001600020825181559101516001909101558851611169908a908690811061115057611150612f7e565b602002602001015185846111649190612f94565b611ca2565b6000888152600d60205260408120805460019290611188908490612f94565b92505081905550505050808061119d90612f39565b9150506110a4565b6060600180546106cf90612e9b565b604080516080810182527fdf7de25b7f1fd6d0b5205f0e18f1f35bd7b8d84cce336588d184533ce43a6f765481527fdf7de25b7f1fd6d0b5205f0e18f1f35bd7b8d84cce336588d184533ce43a6f77546020808301919091527fdf7de25b7f1fd6d0b5205f0e18f1f35bd7b8d84cce336588d184533ce43a6f7854828401527fdf7de25b7f1fd6d0b5205f0e18f1f35bd7b8d84cce336588d184533ce43a6f795460608084019190915260008052600d82527f81955a0a11e65eac625c29e8882660bae4e165a75d72780094acae8ece9a29ee5484513390921b6001600160601b0319168284015284516014818403018152603483018087528151918501919091206054948802808501860190975287825294959194936112f7939192899289928392910190849080828437600092019190915250506010549150849050611cbc565b6113335760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b60448201526064016107ed565b600160115460ff16600281111561134c5761134c612e5d565b146113875760405162461bcd60e51b815260206004820152600b60248201526a6e6f7420574c2073616c6560a81b60448201526064016107ed565b818360600151116113aa5760405162461bcd60e51b81526004016107ed906130de565b82513410156113cb5760405162461bcd60e51b81526004016107ed9061311b565b6000806113d88482612f94565b6113e3906001612f94565b90506000856040015160026113f89190613104565b6114029042612f94565b604080518082018252600180825260208083018581526000888152600c909252939020915182559151910155905061143a3383611ca2565b60016000818152600d6020527ffd54ff1ed53f34a900b24c5ba64f85761163b5d82d98a47b9bd80e45466993c58054909190611477908490612f94565b90915550505050505050505050565b61148e611bf1565b600e610991828261301f565b610991338383611cd2565b6000806114b183610f8b565b6020015142109392505050565b6114c6611bf1565b6000858152600b602052604090206002015460011161151d5760405162461bcd60e51b8152602060048201526013602482015272506c616e20616c72656164792065786973747360681b60448201526064016107ed565b604080516080810182529485526020808601948552858201938452606086019283526000968752600b905290942092518355905160018301555160028201559051600390910155565b61157033836119eb565b61158c5760405162461bcd60e51b81526004016107ed90612ed5565b610d5b84848484611d9c565b600e8054610da390612e9b565b60606115b082611dcf565b6116155760405162461bcd60e51b815260206004820152603060248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526f3732bc34b9ba32b73a103a37b5b2b71760811b60648201526084016107ed565b600061164d61162384611dec565b600e600f604051602001611639939291906131b7565b604051602081830303815290604052611f61565b90508060405160200161166091906132ae565b60408051601f198184030181529190529392505050565b6000818152600b602090815260408083208151608081018352815481526001820154818501526002820154818401526003909101546060820152848452600d90925282205490915060008260400151116116e35760405162461bcd60e51b81526004016107ed90612f52565b808260600151116117065760405162461bcd60e51b81526004016107ed906130de565b61170e610fc9565b6001600160a01b0316336001600160a01b0316146117475781513410156117475760405162461bcd60e51b81526004016107ed9061311b565b600260115460ff16600281111561176057611760612e5d565b1461179f5760405162461bcd60e51b815260206004820152600f60248201526e4e6f74205075626c69632073616c6560881b60448201526064016107ed565b600083116117de5760405162461bcd60e51b815260206004820152600c60248201526b2ba61026b4b73a1027bb32b960a11b60448201526064016107ed565b60006117ed84620f4240613104565b905060006117fb8383612f94565b611806906001612f94565b9050600084604001514261181a9190612f94565b60408051808201825288815260208082018481526000878152600c90925292902090518155905160019091015590506118533383611ca2565b6000868152600d60205260408120805460019290611872908490612f94565b9091555050505050505050565b611887611bf1565b601055565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6118c2611bf1565b6001600160a01b0381166119275760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107ed565b61193081611c50565b50565b60006001600160e01b0319821663780e9d6360e01b14806106ba57506106ba826120ca565b61196181611dcf565b6119305760405162461bcd60e51b81526004016107ed90612fa7565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906119b282610d61565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000806119f783610d61565b9050806001600160a01b0316846001600160a01b03161480611a1e5750611a1e818561188c565b80611a425750836001600160a01b0316611a3784610752565b6001600160a01b0316145b949350505050565b826001600160a01b0316611a5d82610d61565b6001600160a01b031614611ac15760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b60648201526084016107ed565b6001600160a01b038216611b235760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016107ed565b611b2e83838361211a565b611b3960008261197d565b6001600160a01b0383166000908152600360205260408120805460019290611b629084906132f3565b90915550506001600160a01b0382166000908152600360205260408120805460019290611b90908490612f94565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b33611bfa610fc9565b6001600160a01b031614610f755760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107ed565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610991828260405180602001604052806000815250612125565b600082611cc98584612158565b14949350505050565b816001600160a01b0316836001600160a01b031603611d2f5760405162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b60448201526064016107ed565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611da7848484611a4a565b611db3848484846121a5565b610d5b5760405162461bcd60e51b81526004016107ed90613306565b6000908152600260205260409020546001600160a01b0316151590565b6000818152600c60209081526040918290208251808401909352805483526001015490820152606090611e1d612994565b6040518060600160405280603181526020016135c96031913981528151611e43906122a6565b81600160200201819052506040518060600160405280602a81526020016135fa602a913960408201526020820151611e7a906123a6565b60608083019190915260408051918201905260278082526136646020830139608082015260208201514211611ecc576040518060400160405280600581526020016466616c736560d81b815250611eea565b604051806040016040528060048152602001637472756560e01b8152505b60a0820190815260408051808201825260058152640113eae96160dd1b60208083019190915260c08501829052845181860151848701516060880151608089015197519651600098611f489895979496939592949093909101613358565b60408051601f1981840301815291905295945050505050565b80516060906000819003611f85575050604080516020810190915260008152919050565b60006003611f94836002612f94565b611f9e9190613400565b611fa9906004613104565b90506000611fb8826020612f94565b6001600160401b03811115611fcf57611fcf612b5e565b6040519080825280601f01601f191660200182016040528015611ff9576020820181803683370190505b5090506000604051806060016040528060408152602001613624604091399050600181016020830160005b86811015612085576003818a01810151603f601282901c8116860151600c83901c8216870151600684901c831688015192909316870151600891821b60ff94851601821b92841692909201901b91160160e01b835260049092019101612024565b50600386066001811461209f57600281146120b0576120bc565b613d3d60f01b6001198301526120bc565b603d60f81b6000198301525b505050918152949350505050565b60006001600160e01b031982166380ac58cd60e01b14806120fb57506001600160e01b03198216635b5e139f60e01b145b806106ba57506301ffc9a760e01b6001600160e01b03198316146106ba565b61088e838383612405565b61212f83836124bd565b61213c60008484846121a5565b61088e5760405162461bcd60e51b81526004016107ed90613306565b600081815b845181101561219d576121898286838151811061217c5761217c612f7e565b60200260200101516125fc565b91508061219581612f39565b91505061215d565b509392505050565b60006001600160a01b0384163b1561229b57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906121e9903390899088908890600401613414565b6020604051808303816000875af1925050508015612224575060408051601f3d908101601f1916820190925261222191810190613451565b60015b612281573d808015612252576040519150601f19603f3d011682016040523d82523d6000602084013e612257565b606091505b5080516000036122795760405162461bcd60e51b81526004016107ed90613306565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611a42565b506001949350505050565b6060816000036122cd5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156122f757806122e181612f39565b91506122f09050600a83613400565b91506122d1565b6000816001600160401b0381111561231157612311612b5e565b6040519080825280601f01601f19166020018201604052801561233b576020820181803683370190505b5090505b8415611a42576123506001836132f3565b915061235d600a8661346e565b612368906030612f94565b60f81b81838151811061237d5761237d612f7e565b60200101906001600160f81b031916908160001a90535061239f600a86613400565b945061233f565b606060008060006123b68561262e565b92509250925060006123c7846122a6565b6123d083612654565b6123d985612654565b6040516020016123eb93929190613482565b60408051601f198184030181529190529695505050505050565b6001600160a01b0383166124605761245b81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b612483565b816001600160a01b0316836001600160a01b031614612483576124838382612690565b6001600160a01b03821661249a5761088e8161272d565b826001600160a01b0316826001600160a01b03161461088e5761088e82826127dc565b6001600160a01b0382166125135760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016107ed565b61251c81611dcf565b156125695760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016107ed565b6125756000838361211a565b6001600160a01b038216600090815260036020526040812080546001929061259e908490612f94565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000818310612618576000828152602084905260409020612627565b60008381526020839052604090205b9392505050565b600080806126476126426201518086613400565b612820565b9196909550909350915050565b60606000612661836122a6565b80519091506000600182146126765782612687565b82604051602001611f4891906134dc565b95945050505050565b6000600161269d84610edd565b6126a791906132f3565b6000838152600760205260409020549091508082146126fa576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061273f906001906132f3565b6000838152600960205260408120546008805493945090928490811061276757612767612f7e565b90600052602060002001549050806008838154811061278857612788612f7e565b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806127c0576127c0613505565b6001900381819060005260206000200160009055905550505050565b60006127e783610edd565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b60008080838162253d8c6128378362010bd961351b565b612841919061351b565b9050600062023ab1612854836004613543565b61285e9190613573565b9050600461286f8262023ab1613543565b61287a90600361351b565b6128849190613573565b61288e90836135a1565b9150600062164b096128a184600161351b565b6128ad90610fa0613543565b6128b79190613573565b905060046128c7826105b5613543565b6128d19190613573565b6128db90846135a1565b6128e690601f61351b565b9250600061098f6128f8856050613543565b6129029190613573565b9050600060506129148361098f613543565b61291e9190613573565b61292890866135a1565b9050612935600b83613573565b945061294285600c613543565b61294d83600261351b565b61295791906135a1565b915084836129666031876135a1565b612971906064613543565b61297b919061351b565b612985919061351b565b9a919950975095505050505050565b6040518060e001604052806007905b60608152602001906001900390816129a35790505090565b6001600160e01b03198116811461193057600080fd5b6000602082840312156129e357600080fd5b8135612627816129bb565b60005b83811015612a095781810151838201526020016129f1565b50506000910152565b60008151808452612a2a8160208601602086016129ee565b601f01601f19169290920160200192915050565b6020815260006126276020830184612a12565b600060208284031215612a6357600080fd5b5035919050565b80356001600160a01b0381168114610ad157600080fd5b60008060408385031215612a9457600080fd5b612a9d83612a6a565b946020939093013593505050565b600080600060608486031215612ac057600080fd5b612ac984612a6a565b9250612ad760208501612a6a565b9150604084013590509250925092565b600060208284031215612af957600080fd5b81356003811061262757600080fd5b600080600080600060a08688031215612b2057600080fd5b505083359560208501359550604085013594606081013594506080013592509050565b600060208284031215612b5557600080fd5b61262782612a6a565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715612b9c57612b9c612b5e565b604052919050565b60006001600160401b03831115612bbd57612bbd612b5e565b612bd0601f8401601f1916602001612b74565b9050828152838383011115612be457600080fd5b828260208301376000602084830101529392505050565b600060208284031215612c0d57600080fd5b81356001600160401b03811115612c2357600080fd5b8201601f81018413612c3457600080fd5b611a4284823560208401612ba4565b600080600060608486031215612c5857600080fd5b83356001600160401b0380821115612c6f57600080fd5b818601915086601f830112612c8357600080fd5b8135602082821115612c9757612c97612b5e565b8160051b9250612ca8818401612b74565b828152928401810192818101908a851115612cc257600080fd5b948201945b84861015612ce757612cd886612a6a565b82529482019490820190612cc7565b9a918901359950506040909701359695505050505050565b60008060208385031215612d1257600080fd5b82356001600160401b0380821115612d2957600080fd5b818501915085601f830112612d3d57600080fd5b813581811115612d4c57600080fd5b8660208260051b8501011115612d6157600080fd5b60209290920196919550909350505050565b60008060408385031215612d8657600080fd5b612d8f83612a6a565b915060208301358015158114612da457600080fd5b809150509250929050565b60008060008060808587031215612dc557600080fd5b612dce85612a6a565b9350612ddc60208601612a6a565b92506040850135915060608501356001600160401b03811115612dfe57600080fd5b8501601f81018713612e0f57600080fd5b612e1e87823560208401612ba4565b91505092959194509250565b60008060408385031215612e3d57600080fd5b612e4683612a6a565b9150612e5460208401612a6a565b90509250929050565b634e487b7160e01b600052602160045260246000fd5b6020810160038310612e9557634e487b7160e01b600052602160045260246000fd5b91905290565b600181811c90821680612eaf57607f821691505b602082108103612ecf57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b600060018201612f4b57612f4b612f23565b5060010190565b602080825260129082015271141b185b88191bd95cdb89dd08195e1a5cdd60721b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b808201808211156106ba576106ba612f23565b602080825260189082015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b604082015260600190565b601f82111561088e57600081815260208120601f850160051c810160208610156130005750805b601f850160051c820191505b81811015610ed55782815560010161300c565b81516001600160401b0381111561303857613038612b5e565b61304c816130468454612e9b565b84612fd9565b602080601f83116001811461308157600084156130695750858301515b600019600386901b1c1916600185901b178555610ed5565b600085815260208120601f198616915b828110156130b057888601518255948401946001909101908401613091565b50858210156130ce5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6020808252600c908201526b4f7574206f662073746f636b60a01b604082015260600190565b80820281158282048414176106ba576106ba612f23565b6020808252600f908201526e496e636f72726563742076616c756560881b604082015260600190565b6000815461315181612e9b565b60018281168015613169576001811461317e576131ad565b60ff19841687528215158302870194506131ad565b8560005260208060002060005b858110156131a45781548a82015290840190820161318b565b50505082870194505b5050505092915050565b7f7b226e616d65223a20224d696e744d6f6e737465722041636365737320546f6b81527f656e222c20226465736372697074696f6e223a202241636365737320746f204d60208201527f696e744d6f6e73746572207072697661746520636f6d6d756e69747920616e64604082015267103a37b7b639971160c11b60608201526000845161324c8160688501602089016129ee565b691134b6b0b3b2911d101160b11b6068918401918201526132706072820186613144565b7311161130b734b6b0ba34b7b72fbab936111d101160611b815290506132996014820185613144565b61227d60f01b81526002019695505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c0000008152600082516132e681601d8501602087016129ee565b91909101601d0192915050565b818103818111156106ba576106ba612f23565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60008851602061336b8285838e016129ee565b89519184019161337e8184848e016129ee565b89519201916133908184848d016129ee565b88519201916133a28184848c016129ee565b87519201916133b48184848b016129ee565b86519201916133c68184848a016129ee565b85519201916133d881848489016129ee565b919091019a9950505050505050505050565b634e487b7160e01b600052601260045260246000fd5b60008261340f5761340f6133ea565b500490565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061344790830184612a12565b9695505050505050565b60006020828403121561346357600080fd5b8151612627816129bb565b60008261347d5761347d6133ea565b500690565b600084516134948184602089016129ee565b8083019050602d60f81b80825285516134b4816001850160208a016129ee565b600192019182015283516134cf8160028401602088016129ee565b0160020195945050505050565b600360fc1b8152600082516134f88160018501602087016129ee565b9190910160010192915050565b634e487b7160e01b600052603160045260246000fd5b808201828112600083128015821682158216171561353b5761353b612f23565b505092915050565b80820260008212600160ff1b8414161561355f5761355f612f23565b81810583148215176106ba576106ba612f23565b600082613582576135826133ea565b600160ff1b82146000198414161561359c5761359c612f23565b500590565b81810360008312801583831316838312821617156135c1576135c1612f23565b509291505056fe2c202261747472696275746573223a205b7b2274726169745f74797065223a202254696572222c2276616c7565223a2022227d2c207b2274726169745f74797065223a202245787069726174696f6e222c2276616c7565223a20224142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f227d2c207b2274726169745f74797065223a202245787069726564222c2276616c7565223a2022a2646970667358221220a7fac14b46a112b38829b084d0043c2d54cf08596fdae2116e9848a9262a999664736f6c63430008110033
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.