ERC-721
NFT
Overview
Max Total Supply
10,000 PUNK2023
Holders
2,284
Market
Volume (24H)
0.0034 ETH
Min Price (24H)
$5.66 @ 0.001700 ETH
Max Price (24H)
$5.66 @ 0.001700 ETH
Other Info
Token Contract
Balance
1 PUNK2023Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Punks2023
Compiler Version
v0.8.20+commit.a1b79de6
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-07-17 */ // OpenZeppelin Contracts (last updated v4.9.2) (utils/cryptography/MerkleProof.sol) /** * @dev These functions deal with verification of Merkle Tree proofs. * * The tree and the proofs can be generated using our * https://github.com/OpenZeppelin/merkle-tree[JavaScript library]. * You will find a quickstart guide in the readme. * * 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. * OpenZeppelin's JavaScript library generates merkle trees that are safe * against this attack out of the box. */ 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 simultaneously proven to be a part of a merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _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} * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _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 sibling nodes in `proof`. The reconstruction * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false * respectively. * * CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer). * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuilds 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 proofLen = proof.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proofLen - 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 from 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) { require(proofPos == proofLen, "MerkleProof: invalid multiproof"); unchecked { return hashes[totalHashes - 1]; } } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuilds 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 proofLen = proof.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proofLen - 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 from 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) { require(proofPos == proofLen, "MerkleProof: invalid multiproof"); unchecked { 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) } } } // OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol) // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) /** * @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; } } /** * @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. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling 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); } } // OpenZeppelin Contracts (last updated v4.9.0) (token/common/ERC2981.sol) // OpenZeppelin Contracts (last updated v4.9.0) (interfaces/IERC2981.sol) // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); } /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo( uint256 tokenId, uint256 salePrice ) external view returns (address receiver, uint256 royaltyAmount); } // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } } /** * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the * fee is specified in basis points by default. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC2981 is IERC2981, ERC165 { struct RoyaltyInfo { address receiver; uint96 royaltyFraction; } RoyaltyInfo private _defaultRoyaltyInfo; mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @inheritdoc IERC2981 */ function royaltyInfo(uint256 tokenId, uint256 salePrice) public view virtual override returns (address, uint256) { RoyaltyInfo memory royalty = _tokenRoyaltyInfo[tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } uint256 royaltyAmount = (salePrice * royalty.royaltyFraction) / _feeDenominator(); return (royalty.receiver, royaltyAmount); } /** * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an * override. */ function _feeDenominator() internal pure virtual returns (uint96) { return 10000; } /** * @dev Sets the royalty information that all ids in this contract will default to. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: invalid receiver"); _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Removes default royalty information. */ function _deleteDefaultRoyalty() internal virtual { delete _defaultRoyaltyInfo; } /** * @dev Sets the royalty information for a specific token id, overriding the global default. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setTokenRoyalty(uint256 tokenId, address receiver, uint96 feeNumerator) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: Invalid parameters"); _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Resets royalty information for the token id back to the global default. */ function _resetTokenRoyalty(uint256 tokenId) internal virtual { delete _tokenRoyaltyInfo[tokenId]; } } // ERC721A Contracts v4.2.3 // Creator: Chiru Labs // ERC721A Contracts v4.2.3 // Creator: Chiru Labs // ERC721A Contracts v4.2.3 // Creator: Chiru Labs /** * @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(); /** * 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 payable; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external payable; /** * @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 payable; /** * @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 payable; /** * @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); } /** * @dev Interface of ERC721AQueryable. */ interface IERC721AQueryable is IERC721A { /** * Invalid query range (`start` >= `stop`). */ error InvalidQueryRange(); /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * * - `addr = address(0)` * - `startTimestamp = 0` * - `burned = false` * - `extraData = 0` * * If the `tokenId` is burned: * * - `addr = <Address of owner before token was burned>` * - `startTimestamp = <Timestamp when token was burned>` * - `burned = true` * - `extraData = <Extra data when token was burned>` * * Otherwise: * * - `addr = <Address of owner>` * - `startTimestamp = <Timestamp of start of ownership>` * - `burned = false` * - `extraData = <Extra data at start of ownership>` */ function explicitOwnershipOf(uint256 tokenId) external view returns (TokenOwnership memory); /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] memory tokenIds) external view returns (TokenOwnership[] memory); /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start < stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view returns (uint256[] memory); /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(`totalSupply`) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K collections should be fine). */ function tokensOfOwner(address owner) external view returns (uint256[] memory); } // ERC721A Contracts v4.2.3 // Creator: Chiru Labs /** * @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 { // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364). 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 0; } /** * @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))) : ''; } /** * @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 payable 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 { _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].value`. 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 payable 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 payable 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 payable 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. // The duplicated `log4` removes an extra check and reduces stack juggling. // The assembly, together with the surrounding Solidity code, have been // delicately arranged to nudge the compiler into producing optimized opcodes. 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`. ) // The `iszero(eq(,))` check ensures that large values of `quantity` // that overflows uint256 will make the loop run out of gas. // The compiler will optimize the `iszero` away for performance. 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 0xa0 bytes to keep the free memory pointer 32-byte word aligned. // We will need 1 word for the trailing zeros padding, 1 word for the length, // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0. let m := add(mload(0x40), 0xa0) // Update the free memory pointer to allocate. mstore(0x40, m) // Assign the `str` to the end. str := sub(m, 0x20) // Zeroize the slot after the string. mstore(str, 0) // 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) } } } /** * @title ERC721AQueryable. * * @dev ERC721A subclass with convenience query functions. */ abstract contract ERC721AQueryable is ERC721A, IERC721AQueryable { /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * * - `addr = address(0)` * - `startTimestamp = 0` * - `burned = false` * - `extraData = 0` * * If the `tokenId` is burned: * * - `addr = <Address of owner before token was burned>` * - `startTimestamp = <Timestamp when token was burned>` * - `burned = true` * - `extraData = <Extra data when token was burned>` * * Otherwise: * * - `addr = <Address of owner>` * - `startTimestamp = <Timestamp of start of ownership>` * - `burned = false` * - `extraData = <Extra data at start of ownership>` */ function explicitOwnershipOf(uint256 tokenId) public view virtual override returns (TokenOwnership memory) { TokenOwnership memory ownership; if (tokenId < _startTokenId() || tokenId >= _nextTokenId()) { return ownership; } ownership = _ownershipAt(tokenId); if (ownership.burned) { return ownership; } return _ownershipOf(tokenId); } /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] calldata tokenIds) external view virtual override returns (TokenOwnership[] memory) { unchecked { uint256 tokenIdsLength = tokenIds.length; TokenOwnership[] memory ownerships = new TokenOwnership[](tokenIdsLength); for (uint256 i; i != tokenIdsLength; ++i) { ownerships[i] = explicitOwnershipOf(tokenIds[i]); } return ownerships; } } /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start < stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view virtual override returns (uint256[] memory) { unchecked { if (start >= stop) revert InvalidQueryRange(); uint256 tokenIdsIdx; uint256 stopLimit = _nextTokenId(); // Set `start = max(start, _startTokenId())`. if (start < _startTokenId()) { start = _startTokenId(); } // Set `stop = min(stop, stopLimit)`. if (stop > stopLimit) { stop = stopLimit; } uint256 tokenIdsMaxLength = balanceOf(owner); // Set `tokenIdsMaxLength = min(balanceOf(owner), stop - start)`, // to cater for cases where `balanceOf(owner)` is too big. if (start < stop) { uint256 rangeLength = stop - start; if (rangeLength < tokenIdsMaxLength) { tokenIdsMaxLength = rangeLength; } } else { tokenIdsMaxLength = 0; } uint256[] memory tokenIds = new uint256[](tokenIdsMaxLength); if (tokenIdsMaxLength == 0) { return tokenIds; } // We need to call `explicitOwnershipOf(start)`, // because the slot at `start` may not be initialized. TokenOwnership memory ownership = explicitOwnershipOf(start); address currOwnershipAddr; // If the starting slot exists (i.e. not burned), initialize `currOwnershipAddr`. // `ownership.address` will not be zero, as `start` is clamped to the valid token ID range. if (!ownership.burned) { currOwnershipAddr = ownership.addr; } for (uint256 i = start; i != stop && tokenIdsIdx != tokenIdsMaxLength; ++i) { ownership = _ownershipAt(i); if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } // Downsize the array to fit. assembly { mstore(tokenIds, tokenIdsIdx) } return tokenIds; } } /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(`totalSupply`) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K collections should be fine). */ function tokensOfOwner(address owner) external view virtual override returns (uint256[] memory) { unchecked { uint256 tokenIdsIdx; address currOwnershipAddr; uint256 tokenIdsLength = balanceOf(owner); uint256[] memory tokenIds = new uint256[](tokenIdsLength); TokenOwnership memory ownership; for (uint256 i = _startTokenId(); tokenIdsIdx != tokenIdsLength; ++i) { ownership = _ownershipAt(i); if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } return tokenIds; } } } interface IOperatorFilterRegistry { /** * @notice Returns true if operator is not filtered for a given token, either by address or codeHash. Also returns * true if supplied registrant address is not registered. */ function isOperatorAllowed(address registrant, address operator) external view returns (bool); /** * @notice Registers an address with the registry. May be called by address itself or by EIP-173 owner. */ function register(address registrant) external; /** * @notice Registers an address with the registry and "subscribes" to another address's filtered operators and codeHashes. */ function registerAndSubscribe(address registrant, address subscription) external; /** * @notice Registers an address with the registry and copies the filtered operators and codeHashes from another * address without subscribing. */ function registerAndCopyEntries(address registrant, address registrantToCopy) external; /** * @notice Unregisters an address with the registry and removes its subscription. May be called by address itself or by EIP-173 owner. * Note that this does not remove any filtered addresses or codeHashes. * Also note that any subscriptions to this registrant will still be active and follow the existing filtered addresses and codehashes. */ function unregister(address addr) external; /** * @notice Update an operator address for a registered address - when filtered is true, the operator is filtered. */ function updateOperator(address registrant, address operator, bool filtered) external; /** * @notice Update multiple operators for a registered address - when filtered is true, the operators will be filtered. Reverts on duplicates. */ function updateOperators(address registrant, address[] calldata operators, bool filtered) external; /** * @notice Update a codeHash for a registered address - when filtered is true, the codeHash is filtered. */ function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external; /** * @notice Update multiple codeHashes for a registered address - when filtered is true, the codeHashes will be filtered. Reverts on duplicates. */ function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external; /** * @notice Subscribe an address to another registrant's filtered operators and codeHashes. Will remove previous * subscription if present. * Note that accounts with subscriptions may go on to subscribe to other accounts - in this case, * subscriptions will not be forwarded. Instead the former subscription's existing entries will still be * used. */ function subscribe(address registrant, address registrantToSubscribe) external; /** * @notice Unsubscribe an address from its current subscribed registrant, and optionally copy its filtered operators and codeHashes. */ function unsubscribe(address registrant, bool copyExistingEntries) external; /** * @notice Get the subscription address of a given registrant, if any. */ function subscriptionOf(address addr) external returns (address registrant); /** * @notice Get the set of addresses subscribed to a given registrant. * Note that order is not guaranteed as updates are made. */ function subscribers(address registrant) external returns (address[] memory); /** * @notice Get the subscriber at a given index in the set of addresses subscribed to a given registrant. * Note that order is not guaranteed as updates are made. */ function subscriberAt(address registrant, uint256 index) external returns (address); /** * @notice Copy filtered operators and codeHashes from a different registrantToCopy to addr. */ function copyEntriesOf(address registrant, address registrantToCopy) external; /** * @notice Returns true if operator is filtered by a given address or its subscription. */ function isOperatorFiltered(address registrant, address operator) external returns (bool); /** * @notice Returns true if the hash of an address's code is filtered by a given address or its subscription. */ function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool); /** * @notice Returns true if a codeHash is filtered by a given address or its subscription. */ function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool); /** * @notice Returns a list of filtered operators for a given address or its subscription. */ function filteredOperators(address addr) external returns (address[] memory); /** * @notice Returns the set of filtered codeHashes for a given address or its subscription. * Note that order is not guaranteed as updates are made. */ function filteredCodeHashes(address addr) external returns (bytes32[] memory); /** * @notice Returns the filtered operator at the given index of the set of filtered operators for a given address or * its subscription. * Note that order is not guaranteed as updates are made. */ function filteredOperatorAt(address registrant, uint256 index) external returns (address); /** * @notice Returns the filtered codeHash at the given index of the list of filtered codeHashes for a given address or * its subscription. * Note that order is not guaranteed as updates are made. */ function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32); /** * @notice Returns true if an address has registered */ function isRegistered(address addr) external returns (bool); /** * @dev Convenience method to compute the code hash of an arbitrary contract */ function codeHashOf(address addr) external returns (bytes32); } address constant CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS = 0x000000000000AAeB6D7670E522A718067333cd4E; address constant CANONICAL_CORI_SUBSCRIPTION = 0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6; /** * @title OperatorFilterer * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another * registrant's entries in the OperatorFilterRegistry. * @dev This smart contract is meant to be inherited by token contracts so they can use the following: * - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods. * - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods. * Please note that if your token contract does not provide an owner with EIP-173, it must provide * administration methods on the contract itself to interact with the registry otherwise the subscription * will be locked to the options set during construction. */ abstract contract OperatorFilterer { /// @dev Emitted when an operator is not allowed. error OperatorNotAllowed(address operator); IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY = IOperatorFilterRegistry(CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS); /// @dev The constructor that is called when the contract is being deployed. constructor(address subscriptionOrRegistrantToCopy, bool subscribe) { // If an inheriting token contract is deployed to a network without the registry deployed, the modifier // will not revert, but the contract will need to be registered with the registry once it is deployed in // order for the modifier to filter addresses. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { if (subscribe) { OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy); } else { if (subscriptionOrRegistrantToCopy != address(0)) { OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy); } else { OPERATOR_FILTER_REGISTRY.register(address(this)); } } } } /** * @dev A helper function to check if an operator is allowed. */ modifier onlyAllowedOperator(address from) virtual { // Allow spending tokens from addresses with balance // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred // from an EOA. if (from != msg.sender) { _checkFilterOperator(msg.sender); } _; } /** * @dev A helper function to check if an operator approval is allowed. */ modifier onlyAllowedOperatorApproval(address operator) virtual { _checkFilterOperator(operator); _; } /** * @dev A helper function to check if an operator is allowed. */ function _checkFilterOperator(address operator) internal view virtual { // Check registry code length to facilitate testing in environments without a deployed registry. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { // under normal circumstances, this function will revert rather than return false, but inheriting contracts // may specify their own OperatorFilterRegistry implementations, which may behave differently if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) { revert OperatorNotAllowed(operator); } } } } /** * @title DefaultOperatorFilterer * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription. * @dev Please note that if your token contract does not provide an owner with EIP-173, it must provide * administration methods on the contract itself to interact with the registry otherwise the subscription * will be locked to the options set during construction. */ abstract contract DefaultOperatorFilterer is OperatorFilterer { /// @dev The constructor that is called when the contract is being deployed. constructor() OperatorFilterer(CANONICAL_CORI_SUBSCRIPTION, true) {} } pragma solidity ^0.8.19; error ZeroBalance(); error SaleNotActive(); error AddressNotWhitelisted(); error SoldOut(); error MaxPerTransactionExceeded(); error AlreadyMintedDuringPresale(); contract Punks2023 is DefaultOperatorFilterer, ERC2981, ERC721AQueryable, Ownable { using MerkleProof for bytes32[]; bytes32 public whitelistMerkleRoot; bool public presaleActive; bool public publicsaleActive; uint256 public punkPerTransaction = 1; uint256 public constant SUPPLY = 10000; string public baseURI; mapping (address => uint256) public presaleClaimAmount; constructor() ERC721A("Punks2023", "PUNK2023") { } /* ADMIN FUNCTIONS */ function togglePublicSale() external onlyOwner { publicsaleActive = !publicsaleActive; } function togglePresale() external onlyOwner { presaleActive = !presaleActive; } function setPunkPerTransaction(uint256 count) external onlyOwner { punkPerTransaction = count; } function withdraw() external onlyOwner { uint256 balance = address(this).balance; if (balance == 0) revert ZeroBalance(); address owner = payable(msg.sender); (bool ownerSuccess, ) = owner.call{value: address(this).balance}(""); require(ownerSuccess, "Failed to send to Owner."); } function setBaseUri(string memory _uri) external onlyOwner { baseURI = _uri; } function setMerkleRoot(bytes32 root) external onlyOwner { whitelistMerkleRoot = root; } function adminMint(address wallet, uint256 count) external onlyOwner { if (SUPPLY < (totalSupply() + count)) revert SoldOut(); _mint(wallet, count); } /* END ADMIN FUNCTIONS */ function presaleMint(uint256 count, bytes32[] memory proof) payable public { if (!presaleActive) revert SaleNotActive(); if (SUPPLY < (totalSupply() + count)) revert SoldOut(); if (count > punkPerTransaction) revert MaxPerTransactionExceeded(); if (!_verify(_leaf(msg.sender), whitelistMerkleRoot, proof)) revert AddressNotWhitelisted(); if (presaleClaimAmount[msg.sender] + count > punkPerTransaction) revert AlreadyMintedDuringPresale(); presaleClaimAmount[msg.sender] += count; _mint(msg.sender, count); } function mint(uint256 count) payable public { if (!publicsaleActive) revert SaleNotActive(); if (SUPPLY < (totalSupply() + count)) revert SoldOut(); if (count > punkPerTransaction) revert MaxPerTransactionExceeded(); _mint(msg.sender, count); } function _leaf(address account) internal pure returns (bytes32) { return keccak256(abi.encodePacked(account)); } function _verify(bytes32 leaf, bytes32 root, bytes32[] memory proof) internal pure returns (bool) { return MerkleProof.verify(proof, root, leaf); } function _baseURI() internal view virtual override returns (string memory) { return baseURI; } function setApprovalForAll(address operator, bool approved) public override(ERC721A, IERC721A) onlyAllowedOperatorApproval(operator) { super.setApprovalForAll(operator, approved); } function approve(address operator, uint256 tokenId) public override(ERC721A, IERC721A) payable onlyAllowedOperatorApproval(operator) { super.approve(operator, tokenId); } function transferFrom(address from, address to, uint256 tokenId) public override(ERC721A, IERC721A) payable onlyAllowedOperator(from) { super.transferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId) public override(ERC721A, IERC721A) payable onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public override(ERC721A, IERC721A) payable onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId, data); } function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721A, IERC721A, ERC2981) returns (bool) { return ERC721A.supportsInterface(interfaceId) || ERC2981.supportsInterface(interfaceId); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AddressNotWhitelisted","type":"error"},{"inputs":[],"name":"AlreadyMintedDuringPresale","type":"error"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"InvalidQueryRange","type":"error"},{"inputs":[],"name":"MaxPerTransactionExceeded","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"SaleNotActive","type":"error"},{"inputs":[],"name":"SoldOut","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"},{"inputs":[],"name":"ZeroBalance","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":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"wallet","type":"address"},{"internalType":"uint256","name":"count","type":"uint256"}],"name":"adminMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"explicitOwnershipOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"explicitOwnershipsOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership[]","name":"","type":"tuple[]"}],"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":[{"internalType":"uint256","name":"count","type":"uint256"}],"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":"presaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"presaleClaimAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"count","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"presaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"publicsaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"punkPerTransaction","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"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":"safeTransferFrom","outputs":[],"stateMutability":"payable","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":"payable","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":"_uri","type":"string"}],"name":"setBaseUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"root","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"count","type":"uint256"}],"name":"setPunkPerTransaction","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":[],"name":"togglePresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"togglePublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"stop","type":"uint256"}],"name":"tokensOfOwnerIn","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"whitelistMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526001600d5534801562000015575f80fd5b50604080518082018252600981526850756e6b733230323360b81b6020808301919091528251808401909352600883526750554e4b3230323360c01b9083015290733cc6cdda760b79bafa08df41ecfa224f810dceb660016daaeb6d7670e522a718067333cd4e3b15620001a8578015620000fb57604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b5f604051808303815f87803b158015620000de575f80fd5b505af1158015620000f1573d5f803e3d5ffd5b50505050620001a8565b6001600160a01b038216156200014c5760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af290390604401620000c6565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e486906024015f604051808303815f87803b15801562000190575f80fd5b505af1158015620001a3573d5f803e3d5ffd5b505050505b5060049050620001b98382620002d1565b506005620001c88282620002d1565b50505f60025550620001da33620001e0565b62000399565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b634e487b7160e01b5f52604160045260245ffd5b600181811c908216806200025a57607f821691505b6020821081036200027957634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115620002cc575f81815260208120601f850160051c81016020861015620002a75750805b601f850160051c820191505b81811015620002c857828155600101620002b3565b5050505b505050565b81516001600160401b03811115620002ed57620002ed62000231565b6200030581620002fe845462000245565b846200027f565b602080601f8311600181146200033b575f8415620003235750858301515b5f19600386901b1c1916600185901b178555620002c8565b5f85815260208120601f198616915b828110156200036b578886015182559484019460019091019084016200034a565b50858210156200038957878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b6122e280620003a75f395ff3fe608060405260043610610228575f3560e01c8063715018a611610129578063b88d4fde116100a8578063e222c7f91161006d578063e222c7f914610638578063e3e1e8ef1461064c578063e58306f91461065f578063e985e9c51461067e578063f2fde38b146106c5575f80fd5b8063b88d4fde146105b0578063c23dc68f146105c3578063c50497ae146105ef578063c87b56dd14610604578063d40f9fc514610623575f80fd5b806399a2557a116100ee57806399a2557a1461052b578063a0712d681461054a578063a0bcfc7f1461055d578063a22cb4651461057c578063aa98e0c61461059b575f80fd5b8063715018a61461049b5780637cb64759146104af5780638462151c146104ce5780638da5cb5b146104fa57806395d89b4114610517575f80fd5b80633c0e2612116101b557806357d67f061161017a57806357d67f06146103fe5780635bbb21771461041d5780636352211e146104495780636c0360eb1461046857806370a082311461047c575f80fd5b80633c0e2612146103725780633ccfd60b1461039d57806341f43434146103b157806342842e0e146103d257806353135ca0146103e5575f80fd5b806318160ddd116101fb57806318160ddd146102cd57806323b872dd146102ef5780632a55205a146103025780633432123d14610340578063343937431461035e575f80fd5b806301ffc9a71461022c57806306fdde0314610260578063081812fc14610281578063095ea7b3146102b8575b5f80fd5b348015610237575f80fd5b5061024b610246366004611b34565b6106e4565b60405190151581526020015b60405180910390f35b34801561026b575f80fd5b50610274610703565b6040516102579190611b9c565b34801561028c575f80fd5b506102a061029b366004611bae565b610793565b6040516001600160a01b039091168152602001610257565b6102cb6102c6366004611be0565b6107d5565b005b3480156102d8575f80fd5b50600354600254035b604051908152602001610257565b6102cb6102fd366004611c08565b6107ee565b34801561030d575f80fd5b5061032161031c366004611c41565b610819565b604080516001600160a01b039093168352602083019190915201610257565b34801561034b575f80fd5b50600c5461024b90610100900460ff1681565b348015610369575f80fd5b506102cb6108c2565b34801561037d575f80fd5b506102e161038c366004611c61565b600f6020525f908152604090205481565b3480156103a8575f80fd5b506102cb6108de565b3480156103bc575f80fd5b506102a06daaeb6d7670e522a718067333cd4e81565b6102cb6103e0366004611c08565b6109a4565b3480156103f0575f80fd5b50600c5461024b9060ff1681565b348015610409575f80fd5b506102cb610418366004611bae565b6109c9565b348015610428575f80fd5b5061043c610437366004611c7a565b6109d6565b6040516102579190611d24565b348015610454575f80fd5b506102a0610463366004611bae565b610a9d565b348015610473575f80fd5b50610274610aa7565b348015610487575f80fd5b506102e1610496366004611c61565b610b33565b3480156104a6575f80fd5b506102cb610b7f565b3480156104ba575f80fd5b506102cb6104c9366004611bae565b610b92565b3480156104d9575f80fd5b506104ed6104e8366004611c61565b610b9f565b6040516102579190611d65565b348015610505575f80fd5b50600a546001600160a01b03166102a0565b348015610522575f80fd5b50610274610ca2565b348015610536575f80fd5b506104ed610545366004611d9c565b610cb1565b6102cb610558366004611bae565b610e23565b348015610568575f80fd5b506102cb610577366004611e64565b610eb5565b348015610587575f80fd5b506102cb610596366004611eb5565b610ecd565b3480156105a6575f80fd5b506102e1600b5481565b6102cb6105be366004611eea565b610ee1565b3480156105ce575f80fd5b506105e26105dd366004611bae565b610f0e565b6040516102579190611f60565b3480156105fa575f80fd5b506102e161271081565b34801561060f575f80fd5b5061027461061e366004611bae565b610f85565b34801561062e575f80fd5b506102e1600d5481565b348015610643575f80fd5b506102cb611005565b6102cb61065a366004611f6e565b61102a565b34801561066a575f80fd5b506102cb610679366004611be0565b611175565b348015610689575f80fd5b5061024b61069836600461201a565b6001600160a01b039182165f90815260096020908152604080832093909416825291909152205460ff1690565b3480156106d0575f80fd5b506102cb6106df366004611c61565b6111c1565b5f6106ee82611237565b806106fd57506106fd82611284565b92915050565b6060600480546107129061204b565b80601f016020809104026020016040519081016040528092919081815260200182805461073e9061204b565b80156107895780601f1061076057610100808354040283529160200191610789565b820191905f5260205f20905b81548152906001019060200180831161076c57829003601f168201915b5050505050905090565b5f61079d826112b8565b6107ba576040516333d1c03960e21b815260040160405180910390fd5b505f908152600860205260409020546001600160a01b031690565b816107df816112de565b6107e98383611395565b505050565b826001600160a01b038116331461080857610808336112de565b610813848484611433565b50505050565b5f8281526001602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b031692820192909252829161088c5750604080518082019091525f546001600160a01b0381168252600160a01b90046001600160601b031660208201525b60208101515f90612710906108aa906001600160601b031687612097565b6108b491906120ae565b915196919550909350505050565b6108ca6115c4565b600c805460ff19811660ff90911615179055565b6108e66115c4565b475f8190036109085760405163334ab3f560e11b815260040160405180910390fd5b60405133905f90829047908381818185875af1925050503d805f8114610949576040519150601f19603f3d011682016040523d82523d5f602084013e61094e565b606091505b50509050806107e95760405162461bcd60e51b815260206004820152601860248201527f4661696c656420746f2073656e6420746f204f776e65722e000000000000000060448201526064015b60405180910390fd5b826001600160a01b03811633146109be576109be336112de565b61081384848461161e565b6109d16115c4565b600d55565b6060815f816001600160401b038111156109f2576109f2611dcc565b604051908082528060200260200182016040528015610a4257816020015b604080516080810182525f8082526020808301829052928201819052606082015282525f19909201910181610a105790505b5090505f5b828114610a9457610a6f868683818110610a6357610a636120cd565b90506020020135610f0e565b828281518110610a8157610a816120cd565b6020908102919091010152600101610a47565b50949350505050565b5f6106fd82611638565b600e8054610ab49061204b565b80601f0160208091040260200160405190810160405280929190818152602001828054610ae09061204b565b8015610b2b5780601f10610b0257610100808354040283529160200191610b2b565b820191905f5260205f20905b815481529060010190602001808311610b0e57829003601f168201915b505050505081565b5f6001600160a01b038216610b5b576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03165f908152600760205260409020546001600160401b031690565b610b876115c4565b610b905f61169a565b565b610b9a6115c4565b600b55565b60605f805f610bad85610b33565b90505f816001600160401b03811115610bc857610bc8611dcc565b604051908082528060200260200182016040528015610bf1578160200160208202803683370190505b509050610c1d604080516080810182525f80825260208201819052918101829052606081019190915290565b5f5b838614610c9657610c2f816116eb565b91508160400151610c8e5781516001600160a01b031615610c4f57815194505b876001600160a01b0316856001600160a01b031603610c8e5780838780600101985081518110610c8157610c816120cd565b6020026020010181815250505b600101610c1f565b50909695505050505050565b6060600580546107129061204b565b6060818310610cd357604051631960ccad60e11b815260040160405180910390fd5b5f80610cde60025490565b905080841115610cec578093505b5f610cf687610b33565b905084861015610d155785850381811015610d0f578091505b50610d18565b505f5b5f816001600160401b03811115610d3157610d31611dcc565b604051908082528060200260200182016040528015610d5a578160200160208202803683370190505b509050815f03610d6f579350610e1c92505050565b5f610d7988610f0e565b90505f8160400151610d89575080515b885b888114158015610d9b5750848714155b15610e1057610da9816116eb565b92508260400151610e085782516001600160a01b031615610dc957825191505b8a6001600160a01b0316826001600160a01b031603610e085780848880600101995081518110610dfb57610dfb6120cd565b6020026020010181815250505b600101610d8b565b50505092835250909150505b9392505050565b600c54610100900460ff16610e4b5760405163b7b2409760e01b815260040160405180910390fd5b80610e596003546002540390565b610e6391906120e1565b6127101015610e85576040516352df9fe560e01b815260040160405180910390fd5b600d54811115610ea857604051639782cdff60e01b815260040160405180910390fd5b610eb23382611725565b50565b610ebd6115c4565b600e610ec98282612139565b5050565b81610ed7816112de565b6107e9838361181e565b836001600160a01b0381163314610efb57610efb336112de565b610f0785858585611889565b5050505050565b60408051608080820183525f80835260208084018290528385018290526060808501839052855193840186528284529083018290529382018190529281018390529091506002548310610f615792915050565b610f6a836116eb565b9050806040015115610f7c5792915050565b610e1c836118cd565b6060610f90826112b8565b610fad57604051630a14c4b560e41b815260040160405180910390fd5b5f610fb6611901565b905080515f03610fd45760405180602001604052805f815250610e1c565b80610fde84611910565b604051602001610fef9291906121f4565b6040516020818303038152906040529392505050565b61100d6115c4565b600c805461ff001981166101009182900460ff1615909102179055565b600c5460ff1661104d5760405163b7b2409760e01b815260040160405180910390fd5b8161105b6003546002540390565b61106591906120e1565b6127101015611087576040516352df9fe560e01b815260040160405180910390fd5b600d548211156110aa57604051639782cdff60e01b815260040160405180910390fd5b604080513360601b6bffffffffffffffffffffffff191660208083019190915282516014818403018152603490920190925280519101206110ee90600b5483611953565b61110b5760405163ad7acb4760e01b815260040160405180910390fd5b600d54335f908152600f60205260409020546111289084906120e1565b1115611147576040516321f229f160e21b815260040160405180910390fd5b335f908152600f6020526040812080548492906111659084906120e1565b90915550610ec990503383611725565b61117d6115c4565b8061118b6003546002540390565b61119591906120e1565b61271010156111b7576040516352df9fe560e01b815260040160405180910390fd5b610ec98282611725565b6111c96115c4565b6001600160a01b03811661122e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161099b565b610eb28161169a565b5f6301ffc9a760e01b6001600160e01b03198316148061126757506380ac58cd60e01b6001600160e01b03198316145b806106fd5750506001600160e01b031916635b5e139f60e01b1490565b5f6001600160e01b0319821663152a902d60e11b14806106fd57506301ffc9a760e01b6001600160e01b03198316146106fd565b5f600254821080156106fd5750505f90815260066020526040902054600160e01b161590565b6daaeb6d7670e522a718067333cd4e3b15610eb257604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611349573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061136d9190612222565b610eb257604051633b79c77360e21b81526001600160a01b038216600482015260240161099b565b5f61139f82610a9d565b9050336001600160a01b038216146113d8576113bb8133610698565b6113d8576040516367d9dca160e11b815260040160405180910390fd5b5f8281526008602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b5f61143d82611638565b9050836001600160a01b0316816001600160a01b0316146114705760405162a1148160e81b815260040160405180910390fd5b5f8281526008602052604090208054338082146001600160a01b038816909114176114bc5761149f8633610698565b6114bc57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0385166114e357604051633a954ecd60e21b815260040160405180910390fd5b80156114ed575f82555b6001600160a01b038681165f9081526007602052604080822080545f19019055918716808252919020805460010190554260a01b17600160e11b175f85815260066020526040812091909155600160e11b8416900361157a57600184015f818152600660205260408120549003611578576002548114611578575f8181526006602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b600a546001600160a01b03163314610b905760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161099b565b6107e983838360405180602001604052805f815250610ee1565b5f81600254811015611681575f8181526006602052604081205490600160e01b8216900361167f575b805f03610e1c57505f19015f81815260066020526040902054611661565b505b604051636f96cda160e11b815260040160405180910390fd5b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b604080516080810182525f8082526020820181905291810182905260608101919091525f828152600660205260409020546106fd90611967565b6002545f8290036117495760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b0383165f8181526007602090815260408083208054680100000000000000018802019055848352600690915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b8181146117f55780835f7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a46001016117bf565b50815f0361181557604051622e076360e81b815260040160405180910390fd5b60025550505050565b335f8181526009602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6118948484846107ee565b6001600160a01b0383163b15610813576118b0848484846119ae565b610813576040516368d2bf6b60e11b815260040160405180910390fd5b604080516080810182525f8082526020820181905291810182905260608101919091526106fd6118fc83611638565b611967565b6060600e80546107129061204b565b606060a06040510180604052602081039150505f815280825b600183039250600a81066030018353600a9004806119295750819003601f19909101908152919050565b5f61195f828486611a95565b949350505050565b604080516080810182526001600160a01b038316815260a083901c6001600160401b03166020820152600160e01b831615159181019190915260e89190911c606082015290565b604051630a85bd0160e11b81525f906001600160a01b0385169063150b7a02906119e290339089908890889060040161223d565b6020604051808303815f875af1925050508015611a1c575060408051601f3d908101601f19168201909252611a1991810190612279565b60015b611a78573d808015611a49576040519150601f19603f3d011682016040523d82523d5f602084013e611a4e565b606091505b5080515f03611a70576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b5f82611aa18584611aaa565b14949350505050565b5f81815b8451811015611aee57611ada82868381518110611acd57611acd6120cd565b6020026020010151611af6565b915080611ae681612294565b915050611aae565b509392505050565b5f818310611b10575f828152602084905260409020610e1c565b505f9182526020526040902090565b6001600160e01b031981168114610eb2575f80fd5b5f60208284031215611b44575f80fd5b8135610e1c81611b1f565b5f5b83811015611b69578181015183820152602001611b51565b50505f910152565b5f8151808452611b88816020860160208601611b4f565b601f01601f19169290920160200192915050565b602081525f610e1c6020830184611b71565b5f60208284031215611bbe575f80fd5b5035919050565b80356001600160a01b0381168114611bdb575f80fd5b919050565b5f8060408385031215611bf1575f80fd5b611bfa83611bc5565b946020939093013593505050565b5f805f60608486031215611c1a575f80fd5b611c2384611bc5565b9250611c3160208501611bc5565b9150604084013590509250925092565b5f8060408385031215611c52575f80fd5b50508035926020909101359150565b5f60208284031215611c71575f80fd5b610e1c82611bc5565b5f8060208385031215611c8b575f80fd5b82356001600160401b0380821115611ca1575f80fd5b818501915085601f830112611cb4575f80fd5b813581811115611cc2575f80fd5b8660208260051b8501011115611cd6575f80fd5b60209290920196919550909350505050565b80516001600160a01b031682526020808201516001600160401b03169083015260408082015115159083015260609081015162ffffff16910152565b602080825282518282018190525f9190848201906040850190845b81811015610c9657611d52838551611ce8565b9284019260809290920191600101611d3f565b602080825282518282018190525f9190848201906040850190845b81811015610c9657835183529284019291840191600101611d80565b5f805f60608486031215611dae575f80fd5b611db784611bc5565b95602085013595506040909401359392505050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f191681016001600160401b0381118282101715611e0857611e08611dcc565b604052919050565b5f6001600160401b03831115611e2857611e28611dcc565b611e3b601f8401601f1916602001611de0565b9050828152838383011115611e4e575f80fd5b828260208301375f602084830101529392505050565b5f60208284031215611e74575f80fd5b81356001600160401b03811115611e89575f80fd5b8201601f81018413611e99575f80fd5b61195f84823560208401611e10565b8015158114610eb2575f80fd5b5f8060408385031215611ec6575f80fd5b611ecf83611bc5565b91506020830135611edf81611ea8565b809150509250929050565b5f805f8060808587031215611efd575f80fd5b611f0685611bc5565b9350611f1460208601611bc5565b92506040850135915060608501356001600160401b03811115611f35575f80fd5b8501601f81018713611f45575f80fd5b611f5487823560208401611e10565b91505092959194509250565b608081016106fd8284611ce8565b5f8060408385031215611f7f575f80fd5b823591506020808401356001600160401b0380821115611f9d575f80fd5b818601915086601f830112611fb0575f80fd5b813581811115611fc257611fc2611dcc565b8060051b9150611fd3848301611de0565b8181529183018401918481019089841115611fec575f80fd5b938501935b8385101561200a57843582529385019390850190611ff1565b8096505050505050509250929050565b5f806040838503121561202b575f80fd5b61203483611bc5565b915061204260208401611bc5565b90509250929050565b600181811c9082168061205f57607f821691505b60208210810361207d57634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b80820281158282048414176106fd576106fd612083565b5f826120c857634e487b7160e01b5f52601260045260245ffd5b500490565b634e487b7160e01b5f52603260045260245ffd5b808201808211156106fd576106fd612083565b601f8211156107e9575f81815260208120601f850160051c8101602086101561211a5750805b601f850160051c820191505b818110156115bc57828155600101612126565b81516001600160401b0381111561215257612152611dcc565b61216681612160845461204b565b846120f4565b602080601f831160018114612199575f84156121825750858301515b5f19600386901b1c1916600185901b1785556115bc565b5f85815260208120601f198616915b828110156121c7578886015182559484019460019091019084016121a8565b50858210156121e457878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b5f8351612205818460208801611b4f565b835190830190612219818360208801611b4f565b01949350505050565b5f60208284031215612232575f80fd5b8151610e1c81611ea8565b6001600160a01b03858116825284166020820152604081018390526080606082018190525f9061226f90830184611b71565b9695505050505050565b5f60208284031215612289575f80fd5b8151610e1c81611b1f565b5f600182016122a5576122a5612083565b506001019056fea2646970667358221220cc1d851936708e9da14992c4d3307d9eeea97bcae7e40ed16eea7692ab8ac2a664736f6c63430008140033
Deployed Bytecode
0x608060405260043610610228575f3560e01c8063715018a611610129578063b88d4fde116100a8578063e222c7f91161006d578063e222c7f914610638578063e3e1e8ef1461064c578063e58306f91461065f578063e985e9c51461067e578063f2fde38b146106c5575f80fd5b8063b88d4fde146105b0578063c23dc68f146105c3578063c50497ae146105ef578063c87b56dd14610604578063d40f9fc514610623575f80fd5b806399a2557a116100ee57806399a2557a1461052b578063a0712d681461054a578063a0bcfc7f1461055d578063a22cb4651461057c578063aa98e0c61461059b575f80fd5b8063715018a61461049b5780637cb64759146104af5780638462151c146104ce5780638da5cb5b146104fa57806395d89b4114610517575f80fd5b80633c0e2612116101b557806357d67f061161017a57806357d67f06146103fe5780635bbb21771461041d5780636352211e146104495780636c0360eb1461046857806370a082311461047c575f80fd5b80633c0e2612146103725780633ccfd60b1461039d57806341f43434146103b157806342842e0e146103d257806353135ca0146103e5575f80fd5b806318160ddd116101fb57806318160ddd146102cd57806323b872dd146102ef5780632a55205a146103025780633432123d14610340578063343937431461035e575f80fd5b806301ffc9a71461022c57806306fdde0314610260578063081812fc14610281578063095ea7b3146102b8575b5f80fd5b348015610237575f80fd5b5061024b610246366004611b34565b6106e4565b60405190151581526020015b60405180910390f35b34801561026b575f80fd5b50610274610703565b6040516102579190611b9c565b34801561028c575f80fd5b506102a061029b366004611bae565b610793565b6040516001600160a01b039091168152602001610257565b6102cb6102c6366004611be0565b6107d5565b005b3480156102d8575f80fd5b50600354600254035b604051908152602001610257565b6102cb6102fd366004611c08565b6107ee565b34801561030d575f80fd5b5061032161031c366004611c41565b610819565b604080516001600160a01b039093168352602083019190915201610257565b34801561034b575f80fd5b50600c5461024b90610100900460ff1681565b348015610369575f80fd5b506102cb6108c2565b34801561037d575f80fd5b506102e161038c366004611c61565b600f6020525f908152604090205481565b3480156103a8575f80fd5b506102cb6108de565b3480156103bc575f80fd5b506102a06daaeb6d7670e522a718067333cd4e81565b6102cb6103e0366004611c08565b6109a4565b3480156103f0575f80fd5b50600c5461024b9060ff1681565b348015610409575f80fd5b506102cb610418366004611bae565b6109c9565b348015610428575f80fd5b5061043c610437366004611c7a565b6109d6565b6040516102579190611d24565b348015610454575f80fd5b506102a0610463366004611bae565b610a9d565b348015610473575f80fd5b50610274610aa7565b348015610487575f80fd5b506102e1610496366004611c61565b610b33565b3480156104a6575f80fd5b506102cb610b7f565b3480156104ba575f80fd5b506102cb6104c9366004611bae565b610b92565b3480156104d9575f80fd5b506104ed6104e8366004611c61565b610b9f565b6040516102579190611d65565b348015610505575f80fd5b50600a546001600160a01b03166102a0565b348015610522575f80fd5b50610274610ca2565b348015610536575f80fd5b506104ed610545366004611d9c565b610cb1565b6102cb610558366004611bae565b610e23565b348015610568575f80fd5b506102cb610577366004611e64565b610eb5565b348015610587575f80fd5b506102cb610596366004611eb5565b610ecd565b3480156105a6575f80fd5b506102e1600b5481565b6102cb6105be366004611eea565b610ee1565b3480156105ce575f80fd5b506105e26105dd366004611bae565b610f0e565b6040516102579190611f60565b3480156105fa575f80fd5b506102e161271081565b34801561060f575f80fd5b5061027461061e366004611bae565b610f85565b34801561062e575f80fd5b506102e1600d5481565b348015610643575f80fd5b506102cb611005565b6102cb61065a366004611f6e565b61102a565b34801561066a575f80fd5b506102cb610679366004611be0565b611175565b348015610689575f80fd5b5061024b61069836600461201a565b6001600160a01b039182165f90815260096020908152604080832093909416825291909152205460ff1690565b3480156106d0575f80fd5b506102cb6106df366004611c61565b6111c1565b5f6106ee82611237565b806106fd57506106fd82611284565b92915050565b6060600480546107129061204b565b80601f016020809104026020016040519081016040528092919081815260200182805461073e9061204b565b80156107895780601f1061076057610100808354040283529160200191610789565b820191905f5260205f20905b81548152906001019060200180831161076c57829003601f168201915b5050505050905090565b5f61079d826112b8565b6107ba576040516333d1c03960e21b815260040160405180910390fd5b505f908152600860205260409020546001600160a01b031690565b816107df816112de565b6107e98383611395565b505050565b826001600160a01b038116331461080857610808336112de565b610813848484611433565b50505050565b5f8281526001602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b031692820192909252829161088c5750604080518082019091525f546001600160a01b0381168252600160a01b90046001600160601b031660208201525b60208101515f90612710906108aa906001600160601b031687612097565b6108b491906120ae565b915196919550909350505050565b6108ca6115c4565b600c805460ff19811660ff90911615179055565b6108e66115c4565b475f8190036109085760405163334ab3f560e11b815260040160405180910390fd5b60405133905f90829047908381818185875af1925050503d805f8114610949576040519150601f19603f3d011682016040523d82523d5f602084013e61094e565b606091505b50509050806107e95760405162461bcd60e51b815260206004820152601860248201527f4661696c656420746f2073656e6420746f204f776e65722e000000000000000060448201526064015b60405180910390fd5b826001600160a01b03811633146109be576109be336112de565b61081384848461161e565b6109d16115c4565b600d55565b6060815f816001600160401b038111156109f2576109f2611dcc565b604051908082528060200260200182016040528015610a4257816020015b604080516080810182525f8082526020808301829052928201819052606082015282525f19909201910181610a105790505b5090505f5b828114610a9457610a6f868683818110610a6357610a636120cd565b90506020020135610f0e565b828281518110610a8157610a816120cd565b6020908102919091010152600101610a47565b50949350505050565b5f6106fd82611638565b600e8054610ab49061204b565b80601f0160208091040260200160405190810160405280929190818152602001828054610ae09061204b565b8015610b2b5780601f10610b0257610100808354040283529160200191610b2b565b820191905f5260205f20905b815481529060010190602001808311610b0e57829003601f168201915b505050505081565b5f6001600160a01b038216610b5b576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03165f908152600760205260409020546001600160401b031690565b610b876115c4565b610b905f61169a565b565b610b9a6115c4565b600b55565b60605f805f610bad85610b33565b90505f816001600160401b03811115610bc857610bc8611dcc565b604051908082528060200260200182016040528015610bf1578160200160208202803683370190505b509050610c1d604080516080810182525f80825260208201819052918101829052606081019190915290565b5f5b838614610c9657610c2f816116eb565b91508160400151610c8e5781516001600160a01b031615610c4f57815194505b876001600160a01b0316856001600160a01b031603610c8e5780838780600101985081518110610c8157610c816120cd565b6020026020010181815250505b600101610c1f565b50909695505050505050565b6060600580546107129061204b565b6060818310610cd357604051631960ccad60e11b815260040160405180910390fd5b5f80610cde60025490565b905080841115610cec578093505b5f610cf687610b33565b905084861015610d155785850381811015610d0f578091505b50610d18565b505f5b5f816001600160401b03811115610d3157610d31611dcc565b604051908082528060200260200182016040528015610d5a578160200160208202803683370190505b509050815f03610d6f579350610e1c92505050565b5f610d7988610f0e565b90505f8160400151610d89575080515b885b888114158015610d9b5750848714155b15610e1057610da9816116eb565b92508260400151610e085782516001600160a01b031615610dc957825191505b8a6001600160a01b0316826001600160a01b031603610e085780848880600101995081518110610dfb57610dfb6120cd565b6020026020010181815250505b600101610d8b565b50505092835250909150505b9392505050565b600c54610100900460ff16610e4b5760405163b7b2409760e01b815260040160405180910390fd5b80610e596003546002540390565b610e6391906120e1565b6127101015610e85576040516352df9fe560e01b815260040160405180910390fd5b600d54811115610ea857604051639782cdff60e01b815260040160405180910390fd5b610eb23382611725565b50565b610ebd6115c4565b600e610ec98282612139565b5050565b81610ed7816112de565b6107e9838361181e565b836001600160a01b0381163314610efb57610efb336112de565b610f0785858585611889565b5050505050565b60408051608080820183525f80835260208084018290528385018290526060808501839052855193840186528284529083018290529382018190529281018390529091506002548310610f615792915050565b610f6a836116eb565b9050806040015115610f7c5792915050565b610e1c836118cd565b6060610f90826112b8565b610fad57604051630a14c4b560e41b815260040160405180910390fd5b5f610fb6611901565b905080515f03610fd45760405180602001604052805f815250610e1c565b80610fde84611910565b604051602001610fef9291906121f4565b6040516020818303038152906040529392505050565b61100d6115c4565b600c805461ff001981166101009182900460ff1615909102179055565b600c5460ff1661104d5760405163b7b2409760e01b815260040160405180910390fd5b8161105b6003546002540390565b61106591906120e1565b6127101015611087576040516352df9fe560e01b815260040160405180910390fd5b600d548211156110aa57604051639782cdff60e01b815260040160405180910390fd5b604080513360601b6bffffffffffffffffffffffff191660208083019190915282516014818403018152603490920190925280519101206110ee90600b5483611953565b61110b5760405163ad7acb4760e01b815260040160405180910390fd5b600d54335f908152600f60205260409020546111289084906120e1565b1115611147576040516321f229f160e21b815260040160405180910390fd5b335f908152600f6020526040812080548492906111659084906120e1565b90915550610ec990503383611725565b61117d6115c4565b8061118b6003546002540390565b61119591906120e1565b61271010156111b7576040516352df9fe560e01b815260040160405180910390fd5b610ec98282611725565b6111c96115c4565b6001600160a01b03811661122e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161099b565b610eb28161169a565b5f6301ffc9a760e01b6001600160e01b03198316148061126757506380ac58cd60e01b6001600160e01b03198316145b806106fd5750506001600160e01b031916635b5e139f60e01b1490565b5f6001600160e01b0319821663152a902d60e11b14806106fd57506301ffc9a760e01b6001600160e01b03198316146106fd565b5f600254821080156106fd5750505f90815260066020526040902054600160e01b161590565b6daaeb6d7670e522a718067333cd4e3b15610eb257604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611349573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061136d9190612222565b610eb257604051633b79c77360e21b81526001600160a01b038216600482015260240161099b565b5f61139f82610a9d565b9050336001600160a01b038216146113d8576113bb8133610698565b6113d8576040516367d9dca160e11b815260040160405180910390fd5b5f8281526008602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b5f61143d82611638565b9050836001600160a01b0316816001600160a01b0316146114705760405162a1148160e81b815260040160405180910390fd5b5f8281526008602052604090208054338082146001600160a01b038816909114176114bc5761149f8633610698565b6114bc57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0385166114e357604051633a954ecd60e21b815260040160405180910390fd5b80156114ed575f82555b6001600160a01b038681165f9081526007602052604080822080545f19019055918716808252919020805460010190554260a01b17600160e11b175f85815260066020526040812091909155600160e11b8416900361157a57600184015f818152600660205260408120549003611578576002548114611578575f8181526006602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b600a546001600160a01b03163314610b905760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161099b565b6107e983838360405180602001604052805f815250610ee1565b5f81600254811015611681575f8181526006602052604081205490600160e01b8216900361167f575b805f03610e1c57505f19015f81815260066020526040902054611661565b505b604051636f96cda160e11b815260040160405180910390fd5b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b604080516080810182525f8082526020820181905291810182905260608101919091525f828152600660205260409020546106fd90611967565b6002545f8290036117495760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b0383165f8181526007602090815260408083208054680100000000000000018802019055848352600690915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b8181146117f55780835f7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a46001016117bf565b50815f0361181557604051622e076360e81b815260040160405180910390fd5b60025550505050565b335f8181526009602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6118948484846107ee565b6001600160a01b0383163b15610813576118b0848484846119ae565b610813576040516368d2bf6b60e11b815260040160405180910390fd5b604080516080810182525f8082526020820181905291810182905260608101919091526106fd6118fc83611638565b611967565b6060600e80546107129061204b565b606060a06040510180604052602081039150505f815280825b600183039250600a81066030018353600a9004806119295750819003601f19909101908152919050565b5f61195f828486611a95565b949350505050565b604080516080810182526001600160a01b038316815260a083901c6001600160401b03166020820152600160e01b831615159181019190915260e89190911c606082015290565b604051630a85bd0160e11b81525f906001600160a01b0385169063150b7a02906119e290339089908890889060040161223d565b6020604051808303815f875af1925050508015611a1c575060408051601f3d908101601f19168201909252611a1991810190612279565b60015b611a78573d808015611a49576040519150601f19603f3d011682016040523d82523d5f602084013e611a4e565b606091505b5080515f03611a70576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b5f82611aa18584611aaa565b14949350505050565b5f81815b8451811015611aee57611ada82868381518110611acd57611acd6120cd565b6020026020010151611af6565b915080611ae681612294565b915050611aae565b509392505050565b5f818310611b10575f828152602084905260409020610e1c565b505f9182526020526040902090565b6001600160e01b031981168114610eb2575f80fd5b5f60208284031215611b44575f80fd5b8135610e1c81611b1f565b5f5b83811015611b69578181015183820152602001611b51565b50505f910152565b5f8151808452611b88816020860160208601611b4f565b601f01601f19169290920160200192915050565b602081525f610e1c6020830184611b71565b5f60208284031215611bbe575f80fd5b5035919050565b80356001600160a01b0381168114611bdb575f80fd5b919050565b5f8060408385031215611bf1575f80fd5b611bfa83611bc5565b946020939093013593505050565b5f805f60608486031215611c1a575f80fd5b611c2384611bc5565b9250611c3160208501611bc5565b9150604084013590509250925092565b5f8060408385031215611c52575f80fd5b50508035926020909101359150565b5f60208284031215611c71575f80fd5b610e1c82611bc5565b5f8060208385031215611c8b575f80fd5b82356001600160401b0380821115611ca1575f80fd5b818501915085601f830112611cb4575f80fd5b813581811115611cc2575f80fd5b8660208260051b8501011115611cd6575f80fd5b60209290920196919550909350505050565b80516001600160a01b031682526020808201516001600160401b03169083015260408082015115159083015260609081015162ffffff16910152565b602080825282518282018190525f9190848201906040850190845b81811015610c9657611d52838551611ce8565b9284019260809290920191600101611d3f565b602080825282518282018190525f9190848201906040850190845b81811015610c9657835183529284019291840191600101611d80565b5f805f60608486031215611dae575f80fd5b611db784611bc5565b95602085013595506040909401359392505050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f191681016001600160401b0381118282101715611e0857611e08611dcc565b604052919050565b5f6001600160401b03831115611e2857611e28611dcc565b611e3b601f8401601f1916602001611de0565b9050828152838383011115611e4e575f80fd5b828260208301375f602084830101529392505050565b5f60208284031215611e74575f80fd5b81356001600160401b03811115611e89575f80fd5b8201601f81018413611e99575f80fd5b61195f84823560208401611e10565b8015158114610eb2575f80fd5b5f8060408385031215611ec6575f80fd5b611ecf83611bc5565b91506020830135611edf81611ea8565b809150509250929050565b5f805f8060808587031215611efd575f80fd5b611f0685611bc5565b9350611f1460208601611bc5565b92506040850135915060608501356001600160401b03811115611f35575f80fd5b8501601f81018713611f45575f80fd5b611f5487823560208401611e10565b91505092959194509250565b608081016106fd8284611ce8565b5f8060408385031215611f7f575f80fd5b823591506020808401356001600160401b0380821115611f9d575f80fd5b818601915086601f830112611fb0575f80fd5b813581811115611fc257611fc2611dcc565b8060051b9150611fd3848301611de0565b8181529183018401918481019089841115611fec575f80fd5b938501935b8385101561200a57843582529385019390850190611ff1565b8096505050505050509250929050565b5f806040838503121561202b575f80fd5b61203483611bc5565b915061204260208401611bc5565b90509250929050565b600181811c9082168061205f57607f821691505b60208210810361207d57634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b80820281158282048414176106fd576106fd612083565b5f826120c857634e487b7160e01b5f52601260045260245ffd5b500490565b634e487b7160e01b5f52603260045260245ffd5b808201808211156106fd576106fd612083565b601f8211156107e9575f81815260208120601f850160051c8101602086101561211a5750805b601f850160051c820191505b818110156115bc57828155600101612126565b81516001600160401b0381111561215257612152611dcc565b61216681612160845461204b565b846120f4565b602080601f831160018114612199575f84156121825750858301515b5f19600386901b1c1916600185901b1785556115bc565b5f85815260208120601f198616915b828110156121c7578886015182559484019460019091019084016121a8565b50858210156121e457878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b5f8351612205818460208801611b4f565b835190830190612219818360208801611b4f565b01949350505050565b5f60208284031215612232575f80fd5b8151610e1c81611ea8565b6001600160a01b03858116825284166020820152604081018390526080606082018190525f9061226f90830184611b71565b9695505050505050565b5f60208284031215612289575f80fd5b8151610e1c81611b1f565b5f600182016122a5576122a5612083565b506001019056fea2646970667358221220cc1d851936708e9da14992c4d3307d9eeea97bcae7e40ed16eea7692ab8ac2a664736f6c63430008140033
Deployed Bytecode Sourcemap
90765:3970:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;94513:219;;;;;;;;;;-1:-1:-1;94513:219:0;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;94513:219:0;;;;;;;;41431:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;47922:218::-;;;;;;;;;;-1:-1:-1;47922:218:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1697:32:1;;;1679:51;;1667:2;1652:18;47922:218:0;1533:203:1;93695:178:0;;;;;;:::i;:::-;;:::i;:::-;;37182:323;;;;;;;;;;-1:-1:-1;37456:12:0;;37440:13;;:28;37182:323;;;2324:25:1;;;2312:2;2297:18;37182:323:0;2178:177:1;93879:184:0;;;;;;:::i;:::-;;:::i;17326:438::-;;;;;;;;;;-1:-1:-1;17326:438:0;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;3138:32:1;;;3120:51;;3202:2;3187:18;;3180:34;;;;3093:18;17326:438:0;2946:274:1;90957:28:0;;;;;;;;;;-1:-1:-1;90957:28:0;;;;;;;;;;;91345:87;;;;;;;;;;;;;:::i;91101:54::-;;;;;;;;;;-1:-1:-1;91101:54:0;;;;;:::i;:::-;;;;;;;;;;;;;;91548:311;;;;;;;;;;;;;:::i;87314:143::-;;;;;;;;;;;;86210:42;87314:143;;94069:192;;;;;;:::i;:::-;;:::i;90927:25::-;;;;;;;;;;-1:-1:-1;90927:25:0;;;;;;;;91438:104;;;;;;;;;;-1:-1:-1;91438:104:0;;;;;:::i;:::-;;:::i;75078:528::-;;;;;;;;;;-1:-1:-1;75078:528:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;42824:152::-;;;;;;;;;;-1:-1:-1;42824:152:0;;;;;:::i;:::-;;:::i;91075:21::-;;;;;;;;;;;;;:::i;38366:233::-;;;;;;;;;;-1:-1:-1;38366:233:0;;;;;:::i;:::-;;:::i;12391:103::-;;;;;;;;;;;;;:::i;91957:95::-;;;;;;;;;;-1:-1:-1;91957:95:0;;;;;:::i;:::-;;:::i;78954:900::-;;;;;;;;;;-1:-1:-1;78954:900:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;11750:87::-;;;;;;;;;;-1:-1:-1;11823:6:0;;-1:-1:-1;;;;;11823:6:0;11750:87;;41607:104;;;;;;;;;;;;;:::i;75994:2513::-;;;;;;;;;;-1:-1:-1;75994:2513:0;;;;;:::i;:::-;;:::i;92812:269::-;;;;;;:::i;:::-;;:::i;91865:86::-;;;;;;;;;;-1:-1:-1;91865:86:0;;;;;:::i;:::-;;:::i;93482:207::-;;;;;;;;;;-1:-1:-1;93482:207:0;;;;;:::i;:::-;;:::i;90888:34::-;;;;;;;;;;;;;;;;94267:240;;;;;;:::i;:::-;;:::i;74491:428::-;;;;;;;;;;-1:-1:-1;74491:428:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;91032:38::-;;;;;;;;;;;;91065:5;91032:38;;41817:318;;;;;;;;;;-1:-1:-1;41817:318:0;;;;;:::i;:::-;;:::i;90990:37::-;;;;;;;;;;;;;;;;91243:96;;;;;;;;;;;;;:::i;92258:548::-;;;;;;:::i;:::-;;:::i;92058:165::-;;;;;;;;;;-1:-1:-1;92058:165:0;;;;;:::i;:::-;;:::i;48871:164::-;;;;;;;;;;-1:-1:-1;48871:164:0;;;;;:::i;:::-;-1:-1:-1;;;;;48992:25:0;;;48968:4;48992:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;48871:164;12649:201;;;;;;;;;;-1:-1:-1;12649:201:0;;;;;:::i;:::-;;:::i;94513:219::-;94626:4;94646:38;94672:11;94646:25;:38::i;:::-;:80;;;;94688:38;94714:11;94688:25;:38::i;:::-;94639:87;94513:219;-1:-1:-1;;94513:219:0:o;41431:100::-;41485:13;41518:5;41511:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;41431:100;:::o;47922:218::-;47998:7;48023:16;48031:7;48023;:16::i;:::-;48018:64;;48048:34;;-1:-1:-1;;;48048:34:0;;;;;;;;;;;48018:64;-1:-1:-1;48102:24:0;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;48102:30:0;;47922:218::o;93695:178::-;93818:8;89096:30;89117:8;89096:20;:30::i;:::-;93835:32:::1;93849:8;93859:7;93835:13;:32::i;:::-;93695:178:::0;;;:::o;93879:184::-;94007:4;-1:-1:-1;;;;;88822:18:0;;88830:10;88822:18;88818:83;;88857:32;88878:10;88857:20;:32::i;:::-;94020:37:::1;94039:4;94045:2;94049:7;94020:18;:37::i;:::-;93879:184:::0;;;;:::o;17326:438::-;17421:7;17479:26;;;:17;:26;;;;;;;;17450:55;;;;;;;;;-1:-1:-1;;;;;17450:55:0;;;;;-1:-1:-1;;;17450:55:0;;;-1:-1:-1;;;;;17450:55:0;;;;;;;;17421:7;;17518:92;;-1:-1:-1;17569:29:0;;;;;;;;;-1:-1:-1;17569:29:0;-1:-1:-1;;;;;17569:29:0;;;;-1:-1:-1;;;17569:29:0;;-1:-1:-1;;;;;17569:29:0;;;;;17518:92;17659:23;;;;17622:21;;18130:5;;17647:35;;-1:-1:-1;;;;;17647:35:0;:9;:35;:::i;:::-;17646:57;;;;:::i;:::-;17724:16;;;;;-1:-1:-1;17326:438:0;;-1:-1:-1;;;;17326:438:0:o;91345:87::-;11636:13;:11;:13::i;:::-;91413::::1;::::0;;-1:-1:-1;;91396:30:0;::::1;91413:13;::::0;;::::1;91412:14;91396:30;::::0;;91345:87::o;91548:311::-;11636:13;:11;:13::i;:::-;91612:21:::1;91594:15;91644:12:::0;;;91640:38:::1;;91665:13;;-1:-1:-1::0;;;91665:13:0::1;;;;;;;;;;;91640:38;91753:44;::::0;91709:10:::1;::::0;91685:13:::1;::::0;91709:10;;91771:21:::1;::::0;91685:13;91753:44;91685:13;91753:44;91771:21;91709:10;91753:44:::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;91729:68;;;91812:12;91804:49;;;::::0;-1:-1:-1;;;91804:49:0;;11962:2:1;91804:49:0::1;::::0;::::1;11944:21:1::0;12001:2;11981:18;;;11974:30;12040:26;12020:18;;;12013:54;12084:18;;91804:49:0::1;;;;;;;;94069:192:::0;94201:4;-1:-1:-1;;;;;88822:18:0;;88830:10;88822:18;88818:83;;88857:32;88878:10;88857:20;:32::i;:::-;94214:41:::1;94237:4;94243:2;94247:7;94214:22;:41::i;91438:104::-:0;11636:13;:11;:13::i;:::-;91510:18:::1;:26:::0;91438:104::o;75078:528::-;75222:23;75313:8;75288:22;75313:8;-1:-1:-1;;;;;75380:36:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;75380:36:0;;-1:-1:-1;;75380:36:0;;;;;;;;;;;;75343:73;;75436:9;75431:125;75452:14;75447:1;:19;75431:125;;75508:32;75528:8;;75537:1;75528:11;;;;;;;:::i;:::-;;;;;;;75508:19;:32::i;:::-;75492:10;75503:1;75492:13;;;;;;;;:::i;:::-;;;;;;;;;;:48;75468:3;;75431:125;;;-1:-1:-1;75577:10:0;75078:528;-1:-1:-1;;;;75078:528:0:o;42824:152::-;42896:7;42939:27;42958:7;42939:18;:27::i;91075:21::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;38366:233::-;38438:7;-1:-1:-1;;;;;38462:19:0;;38458:60;;38490:28;;-1:-1:-1;;;38490:28:0;;;;;;;;;;;38458:60;-1:-1:-1;;;;;;38536:25:0;;;;;:18;:25;;;;;;-1:-1:-1;;;;;38536:55:0;;38366:233::o;12391:103::-;11636:13;:11;:13::i;:::-;12456:30:::1;12483:1;12456:18;:30::i;:::-;12391:103::o:0;91957:95::-;11636:13;:11;:13::i;:::-;92020:19:::1;:26:::0;91957:95::o;78954:900::-;79032:16;79086:19;79120:25;79160:22;79185:16;79195:5;79185:9;:16::i;:::-;79160:41;;79216:25;79258:14;-1:-1:-1;;;;;79244:29:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;79244:29:0;;79216:57;;79288:31;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;79288:31:0;79339:9;79334:472;79383:14;79368:11;:29;79334:472;;79435:15;79448:1;79435:12;:15::i;:::-;79423:27;;79473:9;:16;;;79514:8;79469:73;79564:14;;-1:-1:-1;;;;;79564:28:0;;79560:111;;79637:14;;;-1:-1:-1;79560:111:0;79714:5;-1:-1:-1;;;;;79693:26:0;:17;-1:-1:-1;;;;;79693:26:0;;79689:102;;79770:1;79744:8;79753:13;;;;;;79744:23;;;;;;;;:::i;:::-;;;;;;:27;;;;;79689:102;79399:3;;79334:472;;;-1:-1:-1;79827:8:0;;78954:900;-1:-1:-1;;;;;;78954:900:0:o;41607:104::-;41663:13;41696:7;41689:14;;;;;:::i;75994:2513::-;76137:16;76204:4;76195:5;:13;76191:45;;76217:19;;-1:-1:-1;;;76217:19:0;;;;;;;;;;;76191:45;76251:19;76285:17;76305:14;36951:13;;;36869:103;76305:14;76285:34;-1:-1:-1;76556:9:0;76549:4;:16;76545:73;;;76593:9;76586:16;;76545:73;76632:25;76660:16;76670:5;76660:9;:16::i;:::-;76632:44;;76854:4;76846:5;:12;76842:278;;;76901:12;;;76936:31;;;76932:111;;;77012:11;76992:31;;76932:111;76860:198;76842:278;;;-1:-1:-1;77103:1:0;76842:278;77134:25;77176:17;-1:-1:-1;;;;;77162:32:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;77162:32:0;;77134:60;;77213:17;77234:1;77213:22;77209:78;;77263:8;-1:-1:-1;77256:15:0;;-1:-1:-1;;;77256:15:0;77209:78;77431:31;77465:26;77485:5;77465:19;:26::i;:::-;77431:60;;77506:25;77751:9;:16;;;77746:92;;-1:-1:-1;77808:14:0;;77746:92;77869:5;77852:478;77881:4;77876:1;:9;;:45;;;;;77904:17;77889:11;:32;;77876:45;77852:478;;;77959:15;77972:1;77959:12;:15::i;:::-;77947:27;;77997:9;:16;;;78038:8;77993:73;78088:14;;-1:-1:-1;;;;;78088:28:0;;78084:111;;78161:14;;;-1:-1:-1;78084:111:0;78238:5;-1:-1:-1;;;;;78217:26:0;:17;-1:-1:-1;;;;;78217:26:0;;78213:102;;78294:1;78268:8;78277:13;;;;;;78268:23;;;;;;;;:::i;:::-;;;;;;:27;;;;;78213:102;77923:3;;77852:478;;;-1:-1:-1;;;78415:29:0;;;-1:-1:-1;78422:8:0;;-1:-1:-1;;75994:2513:0;;;;;;:::o;92812:269::-;92868:16;;;;;;;92863:45;;92893:15;;-1:-1:-1;;;92893:15:0;;;;;;;;;;;92863:45;92945:5;92929:13;37456:12;;37440:13;;:28;;37182:323;92929:13;:21;;;;:::i;:::-;91065:5;92919:32;92915:54;;;92960:9;;-1:-1:-1;;;92960:9:0;;;;;;;;;;;92915:54;92988:18;;92980:5;:26;92976:66;;;93015:27;;-1:-1:-1;;;93015:27:0;;;;;;;;;;;92976:66;93051:24;93057:10;93069:5;93051;:24::i;:::-;92812:269;:::o;91865:86::-;11636:13;:11;:13::i;:::-;91931:7:::1;:14;91941:4:::0;91931:7;:14:::1;:::i;:::-;;91865:86:::0;:::o;93482:207::-;93620:8;89096:30;89117:8;89096:20;:30::i;:::-;93640:43:::1;93664:8;93674;93640:23;:43::i;94267:240::-:0;94438:4;-1:-1:-1;;;;;88822:18:0;;88830:10;88822:18;88818:83;;88857:32;88878:10;88857:20;:32::i;:::-;94454:47:::1;94477:4;94483:2;94487:7;94496:4;94454:22;:47::i;:::-;94267:240:::0;;;;;:::o;74491:428::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36951:13:0;;74684:7;:25;74651:103;;74733:9;74491:428;-1:-1:-1;;74491:428:0:o;74651:103::-;74776:21;74789:7;74776:12;:21::i;:::-;74764:33;;74812:9;:16;;;74808:65;;;74852:9;74491:428;-1:-1:-1;;74491:428:0:o;74808:65::-;74890:21;74903:7;74890:12;:21::i;41817:318::-;41890:13;41921:16;41929:7;41921;:16::i;:::-;41916:59;;41946:29;;-1:-1:-1;;;41946:29:0;;;;;;;;;;;41916:59;41988:21;42012:10;:8;:10::i;:::-;41988:34;;42046:7;42040:21;42065:1;42040:26;:87;;;;;;;;;;;;;;;;;42093:7;42102:18;42112:7;42102:9;:18::i;:::-;42076:45;;;;;;;;;:::i;:::-;;;;;;;;;;;;;42033:94;41817:318;-1:-1:-1;;;41817:318:0:o;91243:96::-;11636:13;:11;:13::i;:::-;91317:16:::1;::::0;;-1:-1:-1;;91297:36:0;::::1;91317:16;::::0;;;::::1;;;91316:17;91297:36:::0;;::::1;;::::0;;91243:96::o;92258:548::-;92345:13;;;;92340:42;;92367:15;;-1:-1:-1;;;92367:15:0;;;;;;;;;;;92340:42;92419:5;92403:13;37456:12;;37440:13;;:28;;37182:323;92403:13;:21;;;;:::i;:::-;91065:5;92393:32;92389:54;;;92434:9;;-1:-1:-1;;;92434:9:0;;;;;;;;;;;92389:54;92462:18;;92454:5;:26;92450:66;;;92489:27;;-1:-1:-1;;;92489:27:0;;;;;;;;;;;92450:66;93175:25;;;92542:10;16556:2:1;16552:15;-1:-1:-1;;16548:53:1;93175:25:0;;;;16536:66:1;;;;93175:25:0;;;;;;;;;16618:12:1;;;;93175:25:0;;;93165:36;;;;;92528:54;;92555:19;;92576:5;92528:7;:54::i;:::-;92523:91;;92591:23;;-1:-1:-1;;;92591:23:0;;;;;;;;;;;92523:91;92666:18;;92644:10;92625:30;;;;:18;:30;;;;;;:38;;92658:5;;92625:38;:::i;:::-;:59;92621:100;;;92693:28;;-1:-1:-1;;;92693:28:0;;;;;;;;;;;92621:100;92749:10;92730:30;;;;:18;:30;;;;;:39;;92764:5;;92730:30;:39;;92764:5;;92730:39;:::i;:::-;;;;-1:-1:-1;92776:24:0;;-1:-1:-1;92782:10:0;92794:5;92776;:24::i;92058:165::-;11636:13;:11;:13::i;:::-;92164:5:::1;92148:13;37456:12:::0;;37440:13;;:28;;37182:323;92148:13:::1;:21;;;;:::i;:::-;91065:5;92138:32;92134:54;;;92179:9;;-1:-1:-1::0;;;92179:9:0::1;;;;;;;;;;;92134:54;92197:20;92203:6;92211:5;92197;:20::i;12649:201::-:0;11636:13;:11;:13::i;:::-;-1:-1:-1;;;;;12738:22:0;::::1;12730:73;;;::::0;-1:-1:-1;;;12730:73:0;;15282:2:1;12730:73:0::1;::::0;::::1;15264:21:1::0;15321:2;15301:18;;;15294:30;15360:34;15340:18;;;15333:62;-1:-1:-1;;;15411:18:1;;;15404:36;15457:19;;12730:73:0::1;15080:402:1::0;12730:73:0::1;12814:28;12833:8;12814:18;:28::i;40529:639::-:0;40614:4;-1:-1:-1;;;;;;;;;40938:25:0;;;;:102;;-1:-1:-1;;;;;;;;;;41015:25:0;;;40938:102;:179;;;-1:-1:-1;;;;;;;;41092:25:0;-1:-1:-1;;;41092:25:0;;40529:639::o;17056:215::-;17158:4;-1:-1:-1;;;;;;17182:41:0;;-1:-1:-1;;;17182:41:0;;:81;;-1:-1:-1;;;;;;;;;;15787:40:0;;;17227:36;15678:157;49293:282;49358:4;49448:13;;49438:7;:23;49395:153;;;;-1:-1:-1;;49499:26:0;;;;:17;:26;;;;;;-1:-1:-1;;;49499:44:0;:49;;49293:282::o;89239:647::-;86210:42;89430:45;:49;89426:453;;89729:67;;-1:-1:-1;;;89729:67:0;;89780:4;89729:67;;;15699:34:1;-1:-1:-1;;;;;15769:15:1;;15749:18;;;15742:43;86210:42:0;;89729;;15634:18:1;;89729:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;89724:144;;89824:28;;-1:-1:-1;;;89824:28:0;;-1:-1:-1;;;;;1697:32:1;;89824:28:0;;;1679:51:1;1652:18;;89824:28:0;1533:203:1;47355:408:0;47444:13;47460:16;47468:7;47460;:16::i;:::-;47444:32;-1:-1:-1;71688:10:0;-1:-1:-1;;;;;47493:28:0;;;47489:175;;47541:44;47558:5;71688:10;48871:164;:::i;47541:44::-;47536:128;;47613:35;;-1:-1:-1;;;47613:35:0;;;;;;;;;;;47536:128;47676:24;;;;:15;:24;;;;;;:35;;-1:-1:-1;;;;;;47676:35:0;-1:-1:-1;;;;;47676:35:0;;;;;;;;;47727:28;;47676:24;;47727:28;;;;;;;47433:330;47355:408;;:::o;51561:2825::-;51703:27;51733;51752:7;51733:18;:27::i;:::-;51703:57;;51818:4;-1:-1:-1;;;;;51777:45:0;51793:19;-1:-1:-1;;;;;51777:45:0;;51773:86;;51831:28;;-1:-1:-1;;;51831:28:0;;;;;;;;;;;51773:86;51873:27;50669:24;;;:15;:24;;;;;50897:26;;71688:10;50294:30;;;-1:-1:-1;;;;;49987:28:0;;50272:20;;;50269:56;52059:180;;52152:43;52169:4;71688:10;48871:164;:::i;52152:43::-;52147:92;;52204:35;;-1:-1:-1;;;52204:35:0;;;;;;;;;;;52147:92;-1:-1:-1;;;;;52256:16:0;;52252:52;;52281:23;;-1:-1:-1;;;52281:23:0;;;;;;;;;;;52252:52;52453:15;52450:160;;;52593:1;52572:19;52565:30;52450:160;-1:-1:-1;;;;;52990:24:0;;;;;;;:18;:24;;;;;;52988:26;;-1:-1:-1;;52988:26:0;;;53059:22;;;;;;;;;53057:24;;-1:-1:-1;53057:24:0;;;46213:11;46188:23;46184:41;46171:63;-1:-1:-1;;;46171:63:0;53352:26;;;;:17;:26;;;;;:175;;;;-1:-1:-1;;;53647:47:0;;:52;;53643:627;;53752:1;53742:11;;53720:19;53875:30;;;:17;:30;;;;;;:35;;53871:384;;54013:13;;53998:11;:28;53994:242;;54160:30;;;;:17;:30;;;;;:52;;;53994:242;53701:569;53643:627;54317:7;54313:2;-1:-1:-1;;;;;54298:27:0;54307:4;-1:-1:-1;;;;;54298:27:0;;;;;;;;;;;54336:42;51692:2694;;;51561:2825;;;:::o;11915:132::-;11823:6;;-1:-1:-1;;;;;11823:6:0;71688:10;11979:23;11971:68;;;;-1:-1:-1;;;11971:68:0;;16248:2:1;11971:68:0;;;16230:21:1;;;16267:18;;;16260:30;16326:34;16306:18;;;16299:62;16378:18;;11971:68:0;16046:356:1;54482:193:0;54628:39;54645:4;54651:2;54655:7;54628:39;;;;;;;;;;;;:16;:39::i;43979:1275::-;44046:7;44081;44183:13;;44176:4;:20;44172:1015;;;44221:14;44238:23;;;:17;:23;;;;;;;-1:-1:-1;;;44327:24:0;;:29;;44323:845;;44992:113;44999:6;45009:1;44999:11;44992:113;;-1:-1:-1;;;45070:6:0;45052:25;;;;:17;:25;;;;;;44992:113;;44323:845;44198:989;44172:1015;45215:31;;-1:-1:-1;;;45215:31:0;;;;;;;;;;;13010:191;13103:6;;;-1:-1:-1;;;;;13120:17:0;;;-1:-1:-1;;;;;;13120:17:0;;;;;;;13153:40;;13103:6;;;13120:17;13103:6;;13153:40;;13084:16;;13153:40;13073:128;13010:191;:::o;43427:161::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;43555:24:0;;;;:17;:24;;;;;;43536:44;;:18;:44::i;58942:2966::-;59038:13;;59015:20;59066:13;;;59062:44;;59088:18;;-1:-1:-1;;;59088:18:0;;;;;;;;;;;59062:44;-1:-1:-1;;;;;59594:22:0;;;;;;:18;:22;;;;32663:2;59594:22;;;:71;;59632:32;59620:45;;59594:71;;;59908:31;;;:17;:31;;;;;-1:-1:-1;46644:15:0;;46618:24;46614:46;46213:11;46188:23;46184:41;46181:52;46171:63;;59908:173;;60143:23;;;;59908:31;;59594:22;;60908:25;59594:22;;60761:335;61422:1;61408:12;61404:20;61362:346;61463:3;61454:7;61451:16;61362:346;;61681:7;61671:8;61668:1;61641:25;61638:1;61635;61630:59;61516:1;61503:15;61362:346;;;61366:77;61741:8;61753:1;61741:13;61737:45;;61763:19;;-1:-1:-1;;;61763:19:0;;;;;;;;;;;61737:45;61799:13;:19;-1:-1:-1;93695:178:0;;;:::o;48480:234::-;71688:10;48575:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;48575:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;48575:60:0;;;;;;;;;;48651:55;;540:41:1;;;48575:49:0;;71688:10;48651:55;;513:18:1;48651:55:0;;;;;;;48480:234;;:::o;55273:407::-;55448:31;55461:4;55467:2;55471:7;55448:12;:31::i;:::-;-1:-1:-1;;;;;55494:14:0;;;:19;55490:183;;55533:56;55564:4;55570:2;55574:7;55583:5;55533:30;:56::i;:::-;55528:145;;55617:40;;-1:-1:-1;;;55617:40:0;;;;;;;;;;;43165:166;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;43276:47:0;43295:27;43314:7;43295:18;:27::i;:::-;43276:18;:47::i;93374:102::-;93434:13;93463:7;93456:14;;;;;:::i;71808:1745::-;71873:17;72307:4;72300;72294:11;72290:22;72399:1;72393:4;72386:15;72474:4;72471:1;72467:12;72460:19;;;72556:1;72551:3;72544:14;72660:3;72899:5;72881:428;72947:1;72942:3;72938:11;72931:18;;73118:2;73112:4;73108:13;73104:2;73100:22;73095:3;73087:36;73212:2;73202:13;;73269:25;72881:428;73269:25;-1:-1:-1;73339:13:0;;;-1:-1:-1;;73454:14:0;;;73516:19;;;73454:14;71808:1745;-1:-1:-1;71808:1745:0:o;93213:155::-;93305:4;93325:37;93344:5;93351:4;93357;93325:18;:37::i;:::-;93318:44;93213:155;-1:-1:-1;;;;93213:155:0:o;45353:366::-;-1:-1:-1;;;;;;;;;;;;;45463:41:0;;;;33184:3;45549:33;;;-1:-1:-1;;;;;45515:68:0;-1:-1:-1;;;45515:68:0;-1:-1:-1;;;45613:24:0;;:29;;-1:-1:-1;;;45594:48:0;;;;33705:3;45682:28;;;;-1:-1:-1;;;45653:58:0;-1:-1:-1;45353:366:0:o;57764:716::-;57948:88;;-1:-1:-1;;;57948:88:0;;57927:4;;-1:-1:-1;;;;;57948:45:0;;;;;:88;;71688:10;;58015:4;;58021:7;;58030:5;;57948:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;57948:88:0;;;;;;;;-1:-1:-1;;57948:88:0;;;;;;;;;;;;:::i;:::-;;;57944:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;58231:6;:13;58248:1;58231:18;58227:235;;58277:40;;-1:-1:-1;;;58277:40:0;;;;;;;;;;;58227:235;58420:6;58414:13;58405:6;58401:2;58397:15;58390:38;57944:529;-1:-1:-1;;;;;;58107:64:0;-1:-1:-1;;;58107:64:0;;-1:-1:-1;57764:716:0;;;;;;:::o;1122:156::-;1213:4;1266;1237:25;1250:5;1257:4;1237:12;:25::i;:::-;:33;;1122:156;-1:-1:-1;;;;1122:156:0:o;1921:296::-;2004:7;2047:4;2004:7;2062:118;2086:5;:12;2082:1;:16;2062:118;;;2135:33;2145:12;2159:5;2165:1;2159:8;;;;;;;;:::i;:::-;;;;;;;2135:9;:33::i;:::-;2120:48;-1:-1:-1;2100:3:0;;;;:::i;:::-;;;;2062:118;;;-1:-1:-1;2197:12:0;1921:296;-1:-1:-1;;;1921:296:0:o;9359:149::-;9422:7;9453:1;9449;:5;:51;;9584:13;9678:15;;;9714:4;9707:15;;;9761:4;9745:21;;9449:51;;;-1:-1:-1;9584:13:0;9678:15;;;9714:4;9707:15;9761:4;9745:21;;;9359:149::o;14:131:1:-;-1:-1:-1;;;;;;88:32:1;;78:43;;68:71;;135:1;132;125:12;150:245;208:6;261:2;249:9;240:7;236:23;232:32;229:52;;;277:1;274;267:12;229:52;316:9;303:23;335:30;359:5;335:30;:::i;592:250::-;677:1;687:113;701:6;698:1;695:13;687:113;;;777:11;;;771:18;758:11;;;751:39;723:2;716:10;687:113;;;-1:-1:-1;;834:1:1;816:16;;809:27;592:250::o;847:271::-;889:3;927:5;921:12;954:6;949:3;942:19;970:76;1039:6;1032:4;1027:3;1023:14;1016:4;1009:5;1005:16;970:76;:::i;:::-;1100:2;1079:15;-1:-1:-1;;1075:29:1;1066:39;;;;1107:4;1062:50;;847:271;-1:-1:-1;;847:271:1:o;1123:220::-;1272:2;1261:9;1254:21;1235:4;1292:45;1333:2;1322:9;1318:18;1310:6;1292:45;:::i;1348:180::-;1407:6;1460:2;1448:9;1439:7;1435:23;1431:32;1428:52;;;1476:1;1473;1466:12;1428:52;-1:-1:-1;1499:23:1;;1348:180;-1:-1:-1;1348:180:1:o;1741:173::-;1809:20;;-1:-1:-1;;;;;1858:31:1;;1848:42;;1838:70;;1904:1;1901;1894:12;1838:70;1741:173;;;:::o;1919:254::-;1987:6;1995;2048:2;2036:9;2027:7;2023:23;2019:32;2016:52;;;2064:1;2061;2054:12;2016:52;2087:29;2106:9;2087:29;:::i;:::-;2077:39;2163:2;2148:18;;;;2135:32;;-1:-1:-1;;;1919:254:1:o;2360:328::-;2437:6;2445;2453;2506:2;2494:9;2485:7;2481:23;2477:32;2474:52;;;2522:1;2519;2512:12;2474:52;2545:29;2564:9;2545:29;:::i;:::-;2535:39;;2593:38;2627:2;2616:9;2612:18;2593:38;:::i;:::-;2583:48;;2678:2;2667:9;2663:18;2650:32;2640:42;;2360:328;;;;;:::o;2693:248::-;2761:6;2769;2822:2;2810:9;2801:7;2797:23;2793:32;2790:52;;;2838:1;2835;2828:12;2790:52;-1:-1:-1;;2861:23:1;;;2931:2;2916:18;;;2903:32;;-1:-1:-1;2693:248:1:o;3225:186::-;3284:6;3337:2;3325:9;3316:7;3312:23;3308:32;3305:52;;;3353:1;3350;3343:12;3305:52;3376:29;3395:9;3376:29;:::i;3656:615::-;3742:6;3750;3803:2;3791:9;3782:7;3778:23;3774:32;3771:52;;;3819:1;3816;3809:12;3771:52;3859:9;3846:23;-1:-1:-1;;;;;3929:2:1;3921:6;3918:14;3915:34;;;3945:1;3942;3935:12;3915:34;3983:6;3972:9;3968:22;3958:32;;4028:7;4021:4;4017:2;4013:13;4009:27;3999:55;;4050:1;4047;4040:12;3999:55;4090:2;4077:16;4116:2;4108:6;4105:14;4102:34;;;4132:1;4129;4122:12;4102:34;4185:7;4180:2;4170:6;4167:1;4163:14;4159:2;4155:23;4151:32;4148:45;4145:65;;;4206:1;4203;4196:12;4145:65;4237:2;4229:11;;;;;4259:6;;-1:-1:-1;3656:615:1;;-1:-1:-1;;;;3656:615:1:o;4276:349::-;4360:12;;-1:-1:-1;;;;;4356:38:1;4344:51;;4448:4;4437:16;;;4431:23;-1:-1:-1;;;;;4427:48:1;4411:14;;;4404:72;4539:4;4528:16;;;4522:23;4515:31;4508:39;4492:14;;;4485:63;4601:4;4590:16;;;4584:23;4609:8;4580:38;4564:14;;4557:62;4276:349::o;4630:722::-;4863:2;4915:21;;;4985:13;;4888:18;;;5007:22;;;4834:4;;4863:2;5086:15;;;;5060:2;5045:18;;;4834:4;5129:197;5143:6;5140:1;5137:13;5129:197;;;5192:52;5240:3;5231:6;5225:13;5192:52;:::i;:::-;5301:15;;;;5273:4;5264:14;;;;;5165:1;5158:9;5129:197;;5542:632;5713:2;5765:21;;;5835:13;;5738:18;;;5857:22;;;5684:4;;5713:2;5936:15;;;;5910:2;5895:18;;;5684:4;5979:169;5993:6;5990:1;5987:13;5979:169;;;6054:13;;6042:26;;6123:15;;;;6088:12;;;;6015:1;6008:9;5979:169;;6179:322;6256:6;6264;6272;6325:2;6313:9;6304:7;6300:23;6296:32;6293:52;;;6341:1;6338;6331:12;6293:52;6364:29;6383:9;6364:29;:::i;:::-;6354:39;6440:2;6425:18;;6412:32;;-1:-1:-1;6491:2:1;6476:18;;;6463:32;;6179:322;-1:-1:-1;;;6179:322:1:o;6506:127::-;6567:10;6562:3;6558:20;6555:1;6548:31;6598:4;6595:1;6588:15;6622:4;6619:1;6612:15;6638:275;6709:2;6703:9;6774:2;6755:13;;-1:-1:-1;;6751:27:1;6739:40;;-1:-1:-1;;;;;6794:34:1;;6830:22;;;6791:62;6788:88;;;6856:18;;:::i;:::-;6892:2;6885:22;6638:275;;-1:-1:-1;6638:275:1:o;6918:407::-;6983:5;-1:-1:-1;;;;;7009:6:1;7006:30;7003:56;;;7039:18;;:::i;:::-;7077:57;7122:2;7101:15;;-1:-1:-1;;7097:29:1;7128:4;7093:40;7077:57;:::i;:::-;7068:66;;7157:6;7150:5;7143:21;7197:3;7188:6;7183:3;7179:16;7176:25;7173:45;;;7214:1;7211;7204:12;7173:45;7263:6;7258:3;7251:4;7244:5;7240:16;7227:43;7317:1;7310:4;7301:6;7294:5;7290:18;7286:29;7279:40;6918:407;;;;;:::o;7330:451::-;7399:6;7452:2;7440:9;7431:7;7427:23;7423:32;7420:52;;;7468:1;7465;7458:12;7420:52;7508:9;7495:23;-1:-1:-1;;;;;7533:6:1;7530:30;7527:50;;;7573:1;7570;7563:12;7527:50;7596:22;;7649:4;7641:13;;7637:27;-1:-1:-1;7627:55:1;;7678:1;7675;7668:12;7627:55;7701:74;7767:7;7762:2;7749:16;7744:2;7740;7736:11;7701:74;:::i;7786:118::-;7872:5;7865:13;7858:21;7851:5;7848:32;7838:60;;7894:1;7891;7884:12;7909:315;7974:6;7982;8035:2;8023:9;8014:7;8010:23;8006:32;8003:52;;;8051:1;8048;8041:12;8003:52;8074:29;8093:9;8074:29;:::i;:::-;8064:39;;8153:2;8142:9;8138:18;8125:32;8166:28;8188:5;8166:28;:::i;:::-;8213:5;8203:15;;;7909:315;;;;;:::o;8411:667::-;8506:6;8514;8522;8530;8583:3;8571:9;8562:7;8558:23;8554:33;8551:53;;;8600:1;8597;8590:12;8551:53;8623:29;8642:9;8623:29;:::i;:::-;8613:39;;8671:38;8705:2;8694:9;8690:18;8671:38;:::i;:::-;8661:48;;8756:2;8745:9;8741:18;8728:32;8718:42;;8811:2;8800:9;8796:18;8783:32;-1:-1:-1;;;;;8830:6:1;8827:30;8824:50;;;8870:1;8867;8860:12;8824:50;8893:22;;8946:4;8938:13;;8934:27;-1:-1:-1;8924:55:1;;8975:1;8972;8965:12;8924:55;8998:74;9064:7;9059:2;9046:16;9041:2;9037;9033:11;8998:74;:::i;:::-;8988:84;;;8411:667;;;;;;;:::o;9083:266::-;9279:3;9264:19;;9292:51;9268:9;9325:6;9292:51;:::i;9354:1014::-;9447:6;9455;9508:2;9496:9;9487:7;9483:23;9479:32;9476:52;;;9524:1;9521;9514:12;9476:52;9560:9;9547:23;9537:33;;9589:2;9642;9631:9;9627:18;9614:32;-1:-1:-1;;;;;9706:2:1;9698:6;9695:14;9692:34;;;9722:1;9719;9712:12;9692:34;9760:6;9749:9;9745:22;9735:32;;9805:7;9798:4;9794:2;9790:13;9786:27;9776:55;;9827:1;9824;9817:12;9776:55;9863:2;9850:16;9885:2;9881;9878:10;9875:36;;;9891:18;;:::i;:::-;9937:2;9934:1;9930:10;9920:20;;9960:28;9984:2;9980;9976:11;9960:28;:::i;:::-;10022:15;;;10092:11;;;10088:20;;;10053:12;;;;10120:19;;;10117:39;;;10152:1;10149;10142:12;10117:39;10176:11;;;;10196:142;10212:6;10207:3;10204:15;10196:142;;;10278:17;;10266:30;;10229:12;;;;10316;;;;10196:142;;;10357:5;10347:15;;;;;;;;9354:1014;;;;;:::o;10373:260::-;10441:6;10449;10502:2;10490:9;10481:7;10477:23;10473:32;10470:52;;;10518:1;10515;10508:12;10470:52;10541:29;10560:9;10541:29;:::i;:::-;10531:39;;10589:38;10623:2;10612:9;10608:18;10589:38;:::i;:::-;10579:48;;10373:260;;;;;:::o;10638:380::-;10717:1;10713:12;;;;10760;;;10781:61;;10835:4;10827:6;10823:17;10813:27;;10781:61;10888:2;10880:6;10877:14;10857:18;10854:38;10851:161;;10934:10;10929:3;10925:20;10922:1;10915:31;10969:4;10966:1;10959:15;10997:4;10994:1;10987:15;10851:161;;10638:380;;;:::o;11023:127::-;11084:10;11079:3;11075:20;11072:1;11065:31;11115:4;11112:1;11105:15;11139:4;11136:1;11129:15;11155:168;11228:9;;;11259;;11276:15;;;11270:22;;11256:37;11246:71;;11297:18;;:::i;11328:217::-;11368:1;11394;11384:132;;11438:10;11433:3;11429:20;11426:1;11419:31;11473:4;11470:1;11463:15;11501:4;11498:1;11491:15;11384:132;-1:-1:-1;11530:9:1;;11328:217::o;12113:127::-;12174:10;12169:3;12165:20;12162:1;12155:31;12205:4;12202:1;12195:15;12229:4;12226:1;12219:15;12245:125;12310:9;;;12331:10;;;12328:36;;;12344:18;;:::i;12501:545::-;12603:2;12598:3;12595:11;12592:448;;;12639:1;12664:5;12660:2;12653:17;12709:4;12705:2;12695:19;12779:2;12767:10;12763:19;12760:1;12756:27;12750:4;12746:38;12815:4;12803:10;12800:20;12797:47;;;-1:-1:-1;12838:4:1;12797:47;12893:2;12888:3;12884:12;12881:1;12877:20;12871:4;12867:31;12857:41;;12948:82;12966:2;12959:5;12956:13;12948:82;;;13011:17;;;12992:1;12981:13;12948:82;;13222:1352;13348:3;13342:10;-1:-1:-1;;;;;13367:6:1;13364:30;13361:56;;;13397:18;;:::i;:::-;13426:97;13516:6;13476:38;13508:4;13502:11;13476:38;:::i;:::-;13470:4;13426:97;:::i;:::-;13578:4;;13642:2;13631:14;;13659:1;13654:663;;;;14361:1;14378:6;14375:89;;;-1:-1:-1;14430:19:1;;;14424:26;14375:89;-1:-1:-1;;13179:1:1;13175:11;;;13171:24;13167:29;13157:40;13203:1;13199:11;;;13154:57;14477:81;;13624:944;;13654:663;12448:1;12441:14;;;12485:4;12472:18;;-1:-1:-1;;13690:20:1;;;13808:236;13822:7;13819:1;13816:14;13808:236;;;13911:19;;;13905:26;13890:42;;14003:27;;;;13971:1;13959:14;;;;13838:19;;13808:236;;;13812:3;14072:6;14063:7;14060:19;14057:201;;;14133:19;;;14127:26;-1:-1:-1;;14216:1:1;14212:14;;;14228:3;14208:24;14204:37;14200:42;14185:58;14170:74;;14057:201;-1:-1:-1;;;;;14304:1:1;14288:14;;;14284:22;14271:36;;-1:-1:-1;13222:1352:1:o;14579:496::-;14758:3;14796:6;14790:13;14812:66;14871:6;14866:3;14859:4;14851:6;14847:17;14812:66;:::i;:::-;14941:13;;14900:16;;;;14963:70;14941:13;14900:16;15010:4;14998:17;;14963:70;:::i;:::-;15049:20;;14579:496;-1:-1:-1;;;;14579:496:1:o;15796:245::-;15863:6;15916:2;15904:9;15895:7;15891:23;15887:32;15884:52;;;15932:1;15929;15922:12;15884:52;15964:9;15958:16;15983:28;16005:5;15983:28;:::i;16641:489::-;-1:-1:-1;;;;;16910:15:1;;;16892:34;;16962:15;;16957:2;16942:18;;16935:43;17009:2;16994:18;;16987:34;;;17057:3;17052:2;17037:18;;17030:31;;;16835:4;;17078:46;;17104:19;;17096:6;17078:46;:::i;:::-;17070:54;16641:489;-1:-1:-1;;;;;;16641:489:1:o;17135:249::-;17204:6;17257:2;17245:9;17236:7;17232:23;17228:32;17225:52;;;17273:1;17270;17263:12;17225:52;17305:9;17299:16;17324:30;17348:5;17324:30;:::i;17389:135::-;17428:3;17449:17;;;17446:43;;17469:18;;:::i;:::-;-1:-1:-1;17516:1:1;17505:13;;17389:135::o
Swarm Source
ipfs://cc1d851936708e9da14992c4d3307d9eeea97bcae7e40ed16eea7692ab8ac2a6
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.