ERC-721
Overview
Max Total Supply
1,679 ECO
Holders
849
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
2 ECOLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
EcotarNFT
Compiler Version
v0.8.17+commit.8df45f5f
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2022-12-19 */ // File: contracts/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: contracts/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: contracts/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/token/ERC20/IERC20.sol // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); } // 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: 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: 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: contracts/Ecotars.sol pragma solidity ^0.8.12; contract EcotarNFT is ERC721A("Ecotars", "ECO"), Ownable, DefaultOperatorFilterer { uint256 public maxSupply = 3325; uint256 public maxPerWallet = 4; uint256 public price = 0.035 ether; string private _baseTokenURI; bool public saleStarted; bool public whitelistOnly = true; bytes32 public merkleRoot; function setBaseURI(string calldata baseURI) external onlyOwner { _baseTokenURI = baseURI; } function _baseURI() internal view override returns (string memory) { return _baseTokenURI; } function setMaxPerWallet(uint256 _maxPerWallet) external onlyOwner { maxPerWallet = _maxPerWallet; } function setWhitelistOnly(bool _whitelistOnly) external onlyOwner { whitelistOnly = _whitelistOnly; } function setMaxSupply(uint256 _maxSupply) external onlyOwner { require(_maxSupply < maxSupply, "Can't increase max supply"); require(totalSupply() <= _maxSupply, "Can't decrease max supply below current supply"); maxSupply = _maxSupply; } function setSaleStarted(bool _saleStarted) external onlyOwner { saleStarted = _saleStarted; } function setPrice(uint256 _price) external onlyOwner { price = _price; } function setMerkleRoot(bytes32 _merkleRoot) external onlyOwner { merkleRoot = _merkleRoot; } function isWhitelisted(address user, bytes32[] calldata _merkleProof) public view returns (bool) { bytes32 leaf = keccak256(abi.encodePacked(user)); return MerkleProof.verify(_merkleProof, merkleRoot, leaf); } function numberMinted(address user) public view returns (uint256) { return _numberMinted(user); } function mint(uint64 amount, bytes32[] calldata _merkleProof) payable external { require(saleStarted, "Sale has not started yet"); require(_totalMinted() + amount <= maxSupply, "Max Supply Exceeded"); require(!whitelistOnly || isWhitelisted(msg.sender, _merkleProof), "Address is not whitelisted"); require(_numberMinted(msg.sender) + amount <= maxPerWallet, "Address cannot mint more tokens"); require(msg.value >= price * amount, "Insufficient funds"); _safeMint(msg.sender, amount); } function adminMint(address to, uint256 amount) external onlyOwner { require(_totalMinted() + amount <= maxSupply, "Max Supply Exceeded"); require(amount <= 200, "Max mint per transaction exceeded"); _safeMint(to, amount); } function rescueFunds(address to) external onlyOwner { uint256 balance = address(this).balance; (bool callSuccess, ) = payable(to).call{value: balance}(""); require(callSuccess, "Call failed"); } function rescueToken(address token) external onlyOwner { IERC20 tokenContract = IERC20(token); uint256 balance = tokenContract.balanceOf(address(this)); tokenContract.transfer(msg.sender, balance); } function setApprovalForAll(address operator, bool approved) public override onlyAllowedOperatorApproval(operator) { super.setApprovalForAll(operator, approved); } function approve(address operator, uint256 tokenId) public payable override onlyAllowedOperatorApproval(operator) { super.approve(operator, tokenId); } 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":[],"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":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"adminMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerWallet","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":[{"internalType":"uint64","name":"amount","type":"uint64"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"numberMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"rescueFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"rescueToken","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":[],"name":"saleStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxPerWallet","type":"uint256"}],"name":"setMaxPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxSupply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_saleStarted","type":"bool"}],"name":"setSaleStarted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_whitelistOnly","type":"bool"}],"name":"setWhitelistOnly","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":"whitelistOnly","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
6080604052610cfd6009556004600a55667c585087238000600b55600d805461ff0019166101001790553480156200003657600080fd5b50733cc6cdda760b79bafa08df41ecfa224f810dceb660016040518060400160405280600781526020016645636f7461727360c81b8152506040518060400160405280600381526020016245434f60e81b81525081600290816200009b919062000300565b506003620000aa828262000300565b50506000805550620000bc3362000209565b6daaeb6d7670e522a718067333cd4e3b15620002015780156200014f57604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b1580156200013057600080fd5b505af115801562000145573d6000803e3d6000fd5b5050505062000201565b6001600160a01b03821615620001a05760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af29039060440162000115565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b158015620001e757600080fd5b505af1158015620001fc573d6000803e3d6000fd5b505050505b5050620003cc565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200028657607f821691505b602082108103620002a757634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620002fb57600081815260208120601f850160051c81016020861015620002d65750805b601f850160051c820191505b81811015620002f757828155600101620002e2565b5050505b505050565b81516001600160401b038111156200031c576200031c6200025b565b62000334816200032d845462000271565b84620002ad565b602080601f8311600181146200036c5760008415620003535750858301515b600019600386901b1c1916600185901b178555620002f7565b600085815260208120601f198616915b828110156200039d578886015182559484019460019091019084016200037c565b5085821015620003bc5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b611f6680620003dc6000396000f3fe60806040526004361061021a5760003560e01c8063715018a611610123578063b88d4fde116100ab578063e53b20171161006f578063e53b2017146105cd578063e58306f9146105ed578063e985e9c51461060d578063ea05a8c61461062d578063f2fde38b1461064d57600080fd5b8063b88d4fde14610544578063c87b56dd14610557578063d5abeb0114610577578063dc33e6811461058d578063e268e4d3146105ad57600080fd5b806395d89b41116100f257806395d89b41146104c6578063a035b1fe146104db578063a2026e3d146104f1578063a22cb46514610504578063a854ffba1461052457600080fd5b8063715018a6146104535780637cb64759146104685780638da5cb5b1461048857806391b7f5ed146104a657600080fd5b80634460d3cf116101a65780635a23dd99116101755780635a23dd99146103b95780635c474f9e146103d95780636352211e146103f35780636f8b44b01461041357806370a082311461043357600080fd5b80634460d3cf14610344578063453c2310146103645780634b4687b51461037a57806355f804b31461039957600080fd5b806318160ddd116101ed57806318160ddd146102c357806323b872dd146102e65780632eb4a7ab146102f957806341f434341461030f57806342842e0e1461033157600080fd5b806301ffc9a71461021f57806306fdde0314610254578063081812fc14610276578063095ea7b3146102ae575b600080fd5b34801561022b57600080fd5b5061023f61023a3660046118a9565b61066d565b60405190151581526020015b60405180910390f35b34801561026057600080fd5b506102696106bf565b60405161024b9190611916565b34801561028257600080fd5b50610296610291366004611929565b610751565b6040516001600160a01b03909116815260200161024b565b6102c16102bc36600461195e565b610795565b005b3480156102cf57600080fd5b50600154600054035b60405190815260200161024b565b6102c16102f4366004611988565b6107ae565b34801561030557600080fd5b506102d8600e5481565b34801561031b57600080fd5b506102966daaeb6d7670e522a718067333cd4e81565b6102c161033f366004611988565b6107d9565b34801561035057600080fd5b506102c161035f3660046119c4565b6107fe565b34801561037057600080fd5b506102d8600a5481565b34801561038657600080fd5b50600d5461023f90610100900460ff1681565b3480156103a557600080fd5b506102c16103b43660046119df565b6108e7565b3480156103c557600080fd5b5061023f6103d4366004611a9b565b6108fc565b3480156103e557600080fd5b50600d5461023f9060ff1681565b3480156103ff57600080fd5b5061029661040e366004611929565b610982565b34801561041f57600080fd5b506102c161042e366004611929565b61098d565b34801561043f57600080fd5b506102d861044e3660046119c4565b610a63565b34801561045f57600080fd5b506102c1610ab1565b34801561047457600080fd5b506102c1610483366004611929565b610ac5565b34801561049457600080fd5b506008546001600160a01b0316610296565b3480156104b257600080fd5b506102c16104c1366004611929565b610ad2565b3480156104d257600080fd5b50610269610adf565b3480156104e757600080fd5b506102d8600b5481565b6102c16104ff366004611aed565b610aee565b34801561051057600080fd5b506102c161051f366004611b4b565b610d0c565b34801561053057600080fd5b506102c161053f366004611b82565b610d20565b6102c1610552366004611bb5565b610d3b565b34801561056357600080fd5b50610269610572366004611929565b610d68565b34801561058357600080fd5b506102d860095481565b34801561059957600080fd5b506102d86105a83660046119c4565b610dec565b3480156105b957600080fd5b506102c16105c8366004611929565b610e16565b3480156105d957600080fd5b506102c16105e83660046119c4565b610e23565b3480156105f957600080fd5b506102c161060836600461195e565b610ebc565b34801561061957600080fd5b5061023f610628366004611c90565b610f88565b34801561063957600080fd5b506102c1610648366004611b82565b610fb6565b34801561065957600080fd5b506102c16106683660046119c4565b610fd8565b60006301ffc9a760e01b6001600160e01b03198316148061069e57506380ac58cd60e01b6001600160e01b03198316145b806106b95750635b5e139f60e01b6001600160e01b03198316145b92915050565b6060600280546106ce90611cc3565b80601f01602080910402602001604051908101604052809291908181526020018280546106fa90611cc3565b80156107475780601f1061071c57610100808354040283529160200191610747565b820191906000526020600020905b81548152906001019060200180831161072a57829003601f168201915b5050505050905090565b600061075c82611051565b610779576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b8161079f81611078565b6107a98383611131565b505050565b826001600160a01b03811633146107c8576107c833611078565b6107d38484846111d1565b50505050565b826001600160a01b03811633146107f3576107f333611078565b6107d384848461136a565b610806611385565b6040516370a0823160e01b815230600482015281906000906001600160a01b038316906370a0823190602401602060405180830381865afa15801561084f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108739190611cfd565b60405163a9059cbb60e01b8152336004820152602481018290529091506001600160a01b0383169063a9059cbb906044016020604051808303816000875af11580156108c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107d39190611d16565b6108ef611385565b600c6107a9828483611d79565b6040516bffffffffffffffffffffffff19606085901b166020820152600090819060340160405160208183030381529060405280519060200120905061097984848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600e5491508490506113df565b95945050505050565b60006106b9826113f5565b610995611385565b60095481106109eb5760405162461bcd60e51b815260206004820152601960248201527f43616e277420696e637265617365206d617820737570706c790000000000000060448201526064015b60405180910390fd5b806109f96001546000540390565b1115610a5e5760405162461bcd60e51b815260206004820152602e60248201527f43616e2774206465637265617365206d617820737570706c792062656c6f772060448201526d63757272656e7420737570706c7960901b60648201526084016109e2565b600955565b60006001600160a01b038216610a8c576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b610ab9611385565b610ac3600061145c565b565b610acd611385565b600e55565b610ada611385565b600b55565b6060600380546106ce90611cc3565b600d5460ff16610b405760405162461bcd60e51b815260206004820152601860248201527f53616c6520686173206e6f74207374617274656420796574000000000000000060448201526064016109e2565b600954836001600160401b0316610b5660005490565b610b609190611e4e565b1115610ba45760405162461bcd60e51b815260206004820152601360248201527213585e0814dd5c1c1b1e48115e18d959591959606a1b60448201526064016109e2565b600d54610100900460ff161580610bc15750610bc13383836108fc565b610c0d5760405162461bcd60e51b815260206004820152601a60248201527f41646472657373206973206e6f742077686974656c697374656400000000000060448201526064016109e2565b600a54836001600160401b0316610c46336001600160a01b03166000908152600560205260409081902054901c6001600160401b031690565b610c509190611e4e565b1115610c9e5760405162461bcd60e51b815260206004820152601f60248201527f416464726573732063616e6e6f74206d696e74206d6f726520746f6b656e730060448201526064016109e2565b826001600160401b0316600b54610cb59190611e61565b341015610cf95760405162461bcd60e51b8152602060048201526012602482015271496e73756666696369656e742066756e647360701b60448201526064016109e2565b6107a933846001600160401b03166114ae565b81610d1681611078565b6107a983836114c8565b610d28611385565b600d805460ff1916911515919091179055565b836001600160a01b0381163314610d5557610d5533611078565b610d6185858585611534565b5050505050565b6060610d7382611051565b610d9057604051630a14c4b560e41b815260040160405180910390fd5b6000610d9a611578565b90508051600003610dba5760405180602001604052806000815250610de5565b80610dc484611587565b604051602001610dd5929190611e78565b6040516020818303038152906040525b9392505050565b6001600160a01b038116600090815260056020526040808220546001600160401b03911c166106b9565b610e1e611385565b600a55565b610e2b611385565b60405147906000906001600160a01b0384169083908381818185875af1925050503d8060008114610e78576040519150601f19603f3d011682016040523d82523d6000602084013e610e7d565b606091505b50509050806107a95760405162461bcd60e51b815260206004820152600b60248201526a10d85b1b0819985a5b195960aa1b60448201526064016109e2565b610ec4611385565b60095481610ed160005490565b610edb9190611e4e565b1115610f1f5760405162461bcd60e51b815260206004820152601360248201527213585e0814dd5c1c1b1e48115e18d959591959606a1b60448201526064016109e2565b60c8811115610f7a5760405162461bcd60e51b815260206004820152602160248201527f4d6178206d696e7420706572207472616e73616374696f6e20657863656564656044820152601960fa1b60648201526084016109e2565b610f8482826114ae565b5050565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b610fbe611385565b600d80549115156101000261ff0019909216919091179055565b610fe0611385565b6001600160a01b0381166110455760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109e2565b61104e8161145c565b50565b60008054821080156106b9575050600090815260046020526040902054600160e01b161590565b6daaeb6d7670e522a718067333cd4e3b1561104e57604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa1580156110e5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111099190611d16565b61104e57604051633b79c77360e21b81526001600160a01b03821660048201526024016109e2565b600061113c82610982565b9050336001600160a01b03821614611175576111588133610f88565b611175576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60006111dc826113f5565b9050836001600160a01b0316816001600160a01b03161461120f5760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b0388169091141761125c5761123f8633610f88565b61125c57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661128357604051633a954ecd60e21b815260040160405180910390fd5b801561128e57600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b841690036113205760018401600081815260046020526040812054900361131e57600054811461131e5760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b6107a983838360405180602001604052806000815250610d3b565b6008546001600160a01b03163314610ac35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109e2565b6000826113ec85846115cb565b14949350505050565b6000816000548110156114435760008181526004602052604081205490600160e01b82169003611441575b80600003610de5575060001901600081815260046020526040902054611420565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610f84828260405180602001604052806000815250611618565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61153f8484846107ae565b6001600160a01b0383163b156107d35761155b8484848461167e565b6107d3576040516368d2bf6b60e11b815260040160405180910390fd5b6060600c80546106ce90611cc3565b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a9004806115a15750819003601f19909101908152919050565b600081815b8451811015611610576115fc828683815181106115ef576115ef611ea7565b6020026020010151611769565b91508061160881611ebd565b9150506115d0565b509392505050565b6116228383611795565b6001600160a01b0383163b156107a9576000548281035b61164c600086838060010194508661167e565b611669576040516368d2bf6b60e11b815260040160405180910390fd5b818110611639578160005414610d6157600080fd5b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906116b3903390899088908890600401611ed6565b6020604051808303816000875af19250505080156116ee575060408051601f3d908101601f191682019092526116eb91810190611f13565b60015b61174c573d80801561171c576040519150601f19603f3d011682016040523d82523d6000602084013e611721565b606091505b508051600003611744576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6000818310611785576000828152602084905260409020610de5565b5060009182526020526040902090565b60008054908290036117ba5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b81811461186957808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600101611831565b508160000361188a57604051622e076360e81b815260040160405180910390fd5b60005550505050565b6001600160e01b03198116811461104e57600080fd5b6000602082840312156118bb57600080fd5b8135610de581611893565b60005b838110156118e15781810151838201526020016118c9565b50506000910152565b600081518084526119028160208601602086016118c6565b601f01601f19169290920160200192915050565b602081526000610de560208301846118ea565b60006020828403121561193b57600080fd5b5035919050565b80356001600160a01b038116811461195957600080fd5b919050565b6000806040838503121561197157600080fd5b61197a83611942565b946020939093013593505050565b60008060006060848603121561199d57600080fd5b6119a684611942565b92506119b460208501611942565b9150604084013590509250925092565b6000602082840312156119d657600080fd5b610de582611942565b600080602083850312156119f257600080fd5b82356001600160401b0380821115611a0957600080fd5b818501915085601f830112611a1d57600080fd5b813581811115611a2c57600080fd5b866020828501011115611a3e57600080fd5b60209290920196919550909350505050565b60008083601f840112611a6257600080fd5b5081356001600160401b03811115611a7957600080fd5b6020830191508360208260051b8501011115611a9457600080fd5b9250929050565b600080600060408486031215611ab057600080fd5b611ab984611942565b925060208401356001600160401b03811115611ad457600080fd5b611ae086828701611a50565b9497909650939450505050565b600080600060408486031215611b0257600080fd5b83356001600160401b038082168214611b1a57600080fd5b90935060208501359080821115611b3057600080fd5b50611ae086828701611a50565b801515811461104e57600080fd5b60008060408385031215611b5e57600080fd5b611b6783611942565b91506020830135611b7781611b3d565b809150509250929050565b600060208284031215611b9457600080fd5b8135610de581611b3d565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215611bcb57600080fd5b611bd485611942565b9350611be260208601611942565b92506040850135915060608501356001600160401b0380821115611c0557600080fd5b818701915087601f830112611c1957600080fd5b813581811115611c2b57611c2b611b9f565b604051601f8201601f19908116603f01168101908382118183101715611c5357611c53611b9f565b816040528281528a6020848701011115611c6c57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215611ca357600080fd5b611cac83611942565b9150611cba60208401611942565b90509250929050565b600181811c90821680611cd757607f821691505b602082108103611cf757634e487b7160e01b600052602260045260246000fd5b50919050565b600060208284031215611d0f57600080fd5b5051919050565b600060208284031215611d2857600080fd5b8151610de581611b3d565b601f8211156107a957600081815260208120601f850160051c81016020861015611d5a5750805b601f850160051c820191505b8181101561136257828155600101611d66565b6001600160401b03831115611d9057611d90611b9f565b611da483611d9e8354611cc3565b83611d33565b6000601f841160018114611dd85760008515611dc05750838201355b600019600387901b1c1916600186901b178355610d61565b600083815260209020601f19861690835b82811015611e095786850135825560209485019460019092019101611de9565b5086821015611e265760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b634e487b7160e01b600052601160045260246000fd5b808201808211156106b9576106b9611e38565b80820281158282048414176106b9576106b9611e38565b60008351611e8a8184602088016118c6565b835190830190611e9e8183602088016118c6565b01949350505050565b634e487b7160e01b600052603260045260246000fd5b600060018201611ecf57611ecf611e38565b5060010190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611f09908301846118ea565b9695505050505050565b600060208284031215611f2557600080fd5b8151610de58161189356fea264697066735822122021f77b61adca6fbf6ade82708b01e68d279e8df68b05402164567b4d0f0c0fcc64736f6c63430008110033
Deployed Bytecode
0x60806040526004361061021a5760003560e01c8063715018a611610123578063b88d4fde116100ab578063e53b20171161006f578063e53b2017146105cd578063e58306f9146105ed578063e985e9c51461060d578063ea05a8c61461062d578063f2fde38b1461064d57600080fd5b8063b88d4fde14610544578063c87b56dd14610557578063d5abeb0114610577578063dc33e6811461058d578063e268e4d3146105ad57600080fd5b806395d89b41116100f257806395d89b41146104c6578063a035b1fe146104db578063a2026e3d146104f1578063a22cb46514610504578063a854ffba1461052457600080fd5b8063715018a6146104535780637cb64759146104685780638da5cb5b1461048857806391b7f5ed146104a657600080fd5b80634460d3cf116101a65780635a23dd99116101755780635a23dd99146103b95780635c474f9e146103d95780636352211e146103f35780636f8b44b01461041357806370a082311461043357600080fd5b80634460d3cf14610344578063453c2310146103645780634b4687b51461037a57806355f804b31461039957600080fd5b806318160ddd116101ed57806318160ddd146102c357806323b872dd146102e65780632eb4a7ab146102f957806341f434341461030f57806342842e0e1461033157600080fd5b806301ffc9a71461021f57806306fdde0314610254578063081812fc14610276578063095ea7b3146102ae575b600080fd5b34801561022b57600080fd5b5061023f61023a3660046118a9565b61066d565b60405190151581526020015b60405180910390f35b34801561026057600080fd5b506102696106bf565b60405161024b9190611916565b34801561028257600080fd5b50610296610291366004611929565b610751565b6040516001600160a01b03909116815260200161024b565b6102c16102bc36600461195e565b610795565b005b3480156102cf57600080fd5b50600154600054035b60405190815260200161024b565b6102c16102f4366004611988565b6107ae565b34801561030557600080fd5b506102d8600e5481565b34801561031b57600080fd5b506102966daaeb6d7670e522a718067333cd4e81565b6102c161033f366004611988565b6107d9565b34801561035057600080fd5b506102c161035f3660046119c4565b6107fe565b34801561037057600080fd5b506102d8600a5481565b34801561038657600080fd5b50600d5461023f90610100900460ff1681565b3480156103a557600080fd5b506102c16103b43660046119df565b6108e7565b3480156103c557600080fd5b5061023f6103d4366004611a9b565b6108fc565b3480156103e557600080fd5b50600d5461023f9060ff1681565b3480156103ff57600080fd5b5061029661040e366004611929565b610982565b34801561041f57600080fd5b506102c161042e366004611929565b61098d565b34801561043f57600080fd5b506102d861044e3660046119c4565b610a63565b34801561045f57600080fd5b506102c1610ab1565b34801561047457600080fd5b506102c1610483366004611929565b610ac5565b34801561049457600080fd5b506008546001600160a01b0316610296565b3480156104b257600080fd5b506102c16104c1366004611929565b610ad2565b3480156104d257600080fd5b50610269610adf565b3480156104e757600080fd5b506102d8600b5481565b6102c16104ff366004611aed565b610aee565b34801561051057600080fd5b506102c161051f366004611b4b565b610d0c565b34801561053057600080fd5b506102c161053f366004611b82565b610d20565b6102c1610552366004611bb5565b610d3b565b34801561056357600080fd5b50610269610572366004611929565b610d68565b34801561058357600080fd5b506102d860095481565b34801561059957600080fd5b506102d86105a83660046119c4565b610dec565b3480156105b957600080fd5b506102c16105c8366004611929565b610e16565b3480156105d957600080fd5b506102c16105e83660046119c4565b610e23565b3480156105f957600080fd5b506102c161060836600461195e565b610ebc565b34801561061957600080fd5b5061023f610628366004611c90565b610f88565b34801561063957600080fd5b506102c1610648366004611b82565b610fb6565b34801561065957600080fd5b506102c16106683660046119c4565b610fd8565b60006301ffc9a760e01b6001600160e01b03198316148061069e57506380ac58cd60e01b6001600160e01b03198316145b806106b95750635b5e139f60e01b6001600160e01b03198316145b92915050565b6060600280546106ce90611cc3565b80601f01602080910402602001604051908101604052809291908181526020018280546106fa90611cc3565b80156107475780601f1061071c57610100808354040283529160200191610747565b820191906000526020600020905b81548152906001019060200180831161072a57829003601f168201915b5050505050905090565b600061075c82611051565b610779576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b8161079f81611078565b6107a98383611131565b505050565b826001600160a01b03811633146107c8576107c833611078565b6107d38484846111d1565b50505050565b826001600160a01b03811633146107f3576107f333611078565b6107d384848461136a565b610806611385565b6040516370a0823160e01b815230600482015281906000906001600160a01b038316906370a0823190602401602060405180830381865afa15801561084f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108739190611cfd565b60405163a9059cbb60e01b8152336004820152602481018290529091506001600160a01b0383169063a9059cbb906044016020604051808303816000875af11580156108c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107d39190611d16565b6108ef611385565b600c6107a9828483611d79565b6040516bffffffffffffffffffffffff19606085901b166020820152600090819060340160405160208183030381529060405280519060200120905061097984848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600e5491508490506113df565b95945050505050565b60006106b9826113f5565b610995611385565b60095481106109eb5760405162461bcd60e51b815260206004820152601960248201527f43616e277420696e637265617365206d617820737570706c790000000000000060448201526064015b60405180910390fd5b806109f96001546000540390565b1115610a5e5760405162461bcd60e51b815260206004820152602e60248201527f43616e2774206465637265617365206d617820737570706c792062656c6f772060448201526d63757272656e7420737570706c7960901b60648201526084016109e2565b600955565b60006001600160a01b038216610a8c576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b610ab9611385565b610ac3600061145c565b565b610acd611385565b600e55565b610ada611385565b600b55565b6060600380546106ce90611cc3565b600d5460ff16610b405760405162461bcd60e51b815260206004820152601860248201527f53616c6520686173206e6f74207374617274656420796574000000000000000060448201526064016109e2565b600954836001600160401b0316610b5660005490565b610b609190611e4e565b1115610ba45760405162461bcd60e51b815260206004820152601360248201527213585e0814dd5c1c1b1e48115e18d959591959606a1b60448201526064016109e2565b600d54610100900460ff161580610bc15750610bc13383836108fc565b610c0d5760405162461bcd60e51b815260206004820152601a60248201527f41646472657373206973206e6f742077686974656c697374656400000000000060448201526064016109e2565b600a54836001600160401b0316610c46336001600160a01b03166000908152600560205260409081902054901c6001600160401b031690565b610c509190611e4e565b1115610c9e5760405162461bcd60e51b815260206004820152601f60248201527f416464726573732063616e6e6f74206d696e74206d6f726520746f6b656e730060448201526064016109e2565b826001600160401b0316600b54610cb59190611e61565b341015610cf95760405162461bcd60e51b8152602060048201526012602482015271496e73756666696369656e742066756e647360701b60448201526064016109e2565b6107a933846001600160401b03166114ae565b81610d1681611078565b6107a983836114c8565b610d28611385565b600d805460ff1916911515919091179055565b836001600160a01b0381163314610d5557610d5533611078565b610d6185858585611534565b5050505050565b6060610d7382611051565b610d9057604051630a14c4b560e41b815260040160405180910390fd5b6000610d9a611578565b90508051600003610dba5760405180602001604052806000815250610de5565b80610dc484611587565b604051602001610dd5929190611e78565b6040516020818303038152906040525b9392505050565b6001600160a01b038116600090815260056020526040808220546001600160401b03911c166106b9565b610e1e611385565b600a55565b610e2b611385565b60405147906000906001600160a01b0384169083908381818185875af1925050503d8060008114610e78576040519150601f19603f3d011682016040523d82523d6000602084013e610e7d565b606091505b50509050806107a95760405162461bcd60e51b815260206004820152600b60248201526a10d85b1b0819985a5b195960aa1b60448201526064016109e2565b610ec4611385565b60095481610ed160005490565b610edb9190611e4e565b1115610f1f5760405162461bcd60e51b815260206004820152601360248201527213585e0814dd5c1c1b1e48115e18d959591959606a1b60448201526064016109e2565b60c8811115610f7a5760405162461bcd60e51b815260206004820152602160248201527f4d6178206d696e7420706572207472616e73616374696f6e20657863656564656044820152601960fa1b60648201526084016109e2565b610f8482826114ae565b5050565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b610fbe611385565b600d80549115156101000261ff0019909216919091179055565b610fe0611385565b6001600160a01b0381166110455760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109e2565b61104e8161145c565b50565b60008054821080156106b9575050600090815260046020526040902054600160e01b161590565b6daaeb6d7670e522a718067333cd4e3b1561104e57604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa1580156110e5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111099190611d16565b61104e57604051633b79c77360e21b81526001600160a01b03821660048201526024016109e2565b600061113c82610982565b9050336001600160a01b03821614611175576111588133610f88565b611175576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60006111dc826113f5565b9050836001600160a01b0316816001600160a01b03161461120f5760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b0388169091141761125c5761123f8633610f88565b61125c57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661128357604051633a954ecd60e21b815260040160405180910390fd5b801561128e57600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b841690036113205760018401600081815260046020526040812054900361131e57600054811461131e5760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b6107a983838360405180602001604052806000815250610d3b565b6008546001600160a01b03163314610ac35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109e2565b6000826113ec85846115cb565b14949350505050565b6000816000548110156114435760008181526004602052604081205490600160e01b82169003611441575b80600003610de5575060001901600081815260046020526040902054611420565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610f84828260405180602001604052806000815250611618565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61153f8484846107ae565b6001600160a01b0383163b156107d35761155b8484848461167e565b6107d3576040516368d2bf6b60e11b815260040160405180910390fd5b6060600c80546106ce90611cc3565b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a9004806115a15750819003601f19909101908152919050565b600081815b8451811015611610576115fc828683815181106115ef576115ef611ea7565b6020026020010151611769565b91508061160881611ebd565b9150506115d0565b509392505050565b6116228383611795565b6001600160a01b0383163b156107a9576000548281035b61164c600086838060010194508661167e565b611669576040516368d2bf6b60e11b815260040160405180910390fd5b818110611639578160005414610d6157600080fd5b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906116b3903390899088908890600401611ed6565b6020604051808303816000875af19250505080156116ee575060408051601f3d908101601f191682019092526116eb91810190611f13565b60015b61174c573d80801561171c576040519150601f19603f3d011682016040523d82523d6000602084013e611721565b606091505b508051600003611744576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6000818310611785576000828152602084905260409020610de5565b5060009182526020526040902090565b60008054908290036117ba5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b81811461186957808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600101611831565b508160000361188a57604051622e076360e81b815260040160405180910390fd5b60005550505050565b6001600160e01b03198116811461104e57600080fd5b6000602082840312156118bb57600080fd5b8135610de581611893565b60005b838110156118e15781810151838201526020016118c9565b50506000910152565b600081518084526119028160208601602086016118c6565b601f01601f19169290920160200192915050565b602081526000610de560208301846118ea565b60006020828403121561193b57600080fd5b5035919050565b80356001600160a01b038116811461195957600080fd5b919050565b6000806040838503121561197157600080fd5b61197a83611942565b946020939093013593505050565b60008060006060848603121561199d57600080fd5b6119a684611942565b92506119b460208501611942565b9150604084013590509250925092565b6000602082840312156119d657600080fd5b610de582611942565b600080602083850312156119f257600080fd5b82356001600160401b0380821115611a0957600080fd5b818501915085601f830112611a1d57600080fd5b813581811115611a2c57600080fd5b866020828501011115611a3e57600080fd5b60209290920196919550909350505050565b60008083601f840112611a6257600080fd5b5081356001600160401b03811115611a7957600080fd5b6020830191508360208260051b8501011115611a9457600080fd5b9250929050565b600080600060408486031215611ab057600080fd5b611ab984611942565b925060208401356001600160401b03811115611ad457600080fd5b611ae086828701611a50565b9497909650939450505050565b600080600060408486031215611b0257600080fd5b83356001600160401b038082168214611b1a57600080fd5b90935060208501359080821115611b3057600080fd5b50611ae086828701611a50565b801515811461104e57600080fd5b60008060408385031215611b5e57600080fd5b611b6783611942565b91506020830135611b7781611b3d565b809150509250929050565b600060208284031215611b9457600080fd5b8135610de581611b3d565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215611bcb57600080fd5b611bd485611942565b9350611be260208601611942565b92506040850135915060608501356001600160401b0380821115611c0557600080fd5b818701915087601f830112611c1957600080fd5b813581811115611c2b57611c2b611b9f565b604051601f8201601f19908116603f01168101908382118183101715611c5357611c53611b9f565b816040528281528a6020848701011115611c6c57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215611ca357600080fd5b611cac83611942565b9150611cba60208401611942565b90509250929050565b600181811c90821680611cd757607f821691505b602082108103611cf757634e487b7160e01b600052602260045260246000fd5b50919050565b600060208284031215611d0f57600080fd5b5051919050565b600060208284031215611d2857600080fd5b8151610de581611b3d565b601f8211156107a957600081815260208120601f850160051c81016020861015611d5a5750805b601f850160051c820191505b8181101561136257828155600101611d66565b6001600160401b03831115611d9057611d90611b9f565b611da483611d9e8354611cc3565b83611d33565b6000601f841160018114611dd85760008515611dc05750838201355b600019600387901b1c1916600186901b178355610d61565b600083815260209020601f19861690835b82811015611e095786850135825560209485019460019092019101611de9565b5086821015611e265760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b634e487b7160e01b600052601160045260246000fd5b808201808211156106b9576106b9611e38565b80820281158282048414176106b9576106b9611e38565b60008351611e8a8184602088016118c6565b835190830190611e9e8183602088016118c6565b01949350505050565b634e487b7160e01b600052603260045260246000fd5b600060018201611ecf57611ecf611e38565b5060010190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611f09908301846118ea565b9695505050505050565b600060208284031215611f2557600080fd5b8151610de58161189356fea264697066735822122021f77b61adca6fbf6ade82708b01e68d279e8df68b05402164567b4d0f0c0fcc64736f6c63430008110033
Deployed Bytecode Sourcemap
72890:4056:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36194:639;;;;;;;;;;-1:-1:-1;36194:639:0;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;36194:639:0;;;;;;;;37096:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;43587:218::-;;;;;;;;;;-1:-1:-1;43587:218:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1697:32:1;;;1679:51;;1667:2;1652:18;43587:218:0;1533:203:1;76159:165:0;;;;;;:::i;:::-;;:::i;:::-;;32847:323;;;;;;;;;;-1:-1:-1;33121:12:0;;32908:7;33105:13;:28;32847:323;;;2324:25:1;;;2312:2;2297:18;32847:323:0;2178:177:1;76332:171:0;;;;;;:::i;:::-;;:::i;73214:25::-;;;;;;;;;;;;;;;;2889:143;;;;;;;;;;;;2989:42;2889:143;;76511:179;;;;;;:::i;:::-;;:::i;75736:231::-;;;;;;;;;;-1:-1:-1;75736:231:0;;;;;:::i;:::-;;:::i;73017:31::-;;;;;;;;;;;;;;;;73169:32;;;;;;;;;;-1:-1:-1;73169:32:0;;;;;;;;;;;73248:106;;;;;;;;;;-1:-1:-1;73248:106:0;;;;;:::i;:::-;;:::i;74326:232::-;;;;;;;;;;-1:-1:-1;74326:232:0;;;;;:::i;:::-;;:::i;73139:23::-;;;;;;;;;;-1:-1:-1;73139:23:0;;;;;;;;38489:152;;;;;;;;;;-1:-1:-1;38489:152:0;;;;;:::i;:::-;;:::i;73725:270::-;;;;;;;;;;-1:-1:-1;73725:270:0;;;;;:::i;:::-;;:::i;34031:233::-;;;;;;;;;;-1:-1:-1;34031:233:0;;;;;:::i;:::-;;:::i;71999:103::-;;;;;;;;;;;;;:::i;74212:106::-;;;;;;;;;;-1:-1:-1;74212:106:0;;;;;:::i;:::-;;:::i;71351:87::-;;;;;;;;;;-1:-1:-1;71424:6:0;;-1:-1:-1;;;;;71424:6:0;71351:87;;74118:86;;;;;;;;;;-1:-1:-1;74118:86:0;;;;;:::i;:::-;;:::i;37272:104::-;;;;;;;;;;;;;:::i;73055:34::-;;;;;;;;;;;;;;;;74685:546;;;;;;:::i;:::-;;:::i;75975:176::-;;;;;;;;;;-1:-1:-1;75975:176:0;;;;;:::i;:::-;;:::i;74003:107::-;;;;;;;;;;-1:-1:-1;74003:107:0;;;;;:::i;:::-;;:::i;76698:245::-;;;;;;:::i;:::-;;:::i;37482:318::-;;;;;;;;;;-1:-1:-1;37482:318:0;;;;;:::i;:::-;;:::i;72979:31::-;;;;;;;;;;;;;;;;74566:111;;;;;;;;;;-1:-1:-1;74566:111:0;;;;;:::i;:::-;;:::i;73480:114::-;;;;;;;;;;-1:-1:-1;73480:114:0;;;;;:::i;:::-;;:::i;75502:226::-;;;;;;;;;;-1:-1:-1;75502:226:0;;;;;:::i;:::-;;:::i;75239:255::-;;;;;;;;;;-1:-1:-1;75239:255:0;;;;;:::i;:::-;;:::i;44536:164::-;;;;;;;;;;-1:-1:-1;44536:164:0;;;;;:::i;:::-;;:::i;73602:115::-;;;;;;;;;;-1:-1:-1;73602:115:0;;;;;:::i;:::-;;:::i;72257:201::-;;;;;;;;;;-1:-1:-1;72257:201:0;;;;;:::i;:::-;;:::i;36194:639::-;36279:4;-1:-1:-1;;;;;;;;;36603:25:0;;;;:102;;-1:-1:-1;;;;;;;;;;36680:25:0;;;36603:102;:179;;;-1:-1:-1;;;;;;;;;;36757:25:0;;;36603:179;36583:199;36194:639;-1:-1:-1;;36194:639:0:o;37096:100::-;37150:13;37183:5;37176:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;37096:100;:::o;43587:218::-;43663:7;43688:16;43696:7;43688;:16::i;:::-;43683:64;;43713:34;;-1:-1:-1;;;43713:34:0;;;;;;;;;;;43683:64;-1:-1:-1;43767:24:0;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;43767:30:0;;43587:218::o;76159:165::-;76263:8;4410:30;4431:8;4410:20;:30::i;:::-;76284:32:::1;76298:8;76308:7;76284:13;:32::i;:::-;76159:165:::0;;;:::o;76332:171::-;76441:4;-1:-1:-1;;;;;4230:18:0;;4238:10;4230:18;4226:83;;4265:32;4286:10;4265:20;:32::i;:::-;76458:37:::1;76477:4;76483:2;76487:7;76458:18;:37::i;:::-;76332:171:::0;;;;:::o;76511:179::-;76624:4;-1:-1:-1;;;;;4230:18:0;;4238:10;4230:18;4226:83;;4265:32;4286:10;4265:20;:32::i;:::-;76641:41:::1;76664:4;76670:2;76674:7;76641:22;:41::i;75736:231::-:0;71237:13;:11;:13::i;:::-;75867:38:::1;::::0;-1:-1:-1;;;75867:38:0;;75899:4:::1;75867:38;::::0;::::1;1679:51:1::0;75832:5:0;;75802:20:::1;::::0;-1:-1:-1;;;;;75867:23:0;::::1;::::0;::::1;::::0;1652:18:1;;75867:38:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;75916:43;::::0;-1:-1:-1;;;75916:43:0;;75939:10:::1;75916:43;::::0;::::1;8571:51:1::0;8638:18;;;8631:34;;;75849:56:0;;-1:-1:-1;;;;;;75916:22:0;::::1;::::0;::::1;::::0;8544:18:1;;75916:43:0::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;73248:106::-:0;71237:13;:11;:13::i;:::-;73323::::1;:23;73339:7:::0;;73323:13;:23:::1;:::i;74326:232::-:0;74459:22;;-1:-1:-1;;11133:2:1;11129:15;;;11125:53;74459:22:0;;;11113:66:1;74417:4:0;;;;11195:12:1;;74459:22:0;;;;;;;;;;;;74449:33;;;;;;74434:48;;74500:50;74519:12;;74500:50;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;74533:10:0;;;-1:-1:-1;74545:4:0;;-1:-1:-1;74500:18:0;:50::i;:::-;74493:57;74326:232;-1:-1:-1;;;;;74326:232:0:o;38489:152::-;38561:7;38604:27;38623:7;38604:18;:27::i;73725:270::-;71237:13;:11;:13::i;:::-;73818:9:::1;;73805:10;:22;73797:60;;;::::0;-1:-1:-1;;;73797:60:0;;11420:2:1;73797:60:0::1;::::0;::::1;11402:21:1::0;11459:2;11439:18;;;11432:30;11498:27;11478:18;;;11471:55;11543:18;;73797:60:0::1;;;;;;;;;73893:10;73876:13;33121:12:::0;;32908:7;33105:13;:28;;32847:323;73876:13:::1;:27;;73868:86;;;::::0;-1:-1:-1;;;73868:86:0;;11774:2:1;73868:86:0::1;::::0;::::1;11756:21:1::0;11813:2;11793:18;;;11786:30;11852:34;11832:18;;;11825:62;-1:-1:-1;;;11903:18:1;;;11896:44;11957:19;;73868:86:0::1;11572:410:1::0;73868:86:0::1;73965:9;:22:::0;73725:270::o;34031:233::-;34103:7;-1:-1:-1;;;;;34127:19:0;;34123:60;;34155:28;;-1:-1:-1;;;34155:28:0;;;;;;;;;;;34123:60;-1:-1:-1;;;;;;34201:25:0;;;;;:18;:25;;;;;;-1:-1:-1;;;;;34201:55:0;;34031:233::o;71999:103::-;71237:13;:11;:13::i;:::-;72064:30:::1;72091:1;72064:18;:30::i;:::-;71999:103::o:0;74212:106::-;71237:13;:11;:13::i;:::-;74286:10:::1;:24:::0;74212:106::o;74118:86::-;71237:13;:11;:13::i;:::-;74182:5:::1;:14:::0;74118:86::o;37272:104::-;37328:13;37361:7;37354:14;;;;;:::i;74685:546::-;74783:11;;;;74775:48;;;;-1:-1:-1;;;74775:48:0;;12189:2:1;74775:48:0;;;12171:21:1;12228:2;12208:18;;;12201:30;12267:26;12247:18;;;12240:54;12311:18;;74775:48:0;11987:348:1;74775:48:0;74869:9;;74859:6;-1:-1:-1;;;;;74842:23:0;:14;33323:7;33514:13;;33268:296;74842:14;:23;;;;:::i;:::-;:36;;74834:68;;;;-1:-1:-1;;;74834:68:0;;12804:2:1;74834:68:0;;;12786:21:1;12843:2;12823:18;;;12816:30;-1:-1:-1;;;12862:18:1;;;12855:49;12921:18;;74834:68:0;12602:343:1;74834:68:0;74922:13;;;;;;;74921:14;;:57;;;74939:39;74953:10;74965:12;;74939:13;:39::i;:::-;74913:96;;;;-1:-1:-1;;;74913:96:0;;13152:2:1;74913:96:0;;;13134:21:1;13191:2;13171:18;;;13164:30;13230:28;13210:18;;;13203:56;13276:18;;74913:96:0;12950:350:1;74913:96:0;75066:12;;75056:6;-1:-1:-1;;;;;75028:34:0;:25;75042:10;-1:-1:-1;;;;;34435:25:0;34407:7;34435:25;;;:18;:25;;28328:2;34435:25;;;;;:50;;-1:-1:-1;;;;;34434:82:0;;34346:178;75028:25;:34;;;;:::i;:::-;:50;;75020:94;;;;-1:-1:-1;;;75020:94:0;;13507:2:1;75020:94:0;;;13489:21:1;13546:2;13526:18;;;13519:30;13585:33;13565:18;;;13558:61;13636:18;;75020:94:0;13305:355:1;75020:94:0;75154:6;-1:-1:-1;;;;;75146:14:0;:5;;:14;;;;:::i;:::-;75133:9;:27;;75125:58;;;;-1:-1:-1;;;75125:58:0;;14040:2:1;75125:58:0;;;14022:21:1;14079:2;14059:18;;;14052:30;-1:-1:-1;;;14098:18:1;;;14091:48;14156:18;;75125:58:0;13838:342:1;75125:58:0;75194:29;75204:10;75216:6;-1:-1:-1;;;;;75194:29:0;:9;:29::i;75975:176::-;76079:8;4410:30;4431:8;4410:20;:30::i;:::-;76100:43:::1;76124:8;76134;76100:23;:43::i;74003:107::-:0;71237:13;:11;:13::i;:::-;74076:11:::1;:26:::0;;-1:-1:-1;;74076:26:0::1;::::0;::::1;;::::0;;;::::1;::::0;;74003:107::o;76698:245::-;76866:4;-1:-1:-1;;;;;4230:18:0;;4238:10;4230:18;4226:83;;4265:32;4286:10;4265:20;:32::i;:::-;76888:47:::1;76911:4;76917:2;76921:7;76930:4;76888:22;:47::i;:::-;76698:245:::0;;;;;:::o;37482:318::-;37555:13;37586:16;37594:7;37586;:16::i;:::-;37581:59;;37611:29;;-1:-1:-1;;;37611:29:0;;;;;;;;;;;37581:59;37653:21;37677:10;:8;:10::i;:::-;37653:34;;37711:7;37705:21;37730:1;37705:26;:87;;;;;;;;;;;;;;;;;37758:7;37767:18;37777:7;37767:9;:18::i;:::-;37741:45;;;;;;;;;:::i;:::-;;;;;;;;;;;;;37705:87;37698:94;37482:318;-1:-1:-1;;;37482:318:0:o;74566:111::-;-1:-1:-1;;;;;34435:25:0;;74623:7;34435:25;;;:18;:25;;28328:2;34435:25;;;;-1:-1:-1;;;;;34435:50:0;;34434:82;74650:19;34346:178;73480:114;71237:13;:11;:13::i;:::-;73558:12:::1;:28:::0;73480:114::o;75502:226::-;71237:13;:11;:13::i;:::-;75638:36:::1;::::0;75583:21:::1;::::0;75565:15:::1;::::0;-1:-1:-1;;;;;75638:16:0;::::1;::::0;75583:21;;75565:15;75638:36;75565:15;75638:36;75583:21;75638:16;:36:::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;75615:59;;;75693:11;75685:35;;;::::0;-1:-1:-1;;;75685:35:0;;15098:2:1;75685:35:0::1;::::0;::::1;15080:21:1::0;15137:2;15117:18;;;15110:30;-1:-1:-1;;;15156:18:1;;;15149:41;15207:18;;75685:35:0::1;14896:335:1::0;75239:255:0;71237:13;:11;:13::i;:::-;75351:9:::1;;75341:6;75324:14;33323:7:::0;33514:13;;33268:296;75324:14:::1;:23;;;;:::i;:::-;:36;;75316:68;;;::::0;-1:-1:-1;;;75316:68:0;;12804:2:1;75316:68:0::1;::::0;::::1;12786:21:1::0;12843:2;12823:18;;;12816:30;-1:-1:-1;;;12862:18:1;;;12855:49;12921:18;;75316:68:0::1;12602:343:1::0;75316:68:0::1;75413:3;75403:6;:13;;75395:59;;;::::0;-1:-1:-1;;;75395:59:0;;15438:2:1;75395:59:0::1;::::0;::::1;15420:21:1::0;15477:2;15457:18;;;15450:30;15516:34;15496:18;;;15489:62;-1:-1:-1;;;15567:18:1;;;15560:31;15608:19;;75395:59:0::1;15236:397:1::0;75395:59:0::1;75465:21;75475:2;75479:6;75465:9;:21::i;:::-;75239:255:::0;;:::o;44536:164::-;-1:-1:-1;;;;;44657:25:0;;;44633:4;44657:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;44536:164::o;73602:115::-;71237:13;:11;:13::i;:::-;73679::::1;:30:::0;;;::::1;;;;-1:-1:-1::0;;73679:30:0;;::::1;::::0;;;::::1;::::0;;73602:115::o;72257:201::-;71237:13;:11;:13::i;:::-;-1:-1:-1;;;;;72346:22:0;::::1;72338:73;;;::::0;-1:-1:-1;;;72338:73:0;;15840:2:1;72338:73:0::1;::::0;::::1;15822:21:1::0;15879:2;15859:18;;;15852:30;15918:34;15898:18;;;15891:62;-1:-1:-1;;;15969:18:1;;;15962:36;16015:19;;72338:73:0::1;15638:402:1::0;72338:73:0::1;72422:28;72441:8;72422:18;:28::i;:::-;72257:201:::0;:::o;44958:282::-;45023:4;45113:13;;45103:7;:23;45060:153;;;;-1:-1:-1;;45164:26:0;;;;:17;:26;;;;;;-1:-1:-1;;;45164:44:0;:49;;44958:282::o;4468:419::-;2989:42;4659:45;:49;4655:225;;4730:67;;-1:-1:-1;;;4730:67:0;;4781:4;4730:67;;;16257:34:1;-1:-1:-1;;;;;16327:15:1;;16307:18;;;16300:43;2989:42:0;;4730;;16192:18:1;;4730:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;4725:144;;4825:28;;-1:-1:-1;;;4825:28:0;;-1:-1:-1;;;;;1697:32:1;;4825:28:0;;;1679:51:1;1652:18;;4825:28:0;1533:203:1;43020:408:0;43109:13;43125:16;43133:7;43125;:16::i;:::-;43109:32;-1:-1:-1;67353:10:0;-1:-1:-1;;;;;43158:28:0;;;43154:175;;43206:44;43223:5;67353:10;44536:164;:::i;43206:44::-;43201:128;;43278:35;;-1:-1:-1;;;43278:35:0;;;;;;;;;;;43201:128;43341:24;;;;:15;:24;;;;;;:35;;-1:-1:-1;;;;;;43341:35:0;-1:-1:-1;;;;;43341:35:0;;;;;;;;;43392:28;;43341:24;;43392:28;;;;;;;43098:330;43020:408;;:::o;47226:2825::-;47368:27;47398;47417:7;47398:18;:27::i;:::-;47368:57;;47483:4;-1:-1:-1;;;;;47442:45:0;47458:19;-1:-1:-1;;;;;47442:45:0;;47438:86;;47496:28;;-1:-1:-1;;;47496:28:0;;;;;;;;;;;47438:86;47538:27;46334:24;;;:15;:24;;;;;46562:26;;67353:10;45959:30;;;-1:-1:-1;;;;;45652:28:0;;45937:20;;;45934:56;47724:180;;47817:43;47834:4;67353:10;44536:164;:::i;47817:43::-;47812:92;;47869:35;;-1:-1:-1;;;47869:35:0;;;;;;;;;;;47812:92;-1:-1:-1;;;;;47921:16:0;;47917:52;;47946:23;;-1:-1:-1;;;47946:23:0;;;;;;;;;;;47917:52;48118:15;48115:160;;;48258:1;48237:19;48230:30;48115:160;-1:-1:-1;;;;;48655:24:0;;;;;;;:18;:24;;;;;;48653:26;;-1:-1:-1;;48653:26:0;;;48724:22;;;;;;;;;48722:24;;-1:-1:-1;48722:24:0;;;41878:11;41853:23;41849:41;41836:63;-1:-1:-1;;;41836:63:0;49017:26;;;;:17;:26;;;;;:175;;;;-1:-1:-1;;;49312:47:0;;:52;;49308:627;;49417:1;49407:11;;49385:19;49540:30;;;:17;:30;;;;;;:35;;49536:384;;49678:13;;49663:11;:28;49659:242;;49825:30;;;;:17;:30;;;;;:52;;;49659:242;49366:569;49308:627;49982:7;49978:2;-1:-1:-1;;;;;49963:27:0;49972:4;-1:-1:-1;;;;;49963:27:0;;;;;;;;;;;50001:42;47357:2694;;;47226:2825;;;:::o;50147:193::-;50293:39;50310:4;50316:2;50320:7;50293:39;;;;;;;;;;;;:16;:39::i;71516:132::-;71424:6;;-1:-1:-1;;;;;71424:6:0;67353:10;71580:23;71572:68;;;;-1:-1:-1;;;71572:68:0;;16556:2:1;71572:68:0;;;16538:21:1;;;16575:18;;;16568:30;16634:34;16614:18;;;16607:62;16686:18;;71572:68:0;16354:356:1;9469:190:0;9594:4;9647;9618:25;9631:5;9638:4;9618:12;:25::i;:::-;:33;;9469:190;-1:-1:-1;;;;9469:190:0:o;39644:1275::-;39711:7;39746;39848:13;;39841:4;:20;39837:1015;;;39886:14;39903:23;;;:17;:23;;;;;;;-1:-1:-1;;;39992:24:0;;:29;;39988:845;;40657:113;40664:6;40674:1;40664:11;40657:113;;-1:-1:-1;;;40735:6:0;40717:25;;;;:17;:25;;;;;;40657:113;;39988:845;39863:989;39837:1015;40880:31;;-1:-1:-1;;;40880:31:0;;;;;;;;;;;72618:191;72711:6;;;-1:-1:-1;;;;;72728:17:0;;;-1:-1:-1;;;;;;72728:17:0;;;;;;;72761:40;;72711:6;;;72728:17;72711:6;;72761:40;;72692:16;;72761:40;72681:128;72618:191;:::o;61098:112::-;61175:27;61185:2;61189:8;61175:27;;;;;;;;;;;;:9;:27::i;44145:234::-;67353:10;44240:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;44240:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;44240:60:0;;;;;;;;;;44316:55;;540:41:1;;;44240:49:0;;67353:10;44316:55;;513:18:1;44316:55:0;;;;;;;44145:234;;:::o;50938:407::-;51113:31;51126:4;51132:2;51136:7;51113:12;:31::i;:::-;-1:-1:-1;;;;;51159:14:0;;;:19;51155:183;;51198:56;51229:4;51235:2;51239:7;51248:5;51198:30;:56::i;:::-;51193:145;;51282:40;;-1:-1:-1;;;51282:40:0;;;;;;;;;;;73362:106;73414:13;73447;73440:20;;;;;:::i;67473:1745::-;67538:17;67972:4;67965;67959:11;67955:22;68064:1;68058:4;68051:15;68139:4;68136:1;68132:12;68125:19;;;68221:1;68216:3;68209:14;68325:3;68564:5;68546:428;68612:1;68607:3;68603:11;68596:18;;68783:2;68777:4;68773:13;68769:2;68765:22;68760:3;68752:36;68877:2;68867:13;;68934:25;68546:428;68934:25;-1:-1:-1;69004:13:0;;;-1:-1:-1;;69119:14:0;;;69181:19;;;69119:14;67473:1745;-1:-1:-1;67473:1745:0:o;10336:296::-;10419:7;10462:4;10419:7;10477:118;10501:5;:12;10497:1;:16;10477:118;;;10550:33;10560:12;10574:5;10580:1;10574:8;;;;;;;;:::i;:::-;;;;;;;10550:9;:33::i;:::-;10535:48;-1:-1:-1;10515:3:0;;;;:::i;:::-;;;;10477:118;;;-1:-1:-1;10612:12:0;10336:296;-1:-1:-1;;;10336:296:0:o;60325:689::-;60456:19;60462:2;60466:8;60456:5;:19::i;:::-;-1:-1:-1;;;;;60517:14:0;;;:19;60513:483;;60557:11;60571:13;60619:14;;;60652:233;60683:62;60722:1;60726:2;60730:7;;;;;;60739:5;60683:30;:62::i;:::-;60678:167;;60781:40;;-1:-1:-1;;;60781:40:0;;;;;;;;;;;60678:167;60880:3;60872:5;:11;60652:233;;60967:3;60950:13;;:20;60946:34;;60972:8;;;53429:716;53613:88;;-1:-1:-1;;;53613:88:0;;53592:4;;-1:-1:-1;;;;;53613:45:0;;;;;:88;;67353:10;;53680:4;;53686:7;;53695:5;;53613:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;53613:88:0;;;;;;;;-1:-1:-1;;53613:88:0;;;;;;;;;;;;:::i;:::-;;;53609:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;53896:6;:13;53913:1;53896:18;53892:235;;53942:40;;-1:-1:-1;;;53942:40:0;;;;;;;;;;;53892:235;54085:6;54079:13;54070:6;54066:2;54062:15;54055:38;53609:529;-1:-1:-1;;;;;;53772:64:0;-1:-1:-1;;;53772:64:0;;-1:-1:-1;53429:716:0;;;;;;:::o;17376:149::-;17439:7;17470:1;17466;:5;:51;;17601:13;17695:15;;;17731:4;17724:15;;;17778:4;17762:21;;17466:51;;;-1:-1:-1;17601:13:0;17695:15;;;17731:4;17724:15;17778:4;17762:21;;;17376:149::o;54607:2966::-;54680:20;54703:13;;;54731;;;54727:44;;54753:18;;-1:-1:-1;;;54753:18:0;;;;;;;;;;;54727:44;-1:-1:-1;;;;;55259:22:0;;;;;;:18;:22;;;;28328:2;55259:22;;;:71;;55297:32;55285:45;;55259:71;;;55573:31;;;:17;:31;;;;;-1:-1:-1;42309:15:0;;42283:24;42279:46;41878:11;41853:23;41849:41;41846:52;41836:63;;55573:173;;55808:23;;;;55573:31;;55259:22;;56573:25;55259:22;;56426:335;57087:1;57073:12;57069:20;57027:346;57128:3;57119:7;57116:16;57027:346;;57346:7;57336:8;57333:1;57306:25;57303:1;57300;57295:59;57181:1;57168:15;57027:346;;;57031:77;57406:8;57418:1;57406:13;57402:45;;57428:19;;-1:-1:-1;;;57428:19:0;;;;;;;;;;;57402:45;57464:13;:19;-1:-1:-1;76159:165:0;;;:::o;14:131:1:-;-1:-1:-1;;;;;;88:32:1;;78:43;;68:71;;135:1;132;125:12;150:245;208:6;261:2;249:9;240:7;236:23;232:32;229:52;;;277:1;274;267:12;229:52;316:9;303:23;335:30;359:5;335:30;:::i;592:250::-;677:1;687:113;701:6;698:1;695:13;687:113;;;777:11;;;771:18;758:11;;;751:39;723:2;716:10;687:113;;;-1:-1:-1;;834:1:1;816:16;;809:27;592:250::o;847:271::-;889:3;927:5;921:12;954:6;949:3;942:19;970:76;1039:6;1032:4;1027:3;1023:14;1016:4;1009:5;1005:16;970:76;:::i;:::-;1100:2;1079:15;-1:-1:-1;;1075:29:1;1066:39;;;;1107:4;1062:50;;847:271;-1:-1:-1;;847:271:1:o;1123:220::-;1272:2;1261:9;1254:21;1235:4;1292:45;1333:2;1322:9;1318:18;1310:6;1292:45;:::i;1348:180::-;1407:6;1460:2;1448:9;1439:7;1435:23;1431:32;1428:52;;;1476:1;1473;1466:12;1428:52;-1:-1:-1;1499:23:1;;1348:180;-1:-1:-1;1348:180:1:o;1741:173::-;1809:20;;-1:-1:-1;;;;;1858:31:1;;1848:42;;1838:70;;1904:1;1901;1894:12;1838:70;1741:173;;;:::o;1919:254::-;1987:6;1995;2048:2;2036:9;2027:7;2023:23;2019:32;2016:52;;;2064:1;2061;2054:12;2016:52;2087:29;2106:9;2087:29;:::i;:::-;2077:39;2163:2;2148:18;;;;2135:32;;-1:-1:-1;;;1919:254:1:o;2360:328::-;2437:6;2445;2453;2506:2;2494:9;2485:7;2481:23;2477:32;2474:52;;;2522:1;2519;2512:12;2474:52;2545:29;2564:9;2545:29;:::i;:::-;2535:39;;2593:38;2627:2;2616:9;2612:18;2593:38;:::i;:::-;2583:48;;2678:2;2667:9;2663:18;2650:32;2640:42;;2360:328;;;;;:::o;3114:186::-;3173:6;3226:2;3214:9;3205:7;3201:23;3197:32;3194:52;;;3242:1;3239;3232:12;3194:52;3265:29;3284:9;3265:29;:::i;3305:592::-;3376:6;3384;3437:2;3425:9;3416:7;3412:23;3408:32;3405:52;;;3453:1;3450;3443:12;3405:52;3493:9;3480:23;-1:-1:-1;;;;;3563:2:1;3555:6;3552:14;3549:34;;;3579:1;3576;3569:12;3549:34;3617:6;3606:9;3602:22;3592:32;;3662:7;3655:4;3651:2;3647:13;3643:27;3633:55;;3684:1;3681;3674:12;3633:55;3724:2;3711:16;3750:2;3742:6;3739:14;3736:34;;;3766:1;3763;3756:12;3736:34;3811:7;3806:2;3797:6;3793:2;3789:15;3785:24;3782:37;3779:57;;;3832:1;3829;3822:12;3779:57;3863:2;3855:11;;;;;3885:6;;-1:-1:-1;3305:592:1;;-1:-1:-1;;;;3305:592:1:o;3902:367::-;3965:8;3975:6;4029:3;4022:4;4014:6;4010:17;4006:27;3996:55;;4047:1;4044;4037:12;3996:55;-1:-1:-1;4070:20:1;;-1:-1:-1;;;;;4102:30:1;;4099:50;;;4145:1;4142;4135:12;4099:50;4182:4;4174:6;4170:17;4158:29;;4242:3;4235:4;4225:6;4222:1;4218:14;4210:6;4206:27;4202:38;4199:47;4196:67;;;4259:1;4256;4249:12;4196:67;3902:367;;;;;:::o;4274:511::-;4369:6;4377;4385;4438:2;4426:9;4417:7;4413:23;4409:32;4406:52;;;4454:1;4451;4444:12;4406:52;4477:29;4496:9;4477:29;:::i;:::-;4467:39;;4557:2;4546:9;4542:18;4529:32;-1:-1:-1;;;;;4576:6:1;4573:30;4570:50;;;4616:1;4613;4606:12;4570:50;4655:70;4717:7;4708:6;4697:9;4693:22;4655:70;:::i;:::-;4274:511;;4744:8;;-1:-1:-1;4629:96:1;;-1:-1:-1;;;;4274:511:1:o;4975:614::-;5069:6;5077;5085;5138:2;5126:9;5117:7;5113:23;5109:32;5106:52;;;5154:1;5151;5144:12;5106:52;5193:9;5180:23;-1:-1:-1;;;;;5280:2:1;5273:5;5269:14;5262:5;5259:25;5249:53;;5298:1;5295;5288:12;5249:53;5321:5;;-1:-1:-1;5377:2:1;5362:18;;5349:32;;5393:14;;;5390:34;;;5420:1;5417;5410:12;5390:34;;5459:70;5521:7;5512:6;5501:9;5497:22;5459:70;:::i;5594:118::-;5680:5;5673:13;5666:21;5659:5;5656:32;5646:60;;5702:1;5699;5692:12;5717:315;5782:6;5790;5843:2;5831:9;5822:7;5818:23;5814:32;5811:52;;;5859:1;5856;5849:12;5811:52;5882:29;5901:9;5882:29;:::i;:::-;5872:39;;5961:2;5950:9;5946:18;5933:32;5974:28;5996:5;5974:28;:::i;:::-;6021:5;6011:15;;;5717:315;;;;;:::o;6037:241::-;6093:6;6146:2;6134:9;6125:7;6121:23;6117:32;6114:52;;;6162:1;6159;6152:12;6114:52;6201:9;6188:23;6220:28;6242:5;6220:28;:::i;6283:127::-;6344:10;6339:3;6335:20;6332:1;6325:31;6375:4;6372:1;6365:15;6399:4;6396:1;6389:15;6415:1138;6510:6;6518;6526;6534;6587:3;6575:9;6566:7;6562:23;6558:33;6555:53;;;6604:1;6601;6594:12;6555:53;6627:29;6646:9;6627:29;:::i;:::-;6617:39;;6675:38;6709:2;6698:9;6694:18;6675:38;:::i;:::-;6665:48;;6760:2;6749:9;6745:18;6732:32;6722:42;;6815:2;6804:9;6800:18;6787:32;-1:-1:-1;;;;;6879:2:1;6871:6;6868:14;6865:34;;;6895:1;6892;6885:12;6865:34;6933:6;6922:9;6918:22;6908:32;;6978:7;6971:4;6967:2;6963:13;6959:27;6949:55;;7000:1;6997;6990:12;6949:55;7036:2;7023:16;7058:2;7054;7051:10;7048:36;;;7064:18;;:::i;:::-;7139:2;7133:9;7107:2;7193:13;;-1:-1:-1;;7189:22:1;;;7213:2;7185:31;7181:40;7169:53;;;7237:18;;;7257:22;;;7234:46;7231:72;;;7283:18;;:::i;:::-;7323:10;7319:2;7312:22;7358:2;7350:6;7343:18;7398:7;7393:2;7388;7384;7380:11;7376:20;7373:33;7370:53;;;7419:1;7416;7409:12;7370:53;7475:2;7470;7466;7462:11;7457:2;7449:6;7445:15;7432:46;7520:1;7515:2;7510;7502:6;7498:15;7494:24;7487:35;7541:6;7531:16;;;;;;;6415:1138;;;;;;;:::o;7558:260::-;7626:6;7634;7687:2;7675:9;7666:7;7662:23;7658:32;7655:52;;;7703:1;7700;7693:12;7655:52;7726:29;7745:9;7726:29;:::i;:::-;7716:39;;7774:38;7808:2;7797:9;7793:18;7774:38;:::i;:::-;7764:48;;7558:260;;;;;:::o;7823:380::-;7902:1;7898:12;;;;7945;;;7966:61;;8020:4;8012:6;8008:17;7998:27;;7966:61;8073:2;8065:6;8062:14;8042:18;8039:38;8036:161;;8119:10;8114:3;8110:20;8107:1;8100:31;8154:4;8151:1;8144:15;8182:4;8179:1;8172:15;8036:161;;7823:380;;;:::o;8208:184::-;8278:6;8331:2;8319:9;8310:7;8306:23;8302:32;8299:52;;;8347:1;8344;8337:12;8299:52;-1:-1:-1;8370:16:1;;8208:184;-1:-1:-1;8208:184:1:o;8676:245::-;8743:6;8796:2;8784:9;8775:7;8771:23;8767:32;8764:52;;;8812:1;8809;8802:12;8764:52;8844:9;8838:16;8863:28;8885:5;8863:28;:::i;9052:545::-;9154:2;9149:3;9146:11;9143:448;;;9190:1;9215:5;9211:2;9204:17;9260:4;9256:2;9246:19;9330:2;9318:10;9314:19;9311:1;9307:27;9301:4;9297:38;9366:4;9354:10;9351:20;9348:47;;;-1:-1:-1;9389:4:1;9348:47;9444:2;9439:3;9435:12;9432:1;9428:20;9422:4;9418:31;9408:41;;9499:82;9517:2;9510:5;9507:13;9499:82;;;9562:17;;;9543:1;9532:13;9499:82;;9773:1206;-1:-1:-1;;;;;9892:3:1;9889:27;9886:53;;;9919:18;;:::i;:::-;9948:94;10038:3;9998:38;10030:4;10024:11;9998:38;:::i;:::-;9992:4;9948:94;:::i;:::-;10068:1;10093:2;10088:3;10085:11;10110:1;10105:616;;;;10765:1;10782:3;10779:93;;;-1:-1:-1;10838:19:1;;;10825:33;10779:93;-1:-1:-1;;9730:1:1;9726:11;;;9722:24;9718:29;9708:40;9754:1;9750:11;;;9705:57;10885:78;;10078:895;;10105:616;8999:1;8992:14;;;9036:4;9023:18;;-1:-1:-1;;10141:17:1;;;10242:9;10264:229;10278:7;10275:1;10272:14;10264:229;;;10367:19;;;10354:33;10339:49;;10474:4;10459:20;;;;10427:1;10415:14;;;;10294:12;10264:229;;;10268:3;10521;10512:7;10509:16;10506:159;;;10645:1;10641:6;10635:3;10629;10626:1;10622:11;10618:21;10614:34;10610:39;10597:9;10592:3;10588:19;10575:33;10571:79;10563:6;10556:95;10506:159;;;10708:1;10702:3;10699:1;10695:11;10691:19;10685:4;10678:33;10078:895;;9773:1206;;;:::o;12340:127::-;12401:10;12396:3;12392:20;12389:1;12382:31;12432:4;12429:1;12422:15;12456:4;12453:1;12446:15;12472:125;12537:9;;;12558:10;;;12555:36;;;12571:18;;:::i;13665:168::-;13738:9;;;13769;;13786:15;;;13780:22;;13766:37;13756:71;;13807:18;;:::i;14185:496::-;14364:3;14402:6;14396:13;14418:66;14477:6;14472:3;14465:4;14457:6;14453:17;14418:66;:::i;:::-;14547:13;;14506:16;;;;14569:70;14547:13;14506:16;14616:4;14604:17;;14569:70;:::i;:::-;14655:20;;14185:496;-1:-1:-1;;;;14185:496:1:o;16715:127::-;16776:10;16771:3;16767:20;16764:1;16757:31;16807:4;16804:1;16797:15;16831:4;16828:1;16821:15;16847:135;16886:3;16907:17;;;16904:43;;16927:18;;:::i;:::-;-1:-1:-1;16974:1:1;16963:13;;16847:135::o;16987:489::-;-1:-1:-1;;;;;17256:15:1;;;17238:34;;17308:15;;17303:2;17288:18;;17281:43;17355:2;17340:18;;17333:34;;;17403:3;17398:2;17383:18;;17376:31;;;17181:4;;17424:46;;17450:19;;17442:6;17424:46;:::i;:::-;17416:54;16987:489;-1:-1:-1;;;;;;16987:489:1:o;17481:249::-;17550:6;17603:2;17591:9;17582:7;17578:23;17574:32;17571:52;;;17619:1;17616;17609:12;17571:52;17651:9;17645:16;17670:30;17694:5;17670:30;:::i
Swarm Source
ipfs://21f77b61adca6fbf6ade82708b01e68d279e8df68b05402164567b4d0f0c0fcc
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.