ERC-721
Overview
Max Total Supply
2,222 Ywains
Holders
336
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 YwainsLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
YwainClub
Compiler Version
v0.8.7+commit.e28d00a7
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2022-11-24 */ // File: @openzeppelin/contracts/utils/math/SafeMath.sol // OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } } // File: @openzeppelin/contracts/security/ReentrancyGuard.sol // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } } // File: @openzeppelin/contracts/utils/Strings.sol // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @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); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } } // File: @openzeppelin/contracts/utils/cryptography/MerkleProof.sol // 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) } } } // File: IERC721A.sol // ERC721A Contracts v4.2.2 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * The caller cannot approve to their own address. */ error ApproveToCaller(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the * ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables * (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, * checking first that contract recipients are aware of the ERC721 protocol * to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move * this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` 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); // ============================================================= // IERC721Metadata // ============================================================= /** * @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); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); } // File: @openzeppelin/contracts/utils/Context.sol // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } // File: ERC721A.sol // ERC721A Contracts v4.2.2 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721 token receiver. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @title ERC721A * * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) * Non-Fungible Token Standard, including the Metadata extension. * Optimized for lower gas during batch mints. * * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) * starting from `_startTokenId()`. * * Assumptions: * * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Reference type for token approval. struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // Mask of an entry in packed address data. uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant _BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant _BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant _BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant _BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant _BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant _BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant _BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with {_mintERC2309}. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309} // is required to cause an overflow, which is unrealistic. uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See {_packedOwnershipOf} implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 1; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view virtual returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() public view virtual override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) public view virtual override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> _BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal virtual { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); _packedAddressData[owner] = packed; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes // of the XOR of all function selectors in the interface. // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165) // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`) return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId), '.json')) : ''; } /** * @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, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & _BITMASK_BURNED == 0) { // Invariant: // There will always be an initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `curr` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP); ownership.burned = packed & _BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @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) public virtual override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId].value; } /** * @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) public virtual override { if (operator == _msgSenderERC721A()) revert ApproveToCaller(); _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @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. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned. } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId]`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * 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 ) public virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @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 memory _data ) public virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Hook that is called before a set of serially-ordered token IDs * are about to be transferred. This includes minting. * And also called before burning one token. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * 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, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token IDs * have been transferred. This includes minting. * And also called after one token has been burned. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 toMasked; uint256 end = startTokenId + quantity; // Use assembly to loop and emit the `Transfer` event for gas savings. assembly { // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. toMasked := and(to, _BITMASK_ADDRESS) // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. startTokenId // `tokenId`. ) for { let tokenId := add(startTokenId, 1) } iszero(eq(tokenId, end)) { tokenId := add(tokenId, 1) } { // Emit the `Transfer` event. Similar to above. log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId) } } if (toMasked == 0) revert MintToZeroAddress(); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * 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, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString(uint256 value) internal pure virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), // but we allocate 0x80 bytes to keep the free memory pointer 32-byte word aliged. // We will need 1 32-byte word to store the length, // and 3 32-byte words to store a maximum of 78 digits. Total: 0x20 + 3 * 0x20 = 0x80. str := add(mload(0x40), 0x80) // Update the free memory pointer to allocate. mstore(0x40, str) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } } // File: @openzeppelin/contracts/access/Ownable.sol // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; /** * @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); } } // File: ywain.sol //SPDX-License-Identifier: MIT pragma solidity ^0.8.4; contract YwainClub is ERC721A, Ownable, ReentrancyGuard { using SafeMath for uint256; using Strings for uint256; uint256 public PUBLIC_PRICE = 0.0099 ether; uint256 public YWAIN_COST = 0 ether; uint16 public maxSupply = 2222; uint256 private YWAIN_LIMIT = 1111; uint256 private YWAIN_COUNTER = 0; mapping (address => uint8) private YWAIN_MINTED; mapping (address => uint8) private _minted; uint8 public maxMintAmount = 3; string private _baseTokenURI = ""; bytes32 private YWAIN_ROOT; bool public YWAIN_SALE_ACTIVE; bool public publicSaleActive; constructor() ERC721A("Ywain Club", "Ywains") { _mint(0x58F33Bba3d93EDd1630A2C7A3bc24A45170183fE, 11); } modifier callerIsUser() { if (msg.sender != tx.origin) revert ("no Contract!"); _; } function setYWAIN_ROOT(bytes32 _YWAIN_ROOT) external onlyOwner { YWAIN_ROOT = _YWAIN_ROOT; } function YWAIN_CONFIRMED(address _user, bytes32[] calldata YWAIN_PROOF) external view returns (bool) { return MerkleProof.verify( YWAIN_PROOF, YWAIN_ROOT, keccak256(abi.encodePacked(_user)) ); } function setYWAIN_LIMIT(uint256 _YWAIN_LIMIT)external onlyOwner{ YWAIN_LIMIT = _YWAIN_LIMIT; } function reduceSupply(uint16 _newReducedSupply) external onlyOwner { if (_newReducedSupply > maxSupply) revert ("Can not Increase Max Supply!"); maxSupply = _newReducedSupply; } function setPublicSaleCost(uint256 _newPUBLIC_PRICE) external onlyOwner { if (_newPUBLIC_PRICE > PUBLIC_PRICE) revert ("Can not Increase Cost!"); PUBLIC_PRICE = _newPUBLIC_PRICE; } function _startTokenId() internal view virtual override returns (uint256) { return 1; } function setYWAIN_SALE_COST(uint256 _newYWAIN_COST) external onlyOwner { if (_newYWAIN_COST > YWAIN_COST) revert ("Can not Increase Cost!"); YWAIN_COST = _newYWAIN_COST; } function YWAIN_MINT(bytes32[] calldata YWAIN_PROOF) external payable callerIsUser { uint256 ts = totalSupply(); if(YWAIN_COUNTER > YWAIN_LIMIT) revert ("Ywain Supply Sold Out!"); if (!YWAIN_SALE_ACTIVE) revert ("Ywain Sale is Not Active."); if (ts + 1 > maxSupply) revert ("Mint Would Exceed MaxSupply"); if (msg.value != YWAIN_COST * 1) revert ("Insufficient Fund!"); if ( !MerkleProof.verify( YWAIN_PROOF, YWAIN_ROOT, keccak256(abi.encodePacked(msg.sender)) ) ) revert ("Only YwainList!"); if (YWAIN_MINTED[msg.sender] + 1 > 1) revert ("Already Minted!"); YWAIN_COUNTER += 1; YWAIN_MINTED[msg.sender] += 1; _mint(msg.sender, 1); } function mint(uint8 _amount) external payable callerIsUser { uint256 ts = totalSupply(); if (!publicSaleActive) revert ("Public Sale is Not Active."); if (ts + _amount > maxSupply - YWAIN_LIMIT) revert ("Max Supply Sold Out!"); if (_minted[msg.sender] + _amount > maxMintAmount) revert ("Already Minted!"); if (msg.value != PUBLIC_PRICE * _amount) revert ("Insufficient Fund!"); _minted[msg.sender] += _amount; _mint(msg.sender, _amount); } function setMaxMintAmount(uint8 _maxMintAmount) external onlyOwner { maxMintAmount = _maxMintAmount; } function _baseURI() internal view virtual override returns (string memory) { return _baseTokenURI; } function setBaseURI(string calldata baseURI) external onlyOwner { _baseTokenURI = baseURI; } function start() external onlyOwner { publicSaleActive = !publicSaleActive; YWAIN_SALE_ACTIVE = !YWAIN_SALE_ACTIVE; } function withdraw() external onlyOwner nonReentrant { uint256 balance = address(this).balance; balance = address(this).balance; payable(msg.sender).transfer(balance); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"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":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","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":[],"name":"PUBLIC_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"bytes32[]","name":"YWAIN_PROOF","type":"bytes32[]"}],"name":"YWAIN_CONFIRMED","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"YWAIN_COST","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"YWAIN_PROOF","type":"bytes32[]"}],"name":"YWAIN_MINT","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"YWAIN_SALE_ACTIVE","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"maxMintAmount","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"_amount","type":"uint8"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","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":[],"name":"publicSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_newReducedSupply","type":"uint16"}],"name":"reduceSupply","outputs":[],"stateMutability":"nonpayable","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":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_maxMintAmount","type":"uint8"}],"name":"setMaxMintAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newPUBLIC_PRICE","type":"uint256"}],"name":"setPublicSaleCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_YWAIN_LIMIT","type":"uint256"}],"name":"setYWAIN_LIMIT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_YWAIN_ROOT","type":"bytes32"}],"name":"setYWAIN_ROOT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newYWAIN_COST","type":"uint256"}],"name":"setYWAIN_SALE_COST","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"start","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":"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":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
66232bff5f46c000600a556000600b819055600c805461ffff19166108ae179055610457600d55600e8190556011805460ff1916600317905560a06040819052608082905262000053916012919062000232565b503480156200006157600080fd5b50604080518082018252600a8152692cbbb0b4b71021b63ab160b11b602080830191825283518085019094526006845265597761696e7360d01b908401528151919291620000b29160029162000232565b508051620000c890600390602084019062000232565b5050600160005550620000db3362000107565b6001600955620001017358f33bba3d93edd1630a2c7a3bc24a45170183fe600b62000159565b62000315565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600054816200017b5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b17831790558284019083908390600080516020620022238339815191528180a4600183015b8181146200020a578083600060008051602062002223833981519152600080a4600101620001e1565b50816200022957604051622e076360e81b815260040160405180910390fd5b60005550505050565b8280546200024090620002d8565b90600052602060002090601f016020900481019282620002645760008555620002af565b82601f106200027f57805160ff1916838001178555620002af565b82800160010185558215620002af579182015b82811115620002af57825182559160200191906001019062000292565b50620002bd929150620002c1565b5090565b5b80821115620002bd5760008155600101620002c2565b600181811c90821680620002ed57607f821691505b602082108114156200030f57634e487b7160e01b600052602260045260246000fd5b50919050565b611efe80620003256000396000f3fe6080604052600436106102045760003560e01c80636ecd230611610118578063b0b15a10116100a0578063c87b56dd1161006f578063c87b56dd146105aa578063d5abeb01146105ca578063e985e9c5146105f8578063f2fde38b14610641578063fd46d7871461066157600080fd5b8063b0b15a101461053c578063b88d4fde14610556578063bc8893b414610576578063be9a65551461059557600080fd5b80638dbb7c06116100e75780638dbb7c06146104a757806395d89b41146104c7578063987222b5146104dc5780639d01e0eb146104fc578063a22cb4651461051c57600080fd5b80636ecd23061461044157806370a0823114610454578063715018a6146104745780638da5cb5b1461048957600080fd5b80633ccfd60b1161019b57806355f804b31161016a57806355f804b3146103ab57806358091cb7146103cb578063611f3f10146103eb5780636352211e146104015780636ec7a4151461042157600080fd5b80633ccfd60b1461034d57806342842e0e1461036257806348898cb1146103825780634e13081c1461039557600080fd5b8063162a2566116101d7578063162a2566146102ba57806318160ddd146102da578063239c70ae1461030157806323b872dd1461032d57600080fd5b806301ffc9a71461020957806306fdde031461023e578063081812fc14610260578063095ea7b314610298575b600080fd5b34801561021557600080fd5b50610229610224366004611bcd565b610681565b60405190151581526020015b60405180910390f35b34801561024a57600080fd5b506102536106d3565b6040516102359190611d68565b34801561026c57600080fd5b5061028061027b366004611bb4565b610765565b6040516001600160a01b039091168152602001610235565b3480156102a457600080fd5b506102b86102b3366004611b48565b6107a9565b005b3480156102c657600080fd5b506102b86102d5366004611bb4565b610849565b3480156102e657600080fd5b5060015460005403600019015b604051908152602001610235565b34801561030d57600080fd5b5060115461031b9060ff1681565b60405160ff9091168152602001610235565b34801561033957600080fd5b506102b86103483660046119a1565b6108a6565b34801561035957600080fd5b506102b8610a37565b34801561036e57600080fd5b506102b861037d3660046119a1565b610acf565b6102b8610390366004611b72565b610aef565b3480156103a157600080fd5b506102f3600b5481565b3480156103b757600080fd5b506102b86103c6366004611c07565b610e09565b3480156103d757600080fd5b506102296103e6366004611ab9565b610e1d565b3480156103f757600080fd5b506102f3600a5481565b34801561040d57600080fd5b5061028061041c366004611bb4565b610e87565b34801561042d57600080fd5b506102b861043c366004611bb4565b610e92565b6102b861044f366004611c9d565b610e9f565b34801561046057600080fd5b506102f361046f366004611953565b6110b9565b34801561048057600080fd5b506102b8611108565b34801561049557600080fd5b506008546001600160a01b0316610280565b3480156104b357600080fd5b506102b86104c2366004611bb4565b61111c565b3480156104d357600080fd5b50610253611174565b3480156104e857600080fd5b506102b86104f7366004611c79565b611183565b34801561050857600080fd5b506102b8610517366004611bb4565b6111fd565b34801561052857600080fd5b506102b8610537366004611b0c565b61120a565b34801561054857600080fd5b506014546102299060ff1681565b34801561056257600080fd5b506102b86105713660046119dd565b6112a0565b34801561058257600080fd5b5060145461022990610100900460ff1681565b3480156105a157600080fd5b506102b86112ea565b3480156105b657600080fd5b506102536105c5366004611bb4565b61131e565b3480156105d657600080fd5b50600c546105e59061ffff1681565b60405161ffff9091168152602001610235565b34801561060457600080fd5b5061022961061336600461196e565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561064d57600080fd5b506102b861065c366004611953565b6113a3565b34801561066d57600080fd5b506102b861067c366004611c9d565b61141c565b60006301ffc9a760e01b6001600160e01b0319831614806106b257506380ac58cd60e01b6001600160e01b03198316145b806106cd5750635b5e139f60e01b6001600160e01b03198316145b92915050565b6060600280546106e290611e1a565b80601f016020809104026020016040519081016040528092919081815260200182805461070e90611e1a565b801561075b5780601f106107305761010080835404028352916020019161075b565b820191906000526020600020905b81548152906001019060200180831161073e57829003601f168201915b5050505050905090565b60006107708261143a565b61078d576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006107b482610e87565b9050336001600160a01b038216146107ed576107d08133610613565b6107ed576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b61085161146f565b600b548111156108a15760405162461bcd60e51b815260206004820152601660248201527543616e206e6f7420496e63726561736520436f73742160501b60448201526064015b60405180910390fd5b600b55565b60006108b1826114c9565b9050836001600160a01b0316816001600160a01b0316146108e45760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b03881690911417610931576109148633610613565b61093157604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661095857604051633a954ecd60e21b815260040160405180910390fd5b801561096357600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040902055600160e11b83166109ee57600184016000818152600460205260409020546109ec5760005481146109ec5760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b610a3f61146f565b60026009541415610a925760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610898565b60026009556040514790339082156108fc029083906000818181858888f19350505050158015610ac6573d6000803e3d6000fd5b50506001600955565b610aea838383604051806020016040528060008152506112a0565b505050565b333214610b2d5760405162461bcd60e51b815260206004820152600c60248201526b6e6f20436f6e74726163742160a01b6044820152606401610898565b6000610b426001546000546000199190030190565b9050600d54600e541115610b915760405162461bcd60e51b8152602060048201526016602482015275597761696e20537570706c7920536f6c64204f75742160501b6044820152606401610898565b60145460ff16610be35760405162461bcd60e51b815260206004820152601960248201527f597761696e2053616c65206973204e6f74204163746976652e000000000000006044820152606401610898565b600c5461ffff16610bf5826001611d7b565b1115610c435760405162461bcd60e51b815260206004820152601b60248201527f4d696e7420576f756c6420457863656564204d6178537570706c7900000000006044820152606401610898565b600b54610c51906001611db8565b3414610c945760405162461bcd60e51b8152602060048201526012602482015271496e73756666696369656e742046756e642160701b6044820152606401610898565b610d0a838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506013546040516bffffffffffffffffffffffff193360601b16602082015290925060340190505b60405160208183030381529060405280519060200120611532565b610d485760405162461bcd60e51b815260206004820152600f60248201526e4f6e6c7920597761696e4c6973742160881b6044820152606401610898565b336000908152600f6020526040902054600190610d689060ff1682611d93565b60ff161115610dab5760405162461bcd60e51b815260206004820152600f60248201526e416c7265616479204d696e7465642160881b6044820152606401610898565b6001600e6000828254610dbe9190611d7b565b9091555050336000908152600f60205260408120805460019290610de690849060ff16611d93565b92506101000a81548160ff021916908360ff160217905550610aea336001611548565b610e1161146f565b610aea60128383611852565b6000610e7f838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506013546040516bffffffffffffffffffffffff1960608b901b1660208201529092506034019050610cef565b949350505050565b60006106cd826114c9565b610e9a61146f565b601355565b333214610edd5760405162461bcd60e51b815260206004820152600c60248201526b6e6f20436f6e74726163742160a01b6044820152606401610898565b6000610ef26001546000546000199190030190565b601454909150610100900460ff16610f4c5760405162461bcd60e51b815260206004820152601a60248201527f5075626c69632053616c65206973204e6f74204163746976652e0000000000006044820152606401610898565b600d54600c54610f60919061ffff16611dd7565b610f6d60ff841683611d7b565b1115610fb25760405162461bcd60e51b81526020600482015260146024820152734d617820537570706c7920536f6c64204f75742160601b6044820152606401610898565b6011543360009081526010602052604090205460ff91821691610fd791859116611d93565b60ff16111561101a5760405162461bcd60e51b815260206004820152600f60248201526e416c7265616479204d696e7465642160881b6044820152606401610898565b8160ff16600a5461102b9190611db8565b341461106e5760405162461bcd60e51b8152602060048201526012602482015271496e73756666696369656e742046756e642160701b6044820152606401610898565b336000908152601060205260408120805484929061109090849060ff16611d93565b92506101000a81548160ff021916908360ff1602179055506110b5338360ff16611548565b5050565b60006001600160a01b0382166110e2576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b61111061146f565b61111a600061163f565b565b61112461146f565b600a5481111561116f5760405162461bcd60e51b815260206004820152601660248201527543616e206e6f7420496e63726561736520436f73742160501b6044820152606401610898565b600a55565b6060600380546106e290611e1a565b61118b61146f565b600c5461ffff90811690821611156111e55760405162461bcd60e51b815260206004820152601c60248201527f43616e206e6f7420496e637265617365204d617820537570706c7921000000006044820152606401610898565b600c805461ffff191661ffff92909216919091179055565b61120561146f565b600d55565b6001600160a01b0382163314156112345760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6112ab8484846108a6565b6001600160a01b0383163b156112e4576112c784848484611691565b6112e4576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6112f261146f565b6014805460ff1960ff6101008084048216150291821661ffff1984161791811692169190911715179055565b60606113298261143a565b61134657604051630a14c4b560e41b815260040160405180910390fd5b6000611350611788565b9050805160001415611371576040518060200160405280600081525061139c565b8061137b84611797565b60405160200161138c929190611cec565b6040516020818303038152906040525b9392505050565b6113ab61146f565b6001600160a01b0381166114105760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610898565b6114198161163f565b50565b61142461146f565b6011805460ff191660ff92909216919091179055565b60008160011115801561144e575060005482105b80156106cd575050600090815260046020526040902054600160e01b161590565b6008546001600160a01b0316331461111a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610898565b600081806001116115195760005481101561151957600081815260046020526040902054600160e01b8116611517575b8061139c5750600019016000818152600460205260409020546114f9565b505b604051636f96cda160e11b815260040160405180910390fd5b60008261153f85846117d9565b14949350505050565b600054816115695760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b81811461161857808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001016115e0565b508161163657604051622e076360e81b815260040160405180910390fd5b60005550505050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906116c6903390899088908890600401611d2b565b602060405180830381600087803b1580156116e057600080fd5b505af1925050508015611710575060408051601f3d908101601f1916820190925261170d91810190611bea565b60015b61176b573d80801561173e576040519150601f19603f3d011682016040523d82523d6000602084013e611743565b606091505b508051611763576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6060601280546106e290611e1a565b604080516080019081905280825b600183039250600a81066030018353600a9004806117c2576117c7565b6117a5565b50819003601f19909101908152919050565b600081815b845181101561181e5761180a828683815181106117fd576117fd611e86565b6020026020010151611826565b91508061181681611e55565b9150506117de565b509392505050565b600081831061184257600082815260208490526040902061139c565b5060009182526020526040902090565b82805461185e90611e1a565b90600052602060002090601f01602090048101928261188057600085556118c6565b82601f106118995782800160ff198235161785556118c6565b828001600101855582156118c6579182015b828111156118c65782358255916020019190600101906118ab565b506118d29291506118d6565b5090565b5b808211156118d257600081556001016118d7565b80356001600160a01b038116811461190257600080fd5b919050565b60008083601f84011261191957600080fd5b50813567ffffffffffffffff81111561193157600080fd5b6020830191508360208260051b850101111561194c57600080fd5b9250929050565b60006020828403121561196557600080fd5b61139c826118eb565b6000806040838503121561198157600080fd5b61198a836118eb565b9150611998602084016118eb565b90509250929050565b6000806000606084860312156119b657600080fd5b6119bf846118eb565b92506119cd602085016118eb565b9150604084013590509250925092565b600080600080608085870312156119f357600080fd5b6119fc856118eb565b9350611a0a602086016118eb565b925060408501359150606085013567ffffffffffffffff80821115611a2e57600080fd5b818701915087601f830112611a4257600080fd5b813581811115611a5457611a54611e9c565b604051601f8201601f19908116603f01168101908382118183101715611a7c57611a7c611e9c565b816040528281528a6020848701011115611a9557600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600080600060408486031215611ace57600080fd5b611ad7846118eb565b9250602084013567ffffffffffffffff811115611af357600080fd5b611aff86828701611907565b9497909650939450505050565b60008060408385031215611b1f57600080fd5b611b28836118eb565b915060208301358015158114611b3d57600080fd5b809150509250929050565b60008060408385031215611b5b57600080fd5b611b64836118eb565b946020939093013593505050565b60008060208385031215611b8557600080fd5b823567ffffffffffffffff811115611b9c57600080fd5b611ba885828601611907565b90969095509350505050565b600060208284031215611bc657600080fd5b5035919050565b600060208284031215611bdf57600080fd5b813561139c81611eb2565b600060208284031215611bfc57600080fd5b815161139c81611eb2565b60008060208385031215611c1a57600080fd5b823567ffffffffffffffff80821115611c3257600080fd5b818501915085601f830112611c4657600080fd5b813581811115611c5557600080fd5b866020828501011115611c6757600080fd5b60209290920196919550909350505050565b600060208284031215611c8b57600080fd5b813561ffff8116811461139c57600080fd5b600060208284031215611caf57600080fd5b813560ff8116811461139c57600080fd5b60008151808452611cd8816020860160208601611dee565b601f01601f19169290920160200192915050565b60008351611cfe818460208801611dee565b835190830190611d12818360208801611dee565b64173539b7b760d91b9101908152600501949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611d5e90830184611cc0565b9695505050505050565b60208152600061139c6020830184611cc0565b60008219821115611d8e57611d8e611e70565b500190565b600060ff821660ff84168060ff03821115611db057611db0611e70565b019392505050565b6000816000190483118215151615611dd257611dd2611e70565b500290565b600082821015611de957611de9611e70565b500390565b60005b83811015611e09578181015183820152602001611df1565b838111156112e45750506000910152565b600181811c90821680611e2e57607f821691505b60208210811415611e4f57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415611e6957611e69611e70565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461141957600080fdfea2646970667358221220206feef2056da14612ed7f7856ba21127e2a7af090f19d9c68fbcde9d8cb08e164736f6c63430008070033ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef
Deployed Bytecode
0x6080604052600436106102045760003560e01c80636ecd230611610118578063b0b15a10116100a0578063c87b56dd1161006f578063c87b56dd146105aa578063d5abeb01146105ca578063e985e9c5146105f8578063f2fde38b14610641578063fd46d7871461066157600080fd5b8063b0b15a101461053c578063b88d4fde14610556578063bc8893b414610576578063be9a65551461059557600080fd5b80638dbb7c06116100e75780638dbb7c06146104a757806395d89b41146104c7578063987222b5146104dc5780639d01e0eb146104fc578063a22cb4651461051c57600080fd5b80636ecd23061461044157806370a0823114610454578063715018a6146104745780638da5cb5b1461048957600080fd5b80633ccfd60b1161019b57806355f804b31161016a57806355f804b3146103ab57806358091cb7146103cb578063611f3f10146103eb5780636352211e146104015780636ec7a4151461042157600080fd5b80633ccfd60b1461034d57806342842e0e1461036257806348898cb1146103825780634e13081c1461039557600080fd5b8063162a2566116101d7578063162a2566146102ba57806318160ddd146102da578063239c70ae1461030157806323b872dd1461032d57600080fd5b806301ffc9a71461020957806306fdde031461023e578063081812fc14610260578063095ea7b314610298575b600080fd5b34801561021557600080fd5b50610229610224366004611bcd565b610681565b60405190151581526020015b60405180910390f35b34801561024a57600080fd5b506102536106d3565b6040516102359190611d68565b34801561026c57600080fd5b5061028061027b366004611bb4565b610765565b6040516001600160a01b039091168152602001610235565b3480156102a457600080fd5b506102b86102b3366004611b48565b6107a9565b005b3480156102c657600080fd5b506102b86102d5366004611bb4565b610849565b3480156102e657600080fd5b5060015460005403600019015b604051908152602001610235565b34801561030d57600080fd5b5060115461031b9060ff1681565b60405160ff9091168152602001610235565b34801561033957600080fd5b506102b86103483660046119a1565b6108a6565b34801561035957600080fd5b506102b8610a37565b34801561036e57600080fd5b506102b861037d3660046119a1565b610acf565b6102b8610390366004611b72565b610aef565b3480156103a157600080fd5b506102f3600b5481565b3480156103b757600080fd5b506102b86103c6366004611c07565b610e09565b3480156103d757600080fd5b506102296103e6366004611ab9565b610e1d565b3480156103f757600080fd5b506102f3600a5481565b34801561040d57600080fd5b5061028061041c366004611bb4565b610e87565b34801561042d57600080fd5b506102b861043c366004611bb4565b610e92565b6102b861044f366004611c9d565b610e9f565b34801561046057600080fd5b506102f361046f366004611953565b6110b9565b34801561048057600080fd5b506102b8611108565b34801561049557600080fd5b506008546001600160a01b0316610280565b3480156104b357600080fd5b506102b86104c2366004611bb4565b61111c565b3480156104d357600080fd5b50610253611174565b3480156104e857600080fd5b506102b86104f7366004611c79565b611183565b34801561050857600080fd5b506102b8610517366004611bb4565b6111fd565b34801561052857600080fd5b506102b8610537366004611b0c565b61120a565b34801561054857600080fd5b506014546102299060ff1681565b34801561056257600080fd5b506102b86105713660046119dd565b6112a0565b34801561058257600080fd5b5060145461022990610100900460ff1681565b3480156105a157600080fd5b506102b86112ea565b3480156105b657600080fd5b506102536105c5366004611bb4565b61131e565b3480156105d657600080fd5b50600c546105e59061ffff1681565b60405161ffff9091168152602001610235565b34801561060457600080fd5b5061022961061336600461196e565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561064d57600080fd5b506102b861065c366004611953565b6113a3565b34801561066d57600080fd5b506102b861067c366004611c9d565b61141c565b60006301ffc9a760e01b6001600160e01b0319831614806106b257506380ac58cd60e01b6001600160e01b03198316145b806106cd5750635b5e139f60e01b6001600160e01b03198316145b92915050565b6060600280546106e290611e1a565b80601f016020809104026020016040519081016040528092919081815260200182805461070e90611e1a565b801561075b5780601f106107305761010080835404028352916020019161075b565b820191906000526020600020905b81548152906001019060200180831161073e57829003601f168201915b5050505050905090565b60006107708261143a565b61078d576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006107b482610e87565b9050336001600160a01b038216146107ed576107d08133610613565b6107ed576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b61085161146f565b600b548111156108a15760405162461bcd60e51b815260206004820152601660248201527543616e206e6f7420496e63726561736520436f73742160501b60448201526064015b60405180910390fd5b600b55565b60006108b1826114c9565b9050836001600160a01b0316816001600160a01b0316146108e45760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b03881690911417610931576109148633610613565b61093157604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661095857604051633a954ecd60e21b815260040160405180910390fd5b801561096357600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040902055600160e11b83166109ee57600184016000818152600460205260409020546109ec5760005481146109ec5760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b610a3f61146f565b60026009541415610a925760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610898565b60026009556040514790339082156108fc029083906000818181858888f19350505050158015610ac6573d6000803e3d6000fd5b50506001600955565b610aea838383604051806020016040528060008152506112a0565b505050565b333214610b2d5760405162461bcd60e51b815260206004820152600c60248201526b6e6f20436f6e74726163742160a01b6044820152606401610898565b6000610b426001546000546000199190030190565b9050600d54600e541115610b915760405162461bcd60e51b8152602060048201526016602482015275597761696e20537570706c7920536f6c64204f75742160501b6044820152606401610898565b60145460ff16610be35760405162461bcd60e51b815260206004820152601960248201527f597761696e2053616c65206973204e6f74204163746976652e000000000000006044820152606401610898565b600c5461ffff16610bf5826001611d7b565b1115610c435760405162461bcd60e51b815260206004820152601b60248201527f4d696e7420576f756c6420457863656564204d6178537570706c7900000000006044820152606401610898565b600b54610c51906001611db8565b3414610c945760405162461bcd60e51b8152602060048201526012602482015271496e73756666696369656e742046756e642160701b6044820152606401610898565b610d0a838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506013546040516bffffffffffffffffffffffff193360601b16602082015290925060340190505b60405160208183030381529060405280519060200120611532565b610d485760405162461bcd60e51b815260206004820152600f60248201526e4f6e6c7920597761696e4c6973742160881b6044820152606401610898565b336000908152600f6020526040902054600190610d689060ff1682611d93565b60ff161115610dab5760405162461bcd60e51b815260206004820152600f60248201526e416c7265616479204d696e7465642160881b6044820152606401610898565b6001600e6000828254610dbe9190611d7b565b9091555050336000908152600f60205260408120805460019290610de690849060ff16611d93565b92506101000a81548160ff021916908360ff160217905550610aea336001611548565b610e1161146f565b610aea60128383611852565b6000610e7f838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506013546040516bffffffffffffffffffffffff1960608b901b1660208201529092506034019050610cef565b949350505050565b60006106cd826114c9565b610e9a61146f565b601355565b333214610edd5760405162461bcd60e51b815260206004820152600c60248201526b6e6f20436f6e74726163742160a01b6044820152606401610898565b6000610ef26001546000546000199190030190565b601454909150610100900460ff16610f4c5760405162461bcd60e51b815260206004820152601a60248201527f5075626c69632053616c65206973204e6f74204163746976652e0000000000006044820152606401610898565b600d54600c54610f60919061ffff16611dd7565b610f6d60ff841683611d7b565b1115610fb25760405162461bcd60e51b81526020600482015260146024820152734d617820537570706c7920536f6c64204f75742160601b6044820152606401610898565b6011543360009081526010602052604090205460ff91821691610fd791859116611d93565b60ff16111561101a5760405162461bcd60e51b815260206004820152600f60248201526e416c7265616479204d696e7465642160881b6044820152606401610898565b8160ff16600a5461102b9190611db8565b341461106e5760405162461bcd60e51b8152602060048201526012602482015271496e73756666696369656e742046756e642160701b6044820152606401610898565b336000908152601060205260408120805484929061109090849060ff16611d93565b92506101000a81548160ff021916908360ff1602179055506110b5338360ff16611548565b5050565b60006001600160a01b0382166110e2576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b61111061146f565b61111a600061163f565b565b61112461146f565b600a5481111561116f5760405162461bcd60e51b815260206004820152601660248201527543616e206e6f7420496e63726561736520436f73742160501b6044820152606401610898565b600a55565b6060600380546106e290611e1a565b61118b61146f565b600c5461ffff90811690821611156111e55760405162461bcd60e51b815260206004820152601c60248201527f43616e206e6f7420496e637265617365204d617820537570706c7921000000006044820152606401610898565b600c805461ffff191661ffff92909216919091179055565b61120561146f565b600d55565b6001600160a01b0382163314156112345760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6112ab8484846108a6565b6001600160a01b0383163b156112e4576112c784848484611691565b6112e4576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6112f261146f565b6014805460ff1960ff6101008084048216150291821661ffff1984161791811692169190911715179055565b60606113298261143a565b61134657604051630a14c4b560e41b815260040160405180910390fd5b6000611350611788565b9050805160001415611371576040518060200160405280600081525061139c565b8061137b84611797565b60405160200161138c929190611cec565b6040516020818303038152906040525b9392505050565b6113ab61146f565b6001600160a01b0381166114105760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610898565b6114198161163f565b50565b61142461146f565b6011805460ff191660ff92909216919091179055565b60008160011115801561144e575060005482105b80156106cd575050600090815260046020526040902054600160e01b161590565b6008546001600160a01b0316331461111a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610898565b600081806001116115195760005481101561151957600081815260046020526040902054600160e01b8116611517575b8061139c5750600019016000818152600460205260409020546114f9565b505b604051636f96cda160e11b815260040160405180910390fd5b60008261153f85846117d9565b14949350505050565b600054816115695760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b81811461161857808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001016115e0565b508161163657604051622e076360e81b815260040160405180910390fd5b60005550505050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906116c6903390899088908890600401611d2b565b602060405180830381600087803b1580156116e057600080fd5b505af1925050508015611710575060408051601f3d908101601f1916820190925261170d91810190611bea565b60015b61176b573d80801561173e576040519150601f19603f3d011682016040523d82523d6000602084013e611743565b606091505b508051611763576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6060601280546106e290611e1a565b604080516080019081905280825b600183039250600a81066030018353600a9004806117c2576117c7565b6117a5565b50819003601f19909101908152919050565b600081815b845181101561181e5761180a828683815181106117fd576117fd611e86565b6020026020010151611826565b91508061181681611e55565b9150506117de565b509392505050565b600081831061184257600082815260208490526040902061139c565b5060009182526020526040902090565b82805461185e90611e1a565b90600052602060002090601f01602090048101928261188057600085556118c6565b82601f106118995782800160ff198235161785556118c6565b828001600101855582156118c6579182015b828111156118c65782358255916020019190600101906118ab565b506118d29291506118d6565b5090565b5b808211156118d257600081556001016118d7565b80356001600160a01b038116811461190257600080fd5b919050565b60008083601f84011261191957600080fd5b50813567ffffffffffffffff81111561193157600080fd5b6020830191508360208260051b850101111561194c57600080fd5b9250929050565b60006020828403121561196557600080fd5b61139c826118eb565b6000806040838503121561198157600080fd5b61198a836118eb565b9150611998602084016118eb565b90509250929050565b6000806000606084860312156119b657600080fd5b6119bf846118eb565b92506119cd602085016118eb565b9150604084013590509250925092565b600080600080608085870312156119f357600080fd5b6119fc856118eb565b9350611a0a602086016118eb565b925060408501359150606085013567ffffffffffffffff80821115611a2e57600080fd5b818701915087601f830112611a4257600080fd5b813581811115611a5457611a54611e9c565b604051601f8201601f19908116603f01168101908382118183101715611a7c57611a7c611e9c565b816040528281528a6020848701011115611a9557600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600080600060408486031215611ace57600080fd5b611ad7846118eb565b9250602084013567ffffffffffffffff811115611af357600080fd5b611aff86828701611907565b9497909650939450505050565b60008060408385031215611b1f57600080fd5b611b28836118eb565b915060208301358015158114611b3d57600080fd5b809150509250929050565b60008060408385031215611b5b57600080fd5b611b64836118eb565b946020939093013593505050565b60008060208385031215611b8557600080fd5b823567ffffffffffffffff811115611b9c57600080fd5b611ba885828601611907565b90969095509350505050565b600060208284031215611bc657600080fd5b5035919050565b600060208284031215611bdf57600080fd5b813561139c81611eb2565b600060208284031215611bfc57600080fd5b815161139c81611eb2565b60008060208385031215611c1a57600080fd5b823567ffffffffffffffff80821115611c3257600080fd5b818501915085601f830112611c4657600080fd5b813581811115611c5557600080fd5b866020828501011115611c6757600080fd5b60209290920196919550909350505050565b600060208284031215611c8b57600080fd5b813561ffff8116811461139c57600080fd5b600060208284031215611caf57600080fd5b813560ff8116811461139c57600080fd5b60008151808452611cd8816020860160208601611dee565b601f01601f19169290920160200192915050565b60008351611cfe818460208801611dee565b835190830190611d12818360208801611dee565b64173539b7b760d91b9101908152600501949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611d5e90830184611cc0565b9695505050505050565b60208152600061139c6020830184611cc0565b60008219821115611d8e57611d8e611e70565b500190565b600060ff821660ff84168060ff03821115611db057611db0611e70565b019392505050565b6000816000190483118215151615611dd257611dd2611e70565b500290565b600082821015611de957611de9611e70565b500390565b60005b83811015611e09578181015183820152602001611df1565b838111156112e45750506000910152565b600181811c90821680611e2e57607f821691505b60208210811415611e4f57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415611e6957611e69611e70565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461141957600080fdfea2646970667358221220206feef2056da14612ed7f7856ba21127e2a7af090f19d9c68fbcde9d8cb08e164736f6c63430008070033
Deployed Bytecode Sourcemap
75509:4366:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40312:639;;;;;;;;;;-1:-1:-1;40312:639:0;;;;;:::i;:::-;;:::i;:::-;;;8091:14:1;;8084:22;8066:41;;8054:2;8039:18;40312:639:0;;;;;;;;41214:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;47706:218::-;;;;;;;;;;-1:-1:-1;47706:218:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;7389:32:1;;;7371:51;;7359:2;7344:18;47706:218:0;7225:203:1;47147:400:0;;;;;;;;;;-1:-1:-1;47147:400:0;;;;;:::i;:::-;;:::i;:::-;;77514:194;;;;;;;;;;-1:-1:-1;77514:194:0;;;;;:::i;:::-;;:::i;36965:323::-;;;;;;;;;;-1:-1:-1;77497:1:0;37239:12;37026:7;37223:13;:28;-1:-1:-1;;37223:46:0;36965:323;;;13658:25:1;;;13646:2;13631:18;36965:323:0;13512:177:1;75967:30:0;;;;;;;;;;-1:-1:-1;75967:30:0;;;;;;;;;;;13866:4:1;13854:17;;;13836:36;;13824:2;13809:18;75967:30:0;13694:184:1;51413:2817:0;;;;;;;;;;-1:-1:-1;51413:2817:0;;;;;:::i;:::-;;:::i;79672:200::-;;;;;;;;;;;;;:::i;54326:185::-;;;;;;;;;;-1:-1:-1;54326:185:0;;;;;:::i;:::-;;:::i;77716:868::-;;;;;;:::i;:::-;;:::i;75696:35::-;;;;;;;;;;;;;;;;79410:106;;;;;;;;;;-1:-1:-1;79410:106:0;;;;;:::i;:::-;;:::i;76541:317::-;;;;;;;;;;-1:-1:-1;76541:317:0;;;;;:::i;:::-;;:::i;75647:42::-;;;;;;;;;;;;;;;;42616:152;;;;;;;;;;-1:-1:-1;42616:152:0;;;;;:::i;:::-;;:::i;76404:129::-;;;;;;;;;;-1:-1:-1;76404:129:0;;;;;:::i;:::-;;:::i;78592:558::-;;;;;;:::i;:::-;;:::i;38149:233::-;;;;;;;;;;-1:-1:-1;38149:233:0;;;;;:::i;:::-;;:::i;74593:103::-;;;;;;;;;;;;;:::i;73945:87::-;;;;;;;;;;-1:-1:-1;74018:6:0;;-1:-1:-1;;;;;74018:6:0;73945:87;;77194:203;;;;;;;;;;-1:-1:-1;77194:203:0;;;;;:::i;:::-;;:::i;41390:104::-;;;;;;;;;;;;;:::i;76986:200::-;;;;;;;;;;-1:-1:-1;76986:200:0;;;;;:::i;:::-;;:::i;76870:108::-;;;;;;;;;;-1:-1:-1;76870:108:0;;;;;:::i;:::-;;:::i;48264:308::-;;;;;;;;;;-1:-1:-1;48264:308:0;;;;;:::i;:::-;;:::i;76092:29::-;;;;;;;;;;-1:-1:-1;76092:29:0;;;;;;;;55109:399;;;;;;;;;;-1:-1:-1;55109:399:0;;;;;:::i;:::-;;:::i;76128:28::-;;;;;;;;;;-1:-1:-1;76128:28:0;;;;;;;;;;;79524:140;;;;;;;;;;;;;:::i;41600:327::-;;;;;;;;;;-1:-1:-1;41600:327:0;;;;;:::i;:::-;;:::i;75738:30::-;;;;;;;;;;-1:-1:-1;75738:30:0;;;;;;;;;;;13493:6:1;13481:19;;;13463:38;;13451:2;13436:18;75738:30:0;13319:188:1;48729:164:0;;;;;;;;;;-1:-1:-1;48729:164:0;;;;;:::i;:::-;-1:-1:-1;;;;;48850:25:0;;;48826:4;48850:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;48729:164;74851:201;;;;;;;;;;-1:-1:-1;74851:201:0;;;;;:::i;:::-;;:::i;79164:116::-;;;;;;;;;;-1:-1:-1;79164:116:0;;;;;:::i;:::-;;:::i;40312:639::-;40397:4;-1:-1:-1;;;;;;;;;40721:25:0;;;;:102;;-1:-1:-1;;;;;;;;;;40798:25:0;;;40721:102;:179;;;-1:-1:-1;;;;;;;;;;40875:25:0;;;40721:179;40701:199;40312:639;-1:-1:-1;;40312:639:0:o;41214:100::-;41268:13;41301:5;41294:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;41214:100;:::o;47706:218::-;47782:7;47807:16;47815:7;47807;:16::i;:::-;47802:64;;47832:34;;-1:-1:-1;;;47832:34:0;;;;;;;;;;;47802:64;-1:-1:-1;47886:24:0;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;47886:30:0;;47706:218::o;47147:400::-;47228:13;47244:16;47252:7;47244;:16::i;:::-;47228:32;-1:-1:-1;71004:10:0;-1:-1:-1;;;;;47277:28:0;;;47273:175;;47325:44;47342:5;71004:10;48729:164;:::i;47325:44::-;47320:128;;47397:35;;-1:-1:-1;;;47397:35:0;;;;;;;;;;;47320:128;47460:24;;;;:15;:24;;;;;;:35;;-1:-1:-1;;;;;;47460:35:0;-1:-1:-1;;;;;47460:35:0;;;;;;;;;47511:28;;47460:24;;47511:28;;;;;;;47217:330;47147:400;;:::o;77514:194::-;73831:13;:11;:13::i;:::-;77617:10:::1;;77600:14;:27;77596:66;;;77629:33;::::0;-1:-1:-1;;;77629:33:0;;12453:2:1;77629:33:0::1;::::0;::::1;12435:21:1::0;12492:2;12472:18;;;12465:30;-1:-1:-1;;;12511:18:1;;;12504:52;12573:18;;77629:33:0::1;;;;;;;;77596:66;77673:10;:27:::0;77514:194::o;51413:2817::-;51547:27;51577;51596:7;51577:18;:27::i;:::-;51547:57;;51662:4;-1:-1:-1;;;;;51621:45:0;51637:19;-1:-1:-1;;;;;51621:45:0;;51617:86;;51675:28;;-1:-1:-1;;;51675:28:0;;;;;;;;;;;51617:86;51717:27;50527:24;;;:15;:24;;;;;50749:26;;71004:10;50152:30;;;-1:-1:-1;;;;;49845:28:0;;50130:20;;;50127:56;51903:180;;51996:43;52013:4;71004:10;48729:164;:::i;51996:43::-;51991:92;;52048:35;;-1:-1:-1;;;52048:35:0;;;;;;;;;;;51991:92;-1:-1:-1;;;;;52100:16:0;;52096:52;;52125:23;;-1:-1:-1;;;52125:23:0;;;;;;;;;;;52096:52;52297:15;52294:160;;;52437:1;52416:19;52409:30;52294:160;-1:-1:-1;;;;;52834:24:0;;;;;;;:18;:24;;;;;;52832:26;;-1:-1:-1;;52832:26:0;;;52903:22;;;;;;;;;52901:24;;-1:-1:-1;52901:24:0;;;46005:11;45980:23;45976:41;45963:63;-1:-1:-1;;;45963:63:0;53196:26;;;;:17;:26;;;;;:175;-1:-1:-1;;;53491:47:0;;53487:627;;53596:1;53586:11;;53564:19;53719:30;;;:17;:30;;;;;;53715:384;;53857:13;;53842:11;:28;53838:242;;54004:30;;;;:17;:30;;;;;:52;;;53838:242;53545:569;53487:627;54161:7;54157:2;-1:-1:-1;;;;;54142:27:0;54151:4;-1:-1:-1;;;;;54142:27:0;;;;;;;;;;;51536:2694;;;51413:2817;;;:::o;79672:200::-;73831:13;:11;:13::i;:::-;8853:1:::1;9451:7;;:19;;9443:63;;;::::0;-1:-1:-1;;;9443:63:0;;12804:2:1;9443:63:0::1;::::0;::::1;12786:21:1::0;12843:2;12823:18;;;12816:30;12882:33;12862:18;;;12855:61;12933:18;;9443:63:0::1;12602:355:1::0;9443:63:0::1;8853:1;9584:7;:18:::0;79827:37:::2;::::0;79795:21:::2;::::0;79835:10:::2;::::0;79827:37;::::2;;;::::0;79795:21;;79735:15:::2;79827:37:::0;79735:15;79827:37;79795:21;79835:10;79827:37;::::2;;;;;;;;;;;;;::::0;::::2;;;;;-1:-1:-1::0;;8809:1:0::1;9763:7;:22:::0;79672:200::o;54326:185::-;54464:39;54481:4;54487:2;54491:7;54464:39;;;;;;;;;;;;:16;:39::i;:::-;54326:185;;;:::o;77716:868::-;76328:10;76342:9;76328:23;76324:52;;76353:23;;-1:-1:-1;;;76353:23:0;;9244:2:1;76353:23:0;;;9226:21:1;9283:2;9263:18;;;9256:30;-1:-1:-1;;;9302:18:1;;;9295:42;9354:18;;76353:23:0;9042:336:1;76324:52:0;77841:10:::1;77854:13;77497:1:::0;37239:12;37026:7;37223:13;-1:-1:-1;;37223:28:0;;;:46;;36965:323;77854:13:::1;77841:26;;77897:11;;77881:13;;:27;77878:65;;;77910:33;::::0;-1:-1:-1;;;77910:33:0;;9992:2:1;77910:33:0::1;::::0;::::1;9974:21:1::0;10031:2;10011:18;;;10004:30;-1:-1:-1;;;10050:18:1;;;10043:52;10112:18;;77910:33:0::1;9790:346:1::0;77878:65:0::1;77959:17;::::0;::::1;;77954:60;;77978:36;::::0;-1:-1:-1;;;77978:36:0;;11034:2:1;77978:36:0::1;::::0;::::1;11016:21:1::0;11073:2;11053:18;;;11046:30;11112:27;11092:18;;;11085:55;11157:18;;77978:36:0::1;10832:349:1::0;77954:60:0::1;78038:9;::::0;::::1;;78029:6;:2:::0;78038:9;78029:6:::1;:::i;:::-;:18;78025:62;;;78049:38;::::0;-1:-1:-1;;;78049:38:0;;8888:2:1;78049:38:0::1;::::0;::::1;8870:21:1::0;8927:2;8907:18;;;8900:30;8966:29;8946:18;;;8939:57;9013:18;;78049:38:0::1;8686:351:1::0;78025:62:0::1;78115:10;::::0;:14:::1;::::0;78128:1:::1;78115:14;:::i;:::-;78102:9;:27;78098:62;;78131:29;::::0;-1:-1:-1;;;78131:29:0;;10687:2:1;78131:29:0::1;::::0;::::1;10669:21:1::0;10726:2;10706:18;;;10699:30;-1:-1:-1;;;10745:18:1;;;10738:48;10803:18;;78131:29:0::1;10485:342:1::0;78098:62:0::1;78190:150;78227:11;;78190:150;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;::::0;;;;-1:-1:-1;;78257:10:0::1;::::0;78296:28:::1;::::0;-1:-1:-1;;78313:10:0::1;6498:2:1::0;6494:15;6490:53;78296:28:0::1;::::0;::::1;6478:66:1::0;78257:10:0;;-1:-1:-1;6560:12:1;;;-1:-1:-1;78296:28:0::1;;;;;;;;;;;;;78286:39;;;;;;78190:18;:150::i;:::-;78171:207;;78352:26;::::0;-1:-1:-1;;;78352:26:0;;8544:2:1;78352:26:0::1;::::0;::::1;8526:21:1::0;8583:2;8563:18;;;8556:30;-1:-1:-1;;;8602:18:1;;;8595:45;8657:18;;78352:26:0::1;8342:339:1::0;78171:207:0::1;78406:10;78393:24;::::0;;;:12:::1;:24;::::0;;;;;78424:1:::1;::::0;78393:28:::1;::::0;:24:::1;;78424:1:::0;78393:28:::1;:::i;:::-;:32;;;78389:77;;;78440:26;::::0;-1:-1:-1;;;78440:26:0;;10343:2:1;78440:26:0::1;::::0;::::1;10325:21:1::0;10382:2;10362:18;;;10355:30;-1:-1:-1;;;10401:18:1;;;10394:45;10456:18;;78440:26:0::1;10141:339:1::0;78389:77:0::1;78496:1;78479:13;;:18;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;;78521:10:0::1;78508:24;::::0;;;:12:::1;:24;::::0;;;;:29;;78536:1:::1;::::0;78508:24;:29:::1;::::0;78536:1;;78508:29:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;78548:20;78554:10;78566:1;78548:5;:20::i;79410:106::-:0;73831:13;:11;:13::i;:::-;79485:23:::1;:13;79501:7:::0;;79485:23:::1;:::i;76541:317::-:0;76663:4;76705:145;76742:11;;76705:145;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;76772:10:0;;76811:23;;-1:-1:-1;;6498:2:1;6494:15;;;6490:53;76811:23:0;;;6478:66:1;76772:10:0;;-1:-1:-1;6560:12:1;;;-1:-1:-1;76811:23:0;6349:229:1;76705:145:0;76685:165;76541:317;-1:-1:-1;;;;76541:317:0:o;42616:152::-;42688:7;42731:27;42750:7;42731:18;:27::i;76404:129::-;73831:13;:11;:13::i;:::-;76501:10:::1;:24:::0;76404:129::o;78592:558::-;76328:10;76342:9;76328:23;76324:52;;76353:23;;-1:-1:-1;;;76353:23:0;;9244:2:1;76353:23:0;;;9226:21:1;9283:2;9263:18;;;9256:30;-1:-1:-1;;;9302:18:1;;;9295:42;9354:18;;76353:23:0;9042:336:1;76324:52:0;78662:10:::1;78675:13;77497:1:::0;37239:12;37026:7;37223:13;-1:-1:-1;;37223:28:0;;;:46;;36965:323;78675:13:::1;78708:16;::::0;78662:26;;-1:-1:-1;78708:16:0::1;::::0;::::1;;;78703:60;;78726:37;::::0;-1:-1:-1;;;78726:37:0;;11388:2:1;78726:37:0::1;::::0;::::1;11370:21:1::0;11427:2;11407:18;;;11400:30;11466:28;11446:18;;;11439:56;11512:18;;78726:37:0::1;11186:350:1::0;78703:60:0::1;78809:11;::::0;78797:9:::1;::::0;:23:::1;::::0;78809:11;78797:9:::1;;:23;:::i;:::-;78782:12;;::::0;::::1;:2:::0;:12:::1;:::i;:::-;:38;78778:75;;;78822:31;::::0;-1:-1:-1;;;78822:31:0;;12104:2:1;78822:31:0::1;::::0;::::1;12086:21:1::0;12143:2;12123:18;;;12116:30;-1:-1:-1;;;12162:18:1;;;12155:50;12222:18;;78822:31:0::1;11902:344:1::0;78778:75:0::1;78904:13;::::0;78880:10:::1;78904:13;78872:19:::0;;;:7:::1;:19;::::0;;;;;78904:13:::1;::::0;;::::1;::::0;78872:29:::1;::::0;78894:7;;78872:19:::1;:29;:::i;:::-;:45;;;78868:94;;;78936:26;::::0;-1:-1:-1;;;78936:26:0;;10343:2:1;78936:26:0::1;::::0;::::1;10325:21:1::0;10382:2;10362:18;;;10355:30;-1:-1:-1;;;10401:18:1;;;10394:45;10456:18;;78936:26:0::1;10141:339:1::0;78868:94:0::1;79009:7;78994:22;;:12;;:22;;;;:::i;:::-;78981:9;:35;78977:70;;79018:29;::::0;-1:-1:-1;;;79018:29:0;;10687:2:1;79018:29:0::1;::::0;::::1;10669:21:1::0;10726:2;10706:18;;;10699:30;-1:-1:-1;;;10745:18:1;;;10738:48;10803:18;;79018:29:0::1;10485:342:1::0;78977:70:0::1;79072:10;79064:19;::::0;;;:7:::1;:19;::::0;;;;:30;;79087:7;;79064:19;:30:::1;::::0;79087:7;;79064:30:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;79112:26;79118:10;79130:7;79112:26;;:5;:26::i;:::-;78651:499;78592:558:::0;:::o;38149:233::-;38221:7;-1:-1:-1;;;;;38245:19:0;;38241:60;;38273:28;;-1:-1:-1;;;38273:28:0;;;;;;;;;;;38241:60;-1:-1:-1;;;;;;38319:25:0;;;;;:18;:25;;;;;;32308:13;38319:55;;38149:233::o;74593:103::-;73831:13;:11;:13::i;:::-;74658:30:::1;74685:1;74658:18;:30::i;:::-;74593:103::o:0;77194:203::-;73831:13;:11;:13::i;:::-;77300:12:::1;;77281:16;:31;77277:70;;;77314:33;::::0;-1:-1:-1;;;77314:33:0;;12453:2:1;77314:33:0::1;::::0;::::1;12435:21:1::0;12492:2;12472:18;;;12465:30;-1:-1:-1;;;12511:18:1;;;12504:52;12573:18;;77314:33:0::1;12251:346:1::0;77277:70:0::1;77358:12;:31:::0;77194:203::o;41390:104::-;41446:13;41479:7;41472:14;;;;;:::i;76986:200::-;73831:13;:11;:13::i;:::-;77088:9:::1;::::0;::::1;::::0;;::::1;77068:29:::0;;::::1;;77064:74;;;77099:39;::::0;-1:-1:-1;;;77099:39:0;;13164:2:1;77099:39:0::1;::::0;::::1;13146:21:1::0;13203:2;13183:18;;;13176:30;13242;13222:18;;;13215:58;13290:18;;77099:39:0::1;12962:352:1::0;77064:74:0::1;77149:9;:29:::0;;-1:-1:-1;;77149:29:0::1;;::::0;;;::::1;::::0;;;::::1;::::0;;76986:200::o;76870:108::-;73831:13;:11;:13::i;:::-;76944:11:::1;:26:::0;76870:108::o;48264:308::-;-1:-1:-1;;;;;48363:31:0;;71004:10;48363:31;48359:61;;;48403:17;;-1:-1:-1;;;48403:17:0;;;;;;;;;;;48359:61;71004:10;48433:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;48433:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;48433:60:0;;;;;;;;;;48509:55;;8066:41:1;;;48433:49:0;;71004:10;48509:55;;8039:18:1;48509:55:0;;;;;;;48264:308;;:::o;55109:399::-;55276:31;55289:4;55295:2;55299:7;55276:12;:31::i;:::-;-1:-1:-1;;;;;55322:14:0;;;:19;55318:183;;55361:56;55392:4;55398:2;55402:7;55411:5;55361:30;:56::i;:::-;55356:145;;55445:40;;-1:-1:-1;;;55445:40:0;;;;;;;;;;;55356:145;55109:399;;;;:::o;79524:140::-;73831:13;:11;:13::i;:::-;79591:16:::1;::::0;;-1:-1:-1;;79591:16:0::1;;::::0;;::::1;::::0;::::1;79590:17;79571:36;79618:38:::0;;;-1:-1:-1;;79618:38:0;;;79639:17;;;;;;;;;79638:18:::1;79618:38;::::0;;79524:140::o;41600:327::-;41673:13;41704:16;41712:7;41704;:16::i;:::-;41699:59;;41729:29;;-1:-1:-1;;;41729:29:0;;;;;;;;;;;41699:59;41771:21;41795:10;:8;:10::i;:::-;41771:34;;41829:7;41823:21;41848:1;41823:26;;:96;;;;;;;;;;;;;;;;;41876:7;41885:18;41895:7;41885:9;:18::i;:::-;41859:54;;;;;;;;;:::i;:::-;;;;;;;;;;;;;41823:96;41816:103;41600:327;-1:-1:-1;;;41600:327:0:o;74851:201::-;73831:13;:11;:13::i;:::-;-1:-1:-1;;;;;74940:22:0;::::1;74932:73;;;::::0;-1:-1:-1;;;74932:73:0;;9585:2:1;74932:73:0::1;::::0;::::1;9567:21:1::0;9624:2;9604:18;;;9597:30;9663:34;9643:18;;;9636:62;-1:-1:-1;;;9714:18:1;;;9707:36;9760:19;;74932:73:0::1;9383:402:1::0;74932:73:0::1;75016:28;75035:8;75016:18;:28::i;:::-;74851:201:::0;:::o;79164:116::-;73831:13;:11;:13::i;:::-;79242::::1;:30:::0;;-1:-1:-1;;79242:30:0::1;;::::0;;;::::1;::::0;;;::::1;::::0;;79164:116::o;49151:282::-;49216:4;49272:7;77497:1;49253:26;;:66;;;;;49306:13;;49296:7;:23;49253:66;:153;;;;-1:-1:-1;;49357:26:0;;;;:17;:26;;;;;;-1:-1:-1;;;49357:44:0;:49;;49151:282::o;74110:132::-;74018:6;;-1:-1:-1;;;;;74018:6:0;71004:10;74174:23;74166:68;;;;-1:-1:-1;;;74166:68:0;;11743:2:1;74166:68:0;;;11725:21:1;;;11762:18;;;11755:30;11821:34;11801:18;;;11794:62;11873:18;;74166:68:0;11541:356:1;43771:1275:0;43838:7;43873;;77497:1;43922:23;43918:1061;;43975:13;;43968:4;:20;43964:1015;;;44013:14;44030:23;;;:17;:23;;;;;;-1:-1:-1;;;44119:24:0;;44115:845;;44784:113;44791:11;44784:113;;-1:-1:-1;;;44862:6:0;44844:25;;;;:17;:25;;;;;;44784:113;;44115:845;43990:989;43964:1015;45007:31;;-1:-1:-1;;;45007:31:0;;;;;;;;;;;13516:190;13641:4;13694;13665:25;13678:5;13685:4;13665:12;:25::i;:::-;:33;;13516:190;-1:-1:-1;;;;13516:190:0:o;58770:2454::-;58843:20;58866:13;58894;58890:44;;58916:18;;-1:-1:-1;;;58916:18:0;;;;;;;;;;;58890:44;-1:-1:-1;;;;;59422:22:0;;;;;;:18;:22;;;;32446:2;59422:22;;;:71;;59460:32;59448:45;;59422:71;;;59736:31;;;:17;:31;;;;;-1:-1:-1;46436:15:0;;46410:24;46406:46;46005:11;45980:23;45976:41;45973:52;45963:63;;59736:173;;59971:23;;;;59736:31;;59422:22;;60470:25;59422:22;;60323:335;60738:1;60724:12;60720:20;60678:346;60779:3;60770:7;60767:16;60678:346;;60997:7;60987:8;60984:1;60957:25;60954:1;60951;60946:59;60832:1;60819:15;60678:346;;;-1:-1:-1;61057:13:0;61053:45;;61079:19;;-1:-1:-1;;;61079:19:0;;;;;;;;;;;61053:45;61115:13;:19;-1:-1:-1;54326:185:0;;;:::o;75212:191::-;75305:6;;;-1:-1:-1;;;;;75322:17:0;;;-1:-1:-1;;;;;;75322:17:0;;;;;;;75355:40;;75305:6;;;75322:17;75305:6;;75355:40;;75286:16;;75355:40;75275:128;75212:191;:::o;57592:716::-;57776:88;;-1:-1:-1;;;57776:88:0;;57755:4;;-1:-1:-1;;;;;57776:45:0;;;;;:88;;71004:10;;57843:4;;57849:7;;57858:5;;57776:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;57776:88:0;;;;;;;;-1:-1:-1;;57776:88:0;;;;;;;;;;;;:::i;:::-;;;57772:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;58059:13:0;;58055:235;;58105:40;;-1:-1:-1;;;58105:40:0;;;;;;;;;;;58055:235;58248:6;58242:13;58233:6;58229:2;58225:15;58218:38;57772:529;-1:-1:-1;;;;;;57935:64:0;-1:-1:-1;;;57935:64:0;;-1:-1:-1;57592:716:0;;;;;;:::o;79288:114::-;79348:13;79381;79374:20;;;;;:::i;71124:1581::-;71607:4;71601:11;;71614:4;71597:22;71693:17;;;;71597:22;72051:5;72033:428;72099:1;72094:3;72090:11;72083:18;;72270:2;72264:4;72260:13;72256:2;72252:22;72247:3;72239:36;72364:2;72354:13;;;72421:25;;72439:5;;72421:25;72033:428;;;-1:-1:-1;72491:13:0;;;-1:-1:-1;;72606:14:0;;;72668:19;;;72606:14;71124:1581;-1:-1:-1;71124:1581:0:o;14383:296::-;14466:7;14509:4;14466:7;14524:118;14548:5;:12;14544:1;:16;14524:118;;;14597:33;14607:12;14621:5;14627:1;14621:8;;;;;;;;:::i;:::-;;;;;;;14597:9;:33::i;:::-;14582:48;-1:-1:-1;14562:3:0;;;;:::i;:::-;;;;14524:118;;;-1:-1:-1;14659:12:0;14383:296;-1:-1:-1;;;14383:296:0:o;20590:149::-;20653:7;20684:1;20680;:5;:51;;20815:13;20909:15;;;20945:4;20938:15;;;20992:4;20976:21;;20680:51;;;-1:-1:-1;20815:13:0;20909:15;;;20945:4;20938:15;20992:4;20976:21;;;20590:149::o;-1:-1:-1:-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;14:173:1;82:20;;-1:-1:-1;;;;;131:31:1;;121:42;;111:70;;177:1;174;167:12;111:70;14:173;;;:::o;192:367::-;255:8;265:6;319:3;312:4;304:6;300:17;296:27;286:55;;337:1;334;327:12;286:55;-1:-1:-1;360:20:1;;403:18;392:30;;389:50;;;435:1;432;425:12;389:50;472:4;464:6;460:17;448:29;;532:3;525:4;515:6;512:1;508:14;500:6;496:27;492:38;489:47;486:67;;;549:1;546;539:12;486:67;192:367;;;;;:::o;564:186::-;623:6;676:2;664:9;655:7;651:23;647:32;644:52;;;692:1;689;682:12;644:52;715:29;734:9;715:29;:::i;755:260::-;823:6;831;884:2;872:9;863:7;859:23;855:32;852:52;;;900:1;897;890:12;852:52;923:29;942:9;923:29;:::i;:::-;913:39;;971:38;1005:2;994:9;990:18;971:38;:::i;:::-;961:48;;755:260;;;;;:::o;1020:328::-;1097:6;1105;1113;1166:2;1154:9;1145:7;1141:23;1137:32;1134:52;;;1182:1;1179;1172:12;1134:52;1205:29;1224:9;1205:29;:::i;:::-;1195:39;;1253:38;1287:2;1276:9;1272:18;1253:38;:::i;:::-;1243:48;;1338:2;1327:9;1323:18;1310:32;1300:42;;1020:328;;;;;:::o;1353:1138::-;1448:6;1456;1464;1472;1525:3;1513:9;1504:7;1500:23;1496:33;1493:53;;;1542:1;1539;1532:12;1493:53;1565:29;1584:9;1565:29;:::i;:::-;1555:39;;1613:38;1647:2;1636:9;1632:18;1613:38;:::i;:::-;1603:48;;1698:2;1687:9;1683:18;1670:32;1660:42;;1753:2;1742:9;1738:18;1725:32;1776:18;1817:2;1809:6;1806:14;1803:34;;;1833:1;1830;1823:12;1803:34;1871:6;1860:9;1856:22;1846:32;;1916:7;1909:4;1905:2;1901:13;1897:27;1887:55;;1938:1;1935;1928:12;1887:55;1974:2;1961:16;1996:2;1992;1989:10;1986:36;;;2002:18;;:::i;:::-;2077:2;2071:9;2045:2;2131:13;;-1:-1:-1;;2127:22:1;;;2151:2;2123:31;2119:40;2107:53;;;2175:18;;;2195:22;;;2172:46;2169:72;;;2221:18;;:::i;:::-;2261:10;2257:2;2250:22;2296:2;2288:6;2281:18;2336:7;2331:2;2326;2322;2318:11;2314:20;2311:33;2308:53;;;2357:1;2354;2347:12;2308:53;2413:2;2408;2404;2400:11;2395:2;2387:6;2383:15;2370:46;2458:1;2453:2;2448;2440:6;2436:15;2432:24;2425:35;2479:6;2469:16;;;;;;;1353:1138;;;;;;;:::o;2496:511::-;2591:6;2599;2607;2660:2;2648:9;2639:7;2635:23;2631:32;2628:52;;;2676:1;2673;2666:12;2628:52;2699:29;2718:9;2699:29;:::i;:::-;2689:39;;2779:2;2768:9;2764:18;2751:32;2806:18;2798:6;2795:30;2792:50;;;2838:1;2835;2828:12;2792:50;2877:70;2939:7;2930:6;2919:9;2915:22;2877:70;:::i;:::-;2496:511;;2966:8;;-1:-1:-1;2851:96:1;;-1:-1:-1;;;;2496:511:1:o;3012:347::-;3077:6;3085;3138:2;3126:9;3117:7;3113:23;3109:32;3106:52;;;3154:1;3151;3144:12;3106:52;3177:29;3196:9;3177:29;:::i;:::-;3167:39;;3256:2;3245:9;3241:18;3228:32;3303:5;3296:13;3289:21;3282:5;3279:32;3269:60;;3325:1;3322;3315:12;3269:60;3348:5;3338:15;;;3012:347;;;;;:::o;3364:254::-;3432:6;3440;3493:2;3481:9;3472:7;3468:23;3464:32;3461:52;;;3509:1;3506;3499:12;3461:52;3532:29;3551:9;3532:29;:::i;:::-;3522:39;3608:2;3593:18;;;;3580:32;;-1:-1:-1;;;3364:254:1:o;3623:437::-;3709:6;3717;3770:2;3758:9;3749:7;3745:23;3741:32;3738:52;;;3786:1;3783;3776:12;3738:52;3826:9;3813:23;3859:18;3851:6;3848:30;3845:50;;;3891:1;3888;3881:12;3845:50;3930:70;3992:7;3983:6;3972:9;3968:22;3930:70;:::i;:::-;4019:8;;3904:96;;-1:-1:-1;3623:437:1;-1:-1:-1;;;;3623:437:1:o;4065:180::-;4124:6;4177:2;4165:9;4156:7;4152:23;4148:32;4145:52;;;4193:1;4190;4183:12;4145:52;-1:-1:-1;4216:23:1;;4065:180;-1:-1:-1;4065:180:1:o;4250:245::-;4308:6;4361:2;4349:9;4340:7;4336:23;4332:32;4329:52;;;4377:1;4374;4367:12;4329:52;4416:9;4403:23;4435:30;4459:5;4435:30;:::i;4500:249::-;4569:6;4622:2;4610:9;4601:7;4597:23;4593:32;4590:52;;;4638:1;4635;4628:12;4590:52;4670:9;4664:16;4689:30;4713:5;4689:30;:::i;4754:592::-;4825:6;4833;4886:2;4874:9;4865:7;4861:23;4857:32;4854:52;;;4902:1;4899;4892:12;4854:52;4942:9;4929:23;4971:18;5012:2;5004:6;5001:14;4998:34;;;5028:1;5025;5018:12;4998:34;5066:6;5055:9;5051:22;5041:32;;5111:7;5104:4;5100:2;5096:13;5092:27;5082:55;;5133:1;5130;5123:12;5082:55;5173:2;5160:16;5199:2;5191:6;5188:14;5185:34;;;5215:1;5212;5205:12;5185:34;5260:7;5255:2;5246:6;5242:2;5238:15;5234:24;5231:37;5228:57;;;5281:1;5278;5271:12;5228:57;5312:2;5304:11;;;;;5334:6;;-1:-1:-1;4754:592:1;;-1:-1:-1;;;;4754:592:1:o;5351:272::-;5409:6;5462:2;5450:9;5441:7;5437:23;5433:32;5430:52;;;5478:1;5475;5468:12;5430:52;5517:9;5504:23;5567:6;5560:5;5556:18;5549:5;5546:29;5536:57;;5589:1;5586;5579:12;5813:269;5870:6;5923:2;5911:9;5902:7;5898:23;5894:32;5891:52;;;5939:1;5936;5929:12;5891:52;5978:9;5965:23;6028:4;6021:5;6017:16;6010:5;6007:27;5997:55;;6048:1;6045;6038:12;6087:257;6128:3;6166:5;6160:12;6193:6;6188:3;6181:19;6209:63;6265:6;6258:4;6253:3;6249:14;6242:4;6235:5;6231:16;6209:63;:::i;:::-;6326:2;6305:15;-1:-1:-1;;6301:29:1;6292:39;;;;6333:4;6288:50;;6087:257;-1:-1:-1;;6087:257:1:o;6583:637::-;6863:3;6901:6;6895:13;6917:53;6963:6;6958:3;6951:4;6943:6;6939:17;6917:53;:::i;:::-;7033:13;;6992:16;;;;7055:57;7033:13;6992:16;7089:4;7077:17;;7055:57;:::i;:::-;-1:-1:-1;;;7134:20:1;;7163:22;;;7212:1;7201:13;;6583:637;-1:-1:-1;;;;6583:637:1:o;7433:488::-;-1:-1:-1;;;;;7702:15:1;;;7684:34;;7754:15;;7749:2;7734:18;;7727:43;7801:2;7786:18;;7779:34;;;7849:3;7844:2;7829:18;;7822:31;;;7627:4;;7870:45;;7895:19;;7887:6;7870:45;:::i;:::-;7862:53;7433:488;-1:-1:-1;;;;;;7433:488:1:o;8118:219::-;8267:2;8256:9;8249:21;8230:4;8287:44;8327:2;8316:9;8312:18;8304:6;8287:44;:::i;13883:128::-;13923:3;13954:1;13950:6;13947:1;13944:13;13941:39;;;13960:18;;:::i;:::-;-1:-1:-1;13996:9:1;;13883:128::o;14016:204::-;14054:3;14090:4;14087:1;14083:12;14122:4;14119:1;14115:12;14157:3;14151:4;14147:14;14142:3;14139:23;14136:49;;;14165:18;;:::i;:::-;14201:13;;14016:204;-1:-1:-1;;;14016:204:1:o;14225:168::-;14265:7;14331:1;14327;14323:6;14319:14;14316:1;14313:21;14308:1;14301:9;14294:17;14290:45;14287:71;;;14338:18;;:::i;:::-;-1:-1:-1;14378:9:1;;14225:168::o;14398:125::-;14438:4;14466:1;14463;14460:8;14457:34;;;14471:18;;:::i;:::-;-1:-1:-1;14508:9:1;;14398:125::o;14528:258::-;14600:1;14610:113;14624:6;14621:1;14618:13;14610:113;;;14700:11;;;14694:18;14681:11;;;14674:39;14646:2;14639:10;14610:113;;;14741:6;14738:1;14735:13;14732:48;;;-1:-1:-1;;14776:1:1;14758:16;;14751:27;14528:258::o;14791:380::-;14870:1;14866:12;;;;14913;;;14934:61;;14988:4;14980:6;14976:17;14966:27;;14934:61;15041:2;15033:6;15030:14;15010:18;15007:38;15004:161;;;15087:10;15082:3;15078:20;15075:1;15068:31;15122:4;15119:1;15112:15;15150:4;15147:1;15140:15;15004:161;;14791:380;;;:::o;15176:135::-;15215:3;-1:-1:-1;;15236:17:1;;15233:43;;;15256:18;;:::i;:::-;-1:-1:-1;15303:1:1;15292:13;;15176:135::o;15316:127::-;15377:10;15372:3;15368:20;15365:1;15358:31;15408:4;15405:1;15398:15;15432:4;15429:1;15422:15;15448:127;15509:10;15504:3;15500:20;15497:1;15490:31;15540:4;15537:1;15530:15;15564:4;15561:1;15554:15;15580:127;15641:10;15636:3;15632:20;15629:1;15622:31;15672:4;15669:1;15662:15;15696:4;15693:1;15686:15;15712:131;-1:-1:-1;;;;;;15786:32:1;;15776:43;;15766:71;;15833:1;15830;15823:12
Swarm Source
ipfs://206feef2056da14612ed7f7856ba21127e2a7af090f19d9c68fbcde9d8cb08e1
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.