Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 1 internal transaction
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
18652784 | 240 days ago | 0.03 ETH |
Loading...
Loading
Contract Name:
Ageo3rd
Compiler Version
v0.8.17+commit.8df45f5f
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-11-26 */ // SPDX-License-Identifier: MIT pragma solidity >=0.8.17; // OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol) /** * @dev These functions deal with verification of Merkle Tree proofs. * * The tree and the proofs can be generated using our * https://github.com/OpenZeppelin/merkle-tree[JavaScript library]. * You will find a quickstart guide in the readme. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. * OpenZeppelin's JavaScript library generates merkle trees that are safe * against this attack out of the box. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false * respectively. * * CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer). * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function 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) } } } // ERC721A Contracts v4.2.3 // Creator: Chiru Labs // ERC721A Contracts v4.2.3 // Creator: Chiru Labs // ERC721A Contracts v4.2.3 // Creator: Chiru Labs /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the * ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables * (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, * checking first that contract recipients are aware of the ERC721 protocol * to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move * this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external payable; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Transfers `tokenId` from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} * whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external payable; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); } /** * @dev Interface of ERC721AQueryable. */ interface IERC721AQueryable is IERC721A { /** * Invalid query range (`start` >= `stop`). */ error InvalidQueryRange(); /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * * - `addr = address(0)` * - `startTimestamp = 0` * - `burned = false` * - `extraData = 0` * * If the `tokenId` is burned: * * - `addr = <Address of owner before token was burned>` * - `startTimestamp = <Timestamp when token was burned>` * - `burned = true` * - `extraData = <Extra data when token was burned>` * * Otherwise: * * - `addr = <Address of owner>` * - `startTimestamp = <Timestamp of start of ownership>` * - `burned = false` * - `extraData = <Extra data at start of ownership>` */ function explicitOwnershipOf(uint256 tokenId) external view returns (TokenOwnership memory); /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] memory tokenIds) external view returns (TokenOwnership[] memory); /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start < stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view returns (uint256[] memory); /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(`totalSupply`) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K collections should be fine). */ function tokensOfOwner(address owner) external view returns (uint256[] memory); } // ERC721A Contracts v4.2.3 // Creator: Chiru Labs /** * @dev Interface of ERC721 token receiver. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @title ERC721A * * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) * Non-Fungible Token Standard, including the Metadata extension. * Optimized for lower gas during batch mints. * * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) * starting from `_startTokenId()`. * * Assumptions: * * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364). struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // Mask of an entry in packed address data. uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant _BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant _BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant _BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant _BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant _BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant _BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant _BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with {_mintERC2309}. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309} // is required to cause an overflow, which is unrealistic. uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See {_packedOwnershipOf} implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view virtual returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() public view virtual override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) public view virtual override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> _BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal virtual { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); _packedAddressData[owner] = packed; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes // of the XOR of all function selectors in the interface. // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165) // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`) return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & _BITMASK_BURNED == 0) { // Invariant: // There will always be an initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `curr` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP); ownership.burned = packed & _BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) public payable virtual override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId].value; } /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) public virtual override { _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned. } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) public payable virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public payable virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public payable virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Hook that is called before a set of serially-ordered token IDs * are about to be transferred. This includes minting. * And also called before burning one token. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token IDs * have been transferred. This includes minting. * And also called after one token has been burned. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 toMasked; uint256 end = startTokenId + quantity; // Use assembly to loop and emit the `Transfer` event for gas savings. // The duplicated `log4` removes an extra check and reduces stack juggling. // The assembly, together with the surrounding Solidity code, have been // delicately arranged to nudge the compiler into producing optimized opcodes. assembly { // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. toMasked := and(to, _BITMASK_ADDRESS) // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. startTokenId // `tokenId`. ) // The `iszero(eq(,))` check ensures that large values of `quantity` // that overflows uint256 will make the loop run out of gas. // The compiler will optimize the `iszero` away for performance. for { let tokenId := add(startTokenId, 1) } iszero(eq(tokenId, end)) { tokenId := add(tokenId, 1) } { // Emit the `Transfer` event. Similar to above. log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId) } } if (toMasked == 0) revert MintToZeroAddress(); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString(uint256 value) internal pure virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), but // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned. // We will need 1 word for the trailing zeros padding, 1 word for the length, // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0. let m := add(mload(0x40), 0xa0) // Update the free memory pointer to allocate. mstore(0x40, m) // Assign the `str` to the end. str := sub(m, 0x20) // Zeroize the slot after the string. mstore(str, 0) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } } /** * @title ERC721AQueryable. * * @dev ERC721A subclass with convenience query functions. */ abstract contract ERC721AQueryable is ERC721A, IERC721AQueryable { /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * * - `addr = address(0)` * - `startTimestamp = 0` * - `burned = false` * - `extraData = 0` * * If the `tokenId` is burned: * * - `addr = <Address of owner before token was burned>` * - `startTimestamp = <Timestamp when token was burned>` * - `burned = true` * - `extraData = <Extra data when token was burned>` * * Otherwise: * * - `addr = <Address of owner>` * - `startTimestamp = <Timestamp of start of ownership>` * - `burned = false` * - `extraData = <Extra data at start of ownership>` */ function explicitOwnershipOf(uint256 tokenId) public view virtual override returns (TokenOwnership memory) { TokenOwnership memory ownership; if (tokenId < _startTokenId() || tokenId >= _nextTokenId()) { return ownership; } ownership = _ownershipAt(tokenId); if (ownership.burned) { return ownership; } return _ownershipOf(tokenId); } /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] calldata tokenIds) external view virtual override returns (TokenOwnership[] memory) { unchecked { uint256 tokenIdsLength = tokenIds.length; TokenOwnership[] memory ownerships = new TokenOwnership[](tokenIdsLength); for (uint256 i; i != tokenIdsLength; ++i) { ownerships[i] = explicitOwnershipOf(tokenIds[i]); } return ownerships; } } /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start < stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view virtual override returns (uint256[] memory) { unchecked { if (start >= stop) revert InvalidQueryRange(); uint256 tokenIdsIdx; uint256 stopLimit = _nextTokenId(); // Set `start = max(start, _startTokenId())`. if (start < _startTokenId()) { start = _startTokenId(); } // Set `stop = min(stop, stopLimit)`. if (stop > stopLimit) { stop = stopLimit; } uint256 tokenIdsMaxLength = balanceOf(owner); // Set `tokenIdsMaxLength = min(balanceOf(owner), stop - start)`, // to cater for cases where `balanceOf(owner)` is too big. if (start < stop) { uint256 rangeLength = stop - start; if (rangeLength < tokenIdsMaxLength) { tokenIdsMaxLength = rangeLength; } } else { tokenIdsMaxLength = 0; } uint256[] memory tokenIds = new uint256[](tokenIdsMaxLength); if (tokenIdsMaxLength == 0) { return tokenIds; } // We need to call `explicitOwnershipOf(start)`, // because the slot at `start` may not be initialized. TokenOwnership memory ownership = explicitOwnershipOf(start); address currOwnershipAddr; // If the starting slot exists (i.e. not burned), initialize `currOwnershipAddr`. // `ownership.address` will not be zero, as `start` is clamped to the valid token ID range. if (!ownership.burned) { currOwnershipAddr = ownership.addr; } for (uint256 i = start; i != stop && tokenIdsIdx != tokenIdsMaxLength; ++i) { ownership = _ownershipAt(i); if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } // Downsize the array to fit. assembly { mstore(tokenIds, tokenIdsIdx) } return tokenIds; } } /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(`totalSupply`) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K collections should be fine). */ function tokensOfOwner(address owner) external view virtual override returns (uint256[] memory) { unchecked { uint256 tokenIdsIdx; address currOwnershipAddr; uint256 tokenIdsLength = balanceOf(owner); uint256[] memory tokenIds = new uint256[](tokenIdsLength); TokenOwnership memory ownership; for (uint256 i = _startTokenId(); tokenIdsIdx != tokenIdsLength; ++i) { ownership = _ownershipAt(i); if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } return tokenIds; } } } // OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol) // OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol) // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); } /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); } // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } } /** * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the * fee is specified in basis points by default. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC2981 is IERC2981, ERC165 { struct RoyaltyInfo { address receiver; uint96 royaltyFraction; } RoyaltyInfo private _defaultRoyaltyInfo; mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @inheritdoc IERC2981 */ function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) { RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator(); return (royalty.receiver, royaltyAmount); } /** * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an * override. */ function _feeDenominator() internal pure virtual returns (uint96) { return 10000; } /** * @dev Sets the royalty information that all ids in this contract will default to. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: invalid receiver"); _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Removes default royalty information. */ function _deleteDefaultRoyalty() internal virtual { delete _defaultRoyaltyInfo; } /** * @dev Sets the royalty information for a specific token id, overriding the global default. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setTokenRoyalty( uint256 tokenId, address receiver, uint96 feeNumerator ) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: Invalid parameters"); _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Resets royalty information for the token id back to the global default. */ function _resetTokenRoyalty(uint256 tokenId) internal virtual { delete _tokenRoyaltyInfo[tokenId]; } } /// @title EIP-721 Metadata Update Extension interface IERC4906 { /// @dev This event emits when the metadata of a token is changed. /// So that the third-party platforms such as NFT market could /// timely update the images and related attributes of the NFT. event MetadataUpdate(uint256 _tokenId); /// @dev This event emits when the metadata of a range of tokens is changed. /// So that the third-party platforms such as NFT market could /// timely update the images and related attributes of the NFTs. event BatchMetadataUpdate(uint256 _fromTokenId, uint256 _toTokenId); } // OpenZeppelin Contracts (last updated v4.7.0) (access/AccessControl.sol) // OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol) /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; } // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) // OpenZeppelin Contracts (last updated v4.7.0) (utils/math/Math.sol) /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0); } } } /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } } /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view virtual override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `_msgSender()` is missing `role`. * Overriding this function changes the behavior of the {onlyRole} modifier. * * Format of the revert message is described in {_checkRole}. * * _Available since v4.6._ */ function _checkRole(bytes32 role) internal view virtual { _checkRole(role, _msgSender()); } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view virtual { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(account), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. * * May emit a {RoleGranted} event. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. * * May emit a {RoleRevoked} event. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. * * May emit a {RoleRevoked} event. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * May emit a {RoleGranted} event. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. * * May emit a {RoleGranted} event. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. * * May emit a {RoleRevoked} event. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } } enum TicketID { SponsorA, SponsorB, SponsorC, Rare, Uncommon, Common, FreeMint } enum PresalePhaseID { HolderSale, FreeMint, AllowList } error PreMaxExceed(uint256 _presaleMax); error MaxSupplyOver(); error NotEnoughFunds(uint256 balance); error NotMintable(); error InvalidMerkleProof(); error AlreadyClaimedMax(); error MintAmountOver(); contract Ageo3rd is ERC721A, IERC4906, ERC2981, ERC721AQueryable, AccessControl { string private constant BASE_EXTENSION = ".json"; bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); bytes32 public constant PIE_ROLE = keccak256("PIE_ROLE"); bool public publicSale = false; bool public mintable = true; bool public renounceOwnerMintFlag = false; bool public revealed = false; bool public transferAble = false; string private baseURI = "https://arweave.net/k71TMEyQw3VgvfrxXS91FjsotHA5dE4-xRwvl1vmsdE/"; mapping(PresalePhaseID => bool) public presalePhase; mapping(TicketID => uint256) public nftCost; mapping(TicketID => uint256) public maxSupply; mapping(TicketID => uint256) public totalSupplyCategory; mapping(PresalePhaseID => bytes32) public merkleRoot; mapping(TicketID => string) public notRevealedURI; mapping(uint256 => string) private metadataURI; mapping(PresalePhaseID => mapping(address => uint256)) public whiteListClaimed; mapping(uint256 => TicketID) public tokenCategory; constructor() ERC721A("Ageo3rd", "Ageo3rd") { _grantRole(DEFAULT_ADMIN_ROLE, _msgSender()); _grantRole(MINTER_ROLE, _msgSender()); nftCost[TicketID.SponsorA] = 1 ether; nftCost[TicketID.SponsorB] = 1 ether; nftCost[TicketID.SponsorC] = 1 ether; nftCost[TicketID.Rare] = 0.2 ether; nftCost[TicketID.Uncommon] = 0.1 ether; nftCost[TicketID.Common] = 0.03 ether; maxSupply[TicketID.SponsorA] = 5; maxSupply[TicketID.SponsorB] = 5; maxSupply[TicketID.SponsorC] = 5; maxSupply[TicketID.Rare] = 35; maxSupply[TicketID.Uncommon] = 120; maxSupply[TicketID.Common] = 774; maxSupply[TicketID.FreeMint] = 46; presalePhase[PresalePhaseID.HolderSale] = true; notRevealedURI[TicketID.Common] = "ar://xmpuTV8BzVcQdHJ2ldsc5s5JjFxxSY3V3DnLWJTSjHg"; notRevealedURI[TicketID.FreeMint] = "ar://xmpuTV8BzVcQdHJ2ldsc5s5JjFxxSY3V3DnLWJTSjHg"; notRevealedURI[TicketID.Uncommon] = "ar://2u0d0qJkFbZ_OqsAWW8XttvwvsBeAjmMvwPGcsNmYx4"; notRevealedURI[TicketID.Rare] = "ar://EukgJucyWPuIj2kmefZMGi3-XCsHn_sLpnpNiVZDiaI"; notRevealedURI[TicketID.SponsorA] = "ar://rWNF_KzTFJyIiwZUQuLjlPjo9k1mqaRfD5LWsYzrAv0"; notRevealedURI[TicketID.SponsorB] = "ar://dWt1-2VjI67ee5T24DHs_2uyEWVBVfYGrqoxSsQhJ68"; notRevealedURI[TicketID.SponsorC] = "ar://pAS13Tp3Lvmm6w-Qou5LY_PRuPKr7u2A3HgXnrJDSOo"; merkleRoot[PresalePhaseID.HolderSale] = 0xb722a074bda43273091421a36ae77bcf82e03690f448500590501afed9ddd133; merkleRoot[PresalePhaseID.FreeMint] = 0xb65411246820ba027e36e96755c6998c9aad5cb9dd4b45fa3ea86250ad9dd335; merkleRoot[PresalePhaseID.AllowList] = 0xdf9037afb8164dd193faba554754a067f615cd0afb6f5ddac66fc6e88415c617; } modifier whenMintable() { if (mintable == false) revert NotMintable(); _; } // internal function _baseURI() internal view override returns (string memory) { return baseURI; } function tokenURI(uint256 tokenId) public view virtual override(ERC721A, IERC721A) returns (string memory) { if (revealed) { return revealedURI(tokenId); } else { return notRevealedURI[tokenCategory[tokenId]]; } } function revealedURI(uint256 tokenId) internal view returns (string memory) { if (bytes(metadataURI[tokenId]).length == 0) { return string(abi.encodePacked(ERC721A.tokenURI(tokenId), BASE_EXTENSION)); } else { return metadataURI[tokenId]; } } function setTokenMetadataURI(uint256 tokenId, string memory metadata) external onlyRole(DEFAULT_ADMIN_ROLE) { metadataURI[tokenId] = metadata; emit MetadataUpdate(tokenId); } function setNotRevealedURI(TicketID _ticket, string memory _metadata) external onlyRole(DEFAULT_ADMIN_ROLE) { notRevealedURI[_ticket] = _metadata; } function _startTokenId() internal view virtual override returns (uint256) { return 1; } function currentPresalePhase() external view returns (PresalePhaseID) { if (presalePhase[PresalePhaseID.AllowList] == true) { return PresalePhaseID.AllowList; } else if (presalePhase[PresalePhaseID.FreeMint] == true) { return PresalePhaseID.FreeMint; } else { return PresalePhaseID.HolderSale; } } /** * @notice Set the merkle root for the allow list mint */ function setMerkleRoot(bytes32 _merkleRoot, PresalePhaseID _phase) external onlyRole(DEFAULT_ADMIN_ROLE) { merkleRoot[_phase] = _merkleRoot; } function setMaxSupply(uint256 _maxSupply, TicketID _ticket) external onlyRole(DEFAULT_ADMIN_ROLE) { maxSupply[_ticket] = _maxSupply; } function setTransferAble(bool flg) external onlyRole(DEFAULT_ADMIN_ROLE) { transferAble = flg; } function setRevealed(bool flg) external onlyRole(DEFAULT_ADMIN_ROLE) { revealed = flg; } function publicMint(address _to, uint256 _mintAmount, TicketID _ticket) external payable whenMintable { if (totalSupplyCategory[_ticket] + _mintAmount > maxSupply[_ticket]) revert MaxSupplyOver(); if (msg.value < nftCost[_ticket] * _mintAmount) revert NotEnoughFunds(msg.value); if (!publicSale) revert NotMintable(); uint256 _firstTokenId = _nextTokenId(); _mint(_to, _mintAmount); totalSupplyCategory[_ticket] = totalSupplyCategory[_ticket] + _mintAmount; for (uint i = _firstTokenId; i < _firstTokenId + _mintAmount; i++) { tokenCategory[i] = _ticket; } } function preMint(uint256 _mintAmount, uint256 _presaleMax, bytes32[] calldata _merkleProof, TicketID _ticket, PresalePhaseID _phase) external payable whenMintable { _preMint(_mintAmount, _presaleMax, _merkleProof, msg.sender, _ticket, _phase); } function _preMint(uint256 _mintAmount, uint256 _presaleMax, bytes32[] calldata _merkleProof, address _recipient, TicketID _ticket, PresalePhaseID _phase) internal { if (totalSupplyCategory[_ticket] + _mintAmount > maxSupply[_ticket]) revert MaxSupplyOver(); if (msg.value < nftCost[_ticket] * _mintAmount) revert NotEnoughFunds(msg.value); if (!presalePhase[_phase]) revert NotMintable(); bytes32 leaf = keccak256(abi.encodePacked(_recipient, _presaleMax)); if (whiteListClaimed[_phase][_recipient] + _mintAmount > _presaleMax) revert AlreadyClaimedMax(); if (!MerkleProof.verifyCalldata(_merkleProof, merkleRoot[_phase], leaf)) revert InvalidMerkleProof(); uint256 _firstTokenId = _nextTokenId(); _mint(_recipient, _mintAmount); whiteListClaimed[_phase][_recipient] += _mintAmount; totalSupplyCategory[_ticket] = totalSupplyCategory[_ticket] + _mintAmount; for (uint i = _firstTokenId; i < _firstTokenId + _mintAmount; i++) { tokenCategory[i] = _ticket; } } function mintPie( uint256 _mintAmount, uint256 _presaleMax, bytes32[] calldata _merkleProof, address _recipient, TicketID _ticket, PresalePhaseID _phase ) external payable whenMintable onlyRole(PIE_ROLE) { _preMint(_mintAmount, _presaleMax, _merkleProof, _recipient, _ticket, _phase); } function ownerMint(address _address, uint256 _mintAmount, TicketID _ticket) external onlyRole(MINTER_ROLE) { require(!renounceOwnerMintFlag, "owner mint renounced"); uint256 _firstTokenId = _nextTokenId(); _safeMint(_address, _mintAmount); totalSupplyCategory[_ticket] = totalSupplyCategory[_ticket] + _mintAmount; for (uint i = _firstTokenId; i < _firstTokenId + _mintAmount; i++) { tokenCategory[i] = _ticket; } } function _beforeTokenTransfers(address from, address /*to*/, uint256 /* startTokenId */, uint256 /*quantity*/) internal virtual override { if (from != address(0)) { require(transferAble == true, "LOCKED"); } } function setPresalePhase(bool _state, PresalePhaseID _phase) external onlyRole(DEFAULT_ADMIN_ROLE) { presalePhase[_phase] = _state; } function setPresaleCost(uint256 _cost, TicketID ticket) external onlyRole(DEFAULT_ADMIN_ROLE) { nftCost[ticket] = _cost; } function setPublicPhase(bool _state) external onlyRole(DEFAULT_ADMIN_ROLE) { publicSale = _state; } function setMintable(bool _state) external onlyRole(DEFAULT_ADMIN_ROLE) { mintable = _state; } function setBaseURI(string memory _newBaseURI) external onlyRole(DEFAULT_ADMIN_ROLE) { baseURI = _newBaseURI; emit BatchMetadataUpdate(_startTokenId(), totalSupply()); } function withdraw() external virtual onlyRole(DEFAULT_ADMIN_ROLE) { payable(0x82791D709A6C6E5E73cBa845Eb473200ab49B90C).transfer(address(this).balance); } function renounceOwnerMint() external virtual onlyRole(DEFAULT_ADMIN_ROLE) { renounceOwnerMintFlag = true; } function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721A, IERC721A, ERC2981, AccessControl) returns (bool) { return ERC721A.supportsInterface(interfaceId) || ERC2981.supportsInterface(interfaceId) || AccessControl.supportsInterface(interfaceId); } function setDefaultRoyalty(address receiver, uint96 feeNumerator) external onlyRole(DEFAULT_ADMIN_ROLE) { _setDefaultRoyalty(receiver, feeNumerator); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AlreadyClaimedMax","type":"error"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"InvalidMerkleProof","type":"error"},{"inputs":[],"name":"InvalidQueryRange","type":"error"},{"inputs":[],"name":"MaxSupplyOver","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"name":"NotEnoughFunds","type":"error"},{"inputs":[],"name":"NotMintable","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":false,"internalType":"uint256","name":"_fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_toTokenId","type":"uint256"}],"name":"BatchMetadataUpdate","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":false,"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"MetadataUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","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":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PIE_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentPresalePhase","outputs":[{"internalType":"enum PresalePhaseID","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"explicitOwnershipOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"explicitOwnershipsOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"enum TicketID","name":"","type":"uint8"}],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum PresalePhaseID","name":"","type":"uint8"}],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"uint256","name":"_presaleMax","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"},{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"enum TicketID","name":"_ticket","type":"uint8"},{"internalType":"enum PresalePhaseID","name":"_phase","type":"uint8"}],"name":"mintPie","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintable","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum TicketID","name":"","type":"uint8"}],"name":"nftCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum TicketID","name":"","type":"uint8"}],"name":"notRevealedURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"enum TicketID","name":"_ticket","type":"uint8"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"uint256","name":"_presaleMax","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"},{"internalType":"enum TicketID","name":"_ticket","type":"uint8"},{"internalType":"enum PresalePhaseID","name":"_phase","type":"uint8"}],"name":"preMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"enum PresalePhaseID","name":"","type":"uint8"}],"name":"presalePhase","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"enum TicketID","name":"_ticket","type":"uint8"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"publicSale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnerMintFlag","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxSupply","type":"uint256"},{"internalType":"enum TicketID","name":"_ticket","type":"uint8"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"},{"internalType":"enum PresalePhaseID","name":"_phase","type":"uint8"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setMintable","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum TicketID","name":"_ticket","type":"uint8"},{"internalType":"string","name":"_metadata","type":"string"}],"name":"setNotRevealedURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cost","type":"uint256"},{"internalType":"enum TicketID","name":"ticket","type":"uint8"}],"name":"setPresaleCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"},{"internalType":"enum PresalePhaseID","name":"_phase","type":"uint8"}],"name":"setPresalePhase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setPublicPhase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"flg","type":"bool"}],"name":"setRevealed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"metadata","type":"string"}],"name":"setTokenMetadataURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"flg","type":"bool"}],"name":"setTransferAble","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":"","type":"uint256"}],"name":"tokenCategory","outputs":[{"internalType":"enum TicketID","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"stop","type":"uint256"}],"name":"tokensOfOwnerIn","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum TicketID","name":"","type":"uint8"}],"name":"totalSupplyCategory","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"transferAble","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"enum PresalePhaseID","name":"","type":"uint8"},{"internalType":"address","name":"","type":"address"}],"name":"whiteListClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
600b805464ffffffffff191661010017905560e060409081526080818152906200403060a039600c9062000034908262000761565b503480156200004257600080fd5b506040805180820182526007808252661059d95bccdc9960ca1b602080840182905284518086019095529184529083015290600262000082838262000761565b50600362000091828262000761565b505060016000908155620000a791503362000617565b620000d37f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a63362000617565b670de0b6b3a76400007fe710864318d4a32f37d6ce54cb3fadbef648dd12d8dbdf53973564d56b7f881c8190557fa7c5ba7114a813b50159add3a36832908dc83db71d0b9a24c2ad0f83be9582078190557f9adb202b1492743bc00c81d33cdc6423fa8c79109027eb6a845391e8fc1f0481556702c68af0bb1400007fe0283e559c29e31ee7f56467acc9dd307779c843a883aeeb3bf5c6128c9081445567016345785d8a00007fa1d6913cd9e08c872be3e7525cca82e4fc0fc298a783f19022be725b19be685a55666a94d74f4300007fb9bec7e2561f624fe753ff070f1599b306cbf59fafd4e8d5a8184a1ea1841bce5560057ff4803e074bd026baaf6ed2e288c9515f68c72fb7216eebdd7cae1718a53ec3758190557f169f97de0d9a84d840042b17d3c6b9638b3d6fd9024c9eb0c7a306a17b49f88f8190557fa74ba3945261e09fde15ba3db55005b205e61eeb4ad811ac0faa2b315bffeead5560237f45f76dafbbad695564362934e24d72eedc57f9fc1a65f39bca62176cc82968285560787f367ccd2d0ac16bf7110a5dffe0801fdc9452a95a1adb7e1a12fe97dd3e9a4edd556103067f6bda57492eba051cb4a12a1e19df47c9755d78165341d4009b1d09b3f361620455602e7fb5a1e7cda73b1608e93d4d50ab796c3d35aa6216cb006a1f920df154d13ff6185560008052600d60209081527f81955a0a11e65eac625c29e8882660bae4e165a75d72780094acae8ece9a29ee805460ff191660011790556040805160608101909152603080825290916200400090830139600560005260126020527f45429b9195d4ec5c0cf6c69e9c21a4ca0ea773b702c2de5735f85d2631f26746906200034c908262000761565b506040518060600160405280603081526020016200400060309139600660005260126020527f1223f9031f9dca49a7844c397098ce9a4e80513444d0a8bb59820dff564808e4906200039f908262000761565b5060405180606001604052806030815260200162003fa060309139600460005260126020527fb4fcd034df3d20faa1c133b66d862ce92732727d40916b48ffb4020cb00fe05390620003f2908262000761565b50604051806060016040528060308152602001620040a060309139600360005260126020527f0f36ad39aee03e7108cc48f54934702a5f0d4066f10344cebf8198978d86976a9062000445908262000761565b5060405180606001604052806030815260200162003fd0603091396000805260126020527f7e7fa33969761a458e04f477e039a608702b4f924981d6653935a8319a08ad7b9062000497908262000761565b50604051806060016040528060308152602001620040d060309139600160005260126020527f71a67924699a20698523213e55fe499d539379d7769cd5567e2c45d583f815a390620004ea908262000761565b506040518060600160405280603081526020016200407060309139600260005260126020527f8e1fee8c88a9e04123b21e90cae2727a7715bf522a1e46eb5934ccd05203a6b2906200053d908262000761565b5060116020527fb722a074bda43273091421a36ae77bcf82e03690f448500590501afed9ddd1337f4ad3b33220dddc71b994a52d72c06b10862965f7d926534c05c00fb7e819e7b7557fb65411246820ba027e36e96755c6998c9aad5cb9dd4b45fa3ea86250ad9dd3357f17bc176d2408558f6e4111feebc3cab4e16b63e967be91cde721f4c8a488b5525560026000527fdf9037afb8164dd193faba554754a067f615cd0afb6f5ddac66fc6e88415c6177f08037d7b151cc412d25674a4e66b334d9ae9d2e5517a7feaae5cdb828bf1c628556200082d565b6000828152600a602090815260408083206001600160a01b038516845290915290205460ff16620006b8576000828152600a602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620006773390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620006e757607f821691505b6020821081036200070857634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200075c57600081815260208120601f850160051c81016020861015620007375750805b601f850160051c820191505b81811015620007585782815560010162000743565b5050505b505050565b81516001600160401b038111156200077d576200077d620006bc565b62000795816200078e8454620006d2565b846200070e565b602080601f831160018114620007cd5760008415620007b45750858301515b600019600386901b1c1916600185901b17855562000758565b600085815260208120601f198616915b82811015620007fe57888601518255948401946001909101908401620007dd565b50858210156200081d5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b613763806200083d6000396000f3fe6080604052600436106102ac5760003560e01c80635bbb21771161016c5780635bbb21771461068b5780636352211e146106b8578063678ec55c146106d85780636797fdda146106f95780636c5b32f21461071957806370a082311461073957806370cf0448146107595780637ae0f496146107795780638462151c146107a65780639060b17b146107d357806391d14854146107f357806395d89b411461081357806397db66f61461082857806398f06ab11461084a57806399a2557a14610882578063a0c6d465146108a2578063a217fddf146108c2578063a22cb465146108d7578063b0c1eb43146108f7578063b88d4fde1461092b578063c23dc68f1461093e578063c87b56dd1461096b578063cbe242dd1461098b578063d5391393146109ab578063d547741f146109df578063d913bea9146109ff578063e0a8085314610a1f578063e334b26714610a3f578063e985e9c514610a6f578063f3ee530114610ab857600080fd5b806301ffc9a7146102b157806304634d8d146102e657806306fdde0314610308578063081812fc1461032a578063095ea7b3146103625780630c2987511461037557806318160ddd146103885780631b67cb25146103ab578063219ef15b146103d857806323b872dd146103f8578063248a9ca31461040b578063285d70d41461042b5780632a55205a1461044b5780632c46e6911461048a5780632d8120b5146104aa5780632f2ff15d146104d75780632f639e08146104f757806333bc1c5c1461051757806336568abe146105315780633887547e146105515780633a215f46146105665780633ccfd60b146105a357806341cffc41146105b857806342842e0e146105d857806347ddb4a0146105eb5780634bf365df146106185780634ff07aa214610637578063518302271461064a57806355f804b31461066b575b600080fd5b3480156102bd57600080fd5b506102d16102cc366004612c3c565b610acb565b60405190151581526020015b60405180910390f35b3480156102f257600080fd5b50610306610301366004612c70565b610afa565b005b34801561031457600080fd5b5061031d610b14565b6040516102dd9190612d03565b34801561033657600080fd5b5061034a610345366004612d16565b610ba6565b6040516001600160a01b0390911681526020016102dd565b610306610370366004612d2f565b610bea565b610306610383366004612d68565b610c8a565b34801561039457600080fd5b5061039d610eba565b6040519081526020016102dd565b3480156103b757600080fd5b5061039d6103c6366004612da4565b60106020526000908152604090205481565b3480156103e457600080fd5b5061031d6103f3366004612da4565b610ec8565b610306610406366004612dbf565b610f62565b34801561041757600080fd5b5061039d610426366004612d16565b6110f6565b34801561043757600080fd5b50610306610446366004612e0b565b61110b565b34801561045757600080fd5b5061046b610466366004612e26565b611131565b604080516001600160a01b0390931683526020830191909152016102dd565b34801561049657600080fd5b506103066104a5366004612ef3565b6111df565b3480156104b657600080fd5b5061039d6104c5366004612da4565b600f6020526000908152604090205481565b3480156104e357600080fd5b506103066104f2366004612f39565b61123b565b34801561050357600080fd5b50610306610512366004612f65565b611257565b34801561052357600080fd5b50600b546102d19060ff1681565b34801561053d57600080fd5b5061030661054c366004612f39565b6112a0565b34801561055d57600080fd5b5061030661131e565b34801561057257600080fd5b50610596610581366004612d16565b60156020526000908152604090205460ff1681565b6040516102dd9190612f9e565b3480156105af57600080fd5b5061030661133d565b3480156105c457600080fd5b506103066105d3366004612d68565b611388565b6103066105e6366004612dbf565b6114dd565b3480156105f757600080fd5b5061039d610606366004612da4565b600e6020526000908152604090205481565b34801561062457600080fd5b50600b546102d190610100900460ff1681565b61030661064536600461300b565b6114f8565b34801561065657600080fd5b50600b546102d1906301000000900460ff1681565b34801561067757600080fd5b50610306610686366004613081565b611534565b34801561069757600080fd5b506106ab6106a63660046130b5565b611593565b6040516102dd9190613132565b3480156106c457600080fd5b5061034a6106d3366004612d16565b611645565b3480156106e457600080fd5b50600b546102d190600160201b900460ff1681565b34801561070557600080fd5b50610306610714366004613174565b611650565b34801561072557600080fd5b50610306610734366004612e0b565b611683565b34801561074557600080fd5b5061039d610754366004613197565b6116ad565b34801561076557600080fd5b506103066107743660046131b2565b6116fb565b34801561078557600080fd5b5061039d6107943660046131dc565b60116020526000908152604090205481565b3480156107b257600080fd5b506107c66107c1366004613197565b611752565b6040516102dd91906131f7565b3480156107df57600080fd5b506103066107ee36600461322f565b611838565b3480156107ff57600080fd5b506102d161080e366004612f39565b61188b565b34801561081f57600080fd5b5061031d6118b6565b34801561083457600080fd5b5061083d6118c5565b6040516102dd9190613266565b34801561085657600080fd5b5061039d61086536600461327a565b601460209081526000928352604080842090915290825290205481565b34801561088e57600080fd5b506107c661089d3660046132a4565b61194a565b3480156108ae57600080fd5b506103066108bd366004612e0b565b611ad1565b3480156108ce57600080fd5b5061039d600081565b3480156108e357600080fd5b506103066108f23660046132d7565b611af0565b34801561090357600080fd5b5061039d7f838a662c853782ef794b54001a73c3bcf60975ab166f7eaac58d57755fe55ae781565b610306610939366004613301565b611b5c565b34801561094a57600080fd5b5061095e610959366004612d16565b611ba0565b6040516102dd919061337c565b34801561097757600080fd5b5061031d610986366004612d16565b611bf0565b34801561099757600080fd5b50600b546102d19062010000900460ff1681565b3480156109b757600080fd5b5061039d7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b3480156109eb57600080fd5b506103066109fa366004612f39565b611ce9565b348015610a0b57600080fd5b50610306610a1a366004612f65565b611d05565b348015610a2b57600080fd5b50610306610a3a366004612e0b565b611d27565b348015610a4b57600080fd5b506102d1610a5a3660046131dc565b600d6020526000908152604090205460ff1681565b348015610a7b57600080fd5b506102d1610a8a36600461338a565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b610306610ac63660046133a6565b611d51565b6000610ad682611dc1565b80610ae55750610ae582611e0f565b80610af45750610af482611e44565b92915050565b6000610b0581611e69565b610b0f8383611e76565b505050565b606060028054610b239061342e565b80601f0160208091040260200160405190810160405280929190818152602001828054610b4f9061342e565b8015610b9c5780601f10610b7157610100808354040283529160200191610b9c565b820191906000526020600020905b815481529060010190602001808311610b7f57829003601f168201915b5050505050905090565b6000610bb182611f6f565b610bce576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610bf582611645565b9050336001600160a01b03821614610c2e57610c118133610a8a565b610c2e576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600b54610100900460ff161515600003610cb757604051630952c8a960e11b815260040160405180910390fd5b600f6000826006811115610ccd57610ccd612f88565b6006811115610cde57610cde612f88565b8152602001908152602001600020548260106000846006811115610d0457610d04612f88565b6006811115610d1557610d15612f88565b815260200190815260200160002054610d2e919061347e565b1115610d4d57604051638353b89160e01b815260040160405180910390fd5b81600e6000836006811115610d6457610d64612f88565b6006811115610d7557610d75612f88565b815260200190815260200160002054610d8e9190613491565b341015610db557604051638228b9cb60e01b81523460048201526024015b60405180910390fd5b600b5460ff16610dd857604051630952c8a960e11b815260040160405180910390fd5b600054610de58484611fa4565b8260106000846006811115610dfc57610dfc612f88565b6006811115610e0d57610e0d612f88565b815260200190815260200160002054610e26919061347e565b60106000846006811115610e3c57610e3c612f88565b6006811115610e4d57610e4d612f88565b8152602081019190915260400160002055805b610e6a848361347e565b811015610eb3576000818152601560205260409020805484919060ff19166001836006811115610e9c57610e9c612f88565b021790555080610eab816134a8565b915050610e60565b5050505050565b600154600054036000190190565b60126020526000908152604090208054610ee19061342e565b80601f0160208091040260200160405190810160405280929190818152602001828054610f0d9061342e565b8015610f5a5780601f10610f2f57610100808354040283529160200191610f5a565b820191906000526020600020905b815481529060010190602001808311610f3d57829003601f168201915b505050505081565b6000610f6d82612099565b9050836001600160a01b0316816001600160a01b031614610fa05760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b03881690911417610fed57610fd08633610a8a565b610fed57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661101457604051633a954ecd60e21b815260040160405180910390fd5b6110218686866001612108565b801561102c57600082555b6001600160a01b0386811660009081526005602052604080822080546000190190559187168152208054600101905561106985600160e11b61215e565b600085815260046020526040812091909155600160e11b841690036110be576001840160008181526004602052604081205490036110bc5760005481146110bc5760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b031660008051602061370e83398151915260405160405180910390a45b505050505050565b6000908152600a602052604090206001015490565b600061111681611e69565b50600b80549115156101000261ff0019909216919091179055565b60008281526009602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916111a65750604080518082019091526008546001600160a01b0381168252600160a01b90046001600160601b031660208201525b6020810151600090612710906111c5906001600160601b031687613491565b6111cf91906134c1565b91519350909150505b9250929050565b60006111ea81611e69565b60008381526013602052604090206112028382613529565b506040518381527ff8e1a15aba9398e019f0b49df1a4fde98ee17ae345cb5f6b5e2c27f5033e8ce79060200160405180910390a1505050565b611244826110f6565b61124d81611e69565b610b0f8383612173565b600061126281611e69565b82600e600084600681111561127957611279612f88565b600681111561128a5761128a612f88565b8152602081019190915260400160002055505050565b6001600160a01b03811633146113105760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610dac565b61131a82826121f9565b5050565b600061132981611e69565b50600b805462ff0000191662010000179055565b600061134881611e69565b6040517382791d709a6c6e5e73cba845eb473200ab49b90c904780156108fc02916000818181858888f1935050505015801561131a573d6000803e3d6000fd5b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a66113b281611e69565b600b5462010000900460ff16156114025760405162461bcd60e51b81526020600482015260146024820152731bdddb995c881b5a5b9d081c995b9bdd5b98d95960621b6044820152606401610dac565b60005461140f8585612260565b836010600085600681111561142657611426612f88565b600681111561143757611437612f88565b815260200190815260200160002054611450919061347e565b6010600085600681111561146657611466612f88565b600681111561147757611477612f88565b8152602081019190915260400160002055805b611494858361347e565b8110156110ee576000818152601560205260409020805485919060ff191660018360068111156114c6576114c6612f88565b0217905550806114d5816134a8565b91505061148a565b610b0f83838360405180602001604052806000815250611b5c565b600b54610100900460ff16151560000361152557604051630952c8a960e11b815260040160405180910390fd5b6110ee8686868633878761227a565b600061153f81611e69565b600c61154b8382613529565b507f6bd5c950a8d8df17f772f5af37cb3655737899cbf903264b9795592da439661c6001611577610eba565b6040805192835260208301919091520160405180910390a15050565b6060816000816001600160401b038111156115b0576115b0612e48565b6040519080825280602002602001820160405280156115e957816020015b6115d6612bff565b8152602001906001900390816115ce5790505b50905060005b82811461163c5761161786868381811061160b5761160b6135e8565b90506020020135611ba0565b828281518110611629576116296135e8565b60209081029190910101526001016115ef565b50949350505050565b6000610af482612099565b600061165b81611e69565b826011600084600281111561167257611672612f88565b600281111561128a5761128a612f88565b600061168e81611e69565b50600b8054911515600160201b0260ff60201b19909216919091179055565b60006001600160a01b0382166116d6576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b600061170681611e69565b82600d600084600281111561171d5761171d612f88565b600281111561172e5761172e612f88565b81526020810191909152604001600020805460ff1916911515919091179055505050565b60606000806000611762856116ad565b90506000816001600160401b0381111561177e5761177e612e48565b6040519080825280602002602001820160405280156117a7578160200160208202803683370190505b5090506117b2612bff565b60015b83861461182c576117c58161263e565b915081604001516118245781516001600160a01b0316156117e557815194505b876001600160a01b0316856001600160a01b0316036118245780838780600101985081518110611817576118176135e8565b6020026020010181815250505b6001016117b5565b50909695505050505050565b600061184381611e69565b816012600085600681111561185a5761185a612f88565b600681111561186b5761186b612f88565b815260200190815260200160002090816118859190613529565b50505050565b6000918252600a602090815260408084206001600160a01b0393909316845291905290205460ff1690565b606060038054610b239061342e565b60026000908152600d6020527f10a81eed9d63d16face5e76357905348e6253d3394086026bb2bf2145d7cc2495460ff1615156001036119055750600290565b60016000819052600d6020527ffd54ff1ed53f34a900b24c5ba64f85761163b5d82d98a47b9bd80e45466993c55460ff16151590036119445750600190565b50600090565b606081831061196c57604051631960ccad60e11b815260040160405180910390fd5b60008061197860005490565b9050600185101561198857600194505b80841115611994578093505b600061199f876116ad565b9050848610156119be57858503818110156119b8578091505b506119c2565b5060005b6000816001600160401b038111156119dc576119dc612e48565b604051908082528060200260200182016040528015611a05578160200160208202803683370190505b50905081600003611a1b579350611aca92505050565b6000611a2688611ba0565b905060008160400151611a37575080515b885b888114158015611a495750848714155b15611abe57611a578161263e565b92508260400151611ab65782516001600160a01b031615611a7757825191505b8a6001600160a01b0316826001600160a01b031603611ab65780848880600101995081518110611aa957611aa96135e8565b6020026020010181815250505b600101611a39565b50505092835250909150505b9392505050565b6000611adc81611e69565b50600b805460ff1916911515919091179055565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611b67848484610f62565b6001600160a01b0383163b1561188557611b838484848461265e565b611885576040516368d2bf6b60e11b815260040160405180910390fd5b611ba8612bff565b611bb0612bff565b6001831080611bc157506000548310155b15611bcc5792915050565b611bd58361263e565b9050806040015115611be75792915050565b611aca8361274a565b600b546060906301000000900460ff1615611c0e57610af482612763565b6000828152601560205260408120546012919060ff166006811115611c3557611c35612f88565b6006811115611c4657611c46612f88565b81526020019081526020016000208054611c5f9061342e565b80601f0160208091040260200160405190810160405280929190818152602001828054611c8b9061342e565b8015611cd85780601f10611cad57610100808354040283529160200191611cd8565b820191906000526020600020905b815481529060010190602001808311611cbb57829003601f168201915b50505050509050919050565b919050565b611cf2826110f6565b611cfb81611e69565b610b0f83836121f9565b6000611d1081611e69565b82600f600084600681111561127957611279612f88565b6000611d3281611e69565b50600b805491151563010000000263ff00000019909216919091179055565b600b54610100900460ff161515600003611d7e57604051630952c8a960e11b815260040160405180910390fd5b7f838a662c853782ef794b54001a73c3bcf60975ab166f7eaac58d57755fe55ae7611da881611e69565b611db78888888888888861227a565b5050505050505050565b60006301ffc9a760e01b6001600160e01b031983161480611df257506380ac58cd60e01b6001600160e01b03198316145b80610af45750506001600160e01b031916635b5e139f60e01b1490565b60006001600160e01b0319821663152a902d60e11b1480610af457506301ffc9a760e01b6001600160e01b0319831614610af4565b60006001600160e01b03198216637965db0b60e01b1480610af45750610af482611e0f565b611e7381336127f0565b50565b6127106001600160601b0382161115611ee45760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610dac565b6001600160a01b038216611f365760405162461bcd60e51b815260206004820152601960248201527822a921991c9c189d1034b73b30b634b2103932b1b2b4bb32b960391b6044820152606401610dac565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600855565b600081600111158015611f83575060005482105b8015610af4575050600090815260046020526040902054600160e01b161590565b6000805490829003611fc95760405163b562e8dd60e01b815260040160405180910390fd5b611fd66000848385612108565b6001600160a01b038316600090815260056020526040902080546001600160401b01840201905561200d836001841460e11b61215e565b6000828152600460205260408120919091556001600160a01b03841690838301908390839060008051602061370e8339815191528180a4600183015b81811461206f578083600060008051602061370e833981519152600080a4600101612049565b508160000361209057604051622e076360e81b815260040160405180910390fd5b60005550505050565b600081806001116120ef576000548110156120ef5760008181526004602052604081205490600160e01b821690036120ed575b80600003611aca5750600019016000818152600460205260409020546120cc565b505b604051636f96cda160e11b815260040160405180910390fd5b6001600160a01b0384161561188557600b54600160201b900460ff1615156001146118855760405162461bcd60e51b81526020600482015260066024820152651313d0d2d15160d21b6044820152606401610dac565b4260a01b176001600160a01b03919091161790565b61217d828261188b565b61131a576000828152600a602090815260408083206001600160a01b03851684529091529020805460ff191660011790556121b53390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b612203828261188b565b1561131a576000828152600a602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b61131a828260405180602001604052806000815250612849565b600f600083600681111561229057612290612f88565b60068111156122a1576122a1612f88565b81526020019081526020016000205487601060008560068111156122c7576122c7612f88565b60068111156122d8576122d8612f88565b8152602001908152602001600020546122f1919061347e565b111561231057604051638353b89160e01b815260040160405180910390fd5b86600e600084600681111561232757612327612f88565b600681111561233857612338612f88565b8152602001908152602001600020546123519190613491565b34101561237357604051638228b9cb60e01b8152346004820152602401610dac565b600d600082600281111561238957612389612f88565b600281111561239a5761239a612f88565b815260208101919091526040016000205460ff166123cb57604051630952c8a960e11b815260040160405180910390fd5b6040516001600160601b0319606085901b1660208201526034810187905260009060540160405160208183030381529060405280519060200120905086886014600085600281111561241f5761241f612f88565b600281111561243057612430612f88565b81526020019081526020016000206000876001600160a01b03166001600160a01b031681526020019081526020016000205461246c919061347e565b111561248b57604051630ce2eab560e11b815260040160405180910390fd5b6124cc8686601160008660028111156124a6576124a6612f88565b60028111156124b7576124b7612f88565b815260200190815260200160002054846128af565b6124e95760405163582f497d60e11b815260040160405180910390fd5b6000546124f6858a611fa4565b886014600085600281111561250d5761250d612f88565b600281111561251e5761251e612f88565b81526020019081526020016000206000876001600160a01b03166001600160a01b03168152602001908152602001600020600082825461255e919061347e565b909155508990506010600086600681111561257b5761257b612f88565b600681111561258c5761258c612f88565b8152602001908152602001600020546125a5919061347e565b601060008660068111156125bb576125bb612f88565b60068111156125cc576125cc612f88565b8152602081019190915260400160002055805b6125e98a8361347e565b811015612632576000818152601560205260409020805486919060ff1916600183600681111561261b5761261b612f88565b02179055508061262a816134a8565b9150506125df565b50505050505050505050565b612646612bff565b600082815260046020526040902054610af4906128c7565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906126939033908990889088906004016135fe565b6020604051808303816000875af19250505080156126ce575060408051601f3d908101601f191682019092526126cb9181019061363b565b60015b61272c573d8080156126fc576040519150601f19603f3d011682016040523d82523d6000602084013e612701565b606091505b508051600003612724576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b612752612bff565b610af461275e83612099565b6128c7565b60008181526013602052604090208054606091906127809061342e565b90506000036127d7576127928261290a565b60405180604001604052806005815260200164173539b7b760d91b8152506040516020016127c1929190613658565b6040516020818303038152906040529050919050565b60008281526013602052604090208054611c5f9061342e565b6127fa828261188b565b61131a576128078161298d565b61281283602061299f565b604051602001612823929190613687565b60408051601f198184030181529082905262461bcd60e51b8252610dac91600401612d03565b6128538383611fa4565b6001600160a01b0383163b15610b0f576000548281035b61287d600086838060010194508661265e565b61289a576040516368d2bf6b60e11b815260040160405180910390fd5b81811061286a578160005414610eb357600080fd5b6000826128bd868685612b3a565b1495945050505050565b6128cf612bff565b6001600160a01b03821681526001600160401b0360a083901c166020820152600160e01b82161515604082015260e89190911c606082015290565b606061291582611f6f565b61293257604051630a14c4b560e41b815260040160405180910390fd5b600061293c612b7d565b9050805160000361295c5760405180602001604052806000815250611aca565b8061296684612b8c565b604051602001612977929190613658565b6040516020818303038152906040529392505050565b6060610af46001600160a01b03831660145b606060006129ae836002613491565b6129b990600261347e565b6001600160401b038111156129d0576129d0612e48565b6040519080825280601f01601f1916602001820160405280156129fa576020820181803683370190505b509050600360fc1b81600081518110612a1557612a156135e8565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110612a4457612a446135e8565b60200101906001600160f81b031916908160001a9053506000612a68846002613491565b612a7390600161347e565b90505b6001811115612aeb576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110612aa757612aa76135e8565b1a60f81b828281518110612abd57612abd6135e8565b60200101906001600160f81b031916908160001a90535060049490941c93612ae4816136f6565b9050612a76565b508315611aca5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610dac565b600081815b8481101561163c57612b6982878784818110612b5d57612b5d6135e8565b90506020020135612bd0565b915080612b75816134a8565b915050612b3f565b6060600c8054610b239061342e565b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a900480612ba65750819003601f19909101908152919050565b6000818310612bec576000828152602084905260409020611aca565b6000838152602083905260409020611aca565b60408051608081018252600080825260208201819052918101829052606081019190915290565b6001600160e01b031981168114611e7357600080fd5b600060208284031215612c4e57600080fd5b8135611aca81612c26565b80356001600160a01b0381168114611ce457600080fd5b60008060408385031215612c8357600080fd5b612c8c83612c59565b915060208301356001600160601b0381168114612ca857600080fd5b809150509250929050565b60005b83811015612cce578181015183820152602001612cb6565b50506000910152565b60008151808452612cef816020860160208601612cb3565b601f01601f19169290920160200192915050565b602081526000611aca6020830184612cd7565b600060208284031215612d2857600080fd5b5035919050565b60008060408385031215612d4257600080fd5b612d4b83612c59565b946020939093013593505050565b803560078110611ce457600080fd5b600080600060608486031215612d7d57600080fd5b612d8684612c59565b925060208401359150612d9b60408501612d59565b90509250925092565b600060208284031215612db657600080fd5b611aca82612d59565b600080600060608486031215612dd457600080fd5b612ddd84612c59565b9250612deb60208501612c59565b9150604084013590509250925092565b80358015158114611ce457600080fd5b600060208284031215612e1d57600080fd5b611aca82612dfb565b60008060408385031215612e3957600080fd5b50508035926020909101359150565b634e487b7160e01b600052604160045260246000fd5b60006001600160401b0380841115612e7857612e78612e48565b604051601f8501601f19908116603f01168101908282118183101715612ea057612ea0612e48565b81604052809350858152868686011115612eb957600080fd5b858560208301376000602087830101525050509392505050565b600082601f830112612ee457600080fd5b611aca83833560208501612e5e565b60008060408385031215612f0657600080fd5b8235915060208301356001600160401b03811115612f2357600080fd5b612f2f85828601612ed3565b9150509250929050565b60008060408385031215612f4c57600080fd5b82359150612f5c60208401612c59565b90509250929050565b60008060408385031215612f7857600080fd5b82359150612f5c60208401612d59565b634e487b7160e01b600052602160045260246000fd5b6020810160078310612fb257612fb2612f88565b91905290565b60008083601f840112612fca57600080fd5b5081356001600160401b03811115612fe157600080fd5b6020830191508360208260051b85010111156111d857600080fd5b803560038110611ce457600080fd5b60008060008060008060a0878903121561302457600080fd5b863595506020870135945060408701356001600160401b0381111561304857600080fd5b61305489828a01612fb8565b9095509350613067905060608801612d59565b915061307560808801612ffc565b90509295509295509295565b60006020828403121561309357600080fd5b81356001600160401b038111156130a957600080fd5b61274284828501612ed3565b600080602083850312156130c857600080fd5b82356001600160401b038111156130de57600080fd5b6130ea85828601612fb8565b90969095509350505050565b80516001600160a01b031682526020808201516001600160401b03169083015260408082015115159083015260609081015162ffffff16910152565b6020808252825182820181905260009190848201906040850190845b8181101561182c576131618385516130f6565b928401926080929092019160010161314e565b6000806040838503121561318757600080fd5b82359150612f5c60208401612ffc565b6000602082840312156131a957600080fd5b611aca82612c59565b600080604083850312156131c557600080fd5b6131ce83612dfb565b9150612f5c60208401612ffc565b6000602082840312156131ee57600080fd5b611aca82612ffc565b6020808252825182820181905260009190848201906040850190845b8181101561182c57835183529284019291840191600101613213565b6000806040838503121561324257600080fd5b61324b83612d59565b915060208301356001600160401b03811115612f2357600080fd5b6020810160038310612fb257612fb2612f88565b6000806040838503121561328d57600080fd5b61329683612ffc565b9150612f5c60208401612c59565b6000806000606084860312156132b957600080fd5b6132c284612c59565b95602085013595506040909401359392505050565b600080604083850312156132ea57600080fd5b6132f383612c59565b9150612f5c60208401612dfb565b6000806000806080858703121561331757600080fd5b61332085612c59565b935061332e60208601612c59565b92506040850135915060608501356001600160401b0381111561335057600080fd5b8501601f8101871361336157600080fd5b61337087823560208401612e5e565b91505092959194509250565b60808101610af482846130f6565b6000806040838503121561339d57600080fd5b61329683612c59565b600080600080600080600060c0888a0312156133c157600080fd5b873596506020880135955060408801356001600160401b038111156133e557600080fd5b6133f18a828b01612fb8565b9096509450613404905060608901612c59565b925061341260808901612d59565b915061342060a08901612ffc565b905092959891949750929550565b600181811c9082168061344257607f821691505b60208210810361346257634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b80820180821115610af457610af4613468565b8082028115828204841417610af457610af4613468565b6000600182016134ba576134ba613468565b5060010190565b6000826134de57634e487b7160e01b600052601260045260246000fd5b500490565b601f821115610b0f57600081815260208120601f850160051c8101602086101561350a5750805b601f850160051c820191505b818110156110ee57828155600101613516565b81516001600160401b0381111561354257613542612e48565b61355681613550845461342e565b846134e3565b602080601f83116001811461358b57600084156135735750858301515b600019600386901b1c1916600185901b1785556110ee565b600085815260208120601f198616915b828110156135ba5788860151825594840194600190910190840161359b565b50858210156135d85787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061363190830184612cd7565b9695505050505050565b60006020828403121561364d57600080fd5b8151611aca81612c26565b6000835161366a818460208801612cb3565b83519083019061367e818360208801612cb3565b01949350505050565b76020b1b1b2b9b9a1b7b73a3937b61d1030b1b1b7bab73a1604d1b8152600083516136b9816017850160208801612cb3565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516136ea816028840160208801612cb3565b01602801949350505050565b60008161370557613705613468565b50600019019056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220822b87ec0a14adede8017f7b66c612c1b6ec3dc2327c2ecd4820b1d4dd6447cb64736f6c6343000811003361723a2f2f3275306430714a6b46625a5f4f717341575738587474767776734265416a6d4d7677504763734e6d59783461723a2f2f72574e465f4b7a54464a794969775a5551754c6a6c506a6f396b316d7161526644354c5773597a7241763061723a2f2f786d7075545638427a56635164484a326c6473633573354a6a4678785359335633446e4c574a54536a486768747470733a2f2f617277656176652e6e65742f6b3731544d457951773356677666727858533931466a736f744841356445342d785277766c31766d7364452f61723a2f2f70415331335470334c766d6d36772d516f75354c595f505275504b7237753241334867586e724a44534f6f61723a2f2f45756b674a756379575075496a326b6d65665a4d4769332d584373486e5f734c706e704e69565a4469614961723a2f2f645774312d32566a4936376565355432344448735f327579455756425666594772716f78537351684a3638
Deployed Bytecode
0x6080604052600436106102ac5760003560e01c80635bbb21771161016c5780635bbb21771461068b5780636352211e146106b8578063678ec55c146106d85780636797fdda146106f95780636c5b32f21461071957806370a082311461073957806370cf0448146107595780637ae0f496146107795780638462151c146107a65780639060b17b146107d357806391d14854146107f357806395d89b411461081357806397db66f61461082857806398f06ab11461084a57806399a2557a14610882578063a0c6d465146108a2578063a217fddf146108c2578063a22cb465146108d7578063b0c1eb43146108f7578063b88d4fde1461092b578063c23dc68f1461093e578063c87b56dd1461096b578063cbe242dd1461098b578063d5391393146109ab578063d547741f146109df578063d913bea9146109ff578063e0a8085314610a1f578063e334b26714610a3f578063e985e9c514610a6f578063f3ee530114610ab857600080fd5b806301ffc9a7146102b157806304634d8d146102e657806306fdde0314610308578063081812fc1461032a578063095ea7b3146103625780630c2987511461037557806318160ddd146103885780631b67cb25146103ab578063219ef15b146103d857806323b872dd146103f8578063248a9ca31461040b578063285d70d41461042b5780632a55205a1461044b5780632c46e6911461048a5780632d8120b5146104aa5780632f2ff15d146104d75780632f639e08146104f757806333bc1c5c1461051757806336568abe146105315780633887547e146105515780633a215f46146105665780633ccfd60b146105a357806341cffc41146105b857806342842e0e146105d857806347ddb4a0146105eb5780634bf365df146106185780634ff07aa214610637578063518302271461064a57806355f804b31461066b575b600080fd5b3480156102bd57600080fd5b506102d16102cc366004612c3c565b610acb565b60405190151581526020015b60405180910390f35b3480156102f257600080fd5b50610306610301366004612c70565b610afa565b005b34801561031457600080fd5b5061031d610b14565b6040516102dd9190612d03565b34801561033657600080fd5b5061034a610345366004612d16565b610ba6565b6040516001600160a01b0390911681526020016102dd565b610306610370366004612d2f565b610bea565b610306610383366004612d68565b610c8a565b34801561039457600080fd5b5061039d610eba565b6040519081526020016102dd565b3480156103b757600080fd5b5061039d6103c6366004612da4565b60106020526000908152604090205481565b3480156103e457600080fd5b5061031d6103f3366004612da4565b610ec8565b610306610406366004612dbf565b610f62565b34801561041757600080fd5b5061039d610426366004612d16565b6110f6565b34801561043757600080fd5b50610306610446366004612e0b565b61110b565b34801561045757600080fd5b5061046b610466366004612e26565b611131565b604080516001600160a01b0390931683526020830191909152016102dd565b34801561049657600080fd5b506103066104a5366004612ef3565b6111df565b3480156104b657600080fd5b5061039d6104c5366004612da4565b600f6020526000908152604090205481565b3480156104e357600080fd5b506103066104f2366004612f39565b61123b565b34801561050357600080fd5b50610306610512366004612f65565b611257565b34801561052357600080fd5b50600b546102d19060ff1681565b34801561053d57600080fd5b5061030661054c366004612f39565b6112a0565b34801561055d57600080fd5b5061030661131e565b34801561057257600080fd5b50610596610581366004612d16565b60156020526000908152604090205460ff1681565b6040516102dd9190612f9e565b3480156105af57600080fd5b5061030661133d565b3480156105c457600080fd5b506103066105d3366004612d68565b611388565b6103066105e6366004612dbf565b6114dd565b3480156105f757600080fd5b5061039d610606366004612da4565b600e6020526000908152604090205481565b34801561062457600080fd5b50600b546102d190610100900460ff1681565b61030661064536600461300b565b6114f8565b34801561065657600080fd5b50600b546102d1906301000000900460ff1681565b34801561067757600080fd5b50610306610686366004613081565b611534565b34801561069757600080fd5b506106ab6106a63660046130b5565b611593565b6040516102dd9190613132565b3480156106c457600080fd5b5061034a6106d3366004612d16565b611645565b3480156106e457600080fd5b50600b546102d190600160201b900460ff1681565b34801561070557600080fd5b50610306610714366004613174565b611650565b34801561072557600080fd5b50610306610734366004612e0b565b611683565b34801561074557600080fd5b5061039d610754366004613197565b6116ad565b34801561076557600080fd5b506103066107743660046131b2565b6116fb565b34801561078557600080fd5b5061039d6107943660046131dc565b60116020526000908152604090205481565b3480156107b257600080fd5b506107c66107c1366004613197565b611752565b6040516102dd91906131f7565b3480156107df57600080fd5b506103066107ee36600461322f565b611838565b3480156107ff57600080fd5b506102d161080e366004612f39565b61188b565b34801561081f57600080fd5b5061031d6118b6565b34801561083457600080fd5b5061083d6118c5565b6040516102dd9190613266565b34801561085657600080fd5b5061039d61086536600461327a565b601460209081526000928352604080842090915290825290205481565b34801561088e57600080fd5b506107c661089d3660046132a4565b61194a565b3480156108ae57600080fd5b506103066108bd366004612e0b565b611ad1565b3480156108ce57600080fd5b5061039d600081565b3480156108e357600080fd5b506103066108f23660046132d7565b611af0565b34801561090357600080fd5b5061039d7f838a662c853782ef794b54001a73c3bcf60975ab166f7eaac58d57755fe55ae781565b610306610939366004613301565b611b5c565b34801561094a57600080fd5b5061095e610959366004612d16565b611ba0565b6040516102dd919061337c565b34801561097757600080fd5b5061031d610986366004612d16565b611bf0565b34801561099757600080fd5b50600b546102d19062010000900460ff1681565b3480156109b757600080fd5b5061039d7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b3480156109eb57600080fd5b506103066109fa366004612f39565b611ce9565b348015610a0b57600080fd5b50610306610a1a366004612f65565b611d05565b348015610a2b57600080fd5b50610306610a3a366004612e0b565b611d27565b348015610a4b57600080fd5b506102d1610a5a3660046131dc565b600d6020526000908152604090205460ff1681565b348015610a7b57600080fd5b506102d1610a8a36600461338a565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b610306610ac63660046133a6565b611d51565b6000610ad682611dc1565b80610ae55750610ae582611e0f565b80610af45750610af482611e44565b92915050565b6000610b0581611e69565b610b0f8383611e76565b505050565b606060028054610b239061342e565b80601f0160208091040260200160405190810160405280929190818152602001828054610b4f9061342e565b8015610b9c5780601f10610b7157610100808354040283529160200191610b9c565b820191906000526020600020905b815481529060010190602001808311610b7f57829003601f168201915b5050505050905090565b6000610bb182611f6f565b610bce576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610bf582611645565b9050336001600160a01b03821614610c2e57610c118133610a8a565b610c2e576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600b54610100900460ff161515600003610cb757604051630952c8a960e11b815260040160405180910390fd5b600f6000826006811115610ccd57610ccd612f88565b6006811115610cde57610cde612f88565b8152602001908152602001600020548260106000846006811115610d0457610d04612f88565b6006811115610d1557610d15612f88565b815260200190815260200160002054610d2e919061347e565b1115610d4d57604051638353b89160e01b815260040160405180910390fd5b81600e6000836006811115610d6457610d64612f88565b6006811115610d7557610d75612f88565b815260200190815260200160002054610d8e9190613491565b341015610db557604051638228b9cb60e01b81523460048201526024015b60405180910390fd5b600b5460ff16610dd857604051630952c8a960e11b815260040160405180910390fd5b600054610de58484611fa4565b8260106000846006811115610dfc57610dfc612f88565b6006811115610e0d57610e0d612f88565b815260200190815260200160002054610e26919061347e565b60106000846006811115610e3c57610e3c612f88565b6006811115610e4d57610e4d612f88565b8152602081019190915260400160002055805b610e6a848361347e565b811015610eb3576000818152601560205260409020805484919060ff19166001836006811115610e9c57610e9c612f88565b021790555080610eab816134a8565b915050610e60565b5050505050565b600154600054036000190190565b60126020526000908152604090208054610ee19061342e565b80601f0160208091040260200160405190810160405280929190818152602001828054610f0d9061342e565b8015610f5a5780601f10610f2f57610100808354040283529160200191610f5a565b820191906000526020600020905b815481529060010190602001808311610f3d57829003601f168201915b505050505081565b6000610f6d82612099565b9050836001600160a01b0316816001600160a01b031614610fa05760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b03881690911417610fed57610fd08633610a8a565b610fed57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661101457604051633a954ecd60e21b815260040160405180910390fd5b6110218686866001612108565b801561102c57600082555b6001600160a01b0386811660009081526005602052604080822080546000190190559187168152208054600101905561106985600160e11b61215e565b600085815260046020526040812091909155600160e11b841690036110be576001840160008181526004602052604081205490036110bc5760005481146110bc5760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b031660008051602061370e83398151915260405160405180910390a45b505050505050565b6000908152600a602052604090206001015490565b600061111681611e69565b50600b80549115156101000261ff0019909216919091179055565b60008281526009602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916111a65750604080518082019091526008546001600160a01b0381168252600160a01b90046001600160601b031660208201525b6020810151600090612710906111c5906001600160601b031687613491565b6111cf91906134c1565b91519350909150505b9250929050565b60006111ea81611e69565b60008381526013602052604090206112028382613529565b506040518381527ff8e1a15aba9398e019f0b49df1a4fde98ee17ae345cb5f6b5e2c27f5033e8ce79060200160405180910390a1505050565b611244826110f6565b61124d81611e69565b610b0f8383612173565b600061126281611e69565b82600e600084600681111561127957611279612f88565b600681111561128a5761128a612f88565b8152602081019190915260400160002055505050565b6001600160a01b03811633146113105760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610dac565b61131a82826121f9565b5050565b600061132981611e69565b50600b805462ff0000191662010000179055565b600061134881611e69565b6040517382791d709a6c6e5e73cba845eb473200ab49b90c904780156108fc02916000818181858888f1935050505015801561131a573d6000803e3d6000fd5b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a66113b281611e69565b600b5462010000900460ff16156114025760405162461bcd60e51b81526020600482015260146024820152731bdddb995c881b5a5b9d081c995b9bdd5b98d95960621b6044820152606401610dac565b60005461140f8585612260565b836010600085600681111561142657611426612f88565b600681111561143757611437612f88565b815260200190815260200160002054611450919061347e565b6010600085600681111561146657611466612f88565b600681111561147757611477612f88565b8152602081019190915260400160002055805b611494858361347e565b8110156110ee576000818152601560205260409020805485919060ff191660018360068111156114c6576114c6612f88565b0217905550806114d5816134a8565b91505061148a565b610b0f83838360405180602001604052806000815250611b5c565b600b54610100900460ff16151560000361152557604051630952c8a960e11b815260040160405180910390fd5b6110ee8686868633878761227a565b600061153f81611e69565b600c61154b8382613529565b507f6bd5c950a8d8df17f772f5af37cb3655737899cbf903264b9795592da439661c6001611577610eba565b6040805192835260208301919091520160405180910390a15050565b6060816000816001600160401b038111156115b0576115b0612e48565b6040519080825280602002602001820160405280156115e957816020015b6115d6612bff565b8152602001906001900390816115ce5790505b50905060005b82811461163c5761161786868381811061160b5761160b6135e8565b90506020020135611ba0565b828281518110611629576116296135e8565b60209081029190910101526001016115ef565b50949350505050565b6000610af482612099565b600061165b81611e69565b826011600084600281111561167257611672612f88565b600281111561128a5761128a612f88565b600061168e81611e69565b50600b8054911515600160201b0260ff60201b19909216919091179055565b60006001600160a01b0382166116d6576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b600061170681611e69565b82600d600084600281111561171d5761171d612f88565b600281111561172e5761172e612f88565b81526020810191909152604001600020805460ff1916911515919091179055505050565b60606000806000611762856116ad565b90506000816001600160401b0381111561177e5761177e612e48565b6040519080825280602002602001820160405280156117a7578160200160208202803683370190505b5090506117b2612bff565b60015b83861461182c576117c58161263e565b915081604001516118245781516001600160a01b0316156117e557815194505b876001600160a01b0316856001600160a01b0316036118245780838780600101985081518110611817576118176135e8565b6020026020010181815250505b6001016117b5565b50909695505050505050565b600061184381611e69565b816012600085600681111561185a5761185a612f88565b600681111561186b5761186b612f88565b815260200190815260200160002090816118859190613529565b50505050565b6000918252600a602090815260408084206001600160a01b0393909316845291905290205460ff1690565b606060038054610b239061342e565b60026000908152600d6020527f10a81eed9d63d16face5e76357905348e6253d3394086026bb2bf2145d7cc2495460ff1615156001036119055750600290565b60016000819052600d6020527ffd54ff1ed53f34a900b24c5ba64f85761163b5d82d98a47b9bd80e45466993c55460ff16151590036119445750600190565b50600090565b606081831061196c57604051631960ccad60e11b815260040160405180910390fd5b60008061197860005490565b9050600185101561198857600194505b80841115611994578093505b600061199f876116ad565b9050848610156119be57858503818110156119b8578091505b506119c2565b5060005b6000816001600160401b038111156119dc576119dc612e48565b604051908082528060200260200182016040528015611a05578160200160208202803683370190505b50905081600003611a1b579350611aca92505050565b6000611a2688611ba0565b905060008160400151611a37575080515b885b888114158015611a495750848714155b15611abe57611a578161263e565b92508260400151611ab65782516001600160a01b031615611a7757825191505b8a6001600160a01b0316826001600160a01b031603611ab65780848880600101995081518110611aa957611aa96135e8565b6020026020010181815250505b600101611a39565b50505092835250909150505b9392505050565b6000611adc81611e69565b50600b805460ff1916911515919091179055565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611b67848484610f62565b6001600160a01b0383163b1561188557611b838484848461265e565b611885576040516368d2bf6b60e11b815260040160405180910390fd5b611ba8612bff565b611bb0612bff565b6001831080611bc157506000548310155b15611bcc5792915050565b611bd58361263e565b9050806040015115611be75792915050565b611aca8361274a565b600b546060906301000000900460ff1615611c0e57610af482612763565b6000828152601560205260408120546012919060ff166006811115611c3557611c35612f88565b6006811115611c4657611c46612f88565b81526020019081526020016000208054611c5f9061342e565b80601f0160208091040260200160405190810160405280929190818152602001828054611c8b9061342e565b8015611cd85780601f10611cad57610100808354040283529160200191611cd8565b820191906000526020600020905b815481529060010190602001808311611cbb57829003601f168201915b50505050509050919050565b919050565b611cf2826110f6565b611cfb81611e69565b610b0f83836121f9565b6000611d1081611e69565b82600f600084600681111561127957611279612f88565b6000611d3281611e69565b50600b805491151563010000000263ff00000019909216919091179055565b600b54610100900460ff161515600003611d7e57604051630952c8a960e11b815260040160405180910390fd5b7f838a662c853782ef794b54001a73c3bcf60975ab166f7eaac58d57755fe55ae7611da881611e69565b611db78888888888888861227a565b5050505050505050565b60006301ffc9a760e01b6001600160e01b031983161480611df257506380ac58cd60e01b6001600160e01b03198316145b80610af45750506001600160e01b031916635b5e139f60e01b1490565b60006001600160e01b0319821663152a902d60e11b1480610af457506301ffc9a760e01b6001600160e01b0319831614610af4565b60006001600160e01b03198216637965db0b60e01b1480610af45750610af482611e0f565b611e7381336127f0565b50565b6127106001600160601b0382161115611ee45760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610dac565b6001600160a01b038216611f365760405162461bcd60e51b815260206004820152601960248201527822a921991c9c189d1034b73b30b634b2103932b1b2b4bb32b960391b6044820152606401610dac565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600855565b600081600111158015611f83575060005482105b8015610af4575050600090815260046020526040902054600160e01b161590565b6000805490829003611fc95760405163b562e8dd60e01b815260040160405180910390fd5b611fd66000848385612108565b6001600160a01b038316600090815260056020526040902080546001600160401b01840201905561200d836001841460e11b61215e565b6000828152600460205260408120919091556001600160a01b03841690838301908390839060008051602061370e8339815191528180a4600183015b81811461206f578083600060008051602061370e833981519152600080a4600101612049565b508160000361209057604051622e076360e81b815260040160405180910390fd5b60005550505050565b600081806001116120ef576000548110156120ef5760008181526004602052604081205490600160e01b821690036120ed575b80600003611aca5750600019016000818152600460205260409020546120cc565b505b604051636f96cda160e11b815260040160405180910390fd5b6001600160a01b0384161561188557600b54600160201b900460ff1615156001146118855760405162461bcd60e51b81526020600482015260066024820152651313d0d2d15160d21b6044820152606401610dac565b4260a01b176001600160a01b03919091161790565b61217d828261188b565b61131a576000828152600a602090815260408083206001600160a01b03851684529091529020805460ff191660011790556121b53390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b612203828261188b565b1561131a576000828152600a602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b61131a828260405180602001604052806000815250612849565b600f600083600681111561229057612290612f88565b60068111156122a1576122a1612f88565b81526020019081526020016000205487601060008560068111156122c7576122c7612f88565b60068111156122d8576122d8612f88565b8152602001908152602001600020546122f1919061347e565b111561231057604051638353b89160e01b815260040160405180910390fd5b86600e600084600681111561232757612327612f88565b600681111561233857612338612f88565b8152602001908152602001600020546123519190613491565b34101561237357604051638228b9cb60e01b8152346004820152602401610dac565b600d600082600281111561238957612389612f88565b600281111561239a5761239a612f88565b815260208101919091526040016000205460ff166123cb57604051630952c8a960e11b815260040160405180910390fd5b6040516001600160601b0319606085901b1660208201526034810187905260009060540160405160208183030381529060405280519060200120905086886014600085600281111561241f5761241f612f88565b600281111561243057612430612f88565b81526020019081526020016000206000876001600160a01b03166001600160a01b031681526020019081526020016000205461246c919061347e565b111561248b57604051630ce2eab560e11b815260040160405180910390fd5b6124cc8686601160008660028111156124a6576124a6612f88565b60028111156124b7576124b7612f88565b815260200190815260200160002054846128af565b6124e95760405163582f497d60e11b815260040160405180910390fd5b6000546124f6858a611fa4565b886014600085600281111561250d5761250d612f88565b600281111561251e5761251e612f88565b81526020019081526020016000206000876001600160a01b03166001600160a01b03168152602001908152602001600020600082825461255e919061347e565b909155508990506010600086600681111561257b5761257b612f88565b600681111561258c5761258c612f88565b8152602001908152602001600020546125a5919061347e565b601060008660068111156125bb576125bb612f88565b60068111156125cc576125cc612f88565b8152602081019190915260400160002055805b6125e98a8361347e565b811015612632576000818152601560205260409020805486919060ff1916600183600681111561261b5761261b612f88565b02179055508061262a816134a8565b9150506125df565b50505050505050505050565b612646612bff565b600082815260046020526040902054610af4906128c7565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906126939033908990889088906004016135fe565b6020604051808303816000875af19250505080156126ce575060408051601f3d908101601f191682019092526126cb9181019061363b565b60015b61272c573d8080156126fc576040519150601f19603f3d011682016040523d82523d6000602084013e612701565b606091505b508051600003612724576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b612752612bff565b610af461275e83612099565b6128c7565b60008181526013602052604090208054606091906127809061342e565b90506000036127d7576127928261290a565b60405180604001604052806005815260200164173539b7b760d91b8152506040516020016127c1929190613658565b6040516020818303038152906040529050919050565b60008281526013602052604090208054611c5f9061342e565b6127fa828261188b565b61131a576128078161298d565b61281283602061299f565b604051602001612823929190613687565b60408051601f198184030181529082905262461bcd60e51b8252610dac91600401612d03565b6128538383611fa4565b6001600160a01b0383163b15610b0f576000548281035b61287d600086838060010194508661265e565b61289a576040516368d2bf6b60e11b815260040160405180910390fd5b81811061286a578160005414610eb357600080fd5b6000826128bd868685612b3a565b1495945050505050565b6128cf612bff565b6001600160a01b03821681526001600160401b0360a083901c166020820152600160e01b82161515604082015260e89190911c606082015290565b606061291582611f6f565b61293257604051630a14c4b560e41b815260040160405180910390fd5b600061293c612b7d565b9050805160000361295c5760405180602001604052806000815250611aca565b8061296684612b8c565b604051602001612977929190613658565b6040516020818303038152906040529392505050565b6060610af46001600160a01b03831660145b606060006129ae836002613491565b6129b990600261347e565b6001600160401b038111156129d0576129d0612e48565b6040519080825280601f01601f1916602001820160405280156129fa576020820181803683370190505b509050600360fc1b81600081518110612a1557612a156135e8565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110612a4457612a446135e8565b60200101906001600160f81b031916908160001a9053506000612a68846002613491565b612a7390600161347e565b90505b6001811115612aeb576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110612aa757612aa76135e8565b1a60f81b828281518110612abd57612abd6135e8565b60200101906001600160f81b031916908160001a90535060049490941c93612ae4816136f6565b9050612a76565b508315611aca5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610dac565b600081815b8481101561163c57612b6982878784818110612b5d57612b5d6135e8565b90506020020135612bd0565b915080612b75816134a8565b915050612b3f565b6060600c8054610b239061342e565b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a900480612ba65750819003601f19909101908152919050565b6000818310612bec576000828152602084905260409020611aca565b6000838152602083905260409020611aca565b60408051608081018252600080825260208201819052918101829052606081019190915290565b6001600160e01b031981168114611e7357600080fd5b600060208284031215612c4e57600080fd5b8135611aca81612c26565b80356001600160a01b0381168114611ce457600080fd5b60008060408385031215612c8357600080fd5b612c8c83612c59565b915060208301356001600160601b0381168114612ca857600080fd5b809150509250929050565b60005b83811015612cce578181015183820152602001612cb6565b50506000910152565b60008151808452612cef816020860160208601612cb3565b601f01601f19169290920160200192915050565b602081526000611aca6020830184612cd7565b600060208284031215612d2857600080fd5b5035919050565b60008060408385031215612d4257600080fd5b612d4b83612c59565b946020939093013593505050565b803560078110611ce457600080fd5b600080600060608486031215612d7d57600080fd5b612d8684612c59565b925060208401359150612d9b60408501612d59565b90509250925092565b600060208284031215612db657600080fd5b611aca82612d59565b600080600060608486031215612dd457600080fd5b612ddd84612c59565b9250612deb60208501612c59565b9150604084013590509250925092565b80358015158114611ce457600080fd5b600060208284031215612e1d57600080fd5b611aca82612dfb565b60008060408385031215612e3957600080fd5b50508035926020909101359150565b634e487b7160e01b600052604160045260246000fd5b60006001600160401b0380841115612e7857612e78612e48565b604051601f8501601f19908116603f01168101908282118183101715612ea057612ea0612e48565b81604052809350858152868686011115612eb957600080fd5b858560208301376000602087830101525050509392505050565b600082601f830112612ee457600080fd5b611aca83833560208501612e5e565b60008060408385031215612f0657600080fd5b8235915060208301356001600160401b03811115612f2357600080fd5b612f2f85828601612ed3565b9150509250929050565b60008060408385031215612f4c57600080fd5b82359150612f5c60208401612c59565b90509250929050565b60008060408385031215612f7857600080fd5b82359150612f5c60208401612d59565b634e487b7160e01b600052602160045260246000fd5b6020810160078310612fb257612fb2612f88565b91905290565b60008083601f840112612fca57600080fd5b5081356001600160401b03811115612fe157600080fd5b6020830191508360208260051b85010111156111d857600080fd5b803560038110611ce457600080fd5b60008060008060008060a0878903121561302457600080fd5b863595506020870135945060408701356001600160401b0381111561304857600080fd5b61305489828a01612fb8565b9095509350613067905060608801612d59565b915061307560808801612ffc565b90509295509295509295565b60006020828403121561309357600080fd5b81356001600160401b038111156130a957600080fd5b61274284828501612ed3565b600080602083850312156130c857600080fd5b82356001600160401b038111156130de57600080fd5b6130ea85828601612fb8565b90969095509350505050565b80516001600160a01b031682526020808201516001600160401b03169083015260408082015115159083015260609081015162ffffff16910152565b6020808252825182820181905260009190848201906040850190845b8181101561182c576131618385516130f6565b928401926080929092019160010161314e565b6000806040838503121561318757600080fd5b82359150612f5c60208401612ffc565b6000602082840312156131a957600080fd5b611aca82612c59565b600080604083850312156131c557600080fd5b6131ce83612dfb565b9150612f5c60208401612ffc565b6000602082840312156131ee57600080fd5b611aca82612ffc565b6020808252825182820181905260009190848201906040850190845b8181101561182c57835183529284019291840191600101613213565b6000806040838503121561324257600080fd5b61324b83612d59565b915060208301356001600160401b03811115612f2357600080fd5b6020810160038310612fb257612fb2612f88565b6000806040838503121561328d57600080fd5b61329683612ffc565b9150612f5c60208401612c59565b6000806000606084860312156132b957600080fd5b6132c284612c59565b95602085013595506040909401359392505050565b600080604083850312156132ea57600080fd5b6132f383612c59565b9150612f5c60208401612dfb565b6000806000806080858703121561331757600080fd5b61332085612c59565b935061332e60208601612c59565b92506040850135915060608501356001600160401b0381111561335057600080fd5b8501601f8101871361336157600080fd5b61337087823560208401612e5e565b91505092959194509250565b60808101610af482846130f6565b6000806040838503121561339d57600080fd5b61329683612c59565b600080600080600080600060c0888a0312156133c157600080fd5b873596506020880135955060408801356001600160401b038111156133e557600080fd5b6133f18a828b01612fb8565b9096509450613404905060608901612c59565b925061341260808901612d59565b915061342060a08901612ffc565b905092959891949750929550565b600181811c9082168061344257607f821691505b60208210810361346257634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b80820180821115610af457610af4613468565b8082028115828204841417610af457610af4613468565b6000600182016134ba576134ba613468565b5060010190565b6000826134de57634e487b7160e01b600052601260045260246000fd5b500490565b601f821115610b0f57600081815260208120601f850160051c8101602086101561350a5750805b601f850160051c820191505b818110156110ee57828155600101613516565b81516001600160401b0381111561354257613542612e48565b61355681613550845461342e565b846134e3565b602080601f83116001811461358b57600084156135735750858301515b600019600386901b1c1916600185901b1785556110ee565b600085815260208120601f198616915b828110156135ba5788860151825594840194600190910190840161359b565b50858210156135d85787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061363190830184612cd7565b9695505050505050565b60006020828403121561364d57600080fd5b8151611aca81612c26565b6000835161366a818460208801612cb3565b83519083019061367e818360208801612cb3565b01949350505050565b76020b1b1b2b9b9a1b7b73a3937b61d1030b1b1b7bab73a1604d1b8152600083516136b9816017850160208801612cb3565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516136ea816028840160208801612cb3565b01602801949350505050565b60008161370557613705613468565b50600019019056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220822b87ec0a14adede8017f7b66c612c1b6ec3dc2327c2ecd4820b1d4dd6447cb64736f6c63430008110033
Deployed Bytecode Sourcemap
104184:9888:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;113608:288;;;;;;;;;;-1:-1:-1;113608:288:0;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;113608:288:0;;;;;;;;113904:165;;;;;;;;;;-1:-1:-1;113904:165:0;;;;;:::i;:::-;;:::i;:::-;;31169:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;37660:218::-;;;;;;;;;;-1:-1:-1;37660:218:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;2238:32:1;;;2220:51;;2208:2;2193:18;37660:218:0;2074:203:1;37093:408:0;;;;;;:::i;:::-;;:::i;109430:650::-;;;;;;:::i;:::-;;:::i;26920:323::-;;;;;;;;;;;;;:::i;:::-;;;3193:25:1;;;3181:2;3166:18;26920:323:0;3047:177:1;104915:55:0;;;;;;;;;;-1:-1:-1;104915:55:0;;;;;:::i;:::-;;;;;;;;;;;;;;105036:49;;;;;;;;;;-1:-1:-1;105036:49:0;;;;;:::i;:::-;;:::i;41299:2825::-;;;;;;:::i;:::-;;:::i;99931:131::-;;;;;;;;;;-1:-1:-1;99931:131:0;;;;;:::i;:::-;;:::i;112986:108::-;;;;;;;;;;-1:-1:-1;112986:108:0;;;;;:::i;:::-;;:::i;73719:442::-;;;;;;;;;;-1:-1:-1;73719:442:0;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;4934:32:1;;;4916:51;;4998:2;4983:18;;4976:34;;;;4889:18;73719:442:0;4742:274:1;107935:197:0;;;;;;;;;;-1:-1:-1;107935:197:0;;;;;:::i;:::-;;:::i;104863:45::-;;;;;;;;;;-1:-1:-1;104863:45:0;;;;;:::i;:::-;;;;;;;;;;;;;;100372:147;;;;;;;;;;-1:-1:-1;100372:147:0;;;;;:::i;:::-;;:::i;112721:136::-;;;;;;;;;;-1:-1:-1;112721:136:0;;;;;:::i;:::-;;:::i;104460:30::-;;;;;;;;;;-1:-1:-1;104460:30:0;;;;;;;;101516:218;;;;;;;;;;-1:-1:-1;101516:218:0;;;;;:::i;:::-;;:::i;113478:122::-;;;;;;;;;;;;;:::i;105230:49::-;;;;;;;;;;-1:-1:-1;105230:49:0;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;:::i;113302:168::-;;;;;;;;;;;;;:::i;111818:487::-;;;;;;;;;;-1:-1:-1;111818:487:0;;;;;:::i;:::-;;:::i;44220:193::-;;;;;;:::i;:::-;;:::i;104813:43::-;;;;;;;;;;-1:-1:-1;104813:43:0;;;;;:::i;:::-;;;;;;;;;;;;;;104497:27;;;;;;;;;;-1:-1:-1;104497:27:0;;;;;;;;;;;110088:259;;;;;;:::i;:::-;;:::i;104579:28::-;;;;;;;;;;-1:-1:-1;104579:28:0;;;;;;;;;;;113102:192;;;;;;;;;;-1:-1:-1;113102:192:0;;;;;:::i;:::-;;:::i;64816:528::-;;;;;;;;;;-1:-1:-1;64816:528:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;32562:152::-;;;;;;;;;;-1:-1:-1;32562:152:0;;;;;:::i;:::-;;:::i;104614:32::-;;;;;;;;;;-1:-1:-1;104614:32:0;;;;-1:-1:-1;;;104614:32:0;;;;;;108882:156;;;;;;;;;;-1:-1:-1;108882:156:0;;;;;:::i;:::-;;:::i;109202:110::-;;;;;;;;;;-1:-1:-1;109202:110:0;;;;;:::i;:::-;;:::i;28104:233::-;;;;;;;;;;-1:-1:-1;28104:233:0;;;;;:::i;:::-;;:::i;112566:147::-;;;;;;;;;;-1:-1:-1;112566:147:0;;;;;:::i;:::-;;:::i;104977:52::-;;;;;;;;;;-1:-1:-1;104977:52:0;;;;;:::i;:::-;;;;;;;;;;;;;;68692:900;;;;;;;;;;-1:-1:-1;68692:900:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;108140:162::-;;;;;;;;;;-1:-1:-1;108140:162:0;;;;;:::i;:::-;;:::i;98404:147::-;;;;;;;;;;-1:-1:-1;98404:147:0;;;;;:::i;:::-;;:::i;31345:104::-;;;;;;;;;;;;;:::i;108419:377::-;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;105145:78::-;;;;;;;;;;-1:-1:-1;105145:78:0;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;65732:2513;;;;;;;;;;-1:-1:-1;65732:2513:0;;;;;:::i;:::-;;:::i;112865:113::-;;;;;;;;;;-1:-1:-1;112865:113:0;;;;;:::i;:::-;;:::i;97509:49::-;;;;;;;;;;-1:-1:-1;97509:49:0;97554:4;97509:49;;38218:234;;;;;;;;;;-1:-1:-1;38218:234:0;;;;;:::i;:::-;;:::i;104395:56::-;;;;;;;;;;;;104430:21;104395:56;;45011:407;;;;;;:::i;:::-;;:::i;64229:428::-;;;;;;;;;;-1:-1:-1;64229:428:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;107348:271::-;;;;;;;;;;-1:-1:-1;107348:271:0;;;;;:::i;:::-;;:::i;104531:41::-;;;;;;;;;;-1:-1:-1;104531:41:0;;;;;;;;;;;104326:62;;;;;;;;;;;;104364:24;104326:62;;100812:149;;;;;;;;;;-1:-1:-1;100812:149:0;;;;;:::i;:::-;;:::i;109046:148::-;;;;;;;;;;-1:-1:-1;109046:148:0;;;;;:::i;:::-;;:::i;109320:102::-;;;;;;;;;;-1:-1:-1;109320:102:0;;;;;:::i;:::-;;:::i;104755:51::-;;;;;;;;;;-1:-1:-1;104755:51:0;;;;;:::i;:::-;;;;;;;;;;;;;;;;38609:164;;;;;;;;;;-1:-1:-1;38609:164:0;;;;;:::i;:::-;-1:-1:-1;;;;;38730:25:0;;;38706:4;38730:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;38609:164;111451:359;;;;;;:::i;:::-;;:::i;113608:288::-;113736:4;113760:38;113786:11;113760:25;:38::i;:::-;:80;;;;113802:38;113828:11;113802:25;:38::i;:::-;113760:128;;;;113844:44;113876:11;113844:31;:44::i;:::-;113753:135;113608:288;-1:-1:-1;;113608:288:0:o;113904:165::-;97554:4;98000:16;97554:4;98000:10;:16::i;:::-;114019:42:::1;114038:8;114048:12;114019:18;:42::i;:::-;113904:165:::0;;;:::o;31169:100::-;31223:13;31256:5;31249:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;31169:100;:::o;37660:218::-;37736:7;37761:16;37769:7;37761;:16::i;:::-;37756:64;;37786:34;;-1:-1:-1;;;37786:34:0;;;;;;;;;;;37756:64;-1:-1:-1;37840:24:0;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;37840:30:0;;37660:218::o;37093:408::-;37182:13;37198:16;37206:7;37198;:16::i;:::-;37182:32;-1:-1:-1;61426:10:0;-1:-1:-1;;;;;37231:28:0;;;37227:175;;37279:44;37296:5;61426:10;38609:164;:::i;37279:44::-;37274:128;;37351:35;;-1:-1:-1;;;37351:35:0;;;;;;;;;;;37274:128;37414:24;;;;:15;:24;;;;;;:35;;-1:-1:-1;;;;;;37414:35:0;-1:-1:-1;;;;;37414:35:0;;;;;;;;;37465:28;;37414:24;;37465:28;;;;;;;37171:330;37093:408;;:::o;109430:650::-;107156:8;;;;;;;:17;;107168:5;107156:17;107152:43;;107182:13;;-1:-1:-1;;;107182:13:0;;;;;;;;;;;107152:43;109592:9:::1;:18;109602:7;109592:18;;;;;;;;:::i;:::-;;;;;;;;;:::i;:::-;;;;;;;;;;;;;109578:11;109547:19;:28;109567:7;109547:28;;;;;;;;:::i;:::-;;;;;;;;;:::i;:::-;;;;;;;;;;;;;:42;;;;:::i;:::-;:63;109543:91;;;109619:15;;-1:-1:-1::0;;;109619:15:0::1;;;;;;;;;;;109543:91;109680:11;109661:7;:16;109669:7;109661:16;;;;;;;;:::i;:::-;;;;;;;;;:::i;:::-;;;;;;;;;;;;;:30;;;;:::i;:::-;109649:9;:42;109645:80;;;109700:25;::::0;-1:-1:-1;;;109700:25:0;;109715:9:::1;109700:25;::::0;::::1;3193::1::0;3166:18;;109700:25:0::1;;;;;;;;109645:80;109741:10;::::0;::::1;;109736:37;;109760:13;;-1:-1:-1::0;;;109760:13:0::1;;;;;;;;;;;109736:37;109786:21;26689:13:::0;109835:23:::1;109841:3:::0;109846:11;109835:5:::1;:23::i;:::-;109931:11;109900:19;:28;109920:7;109900:28;;;;;;;;:::i;:::-;;;;;;;;;:::i;:::-;;;;;;;;;;;;;:42;;;;:::i;:::-;109869:19;:28;109889:7;109869:28;;;;;;;;:::i;:::-;;;;;;;;;:::i;:::-;::::0;;::::1;::::0;::::1;::::0;;;;;;-1:-1:-1;109869:28:0;:73;109967:13;109953:120:::1;109986:27;110002:11:::0;109986:13;:27:::1;:::i;:::-;109982:1;:31;109953:120;;;110035:16;::::0;;;:13:::1;:16;::::0;;;;:26;;110054:7;;110035:16;-1:-1:-1;;110035:26:0::1;::::0;110054:7;110035:26:::1;::::0;::::1;;;;;;:::i;:::-;;;::::0;;-1:-1:-1;110015:3:0;::::1;::::0;::::1;:::i;:::-;;;;109953:120;;;;109532:548;109430:650:::0;;;:::o;26920:323::-;108402:1;27194:12;26981:7;27178:13;:28;-1:-1:-1;;27178:46:0;;26920:323::o;105036:49::-;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;41299:2825::-;41441:27;41471;41490:7;41471:18;:27::i;:::-;41441:57;;41556:4;-1:-1:-1;;;;;41515:45:0;41531:19;-1:-1:-1;;;;;41515:45:0;;41511:86;;41569:28;;-1:-1:-1;;;41569:28:0;;;;;;;;;;;41511:86;41611:27;40407:24;;;:15;:24;;;;;40635:26;;61426:10;40032:30;;;-1:-1:-1;;;;;39725:28:0;;40010:20;;;40007:56;41797:180;;41890:43;41907:4;61426:10;38609:164;:::i;41890:43::-;41885:92;;41942:35;;-1:-1:-1;;;41942:35:0;;;;;;;;;;;41885:92;-1:-1:-1;;;;;41994:16:0;;41990:52;;42019:23;;-1:-1:-1;;;42019:23:0;;;;;;;;;;;41990:52;42055:43;42077:4;42083:2;42087:7;42096:1;42055:21;:43::i;:::-;42191:15;42188:160;;;42331:1;42310:19;42303:30;42188:160;-1:-1:-1;;;;;42728:24:0;;;;;;;:18;:24;;;;;;42726:26;;-1:-1:-1;;42726:26:0;;;42797:22;;;;;;42795:24;;-1:-1:-1;42795:24:0;;;43119:146;42797:22;-1:-1:-1;;;43119:18:0;:146::i;:::-;43090:26;;;;:17;:26;;;;;:175;;;;-1:-1:-1;;;43385:47:0;;:52;;43381:627;;43490:1;43480:11;;43458:19;43613:30;;;:17;:30;;;;;;:35;;43609:384;;43751:13;;43736:11;:28;43732:242;;43898:30;;;;:17;:30;;;;;:52;;;43732:242;43439:569;43381:627;44055:7;44051:2;-1:-1:-1;;;;;44036:27:0;44045:4;-1:-1:-1;;;;;44036:27:0;-1:-1:-1;;;;;;;;;;;44036:27:0;;;;;;;;;44074:42;41430:2694;;;41299:2825;;;:::o;99931:131::-;100005:7;100032:12;;;:6;:12;;;;;:22;;;;99931:131::o;112986:108::-;97554:4;98000:16;97554:4;98000:10;:16::i;:::-;-1:-1:-1;113069:8:0::1;:17:::0;;;::::1;;;;-1:-1:-1::0;;113069:17:0;;::::1;::::0;;;::::1;::::0;;112986:108::o;73719:442::-;73816:7;73874:27;;;:17;:27;;;;;;;;73845:56;;;;;;;;;-1:-1:-1;;;;;73845:56:0;;;;;-1:-1:-1;;;73845:56:0;;;-1:-1:-1;;;;;73845:56:0;;;;;;;;73816:7;;73914:92;;-1:-1:-1;73965:29:0;;;;;;;;;73975:19;73965:29;-1:-1:-1;;;;;73965:29:0;;;;-1:-1:-1;;;73965:29:0;;-1:-1:-1;;;;;73965:29:0;;;;;73914:92;74056:23;;;;74018:21;;74527:5;;74043:36;;-1:-1:-1;;;;;74043:36:0;:10;:36;:::i;:::-;74042:58;;;;:::i;:::-;74121:16;;;-1:-1:-1;74018:82:0;;-1:-1:-1;;73719:442:0;;;;;;:::o;107935:197::-;97554:4;98000:16;97554:4;98000:10;:16::i;:::-;108054:20:::1;::::0;;;:11:::1;:20;::::0;;;;:31:::1;108077:8:::0;108054:20;:31:::1;:::i;:::-;-1:-1:-1::0;108101:23:0::1;::::0;3193:25:1;;;108101:23:0::1;::::0;3181:2:1;3166:18;108101:23:0::1;;;;;;;107935:197:::0;;;:::o;100372:147::-;100455:18;100468:4;100455:12;:18::i;:::-;98000:16;98011:4;98000:10;:16::i;:::-;100486:25:::1;100497:4;100503:7;100486:10;:25::i;112721:136::-:0;97554:4;98000:16;97554:4;98000:10;:16::i;:::-;112844:5:::1;112826:7;:15;112834:6;112826:15;;;;;;;;:::i;:::-;;;;;;;;;:::i;:::-;::::0;;::::1;::::0;::::1;::::0;;;;;;-1:-1:-1;112826:15:0;:23;-1:-1:-1;;;112721:136:0:o;101516:218::-;-1:-1:-1;;;;;101612:23:0;;61426:10;101612:23;101604:83;;;;-1:-1:-1;;;101604:83:0;;19326:2:1;101604:83:0;;;19308:21:1;19365:2;19345:18;;;19338:30;19404:34;19384:18;;;19377:62;-1:-1:-1;;;19455:18:1;;;19448:45;19510:19;;101604:83:0;19124:411:1;101604:83:0;101700:26;101712:4;101718:7;101700:11;:26::i;:::-;101516:218;;:::o;113478:122::-;97554:4;98000:16;97554:4;98000:10;:16::i;:::-;-1:-1:-1;113564:21:0::1;:28:::0;;-1:-1:-1;;113564:28:0::1;::::0;::::1;::::0;;113478:122::o;113302:168::-;97554:4;98000:16;97554:4;98000:10;:16::i;:::-;113379:83:::1;::::0;113387:42:::1;::::0;113440:21:::1;113379:83:::0;::::1;;;::::0;::::1;::::0;;;113440:21;113387:42;113379:83;::::1;;;;;;;;;;;;;::::0;::::1;;;;111818:487:::0;104364:24;98000:16;98011:4;98000:10;:16::i;:::-;111945:21:::1;::::0;;;::::1;;;111944:22;111936:55;;;::::0;-1:-1:-1;;;111936:55:0;;19742:2:1;111936:55:0::1;::::0;::::1;19724:21:1::0;19781:2;19761:18;;;19754:30;-1:-1:-1;;;19800:18:1;;;19793:50;19860:18;;111936:55:0::1;19540:344:1::0;111936:55:0::1;112002:21;26689:13:::0;112051:32:::1;112061:8:::0;112071:11;112051:9:::1;:32::i;:::-;112156:11;112125:19;:28;112145:7;112125:28;;;;;;;;:::i;:::-;;;;;;;;;:::i;:::-;;;;;;;;;;;;;:42;;;;:::i;:::-;112094:19;:28;112114:7;112094:28;;;;;;;;:::i;:::-;;;;;;;;;:::i;:::-;::::0;;::::1;::::0;::::1;::::0;;;;;;-1:-1:-1;112094:28:0;:73;112192:13;112178:120:::1;112211:27;112227:11:::0;112211:13;:27:::1;:::i;:::-;112207:1;:31;112178:120;;;112260:16;::::0;;;:13:::1;:16;::::0;;;;:26;;112279:7;;112260:16;-1:-1:-1;;112260:26:0::1;::::0;112279:7;112260:26:::1;::::0;::::1;;;;;;:::i;:::-;;;::::0;;-1:-1:-1;112240:3:0;::::1;::::0;::::1;:::i;:::-;;;;112178:120;;44220:193:::0;44366:39;44383:4;44389:2;44393:7;44366:39;;;;;;;;;;;;:16;:39::i;110088:259::-;107156:8;;;;;;;:17;;107168:5;107156:17;107152:43;;107182:13;;-1:-1:-1;;;107182:13:0;;;;;;;;;;;107152:43;110262:77:::1;110271:11;110284;110297:12;;110311:10;110323:7;110332:6;110262:8;:77::i;113102:192::-:0;97554:4;98000:16;97554:4;98000:10;:16::i;:::-;113198:7:::1;:21;113208:11:::0;113198:7;:21:::1;:::i;:::-;-1:-1:-1::0;113235:51:0::1;108402:1:::0;113272:13:::1;:11;:13::i;:::-;113235:51;::::0;;20063:25:1;;;20119:2;20104:18;;20097:34;;;;20036:18;113235:51:0::1;;;;;;;113102:192:::0;;:::o;64816:528::-;64960:23;65051:8;65026:22;65051:8;-1:-1:-1;;;;;65118:36:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;65081:73;;65174:9;65169:125;65190:14;65185:1;:19;65169:125;;65246:32;65266:8;;65275:1;65266:11;;;;;;;:::i;:::-;;;;;;;65246:19;:32::i;:::-;65230:10;65241:1;65230:13;;;;;;;;:::i;:::-;;;;;;;;;;:48;65206:3;;65169:125;;;-1:-1:-1;65315:10:0;64816:528;-1:-1:-1;;;;64816:528:0:o;32562:152::-;32634:7;32677:27;32696:7;32677:18;:27::i;108882:156::-;97554:4;98000:16;97554:4;98000:10;:16::i;:::-;109019:11:::1;108998:10;:18;109009:6;108998:18;;;;;;;;:::i;:::-;;;;;;;;;:::i;109202:110::-:0;97554:4;98000:16;97554:4;98000:10;:16::i;:::-;-1:-1:-1;109286:12:0::1;:18:::0;;;::::1;;-1:-1:-1::0;;;109286:18:0::1;-1:-1:-1::0;;;;109286:18:0;;::::1;::::0;;;::::1;::::0;;109202:110::o;28104:233::-;28176:7;-1:-1:-1;;;;;28200:19:0;;28196:60;;28228:28;;-1:-1:-1;;;28228:28:0;;;;;;;;;;;28196:60;-1:-1:-1;;;;;;28274:25:0;;;;;:18;:25;;;;;;-1:-1:-1;;;;;28274:55:0;;28104:233::o;112566:147::-;97554:4;98000:16;97554:4;98000:10;:16::i;:::-;112699:6:::1;112676:12;:20;112689:6;112676:20;;;;;;;;:::i;:::-;;;;;;;;;:::i;:::-;::::0;;::::1;::::0;::::1;::::0;;;;;;-1:-1:-1;112676:20:0;:29;;-1:-1:-1;;112676:29:0::1;::::0;::::1;;::::0;;;::::1;::::0;;-1:-1:-1;;;112566:147:0:o;68692:900::-;68770:16;68824:19;68858:25;68898:22;68923:16;68933:5;68923:9;:16::i;:::-;68898:41;;68954:25;68996:14;-1:-1:-1;;;;;68982:29:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;68982:29:0;;68954:57;;69026:31;;:::i;:::-;108402:1;69072:472;69121:14;69106:11;:29;69072:472;;69173:15;69186:1;69173:12;:15::i;:::-;69161:27;;69211:9;:16;;;69252:8;69207:73;69302:14;;-1:-1:-1;;;;;69302:28:0;;69298:111;;69375:14;;;-1:-1:-1;69298:111:0;69452:5;-1:-1:-1;;;;;69431:26:0;:17;-1:-1:-1;;;;;69431:26:0;;69427:102;;69508:1;69482:8;69491:13;;;;;;69482:23;;;;;;;;:::i;:::-;;;;;;:27;;;;;69427:102;69137:3;;69072:472;;;-1:-1:-1;69565:8:0;;68692:900;-1:-1:-1;;;;;;68692:900:0:o;108140:162::-;97554:4;98000:16;97554:4;98000:10;:16::i;:::-;108285:9:::1;108259:14;:23;108274:7;108259:23;;;;;;;;:::i;:::-;;;;;;;;;:::i;:::-;;;;;;;;;;;;:35;;;;;;:::i;:::-;;108140:162:::0;;;:::o;98404:147::-;98490:4;98514:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;98514:29:0;;;;;;;;;;;;;;;98404:147::o;31345:104::-;31401:13;31434:7;31427:14;;;;;:::i;108419:377::-;108517:24;108473:14;108504:38;;;:12;:38;;;;;;:46;;:38;:46;108500:289;;-1:-1:-1;108574:24:0;;108419:377::o;108500:289::-;108633:23;108620:37;;;;:12;:37;;;;;;:45;;;;108616:173;;-1:-1:-1;108689:23:0;;108419:377::o;108616:173::-;-1:-1:-1;108752:25:0;;108419:377::o;65732:2513::-;65875:16;65942:4;65933:5;:13;65929:45;;65955:19;;-1:-1:-1;;;65955:19:0;;;;;;;;;;;65929:45;65989:19;66023:17;66043:14;26662:7;26689:13;;26607:103;66043:14;66023:34;-1:-1:-1;108402:1:0;66135:5;:23;66131:87;;;108402:1;66179:23;;66131:87;66294:9;66287:4;:16;66283:73;;;66331:9;66324:16;;66283:73;66370:25;66398:16;66408:5;66398:9;:16::i;:::-;66370:44;;66592:4;66584:5;:12;66580:278;;;66639:12;;;66674:31;;;66670:111;;;66750:11;66730:31;;66670:111;66598:198;66580:278;;;-1:-1:-1;66841:1:0;66580:278;66872:25;66914:17;-1:-1:-1;;;;;66900:32:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;66900:32:0;;66872:60;;66951:17;66972:1;66951:22;66947:78;;67001:8;-1:-1:-1;66994:15:0;;-1:-1:-1;;;66994:15:0;66947:78;67169:31;67203:26;67223:5;67203:19;:26::i;:::-;67169:60;;67244:25;67489:9;:16;;;67484:92;;-1:-1:-1;67546:14:0;;67484:92;67607:5;67590:478;67619:4;67614:1;:9;;:45;;;;;67642:17;67627:11;:32;;67614:45;67590:478;;;67697:15;67710:1;67697:12;:15::i;:::-;67685:27;;67735:9;:16;;;67776:8;67731:73;67826:14;;-1:-1:-1;;;;;67826:28:0;;67822:111;;67899:14;;;-1:-1:-1;67822:111:0;67976:5;-1:-1:-1;;;;;67955:26:0;:17;-1:-1:-1;;;;;67955:26:0;;67951:102;;68032:1;68006:8;68015:13;;;;;;68006:23;;;;;;;;:::i;:::-;;;;;;:27;;;;;67951:102;67661:3;;67590:478;;;-1:-1:-1;;;68153:29:0;;;-1:-1:-1;68160:8:0;;-1:-1:-1;;65732:2513:0;;;;;;:::o;112865:113::-;97554:4;98000:16;97554:4;98000:10;:16::i;:::-;-1:-1:-1;112951:10:0::1;:19:::0;;-1:-1:-1;;112951:19:0::1;::::0;::::1;;::::0;;;::::1;::::0;;112865:113::o;38218:234::-;61426:10;38313:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;38313:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;38313:60:0;;;;;;;;;;38389:55;;540:41:1;;;38313:49:0;;61426:10;38389:55;;513:18:1;38389:55:0;;;;;;;38218:234;;:::o;45011:407::-;45186:31;45199:4;45205:2;45209:7;45186:12;:31::i;:::-;-1:-1:-1;;;;;45232:14:0;;;:19;45228:183;;45271:56;45302:4;45308:2;45312:7;45321:5;45271:30;:56::i;:::-;45266:145;;45355:40;;-1:-1:-1;;;45355:40:0;;;;;;;;;;;64229:428;64313:21;;:::i;:::-;64347:31;;:::i;:::-;108402:1;64393:7;:25;:54;;;-1:-1:-1;26662:7:0;26689:13;64422:7;:25;;64393:54;64389:103;;;64471:9;64229:428;-1:-1:-1;;64229:428:0:o;64389:103::-;64514:21;64527:7;64514:12;:21::i;:::-;64502:33;;64550:9;:16;;;64546:65;;;64590:9;64229:428;-1:-1:-1;;64229:428:0:o;64546:65::-;64628:21;64641:7;64628:12;:21::i;107348:271::-;107470:8;;107440:13;;107470:8;;;;;107466:146;;;107502:20;107514:7;107502:11;:20::i;107466:146::-;107562:38;107577:22;;;:13;:22;;;;;;107562:14;;:38;107577:22;;107562:38;;;;;;;;:::i;:::-;;;;;;;;;:::i;:::-;;;;;;;;;;;;107555:45;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;107348:271;;;:::o;107466:146::-;107348:271;;;:::o;100812:149::-;100896:18;100909:4;100896:12;:18::i;:::-;98000:16;98011:4;98000:10;:16::i;:::-;100927:26:::1;100939:4;100945:7;100927:11;:26::i;109046:148::-:0;97554:4;98000:16;97554:4;98000:10;:16::i;:::-;109176:10:::1;109155:9;:18;109165:7;109155:18;;;;;;;;:::i;109320:102::-:0;97554:4;98000:16;97554:4;98000:10;:16::i;:::-;-1:-1:-1;109400:8:0::1;:14:::0;;;::::1;;::::0;::::1;-1:-1:-1::0;;109400:14:0;;::::1;::::0;;;::::1;::::0;;109320:102::o;111451:359::-;107156:8;;;;;;;:17;;107168:5;107156:17;107152:43;;107182:13;;-1:-1:-1;;;107182:13:0;;;;;;;;;;;107152:43;104430:21:::1;98000:16;98011:4;98000:10;:16::i;:::-;111725:77:::2;111734:11;111747;111760:12;;111774:10;111786:7;111795:6;111725:8;:77::i;:::-;107206:1:::1;111451:359:::0;;;;;;;:::o;30267:639::-;30352:4;-1:-1:-1;;;;;;;;;30676:25:0;;;;:102;;-1:-1:-1;;;;;;;;;;30753:25:0;;;30676:102;:179;;;-1:-1:-1;;;;;;;;30830:25:0;-1:-1:-1;;;30830:25:0;;30267:639::o;73449:215::-;73551:4;-1:-1:-1;;;;;;73575:41:0;;-1:-1:-1;;;73575:41:0;;:81;;-1:-1:-1;;;;;;;;;;72180:40:0;;;73620:36;72071:157;98108:204;98193:4;-1:-1:-1;;;;;;98217:47:0;;-1:-1:-1;;;98217:47:0;;:87;;;98268:36;98292:11;98268:23;:36::i;98855:105::-;98922:30;98933:4;61426:10;98922;:30::i;:::-;98855:105;:::o;74811:332::-;74527:5;-1:-1:-1;;;;;74914:33:0;;;;74906:88;;;;-1:-1:-1;;;74906:88:0;;20476:2:1;74906:88:0;;;20458:21:1;20515:2;20495:18;;;20488:30;20554:34;20534:18;;;20527:62;-1:-1:-1;;;20605:18:1;;;20598:40;20655:19;;74906:88:0;20274:406:1;74906:88:0;-1:-1:-1;;;;;75013:22:0;;75005:60;;;;-1:-1:-1;;;75005:60:0;;20887:2:1;75005:60:0;;;20869:21:1;20926:2;20906:18;;;20899:30;-1:-1:-1;;;20945:18:1;;;20938:55;21010:18;;75005:60:0;20685:349:1;75005:60:0;75100:35;;;;;;;;;-1:-1:-1;;;;;75100:35:0;;;;;;-1:-1:-1;;;;;75100:35:0;;;;;;;;;;-1:-1:-1;;;75078:57:0;;;;:19;:57;74811:332::o;39031:282::-;39096:4;39152:7;108402:1;39133:26;;:66;;;;;39186:13;;39176:7;:23;39133:66;:153;;;;-1:-1:-1;;39237:26:0;;;;:17;:26;;;;;;-1:-1:-1;;;39237:44:0;:49;;39031:282::o;48680:2966::-;48753:20;48776:13;;;48804;;;48800:44;;48826:18;;-1:-1:-1;;;48826:18:0;;;;;;;;;;;48800:44;48857:61;48887:1;48891:2;48895:12;48909:8;48857:21;:61::i;:::-;-1:-1:-1;;;;;49332:22:0;;;;;;:18;:22;;22401:2;49332:22;;:71;;-1:-1:-1;;;;;49358:45:0;;49332:71;;;49680:139;49332:22;-1:-1:-1;36382:15:0;;36356:24;36352:46;49680:18;:139::i;:::-;49646:31;;;;:17;:31;;;;;:173;;;;-1:-1:-1;;;;;50409:25:0;;;49881:23;;;;49664:12;;50409:25;;-1:-1:-1;;;;;;;;;;;49646:31:0;;50499:335;51160:1;51146:12;51142:20;51100:346;51201:3;51192:7;51189:16;51100:346;;51419:7;51409:8;51406:1;-1:-1:-1;;;;;;;;;;;51376:1:0;51373;51368:59;51254:1;51241:15;51100:346;;;51104:77;51479:8;51491:1;51479:13;51475:45;;51501:19;;-1:-1:-1;;;51501:19:0;;;;;;;;;;;51475:45;51537:13;:19;-1:-1:-1;113904:165:0;;;:::o;33717:1275::-;33784:7;33819;;108402:1;33868:23;33864:1061;;33921:13;;33914:4;:20;33910:1015;;;33959:14;33976:23;;;:17;:23;;;;;;;-1:-1:-1;;;34065:24:0;;:29;;34061:845;;34730:113;34737:6;34747:1;34737:11;34730:113;;-1:-1:-1;;;34808:6:0;34790:25;;;;:17;:25;;;;;;34730:113;;34061:845;33936:989;33910:1015;34953:31;;-1:-1:-1;;;34953:31:0;;;;;;;;;;;112313:245;-1:-1:-1;;;;;112465:18:0;;;112461:90;;112508:12;;-1:-1:-1;;;112508:12:0;;;;:20;;112524:4;112508:20;112500:39;;;;-1:-1:-1;;;112500:39:0;;21241:2:1;112500:39:0;;;21223:21:1;21280:1;21260:18;;;21253:29;-1:-1:-1;;;21298:18:1;;;21291:36;21344:18;;112500:39:0;21039:329:1;35540:450:0;35951:11;35926:23;35922:41;35919:52;-1:-1:-1;;;;;35777:28:0;;;;35909:63;;35540:450::o;103113:238::-;103197:22;103205:4;103211:7;103197;:22::i;:::-;103192:152;;103236:12;;;;:6;:12;;;;;;;;-1:-1:-1;;;;;103236:29:0;;;;;;;;;:36;;-1:-1:-1;;103236:36:0;103268:4;103236:36;;;103319:12;61426:10;;61339:105;103319:12;-1:-1:-1;;;;;103292:40:0;103310:7;-1:-1:-1;;;;;103292:40:0;103304:4;103292:40;;;;;;;;;;103113:238;;:::o;103531:239::-;103615:22;103623:4;103629:7;103615;:22::i;:::-;103611:152;;;103686:5;103654:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;103654:29:0;;;;;;;;;;:37;;-1:-1:-1;;103654:37:0;;;103711:40;61426:10;;103654:12;;103711:40;;103686:5;103711:40;103531:239;;:::o;55171:112::-;55248:27;55258:2;55262:8;55248:27;;;;;;;;;;;;:9;:27::i;110355:1088::-;110578:9;:18;110588:7;110578:18;;;;;;;;:::i;:::-;;;;;;;;;:::i;:::-;;;;;;;;;;;;;110564:11;110533:19;:28;110553:7;110533:28;;;;;;;;:::i;:::-;;;;;;;;;:::i;:::-;;;;;;;;;;;;;:42;;;;:::i;:::-;:63;110529:91;;;110605:15;;-1:-1:-1;;;110605:15:0;;;;;;;;;;;110529:91;110666:11;110647:7;:16;110655:7;110647:16;;;;;;;;:::i;:::-;;;;;;;;;:::i;:::-;;;;;;;;;;;;;:30;;;;:::i;:::-;110635:9;:42;110631:80;;;110686:25;;-1:-1:-1;;;110686:25:0;;110701:9;110686:25;;;3193::1;3166:18;;110686:25:0;3047:177:1;110631:80:0;110727:12;:20;110740:6;110727:20;;;;;;;;:::i;:::-;;;;;;;;;:::i;:::-;;;;;;;;;;;;-1:-1:-1;110727:20:0;;;;110722:47;;110756:13;;-1:-1:-1;;;110756:13:0;;;;;;;;;;;110722:47;110805:41;;-1:-1:-1;;;;;;21575:2:1;21546:15;;;21542:45;110805:41:0;;;21530:58:1;21604:12;;;21597:28;;;110780:12:0;;21641::1;;110805:41:0;;;;;;;;;;;;110795:52;;;;;;110780:67;;110915:11;110901;110862:16;:24;110879:6;110862:24;;;;;;;;:::i;:::-;;;;;;;;;:::i;:::-;;;;;;;;;;;;:36;110887:10;-1:-1:-1;;;;;110862:36:0;-1:-1:-1;;;;;110862:36:0;;;;;;;;;;;;;:50;;;;:::i;:::-;:64;110858:96;;;110935:19;;-1:-1:-1;;;110935:19:0;;;;;;;;;;;110858:96;110970:66;110997:12;;111011:10;:18;111022:6;111011:18;;;;;;;;:::i;:::-;;;;;;;;;:::i;:::-;;;;;;;;;;;;;111031:4;110970:26;:66::i;:::-;110965:100;;111045:20;;-1:-1:-1;;;111045:20:0;;;;;;;;;;;110965:100;111078:21;26689:13;111127:30;111133:10;111145:11;111127:5;:30::i;:::-;111208:11;111168:16;:24;111185:6;111168:24;;;;;;;;:::i;:::-;;;;;;;;;:::i;:::-;;;;;;;;;;;;:36;111193:10;-1:-1:-1;;;;;111168:36:0;-1:-1:-1;;;;;111168:36:0;;;;;;;;;;;;;:51;;;;;;;:::i;:::-;;;;-1:-1:-1;111294:11:0;;-1:-1:-1;111263:19:0;:28;111283:7;111263:28;;;;;;;;:::i;:::-;;;;;;;;;:::i;:::-;;;;;;;;;;;;;:42;;;;:::i;:::-;111232:19;:28;111252:7;111232:28;;;;;;;;:::i;:::-;;;;;;;;;:::i;:::-;;;;;;;;;;;;-1:-1:-1;111232:28:0;:73;111330:13;111316:120;111349:27;111365:11;111349:13;:27;:::i;:::-;111345:1;:31;111316:120;;;111398:16;;;;:13;:16;;;;;:26;;111417:7;;111398:16;-1:-1:-1;;111398:26:0;;111417:7;111398:26;;;;;;;;:::i;:::-;;;;;-1:-1:-1;111378:3:0;;;;:::i;:::-;;;;111316:120;;;;110518:925;;110355:1088;;;;;;;:::o;33165:161::-;33233:21;;:::i;:::-;33293:24;;;;:17;:24;;;;;;33274:44;;:18;:44::i;47502:716::-;47686:88;;-1:-1:-1;;;47686:88:0;;47665:4;;-1:-1:-1;;;;;47686:45:0;;;;;:88;;61426:10;;47753:4;;47759:7;;47768:5;;47686:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;47686:88:0;;;;;;;;-1:-1:-1;;47686:88:0;;;;;;;;;;;;:::i;:::-;;;47682:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47969:6;:13;47986:1;47969:18;47965:235;;48015:40;;-1:-1:-1;;;48015:40:0;;;;;;;;;;;47965:235;48158:6;48152:13;48143:6;48139:2;48135:15;48128:38;47682:529;-1:-1:-1;;;;;;47845:64:0;-1:-1:-1;;;47845:64:0;;-1:-1:-1;47682:529:0;47502:716;;;;;;:::o;32903:166::-;32973:21;;:::i;:::-;33014:47;33033:27;33052:7;33033:18;:27::i;:::-;33014:18;:47::i;107627:300::-;107724:20;;;;:11;:20;;;;;107718:34;;107688:13;;107724:20;107718:34;;;:::i;:::-;;;107756:1;107718:39;107714:206;;107805:25;107822:7;107805:16;:25::i;:::-;107832:14;;;;;;;;;;;;;-1:-1:-1;;;107832:14:0;;;107788:59;;;;;;;;;:::i;:::-;;;;;;;;;;;;;107774:74;;107627:300;;;:::o;107714:206::-;107888:20;;;;:11;:20;;;;;107881:27;;;;;:::i;99250:492::-;99339:22;99347:4;99353:7;99339;:22::i;:::-;99334:401;;99527:28;99547:7;99527:19;:28::i;:::-;99628:38;99656:4;99663:2;99628:19;:38::i;:::-;99432:257;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;99432:257:0;;;;;;;;;;-1:-1:-1;;;99378:345:0;;;;;;;:::i;54398:689::-;54529:19;54535:2;54539:8;54529:5;:19::i;:::-;-1:-1:-1;;;;;54590:14:0;;;:19;54586:483;;54630:11;54644:13;54692:14;;;54725:233;54756:62;54795:1;54799:2;54803:7;;;;;;54812:5;54756:30;:62::i;:::-;54751:167;;54854:40;;-1:-1:-1;;;54854:40:0;;;;;;;;;;;54751:167;54953:3;54945:5;:11;54725:233;;55040:3;55023:13;;:20;55019:34;;55045:8;;;1482:208;1617:4;1678;1641:33;1662:5;;1669:4;1641:20;:33::i;:::-;:41;;1482:208;-1:-1:-1;;;;;1482:208:0:o;35091:366::-;35157:31;;:::i;:::-;-1:-1:-1;;;;;35201:41:0;;;;-1:-1:-1;;;;;22922:3:0;35287:33;;;35253:68;:24;;;:68;-1:-1:-1;;;35351:24:0;;:29;;35332:16;;;:48;23443:3;35420:28;;;;35391:19;;;:58;35201:9;35091:366::o;31555:318::-;31628:13;31659:16;31667:7;31659;:16::i;:::-;31654:59;;31684:29;;-1:-1:-1;;;31684:29:0;;;;;;;;;;;31654:59;31726:21;31750:10;:8;:10::i;:::-;31726:34;;31784:7;31778:21;31803:1;31778:26;:87;;;;;;;;;;;;;;;;;31831:7;31840:18;31850:7;31840:9;:18::i;:::-;31814:45;;;;;;;;;:::i;:::-;;;;;;;;;;;;;31771:94;31555:318;-1:-1:-1;;;31555:318:0:o;95549:151::-;95607:13;95640:52;-1:-1:-1;;;;;95652:22:0;;93704:2;94945:447;95020:13;95046:19;95078:10;95082:6;95078:1;:10;:::i;:::-;:14;;95091:1;95078:14;:::i;:::-;-1:-1:-1;;;;;95068:25:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;95068:25:0;;95046:47;;-1:-1:-1;;;95104:6:0;95111:1;95104:9;;;;;;;;:::i;:::-;;;;:15;-1:-1:-1;;;;;95104:15:0;;;;;;;;;-1:-1:-1;;;95130:6:0;95137:1;95130:9;;;;;;;;:::i;:::-;;;;:15;-1:-1:-1;;;;;95130:15:0;;;;;;;;-1:-1:-1;95161:9:0;95173:10;95177:6;95173:1;:10;:::i;:::-;:14;;95186:1;95173:14;:::i;:::-;95161:26;;95156:131;95193:1;95189;:5;95156:131;;;-1:-1:-1;;;95237:5:0;95245:3;95237:11;95228:21;;;;;;;:::i;:::-;;;;95216:6;95223:1;95216:9;;;;;;;;:::i;:::-;;;;:33;-1:-1:-1;;;;;95216:33:0;;;;;;;;-1:-1:-1;95274:1:0;95264:11;;;;;95196:3;;;:::i;:::-;;;95156:131;;;-1:-1:-1;95305:10:0;;95297:55;;;;-1:-1:-1;;;95297:55:0;;24073:2:1;95297:55:0;;;24055:21:1;;;24092:18;;;24085:30;24151:34;24131:18;;;24124:62;24203:18;;95297:55:0;23871:356:1;2461:306:0;2554:7;2597:4;2554:7;2612:118;2632:16;;;2612:118;;;2685:33;2695:12;2709:5;;2715:1;2709:8;;;;;;;:::i;:::-;;;;;;;2685:9;:33::i;:::-;2670:48;-1:-1:-1;2650:3:0;;;;:::i;:::-;;;;2612:118;;107240:100;107292:13;107325:7;107318:14;;;;;:::i;61546:1745::-;61611:17;62045:4;62038;62032:11;62028:22;62137:1;62131:4;62124:15;62212:4;62209:1;62205:12;62198:19;;;62294:1;62289:3;62282:14;62398:3;62637:5;62619:428;62685:1;62680:3;62676:11;62669:18;;62856:2;62850:4;62846:13;62842:2;62838:22;62833:3;62825:36;62950:2;62940:13;;63007:25;62619:428;63007:25;-1:-1:-1;63077:13:0;;;-1:-1:-1;;63192:14:0;;;63254:19;;;63192:14;61546:1745;-1:-1:-1;61546:1745:0:o;9091:149::-;9154:7;9185:1;9181;:5;:51;;9316:13;9410:15;;;9446:4;9439:15;;;9493:4;9477:21;;9181:51;;;9316:13;9410:15;;;9446:4;9439:15;;;9493:4;9477:21;;9189:20;9248:268;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::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:173::-;660:20;;-1:-1:-1;;;;;709:31:1;;699:42;;689:70;;755:1;752;745:12;770:358;837:6;845;898:2;886:9;877:7;873:23;869:32;866:52;;;914:1;911;904:12;866:52;937:29;956:9;937:29;:::i;:::-;927:39;-1:-1:-1;1016:2:1;1001:18;;988:32;-1:-1:-1;;;;;1049:30:1;;1039:41;;1029:69;;1094:1;1091;1084:12;1029:69;1117:5;1107:15;;;770:358;;;;;:::o;1133:250::-;1218:1;1228:113;1242:6;1239:1;1236:13;1228:113;;;1318:11;;;1312:18;1299:11;;;1292:39;1264:2;1257:10;1228:113;;;-1:-1:-1;;1375:1:1;1357:16;;1350:27;1133:250::o;1388:271::-;1430:3;1468:5;1462:12;1495:6;1490:3;1483:19;1511:76;1580:6;1573:4;1568:3;1564:14;1557:4;1550:5;1546:16;1511:76;:::i;:::-;1641:2;1620:15;-1:-1:-1;;1616:29:1;1607:39;;;;1648:4;1603:50;;1388:271;-1:-1:-1;;1388:271:1:o;1664:220::-;1813:2;1802:9;1795:21;1776:4;1833:45;1874:2;1863:9;1859:18;1851:6;1833:45;:::i;1889:180::-;1948:6;2001:2;1989:9;1980:7;1976:23;1972:32;1969:52;;;2017:1;2014;2007:12;1969:52;-1:-1:-1;2040:23:1;;1889:180;-1:-1:-1;1889:180:1:o;2282:254::-;2350:6;2358;2411:2;2399:9;2390:7;2386:23;2382:32;2379:52;;;2427:1;2424;2417:12;2379:52;2450:29;2469:9;2450:29;:::i;:::-;2440:39;2526:2;2511:18;;;;2498:32;;-1:-1:-1;;;2282:254:1:o;2541:149::-;2615:20;;2664:1;2654:12;;2644:40;;2680:1;2677;2670:12;2695:347;2785:6;2793;2801;2854:2;2842:9;2833:7;2829:23;2825:32;2822:52;;;2870:1;2867;2860:12;2822:52;2893:29;2912:9;2893:29;:::i;:::-;2883:39;;2969:2;2958:9;2954:18;2941:32;2931:42;;2992:44;3032:2;3021:9;3017:18;2992:44;:::i;:::-;2982:54;;2695:347;;;;;:::o;3229:205::-;3301:6;3354:2;3342:9;3333:7;3329:23;3325:32;3322:52;;;3370:1;3367;3360:12;3322:52;3393:35;3418:9;3393:35;:::i;3439:328::-;3516:6;3524;3532;3585:2;3573:9;3564:7;3560:23;3556:32;3553:52;;;3601:1;3598;3591:12;3553:52;3624:29;3643:9;3624:29;:::i;:::-;3614:39;;3672:38;3706:2;3695:9;3691:18;3672:38;:::i;:::-;3662:48;;3757:2;3746:9;3742:18;3729:32;3719:42;;3439:328;;;;;:::o;4139:160::-;4204:20;;4260:13;;4253:21;4243:32;;4233:60;;4289:1;4286;4279:12;4304:180;4360:6;4413:2;4401:9;4392:7;4388:23;4384:32;4381:52;;;4429:1;4426;4419:12;4381:52;4452:26;4468:9;4452:26;:::i;4489:248::-;4557:6;4565;4618:2;4606:9;4597:7;4593:23;4589:32;4586:52;;;4634:1;4631;4624:12;4586:52;-1:-1:-1;;4657:23:1;;;4727:2;4712:18;;;4699:32;;-1:-1:-1;4489:248:1:o;5021:127::-;5082:10;5077:3;5073:20;5070:1;5063:31;5113:4;5110:1;5103:15;5137:4;5134:1;5127:15;5153:632;5218:5;-1:-1:-1;;;;;5289:2:1;5281:6;5278:14;5275:40;;;5295:18;;:::i;:::-;5370:2;5364:9;5338:2;5424:15;;-1:-1:-1;;5420:24:1;;;5446:2;5416:33;5412:42;5400:55;;;5470:18;;;5490:22;;;5467:46;5464:72;;;5516:18;;:::i;:::-;5556:10;5552:2;5545:22;5585:6;5576:15;;5615:6;5607;5600:22;5655:3;5646:6;5641:3;5637:16;5634:25;5631:45;;;5672:1;5669;5662:12;5631:45;5722:6;5717:3;5710:4;5702:6;5698:17;5685:44;5777:1;5770:4;5761:6;5753;5749:19;5745:30;5738:41;;;;5153:632;;;;;:::o;5790:222::-;5833:5;5886:3;5879:4;5871:6;5867:17;5863:27;5853:55;;5904:1;5901;5894:12;5853:55;5926:80;6002:3;5993:6;5980:20;5973:4;5965:6;5961:17;5926:80;:::i;6017:390::-;6095:6;6103;6156:2;6144:9;6135:7;6131:23;6127:32;6124:52;;;6172:1;6169;6162:12;6124:52;6208:9;6195:23;6185:33;;6269:2;6258:9;6254:18;6241:32;-1:-1:-1;;;;;6288:6:1;6285:30;6282:50;;;6328:1;6325;6318:12;6282:50;6351;6393:7;6384:6;6373:9;6369:22;6351:50;:::i;:::-;6341:60;;;6017:390;;;;;:::o;6412:254::-;6480:6;6488;6541:2;6529:9;6520:7;6516:23;6512:32;6509:52;;;6557:1;6554;6547:12;6509:52;6593:9;6580:23;6570:33;;6622:38;6656:2;6645:9;6641:18;6622:38;:::i;:::-;6612:48;;6412:254;;;;;:::o;6671:273::-;6752:6;6760;6813:2;6801:9;6792:7;6788:23;6784:32;6781:52;;;6829:1;6826;6819:12;6781:52;6865:9;6852:23;6842:33;;6894:44;6934:2;6923:9;6919:18;6894:44;:::i;6949:127::-;7010:10;7005:3;7001:20;6998:1;6991:31;7041:4;7038:1;7031:15;7065:4;7062:1;7055:15;7081:244;7226:2;7211:18;;7259:1;7248:13;;7238:47;;7265:18;;:::i;:::-;7294:25;;;7081:244;:::o;7330:367::-;7393:8;7403:6;7457:3;7450:4;7442:6;7438:17;7434:27;7424:55;;7475:1;7472;7465:12;7424:55;-1:-1:-1;7498:20:1;;-1:-1:-1;;;;;7530:30:1;;7527:50;;;7573:1;7570;7563:12;7527:50;7610:4;7602:6;7598:17;7586:29;;7670:3;7663:4;7653:6;7650:1;7646:14;7638:6;7634:27;7630:38;7627:47;7624:67;;;7687:1;7684;7677:12;7702:155;7782:20;;7831:1;7821:12;;7811:40;;7847:1;7844;7837:12;7862:773;8016:6;8024;8032;8040;8048;8056;8109:3;8097:9;8088:7;8084:23;8080:33;8077:53;;;8126:1;8123;8116:12;8077:53;8162:9;8149:23;8139:33;;8219:2;8208:9;8204:18;8191:32;8181:42;;8274:2;8263:9;8259:18;8246:32;-1:-1:-1;;;;;8293:6:1;8290:30;8287:50;;;8333:1;8330;8323:12;8287:50;8372:70;8434:7;8425:6;8414:9;8410:22;8372:70;:::i;:::-;8461:8;;-1:-1:-1;8346:96:1;-1:-1:-1;8515:44:1;;-1:-1:-1;8555:2:1;8540:18;;8515:44;:::i;:::-;8505:54;;8578:51;8624:3;8613:9;8609:19;8578:51;:::i;:::-;8568:61;;7862:773;;;;;;;;:::o;8640:322::-;8709:6;8762:2;8750:9;8741:7;8737:23;8733:32;8730:52;;;8778:1;8775;8768:12;8730:52;8818:9;8805:23;-1:-1:-1;;;;;8843:6:1;8840:30;8837:50;;;8883:1;8880;8873:12;8837:50;8906;8948:7;8939:6;8928:9;8924:22;8906:50;:::i;8967:437::-;9053:6;9061;9114:2;9102:9;9093:7;9089:23;9085:32;9082:52;;;9130:1;9127;9120:12;9082:52;9170:9;9157:23;-1:-1:-1;;;;;9195:6:1;9192:30;9189:50;;;9235:1;9232;9225:12;9189:50;9274:70;9336:7;9327:6;9316:9;9312:22;9274:70;:::i;:::-;9363:8;;9248:96;;-1:-1:-1;8967:437:1;-1:-1:-1;;;;8967:437:1:o;9409:349::-;9493:12;;-1:-1:-1;;;;;9489:38:1;9477:51;;9581:4;9570:16;;;9564:23;-1:-1:-1;;;;;9560:48:1;9544:14;;;9537:72;9672:4;9661:16;;;9655:23;9648:31;9641:39;9625:14;;;9618:63;9734:4;9723:16;;;9717:23;9742:8;9713:38;9697:14;;9690:62;9409:349::o;9763:722::-;9996:2;10048:21;;;10118:13;;10021:18;;;10140:22;;;9967:4;;9996:2;10219:15;;;;10193:2;10178:18;;;9967:4;10262:197;10276:6;10273:1;10270:13;10262:197;;;10325:52;10373:3;10364:6;10358:13;10325:52;:::i;:::-;10434:15;;;;10406:4;10397:14;;;;;10298:1;10291:9;10262:197;;10490:285;10577:6;10585;10638:2;10626:9;10617:7;10613:23;10609:32;10606:52;;;10654:1;10651;10644:12;10606:52;10690:9;10677:23;10667:33;;10719:50;10765:2;10754:9;10750:18;10719:50;:::i;10780:186::-;10839:6;10892:2;10880:9;10871:7;10867:23;10863:32;10860:52;;;10908:1;10905;10898:12;10860:52;10931:29;10950:9;10931:29;:::i;10971:285::-;11055:6;11063;11116:2;11104:9;11095:7;11091:23;11087:32;11084:52;;;11132:1;11129;11122:12;11084:52;11155:26;11171:9;11155:26;:::i;:::-;11145:36;;11200:50;11246:2;11235:9;11231:18;11200:50;:::i;11261:217::-;11339:6;11392:2;11380:9;11371:7;11367:23;11363:32;11360:52;;;11408:1;11405;11398:12;11360:52;11431:41;11462:9;11431:41;:::i;11483:632::-;11654:2;11706:21;;;11776:13;;11679:18;;;11798:22;;;11625:4;;11654:2;11877:15;;;;11851:2;11836:18;;;11625:4;11920:169;11934:6;11931:1;11928:13;11920:169;;;11995:13;;11983:26;;12064:15;;;;12029:12;;;;11956:1;11949:9;11920:169;;12120:415;12211:6;12219;12272:2;12260:9;12251:7;12247:23;12243:32;12240:52;;;12288:1;12285;12278:12;12240:52;12311:35;12336:9;12311:35;:::i;:::-;12301:45;;12397:2;12386:9;12382:18;12369:32;-1:-1:-1;;;;;12416:6:1;12413:30;12410:50;;;12456:1;12453;12446:12;12540:250;12691:2;12676:18;;12724:1;12713:13;;12703:47;;12730:18;;:::i;12795:291::-;12882:6;12890;12943:2;12931:9;12922:7;12918:23;12914:32;12911:52;;;12959:1;12956;12949:12;12911:52;12982:41;13013:9;12982:41;:::i;:::-;12972:51;;13042:38;13076:2;13065:9;13061:18;13042:38;:::i;13091:322::-;13168:6;13176;13184;13237:2;13225:9;13216:7;13212:23;13208:32;13205:52;;;13253:1;13250;13243:12;13205:52;13276:29;13295:9;13276:29;:::i;:::-;13266:39;13352:2;13337:18;;13324:32;;-1:-1:-1;13403:2:1;13388:18;;;13375:32;;13091:322;-1:-1:-1;;;13091:322:1:o;13418:254::-;13483:6;13491;13544:2;13532:9;13523:7;13519:23;13515:32;13512:52;;;13560:1;13557;13550:12;13512:52;13583:29;13602:9;13583:29;:::i;:::-;13573:39;;13631:35;13662:2;13651:9;13647:18;13631:35;:::i;13677:667::-;13772:6;13780;13788;13796;13849:3;13837:9;13828:7;13824:23;13820:33;13817:53;;;13866:1;13863;13856:12;13817:53;13889:29;13908:9;13889:29;:::i;:::-;13879:39;;13937:38;13971:2;13960:9;13956:18;13937:38;:::i;:::-;13927:48;;14022:2;14011:9;14007:18;13994:32;13984:42;;14077:2;14066:9;14062:18;14049:32;-1:-1:-1;;;;;14096:6:1;14093:30;14090:50;;;14136:1;14133;14126:12;14090:50;14159:22;;14212:4;14204:13;;14200:27;-1:-1:-1;14190:55:1;;14241:1;14238;14231:12;14190:55;14264:74;14330:7;14325:2;14312:16;14307:2;14303;14299:11;14264:74;:::i;:::-;14254:84;;;13677:667;;;;;;;:::o;14349:266::-;14545:3;14530:19;;14558:51;14534:9;14591:6;14558:51;:::i;14620:260::-;14688:6;14696;14749:2;14737:9;14728:7;14724:23;14720:32;14717:52;;;14765:1;14762;14755:12;14717:52;14788:29;14807:9;14788:29;:::i;14885:848::-;15048:6;15056;15064;15072;15080;15088;15096;15149:3;15137:9;15128:7;15124:23;15120:33;15117:53;;;15166:1;15163;15156:12;15117:53;15202:9;15189:23;15179:33;;15259:2;15248:9;15244:18;15231:32;15221:42;;15314:2;15303:9;15299:18;15286:32;-1:-1:-1;;;;;15333:6:1;15330:30;15327:50;;;15373:1;15370;15363:12;15327:50;15412:70;15474:7;15465:6;15454:9;15450:22;15412:70;:::i;:::-;15501:8;;-1:-1:-1;15386:96:1;-1:-1:-1;15555:38:1;;-1:-1:-1;15589:2:1;15574:18;;15555:38;:::i;:::-;15545:48;;15612:45;15652:3;15641:9;15637:19;15612:45;:::i;:::-;15602:55;;15676:51;15722:3;15711:9;15707:19;15676:51;:::i;:::-;15666:61;;14885:848;;;;;;;;;;:::o;15738:380::-;15817:1;15813:12;;;;15860;;;15881:61;;15935:4;15927:6;15923:17;15913:27;;15881:61;15988:2;15980:6;15977:14;15957:18;15954:38;15951:161;;16034:10;16029:3;16025:20;16022:1;16015:31;16069:4;16066:1;16059:15;16097:4;16094:1;16087:15;15951:161;;15738:380;;;:::o;16123:127::-;16184:10;16179:3;16175:20;16172:1;16165:31;16215:4;16212:1;16205:15;16239:4;16236:1;16229:15;16255:125;16320:9;;;16341:10;;;16338:36;;;16354:18;;:::i;16385:168::-;16458:9;;;16489;;16506:15;;;16500:22;;16486:37;16476:71;;16527:18;;:::i;16558:135::-;16597:3;16618:17;;;16615:43;;16638:18;;:::i;:::-;-1:-1:-1;16685:1:1;16674:13;;16558:135::o;16698:217::-;16738:1;16764;16754:132;;16808:10;16803:3;16799:20;16796:1;16789:31;16843:4;16840:1;16833:15;16871:4;16868:1;16861:15;16754:132;-1:-1:-1;16900:9:1;;16698:217::o;17046:545::-;17148:2;17143:3;17140:11;17137:448;;;17184:1;17209:5;17205:2;17198:17;17254:4;17250:2;17240:19;17324:2;17312:10;17308:19;17305:1;17301:27;17295:4;17291:38;17360:4;17348:10;17345:20;17342:47;;;-1:-1:-1;17383:4:1;17342:47;17438:2;17433:3;17429:12;17426:1;17422:20;17416:4;17412:31;17402:41;;17493:82;17511:2;17504:5;17501:13;17493:82;;;17556:17;;;17537:1;17526:13;17493:82;;17767:1352;17893:3;17887:10;-1:-1:-1;;;;;17912:6:1;17909:30;17906:56;;;17942:18;;:::i;:::-;17971:97;18061:6;18021:38;18053:4;18047:11;18021:38;:::i;:::-;18015:4;17971:97;:::i;:::-;18123:4;;18187:2;18176:14;;18204:1;18199:663;;;;18906:1;18923:6;18920:89;;;-1:-1:-1;18975:19:1;;;18969:26;18920:89;-1:-1:-1;;17724:1:1;17720:11;;;17716:24;17712:29;17702:40;17748:1;17744:11;;;17699:57;19022:81;;18169:944;;18199:663;16993:1;16986:14;;;17030:4;17017:18;;-1:-1:-1;;18235:20:1;;;18353:236;18367:7;18364:1;18361:14;18353:236;;;18456:19;;;18450:26;18435:42;;18548:27;;;;18516:1;18504:14;;;;18383:19;;18353:236;;;18357:3;18617:6;18608:7;18605:19;18602:201;;;18678:19;;;18672:26;-1:-1:-1;;18761:1:1;18757:14;;;18773:3;18753:24;18749:37;18745:42;18730:58;18715:74;;18602:201;-1:-1:-1;;;;;18849:1:1;18833:14;;;18829:22;18816:36;;-1:-1:-1;17767:1352:1:o;20142:127::-;20203:10;20198:3;20194:20;20191:1;20184:31;20234:4;20231:1;20224:15;20258:4;20255:1;20248:15;21664:489;-1:-1:-1;;;;;21933:15:1;;;21915:34;;21985:15;;21980:2;21965:18;;21958:43;22032:2;22017:18;;22010:34;;;22080:3;22075:2;22060:18;;22053:31;;;21858:4;;22101:46;;22127:19;;22119:6;22101:46;:::i;:::-;22093:54;21664:489;-1:-1:-1;;;;;;21664:489:1:o;22158:249::-;22227:6;22280:2;22268:9;22259:7;22255:23;22251:32;22248:52;;;22296:1;22293;22286:12;22248:52;22328:9;22322:16;22347:30;22371:5;22347:30;:::i;22412:496::-;22591:3;22629:6;22623:13;22645:66;22704:6;22699:3;22692:4;22684:6;22680:17;22645:66;:::i;:::-;22774:13;;22733:16;;;;22796:70;22774:13;22733:16;22843:4;22831:17;;22796:70;:::i;:::-;22882:20;;22412:496;-1:-1:-1;;;;22412:496:1:o;22913:812::-;-1:-1:-1;;;23319:3:1;23312:38;23294:3;23379:6;23373:13;23395:75;23463:6;23458:2;23453:3;23449:12;23442:4;23434:6;23430:17;23395:75;:::i;:::-;-1:-1:-1;;;23529:2:1;23489:16;;;23521:11;;;23514:40;23579:13;;23601:76;23579:13;23663:2;23655:11;;23648:4;23636:17;;23601:76;:::i;:::-;23697:17;23716:2;23693:26;;22913:812;-1:-1:-1;;;;22913:812:1:o;23730:136::-;23769:3;23797:5;23787:39;;23806:18;;:::i;:::-;-1:-1:-1;;;23842:18:1;;23730:136::o
Swarm Source
ipfs://822b87ec0a14adede8017f7b66c612c1b6ec3dc2327c2ecd4820b1d4dd6447cb
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.