Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
2,609 ICNZ
Holders
479
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
6 ICNZLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
IconZ
Compiler Version
v0.8.13+commit.abaa5c0e
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2022-12-16 */ // File: https://github.com/ProjectOpenSea/operator-filter-registry/blob/main/src/IOperatorFilterRegistry.sol pragma solidity ^0.8.13; interface IOperatorFilterRegistry { function isOperatorAllowed(address registrant, address operator) external view returns (bool); function register(address registrant) external; function registerAndSubscribe(address registrant, address subscription) external; function registerAndCopyEntries(address registrant, address registrantToCopy) external; function unregister(address addr) external; function updateOperator(address registrant, address operator, bool filtered) external; function updateOperators(address registrant, address[] calldata operators, bool filtered) external; function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external; function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external; function subscribe(address registrant, address registrantToSubscribe) external; function unsubscribe(address registrant, bool copyExistingEntries) external; function subscriptionOf(address addr) external returns (address registrant); function subscribers(address registrant) external returns (address[] memory); function subscriberAt(address registrant, uint256 index) external returns (address); function copyEntriesOf(address registrant, address registrantToCopy) external; function isOperatorFiltered(address registrant, address operator) external returns (bool); function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool); function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool); function filteredOperators(address addr) external returns (address[] memory); function filteredCodeHashes(address addr) external returns (bytes32[] memory); function filteredOperatorAt(address registrant, uint256 index) external returns (address); function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32); function isRegistered(address addr) external returns (bool); function codeHashOf(address addr) external returns (bytes32); } // File: https://github.com/ProjectOpenSea/operator-filter-registry/blob/main/src/OperatorFilterer.sol pragma solidity ^0.8.13; /** * @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. */ abstract contract OperatorFilterer { error OperatorNotAllowed(address operator); IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY = IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E); 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)); } } } } 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); } _; } modifier onlyAllowedOperatorApproval(address operator) virtual { _checkFilterOperator(operator); _; } 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) { if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) { revert OperatorNotAllowed(operator); } } } } // File: https://github.com/ProjectOpenSea/operator-filter-registry/blob/main/src/DefaultOperatorFilterer.sol pragma solidity ^0.8.13; /** * @title DefaultOperatorFilterer * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription. */ abstract contract DefaultOperatorFilterer is OperatorFilterer { address constant DEFAULT_SUBSCRIPTION = address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6); constructor() OperatorFilterer(DEFAULT_SUBSCRIPTION, true) {} } // File: @openzeppelin/contracts/utils/cryptography/MerkleProof.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @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 rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof}. * * 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 rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } } // File: erc721a/contracts/IERC721A.sol // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * 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); } // File: erc721a/contracts/ERC721A.sol // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721 token receiver. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @title ERC721A * * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) * Non-Fungible Token Standard, including the Metadata extension. * Optimized for lower gas during batch mints. * * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) * starting from `_startTokenId()`. * * Assumptions: * * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // 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) } } } // File: @openzeppelin/contracts/utils/Context.sol // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } // File: @openzeppelin/contracts/access/Ownable.sol // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } // File: @openzeppelin/contracts/utils/math/Math.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } } // File: @openzeppelin/contracts/utils/Strings.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } } // File: IconZ.sol /* MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM0cdNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMWx::c0Wk:::::::::::::::oXXo::::::::::::::::kWk..;xNMMMMMMNd::lKWx:::::::::::::::::dNMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMNc .xWl '00' cWk. .,dNMMMMK, .kN: 'd0WMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMNc .xWl ,xxxxxxxxxxxON0' .ckkkkkkx; lWk. .;dXMMK, .kW0xxxxxxx; 'o0WMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMNc .xWl lWMMMMMMMMMMMM0' .kMMMMMMWo lWk. .,dXK, .kMMMMMMMOc' 'd0WMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMNc .xWl lWMMMMMMMMMMMM0' .kMMMMMMWo lWk. .ol. .;;. .kMMMMMOc. ,d0WMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMNc .xWl lWMMMMMMMMMMMM0' .OMMMMMMWo lWk. ;XNkl. .kMMWOc. ,d0WMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMNc .xWl .cccccccccccdX0' ;ccccccc' lWk. ;XMMNkc. .kWkc. 'cccccccxNMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMNc .xWl '00' cWk. ;XMMMMNkc. ,c. ;XMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMW0ddxKM0dddddddddddddddkNNkddddddddddddddod0WXxddOWMMMMMMNOl. :dddddddddddddddddOWMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWOdXMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWKOOOOOOOOOOOO0NMMMMMN0OOOOOOOOOOOOKWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMK; .OMMMMMk. ;KMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMK, .kMMMMMk. ,KMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMK, .OMMMMMk. ,KMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMK, .,OMMMMMk. ..cXMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMK, lKXWMMMMMk. .xKXWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMK, .xMMMMMMMMk. 'OMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM0, cOKNMMMMMk. .oOKWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMK, .,OMMMMMk. .:XMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMW0kkkkkkkkkkkk0NMMMMMNOkkkkkkkkkkkkKWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMbcBread */ pragma solidity ^0.8.0; contract IconZ is ERC721A, Ownable, DefaultOperatorFilterer{ using Strings for uint; //Standard Variables string public NR = "ipfs://HIDDEN_URI/1.json"; uint public publicCost = 55000000000000000;//0.055amount in wei uint public presaleCost = 55000000000000000;//0.055amount in wei uint public constant maxSupply = 7997; uint public constant maxPerPublicMint = 20; uint public constant maxPerPresaleMint = 2; bool public presaleOnly = true; bool paused = true; bool revealed = false; bytes32 public merkleRoot; mapping(address => uint) public addressMintedBalance; constructor( ) ERC721A("Iconz", "ICNZ")payable{ _mint(msg.sender, 100); } function _startTokenId() internal view virtual override returns (uint256) { return 1; } //Public Functions function publicMint(uint qty) external payable { uint tm = totalSupply(); uint _cost = publicCost; require(paused==false); require(presaleOnly==false,"Presale Only"); require(msg.sender == tx.origin, "no bots Icon"); require(tm + qty < 7998, "SOLD OUT!"); require(msg.value + 1 > qty * _cost, "Not Enough ETH sent"); _mint(msg.sender, qty); } //@dev presale only mint function presaleMint(uint qty, bytes32[] memory proof) external payable { uint tm = totalSupply(); uint _cost = publicCost; require(paused==false); require(presaleOnly==true); require(addressMintedBalance[msg.sender] + qty < 3, "Only 2 per Presale"); require(qty < 3, "Max amount for presale"); require(tm + qty < 7998, "SOLD OUT!"); require(msg.value + 1 > qty * _cost, "Not Enough ETH sent"); bytes32 leaf = keccak256(abi.encodePacked(msg.sender)); require(MerkleProof.verify(proof, merkleRoot, leaf), "Invalid Merkle Tree proof supplied"); _mint(msg.sender, qty); addressMintedBalance[msg.sender] += qty; } //***********Public Data Calls********** function isPaused() public view returns (bool) { return paused; } function isValid(bytes32[] memory proof, bytes32 leaf) public view returns (bool) { return MerkleProof.verify(proof, merkleRoot, leaf); } //***********Metadata Functions********** string private _baseTokenURI; function _baseURI() internal view virtual override returns (string memory) { return _baseTokenURI; } function exists(uint256 tokenId) public view returns (bool) { return _exists(tokenId); } function tokenURI(uint tokenId) public view virtual override returns (string memory) { if(revealed == false) { return NR; } string memory currentBaseURI = _baseURI(); return bytes(currentBaseURI).length > 0 ? string(abi.encodePacked(currentBaseURI, tokenId.toString(), ".json")) : ""; } //******OnlyOwner Functions********** function setPresaleMerkleRoot(bytes32 _root) external onlyOwner { merkleRoot = _root; } //@dev used for changing bool state of presale period //@param tf function setPresaleOnly(bool _state) external onlyOwner { presaleOnly = _state;//set to false for main mint } //@dev used for changing the base pointer to pinata CID //@param CID function setBaseURI(string memory baseURI) external onlyOwner { _baseTokenURI = baseURI; } //@dev single airdrop for gas efficiency //@param wallet address and number to drop to address function giftMint(address recipient, uint qty) external onlyOwner { require(_totalMinted() + qty < 7998, "SOLD OUT!"); _mint(recipient, qty); } //@dev optimized for bulk airdrop to array of addr utilizing loop //@param CSV bracket per addr function airDrop(address[] memory users, uint qty) external onlyOwner { for (uint256 i; i < users.length; i++) { _mint(users[i], qty); } } //@dev bool val for returning NR or not //@param bool function reveal(bool _state) external onlyOwner { revealed = _state;//reveal } //@dev duh //@param bool function pause(bool _state) public onlyOwner() { paused = _state; } //@dev used for setting the cost of each individual mint after deployment based on ETH price //@param uint val function setCost(uint256 _newCost) public onlyOwner() { publicCost = _newCost; } //@dev used for setting the cost of each individual mint after deployment based on ETH price //@param uint val function setNR(string memory _nr) public onlyOwner() { NR = _nr; } //@dev withdraws all remaining funds from the smart contract //@param send ZERO value to when calling function withdraw() public payable onlyOwner { (bool success, ) = payable(msg.sender).call{value: address(this).balance}(""); require(success); } //OS ROyalties function transferFrom(address from, address to, uint256 tokenId) public payable override onlyAllowedOperator(from) { super.transferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId) public payable override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public payable override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId, data); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"payable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","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":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"NR","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"addressMintedBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"users","type":"address[]"},{"internalType":"uint256","name":"qty","type":"uint256"}],"name":"airDrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","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":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"recipient","type":"address"},{"internalType":"uint256","name":"qty","type":"uint256"}],"name":"giftMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"},{"internalType":"bytes32","name":"leaf","type":"bytes32"}],"name":"isValid","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerPresaleMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerPublicMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","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":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"presaleCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"qty","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"presaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"presaleOnly","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"qty","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"reveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"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":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newCost","type":"uint256"}],"name":"setCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_nr","type":"string"}],"name":"setNR","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_root","type":"bytes32"}],"name":"setPresaleMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setPresaleOnly","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"}]
Contract Creation Code
60c0604052601860808190527f697066733a2f2f48494444454e5f5552492f312e6a736f6e000000000000000060a090815262000040916009919062000379565b5066c3663566a58000600a819055600b55600c805462ffffff1916610101179055604080518082018252600581526424b1b7b73d60d91b60208083019182528351808501909452600484526324a1a72d60e11b908401528151733cc6cdda760b79bafa08df41ecfa224f810dceb693600193929091620000c39160029162000379565b508051620000d990600390602084019062000379565b5050600160005550620000ec3362000247565b6daaeb6d7670e522a718067333cd4e3b15620002315780156200017f57604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b1580156200016057600080fd5b505af115801562000175573d6000803e3d6000fd5b5050505062000231565b6001600160a01b03821615620001d05760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af29039060440162000145565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b1580156200021757600080fd5b505af11580156200022c573d6000803e3d6000fd5b505050505b5062000241905033606462000299565b6200045b565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000805490829003620002bf5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b17831790558284019083908390600080516020620028578339815191528180a4600183015b8181146200034e578083600060008051602062002857833981519152600080a460010162000325565b50816000036200037057604051622e076360e81b815260040160405180910390fd5b60005550505050565b82805462000387906200041f565b90600052602060002090601f016020900481019282620003ab5760008555620003f6565b82601f10620003c657805160ff1916838001178555620003f6565b82800160010185558215620003f6579182015b82811115620003f6578251825591602001919060010190620003d9565b506200040492915062000408565b5090565b5b8082111562000404576000815560010162000409565b600181811c908216806200043457607f821691505b6020821081036200045557634e487b7160e01b600052602260045260246000fd5b50919050565b6123ec806200046b6000396000f3fe6080604052600436106102d15760003560e01c806355f804b311610179578063a22cb465116100d6578063c87b56dd1161008a578063e985e9c511610064578063e985e9c51461072d578063f2fde38b14610776578063fd1fc4a01461079657600080fd5b8063c87b56dd146106e4578063d5abeb0114610704578063e3e1e8ef1461071a57600080fd5b8063b88d4fde116100bb578063b88d4fde1461069c578063b8a20ed0146106af578063c73d4795146106cf57600080fd5b8063a22cb4651461065f578063b187bd261461067f57600080fd5b8063715018a61161012d5780638da5cb5b116101125780638da5cb5b1461060c578063940cd05b1461062a57806395d89b411461064a57600080fd5b8063715018a6146105e15780638693da20146105f657600080fd5b80636352211e1161015e5780636352211e14610587578063672a7fe0146105a757806370a08231146105c157600080fd5b806355f804b3146105525780635f45d1071461057257600080fd5b80632a23d07d1161023257806341f43434116101e6578063458b221a116101c0578063458b221a146104fd57806345bf9b15146105125780634f558e791461053257600080fd5b806341f43434146104a857806342842e0e146104ca57806344a0d68a146104dd57600080fd5b80632eb4a7ab116102175780632eb4a7ab1461046a57806330a464f5146104805780633ccfd60b146104a057600080fd5b80632a23d07d146104415780632db115441461045757600080fd5b80630d960de31161028957806318cae2691161026e57806318cae269146103e157806323b872dd1461040e57806328d7b2761461042157600080fd5b80630d960de31461039a57806318160ddd146103ba57600080fd5b806306fdde03116102ba57806306fdde031461032d578063081812fc1461034f578063095ea7b31461038757600080fd5b806301ffc9a7146102d657806302329a291461030b575b600080fd5b3480156102e257600080fd5b506102f66102f1366004611d43565b6107b6565b60405190151581526020015b60405180910390f35b34801561031757600080fd5b5061032b610326366004611d6e565b610853565b005b34801561033957600080fd5b50610342610875565b6040516103029190611de3565b34801561035b57600080fd5b5061036f61036a366004611df6565b610907565b6040516001600160a01b039091168152602001610302565b61032b610395366004611e2b565b610964565b3480156103a657600080fd5b5061032b6103b5366004611ef4565b610a2a565b3480156103c657600080fd5b5060015460005403600019015b604051908152602001610302565b3480156103ed57600080fd5b506103d36103fc366004611f3d565b600e6020526000908152604090205481565b61032b61041c366004611f58565b610a49565b34801561042d57600080fd5b5061032b61043c366004611df6565b610a74565b34801561044d57600080fd5b506103d3600b5481565b61032b610465366004611df6565b610a81565b34801561047657600080fd5b506103d3600d5481565b34801561048c57600080fd5b5061032b61049b366004611d6e565b610c10565b61032b610c2b565b3480156104b457600080fd5b5061036f6daaeb6d7670e522a718067333cd4e81565b61032b6104d8366004611f58565b610c8b565b3480156104e957600080fd5b5061032b6104f8366004611df6565b610cb0565b34801561050957600080fd5b50610342610cbd565b34801561051e57600080fd5b5061032b61052d366004611e2b565b610d4b565b34801561053e57600080fd5b506102f661054d366004611df6565b610db1565b34801561055e57600080fd5b5061032b61056d366004611ef4565b610dbc565b34801561057e57600080fd5b506103d3601481565b34801561059357600080fd5b5061036f6105a2366004611df6565b610dd7565b3480156105b357600080fd5b50600c546102f69060ff1681565b3480156105cd57600080fd5b506103d36105dc366004611f3d565b610de2565b3480156105ed57600080fd5b5061032b610e4a565b34801561060257600080fd5b506103d3600a5481565b34801561061857600080fd5b506008546001600160a01b031661036f565b34801561063657600080fd5b5061032b610645366004611d6e565b610e5e565b34801561065657600080fd5b50610342610e82565b34801561066b57600080fd5b5061032b61067a366004611f94565b610e91565b34801561068b57600080fd5b50600c54610100900460ff166102f6565b61032b6106aa366004611fcb565b610efd565b3480156106bb57600080fd5b506102f66106ca3660046120d6565b610f2a565b3480156106db57600080fd5b506103d3600281565b3480156106f057600080fd5b506103426106ff366004611df6565b610f40565b34801561071057600080fd5b506103d3611f3d81565b61032b61072836600461211b565b611045565b34801561073957600080fd5b506102f6610748366004612162565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561078257600080fd5b5061032b610791366004611f3d565b6112da565b3480156107a257600080fd5b5061032b6107b1366004612195565b611367565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316148061081957507f80ac58cd000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b8061084d57507f5b5e139f000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b61085b6113b0565b600c80549115156101000261ff0019909216919091179055565b60606002805461088490612233565b80601f01602080910402602001604051908101604052809291908181526020018280546108b090612233565b80156108fd5780601f106108d2576101008083540402835291602001916108fd565b820191906000526020600020905b8154815290600101906020018083116108e057829003601f168201915b5050505050905090565b60006109128261140a565b610948576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061096f82610dd7565b9050336001600160a01b038216146109c15761098b8133610748565b6109c1576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600082815260066020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b610a326113b0565b8051610a45906009906020840190611c94565b5050565b826001600160a01b0381163314610a6357610a633361143f565b610a6e84848461152a565b50505050565b610a7c6113b0565b600d55565b6000610a966001546000546000199190030190565b600a54600c5491925090610100900460ff1615610ab257600080fd5b600c5460ff1615610b0a5760405162461bcd60e51b815260206004820152600c60248201527f50726573616c65204f6e6c79000000000000000000000000000000000000000060448201526064015b60405180910390fd5b333214610b595760405162461bcd60e51b815260206004820152600c60248201527f6e6f20626f74732049636f6e00000000000000000000000000000000000000006044820152606401610b01565b611f3e610b668484612283565b10610b9f5760405162461bcd60e51b8152602060048201526009602482015268534f4c44204f55542160b81b6044820152606401610b01565b610ba9818461229b565b610bb4346001612283565b11610c015760405162461bcd60e51b815260206004820152601360248201527f4e6f7420456e6f756768204554482073656e74000000000000000000000000006044820152606401610b01565b610c0b338461170e565b505050565b610c186113b0565b600c805460ff1916911515919091179055565b610c336113b0565b604051600090339047908381818185875af1925050503d8060008114610c75576040519150601f19603f3d011682016040523d82523d6000602084013e610c7a565b606091505b5050905080610c8857600080fd5b50565b826001600160a01b0381163314610ca557610ca53361143f565b610a6e84848461183f565b610cb86113b0565b600a55565b60098054610cca90612233565b80601f0160208091040260200160405190810160405280929190818152602001828054610cf690612233565b8015610d435780601f10610d1857610100808354040283529160200191610d43565b820191906000526020600020905b815481529060010190602001808311610d2657829003601f168201915b505050505081565b610d536113b0565b611f3e81610d646000546000190190565b610d6e9190612283565b10610da75760405162461bcd60e51b8152602060048201526009602482015268534f4c44204f55542160b81b6044820152606401610b01565b610a45828261170e565b600061084d8261140a565b610dc46113b0565b8051610a4590600f906020840190611c94565b600061084d8261185a565b60006001600160a01b038216610e24576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b610e526113b0565b610e5c60006118e2565b565b610e666113b0565b600c8054911515620100000262ff000019909216919091179055565b60606003805461088490612233565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b836001600160a01b0381163314610f1757610f173361143f565b610f2385858585611941565b5050505050565b6000610f3983600d5484611985565b9392505050565b600c5460609062010000900460ff161515600003610fea5760098054610f6590612233565b80601f0160208091040260200160405190810160405280929190818152602001828054610f9190612233565b8015610fde5780601f10610fb357610100808354040283529160200191610fde565b820191906000526020600020905b815481529060010190602001808311610fc157829003601f168201915b50505050509050919050565b6000610ff461199b565b905060008151116110145760405180602001604052806000815250610f39565b8061101e846119aa565b60405160200161102f9291906122ba565b6040516020818303038152906040529392505050565b600061105a6001546000546000199190030190565b600a54600c5491925090610100900460ff161561107657600080fd5b600c5460ff16151560011461108a57600080fd5b336000908152600e60205260409020546003906110a8908690612283565b106110f55760405162461bcd60e51b815260206004820152601260248201527f4f6e6c792032207065722050726573616c6500000000000000000000000000006044820152606401610b01565b600384106111455760405162461bcd60e51b815260206004820152601660248201527f4d617820616d6f756e7420666f722070726573616c65000000000000000000006044820152606401610b01565b611f3e6111528584612283565b1061118b5760405162461bcd60e51b8152602060048201526009602482015268534f4c44204f55542160b81b6044820152606401610b01565b611195818561229b565b6111a0346001612283565b116111ed5760405162461bcd60e51b815260206004820152601360248201527f4e6f7420456e6f756768204554482073656e74000000000000000000000000006044820152606401610b01565b6040516bffffffffffffffffffffffff193360601b16602082015260009060340160405160208183030381529060405280519060200120905061123384600d5483611985565b6112a55760405162461bcd60e51b815260206004820152602260248201527f496e76616c6964204d65726b6c6520547265652070726f6f6620737570706c6960448201527f65640000000000000000000000000000000000000000000000000000000000006064820152608401610b01565b6112af338661170e565b336000908152600e6020526040812080548792906112ce908490612283565b90915550505050505050565b6112e26113b0565b6001600160a01b03811661135e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610b01565b610c88816118e2565b61136f6113b0565b60005b8251811015610c0b5761139e83828151811061139057611390612311565b60200260200101518361170e565b806113a881612327565b915050611372565b6008546001600160a01b03163314610e5c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b01565b60008160011115801561141e575060005482105b801561084d575050600090815260046020526040902054600160e01b161590565b6daaeb6d7670e522a718067333cd4e3b15610c88576040517fc61711340000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa1580156114c5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114e99190612340565b610c88576040517fede71dcc0000000000000000000000000000000000000000000000000000000081526001600160a01b0382166004820152602401610b01565b60006115358261185a565b9050836001600160a01b0316816001600160a01b031614611582576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b038816909114176115e8576115b28633610748565b6115e8576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038516611628576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b801561163357600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b841690036116c5576001840160008181526004602052604081205490036116c35760005481146116c35760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b600080549082900361174c576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b8181146117fb57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001016117c3565b5081600003611836576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005550505050565b610c0b83838360405180602001604052806000815250610efd565b600081806001116118b0576000548110156118b05760008181526004602052604081205490600160e01b821690036118ae575b80600003610f3957506000190160008181526004602052604090205461188d565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600880546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61194c848484610a49565b6001600160a01b0383163b15610a6e5761196884848484611a4a565b610a6e576040516368d2bf6b60e11b815260040160405180910390fd5b6000826119928584611b36565b14949350505050565b6060600f805461088490612233565b606060006119b783611b83565b600101905060008167ffffffffffffffff8111156119d7576119d7611e55565b6040519080825280601f01601f191660200182016040528015611a01576020820181803683370190505b5090508181016020015b600019017f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8504945084611a0b57509392505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611a7f90339089908890889060040161235d565b6020604051808303816000875af1925050508015611aba575060408051601f3d908101601f19168201909252611ab791810190612399565b60015b611b18573d808015611ae8576040519150601f19603f3d011682016040523d82523d6000602084013e611aed565b606091505b508051600003611b10576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b600081815b8451811015611b7b57611b6782868381518110611b5a57611b5a612311565b6020026020010151611c65565b915080611b7381612327565b915050611b3b565b509392505050565b6000807a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310611bcc577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000830492506040015b6d04ee2d6d415b85acef81000000008310611bf8576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310611c1657662386f26fc10000830492506010015b6305f5e1008310611c2e576305f5e100830492506008015b6127108310611c4257612710830492506004015b60648310611c54576064830492506002015b600a831061084d5760010192915050565b6000818310611c81576000828152602084905260409020610f39565b6000838152602083905260409020610f39565b828054611ca090612233565b90600052602060002090601f016020900481019282611cc25760008555611d08565b82601f10611cdb57805160ff1916838001178555611d08565b82800160010185558215611d08579182015b82811115611d08578251825591602001919060010190611ced565b50611d14929150611d18565b5090565b5b80821115611d145760008155600101611d19565b6001600160e01b031981168114610c8857600080fd5b600060208284031215611d5557600080fd5b8135610f3981611d2d565b8015158114610c8857600080fd5b600060208284031215611d8057600080fd5b8135610f3981611d60565b60005b83811015611da6578181015183820152602001611d8e565b83811115610a6e5750506000910152565b60008151808452611dcf816020860160208601611d8b565b601f01601f19169290920160200192915050565b602081526000610f396020830184611db7565b600060208284031215611e0857600080fd5b5035919050565b80356001600160a01b0381168114611e2657600080fd5b919050565b60008060408385031215611e3e57600080fd5b611e4783611e0f565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611e9457611e94611e55565b604052919050565b600067ffffffffffffffff831115611eb657611eb6611e55565b611ec9601f8401601f1916602001611e6b565b9050828152838383011115611edd57600080fd5b828260208301376000602084830101529392505050565b600060208284031215611f0657600080fd5b813567ffffffffffffffff811115611f1d57600080fd5b8201601f81018413611f2e57600080fd5b611b2e84823560208401611e9c565b600060208284031215611f4f57600080fd5b610f3982611e0f565b600080600060608486031215611f6d57600080fd5b611f7684611e0f565b9250611f8460208501611e0f565b9150604084013590509250925092565b60008060408385031215611fa757600080fd5b611fb083611e0f565b91506020830135611fc081611d60565b809150509250929050565b60008060008060808587031215611fe157600080fd5b611fea85611e0f565b9350611ff860208601611e0f565b925060408501359150606085013567ffffffffffffffff81111561201b57600080fd5b8501601f8101871361202c57600080fd5b61203b87823560208401611e9c565b91505092959194509250565b600067ffffffffffffffff82111561206157612061611e55565b5060051b60200190565b600082601f83011261207c57600080fd5b8135602061209161208c83612047565b611e6b565b82815260059290921b840181019181810190868411156120b057600080fd5b8286015b848110156120cb57803583529183019183016120b4565b509695505050505050565b600080604083850312156120e957600080fd5b823567ffffffffffffffff81111561210057600080fd5b61210c8582860161206b565b95602094909401359450505050565b6000806040838503121561212e57600080fd5b82359150602083013567ffffffffffffffff81111561214c57600080fd5b6121588582860161206b565b9150509250929050565b6000806040838503121561217557600080fd5b61217e83611e0f565b915061218c60208401611e0f565b90509250929050565b600080604083850312156121a857600080fd5b823567ffffffffffffffff8111156121bf57600080fd5b8301601f810185136121d057600080fd5b803560206121e061208c83612047565b82815260059290921b830181019181810190888411156121ff57600080fd5b938201935b838510156122245761221585611e0f565b82529382019390820190612204565b98969091013596505050505050565b600181811c9082168061224757607f821691505b60208210810361226757634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600082198211156122965761229661226d565b500190565b60008160001904831182151516156122b5576122b561226d565b500290565b600083516122cc818460208801611d8b565b8351908301906122e0818360208801611d8b565b7f2e6a736f6e0000000000000000000000000000000000000000000000000000009101908152600501949350505050565b634e487b7160e01b600052603260045260246000fd5b6000600182016123395761233961226d565b5060010190565b60006020828403121561235257600080fd5b8151610f3981611d60565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261238f6080830184611db7565b9695505050505050565b6000602082840312156123ab57600080fd5b8151610f3981611d2d56fea26469706673582212206d589f97b149be04949b91fc167d1f8ff0929380c508f983bd9281e898c2e0a764736f6c634300080d0033ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef
Deployed Bytecode
0x6080604052600436106102d15760003560e01c806355f804b311610179578063a22cb465116100d6578063c87b56dd1161008a578063e985e9c511610064578063e985e9c51461072d578063f2fde38b14610776578063fd1fc4a01461079657600080fd5b8063c87b56dd146106e4578063d5abeb0114610704578063e3e1e8ef1461071a57600080fd5b8063b88d4fde116100bb578063b88d4fde1461069c578063b8a20ed0146106af578063c73d4795146106cf57600080fd5b8063a22cb4651461065f578063b187bd261461067f57600080fd5b8063715018a61161012d5780638da5cb5b116101125780638da5cb5b1461060c578063940cd05b1461062a57806395d89b411461064a57600080fd5b8063715018a6146105e15780638693da20146105f657600080fd5b80636352211e1161015e5780636352211e14610587578063672a7fe0146105a757806370a08231146105c157600080fd5b806355f804b3146105525780635f45d1071461057257600080fd5b80632a23d07d1161023257806341f43434116101e6578063458b221a116101c0578063458b221a146104fd57806345bf9b15146105125780634f558e791461053257600080fd5b806341f43434146104a857806342842e0e146104ca57806344a0d68a146104dd57600080fd5b80632eb4a7ab116102175780632eb4a7ab1461046a57806330a464f5146104805780633ccfd60b146104a057600080fd5b80632a23d07d146104415780632db115441461045757600080fd5b80630d960de31161028957806318cae2691161026e57806318cae269146103e157806323b872dd1461040e57806328d7b2761461042157600080fd5b80630d960de31461039a57806318160ddd146103ba57600080fd5b806306fdde03116102ba57806306fdde031461032d578063081812fc1461034f578063095ea7b31461038757600080fd5b806301ffc9a7146102d657806302329a291461030b575b600080fd5b3480156102e257600080fd5b506102f66102f1366004611d43565b6107b6565b60405190151581526020015b60405180910390f35b34801561031757600080fd5b5061032b610326366004611d6e565b610853565b005b34801561033957600080fd5b50610342610875565b6040516103029190611de3565b34801561035b57600080fd5b5061036f61036a366004611df6565b610907565b6040516001600160a01b039091168152602001610302565b61032b610395366004611e2b565b610964565b3480156103a657600080fd5b5061032b6103b5366004611ef4565b610a2a565b3480156103c657600080fd5b5060015460005403600019015b604051908152602001610302565b3480156103ed57600080fd5b506103d36103fc366004611f3d565b600e6020526000908152604090205481565b61032b61041c366004611f58565b610a49565b34801561042d57600080fd5b5061032b61043c366004611df6565b610a74565b34801561044d57600080fd5b506103d3600b5481565b61032b610465366004611df6565b610a81565b34801561047657600080fd5b506103d3600d5481565b34801561048c57600080fd5b5061032b61049b366004611d6e565b610c10565b61032b610c2b565b3480156104b457600080fd5b5061036f6daaeb6d7670e522a718067333cd4e81565b61032b6104d8366004611f58565b610c8b565b3480156104e957600080fd5b5061032b6104f8366004611df6565b610cb0565b34801561050957600080fd5b50610342610cbd565b34801561051e57600080fd5b5061032b61052d366004611e2b565b610d4b565b34801561053e57600080fd5b506102f661054d366004611df6565b610db1565b34801561055e57600080fd5b5061032b61056d366004611ef4565b610dbc565b34801561057e57600080fd5b506103d3601481565b34801561059357600080fd5b5061036f6105a2366004611df6565b610dd7565b3480156105b357600080fd5b50600c546102f69060ff1681565b3480156105cd57600080fd5b506103d36105dc366004611f3d565b610de2565b3480156105ed57600080fd5b5061032b610e4a565b34801561060257600080fd5b506103d3600a5481565b34801561061857600080fd5b506008546001600160a01b031661036f565b34801561063657600080fd5b5061032b610645366004611d6e565b610e5e565b34801561065657600080fd5b50610342610e82565b34801561066b57600080fd5b5061032b61067a366004611f94565b610e91565b34801561068b57600080fd5b50600c54610100900460ff166102f6565b61032b6106aa366004611fcb565b610efd565b3480156106bb57600080fd5b506102f66106ca3660046120d6565b610f2a565b3480156106db57600080fd5b506103d3600281565b3480156106f057600080fd5b506103426106ff366004611df6565b610f40565b34801561071057600080fd5b506103d3611f3d81565b61032b61072836600461211b565b611045565b34801561073957600080fd5b506102f6610748366004612162565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561078257600080fd5b5061032b610791366004611f3d565b6112da565b3480156107a257600080fd5b5061032b6107b1366004612195565b611367565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316148061081957507f80ac58cd000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b8061084d57507f5b5e139f000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b61085b6113b0565b600c80549115156101000261ff0019909216919091179055565b60606002805461088490612233565b80601f01602080910402602001604051908101604052809291908181526020018280546108b090612233565b80156108fd5780601f106108d2576101008083540402835291602001916108fd565b820191906000526020600020905b8154815290600101906020018083116108e057829003601f168201915b5050505050905090565b60006109128261140a565b610948576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061096f82610dd7565b9050336001600160a01b038216146109c15761098b8133610748565b6109c1576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600082815260066020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b610a326113b0565b8051610a45906009906020840190611c94565b5050565b826001600160a01b0381163314610a6357610a633361143f565b610a6e84848461152a565b50505050565b610a7c6113b0565b600d55565b6000610a966001546000546000199190030190565b600a54600c5491925090610100900460ff1615610ab257600080fd5b600c5460ff1615610b0a5760405162461bcd60e51b815260206004820152600c60248201527f50726573616c65204f6e6c79000000000000000000000000000000000000000060448201526064015b60405180910390fd5b333214610b595760405162461bcd60e51b815260206004820152600c60248201527f6e6f20626f74732049636f6e00000000000000000000000000000000000000006044820152606401610b01565b611f3e610b668484612283565b10610b9f5760405162461bcd60e51b8152602060048201526009602482015268534f4c44204f55542160b81b6044820152606401610b01565b610ba9818461229b565b610bb4346001612283565b11610c015760405162461bcd60e51b815260206004820152601360248201527f4e6f7420456e6f756768204554482073656e74000000000000000000000000006044820152606401610b01565b610c0b338461170e565b505050565b610c186113b0565b600c805460ff1916911515919091179055565b610c336113b0565b604051600090339047908381818185875af1925050503d8060008114610c75576040519150601f19603f3d011682016040523d82523d6000602084013e610c7a565b606091505b5050905080610c8857600080fd5b50565b826001600160a01b0381163314610ca557610ca53361143f565b610a6e84848461183f565b610cb86113b0565b600a55565b60098054610cca90612233565b80601f0160208091040260200160405190810160405280929190818152602001828054610cf690612233565b8015610d435780601f10610d1857610100808354040283529160200191610d43565b820191906000526020600020905b815481529060010190602001808311610d2657829003601f168201915b505050505081565b610d536113b0565b611f3e81610d646000546000190190565b610d6e9190612283565b10610da75760405162461bcd60e51b8152602060048201526009602482015268534f4c44204f55542160b81b6044820152606401610b01565b610a45828261170e565b600061084d8261140a565b610dc46113b0565b8051610a4590600f906020840190611c94565b600061084d8261185a565b60006001600160a01b038216610e24576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b610e526113b0565b610e5c60006118e2565b565b610e666113b0565b600c8054911515620100000262ff000019909216919091179055565b60606003805461088490612233565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b836001600160a01b0381163314610f1757610f173361143f565b610f2385858585611941565b5050505050565b6000610f3983600d5484611985565b9392505050565b600c5460609062010000900460ff161515600003610fea5760098054610f6590612233565b80601f0160208091040260200160405190810160405280929190818152602001828054610f9190612233565b8015610fde5780601f10610fb357610100808354040283529160200191610fde565b820191906000526020600020905b815481529060010190602001808311610fc157829003601f168201915b50505050509050919050565b6000610ff461199b565b905060008151116110145760405180602001604052806000815250610f39565b8061101e846119aa565b60405160200161102f9291906122ba565b6040516020818303038152906040529392505050565b600061105a6001546000546000199190030190565b600a54600c5491925090610100900460ff161561107657600080fd5b600c5460ff16151560011461108a57600080fd5b336000908152600e60205260409020546003906110a8908690612283565b106110f55760405162461bcd60e51b815260206004820152601260248201527f4f6e6c792032207065722050726573616c6500000000000000000000000000006044820152606401610b01565b600384106111455760405162461bcd60e51b815260206004820152601660248201527f4d617820616d6f756e7420666f722070726573616c65000000000000000000006044820152606401610b01565b611f3e6111528584612283565b1061118b5760405162461bcd60e51b8152602060048201526009602482015268534f4c44204f55542160b81b6044820152606401610b01565b611195818561229b565b6111a0346001612283565b116111ed5760405162461bcd60e51b815260206004820152601360248201527f4e6f7420456e6f756768204554482073656e74000000000000000000000000006044820152606401610b01565b6040516bffffffffffffffffffffffff193360601b16602082015260009060340160405160208183030381529060405280519060200120905061123384600d5483611985565b6112a55760405162461bcd60e51b815260206004820152602260248201527f496e76616c6964204d65726b6c6520547265652070726f6f6620737570706c6960448201527f65640000000000000000000000000000000000000000000000000000000000006064820152608401610b01565b6112af338661170e565b336000908152600e6020526040812080548792906112ce908490612283565b90915550505050505050565b6112e26113b0565b6001600160a01b03811661135e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610b01565b610c88816118e2565b61136f6113b0565b60005b8251811015610c0b5761139e83828151811061139057611390612311565b60200260200101518361170e565b806113a881612327565b915050611372565b6008546001600160a01b03163314610e5c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b01565b60008160011115801561141e575060005482105b801561084d575050600090815260046020526040902054600160e01b161590565b6daaeb6d7670e522a718067333cd4e3b15610c88576040517fc61711340000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa1580156114c5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114e99190612340565b610c88576040517fede71dcc0000000000000000000000000000000000000000000000000000000081526001600160a01b0382166004820152602401610b01565b60006115358261185a565b9050836001600160a01b0316816001600160a01b031614611582576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b038816909114176115e8576115b28633610748565b6115e8576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038516611628576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b801561163357600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b841690036116c5576001840160008181526004602052604081205490036116c35760005481146116c35760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b600080549082900361174c576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b8181146117fb57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001016117c3565b5081600003611836576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005550505050565b610c0b83838360405180602001604052806000815250610efd565b600081806001116118b0576000548110156118b05760008181526004602052604081205490600160e01b821690036118ae575b80600003610f3957506000190160008181526004602052604090205461188d565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600880546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61194c848484610a49565b6001600160a01b0383163b15610a6e5761196884848484611a4a565b610a6e576040516368d2bf6b60e11b815260040160405180910390fd5b6000826119928584611b36565b14949350505050565b6060600f805461088490612233565b606060006119b783611b83565b600101905060008167ffffffffffffffff8111156119d7576119d7611e55565b6040519080825280601f01601f191660200182016040528015611a01576020820181803683370190505b5090508181016020015b600019017f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8504945084611a0b57509392505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611a7f90339089908890889060040161235d565b6020604051808303816000875af1925050508015611aba575060408051601f3d908101601f19168201909252611ab791810190612399565b60015b611b18573d808015611ae8576040519150601f19603f3d011682016040523d82523d6000602084013e611aed565b606091505b508051600003611b10576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b600081815b8451811015611b7b57611b6782868381518110611b5a57611b5a612311565b6020026020010151611c65565b915080611b7381612327565b915050611b3b565b509392505050565b6000807a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310611bcc577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000830492506040015b6d04ee2d6d415b85acef81000000008310611bf8576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310611c1657662386f26fc10000830492506010015b6305f5e1008310611c2e576305f5e100830492506008015b6127108310611c4257612710830492506004015b60648310611c54576064830492506002015b600a831061084d5760010192915050565b6000818310611c81576000828152602084905260409020610f39565b6000838152602083905260409020610f39565b828054611ca090612233565b90600052602060002090601f016020900481019282611cc25760008555611d08565b82601f10611cdb57805160ff1916838001178555611d08565b82800160010185558215611d08579182015b82811115611d08578251825591602001919060010190611ced565b50611d14929150611d18565b5090565b5b80821115611d145760008155600101611d19565b6001600160e01b031981168114610c8857600080fd5b600060208284031215611d5557600080fd5b8135610f3981611d2d565b8015158114610c8857600080fd5b600060208284031215611d8057600080fd5b8135610f3981611d60565b60005b83811015611da6578181015183820152602001611d8e565b83811115610a6e5750506000910152565b60008151808452611dcf816020860160208601611d8b565b601f01601f19169290920160200192915050565b602081526000610f396020830184611db7565b600060208284031215611e0857600080fd5b5035919050565b80356001600160a01b0381168114611e2657600080fd5b919050565b60008060408385031215611e3e57600080fd5b611e4783611e0f565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611e9457611e94611e55565b604052919050565b600067ffffffffffffffff831115611eb657611eb6611e55565b611ec9601f8401601f1916602001611e6b565b9050828152838383011115611edd57600080fd5b828260208301376000602084830101529392505050565b600060208284031215611f0657600080fd5b813567ffffffffffffffff811115611f1d57600080fd5b8201601f81018413611f2e57600080fd5b611b2e84823560208401611e9c565b600060208284031215611f4f57600080fd5b610f3982611e0f565b600080600060608486031215611f6d57600080fd5b611f7684611e0f565b9250611f8460208501611e0f565b9150604084013590509250925092565b60008060408385031215611fa757600080fd5b611fb083611e0f565b91506020830135611fc081611d60565b809150509250929050565b60008060008060808587031215611fe157600080fd5b611fea85611e0f565b9350611ff860208601611e0f565b925060408501359150606085013567ffffffffffffffff81111561201b57600080fd5b8501601f8101871361202c57600080fd5b61203b87823560208401611e9c565b91505092959194509250565b600067ffffffffffffffff82111561206157612061611e55565b5060051b60200190565b600082601f83011261207c57600080fd5b8135602061209161208c83612047565b611e6b565b82815260059290921b840181019181810190868411156120b057600080fd5b8286015b848110156120cb57803583529183019183016120b4565b509695505050505050565b600080604083850312156120e957600080fd5b823567ffffffffffffffff81111561210057600080fd5b61210c8582860161206b565b95602094909401359450505050565b6000806040838503121561212e57600080fd5b82359150602083013567ffffffffffffffff81111561214c57600080fd5b6121588582860161206b565b9150509250929050565b6000806040838503121561217557600080fd5b61217e83611e0f565b915061218c60208401611e0f565b90509250929050565b600080604083850312156121a857600080fd5b823567ffffffffffffffff8111156121bf57600080fd5b8301601f810185136121d057600080fd5b803560206121e061208c83612047565b82815260059290921b830181019181810190888411156121ff57600080fd5b938201935b838510156122245761221585611e0f565b82529382019390820190612204565b98969091013596505050505050565b600181811c9082168061224757607f821691505b60208210810361226757634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600082198211156122965761229661226d565b500190565b60008160001904831182151516156122b5576122b561226d565b500290565b600083516122cc818460208801611d8b565b8351908301906122e0818360208801611d8b565b7f2e6a736f6e0000000000000000000000000000000000000000000000000000009101908152600501949350505050565b634e487b7160e01b600052603260045260246000fd5b6000600182016123395761233961226d565b5060010190565b60006020828403121561235257600080fd5b8151610f3981611d60565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261238f6080830184611db7565b9695505050505050565b6000602082840312156123ab57600080fd5b8151610f3981611d2d56fea26469706673582212206d589f97b149be04949b91fc167d1f8ff0929380c508f983bd9281e898c2e0a764736f6c634300080d0033
Deployed Bytecode Sourcemap
89859:5963:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33522:639;;;;;;;;;;-1:-1:-1;33522:639:0;;;;;:::i;:::-;;:::i;:::-;;;611:14:1;;604:22;586:41;;574:2;559:18;33522:639:0;;;;;;;;94393:87;;;;;;;;;;-1:-1:-1;94393:87:0;;;;;:::i;:::-;;:::i;:::-;;34424:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;40915:218::-;;;;;;;;;;-1:-1:-1;40915:218:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;2107:55:1;;;2089:74;;2077:2;2062:18;40915:218:0;1943:226:1;40348:408:0;;;;;;:::i;:::-;;:::i;94818:86::-;;;;;;;;;;-1:-1:-1;94818:86:0;;;;;:::i;:::-;;:::i;30175:323::-;;;;;;;;;;-1:-1:-1;90706:1:0;30449:12;30236:7;30433:13;:28;-1:-1:-1;;30433:46:0;30175:323;;;4117:25:1;;;4105:2;4090:18;30175:323:0;3971:177:1;90447:52:0;;;;;;;;;;-1:-1:-1;90447:52:0;;;;;:::i;:::-;;;;;;;;;;;;;;95206:171;;;;;;:::i;:::-;;:::i;93107:109::-;;;;;;;;;;-1:-1:-1;93107:109:0;;;;;:::i;:::-;;:::i;90109:43::-;;;;;;;;;;;;;;;;90743:481;;;;;;:::i;:::-;;:::i;90413:25::-;;;;;;;;;;;;;;;;93293:131;;;;;;;;;;-1:-1:-1;93293:131:0;;;;;:::i;:::-;;:::i;95014:174::-;;;:::i;3015:143::-;;;;;;;;;;;;3115:42;3015:143;;95385:179;;;;;;:::i;:::-;;:::i;94599:100::-;;;;;;;;;;-1:-1:-1;94599:100:0;;;;;:::i;:::-;;:::i;89988:45::-;;;;;;;;;;;;;:::i;93724:182::-;;;;;;;;;;-1:-1:-1;93724:182:0;;;;;:::i;:::-;;:::i;92580:108::-;;;;;;;;;;-1:-1:-1;92580:108:0;;;;;:::i;:::-;;:::i;93505:110::-;;;;;;;;;;-1:-1:-1;93505:110:0;;;;;:::i;:::-;;:::i;90223:42::-;;;;;;;;;;;;90263:2;90223:42;;35817:152;;;;;;;;;;-1:-1:-1;35817:152:0;;;;;:::i;:::-;;:::i;90321:30::-;;;;;;;;;;-1:-1:-1;90321:30:0;;;;;;;;31359:233;;;;;;;;;;-1:-1:-1;31359:233:0;;;;;:::i;:::-;;:::i;69329:103::-;;;;;;;;;;;;;:::i;90040:42::-;;;;;;;;;;;;;;;;68681:87;;;;;;;;;;-1:-1:-1;68754:6:0;;-1:-1:-1;;;;;68754:6:0;68681:87;;94262:98;;;;;;;;;;-1:-1:-1;94262:98:0;;;;;:::i;:::-;;:::i;34600:104::-;;;;;;;;;;;;;:::i;41473:234::-;;;;;;;;;;-1:-1:-1;41473:234:0;;;;;:::i;:::-;;:::i;92110:85::-;;;;;;;;;;-1:-1:-1;92181:6:0;;;;;;;92110:85;;95572:245;;;;;;:::i;:::-;;:::i;92207:159::-;;;;;;;;;;-1:-1:-1;92207:159:0;;;;;:::i;:::-;;:::i;90272:42::-;;;;;;;;;;;;90313:1;90272:42;;92696:366;;;;;;;;;;-1:-1:-1;92696:366:0;;;;;:::i;:::-;;:::i;90179:37::-;;;;;;;;;;;;90212:4;90179:37;;91261:787;;;;;;:::i;:::-;;:::i;41864:164::-;;;;;;;;;;-1:-1:-1;41864:164:0;;;;;:::i;:::-;-1:-1:-1;;;;;41985:25:0;;;41961:4;41985:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;41864:164;69587:201;;;;;;;;;;-1:-1:-1;69587:201:0;;;;;:::i;:::-;;:::i;94010:190::-;;;;;;;;;;-1:-1:-1;94010:190:0;;;;;:::i;:::-;;:::i;33522:639::-;33607:4;33931:25;-1:-1:-1;;;;;;33931:25:0;;;;:102;;-1:-1:-1;34008:25:0;-1:-1:-1;;;;;;34008:25:0;;;33931:102;:179;;;-1:-1:-1;34085:25:0;-1:-1:-1;;;;;;34085:25:0;;;33931:179;33911:199;33522:639;-1:-1:-1;;33522:639:0:o;94393:87::-;68567:13;:11;:13::i;:::-;94457:6:::1;:15:::0;;;::::1;;;;-1:-1:-1::0;;94457:15:0;;::::1;::::0;;;::::1;::::0;;94393:87::o;34424:100::-;34478:13;34511:5;34504:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34424:100;:::o;40915:218::-;40991:7;41016:16;41024:7;41016;:16::i;:::-;41011:64;;41041:34;;;;;;;;;;;;;;41011:64;-1:-1:-1;41095:24:0;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;41095:30:0;;40915:218::o;40348:408::-;40437:13;40453:16;40461:7;40453;:16::i;:::-;40437:32;-1:-1:-1;64681:10:0;-1:-1:-1;;;;;40486:28:0;;;40482:175;;40534:44;40551:5;64681:10;41864:164;:::i;40534:44::-;40529:128;;40606:35;;;;;;;;;;;;;;40529:128;40669:24;;;;:15;:24;;;;;;:35;;-1:-1:-1;;40669:35:0;-1:-1:-1;;;;;40669:35:0;;;;;;;;;40720:28;;40669:24;;40720:28;;;;;;;40426:330;40348:408;;:::o;94818:86::-;68567:13;:11;:13::i;:::-;94888:8;;::::1;::::0;:2:::1;::::0;:8:::1;::::0;::::1;::::0;::::1;:::i;:::-;;94818:86:::0;:::o;95206:171::-;95315:4;-1:-1:-1;;;;;4356:18:0;;4364:10;4356:18;4352:83;;4391:32;4412:10;4391:20;:32::i;:::-;95332:37:::1;95351:4;95357:2;95361:7;95332:18;:37::i;:::-;95206:171:::0;;;;:::o;93107:109::-;68567:13;:11;:13::i;:::-;93189:10:::1;:18:::0;93107:109::o;90743:481::-;90812:7;90822:13;90706:1;30449:12;30236:7;30433:13;-1:-1:-1;;30433:28:0;;;:46;;30175:323;90822:13;90859:10;;90888:6;;90812:23;;-1:-1:-1;90859:10:0;90888:6;;;;;:13;90880:22;;;;;;90921:11;;;;:18;90913:42;;;;-1:-1:-1;;;90913:42:0;;9876:2:1;90913:42:0;;;9858:21:1;9915:2;9895:18;;;9888:30;9954:14;9934:18;;;9927:42;9986:18;;90913:42:0;;;;;;;;;90974:10;90988:9;90974:23;90966:48;;;;-1:-1:-1;;;90966:48:0;;10217:2:1;90966:48:0;;;10199:21:1;10256:2;10236:18;;;10229:30;10295:14;10275:18;;;10268:42;10327:18;;90966:48:0;10015:336:1;90966:48:0;91044:4;91033:8;91038:3;91033:2;:8;:::i;:::-;:15;91025:37;;;;-1:-1:-1;;;91025:37:0;;10880:2:1;91025:37:0;;;10862:21:1;10919:1;10899:18;;;10892:29;-1:-1:-1;;;10937:18:1;;;10930:39;10986:18;;91025:37:0;10678:332:1;91025:37:0;91097:11;91103:5;91097:3;:11;:::i;:::-;91081:13;:9;91093:1;91081:13;:::i;:::-;:27;91073:59;;;;-1:-1:-1;;;91073:59:0;;11390:2:1;91073:59:0;;;11372:21:1;11429:2;11409:18;;;11402:30;11468:21;11448:18;;;11441:49;11507:18;;91073:59:0;11188:343:1;91073:59:0;91187:22;91193:10;91205:3;91187:5;:22::i;:::-;90801:423;;90743:481;:::o;93293:131::-;68567:13;:11;:13::i;:::-;93367:11:::1;:20:::0;;-1:-1:-1;;93367:20:0::1;::::0;::::1;;::::0;;;::::1;::::0;;93293:131::o;95014:174::-;68567:13;:11;:13::i;:::-;95095:58:::1;::::0;95077:12:::1;::::0;95103:10:::1;::::0;95127:21:::1;::::0;95077:12;95095:58;95077:12;95095:58;95127:21;95103:10;95095:58:::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;95076:77;;;95172:7;95164:16;;;::::0;::::1;;95065:123;95014:174::o:0;95385:179::-;95498:4;-1:-1:-1;;;;;4356:18:0;;4364:10;4356:18;4352:83;;4391:32;4412:10;4391:20;:32::i;:::-;95515:41:::1;95538:4;95544:2;95548:7;95515:22;:41::i;94599:100::-:0;68567:13;:11;:13::i;:::-;94670:10:::1;:21:::0;94599:100::o;89988:45::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;93724:182::-;68567:13;:11;:13::i;:::-;93838:4:::1;93832:3;93815:14;30651:7:::0;30842:13;-1:-1:-1;;30842:31:0;;30596:296;93815:14:::1;:20;;;;:::i;:::-;:27;93807:49;;;::::0;-1:-1:-1;;;93807:49:0;;10880:2:1;93807:49:0::1;::::0;::::1;10862:21:1::0;10919:1;10899:18;;;10892:29;-1:-1:-1;;;10937:18:1;;;10930:39;10986:18;;93807:49:0::1;10678:332:1::0;93807:49:0::1;93877:21;93883:9;93894:3;93877:5;:21::i;92580:108::-:0;92634:4;92664:16;92672:7;92664;:16::i;93505:110::-;68567:13;:11;:13::i;:::-;93584:23;;::::1;::::0;:13:::1;::::0;:23:::1;::::0;::::1;::::0;::::1;:::i;35817:152::-:0;35889:7;35932:27;35951:7;35932:18;:27::i;31359:233::-;31431:7;-1:-1:-1;;;;;31455:19:0;;31451:60;;31483:28;;;;;;;;;;;;;;31451:60;-1:-1:-1;;;;;;31529:25:0;;;;;:18;:25;;;;;;25518:13;31529:55;;31359:233::o;69329:103::-;68567:13;:11;:13::i;:::-;69394:30:::1;69421:1;69394:18;:30::i;:::-;69329:103::o:0;94262:98::-;68567:13;:11;:13::i;:::-;94327:8:::1;:17:::0;;;::::1;;::::0;::::1;-1:-1:-1::0;;94327:17:0;;::::1;::::0;;;::::1;::::0;;94262:98::o;34600:104::-;34656:13;34689:7;34682:14;;;;;:::i;41473:234::-;64681:10;41568:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;41568:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;41568:60:0;;;;;;;;;;41644:55;;586:41:1;;;41568:49:0;;64681:10;41644:55;;559:18:1;41644:55:0;;;;;;;41473:234;;:::o;95572:245::-;95740:4;-1:-1:-1;;;;;4356:18:0;;4364:10;4356:18;4352:83;;4391:32;4412:10;4391:20;:32::i;:::-;95762:47:::1;95785:4;95791:2;95795:7;95804:4;95762:22;:47::i;:::-;95572:245:::0;;;;;:::o;92207:159::-;92283:4;92314:43;92333:5;92340:10;;92352:4;92314:18;:43::i;:::-;92307:50;92207:159;-1:-1:-1;;;92207:159:0:o;92696:366::-;92799:8;;92766:13;;92799:8;;;;;:17;;92811:5;92799:17;92796:60;;92844:2;92837:9;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;92696:366;;;:::o;92796:60::-;92868:28;92899:10;:8;:10::i;:::-;92868:41;;92958:1;92933:14;92927:28;:32;:127;;;;;;;;;;;;;;;;;92995:14;93011:18;:7;:16;:18::i;:::-;92978:61;;;;;;;;;:::i;:::-;;;;;;;;;;;;;92920:134;92696:366;-1:-1:-1;;;92696:366:0:o;91261:787::-;91349:7;91359:13;90706:1;30449:12;30236:7;30433:13;-1:-1:-1;;30433:28:0;;;:46;;30175:323;91359:13;91396:10;;91425:6;;91349:23;;-1:-1:-1;91396:10:0;91425:6;;;;;:13;91417:22;;;;;;91458:11;;;;:17;;:11;:17;91450:26;;;;;;91516:10;91495:32;;;;:20;:32;;;;;;91536:1;;91495:38;;91530:3;;91495:38;:::i;:::-;:42;91487:73;;;;-1:-1:-1;;;91487:73:0;;12590:2:1;91487:73:0;;;12572:21:1;12629:2;12609:18;;;12602:30;12668:20;12648:18;;;12641:48;12706:18;;91487:73:0;12388:342:1;91487:73:0;91585:1;91579:3;:7;91571:42;;;;-1:-1:-1;;;91571:42:0;;12937:2:1;91571:42:0;;;12919:21:1;12976:2;12956:18;;;12949:30;13015:24;12995:18;;;12988:52;13057:18;;91571:42:0;12735:346:1;91571:42:0;91643:4;91632:8;91637:3;91632:2;:8;:::i;:::-;:15;91624:37;;;;-1:-1:-1;;;91624:37:0;;10880:2:1;91624:37:0;;;10862:21:1;10919:1;10899:18;;;10892:29;-1:-1:-1;;;10937:18:1;;;10930:39;10986:18;;91624:37:0;10678:332:1;91624:37:0;91696:11;91702:5;91696:3;:11;:::i;:::-;91680:13;:9;91692:1;91680:13;:::i;:::-;:27;91672:59;;;;-1:-1:-1;;;91672:59:0;;11390:2:1;91672:59:0;;;11372:21:1;11429:2;11409:18;;;11402:30;11468:21;11448:18;;;11441:49;11507:18;;91672:59:0;11188:343:1;91672:59:0;91769:28;;-1:-1:-1;;91786:10:0;13235:2:1;13231:15;13227:53;91769:28:0;;;13215:66:1;91744:12:0;;13297::1;;91769:28:0;;;;;;;;;;;;91759:39;;;;;;91744:54;;91817:43;91836:5;91843:10;;91855:4;91817:18;:43::i;:::-;91809:90;;;;-1:-1:-1;;;91809:90:0;;13522:2:1;91809:90:0;;;13504:21:1;13561:2;13541:18;;;13534:30;13600:34;13580:18;;;13573:62;13671:4;13651:18;;;13644:32;13693:19;;91809:90:0;13320:398:1;91809:90:0;91954:22;91960:10;91972:3;91954:5;:22::i;:::-;92016:10;91995:32;;;;:20;:32;;;;;:39;;92031:3;;91995:32;:39;;92031:3;;91995:39;:::i;:::-;;;;-1:-1:-1;;;;;;;91261:787:0:o;69587:201::-;68567:13;:11;:13::i;:::-;-1:-1:-1;;;;;69676:22:0;::::1;69668:73;;;::::0;-1:-1:-1;;;69668:73:0;;13925:2:1;69668:73:0::1;::::0;::::1;13907:21:1::0;13964:2;13944:18;;;13937:30;14003:34;13983:18;;;13976:62;14074:8;14054:18;;;14047:36;14100:19;;69668:73:0::1;13723:402:1::0;69668:73:0::1;69752:28;69771:8;69752:18;:28::i;94010:190::-:0;68567:13;:11;:13::i;:::-;94102:9:::1;94097:96;94117:5;:12;94113:1;:16;94097:96;;;94161:20;94167:5;94173:1;94167:8;;;;;;;;:::i;:::-;;;;;;;94177:3;94161:5;:20::i;:::-;94131:3:::0;::::1;::::0;::::1;:::i;:::-;;;;94097:96;;68846:132:::0;68754:6;;-1:-1:-1;;;;;68754:6:0;64681:10;68910:23;68902:68;;;;-1:-1:-1;;;68902:68:0;;14661:2:1;68902:68:0;;;14643:21:1;;;14680:18;;;14673:30;14739:34;14719:18;;;14712:62;14791:18;;68902:68:0;14459:356:1;42286:282:0;42351:4;42407:7;90706:1;42388:26;;:66;;;;;42441:13;;42431:7;:23;42388:66;:153;;;;-1:-1:-1;;42492:26:0;;;;:17;:26;;;;;;-1:-1:-1;;;42492:44:0;:49;;42286:282::o;4594:419::-;3115:42;4785:45;:49;4781:225;;4856:67;;;;;4907:4;4856:67;;;15055:34:1;-1:-1:-1;;;;;15125:15:1;;15105:18;;;15098:43;3115:42:0;;4856;;14967:18:1;;4856:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;4851:144;;4951:28;;;;;-1:-1:-1;;;;;2107:55:1;;4951:28:0;;;2089:74:1;2062:18;;4951:28:0;1943:226:1;44554:2825:0;44696:27;44726;44745:7;44726:18;:27::i;:::-;44696:57;;44811:4;-1:-1:-1;;;;;44770:45:0;44786:19;-1:-1:-1;;;;;44770:45:0;;44766:86;;44824:28;;;;;;;;;;;;;;44766:86;44866:27;43662:24;;;:15;:24;;;;;43890:26;;64681:10;43287:30;;;-1:-1:-1;;;;;42980:28:0;;43265:20;;;43262:56;45052:180;;45145:43;45162:4;64681:10;41864:164;:::i;45145:43::-;45140:92;;45197:35;;;;;;;;;;;;;;45140:92;-1:-1:-1;;;;;45249:16:0;;45245:52;;45274:23;;;;;;;;;;;;;;45245:52;45446:15;45443:160;;;45586:1;45565:19;45558:30;45443:160;-1:-1:-1;;;;;45983:24:0;;;;;;;:18;:24;;;;;;45981:26;;-1:-1:-1;;45981:26:0;;;46052:22;;;;;;;;;46050:24;;-1:-1:-1;46050:24:0;;;39206:11;39181:23;39177:41;39164:63;-1:-1:-1;;;39164:63:0;46345:26;;;;:17;:26;;;;;:175;;;;-1:-1:-1;;;46640:47:0;;:52;;46636:627;;46745:1;46735:11;;46713:19;46868:30;;;:17;:30;;;;;;:35;;46864:384;;47006:13;;46991:11;:28;46987:242;;47153:30;;;;:17;:30;;;;;:52;;;46987:242;46694:569;46636:627;47310:7;47306:2;-1:-1:-1;;;;;47291:27:0;47300:4;-1:-1:-1;;;;;47291:27:0;;;;;;;;;;;44685:2694;;;44554:2825;;;:::o;51935:2966::-;52008:20;52031:13;;;52059;;;52055:44;;52081:18;;;;;;;;;;;;;;52055:44;-1:-1:-1;;;;;52587:22:0;;;;;;:18;:22;;;;25656:2;52587:22;;;:71;;52625:32;52613:45;;52587:71;;;52901:31;;;:17;:31;;;;;-1:-1:-1;39637:15:0;;39611:24;39607:46;39206:11;39181:23;39177:41;39174:52;39164:63;;52901:173;;53136:23;;;;52901:31;;52587:22;;53901:25;52587:22;;53754:335;54415:1;54401:12;54397:20;54355:346;54456:3;54447:7;54444:16;54355:346;;54674:7;54664:8;54661:1;54634:25;54631:1;54628;54623:59;54509:1;54496:15;54355:346;;;54359:77;54734:8;54746:1;54734:13;54730:45;;54756:19;;;;;;;;;;;;;;54730:45;54792:13;:19;-1:-1:-1;90801:423:0;;90743:481;:::o;47475:193::-;47621:39;47638:4;47644:2;47648:7;47621:39;;;;;;;;;;;;:16;:39::i;36972:1275::-;37039:7;37074;;90706:1;37123:23;37119:1061;;37176:13;;37169:4;:20;37165:1015;;;37214:14;37231:23;;;:17;:23;;;;;;;-1:-1:-1;;;37320:24:0;;:29;;37316:845;;37985:113;37992:6;38002:1;37992:11;37985:113;;-1:-1:-1;;;38063:6:0;38045:25;;;;:17;:25;;;;;;37985:113;;37316:845;37191:989;37165:1015;38208:31;;;;;;;;;;;;;;69948:191;70041:6;;;-1:-1:-1;;;;;70058:17:0;;;-1:-1:-1;;70058:17:0;;;;;;;70091:40;;70041:6;;;70058:17;70041:6;;70091:40;;70022:16;;70091:40;70011:128;69948:191;:::o;48266:407::-;48441:31;48454:4;48460:2;48464:7;48441:12;:31::i;:::-;-1:-1:-1;;;;;48487:14:0;;;:19;48483:183;;48526:56;48557:4;48563:2;48567:7;48576:5;48526:30;:56::i;:::-;48521:145;;48610:40;;-1:-1:-1;;;48610:40:0;;;;;;;;;;;6779:190;6904:4;6957;6928:25;6941:5;6948:4;6928:12;:25::i;:::-;:33;;6779:190;-1:-1:-1;;;;6779:190:0:o;92452:120::-;92512:13;92551;92544:20;;;;;:::i;83451:716::-;83507:13;83558:14;83575:17;83586:5;83575:10;:17::i;:::-;83595:1;83575:21;83558:38;;83611:20;83645:6;83634:18;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;83634:18:0;-1:-1:-1;83611:41:0;-1:-1:-1;83776:28:0;;;83792:2;83776:28;83833:288;-1:-1:-1;;83865:5:0;84007:8;84002:2;83991:14;;83986:30;83865:5;83973:44;84063:2;84054:11;;;-1:-1:-1;84084:21:0;83833:288;84084:21;-1:-1:-1;84142:6:0;83451:716;-1:-1:-1;;;83451:716:0:o;50757:::-;50941:88;;-1:-1:-1;;;50941:88:0;;50920:4;;-1:-1:-1;;;;;50941:45:0;;;;;:88;;64681:10;;51008:4;;51014:7;;51023:5;;50941:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;50941:88:0;;;;;;;;-1:-1:-1;;50941:88:0;;;;;;;;;;;;:::i;:::-;;;50937:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;51224:6;:13;51241:1;51224:18;51220:235;;51270:40;;-1:-1:-1;;;51270:40:0;;;;;;;;;;;51220:235;51413:6;51407:13;51398:6;51394:2;51390:15;51383:38;50937:529;-1:-1:-1;;;;;;51100:64:0;-1:-1:-1;;;51100:64:0;;-1:-1:-1;50937:529:0;50757:716;;;;;;:::o;7646:296::-;7729:7;7772:4;7729:7;7787:118;7811:5;:12;7807:1;:16;7787:118;;;7860:33;7870:12;7884:5;7890:1;7884:8;;;;;;;;:::i;:::-;;;;;;;7860:9;:33::i;:::-;7845:48;-1:-1:-1;7825:3:0;;;;:::i;:::-;;;;7787:118;;;-1:-1:-1;7922:12:0;7646:296;-1:-1:-1;;;7646:296:0:o;80317:922::-;80370:7;;80457:6;80448:15;;80444:102;;80493:6;80484:15;;;-1:-1:-1;80528:2:0;80518:12;80444:102;80573:6;80564:5;:15;80560:102;;80609:6;80600:15;;;-1:-1:-1;80644:2:0;80634:12;80560:102;80689:6;80680:5;:15;80676:102;;80725:6;80716:15;;;-1:-1:-1;80760:2:0;80750:12;80676:102;80805:5;80796;:14;80792:99;;80840:5;80831:14;;;-1:-1:-1;80874:1:0;80864:11;80792:99;80918:5;80909;:14;80905:99;;80953:5;80944:14;;;-1:-1:-1;80987:1:0;80977:11;80905:99;81031:5;81022;:14;81018:99;;81066:5;81057:14;;;-1:-1:-1;81100:1:0;81090:11;81018:99;81144:5;81135;:14;81131:66;;81180:1;81170:11;81225:6;80317:922;-1:-1:-1;;80317:922:0:o;14686:149::-;14749:7;14780:1;14776;:5;:51;;14911:13;15005:15;;;15041:4;15034:15;;;15088:4;15072:21;;14776:51;;;14911:13;15005:15;;;15041:4;15034:15;;;15088:4;15072:21;;14784:20;14843:268;-1:-1:-1;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;14:177:1;-1:-1:-1;;;;;;92:5:1;88:78;81:5;78:89;68:117;;181:1;178;171:12;196:245;254:6;307:2;295:9;286:7;282:23;278:32;275:52;;;323:1;320;313:12;275:52;362:9;349:23;381:30;405:5;381:30;:::i;638:118::-;724:5;717:13;710:21;703:5;700:32;690:60;;746:1;743;736:12;761:241;817:6;870:2;858:9;849:7;845:23;841:32;838:52;;;886:1;883;876:12;838:52;925:9;912:23;944:28;966:5;944:28;:::i;1007:258::-;1079:1;1089:113;1103:6;1100:1;1097:13;1089:113;;;1179:11;;;1173:18;1160:11;;;1153:39;1125:2;1118:10;1089:113;;;1220:6;1217:1;1214:13;1211:48;;;-1:-1:-1;;1255:1:1;1237:16;;1230:27;1007:258::o;1270:::-;1312:3;1350:5;1344:12;1377:6;1372:3;1365:19;1393:63;1449:6;1442:4;1437:3;1433:14;1426:4;1419:5;1415:16;1393:63;:::i;:::-;1510:2;1489:15;-1:-1:-1;;1485:29:1;1476:39;;;;1517:4;1472:50;;1270:258;-1:-1:-1;;1270:258:1:o;1533:220::-;1682:2;1671:9;1664:21;1645:4;1702:45;1743:2;1732:9;1728:18;1720:6;1702:45;:::i;1758:180::-;1817:6;1870:2;1858:9;1849:7;1845:23;1841:32;1838:52;;;1886:1;1883;1876:12;1838:52;-1:-1:-1;1909:23:1;;1758:180;-1:-1:-1;1758:180:1:o;2174:196::-;2242:20;;-1:-1:-1;;;;;2291:54:1;;2281:65;;2271:93;;2360:1;2357;2350:12;2271:93;2174:196;;;:::o;2375:254::-;2443:6;2451;2504:2;2492:9;2483:7;2479:23;2475:32;2472:52;;;2520:1;2517;2510:12;2472:52;2543:29;2562:9;2543:29;:::i;:::-;2533:39;2619:2;2604:18;;;;2591:32;;-1:-1:-1;;;2375:254:1:o;2634:184::-;-1:-1:-1;;;2683:1:1;2676:88;2783:4;2780:1;2773:15;2807:4;2804:1;2797:15;2823:275;2894:2;2888:9;2959:2;2940:13;;-1:-1:-1;;2936:27:1;2924:40;;2994:18;2979:34;;3015:22;;;2976:62;2973:88;;;3041:18;;:::i;:::-;3077:2;3070:22;2823:275;;-1:-1:-1;2823:275:1:o;3103:407::-;3168:5;3202:18;3194:6;3191:30;3188:56;;;3224:18;;:::i;:::-;3262:57;3307:2;3286:15;;-1:-1:-1;;3282:29:1;3313:4;3278:40;3262:57;:::i;:::-;3253:66;;3342:6;3335:5;3328:21;3382:3;3373:6;3368:3;3364:16;3361:25;3358:45;;;3399:1;3396;3389:12;3358:45;3448:6;3443:3;3436:4;3429:5;3425:16;3412:43;3502:1;3495:4;3486:6;3479:5;3475:18;3471:29;3464:40;3103:407;;;;;:::o;3515:451::-;3584:6;3637:2;3625:9;3616:7;3612:23;3608:32;3605:52;;;3653:1;3650;3643:12;3605:52;3693:9;3680:23;3726:18;3718:6;3715:30;3712:50;;;3758:1;3755;3748:12;3712:50;3781:22;;3834:4;3826:13;;3822:27;-1:-1:-1;3812:55:1;;3863:1;3860;3853:12;3812:55;3886:74;3952:7;3947:2;3934:16;3929:2;3925;3921:11;3886:74;:::i;4153:186::-;4212:6;4265:2;4253:9;4244:7;4240:23;4236:32;4233:52;;;4281:1;4278;4271:12;4233:52;4304:29;4323:9;4304:29;:::i;4344:328::-;4421:6;4429;4437;4490:2;4478:9;4469:7;4465:23;4461:32;4458:52;;;4506:1;4503;4496:12;4458:52;4529:29;4548:9;4529:29;:::i;:::-;4519:39;;4577:38;4611:2;4600:9;4596:18;4577:38;:::i;:::-;4567:48;;4662:2;4651:9;4647:18;4634:32;4624:42;;4344:328;;;;;:::o;5306:315::-;5371:6;5379;5432:2;5420:9;5411:7;5407:23;5403:32;5400:52;;;5448:1;5445;5438:12;5400:52;5471:29;5490:9;5471:29;:::i;:::-;5461:39;;5550:2;5539:9;5535:18;5522:32;5563:28;5585:5;5563:28;:::i;:::-;5610:5;5600:15;;;5306:315;;;;;:::o;5626:667::-;5721:6;5729;5737;5745;5798:3;5786:9;5777:7;5773:23;5769:33;5766:53;;;5815:1;5812;5805:12;5766:53;5838:29;5857:9;5838:29;:::i;:::-;5828:39;;5886:38;5920:2;5909:9;5905:18;5886:38;:::i;:::-;5876:48;;5971:2;5960:9;5956:18;5943:32;5933:42;;6026:2;6015:9;6011:18;5998:32;6053:18;6045:6;6042:30;6039:50;;;6085:1;6082;6075:12;6039:50;6108:22;;6161:4;6153:13;;6149:27;-1:-1:-1;6139:55:1;;6190:1;6187;6180:12;6139:55;6213:74;6279:7;6274:2;6261:16;6256:2;6252;6248:11;6213:74;:::i;:::-;6203:84;;;5626:667;;;;;;;:::o;6298:183::-;6358:4;6391:18;6383:6;6380:30;6377:56;;;6413:18;;:::i;:::-;-1:-1:-1;6458:1:1;6454:14;6470:4;6450:25;;6298:183::o;6486:662::-;6540:5;6593:3;6586:4;6578:6;6574:17;6570:27;6560:55;;6611:1;6608;6601:12;6560:55;6647:6;6634:20;6673:4;6697:60;6713:43;6753:2;6713:43;:::i;:::-;6697:60;:::i;:::-;6791:15;;;6877:1;6873:10;;;;6861:23;;6857:32;;;6822:12;;;;6901:15;;;6898:35;;;6929:1;6926;6919:12;6898:35;6965:2;6957:6;6953:15;6977:142;6993:6;6988:3;6985:15;6977:142;;;7059:17;;7047:30;;7097:12;;;;7010;;6977:142;;;-1:-1:-1;7137:5:1;6486:662;-1:-1:-1;;;;;;6486:662:1:o;7153:416::-;7246:6;7254;7307:2;7295:9;7286:7;7282:23;7278:32;7275:52;;;7323:1;7320;7313:12;7275:52;7363:9;7350:23;7396:18;7388:6;7385:30;7382:50;;;7428:1;7425;7418:12;7382:50;7451:61;7504:7;7495:6;7484:9;7480:22;7451:61;:::i;:::-;7441:71;7559:2;7544:18;;;;7531:32;;-1:-1:-1;;;;7153:416:1:o;7574:::-;7667:6;7675;7728:2;7716:9;7707:7;7703:23;7699:32;7696:52;;;7744:1;7741;7734:12;7696:52;7780:9;7767:23;7757:33;;7841:2;7830:9;7826:18;7813:32;7868:18;7860:6;7857:30;7854:50;;;7900:1;7897;7890:12;7854:50;7923:61;7976:7;7967:6;7956:9;7952:22;7923:61;:::i;:::-;7913:71;;;7574:416;;;;;:::o;7995:260::-;8063:6;8071;8124:2;8112:9;8103:7;8099:23;8095:32;8092:52;;;8140:1;8137;8130:12;8092:52;8163:29;8182:9;8163:29;:::i;:::-;8153:39;;8211:38;8245:2;8234:9;8230:18;8211:38;:::i;:::-;8201:48;;7995:260;;;;;:::o;8260:967::-;8353:6;8361;8414:2;8402:9;8393:7;8389:23;8385:32;8382:52;;;8430:1;8427;8420:12;8382:52;8470:9;8457:23;8503:18;8495:6;8492:30;8489:50;;;8535:1;8532;8525:12;8489:50;8558:22;;8611:4;8603:13;;8599:27;-1:-1:-1;8589:55:1;;8640:1;8637;8630:12;8589:55;8676:2;8663:16;8698:4;8722:60;8738:43;8778:2;8738:43;:::i;8722:60::-;8816:15;;;8898:1;8894:10;;;;8886:19;;8882:28;;;8847:12;;;;8922:19;;;8919:39;;;8954:1;8951;8944:12;8919:39;8978:11;;;;8998:148;9014:6;9009:3;9006:15;8998:148;;;9080:23;9099:3;9080:23;:::i;:::-;9068:36;;9031:12;;;;9124;;;;8998:148;;;9165:5;9202:18;;;;9189:32;;-1:-1:-1;;;;;;8260:967:1:o;9232:437::-;9311:1;9307:12;;;;9354;;;9375:61;;9429:4;9421:6;9417:17;9407:27;;9375:61;9482:2;9474:6;9471:14;9451:18;9448:38;9445:218;;-1:-1:-1;;;9516:1:1;9509:88;9620:4;9617:1;9610:15;9648:4;9645:1;9638:15;9445:218;;9232:437;;;:::o;10356:184::-;-1:-1:-1;;;10405:1:1;10398:88;10505:4;10502:1;10495:15;10529:4;10526:1;10519:15;10545:128;10585:3;10616:1;10612:6;10609:1;10606:13;10603:39;;;10622:18;;:::i;:::-;-1:-1:-1;10658:9:1;;10545:128::o;11015:168::-;11055:7;11121:1;11117;11113:6;11109:14;11106:1;11103:21;11098:1;11091:9;11084:17;11080:45;11077:71;;;11128:18;;:::i;:::-;-1:-1:-1;11168:9:1;;11015:168::o;11746:637::-;12026:3;12064:6;12058:13;12080:53;12126:6;12121:3;12114:4;12106:6;12102:17;12080:53;:::i;:::-;12196:13;;12155:16;;;;12218:57;12196:13;12155:16;12252:4;12240:17;;12218:57;:::i;:::-;12340:7;12297:20;;12326:22;;;12375:1;12364:13;;11746:637;-1:-1:-1;;;;11746:637:1:o;14130:184::-;-1:-1:-1;;;14179:1:1;14172:88;14279:4;14276:1;14269:15;14303:4;14300:1;14293:15;14319:135;14358:3;14379:17;;;14376:43;;14399:18;;:::i;:::-;-1:-1:-1;14446:1:1;14435:13;;14319:135::o;15152:245::-;15219:6;15272:2;15260:9;15251:7;15247:23;15243:32;15240:52;;;15288:1;15285;15278:12;15240:52;15320:9;15314:16;15339:28;15361:5;15339:28;:::i;15591:512::-;15785:4;-1:-1:-1;;;;;15895:2:1;15887:6;15883:15;15872:9;15865:34;15947:2;15939:6;15935:15;15930:2;15919:9;15915:18;15908:43;;15987:6;15982:2;15971:9;15967:18;15960:34;16030:3;16025:2;16014:9;16010:18;16003:31;16051:46;16092:3;16081:9;16077:19;16069:6;16051:46;:::i;:::-;16043:54;15591:512;-1:-1:-1;;;;;;15591:512:1:o;16108:249::-;16177:6;16230:2;16218:9;16209:7;16205:23;16201:32;16198:52;;;16246:1;16243;16236:12;16198:52;16278:9;16272:16;16297:30;16321:5;16297:30;:::i
Swarm Source
ipfs://6d589f97b149be04949b91fc167d1f8ff0929380c508f983bd9281e898c2e0a7
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.