Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
NFT
Overview
Max Total Supply
1,276 MINTSTONE
Holders
466
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
0 MINTSTONELoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
MintStone
Compiler Version
v0.8.16+commit.07a7930e
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT // Creator: twitter.com/0xNox_ETH // .;::::::::::::::::::::::::::::::;. // ;XMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMN: // ;XWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMX; // ;KNNNWMMWMMMMMMWWNNNNNNNNNWMMMMMN: // .',oXMMMMMMMNk:''''''''';OMMMMMN: // ,xNMMMMMMNk; l00000k, // .lNMMMMMMNk; ..... // 'dXMMWNO; ....... // 'd0k;. .dXXXXX0; // .,;;:lc;;;;;;;;;;;;;;;;;;c0MMMMMN: // ;XMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMX: // ;XMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMN: // ;XWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWX: // .,;,;;;;;;;;;;;;;;;;;;;;;;;,;;,;,. // 'dkxkkxxkkkkkkkkkkkkkkkkkkxxxkxkd' // ;XMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMN: // ;XMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMN: // 'xkkkOOkkkkkkkkkkkkkkkkkkkkkkkkkx' // .,,,,,,,,,,,,,,,,,,,,,. // .lKNWWWWWWWWWWWWWWWWWWWX; // .lKWMMMMMMMMMMMMMMMMMMMMMX; // .lKWMMMMMMMMMMMMMMMMMMMMMMMN: // .lKWMMMMMWKo:::::::::::::::::;. // .lKWMMMMMWKl. // .lNMMMMMWKl. // ;kNMWKl. // ;dl. // // We vow to Protect // Against the powers of Darkness // To rain down Justice // Against all who seek to cause Harm // To heed the call of those in Need // To offer up our Arms // In body and name we give our Code // // FOR THE BLOCKCHAIN ⚔️ pragma solidity ^0.8.4; import "./extensions/IERC721ABurnable.sol"; import "./extensions/ERC721AQueryable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; contract MintStone is ERC721AQueryable, IERC721ABurnable, Ownable, Pausable, ReentrancyGuard { using MerkleProof for bytes32[]; event PermanentURI(string _value, uint256 indexed _id); string private _baseTokenURI; bool public _baseURILocked; address private _authorizedContract; address private _admin; bytes32 public _allowlistMerkleRoot; uint256 public _maxMintPerWallet = 1; uint256 public _maxSupply = 7000; bool private _maxSupplyLocked; constructor( string memory baseTokenURI, address admin, bytes32 allowlistMerkleRoot) ERC721A("CF Mintstone", "MINTSTONE") { _admin = admin; _baseTokenURI = baseTokenURI; _allowlistMerkleRoot = allowlistMerkleRoot; _safeMint(msg.sender, 1); _pause(); } modifier callerIsUser() { require(tx.origin == msg.sender, "Caller is another contract"); _; } modifier verify( address account, bytes32[] calldata merkleProof, bytes32 merkleRoot ) { require( merkleProof.verify(merkleRoot, keccak256(abi.encodePacked(account))), "Address not allowed" ); _; } modifier onlyOwnerOrAdmin() { require(msg.sender == owner() || msg.sender == _admin, "Not owner or admin"); _; } function setBaseURI(string calldata newBaseURI) external onlyOwnerOrAdmin { require(!_baseURILocked, "Base URI is locked"); _baseTokenURI = newBaseURI; } function _baseURI() internal view virtual override returns (string memory) { return _baseTokenURI; } function setAllowlistMerkleRoot(bytes32 root) external onlyOwnerOrAdmin { _allowlistMerkleRoot = root; } function isAllowlisted(address account, bytes32[] calldata merkleProof) external view returns(bool) { return merkleProof.verify(_allowlistMerkleRoot, keccak256(abi.encodePacked(account))); } function mint(bytes32[] calldata merkleProof, uint256 quantity) external nonReentrant callerIsUser verify(msg.sender, merkleProof, _allowlistMerkleRoot) whenNotPaused { require(_numberMinted(msg.sender) + quantity <= _maxMintPerWallet, "Quantity exceeds wallet limit"); require(totalSupply() + quantity <= _maxSupply, "Quantity exceeds supply"); _safeMint(msg.sender, quantity); } function ownerMint(address to, uint256 quantity) external onlyOwnerOrAdmin { require(totalSupply() + quantity <= _maxSupply, "Quantity exceeds supply"); _safeMint(to, quantity); } // Pauses the mint process function pause() external onlyOwnerOrAdmin { _pause(); } // Unpauses the mint process function unpause() external onlyOwnerOrAdmin { _unpause(); } function setMaxMintPerWallet(uint256 quantity) external onlyOwnerOrAdmin { _maxMintPerWallet = quantity; } function setMaxSupply(uint256 supply) external onlyOwnerOrAdmin { require(!_maxSupplyLocked, "Max supply is locked"); _maxSupply = supply; } // Locks maximum supply forever function lockMaxSupply() external onlyOwnerOrAdmin { _maxSupplyLocked = true; } // Locks base token URI forever and emits PermanentURI for marketplaces (e.g. OpenSea) function lockBaseURI() external onlyOwnerOrAdmin { _baseURILocked = true; for (uint256 i = 0; i < totalSupply(); i++) { emit PermanentURI(tokenURI(i), i); } } // Only the owner of the token and its approved operators, and the authorized contract // can call this function. function burn(uint256 tokenId) public virtual override { // Avoid unnecessary approvals for the authorized contract bool approvalCheck = msg.sender != _authorizedContract; _burn(tokenId, approvalCheck); } function setAdmin(address admin) external onlyOwner { _admin = admin; } function setAuthorizedContract(address authorizedContract) external onlyOwnerOrAdmin { _authorizedContract = authorizedContract; } // OpenSea metadata initialization function contractURI() public pure returns (string memory) { return "https://cloneforce.xyz/api/mintstone/marketplace-metadata"; } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.2 // Creator: Chiru Labs pragma solidity ^0.8.4; import '../IERC721A.sol'; /** * @dev Interface of ERC721ABurnable. */ interface IERC721ABurnable is IERC721A { /** * @dev Burns `tokenId`. See {ERC721A-_burn}. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function burn(uint256 tokenId) external; }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.2 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721AQueryable.sol'; import '../ERC721A.sol'; /** * @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; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`, * consuming from one or the other at each step according to the instructions given by * `proofFlags`. * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof} * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.2 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * The caller cannot approve to their own address. */ error ApproveToCaller(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the * ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables * (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, * checking first that contract recipients are aware of the ERC721 protocol * to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move * this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} * whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.2 // Creator: Chiru Labs pragma solidity ^0.8.4; import '../IERC721A.sol'; /** * @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); }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.2 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; /** * @dev Interface of ERC721 token receiver. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @title ERC721A * * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) * Non-Fungible Token Standard, including the Metadata extension. * Optimized for lower gas during batch mints. * * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) * starting from `_startTokenId()`. * * Assumptions: * * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Reference type for token approval. struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // Mask of an entry in packed address data. uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant _BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant _BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant _BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant _BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant _BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant _BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant _BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with {_mintERC2309}. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309} // is required to cause an overflow, which is unrealistic. uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See {_packedOwnershipOf} implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 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 virtual override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId].value; } /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSenderERC721A()) revert ApproveToCaller(); _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned. } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].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 virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Hook that is called before a set of serially-ordered token IDs * are about to be transferred. This includes minting. * And also called before burning one token. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token IDs * have been transferred. This includes minting. * And also called after one token has been burned. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 toMasked; uint256 end = startTokenId + quantity; // Use assembly to loop and emit the `Transfer` event for gas savings. // 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`. ) for { let tokenId := add(startTokenId, 1) } iszero(eq(tokenId, end)) { tokenId := add(tokenId, 1) } { // Emit the `Transfer` event. Similar to above. log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId) } } if (toMasked == 0) revert MintToZeroAddress(); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString(uint256 value) internal pure virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), // but we allocate 0x80 bytes to keep the free memory pointer 32-byte word aligned. // We will need 1 32-byte word to store the length, // and 3 32-byte words to store a maximum of 78 digits. Total: 0x20 + 3 * 0x20 = 0x80. str := add(mload(0x40), 0x80) // Update the free memory pointer to allocate. mstore(0x40, str) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"baseTokenURI","type":"string"},{"internalType":"address","name":"admin","type":"address"},{"internalType":"bytes32","name":"allowlistMerkleRoot","type":"bytes32"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"InvalidQueryRange","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"_value","type":"string"},{"indexed":true,"internalType":"uint256","name":"_id","type":"uint256"}],"name":"PermanentURI","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"_allowlistMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_baseURILocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_maxMintPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"explicitOwnershipOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"explicitOwnershipsOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"isAllowlisted","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":[],"name":"lockBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lockMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"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":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"admin","type":"address"}],"name":"setAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"root","type":"bytes32"}],"name":"setAllowlistMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"authorizedContract","type":"address"}],"name":"setAuthorizedContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"setMaxMintPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"supply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"stop","type":"uint256"}],"name":"tokensOfOwnerIn","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526001600e55611b58600f553480156200001c57600080fd5b5060405162005a6638038062005a66833981810160405281019062000042919062000a41565b6040518060400160405280600c81526020017f4346204d696e7473746f6e6500000000000000000000000000000000000000008152506040518060400160405280600981526020017f4d494e5453544f4e4500000000000000000000000000000000000000000000008152508160029081620000bf919062000d07565b508060039081620000d1919062000d07565b50620000e2620001b360201b60201c565b60008190555050506200010a620000fe620001b860201b60201c565b620001c060201b60201c565b6000600860146101000a81548160ff021916908315150217905550600160098190555081600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082600a90816200017f919062000d07565b5080600d819055506200019a3360016200028660201b60201c565b620001aa620002ac60201b60201c565b50505062000ff0565b600090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b620002a88282604051806020016040528060008152506200032160201b60201c565b5050565b620002bc620003d260201b60201c565b6001600860146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25862000308620001b860201b60201c565b60405162000317919062000dff565b60405180910390a1565b6200033383836200042760201b60201c565b60008373ffffffffffffffffffffffffffffffffffffffff163b14620003cd57600080549050600083820390505b6200037c60008683806001019450866200060e60201b60201c565b620003b3576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81811062000361578160005414620003ca57600080fd5b50505b505050565b620003e26200076f60201b60201c565b1562000425576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200041c9062000e7d565b60405180910390fd5b565b6000805490506000820362000468576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6200047d60008483856200078660201b60201c565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506200050c83620004ee60008660006200078c60201b60201c565b620004ff85620007bc60201b60201c565b17620007cc60201b60201c565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b818114620005af57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a460018101905062000572565b5060008203620005eb576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806000819055505050620006096000848385620007f760201b60201c565b505050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026200063c620007fd60201b60201c565b8786866040518563ffffffff1660e01b815260040162000660949392919062000f0d565b6020604051808303816000875af19250505080156200069f57506040513d601f19601f820116820180604052508101906200069c919062000fbe565b60015b6200071c573d8060008114620006d2576040519150601f19603f3d011682016040523d82523d6000602084013e620006d7565b606091505b50600081510362000714576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6000600860149054906101000a900460ff16905090565b50505050565b60008060e883901c905060e8620007ab8686846200080560201b60201c565b62ffffff16901b9150509392505050565b60006001821460e11b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b600033905090565b60009392505050565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b62000877826200082c565b810181811067ffffffffffffffff821117156200089957620008986200083d565b5b80604052505050565b6000620008ae6200080e565b9050620008bc82826200086c565b919050565b600067ffffffffffffffff821115620008df57620008de6200083d565b5b620008ea826200082c565b9050602081019050919050565b60005b8381101562000917578082015181840152602081019050620008fa565b60008484015250505050565b60006200093a6200093484620008c1565b620008a2565b90508281526020810184848401111562000959576200095862000827565b5b62000966848285620008f7565b509392505050565b600082601f83011262000986576200098562000822565b5b81516200099884826020860162000923565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620009ce82620009a1565b9050919050565b620009e081620009c1565b8114620009ec57600080fd5b50565b60008151905062000a0081620009d5565b92915050565b6000819050919050565b62000a1b8162000a06565b811462000a2757600080fd5b50565b60008151905062000a3b8162000a10565b92915050565b60008060006060848603121562000a5d5762000a5c62000818565b5b600084015167ffffffffffffffff81111562000a7e5762000a7d6200081d565b5b62000a8c868287016200096e565b935050602062000a9f86828701620009ef565b925050604062000ab28682870162000a2a565b9150509250925092565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168062000b0f57607f821691505b60208210810362000b255762000b2462000ac7565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b60006008830262000b8f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262000b50565b62000b9b868362000b50565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b600062000be862000be262000bdc8462000bb3565b62000bbd565b62000bb3565b9050919050565b6000819050919050565b62000c048362000bc7565b62000c1c62000c138262000bef565b84845462000b5d565b825550505050565b600090565b62000c3362000c24565b62000c4081848462000bf9565b505050565b5b8181101562000c685762000c5c60008262000c29565b60018101905062000c46565b5050565b601f82111562000cb75762000c818162000b2b565b62000c8c8462000b40565b8101602085101562000c9c578190505b62000cb462000cab8562000b40565b83018262000c45565b50505b505050565b600082821c905092915050565b600062000cdc6000198460080262000cbc565b1980831691505092915050565b600062000cf7838362000cc9565b9150826002028217905092915050565b62000d128262000abc565b67ffffffffffffffff81111562000d2e5762000d2d6200083d565b5b62000d3a825462000af6565b62000d4782828562000c6c565b600060209050601f83116001811462000d7f576000841562000d6a578287015190505b62000d76858262000ce9565b86555062000de6565b601f19841662000d8f8662000b2b565b60005b8281101562000db95784890151825560018201915060208501945060208101905062000d92565b8683101562000dd9578489015162000dd5601f89168262000cc9565b8355505b6001600288020188555050505b505050505050565b62000df981620009c1565b82525050565b600060208201905062000e16600083018462000dee565b92915050565b600082825260208201905092915050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b600062000e6560108362000e1c565b915062000e728262000e2d565b602082019050919050565b6000602082019050818103600083015262000e988162000e56565b9050919050565b62000eaa8162000bb3565b82525050565b600081519050919050565b600082825260208201905092915050565b600062000ed98262000eb0565b62000ee5818562000ebb565b935062000ef7818560208601620008f7565b62000f02816200082c565b840191505092915050565b600060808201905062000f24600083018762000dee565b62000f33602083018662000dee565b62000f42604083018562000e9f565b818103606083015262000f56818462000ecc565b905095945050505050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b62000f988162000f61565b811462000fa457600080fd5b50565b60008151905062000fb88162000f8d565b92915050565b60006020828403121562000fd75762000fd662000818565b5b600062000fe78482850162000fa7565b91505092915050565b614a6680620010006000396000f3fe608060405234801561001057600080fd5b50600436106102535760003560e01c8063704b6c02116101465780639aad69e7116100c3578063c87b56dd11610087578063c87b56dd146106aa578063e8a3d485146106da578063e985e9c5146106f8578063f2fde38b14610728578063f95df41414610744578063fca76c261461076057610253565b80639aad69e71461060a578063a22cb46514610626578063afdf613414610642578063b88d4fde1461065e578063c23dc68f1461067a57610253565b80638a383ff11161010a5780638a383ff1146105625780638da5cb5b14610580578063921a2a031461059e57806395d89b41146105bc57806399a2557a146105da57610253565b8063704b6c02146104d257806370a08231146104ee578063715018a61461051e5780638456cb59146105285780638462151c1461053257610253565b806342842e0e116101d457806355f804b31161019857806355f804b31461041c5780635bbb2177146104385780635c975abb146104685780636352211e146104865780636f8b44b0146104b657610253565b806342842e0e146103a257806342966c68146103be57806345de0d9b146103da578063484b973c146103f657806353df5c7c1461041257610253565b806318160ddd1161021b57806318160ddd1461031057806322f4596f1461032e57806323b872dd1461034c57806333006786146103685780633f4ba83a1461039857610253565b806301ffc9a71461025857806306fdde0314610288578063081812fc146102a6578063095ea7b3146102d65780630b82f473146102f2575b600080fd5b610272600480360381019061026d91906133f1565b61076a565b60405161027f9190613439565b60405180910390f35b6102906107fc565b60405161029d91906134e4565b60405180910390f35b6102c060048036038101906102bb919061353c565b61088e565b6040516102cd91906135aa565b60405180910390f35b6102f060048036038101906102eb91906135f1565b61090d565b005b6102fa610a51565b6040516103079190613640565b60405180910390f35b610318610a57565b6040516103259190613640565b60405180910390f35b610336610a6e565b6040516103439190613640565b60405180910390f35b6103666004803603810190610361919061365b565b610a74565b005b610382600480360381019061037d9190613713565b610d96565b60405161038f9190613439565b60405180910390f35b6103a0610e1f565b005b6103bc60048036038101906103b7919061365b565b610ef6565b005b6103d860048036038101906103d3919061353c565b610f16565b005b6103f460048036038101906103ef9190613773565b610f7a565b005b610410600480360381019061040b91906135f1565b6111c8565b005b61041a6112fa565b005b61043660048036038101906104319190613829565b61144a565b005b610452600480360381019061044d91906138cc565b61157d565b60405161045f9190613a7c565b60405180910390f35b610470611640565b60405161047d9190613439565b60405180910390f35b6104a0600480360381019061049b919061353c565b611657565b6040516104ad91906135aa565b60405180910390f35b6104d060048036038101906104cb919061353c565b611669565b005b6104ec60048036038101906104e79190613a9e565b611790565b005b61050860048036038101906105039190613a9e565b6117dc565b6040516105159190613640565b60405180910390f35b610526611894565b005b6105306118a8565b005b61054c60048036038101906105479190613a9e565b61197f565b6040516105599190613b89565b60405180910390f35b61056a611ac2565b6040516105779190613439565b60405180910390f35b610588611ad5565b60405161059591906135aa565b60405180910390f35b6105a6611aff565b6040516105b39190613bc4565b60405180910390f35b6105c4611b05565b6040516105d191906134e4565b60405180910390f35b6105f460048036038101906105ef9190613bdf565b611b97565b6040516106019190613b89565b60405180910390f35b610624600480360381019061061f9190613a9e565b611da3565b005b610640600480360381019061063b9190613c5e565b611eb4565b005b61065c6004803603810190610657919061353c565b61202b565b005b61067860048036038101906106739190613dce565b612102565b005b610694600480360381019061068f919061353c565b612175565b6040516106a19190613ea6565b60405180910390f35b6106c460048036038101906106bf919061353c565b6121df565b6040516106d191906134e4565b60405180910390f35b6106e261227d565b6040516106ef91906134e4565b60405180910390f35b610712600480360381019061070d9190613ec1565b61229d565b60405161071f9190613439565b60405180910390f35b610742600480360381019061073d9190613a9e565b612331565b005b61075e60048036038101906107599190613f2d565b6123b4565b005b61076861248b565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806107c557506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806107f55750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60606002805461080b90613f89565b80601f016020809104026020016040519081016040528092919081815260200182805461083790613f89565b80156108845780601f1061085957610100808354040283529160200191610884565b820191906000526020600020905b81548152906001019060200180831161086757829003601f168201915b5050505050905090565b600061089982612575565b6108cf576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061091882611657565b90508073ffffffffffffffffffffffffffffffffffffffff166109396125d4565b73ffffffffffffffffffffffffffffffffffffffff161461099c57610965816109606125d4565b61229d565b61099b576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600e5481565b6000610a616125dc565b6001546000540303905090565b600f5481565b6000610a7f826125e1565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610ae6576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610af2846126ad565b91509150610b088187610b036125d4565b6126d4565b610b5457610b1d86610b186125d4565b61229d565b610b53576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603610bba576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610bc78686866001612718565b8015610bd257600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610ca085610c7c88888761271e565b7c020000000000000000000000000000000000000000000000000000000017612746565b600460008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841603610d265760006001850190506000600460008381526020019081526020016000205403610d24576000548114610d23578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610d8e8686866001612771565b505050505050565b6000610e16600d5485604051602001610daf9190614002565b60405160208183030381529060405280519060200120858580806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050506127779092919063ffffffff16565b90509392505050565b610e27611ad5565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480610ead5750600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b610eec576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ee390614069565b60405180910390fd5b610ef461278e565b565b610f1183838360405180602001604052806000815250612102565b505050565b6000600b60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614159050610f7682826127f1565b5050565b600260095403610fbf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fb6906140d5565b60405180910390fd5b60026009819055503373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614611035576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161102c90614141565b60405180910390fd5b338383600d546110b781856040516020016110509190614002565b60405160208183030381529060405280519060200120858580806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050506127779092919063ffffffff16565b6110f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110ed906141ad565b60405180910390fd5b6110fe612a43565b600e548561110b33612a8d565b61111591906141fc565b1115611156576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161114d9061427c565b60405180910390fd5b600f5485611162610a57565b61116c91906141fc565b11156111ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111a4906142e8565b60405180910390fd5b6111b73386612ae4565b505050506001600981905550505050565b6111d0611ad5565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806112565750600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b611295576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161128c90614069565b60405180910390fd5b600f54816112a1610a57565b6112ab91906141fc565b11156112ec576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112e3906142e8565b60405180910390fd5b6112f68282612ae4565b5050565b611302611ad5565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806113885750600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b6113c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113be90614069565b60405180910390fd5b6001600b60006101000a81548160ff02191690831515021790555060005b6113ed610a57565b81101561144757807fa109ba539900bf1b633f956d63c96fc89b814c7287f7aa50a9216d0b5565720761141f836121df565b60405161142c91906134e4565b60405180910390a2808061143f90614308565b9150506113e5565b50565b611452611ad5565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806114d85750600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b611517576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161150e90614069565b60405180910390fd5b600b60009054906101000a900460ff1615611567576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161155e9061439c565b60405180910390fd5b8181600a9182611578929190614573565b505050565b6060600083839050905060008167ffffffffffffffff8111156115a3576115a2613ca3565b5b6040519080825280602002602001820160405280156115dc57816020015b6115c9613336565b8152602001906001900390816115c15790505b50905060005b8281146116345761160b8686838181106115ff576115fe614643565b5b90506020020135612175565b82828151811061161e5761161d614643565b5b60200260200101819052508060010190506115e2565b50809250505092915050565b6000600860149054906101000a900460ff16905090565b6000611662826125e1565b9050919050565b611671611ad5565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806116f75750600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b611736576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161172d90614069565b60405180910390fd5b601060009054906101000a900460ff1615611786576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161177d906146be565b60405180910390fd5b80600f8190555050565b611798612b02565b80600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611843576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b61189c612b02565b6118a66000612b80565b565b6118b0611ad5565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806119365750600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b611975576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161196c90614069565b60405180910390fd5b61197d612c46565b565b6060600080600061198f856117dc565b905060008167ffffffffffffffff8111156119ad576119ac613ca3565b5b6040519080825280602002602001820160405280156119db5781602001602082028036833780820191505090505b5090506119e6613336565b60006119f06125dc565b90505b838614611ab457611a0381612ca9565b91508160400151611aa957600073ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff1614611a4e57816000015194505b8773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603611aa85780838780600101985081518110611a9b57611a9a614643565b5b6020026020010181815250505b5b8060010190506119f3565b508195505050505050919050565b600b60009054906101000a900460ff1681565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600d5481565b606060038054611b1490613f89565b80601f0160208091040260200160405190810160405280929190818152602001828054611b4090613f89565b8015611b8d5780601f10611b6257610100808354040283529160200191611b8d565b820191906000526020600020905b815481529060010190602001808311611b7057829003601f168201915b5050505050905090565b6060818310611bd2576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080611bdd612cd4565b9050611be76125dc565b851015611bf957611bf66125dc565b94505b80841115611c05578093505b6000611c10876117dc565b905084861015611c33576000868603905081811015611c2d578091505b50611c38565b600090505b60008167ffffffffffffffff811115611c5457611c53613ca3565b5b604051908082528060200260200182016040528015611c825781602001602082028036833780820191505090505b50905060008203611c995780945050505050611d9c565b6000611ca488612175565b905060008160400151611cb957816000015190505b60008990505b888114158015611ccf5750848714155b15611d8e57611cdd81612ca9565b92508260400151611d8357600073ffffffffffffffffffffffffffffffffffffffff16836000015173ffffffffffffffffffffffffffffffffffffffff1614611d2857826000015191505b8a73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611d825780848880600101995081518110611d7557611d74614643565b5b6020026020010181815250505b5b806001019050611cbf565b508583528296505050505050505b9392505050565b611dab611ad5565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480611e315750600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b611e70576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e6790614069565b60405180910390fd5b80600b60016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b611ebc6125d4565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611f20576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060076000611f2d6125d4565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611fda6125d4565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161201f9190613439565b60405180910390a35050565b612033611ad5565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806120b95750600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b6120f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120ef90614069565b60405180910390fd5b80600e8190555050565b61210d848484610a74565b60008373ffffffffffffffffffffffffffffffffffffffff163b1461216f5761213884848484612cdd565b61216e576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b61217d613336565b612185613336565b61218d6125dc565b8310806121a1575061219d612cd4565b8310155b156121af57809150506121da565b6121b883612ca9565b90508060400151156121cd57809150506121da565b6121d683612e2d565b9150505b919050565b60606121ea82612575565b612220576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061222a612e4d565b9050600081510361224a5760405180602001604052806000815250612275565b8061225484612edf565b60405160200161226592919061471a565b6040516020818303038152906040525b915050919050565b60606040518060600160405280603981526020016149f860399139905090565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b612339612b02565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036123a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161239f906147b0565b60405180910390fd5b6123b181612b80565b50565b6123bc611ad5565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806124425750600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b612481576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161247890614069565b60405180910390fd5b80600d8190555050565b612493611ad5565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806125195750600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b612558576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161254f90614069565b60405180910390fd5b6001601060006101000a81548160ff021916908315150217905550565b6000816125806125dc565b1115801561258f575060005482105b80156125cd575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b600090565b600080829050806125f06125dc565b11612676576000548110156126755760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603612673575b6000810361266957600460008360019003935083815260200190815260200160002054905061263f565b80925050506126a8565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8612735868684612f26565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6000826127848584612f2f565b1490509392505050565b612796612f85565b6000600860146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6127da612fce565b6040516127e791906135aa565b60405180910390a1565b60006127fc836125e1565b9050600081905060008061280f866126ad565b9150915084156128785761282b81846128266125d4565b6126d4565b612877576128408361283b6125d4565b61229d565b612876576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b5b612886836000886001612718565b801561289157600082555b600160806001901b03600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550612939836128f68560008861271e565b7c02000000000000000000000000000000000000000000000000000000007c01000000000000000000000000000000000000000000000000000000001717612746565b600460008881526020019081526020016000208190555060007c02000000000000000000000000000000000000000000000000000000008516036129bf57600060018701905060006004600083815260200190815260200160002054036129bd5760005481146129bc578460046000838152602001908152602001600020819055505b5b505b85600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612a29836000886001612771565b600160008154809291906001019190505550505050505050565b612a4b611640565b15612a8b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a829061481c565b60405180910390fd5b565b600067ffffffffffffffff6040600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c169050919050565b612afe828260405180602001604052806000815250612fd6565b5050565b612b0a612fce565b73ffffffffffffffffffffffffffffffffffffffff16612b28611ad5565b73ffffffffffffffffffffffffffffffffffffffff1614612b7e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b7590614888565b60405180910390fd5b565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612c4e612a43565b6001600860146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612c92612fce565b604051612c9f91906135aa565b60405180910390a1565b612cb1613336565b612ccd6004600084815260200190815260200160002054613073565b9050919050565b60008054905090565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612d036125d4565b8786866040518563ffffffff1660e01b8152600401612d2594939291906148fd565b6020604051808303816000875af1925050508015612d6157506040513d601f19601f82011682018060405250810190612d5e919061495e565b60015b612dda573d8060008114612d91576040519150601f19603f3d011682016040523d82523d6000602084013e612d96565b606091505b506000815103612dd2576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b612e35613336565b612e46612e41836125e1565b613073565b9050919050565b6060600a8054612e5c90613f89565b80601f0160208091040260200160405190810160405280929190818152602001828054612e8890613f89565b8015612ed55780601f10612eaa57610100808354040283529160200191612ed5565b820191906000526020600020905b815481529060010190602001808311612eb857829003601f168201915b5050505050905090565b606060806040510190508060405280825b600115612f1257600183039250600a81066030018353600a8104905080612ef0575b508181036020830392508083525050919050565b60009392505050565b60008082905060005b8451811015612f7a57612f6582868381518110612f5857612f57614643565b5b6020026020010151613129565b91508080612f7290614308565b915050612f38565b508091505092915050565b612f8d611640565b612fcc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fc3906149d7565b60405180910390fd5b565b600033905090565b612fe08383613154565b60008373ffffffffffffffffffffffffffffffffffffffff163b1461306e57600080549050600083820390505b6130206000868380600101945086612cdd565b613056576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81811061300d57816000541461306b57600080fd5b50505b505050565b61307b613336565b81816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff168152505060007c01000000000000000000000000000000000000000000000000000000008316141581604001901515908115158152505060e882901c816060019062ffffff16908162ffffff1681525050919050565b60008183106131415761313c828461330f565b61314c565b61314b838361330f565b5b905092915050565b60008054905060008203613194576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6131a16000848385612718565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555061321883613209600086600061271e565b61321285613326565b17612746565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b8181146132b957808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a460018101905061327e565b50600082036132f4576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600081905550505061330a6000848385612771565b505050565b600082600052816020526040600020905092915050565b60006001821460e11b9050919050565b6040518060800160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff168152602001600015158152602001600062ffffff1681525090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6133ce81613399565b81146133d957600080fd5b50565b6000813590506133eb816133c5565b92915050565b6000602082840312156134075761340661338f565b5b6000613415848285016133dc565b91505092915050565b60008115159050919050565b6134338161341e565b82525050565b600060208201905061344e600083018461342a565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561348e578082015181840152602081019050613473565b60008484015250505050565b6000601f19601f8301169050919050565b60006134b682613454565b6134c0818561345f565b93506134d0818560208601613470565b6134d98161349a565b840191505092915050565b600060208201905081810360008301526134fe81846134ab565b905092915050565b6000819050919050565b61351981613506565b811461352457600080fd5b50565b60008135905061353681613510565b92915050565b6000602082840312156135525761355161338f565b5b600061356084828501613527565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061359482613569565b9050919050565b6135a481613589565b82525050565b60006020820190506135bf600083018461359b565b92915050565b6135ce81613589565b81146135d957600080fd5b50565b6000813590506135eb816135c5565b92915050565b600080604083850312156136085761360761338f565b5b6000613616858286016135dc565b925050602061362785828601613527565b9150509250929050565b61363a81613506565b82525050565b60006020820190506136556000830184613631565b92915050565b6000806000606084860312156136745761367361338f565b5b6000613682868287016135dc565b9350506020613693868287016135dc565b92505060406136a486828701613527565b9150509250925092565b600080fd5b600080fd5b600080fd5b60008083601f8401126136d3576136d26136ae565b5b8235905067ffffffffffffffff8111156136f0576136ef6136b3565b5b60208301915083602082028301111561370c5761370b6136b8565b5b9250929050565b60008060006040848603121561372c5761372b61338f565b5b600061373a868287016135dc565b935050602084013567ffffffffffffffff81111561375b5761375a613394565b5b613767868287016136bd565b92509250509250925092565b60008060006040848603121561378c5761378b61338f565b5b600084013567ffffffffffffffff8111156137aa576137a9613394565b5b6137b6868287016136bd565b935093505060206137c986828701613527565b9150509250925092565b60008083601f8401126137e9576137e86136ae565b5b8235905067ffffffffffffffff811115613806576138056136b3565b5b602083019150836001820283011115613822576138216136b8565b5b9250929050565b600080602083850312156138405761383f61338f565b5b600083013567ffffffffffffffff81111561385e5761385d613394565b5b61386a858286016137d3565b92509250509250929050565b60008083601f84011261388c5761388b6136ae565b5b8235905067ffffffffffffffff8111156138a9576138a86136b3565b5b6020830191508360208202830111156138c5576138c46136b8565b5b9250929050565b600080602083850312156138e3576138e261338f565b5b600083013567ffffffffffffffff81111561390157613900613394565b5b61390d85828601613876565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61394e81613589565b82525050565b600067ffffffffffffffff82169050919050565b61397181613954565b82525050565b6139808161341e565b82525050565b600062ffffff82169050919050565b61399e81613986565b82525050565b6080820160008201516139ba6000850182613945565b5060208201516139cd6020850182613968565b5060408201516139e06040850182613977565b5060608201516139f36060850182613995565b50505050565b6000613a0583836139a4565b60808301905092915050565b6000602082019050919050565b6000613a2982613919565b613a338185613924565b9350613a3e83613935565b8060005b83811015613a6f578151613a5688826139f9565b9750613a6183613a11565b925050600181019050613a42565b5085935050505092915050565b60006020820190508181036000830152613a968184613a1e565b905092915050565b600060208284031215613ab457613ab361338f565b5b6000613ac2848285016135dc565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613b0081613506565b82525050565b6000613b128383613af7565b60208301905092915050565b6000602082019050919050565b6000613b3682613acb565b613b408185613ad6565b9350613b4b83613ae7565b8060005b83811015613b7c578151613b638882613b06565b9750613b6e83613b1e565b925050600181019050613b4f565b5085935050505092915050565b60006020820190508181036000830152613ba38184613b2b565b905092915050565b6000819050919050565b613bbe81613bab565b82525050565b6000602082019050613bd96000830184613bb5565b92915050565b600080600060608486031215613bf857613bf761338f565b5b6000613c06868287016135dc565b9350506020613c1786828701613527565b9250506040613c2886828701613527565b9150509250925092565b613c3b8161341e565b8114613c4657600080fd5b50565b600081359050613c5881613c32565b92915050565b60008060408385031215613c7557613c7461338f565b5b6000613c83858286016135dc565b9250506020613c9485828601613c49565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613cdb8261349a565b810181811067ffffffffffffffff82111715613cfa57613cf9613ca3565b5b80604052505050565b6000613d0d613385565b9050613d198282613cd2565b919050565b600067ffffffffffffffff821115613d3957613d38613ca3565b5b613d428261349a565b9050602081019050919050565b82818337600083830152505050565b6000613d71613d6c84613d1e565b613d03565b905082815260208101848484011115613d8d57613d8c613c9e565b5b613d98848285613d4f565b509392505050565b600082601f830112613db557613db46136ae565b5b8135613dc5848260208601613d5e565b91505092915050565b60008060008060808587031215613de857613de761338f565b5b6000613df6878288016135dc565b9450506020613e07878288016135dc565b9350506040613e1887828801613527565b925050606085013567ffffffffffffffff811115613e3957613e38613394565b5b613e4587828801613da0565b91505092959194509250565b608082016000820151613e676000850182613945565b506020820151613e7a6020850182613968565b506040820151613e8d6040850182613977565b506060820151613ea06060850182613995565b50505050565b6000608082019050613ebb6000830184613e51565b92915050565b60008060408385031215613ed857613ed761338f565b5b6000613ee6858286016135dc565b9250506020613ef7858286016135dc565b9150509250929050565b613f0a81613bab565b8114613f1557600080fd5b50565b600081359050613f2781613f01565b92915050565b600060208284031215613f4357613f4261338f565b5b6000613f5184828501613f18565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613fa157607f821691505b602082108103613fb457613fb3613f5a565b5b50919050565b60008160601b9050919050565b6000613fd282613fba565b9050919050565b6000613fe482613fc7565b9050919050565b613ffc613ff782613589565b613fd9565b82525050565b600061400e8284613feb565b60148201915081905092915050565b7f4e6f74206f776e6572206f722061646d696e0000000000000000000000000000600082015250565b600061405360128361345f565b915061405e8261401d565b602082019050919050565b6000602082019050818103600083015261408281614046565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b60006140bf601f8361345f565b91506140ca82614089565b602082019050919050565b600060208201905081810360008301526140ee816140b2565b9050919050565b7f43616c6c657220697320616e6f7468657220636f6e7472616374000000000000600082015250565b600061412b601a8361345f565b9150614136826140f5565b602082019050919050565b6000602082019050818103600083015261415a8161411e565b9050919050565b7f41646472657373206e6f7420616c6c6f77656400000000000000000000000000600082015250565b600061419760138361345f565b91506141a282614161565b602082019050919050565b600060208201905081810360008301526141c68161418a565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061420782613506565b915061421283613506565b925082820190508082111561422a576142296141cd565b5b92915050565b7f5175616e7469747920657863656564732077616c6c6574206c696d6974000000600082015250565b6000614266601d8361345f565b915061427182614230565b602082019050919050565b6000602082019050818103600083015261429581614259565b9050919050565b7f5175616e74697479206578636565647320737570706c79000000000000000000600082015250565b60006142d260178361345f565b91506142dd8261429c565b602082019050919050565b60006020820190508181036000830152614301816142c5565b9050919050565b600061431382613506565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614345576143446141cd565b5b600182019050919050565b7f4261736520555249206973206c6f636b65640000000000000000000000000000600082015250565b600061438660128361345f565b915061439182614350565b602082019050919050565b600060208201905081810360008301526143b581614379565b9050919050565b600082905092915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026144297fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826143ec565b61443386836143ec565b95508019841693508086168417925050509392505050565b6000819050919050565b600061447061446b61446684613506565b61444b565b613506565b9050919050565b6000819050919050565b61448a83614455565b61449e61449682614477565b8484546143f9565b825550505050565b600090565b6144b36144a6565b6144be818484614481565b505050565b5b818110156144e2576144d76000826144ab565b6001810190506144c4565b5050565b601f821115614527576144f8816143c7565b614501846143dc565b81016020851015614510578190505b61452461451c856143dc565b8301826144c3565b50505b505050565b600082821c905092915050565b600061454a6000198460080261452c565b1980831691505092915050565b60006145638383614539565b9150826002028217905092915050565b61457d83836143bc565b67ffffffffffffffff81111561459657614595613ca3565b5b6145a08254613f89565b6145ab8282856144e6565b6000601f8311600181146145da57600084156145c8578287013590505b6145d28582614557565b86555061463a565b601f1984166145e8866143c7565b60005b82811015614610578489013582556001820191506020850194506020810190506145eb565b8683101561462d5784890135614629601f891682614539565b8355505b6001600288020188555050505b50505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4d617820737570706c79206973206c6f636b6564000000000000000000000000600082015250565b60006146a860148361345f565b91506146b382614672565b602082019050919050565b600060208201905081810360008301526146d78161469b565b9050919050565b600081905092915050565b60006146f482613454565b6146fe81856146de565b935061470e818560208601613470565b80840191505092915050565b600061472682856146e9565b915061473282846146e9565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061479a60268361345f565b91506147a58261473e565b604082019050919050565b600060208201905081810360008301526147c98161478d565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b600061480660108361345f565b9150614811826147d0565b602082019050919050565b60006020820190508181036000830152614835816147f9565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061487260208361345f565b915061487d8261483c565b602082019050919050565b600060208201905081810360008301526148a181614865565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006148cf826148a8565b6148d981856148b3565b93506148e9818560208601613470565b6148f28161349a565b840191505092915050565b6000608082019050614912600083018761359b565b61491f602083018661359b565b61492c6040830185613631565b818103606083015261493e81846148c4565b905095945050505050565b600081519050614958816133c5565b92915050565b6000602082840312156149745761497361338f565b5b600061498284828501614949565b91505092915050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b60006149c160148361345f565b91506149cc8261498b565b602082019050919050565b600060208201905081810360008301526149f0816149b4565b905091905056fe68747470733a2f2f636c6f6e65666f7263652e78797a2f6170692f6d696e7473746f6e652f6d61726b6574706c6163652d6d65746164617461a2646970667358221220f7cc5905f61a260daf2301e617a76f9e711f140ade93f55d3d4bc24ccbf0b71464736f6c6343000810003300000000000000000000000000000000000000000000000000000000000000600000000000000000000000003be3a8613dc18554a73773a5bfb8e9819d360dc0b0c2632e0dca1f28f5c163457e0ca20a7fad31428dde3333ac22fc8e7d415ff9000000000000000000000000000000000000000000000000000000000000002e68747470733a2f2f636c6f6e65666f7263652e78797a2f6170692f6d696e7473746f6e652f6d657461646174612f000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102535760003560e01c8063704b6c02116101465780639aad69e7116100c3578063c87b56dd11610087578063c87b56dd146106aa578063e8a3d485146106da578063e985e9c5146106f8578063f2fde38b14610728578063f95df41414610744578063fca76c261461076057610253565b80639aad69e71461060a578063a22cb46514610626578063afdf613414610642578063b88d4fde1461065e578063c23dc68f1461067a57610253565b80638a383ff11161010a5780638a383ff1146105625780638da5cb5b14610580578063921a2a031461059e57806395d89b41146105bc57806399a2557a146105da57610253565b8063704b6c02146104d257806370a08231146104ee578063715018a61461051e5780638456cb59146105285780638462151c1461053257610253565b806342842e0e116101d457806355f804b31161019857806355f804b31461041c5780635bbb2177146104385780635c975abb146104685780636352211e146104865780636f8b44b0146104b657610253565b806342842e0e146103a257806342966c68146103be57806345de0d9b146103da578063484b973c146103f657806353df5c7c1461041257610253565b806318160ddd1161021b57806318160ddd1461031057806322f4596f1461032e57806323b872dd1461034c57806333006786146103685780633f4ba83a1461039857610253565b806301ffc9a71461025857806306fdde0314610288578063081812fc146102a6578063095ea7b3146102d65780630b82f473146102f2575b600080fd5b610272600480360381019061026d91906133f1565b61076a565b60405161027f9190613439565b60405180910390f35b6102906107fc565b60405161029d91906134e4565b60405180910390f35b6102c060048036038101906102bb919061353c565b61088e565b6040516102cd91906135aa565b60405180910390f35b6102f060048036038101906102eb91906135f1565b61090d565b005b6102fa610a51565b6040516103079190613640565b60405180910390f35b610318610a57565b6040516103259190613640565b60405180910390f35b610336610a6e565b6040516103439190613640565b60405180910390f35b6103666004803603810190610361919061365b565b610a74565b005b610382600480360381019061037d9190613713565b610d96565b60405161038f9190613439565b60405180910390f35b6103a0610e1f565b005b6103bc60048036038101906103b7919061365b565b610ef6565b005b6103d860048036038101906103d3919061353c565b610f16565b005b6103f460048036038101906103ef9190613773565b610f7a565b005b610410600480360381019061040b91906135f1565b6111c8565b005b61041a6112fa565b005b61043660048036038101906104319190613829565b61144a565b005b610452600480360381019061044d91906138cc565b61157d565b60405161045f9190613a7c565b60405180910390f35b610470611640565b60405161047d9190613439565b60405180910390f35b6104a0600480360381019061049b919061353c565b611657565b6040516104ad91906135aa565b60405180910390f35b6104d060048036038101906104cb919061353c565b611669565b005b6104ec60048036038101906104e79190613a9e565b611790565b005b61050860048036038101906105039190613a9e565b6117dc565b6040516105159190613640565b60405180910390f35b610526611894565b005b6105306118a8565b005b61054c60048036038101906105479190613a9e565b61197f565b6040516105599190613b89565b60405180910390f35b61056a611ac2565b6040516105779190613439565b60405180910390f35b610588611ad5565b60405161059591906135aa565b60405180910390f35b6105a6611aff565b6040516105b39190613bc4565b60405180910390f35b6105c4611b05565b6040516105d191906134e4565b60405180910390f35b6105f460048036038101906105ef9190613bdf565b611b97565b6040516106019190613b89565b60405180910390f35b610624600480360381019061061f9190613a9e565b611da3565b005b610640600480360381019061063b9190613c5e565b611eb4565b005b61065c6004803603810190610657919061353c565b61202b565b005b61067860048036038101906106739190613dce565b612102565b005b610694600480360381019061068f919061353c565b612175565b6040516106a19190613ea6565b60405180910390f35b6106c460048036038101906106bf919061353c565b6121df565b6040516106d191906134e4565b60405180910390f35b6106e261227d565b6040516106ef91906134e4565b60405180910390f35b610712600480360381019061070d9190613ec1565b61229d565b60405161071f9190613439565b60405180910390f35b610742600480360381019061073d9190613a9e565b612331565b005b61075e60048036038101906107599190613f2d565b6123b4565b005b61076861248b565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806107c557506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806107f55750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60606002805461080b90613f89565b80601f016020809104026020016040519081016040528092919081815260200182805461083790613f89565b80156108845780601f1061085957610100808354040283529160200191610884565b820191906000526020600020905b81548152906001019060200180831161086757829003601f168201915b5050505050905090565b600061089982612575565b6108cf576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061091882611657565b90508073ffffffffffffffffffffffffffffffffffffffff166109396125d4565b73ffffffffffffffffffffffffffffffffffffffff161461099c57610965816109606125d4565b61229d565b61099b576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600e5481565b6000610a616125dc565b6001546000540303905090565b600f5481565b6000610a7f826125e1565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610ae6576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610af2846126ad565b91509150610b088187610b036125d4565b6126d4565b610b5457610b1d86610b186125d4565b61229d565b610b53576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603610bba576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610bc78686866001612718565b8015610bd257600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610ca085610c7c88888761271e565b7c020000000000000000000000000000000000000000000000000000000017612746565b600460008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841603610d265760006001850190506000600460008381526020019081526020016000205403610d24576000548114610d23578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610d8e8686866001612771565b505050505050565b6000610e16600d5485604051602001610daf9190614002565b60405160208183030381529060405280519060200120858580806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050506127779092919063ffffffff16565b90509392505050565b610e27611ad5565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480610ead5750600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b610eec576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ee390614069565b60405180910390fd5b610ef461278e565b565b610f1183838360405180602001604052806000815250612102565b505050565b6000600b60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614159050610f7682826127f1565b5050565b600260095403610fbf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fb6906140d5565b60405180910390fd5b60026009819055503373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614611035576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161102c90614141565b60405180910390fd5b338383600d546110b781856040516020016110509190614002565b60405160208183030381529060405280519060200120858580806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050506127779092919063ffffffff16565b6110f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110ed906141ad565b60405180910390fd5b6110fe612a43565b600e548561110b33612a8d565b61111591906141fc565b1115611156576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161114d9061427c565b60405180910390fd5b600f5485611162610a57565b61116c91906141fc565b11156111ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111a4906142e8565b60405180910390fd5b6111b73386612ae4565b505050506001600981905550505050565b6111d0611ad5565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806112565750600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b611295576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161128c90614069565b60405180910390fd5b600f54816112a1610a57565b6112ab91906141fc565b11156112ec576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112e3906142e8565b60405180910390fd5b6112f68282612ae4565b5050565b611302611ad5565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806113885750600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b6113c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113be90614069565b60405180910390fd5b6001600b60006101000a81548160ff02191690831515021790555060005b6113ed610a57565b81101561144757807fa109ba539900bf1b633f956d63c96fc89b814c7287f7aa50a9216d0b5565720761141f836121df565b60405161142c91906134e4565b60405180910390a2808061143f90614308565b9150506113e5565b50565b611452611ad5565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806114d85750600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b611517576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161150e90614069565b60405180910390fd5b600b60009054906101000a900460ff1615611567576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161155e9061439c565b60405180910390fd5b8181600a9182611578929190614573565b505050565b6060600083839050905060008167ffffffffffffffff8111156115a3576115a2613ca3565b5b6040519080825280602002602001820160405280156115dc57816020015b6115c9613336565b8152602001906001900390816115c15790505b50905060005b8281146116345761160b8686838181106115ff576115fe614643565b5b90506020020135612175565b82828151811061161e5761161d614643565b5b60200260200101819052508060010190506115e2565b50809250505092915050565b6000600860149054906101000a900460ff16905090565b6000611662826125e1565b9050919050565b611671611ad5565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806116f75750600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b611736576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161172d90614069565b60405180910390fd5b601060009054906101000a900460ff1615611786576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161177d906146be565b60405180910390fd5b80600f8190555050565b611798612b02565b80600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611843576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b61189c612b02565b6118a66000612b80565b565b6118b0611ad5565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806119365750600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b611975576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161196c90614069565b60405180910390fd5b61197d612c46565b565b6060600080600061198f856117dc565b905060008167ffffffffffffffff8111156119ad576119ac613ca3565b5b6040519080825280602002602001820160405280156119db5781602001602082028036833780820191505090505b5090506119e6613336565b60006119f06125dc565b90505b838614611ab457611a0381612ca9565b91508160400151611aa957600073ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff1614611a4e57816000015194505b8773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603611aa85780838780600101985081518110611a9b57611a9a614643565b5b6020026020010181815250505b5b8060010190506119f3565b508195505050505050919050565b600b60009054906101000a900460ff1681565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600d5481565b606060038054611b1490613f89565b80601f0160208091040260200160405190810160405280929190818152602001828054611b4090613f89565b8015611b8d5780601f10611b6257610100808354040283529160200191611b8d565b820191906000526020600020905b815481529060010190602001808311611b7057829003601f168201915b5050505050905090565b6060818310611bd2576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080611bdd612cd4565b9050611be76125dc565b851015611bf957611bf66125dc565b94505b80841115611c05578093505b6000611c10876117dc565b905084861015611c33576000868603905081811015611c2d578091505b50611c38565b600090505b60008167ffffffffffffffff811115611c5457611c53613ca3565b5b604051908082528060200260200182016040528015611c825781602001602082028036833780820191505090505b50905060008203611c995780945050505050611d9c565b6000611ca488612175565b905060008160400151611cb957816000015190505b60008990505b888114158015611ccf5750848714155b15611d8e57611cdd81612ca9565b92508260400151611d8357600073ffffffffffffffffffffffffffffffffffffffff16836000015173ffffffffffffffffffffffffffffffffffffffff1614611d2857826000015191505b8a73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611d825780848880600101995081518110611d7557611d74614643565b5b6020026020010181815250505b5b806001019050611cbf565b508583528296505050505050505b9392505050565b611dab611ad5565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480611e315750600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b611e70576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e6790614069565b60405180910390fd5b80600b60016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b611ebc6125d4565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611f20576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060076000611f2d6125d4565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611fda6125d4565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161201f9190613439565b60405180910390a35050565b612033611ad5565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806120b95750600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b6120f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120ef90614069565b60405180910390fd5b80600e8190555050565b61210d848484610a74565b60008373ffffffffffffffffffffffffffffffffffffffff163b1461216f5761213884848484612cdd565b61216e576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b61217d613336565b612185613336565b61218d6125dc565b8310806121a1575061219d612cd4565b8310155b156121af57809150506121da565b6121b883612ca9565b90508060400151156121cd57809150506121da565b6121d683612e2d565b9150505b919050565b60606121ea82612575565b612220576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061222a612e4d565b9050600081510361224a5760405180602001604052806000815250612275565b8061225484612edf565b60405160200161226592919061471a565b6040516020818303038152906040525b915050919050565b60606040518060600160405280603981526020016149f860399139905090565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b612339612b02565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036123a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161239f906147b0565b60405180910390fd5b6123b181612b80565b50565b6123bc611ad5565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806124425750600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b612481576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161247890614069565b60405180910390fd5b80600d8190555050565b612493611ad5565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806125195750600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b612558576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161254f90614069565b60405180910390fd5b6001601060006101000a81548160ff021916908315150217905550565b6000816125806125dc565b1115801561258f575060005482105b80156125cd575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b600090565b600080829050806125f06125dc565b11612676576000548110156126755760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603612673575b6000810361266957600460008360019003935083815260200190815260200160002054905061263f565b80925050506126a8565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8612735868684612f26565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6000826127848584612f2f565b1490509392505050565b612796612f85565b6000600860146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6127da612fce565b6040516127e791906135aa565b60405180910390a1565b60006127fc836125e1565b9050600081905060008061280f866126ad565b9150915084156128785761282b81846128266125d4565b6126d4565b612877576128408361283b6125d4565b61229d565b612876576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b5b612886836000886001612718565b801561289157600082555b600160806001901b03600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550612939836128f68560008861271e565b7c02000000000000000000000000000000000000000000000000000000007c01000000000000000000000000000000000000000000000000000000001717612746565b600460008881526020019081526020016000208190555060007c02000000000000000000000000000000000000000000000000000000008516036129bf57600060018701905060006004600083815260200190815260200160002054036129bd5760005481146129bc578460046000838152602001908152602001600020819055505b5b505b85600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612a29836000886001612771565b600160008154809291906001019190505550505050505050565b612a4b611640565b15612a8b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a829061481c565b60405180910390fd5b565b600067ffffffffffffffff6040600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c169050919050565b612afe828260405180602001604052806000815250612fd6565b5050565b612b0a612fce565b73ffffffffffffffffffffffffffffffffffffffff16612b28611ad5565b73ffffffffffffffffffffffffffffffffffffffff1614612b7e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b7590614888565b60405180910390fd5b565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612c4e612a43565b6001600860146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612c92612fce565b604051612c9f91906135aa565b60405180910390a1565b612cb1613336565b612ccd6004600084815260200190815260200160002054613073565b9050919050565b60008054905090565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612d036125d4565b8786866040518563ffffffff1660e01b8152600401612d2594939291906148fd565b6020604051808303816000875af1925050508015612d6157506040513d601f19601f82011682018060405250810190612d5e919061495e565b60015b612dda573d8060008114612d91576040519150601f19603f3d011682016040523d82523d6000602084013e612d96565b606091505b506000815103612dd2576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b612e35613336565b612e46612e41836125e1565b613073565b9050919050565b6060600a8054612e5c90613f89565b80601f0160208091040260200160405190810160405280929190818152602001828054612e8890613f89565b8015612ed55780601f10612eaa57610100808354040283529160200191612ed5565b820191906000526020600020905b815481529060010190602001808311612eb857829003601f168201915b5050505050905090565b606060806040510190508060405280825b600115612f1257600183039250600a81066030018353600a8104905080612ef0575b508181036020830392508083525050919050565b60009392505050565b60008082905060005b8451811015612f7a57612f6582868381518110612f5857612f57614643565b5b6020026020010151613129565b91508080612f7290614308565b915050612f38565b508091505092915050565b612f8d611640565b612fcc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fc3906149d7565b60405180910390fd5b565b600033905090565b612fe08383613154565b60008373ffffffffffffffffffffffffffffffffffffffff163b1461306e57600080549050600083820390505b6130206000868380600101945086612cdd565b613056576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81811061300d57816000541461306b57600080fd5b50505b505050565b61307b613336565b81816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff168152505060007c01000000000000000000000000000000000000000000000000000000008316141581604001901515908115158152505060e882901c816060019062ffffff16908162ffffff1681525050919050565b60008183106131415761313c828461330f565b61314c565b61314b838361330f565b5b905092915050565b60008054905060008203613194576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6131a16000848385612718565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555061321883613209600086600061271e565b61321285613326565b17612746565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b8181146132b957808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a460018101905061327e565b50600082036132f4576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600081905550505061330a6000848385612771565b505050565b600082600052816020526040600020905092915050565b60006001821460e11b9050919050565b6040518060800160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff168152602001600015158152602001600062ffffff1681525090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6133ce81613399565b81146133d957600080fd5b50565b6000813590506133eb816133c5565b92915050565b6000602082840312156134075761340661338f565b5b6000613415848285016133dc565b91505092915050565b60008115159050919050565b6134338161341e565b82525050565b600060208201905061344e600083018461342a565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561348e578082015181840152602081019050613473565b60008484015250505050565b6000601f19601f8301169050919050565b60006134b682613454565b6134c0818561345f565b93506134d0818560208601613470565b6134d98161349a565b840191505092915050565b600060208201905081810360008301526134fe81846134ab565b905092915050565b6000819050919050565b61351981613506565b811461352457600080fd5b50565b60008135905061353681613510565b92915050565b6000602082840312156135525761355161338f565b5b600061356084828501613527565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061359482613569565b9050919050565b6135a481613589565b82525050565b60006020820190506135bf600083018461359b565b92915050565b6135ce81613589565b81146135d957600080fd5b50565b6000813590506135eb816135c5565b92915050565b600080604083850312156136085761360761338f565b5b6000613616858286016135dc565b925050602061362785828601613527565b9150509250929050565b61363a81613506565b82525050565b60006020820190506136556000830184613631565b92915050565b6000806000606084860312156136745761367361338f565b5b6000613682868287016135dc565b9350506020613693868287016135dc565b92505060406136a486828701613527565b9150509250925092565b600080fd5b600080fd5b600080fd5b60008083601f8401126136d3576136d26136ae565b5b8235905067ffffffffffffffff8111156136f0576136ef6136b3565b5b60208301915083602082028301111561370c5761370b6136b8565b5b9250929050565b60008060006040848603121561372c5761372b61338f565b5b600061373a868287016135dc565b935050602084013567ffffffffffffffff81111561375b5761375a613394565b5b613767868287016136bd565b92509250509250925092565b60008060006040848603121561378c5761378b61338f565b5b600084013567ffffffffffffffff8111156137aa576137a9613394565b5b6137b6868287016136bd565b935093505060206137c986828701613527565b9150509250925092565b60008083601f8401126137e9576137e86136ae565b5b8235905067ffffffffffffffff811115613806576138056136b3565b5b602083019150836001820283011115613822576138216136b8565b5b9250929050565b600080602083850312156138405761383f61338f565b5b600083013567ffffffffffffffff81111561385e5761385d613394565b5b61386a858286016137d3565b92509250509250929050565b60008083601f84011261388c5761388b6136ae565b5b8235905067ffffffffffffffff8111156138a9576138a86136b3565b5b6020830191508360208202830111156138c5576138c46136b8565b5b9250929050565b600080602083850312156138e3576138e261338f565b5b600083013567ffffffffffffffff81111561390157613900613394565b5b61390d85828601613876565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61394e81613589565b82525050565b600067ffffffffffffffff82169050919050565b61397181613954565b82525050565b6139808161341e565b82525050565b600062ffffff82169050919050565b61399e81613986565b82525050565b6080820160008201516139ba6000850182613945565b5060208201516139cd6020850182613968565b5060408201516139e06040850182613977565b5060608201516139f36060850182613995565b50505050565b6000613a0583836139a4565b60808301905092915050565b6000602082019050919050565b6000613a2982613919565b613a338185613924565b9350613a3e83613935565b8060005b83811015613a6f578151613a5688826139f9565b9750613a6183613a11565b925050600181019050613a42565b5085935050505092915050565b60006020820190508181036000830152613a968184613a1e565b905092915050565b600060208284031215613ab457613ab361338f565b5b6000613ac2848285016135dc565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613b0081613506565b82525050565b6000613b128383613af7565b60208301905092915050565b6000602082019050919050565b6000613b3682613acb565b613b408185613ad6565b9350613b4b83613ae7565b8060005b83811015613b7c578151613b638882613b06565b9750613b6e83613b1e565b925050600181019050613b4f565b5085935050505092915050565b60006020820190508181036000830152613ba38184613b2b565b905092915050565b6000819050919050565b613bbe81613bab565b82525050565b6000602082019050613bd96000830184613bb5565b92915050565b600080600060608486031215613bf857613bf761338f565b5b6000613c06868287016135dc565b9350506020613c1786828701613527565b9250506040613c2886828701613527565b9150509250925092565b613c3b8161341e565b8114613c4657600080fd5b50565b600081359050613c5881613c32565b92915050565b60008060408385031215613c7557613c7461338f565b5b6000613c83858286016135dc565b9250506020613c9485828601613c49565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613cdb8261349a565b810181811067ffffffffffffffff82111715613cfa57613cf9613ca3565b5b80604052505050565b6000613d0d613385565b9050613d198282613cd2565b919050565b600067ffffffffffffffff821115613d3957613d38613ca3565b5b613d428261349a565b9050602081019050919050565b82818337600083830152505050565b6000613d71613d6c84613d1e565b613d03565b905082815260208101848484011115613d8d57613d8c613c9e565b5b613d98848285613d4f565b509392505050565b600082601f830112613db557613db46136ae565b5b8135613dc5848260208601613d5e565b91505092915050565b60008060008060808587031215613de857613de761338f565b5b6000613df6878288016135dc565b9450506020613e07878288016135dc565b9350506040613e1887828801613527565b925050606085013567ffffffffffffffff811115613e3957613e38613394565b5b613e4587828801613da0565b91505092959194509250565b608082016000820151613e676000850182613945565b506020820151613e7a6020850182613968565b506040820151613e8d6040850182613977565b506060820151613ea06060850182613995565b50505050565b6000608082019050613ebb6000830184613e51565b92915050565b60008060408385031215613ed857613ed761338f565b5b6000613ee6858286016135dc565b9250506020613ef7858286016135dc565b9150509250929050565b613f0a81613bab565b8114613f1557600080fd5b50565b600081359050613f2781613f01565b92915050565b600060208284031215613f4357613f4261338f565b5b6000613f5184828501613f18565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613fa157607f821691505b602082108103613fb457613fb3613f5a565b5b50919050565b60008160601b9050919050565b6000613fd282613fba565b9050919050565b6000613fe482613fc7565b9050919050565b613ffc613ff782613589565b613fd9565b82525050565b600061400e8284613feb565b60148201915081905092915050565b7f4e6f74206f776e6572206f722061646d696e0000000000000000000000000000600082015250565b600061405360128361345f565b915061405e8261401d565b602082019050919050565b6000602082019050818103600083015261408281614046565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b60006140bf601f8361345f565b91506140ca82614089565b602082019050919050565b600060208201905081810360008301526140ee816140b2565b9050919050565b7f43616c6c657220697320616e6f7468657220636f6e7472616374000000000000600082015250565b600061412b601a8361345f565b9150614136826140f5565b602082019050919050565b6000602082019050818103600083015261415a8161411e565b9050919050565b7f41646472657373206e6f7420616c6c6f77656400000000000000000000000000600082015250565b600061419760138361345f565b91506141a282614161565b602082019050919050565b600060208201905081810360008301526141c68161418a565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061420782613506565b915061421283613506565b925082820190508082111561422a576142296141cd565b5b92915050565b7f5175616e7469747920657863656564732077616c6c6574206c696d6974000000600082015250565b6000614266601d8361345f565b915061427182614230565b602082019050919050565b6000602082019050818103600083015261429581614259565b9050919050565b7f5175616e74697479206578636565647320737570706c79000000000000000000600082015250565b60006142d260178361345f565b91506142dd8261429c565b602082019050919050565b60006020820190508181036000830152614301816142c5565b9050919050565b600061431382613506565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614345576143446141cd565b5b600182019050919050565b7f4261736520555249206973206c6f636b65640000000000000000000000000000600082015250565b600061438660128361345f565b915061439182614350565b602082019050919050565b600060208201905081810360008301526143b581614379565b9050919050565b600082905092915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026144297fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826143ec565b61443386836143ec565b95508019841693508086168417925050509392505050565b6000819050919050565b600061447061446b61446684613506565b61444b565b613506565b9050919050565b6000819050919050565b61448a83614455565b61449e61449682614477565b8484546143f9565b825550505050565b600090565b6144b36144a6565b6144be818484614481565b505050565b5b818110156144e2576144d76000826144ab565b6001810190506144c4565b5050565b601f821115614527576144f8816143c7565b614501846143dc565b81016020851015614510578190505b61452461451c856143dc565b8301826144c3565b50505b505050565b600082821c905092915050565b600061454a6000198460080261452c565b1980831691505092915050565b60006145638383614539565b9150826002028217905092915050565b61457d83836143bc565b67ffffffffffffffff81111561459657614595613ca3565b5b6145a08254613f89565b6145ab8282856144e6565b6000601f8311600181146145da57600084156145c8578287013590505b6145d28582614557565b86555061463a565b601f1984166145e8866143c7565b60005b82811015614610578489013582556001820191506020850194506020810190506145eb565b8683101561462d5784890135614629601f891682614539565b8355505b6001600288020188555050505b50505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4d617820737570706c79206973206c6f636b6564000000000000000000000000600082015250565b60006146a860148361345f565b91506146b382614672565b602082019050919050565b600060208201905081810360008301526146d78161469b565b9050919050565b600081905092915050565b60006146f482613454565b6146fe81856146de565b935061470e818560208601613470565b80840191505092915050565b600061472682856146e9565b915061473282846146e9565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061479a60268361345f565b91506147a58261473e565b604082019050919050565b600060208201905081810360008301526147c98161478d565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b600061480660108361345f565b9150614811826147d0565b602082019050919050565b60006020820190508181036000830152614835816147f9565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061487260208361345f565b915061487d8261483c565b602082019050919050565b600060208201905081810360008301526148a181614865565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006148cf826148a8565b6148d981856148b3565b93506148e9818560208601613470565b6148f28161349a565b840191505092915050565b6000608082019050614912600083018761359b565b61491f602083018661359b565b61492c6040830185613631565b818103606083015261493e81846148c4565b905095945050505050565b600081519050614958816133c5565b92915050565b6000602082840312156149745761497361338f565b5b600061498284828501614949565b91505092915050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b60006149c160148361345f565b91506149cc8261498b565b602082019050919050565b600060208201905081810360008301526149f0816149b4565b905091905056fe68747470733a2f2f636c6f6e65666f7263652e78797a2f6170692f6d696e7473746f6e652f6d61726b6574706c6163652d6d65746164617461a2646970667358221220f7cc5905f61a260daf2301e617a76f9e711f140ade93f55d3d4bc24ccbf0b71464736f6c63430008100033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000600000000000000000000000003be3a8613dc18554a73773a5bfb8e9819d360dc0b0c2632e0dca1f28f5c163457e0ca20a7fad31428dde3333ac22fc8e7d415ff9000000000000000000000000000000000000000000000000000000000000002e68747470733a2f2f636c6f6e65666f7263652e78797a2f6170692f6d696e7473746f6e652f6d657461646174612f000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : baseTokenURI (string): https://cloneforce.xyz/api/mintstone/metadata/
Arg [1] : admin (address): 0x3be3A8613dC18554a73773a5Bfb8E9819d360Dc0
Arg [2] : allowlistMerkleRoot (bytes32): 0xb0c2632e0dca1f28f5c163457e0ca20a7fad31428dde3333ac22fc8e7d415ff9
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 0000000000000000000000003be3a8613dc18554a73773a5bfb8e9819d360dc0
Arg [2] : b0c2632e0dca1f28f5c163457e0ca20a7fad31428dde3333ac22fc8e7d415ff9
Arg [3] : 000000000000000000000000000000000000000000000000000000000000002e
Arg [4] : 68747470733a2f2f636c6f6e65666f7263652e78797a2f6170692f6d696e7473
Arg [5] : 746f6e652f6d657461646174612f000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.