Overview
TokenID
4
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Baggys99c
Compiler Version
v0.8.20+commit.a1b79de6
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
/* ,n888888n, .8888888888b 888888888888nd8P~''8g, 88888888888888 _ `'~\. .n. `Y888888888888. / _ |~\\ (8"8b ,nnn.. 8888888b. | \ \m\|8888P ,d8888888888888888b. \8b|.\P~ ~P8~ 888888888888888P~~_~ `8B_| | ~888888888~'8' d8. ~ _/ ~Y8888P' ~\ | |~|~b,__ __--~ --~~\ ,d8888888b.\`\_/ __/~ \_ d88888888888b\_-~8888888bn. \8888P "Y888888888888"888888bn. /~'\_"__) "d88888888P,-~~-~888 / / ) ~\ ,888888/~' / / / 8' .-( / / / |) )-----------(/ ~ / / |---. ______ | ( ' /_/ BAGGY'S (__/ / |_______ \ | (_(_ ( /~ 99 CENT \___/_/' | / \ | ** AND MORE! ** | / / (________________________________________) \ /__________) __--|~mb ,g8888b. (__________\ _/ 8888b(.8P"~'~---__ / ~~~| / ,/~~~~--, `\ ( ~\,_) (/ ~-_`\ \ -__---~._ \ ~\\ ( )\\ )) `\ ) "-_ `| \__ __/ ~-__ __--~ ~~"~ ~~~ */ // // SPDX-License-Identifier: MIT pragma solidity ^0.8.20; import "erc721a/contracts/ERC721A.sol"; import "@openzeppelin/contracts/interfaces/IERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "closedsea/src/OperatorFilterer.sol"; import "erc721a/contracts/extensions/ERC721AQueryable.sol"; import "erc721a/contracts/extensions/ERC721ABurnable.sol"; import "@openzeppelin/contracts/token/common/ERC2981.sol"; contract Baggys99c is ERC721AQueryable, ERC721ABurnable, OperatorFilterer, ReentrancyGuard, Ownable, ERC2981 { // Variables // --------------------------------------------------------------- uint256 public immutable collectionSize; uint256 public immutable maxPerWallet; bool public operatorFilteringEnabled; uint256 public numFreeMint = 0; bytes32 public freeMintMerkleRoot; bytes32 public allowlistMerkleRoot; bool public isFreeMintActive = false; bool public isAllowlistMintActive = false; bool public isMintActive = false; bool public reserveFreeMint = true; uint256 private allowlistMintPrice = 0.04 ether; uint256 private mintPrice = 0.06 ether; uint256 private reservedFreeMint; address private devAddress = 0x111f394Bd7842d1F9B2D1Dcc9fbC6c53B581801d; // this should be ledger address string private _baseTokenURI; // Helper functions // --------------------------------------------------------------- /** * @dev This function packs two uint32 values into a single uint64 value. * @param a: first uint32 * @param b: second uint32 */ function pack(uint32 a, uint32 b) internal pure returns (uint64) { return uint64(a) << 32 | uint64(b); } /** * @dev This function unpacks a uint64 value into two uint32 values. * @param a: uint64 value */ function unpack(uint64 a) internal pure returns (uint32, uint32) { return (uint32(a >> 32), uint32(a)); } // Modifiers // --------------------------------------------------------------- modifier callerIsUser() { require(tx.origin == msg.sender, "The caller is another contract."); _; } modifier freeMintActive() { require(isFreeMintActive, "Free mint is not open."); _; } modifier allowlistMintActive() { require(isAllowlistMintActive, "Allowlist mint is not open."); _; } modifier mintActive() { require(isMintActive, "Mint is not open."); _; } modifier isValidMerkleProof(bytes32[] calldata merkleProof, bytes32 root) { require( MerkleProof.verify( merkleProof, root, keccak256(abi.encodePacked(msg.sender)) ), "Address does not exist in allowlist." ); _; } modifier freeMintLeft(uint256 quantity) { require( totalSupply() + quantity <= collectionSize && numFreeMint + quantity <= reservedFreeMint, "There are no tokens left." ); _; } modifier mintLeft(uint256 quantity) { require( _mintLeft(quantity), "There are no tokens left." ); _; } modifier supplyLeft(uint256 quantity) { require( totalSupply() + quantity <= collectionSize, "There are no tokens left." ); _; } modifier mintNotZero(uint256 quantity){ require( quantity != 0, "You cannont mint 0 tokens." ); _; } modifier hasNotClaimedFreeMint() { (uint32 senderFreeMints, uint32 senderAllowlistMints) = unpack(_getAux(msg.sender)); require( senderFreeMints == 0, "This wallet cannot claim more than 1 free mint." ); _; } modifier hasNotClaimedAllowlistMint() { (uint32 senderFreeMints, uint32 senderAllowlistMints) = unpack(_getAux(msg.sender)); require( senderAllowlistMints == 0, "Cannot claim more than 1 allowlist mint." ); _; } modifier lessThanMaxPerWallet(uint256 quantity) { require( _numberMinted(msg.sender) + quantity <= maxPerWallet, "The maximum number of minted tokens per wallet is 3." ); _; } modifier isCorrectPayment(uint256 price, uint256 quantity) { require(price * quantity == msg.value, "Incorrect amount of ETH sent."); _; } // Constructor // --------------------------------------------------------------- constructor( uint256 collectionSize_, uint256 maxPerWallet_, uint256 reservedFreeMint_ ) ERC721A("Baggy's 99 Cents AND MORE!", "SAVE") { collectionSize = collectionSize_; maxPerWallet = maxPerWallet_; reservedFreeMint = reservedFreeMint_; _registerForOperatorFiltering(); operatorFilteringEnabled = true; _setDefaultRoyalty(devAddress, 700); } // Public minting functions // --------------------------------------------------------------- // Free mint from allowlist function freeMint(bytes32[] calldata merkleProof) external nonReentrant callerIsUser freeMintActive isValidMerkleProof(merkleProof, freeMintMerkleRoot) hasNotClaimedFreeMint freeMintLeft(1) { (uint32 senderFreeMints, uint32 senderAllowlistMints) = unpack(_getAux(msg.sender)); senderFreeMints++; numFreeMint++; _setAux(msg.sender, pack(senderFreeMints, senderAllowlistMints)); _safeMint(msg.sender, 1); } // Allowlist mint function allowlistMint(bytes32[] calldata merkleProof) external payable nonReentrant callerIsUser allowlistMintActive mintLeft(1) hasNotClaimedAllowlistMint isCorrectPayment(allowlistMintPrice, 1) isValidMerkleProof(merkleProof, allowlistMerkleRoot) { (uint32 senderFreeMints, uint32 senderAllowlistMints) = unpack(_getAux(msg.sender)); senderAllowlistMints++; _setAux(msg.sender, pack(senderFreeMints, senderAllowlistMints)); _safeMint(msg.sender, 1); } // Public mint function mint(uint256 quantity) external payable nonReentrant callerIsUser mintActive lessThanMaxPerWallet(quantity) isCorrectPayment(mintPrice, quantity) mintLeft(quantity) mintNotZero(quantity) { _safeMint(msg.sender, quantity); } function gift(address[] calldata addresses) external nonReentrant onlyOwner mintLeft(addresses.length) { uint256 numToGift = addresses.length; for (uint256 i = 0; i < numToGift; i++){ _safeMint(addresses[i], 1); numFreeMint++; } } // Public read-only functions // --------------------------------------------------------------- function numberMinted(address owner) public view returns (uint256) { return _numberMinted(owner); } function getAllowlistMintPrice() public view returns (uint256) { return allowlistMintPrice; } function getMintPrice() public view returns (uint256) { return mintPrice; } function getFreeMintCount(address owner) public view returns (uint32) { (uint32 senderFreeMints, uint32 senderAllowlistMints) = unpack(_getAux(owner)); return senderFreeMints; } function getAllowlistMintCount(address owner) public view returns (uint32) { (uint32 senderFreeMints, uint32 senderAllowlistMints) = unpack(_getAux(owner)); return senderAllowlistMints; } function getFreeMintUserVerifed(bytes32[] calldata merkleProof, address user) public view returns(bool) { bool verified = MerkleProof.verify( merkleProof, freeMintMerkleRoot, keccak256(abi.encodePacked(user)) ); return verified; } function getAllowlistUserVerifed(bytes32[] calldata merkleProof, address user) public view returns(bool) { bool verified = MerkleProof.verify( merkleProof, allowlistMerkleRoot, keccak256(abi.encodePacked(user)) ); return verified; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override (IERC721A, ERC721A) returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId), ".json")) : ""; } // Internal read-only functions // --------------------------------------------------------------- function _baseURI() internal view virtual override returns (string memory) { return _baseTokenURI; } function _mintLeft(uint256 quantity) internal view virtual returns (bool) { // bool reserveFreeMint = true means that free mints are being reserved and collection // won't mint out until all free mints are claimed. set to false to turn off, free // mint not guaranteed when false if (!reserveFreeMint) return totalSupply() + quantity <= collectionSize; return totalSupply() + quantity <= collectionSize - (reservedFreeMint - numFreeMint); } // Owner only administration functions // --------------------------------------------------------------- function setFreeMintActive(bool _isFreeMintActive) external onlyOwner { isFreeMintActive = _isFreeMintActive; } function setAllowlistMintActive(bool _isAllowlistMintActive) external onlyOwner { isAllowlistMintActive = _isAllowlistMintActive; } function setMintActive(bool _isMintActive) external onlyOwner { isMintActive = _isMintActive; } function setReserveFreeMint(bool _reserveFreeMint) external onlyOwner { reserveFreeMint = _reserveFreeMint; } function setMintPrice(uint256 _mintPrice) external onlyOwner { mintPrice = _mintPrice; } function setAllowlistMintPrice(uint256 _allowlistMintPrice) external onlyOwner { allowlistMintPrice = _allowlistMintPrice; } function setBaseURI(string calldata baseURI) external onlyOwner { _baseTokenURI = baseURI; } function setFreeMintMerkleRoot(bytes32 merkleRoot) external onlyOwner { freeMintMerkleRoot = merkleRoot; } function setAllowlistMerkleRoot(bytes32 merkleRoot) external onlyOwner { allowlistMerkleRoot = merkleRoot; } function setDefaultRoyalty(address _devAddress, uint96 feeNumerator) external onlyOwner { _setDefaultRoyalty(_devAddress, feeNumerator); } function setOperatorFilteringEnabled(bool value) public onlyOwner { operatorFilteringEnabled = value; } function withdraw() external onlyOwner { (bool success, ) = msg.sender.call{value: address(this).balance}(""); require(success, "Transfer failed."); } function withdrawTokens(IERC20 token) external onlyOwner nonReentrant { token.transfer(msg.sender, (token.balanceOf(address(this)))); } function ownerMint(uint256 quantity) external onlyOwner supplyLeft(quantity){ _safeMint(msg.sender, quantity); } // ClosedSea functions // --------------------------------------------------------------- function setApprovalForAll(address operator, bool approved) public override (IERC721A, ERC721A) onlyAllowedOperatorApproval(operator) { super.setApprovalForAll(operator, approved); } function approve(address operator, uint256 tokenId) public payable override (IERC721A, ERC721A) onlyAllowedOperatorApproval(operator) { super.approve(operator, tokenId); } function transferFrom(address from, address to, uint256 tokenId) public payable override (IERC721A, ERC721A) onlyAllowedOperator(from) { super.transferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId) public payable override (IERC721A, ERC721A) onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public payable override (IERC721A, ERC721A) onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId, data); } function supportsInterface(bytes4 interfaceId) public view virtual override (IERC721A, ERC721A, ERC2981) returns (bool) { // Supports the following `interfaceId`s: // - IERC165: 0x01ffc9a7 // - IERC721: 0x80ac58cd // - IERC721Metadata: 0x5b5e139f // - IERC2981: 0x2a55205a return ERC721A.supportsInterface(interfaceId) || ERC2981.supportsInterface(interfaceId); } function _operatorFilteringEnabled() internal view override returns (bool) { return operatorFilteringEnabled; } function _isPriorityOperator(address operator) internal pure override returns (bool) { // OpenSea Seaport Conduit: // https://etherscan.io/address/0x1E0049783F008A0085193E00003D00cd54003c71 // https://goerli.etherscan.io/address/0x1E0049783F008A0085193E00003D00cd54003c71 return operator == address(0x1E0049783F008A0085193E00003D00cd54003c71); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.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. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC20.sol) pragma solidity ^0.8.0; import "../token/ERC20/IERC20.sol";
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo( uint256 tokenId, uint256 salePrice ) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (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() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } /** * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a * `nonReentrant` function in the call stack. */ function _reentrancyGuardEntered() internal view returns (bool) { return _status == _ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/common/ERC2981.sol) pragma solidity ^0.8.0; import "../../interfaces/IERC2981.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the * fee is specified in basis points by default. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC2981 is IERC2981, ERC165 { struct RoyaltyInfo { address receiver; uint96 royaltyFraction; } RoyaltyInfo private _defaultRoyaltyInfo; mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @inheritdoc IERC2981 */ function royaltyInfo(uint256 tokenId, uint256 salePrice) public view virtual override returns (address, uint256) { RoyaltyInfo memory royalty = _tokenRoyaltyInfo[tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } uint256 royaltyAmount = (salePrice * royalty.royaltyFraction) / _feeDenominator(); return (royalty.receiver, royaltyAmount); } /** * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an * override. */ function _feeDenominator() internal pure virtual returns (uint96) { return 10000; } /** * @dev Sets the royalty information that all ids in this contract will default to. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: invalid receiver"); _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Removes default royalty information. */ function _deleteDefaultRoyalty() internal virtual { delete _defaultRoyaltyInfo; } /** * @dev Sets the royalty information for a specific token id, overriding the global default. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setTokenRoyalty(uint256 tokenId, address receiver, uint96 feeNumerator) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: Invalid parameters"); _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Resets royalty information for the token id back to the global default. */ function _resetTokenRoyalty(uint256 tokenId) internal virtual { delete _tokenRoyaltyInfo[tokenId]; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 amount) external returns (bool); }
// 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; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The tree and the proofs can be generated using our * https://github.com/OpenZeppelin/merkle-tree[JavaScript library]. * You will find a quickstart guide in the readme. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. * OpenZeppelin's JavaScript library generates merkle trees that are safe * against this attack out of the box. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify(bytes32[] memory proof, bytes32 root, bytes32 leaf) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata(bytes32[] calldata proof, bytes32 root, bytes32 leaf) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false * respectively. * * CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer). * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 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 from the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]) : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { unchecked { return hashes[totalHashes - 1]; } } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 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 from the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]) : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { unchecked { return hashes[totalHashes - 1]; } } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; /// @notice Optimized and flexible operator filterer to abide to OpenSea's /// mandatory on-chain royalty enforcement in order for new collections to /// receive royalties. /// For more information, see: /// See: https://github.com/ProjectOpenSea/operator-filter-registry abstract contract OperatorFilterer { /// @dev The default OpenSea operator blocklist subscription. address internal constant _DEFAULT_SUBSCRIPTION = 0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6; /// @dev The OpenSea operator filter registry. address internal constant _OPERATOR_FILTER_REGISTRY = 0x000000000000AAeB6D7670E522A718067333cd4E; /// @dev Registers the current contract to OpenSea's operator filter, /// and subscribe to the default OpenSea operator blocklist. /// Note: Will not revert nor update existing settings for repeated registration. function _registerForOperatorFiltering() internal virtual { _registerForOperatorFiltering(_DEFAULT_SUBSCRIPTION, true); } /// @dev Registers the current contract to OpenSea's operator filter. /// Note: Will not revert nor update existing settings for repeated registration. function _registerForOperatorFiltering(address subscriptionOrRegistrantToCopy, bool subscribe) internal virtual { /// @solidity memory-safe-assembly assembly { let functionSelector := 0x7d3e3dbe // `registerAndSubscribe(address,address)`. // Clean the upper 96 bits of `subscriptionOrRegistrantToCopy` in case they are dirty. subscriptionOrRegistrantToCopy := shr(96, shl(96, subscriptionOrRegistrantToCopy)) for {} iszero(subscribe) {} { if iszero(subscriptionOrRegistrantToCopy) { functionSelector := 0x4420e486 // `register(address)`. break } functionSelector := 0xa0af2903 // `registerAndCopyEntries(address,address)`. break } // Store the function selector. mstore(0x00, shl(224, functionSelector)) // Store the `address(this)`. mstore(0x04, address()) // Store the `subscriptionOrRegistrantToCopy`. mstore(0x24, subscriptionOrRegistrantToCopy) // Register into the registry. if iszero(call(gas(), _OPERATOR_FILTER_REGISTRY, 0, 0x00, 0x44, 0x00, 0x04)) { // If the function selector has not been overwritten, // it is an out-of-gas error. if eq(shr(224, mload(0x00)), functionSelector) { // To prevent gas under-estimation. revert(0, 0) } } // Restore the part of the free memory pointer that was overwritten, // which is guaranteed to be zero, because of Solidity's memory size limits. mstore(0x24, 0) } } /// @dev Modifier to guard a function and revert if the caller is a blocked operator. modifier onlyAllowedOperator(address from) virtual { if (from != msg.sender) { if (!_isPriorityOperator(msg.sender)) { if (_operatorFilteringEnabled()) _revertIfBlocked(msg.sender); } } _; } /// @dev Modifier to guard a function from approving a blocked operator.. modifier onlyAllowedOperatorApproval(address operator) virtual { if (!_isPriorityOperator(operator)) { if (_operatorFilteringEnabled()) _revertIfBlocked(operator); } _; } /// @dev Helper function that reverts if the `operator` is blocked by the registry. function _revertIfBlocked(address operator) private view { /// @solidity memory-safe-assembly assembly { // Store the function selector of `isOperatorAllowed(address,address)`, // shifted left by 6 bytes, which is enough for 8tb of memory. // We waste 6-3 = 3 bytes to save on 6 runtime gas (PUSH1 0x224 SHL). mstore(0x00, 0xc6171134001122334455) // Store the `address(this)`. mstore(0x1a, address()) // Store the `operator`. mstore(0x3a, operator) // `isOperatorAllowed` always returns true if it does not revert. if iszero(staticcall(gas(), _OPERATOR_FILTER_REGISTRY, 0x16, 0x44, 0x00, 0x00)) { // Bubble up the revert if the staticcall reverts. returndatacopy(0x00, 0x00, returndatasize()) revert(0x00, returndatasize()) } // We'll skip checking if `from` is inside the blacklist. // Even though that can block transferring out of wrapper contracts, // we don't want tokens to be stuck. // Restore the part of the free memory pointer that was overwritten, // which is guaranteed to be zero, if less than 8tb of memory is used. mstore(0x3a, 0) } } /// @dev For deriving contracts to override, so that operator filtering /// can be turned on / off. /// Returns true by default. function _operatorFilteringEnabled() internal view virtual returns (bool) { return true; } /// @dev For deriving contracts to override, so that preferred marketplaces can /// skip operator filtering, helping users save gas. /// Returns false for all inputs by default. function _isPriorityOperator(address) internal view virtual returns (bool) { return false; } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // 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 { // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364). struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // Mask of an entry in packed address data. uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant _BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant _BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant _BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant _BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant _BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant _BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant _BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with {_mintERC2309}. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309} // is required to cause an overflow, which is unrealistic. uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See {_packedOwnershipOf} implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view virtual returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() public view virtual override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) public view virtual override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> _BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal virtual { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); _packedAddressData[owner] = packed; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes // of the XOR of all function selectors in the interface. // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165) // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`) return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & _BITMASK_BURNED == 0) { // Invariant: // There will always be an initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `curr` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP); ownership.burned = packed & _BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) public payable virtual override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId].value; } /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) public virtual override { _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned. } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) public payable virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public payable virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public payable virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Hook that is called before a set of serially-ordered token IDs * are about to be transferred. This includes minting. * And also called before burning one token. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token IDs * have been transferred. This includes minting. * And also called after one token has been burned. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 toMasked; uint256 end = startTokenId + quantity; // Use assembly to loop and emit the `Transfer` event for gas savings. // The duplicated `log4` removes an extra check and reduces stack juggling. // The assembly, together with the surrounding Solidity code, have been // delicately arranged to nudge the compiler into producing optimized opcodes. assembly { // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. toMasked := and(to, _BITMASK_ADDRESS) // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. startTokenId // `tokenId`. ) // The `iszero(eq(,))` check ensures that large values of `quantity` // that overflows uint256 will make the loop run out of gas. // The compiler will optimize the `iszero` away for performance. for { let tokenId := add(startTokenId, 1) } iszero(eq(tokenId, end)) { tokenId := add(tokenId, 1) } { // Emit the `Transfer` event. Similar to above. log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId) } } if (toMasked == 0) revert MintToZeroAddress(); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString(uint256 value) internal pure virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), but // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned. // We will need 1 word for the trailing zeros padding, 1 word for the length, // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0. let m := add(mload(0x40), 0xa0) // Update the free memory pointer to allocate. mstore(0x40, m) // Assign the `str` to the end. str := sub(m, 0x20) // Zeroize the slot after the string. mstore(str, 0) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721ABurnable.sol'; import '../ERC721A.sol'; /** * @title ERC721ABurnable. * * @dev ERC721A token that can be irreversibly burned (destroyed). */ abstract contract ERC721ABurnable is ERC721A, IERC721ABurnable { /** * @dev Burns `tokenId`. See {ERC721A-_burn}. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function burn(uint256 tokenId) public virtual override { _burn(tokenId, true); } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // 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 // ERC721A Contracts v4.2.3 // 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.3 // 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.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the * ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables * (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, * checking first that contract recipients are aware of the ERC721 protocol * to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move * this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external payable; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Transfers `tokenId` from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} * whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external payable; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); }
{ "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":"uint256","name":"collectionSize_","type":"uint256"},{"internalType":"uint256","name":"maxPerWallet_","type":"uint256"},{"internalType":"uint256","name":"reservedFreeMint_","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","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":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"allowlistMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"allowlistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"collectionSize","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"explicitOwnershipOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"explicitOwnershipsOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"freeMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"freeMintMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"getAllowlistMintCount","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAllowlistMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"},{"internalType":"address","name":"user","type":"address"}],"name":"getAllowlistUserVerifed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"getFreeMintCount","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"},{"internalType":"address","name":"user","type":"address"}],"name":"getFreeMintUserVerifed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"}],"name":"gift","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isAllowlistMintActive","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":"isFreeMintActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isMintActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numFreeMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"numberMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operatorFilteringEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"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":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reserveFreeMint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"setAllowlistMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isAllowlistMintActive","type":"bool"}],"name":"setAllowlistMintActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_allowlistMintPrice","type":"uint256"}],"name":"setAllowlistMintPrice","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":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_devAddress","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isFreeMintActive","type":"bool"}],"name":"setFreeMintActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"setFreeMintMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isMintActive","type":"bool"}],"name":"setMintActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintPrice","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"value","type":"bool"}],"name":"setOperatorFilteringEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_reserveFreeMint","type":"bool"}],"name":"setReserveFreeMint","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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"withdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60c06040525f600d555f60105f6101000a81548160ff0219169083151502179055505f601060016101000a81548160ff0219169083151502179055505f601060026101000a81548160ff0219169083151502179055506001601060036101000a81548160ff021916908315150217905550668e1bc9bf04000060115566d529ae9e86000060125573111f394bd7842d1f9b2d1dcc9fbc6c53b581801d60145f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550348015620000e6575f80fd5b50604051620068023803806200680283398181016040528101906200010c9190620005a8565b6040518060400160405280601a81526020017f426167677927732039392043656e747320414e44204d4f5245210000000000008152506040518060400160405280600481526020017f534156450000000000000000000000000000000000000000000000000000000081525081600290816200018991906200085c565b5080600390816200019b91906200085c565b50620001ac6200025a60201b60201c565b5f8190555050506001600881905550620001db620001cf6200025e60201b60201c565b6200026560201b60201c565b82608081815250508160a0818152505080601381905550620002026200032860201b60201c565b6001600c5f6101000a81548160ff0219169083151502179055506200025160145f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff166102bc6200035160201b60201c565b50505062000a52565b5f90565b5f33905090565b5f60095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160095f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6200034f733cc6cdda760b79bafa08df41ecfa224f810dceb66001620004ef60201b60201c565b565b620003616200056360201b60201c565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115620003c2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620003b990620009c4565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160362000433576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200042a9062000a32565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600a5f820151815f015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506020820151815f0160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b637d3e3dbe8260601b60601c9250816200051e57826200051657634420e48690506200051e565b63a0af290390505b8060e01b5f52306004528260245260045f60445f806daaeb6d7670e522a718067333cd4e5af16200055a57805f5160e01c0362000559575f80fd5b5b5f602452505050565b5f612710905090565b5f80fd5b5f819050919050565b620005848162000570565b81146200058f575f80fd5b50565b5f81519050620005a28162000579565b92915050565b5f805f60608486031215620005c257620005c16200056c565b5b5f620005d18682870162000592565b9350506020620005e48682870162000592565b9250506040620005f78682870162000592565b9150509250925092565b5f81519050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f60028204905060018216806200067d57607f821691505b60208210810362000693576200069262000638565b5b50919050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f60088302620006f77fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82620006ba565b620007038683620006ba565b95508019841693508086168417925050509392505050565b5f819050919050565b5f620007446200073e620007388462000570565b6200071b565b62000570565b9050919050565b5f819050919050565b6200075f8362000724565b620007776200076e826200074b565b848454620006c6565b825550505050565b5f90565b6200078d6200077f565b6200079a81848462000754565b505050565b5b81811015620007c157620007b55f8262000783565b600181019050620007a0565b5050565b601f8211156200081057620007da8162000699565b620007e584620006ab565b81016020851015620007f5578190505b6200080d6200080485620006ab565b8301826200079f565b50505b505050565b5f82821c905092915050565b5f620008325f198460080262000815565b1980831691505092915050565b5f6200084c838362000821565b9150826002028217905092915050565b620008678262000601565b67ffffffffffffffff8111156200088357620008826200060b565b5b6200088f825462000665565b6200089c828285620007c5565b5f60209050601f831160018114620008d2575f8415620008bd578287015190505b620008c985826200083f565b86555062000938565b601f198416620008e28662000699565b5f5b828110156200090b57848901518255600182019150602085019450602081019050620008e4565b868310156200092b578489015162000927601f89168262000821565b8355505b6001600288020188555050505b505050505050565b5f82825260208201905092915050565b7f455243323938313a20726f79616c7479206665652077696c6c206578636565645f8201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b5f620009ac602a8362000940565b9150620009b98262000950565b604082019050919050565b5f6020820190508181035f830152620009dd816200099e565b9050919050565b7f455243323938313a20696e76616c6964207265636569766572000000000000005f82015250565b5f62000a1a60198362000940565b915062000a2782620009e4565b602082019050919050565b5f6020820190508181035f83015262000a4b8162000a0c565b9050919050565b60805160a051615d6b62000a975f395f818161145f015261223c01525f818161148301528181611dc10152818161271b01528181612e0a0152612e570152615d6b5ff3fe608060405260043610610380575f3560e01c806370a08231116101d0578063b7c0b8e811610101578063e066fb7d1161009f578063f2fde38b1161006e578063f2fde38b14610ce7578063f4a0a52814610d0f578063f95df41414610d37578063fb796e6c14610d5f57610380565b8063e066fb7d14610c31578063e985e9c514610c5b578063ee1cc94414610c97578063f19e75d414610cbf57610380565b8063c87b56dd116100db578063c87b56dd14610b69578063d684340914610ba5578063dc33e68114610bcd578063dde44b8914610c0957610380565b8063b7c0b8e814610ae9578063b88d4fde14610b11578063c23dc68f14610b2d57610380565b806395d89b411161016e578063a16c810311610148578063a16c810314610a1f578063a22cb46514610a5b578063a7f93ebd14610a83578063b360fb9614610aad57610380565b806395d89b411461099d57806399a2557a146109c7578063a0712d6814610a0357610380565b80637a5b85c1116101aa5780637a5b85c1146108e55780638462151c1461090f57806388d15d501461094b5780638da5cb5b1461097357610380565b806370a0823114610857578063715018a614610893578063731b9de3146108a957610380565b806338da2f69116102b557806349df728c116102535780635b92ac0d116102225780635b92ac0d1461078b5780635bbb2177146107b55780636352211e146107f157806368963df01461082d57610380565b806349df728c146106f75780634f9b563c1461071f578063537924ef1461074757806355f804b31461076357610380565b806342842e0e1161028f57806342842e0e1461065f57806342966c681461067b578063453c2310146106a357806345c0f533146106cd57610380565b806338da2f69146105e55780633ccfd60b1461060d5780633e484efb1461062357610380565b8063180b006d11610322578063229fa55d116102fc578063229fa55d1461053857806323b872dd14610562578063293108e01461057e5780632a55205a146105a857610380565b8063180b006d146104bc57806318160ddd146104e457806321d109141461050e57610380565b8063081812fc1161035e578063081812fc14610412578063095ea7b31461044e57806313b1f5231461046a578063163e1e611461049457610380565b806301ffc9a71461038457806304634d8d146103c057806306fdde03146103e8575b5f80fd5b34801561038f575f80fd5b506103aa60048036038101906103a591906140e0565b610d89565b6040516103b79190614125565b60405180910390f35b3480156103cb575f80fd5b506103e660048036038101906103e191906141d9565b610daa565b005b3480156103f3575f80fd5b506103fc610dc0565b60405161040991906142a1565b60405180910390f35b34801561041d575f80fd5b50610438600480360381019061043391906142f4565b610e50565b604051610445919061432e565b60405180910390f35b61046860048036038101906104639190614347565b610eca565b005b348015610475575f80fd5b5061047e610eff565b60405161048b9190614394565b60405180910390f35b34801561049f575f80fd5b506104ba60048036038101906104b5919061440e565b610f05565b005b3480156104c7575f80fd5b506104e260048036038101906104dd9190614483565b610fdd565b005b3480156104ef575f80fd5b506104f8611002565b6040516105059190614394565b60405180910390f35b348015610519575f80fd5b50610522611017565b60405161052f9190614125565b60405180910390f35b348015610543575f80fd5b5061054c61102a565b6040516105599190614125565b60405180910390f35b61057c600480360381019061057791906144ae565b61103d565b005b348015610589575f80fd5b506105926110a8565b60405161059f9190614516565b60405180910390f35b3480156105b3575f80fd5b506105ce60048036038101906105c9919061452f565b6110ae565b6040516105dc92919061456d565b60405180910390f35b3480156105f0575f80fd5b5061060b60048036038101906106069190614483565b61128a565b005b348015610618575f80fd5b506106216112af565b005b34801561062e575f80fd5b50610649600480360381019061064491906145e9565b611362565b6040516106569190614125565b60405180910390f35b610679600480360381019061067491906144ae565b6113e4565b005b348015610686575f80fd5b506106a1600480360381019061069c91906142f4565b61144f565b005b3480156106ae575f80fd5b506106b761145d565b6040516106c49190614394565b60405180910390f35b3480156106d8575f80fd5b506106e1611481565b6040516106ee9190614394565b60405180910390f35b348015610702575f80fd5b5061071d60048036038101906107189190614681565b6114a5565b005b34801561072a575f80fd5b5061074560048036038101906107409190614483565b6115b3565b005b610761600480360381019061075c91906146ac565b6115d7565b005b34801561076e575f80fd5b506107896004803603810190610784919061474c565b6118a5565b005b348015610796575f80fd5b5061079f6118c3565b6040516107ac9190614125565b60405180910390f35b3480156107c0575f80fd5b506107db60048036038101906107d691906147ec565b6118d6565b6040516107e8919061498f565b60405180910390f35b3480156107fc575f80fd5b50610817600480360381019061081291906142f4565b611996565b604051610824919061432e565b60405180910390f35b348015610838575f80fd5b506108416119a7565b60405161084e9190614516565b60405180910390f35b348015610862575f80fd5b5061087d600480360381019061087891906149af565b6119ad565b60405161088a9190614394565b60405180910390f35b34801561089e575f80fd5b506108a7611a62565b005b3480156108b4575f80fd5b506108cf60048036038101906108ca91906149af565b611a75565b6040516108dc91906149f8565b60405180910390f35b3480156108f0575f80fd5b506108f9611a97565b6040516109069190614125565b60405180910390f35b34801561091a575f80fd5b50610935600480360381019061093091906149af565b611aa9565b6040516109429190614ac8565b60405180910390f35b348015610956575f80fd5b50610971600480360381019061096c91906146ac565b611be5565b005b34801561097e575f80fd5b50610987611ebd565b604051610994919061432e565b60405180910390f35b3480156109a8575f80fd5b506109b1611ee5565b6040516109be91906142a1565b60405180910390f35b3480156109d2575f80fd5b506109ed60048036038101906109e89190614ae8565b611f75565b6040516109fa9190614ac8565b60405180910390f35b610a1d6004803603810190610a1891906142f4565b612174565b005b348015610a2a575f80fd5b50610a456004803603810190610a4091906149af565b6123a7565b604051610a5291906149f8565b60405180910390f35b348015610a66575f80fd5b50610a816004803603810190610a7c9190614b38565b6123c9565b005b348015610a8e575f80fd5b50610a976123fe565b604051610aa49190614394565b60405180910390f35b348015610ab8575f80fd5b50610ad36004803603810190610ace91906145e9565b612407565b604051610ae09190614125565b60405180910390f35b348015610af4575f80fd5b50610b0f6004803603810190610b0a9190614483565b612489565b005b610b2b6004803603810190610b269190614c9e565b6124ad565b005b348015610b38575f80fd5b50610b536004803603810190610b4e91906142f4565b61251a565b604051610b609190614d71565b60405180910390f35b348015610b74575f80fd5b50610b8f6004803603810190610b8a91906142f4565b612584565b604051610b9c91906142a1565b60405180910390f35b348015610bb0575f80fd5b50610bcb6004803603810190610bc691906142f4565b61261f565b005b348015610bd8575f80fd5b50610bf36004803603810190610bee91906149af565b612631565b604051610c009190614394565b60405180910390f35b348015610c14575f80fd5b50610c2f6004803603810190610c2a9190614db4565b612642565b005b348015610c3c575f80fd5b50610c45612654565b604051610c529190614394565b60405180910390f35b348015610c66575f80fd5b50610c816004803603810190610c7c9190614ddf565b61265d565b604051610c8e9190614125565b60405180910390f35b348015610ca2575f80fd5b50610cbd6004803603810190610cb89190614483565b6126eb565b005b348015610cca575f80fd5b50610ce56004803603810190610ce091906142f4565b612710565b005b348015610cf2575f80fd5b50610d0d6004803603810190610d0891906149af565b61279c565b005b348015610d1a575f80fd5b50610d356004803603810190610d3091906142f4565b61281e565b005b348015610d42575f80fd5b50610d5d6004803603810190610d589190614db4565b612830565b005b348015610d6a575f80fd5b50610d73612842565b604051610d809190614125565b60405180910390f35b5f610d9382612854565b80610da35750610da2826128e5565b5b9050919050565b610db261295e565b610dbc82826129dc565b5050565b606060028054610dcf90614e4a565b80601f0160208091040260200160405190810160405280929190818152602001828054610dfb90614e4a565b8015610e465780601f10610e1d57610100808354040283529160200191610e46565b820191905f5260205f20905b815481529060010190602001808311610e2957829003601f168201915b5050505050905090565b5f610e5a82612b6c565b610e90576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60065f8381526020019081526020015f205f015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b81610ed481612bc6565b610ef057610ee0612c11565b15610eef57610eee81612c26565b5b5b610efa8383612c65565b505050565b600d5481565b610f0d612da4565b610f1561295e565b81819050610f2281612df3565b610f61576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f5890614ec4565b60405180910390fd5b5f8383905090505f5b81811015610fce57610fa4858583818110610f8857610f87614ee2565b5b9050602002016020810190610f9d91906149af565b6001612e9d565b600d5f815480929190610fb690614f3c565b91905055508080610fc690614f3c565b915050610f6a565b505050610fd9612eba565b5050565b610fe561295e565b80601060036101000a81548160ff02191690831515021790555050565b5f61100b612ec4565b6001545f540303905090565b601060039054906101000a900460ff1681565b601060019054906101000a900460ff1681565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146110975761107a33612bc6565b61109657611086612c11565b156110955761109433612c26565b5b5b5b6110a2848484612ec8565b50505050565b600f5481565b5f805f600b5f8681526020019081526020015f206040518060400160405290815f82015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020015f820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505f73ffffffffffffffffffffffffffffffffffffffff16815f015173ffffffffffffffffffffffffffffffffffffffff160361123757600a6040518060400160405290815f82015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020015f820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b5f6112406131d6565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff168661126c9190614f83565b6112769190614ff1565b9050815f0151819350935050509250929050565b61129261295e565b80601060016101000a81548160ff02191690831515021790555050565b6112b761295e565b5f3373ffffffffffffffffffffffffffffffffffffffff16476040516112dc9061504e565b5f6040518083038185875af1925050503d805f8114611316576040519150601f19603f3d011682016040523d82523d5f602084013e61131b565b606091505b505090508061135f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611356906150ac565b60405180910390fd5b50565b5f806113d78585808060200260200160405190810160405280939291908181526020018383602002808284375f81840152601f19601f82011690508083019250505050505050600f54856040516020016113bc919061510f565b604051602081830303815290604052805190602001206131df565b9050809150509392505050565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461143e5761142133612bc6565b61143d5761142d612c11565b1561143c5761143b33612c26565b5b5b5b6114498484846131f5565b50505050565b61145a816001613214565b50565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b6114ad61295e565b6114b5612da4565b8073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb338373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161150b919061432e565b602060405180830381865afa158015611526573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061154a919061513d565b6040518363ffffffff1660e01b815260040161156792919061456d565b6020604051808303815f875af1158015611583573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906115a7919061517c565b506115b0612eba565b50565b6115bb61295e565b8060105f6101000a81548160ff02191690831515021790555050565b6115df612da4565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff161461164d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611644906151f1565b60405180910390fd5b601060019054906101000a900460ff1661169c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161169390615259565b60405180910390fd5b60016116a781612df3565b6116e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116dd90614ec4565b60405180910390fd5b5f806116f96116f433613450565b61349a565b915091505f8163ffffffff1614611745576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161173c906152e7565b60405180910390fd5b60115460013481836117579190614f83565b14611797576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161178e9061534f565b60405180910390fd5b8686600f5461180d8383808060200260200160405190810160405280939291908181526020018383602002808284375f81840152601f19601f8201169050808301925050505050505082336040516020016117f2919061510f565b604051602081830303815290604052805190602001206131df565b61184c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611843906153dd565b60405180910390fd5b5f8061185f61185a33613450565b61349a565b91509150808061186e906153fb565b9150506118843361187f84846134b5565b6134db565b61188f336001612e9d565b505050505050505050506118a1612eba565b5050565b6118ad61295e565b8181601591826118be9291906155cd565b505050565b601060029054906101000a900460ff1681565b60605f8383905090505f8167ffffffffffffffff8111156118fa576118f9614b7a565b5b60405190808252806020026020018201604052801561193357816020015b61192061402f565b8152602001906001900390816119185790505b5090505f5b82811461198a5761196186868381811061195557611954614ee2565b5b9050602002013561251a565b82828151811061197457611973614ee2565b5b6020026020010181905250806001019050611938565b50809250505092915050565b5f6119a08261358b565b9050919050565b600e5481565b5f8073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611a13576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff60055f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054169050919050565b611a6a61295e565b611a735f61364e565b565b5f805f611a89611a8485613450565b61349a565b915091508092505050919050565b60105f9054906101000a900460ff1681565b60605f805f611ab7856119ad565b90505f8167ffffffffffffffff811115611ad457611ad3614b7a565b5b604051908082528060200260200182016040528015611b025781602001602082028036833780820191505090505b509050611b0d61402f565b5f611b16612ec4565b90505b838614611bd757611b2981613711565b91508160400151611bcc575f73ffffffffffffffffffffffffffffffffffffffff16825f015173ffffffffffffffffffffffffffffffffffffffff1614611b7157815f015194505b8773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603611bcb5780838780600101985081518110611bbe57611bbd614ee2565b5b6020026020010181815250505b5b806001019050611b19565b508195505050505050919050565b611bed612da4565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614611c5b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c52906151f1565b60405180910390fd5b60105f9054906101000a900460ff16611ca9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ca0906156e4565b60405180910390fd5b8181600e54611d1f8383808060200260200160405190810160405280939291908181526020018383602002808284375f81840152601f19601f820116905080830192505050505050508233604051602001611d04919061510f565b604051602081830303815290604052805190602001206131df565b611d5e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d55906153dd565b60405180910390fd5b5f80611d71611d6c33613450565b61349a565b915091505f8263ffffffff1614611dbd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611db490615772565b60405180910390fd5b60017f000000000000000000000000000000000000000000000000000000000000000081611de9611002565b611df39190615790565b11158015611e10575060135481600d54611e0d9190615790565b11155b611e4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e4690614ec4565b60405180910390fd5b5f80611e62611e5d33613450565b61349a565b915091508180611e71906153fb565b925050600d5f815480929190611e8690614f3c565b9190505550611e9e33611e9984846134b5565b6134db565b611ea9336001612e9d565b5050505050505050611eb9612eba565b5050565b5f60095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060038054611ef490614e4a565b80601f0160208091040260200160405190810160405280929190818152602001828054611f2090614e4a565b8015611f6b5780601f10611f4257610100808354040283529160200191611f6b565b820191905f5260205f20905b815481529060010190602001808311611f4e57829003601f168201915b5050505050905090565b6060818310611fb0576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f80611fba61373a565b9050611fc4612ec4565b851015611fd657611fd3612ec4565b94505b80841115611fe2578093505b5f611fec876119ad565b90508486101561200e575f868603905081811015612008578091505b50612012565b5f90505b5f8167ffffffffffffffff81111561202d5761202c614b7a565b5b60405190808252806020026020018201604052801561205b5781602001602082028036833780820191505090505b5090505f8203612071578094505050505061216d565b5f61207b8861251a565b90505f816040015161208e57815f015190505b5f8990505b8881141580156120a35750848714155b1561215f576120b181613711565b92508260400151612154575f73ffffffffffffffffffffffffffffffffffffffff16835f015173ffffffffffffffffffffffffffffffffffffffff16146120f957825f015191505b8a73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612153578084888060010199508151811061214657612145614ee2565b5b6020026020010181815250505b5b806001019050612093565b508583528296505050505050505b9392505050565b61217c612da4565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff16146121ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121e1906151f1565b60405180910390fd5b601060029054906101000a900460ff16612239576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122309061580d565b60405180910390fd5b807f00000000000000000000000000000000000000000000000000000000000000008161226533613742565b61226f9190615790565b11156122b0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122a79061589b565b60405180910390fd5b601254823481836122c19190614f83565b14612301576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122f89061534f565b60405180910390fd5b8361230b81612df3565b61234a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161234190614ec4565b60405180910390fd5b845f810361238d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161238490615903565b60405180910390fd5b6123973387612e9d565b50505050506123a4612eba565b50565b5f805f6123bb6123b685613450565b61349a565b915091508192505050919050565b816123d381612bc6565b6123ef576123df612c11565b156123ee576123ed81612c26565b5b5b6123f98383613796565b505050565b5f601254905090565b5f8061247c8585808060200260200160405190810160405280939291908181526020018383602002808284375f81840152601f19601f82011690508083019250505050505050600e5485604051602001612461919061510f565b604051602081830303815290604052805190602001206131df565b9050809150509392505050565b61249161295e565b80600c5f6101000a81548160ff02191690831515021790555050565b833373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614612507576124ea33612bc6565b612506576124f6612c11565b156125055761250433612c26565b5b5b5b6125138585858561389c565b5050505050565b61252261402f565b61252a61402f565b612532612ec4565b831080612546575061254261373a565b8310155b15612554578091505061257f565b61255d83613711565b9050806040015115612572578091505061257f565b61257b8361390e565b9150505b919050565b606061258f82612b6c565b6125c5576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f6125ce61392e565b90505f8151036125ec5760405180602001604052805f815250612617565b806125f6846139be565b6040516020016126079291906159a5565b6040516020818303038152906040525b915050919050565b61262761295e565b8060118190555050565b5f61263b82613742565b9050919050565b61264a61295e565b80600e8190555050565b5f601154905090565b5f60075f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16905092915050565b6126f361295e565b80601060026101000a81548160ff02191690831515021790555050565b61271861295e565b807f000000000000000000000000000000000000000000000000000000000000000081612743611002565b61274d9190615790565b111561278e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161278590614ec4565b60405180910390fd5b6127983383612e9d565b5050565b6127a461295e565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612812576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161280990615a43565b60405180910390fd5b61281b8161364e565b50565b61282661295e565b8060128190555050565b61283861295e565b80600f8190555050565b600c5f9054906101000a900460ff1681565b5f6301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806128ae57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806128de5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b5f7f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612957575061295682613a0d565b5b9050919050565b612966613a76565b73ffffffffffffffffffffffffffffffffffffffff16612984611ebd565b73ffffffffffffffffffffffffffffffffffffffff16146129da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129d190615aab565b60405180910390fd5b565b6129e46131d6565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115612a42576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a3990615b39565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612ab0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612aa790615ba1565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600a5f820151815f015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506020820151815f0160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b5f81612b76612ec4565b11158015612b8457505f5482105b8015612bbf57505f7c010000000000000000000000000000000000000000000000000000000060045f8581526020019081526020015f205416145b9050919050565b5f731e0049783f008a0085193e00003d00cd54003c7173ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16149050919050565b5f600c5f9054906101000a900460ff16905090565b69c61711340011223344555f5230601a5280603a525f80604460166daaeb6d7670e522a718067333cd4e5afa612c5e573d5f803e3d5ffd5b5f603a5250565b5f612c6f82611996565b90508073ffffffffffffffffffffffffffffffffffffffff16612c90613a7d565b73ffffffffffffffffffffffffffffffffffffffff1614612cf357612cbc81612cb7613a7d565b61265d565b612cf2576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b8260065f8481526020019081526020015f205f015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600260085403612de9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612de090615c09565b60405180910390fd5b6002600881905550565b5f601060039054906101000a900460ff16612e45577f000000000000000000000000000000000000000000000000000000000000000082612e32611002565b612e3c9190615790565b11159050612e98565b600d54601354612e559190615c27565b7f0000000000000000000000000000000000000000000000000000000000000000612e809190615c27565b82612e89611002565b612e939190615790565b111590505b919050565b612eb6828260405180602001604052805f815250613a84565b5050565b6001600881905550565b5f90565b5f612ed28261358b565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614612f39576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f80612f4484613b1b565b91509150612f5a8187612f55613a7d565b613b3e565b612fa657612f6f86612f6a613a7d565b61265d565b612fa5576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b5f73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff160361300b576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6130188686866001613b81565b8015613022575f82555b60055f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8154600190039190508190555060055f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8154600101919050819055506130ea856130c6888887613b87565b7c020000000000000000000000000000000000000000000000000000000017613bae565b60045f8681526020019081526020015f20819055505f7c0200000000000000000000000000000000000000000000000000000000841603613166575f6001850190505f60045f8381526020019081526020015f205403613164575f548114613163578360045f8381526020019081526020015f20819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46131ce8686866001613bd8565b505050505050565b5f612710905090565b5f826131eb8584613bde565b1490509392505050565b61320f83838360405180602001604052805f8152506124ad565b505050565b5f61321e8361358b565b90505f8190505f8061322f86613b1b565b9150915084156132985761324b8184613246613a7d565b613b3e565b613297576132608361325b613a7d565b61265d565b613296576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b5b6132a5835f886001613b81565b80156132af575f82555b600160806001901b0360055f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f828254019250508190555061335383613310855f88613b87565b7c02000000000000000000000000000000000000000000000000000000007c01000000000000000000000000000000000000000000000000000000001717613bae565b60045f8881526020019081526020015f20819055505f7c02000000000000000000000000000000000000000000000000000000008516036133cf575f6001870190505f60045f8381526020019081526020015f2054036133cd575f5481146133cc578460045f8381526020019081526020015f20819055505b5b505b855f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613437835f886001613bd8565b60015f8154809291906001019190505550505050505050565b5f60c060055f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054901c9050919050565b5f8060208367ffffffffffffffff16901c8391509150915091565b5f8163ffffffff1660208463ffffffff1667ffffffffffffffff16901b17905092915050565b5f60055f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205490505f82905060c081901b77ffffffffffffffffffffffffffffffffffffffffffffffff83161791508160055f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f208190555050505050565b5f8082905080613599612ec4565b11613617575f54811015613616575f60045f8381526020019081526020015f205490505f7c0100000000000000000000000000000000000000000000000000000000821603613614575b5f810361360a5760045f836001900393508381526020019081526020015f205490506135e3565b8092505050613649565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b5f60095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160095f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b61371961402f565b61373360045f8481526020019081526020015f2054613c32565b9050919050565b5f8054905090565b5f67ffffffffffffffff604060055f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054901c169050919050565b8060075f6137a2613a7d565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661384b613a7d565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516138909190614125565b60405180910390a35050565b6138a784848461103d565b5f8373ffffffffffffffffffffffffffffffffffffffff163b14613908576138d184848484613ce6565b613907576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b61391661402f565b6139276139228361358b565b613c32565b9050919050565b60606015805461393d90614e4a565b80601f016020809104026020016040519081016040528092919081815260200182805461396990614e4a565b80156139b45780601f1061398b576101008083540402835291602001916139b4565b820191905f5260205f20905b81548152906001019060200180831161399757829003601f168201915b5050505050905090565b606060a060405101806040526020810391505f825281835b6001156139f857600184039350600a81066030018453600a81049050806139d6575b50828103602084039350808452505050919050565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b5f33905090565b5f33905090565b613a8e8383613e31565b5f8373ffffffffffffffffffffffffffffffffffffffff163b14613b16575f805490505f83820390505b613aca5f868380600101945086613ce6565b613b00576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818110613ab857815f5414613b13575f80fd5b50505b505050565b5f805f60065f8581526020019081526020015f2090508092508254915050915091565b5f73ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b5f8060e883901c905060e8613b9d868684613fda565b62ffffff16901b9150509392505050565b5f73ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b5f808290505f5b8451811015613c2757613c1282868381518110613c0557613c04614ee2565b5b6020026020010151613fe2565b91508080613c1f90614f3c565b915050613be5565b508091505092915050565b613c3a61402f565b81815f019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff16815250505f7c01000000000000000000000000000000000000000000000000000000008316141581604001901515908115158152505060e882901c816060019062ffffff16908162ffffff1681525050919050565b5f8373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613d0b613a7d565b8786866040518563ffffffff1660e01b8152600401613d2d9493929190615cac565b6020604051808303815f875af1925050508015613d6857506040513d601f19601f82011682018060405250810190613d659190615d0a565b60015b613dde573d805f8114613d96576040519150601f19603f3d011682016040523d82523d5f602084013e613d9b565b606091505b505f815103613dd6576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b5f805490505f8203613e6f576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b613e7b5f848385613b81565b600160406001901b17820260055f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282540192505081905550613eed83613ede5f865f613b87565b613ee78561400c565b17613bae565b60045f8381526020019081526020015f20819055505f80838301905073ffffffffffffffffffffffffffffffffffffffff8516915082825f7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a4600183015b818114613f875780835f7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a4600181019050613f4e565b505f8203613fc1576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805f819055505050613fd55f848385613bd8565b505050565b5f9392505050565b5f818310613ff957613ff4828461401b565b614004565b614003838361401b565b5b905092915050565b5f6001821460e11b9050919050565b5f825f528160205260405f20905092915050565b60405180608001604052805f73ffffffffffffffffffffffffffffffffffffffff1681526020015f67ffffffffffffffff1681526020015f151581526020015f62ffffff1681525090565b5f604051905090565b5f80fd5b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6140bf8161408b565b81146140c9575f80fd5b50565b5f813590506140da816140b6565b92915050565b5f602082840312156140f5576140f4614083565b5b5f614102848285016140cc565b91505092915050565b5f8115159050919050565b61411f8161410b565b82525050565b5f6020820190506141385f830184614116565b92915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6141678261413e565b9050919050565b6141778161415d565b8114614181575f80fd5b50565b5f813590506141928161416e565b92915050565b5f6bffffffffffffffffffffffff82169050919050565b6141b881614198565b81146141c2575f80fd5b50565b5f813590506141d3816141af565b92915050565b5f80604083850312156141ef576141ee614083565b5b5f6141fc85828601614184565b925050602061420d858286016141c5565b9150509250929050565b5f81519050919050565b5f82825260208201905092915050565b5f5b8381101561424e578082015181840152602081019050614233565b5f8484015250505050565b5f601f19601f8301169050919050565b5f61427382614217565b61427d8185614221565b935061428d818560208601614231565b61429681614259565b840191505092915050565b5f6020820190508181035f8301526142b98184614269565b905092915050565b5f819050919050565b6142d3816142c1565b81146142dd575f80fd5b50565b5f813590506142ee816142ca565b92915050565b5f6020828403121561430957614308614083565b5b5f614316848285016142e0565b91505092915050565b6143288161415d565b82525050565b5f6020820190506143415f83018461431f565b92915050565b5f806040838503121561435d5761435c614083565b5b5f61436a85828601614184565b925050602061437b858286016142e0565b9150509250929050565b61438e816142c1565b82525050565b5f6020820190506143a75f830184614385565b92915050565b5f80fd5b5f80fd5b5f80fd5b5f8083601f8401126143ce576143cd6143ad565b5b8235905067ffffffffffffffff8111156143eb576143ea6143b1565b5b602083019150836020820283011115614407576144066143b5565b5b9250929050565b5f806020838503121561442457614423614083565b5b5f83013567ffffffffffffffff81111561444157614440614087565b5b61444d858286016143b9565b92509250509250929050565b6144628161410b565b811461446c575f80fd5b50565b5f8135905061447d81614459565b92915050565b5f6020828403121561449857614497614083565b5b5f6144a58482850161446f565b91505092915050565b5f805f606084860312156144c5576144c4614083565b5b5f6144d286828701614184565b93505060206144e386828701614184565b92505060406144f4868287016142e0565b9150509250925092565b5f819050919050565b614510816144fe565b82525050565b5f6020820190506145295f830184614507565b92915050565b5f806040838503121561454557614544614083565b5b5f614552858286016142e0565b9250506020614563858286016142e0565b9150509250929050565b5f6040820190506145805f83018561431f565b61458d6020830184614385565b9392505050565b5f8083601f8401126145a9576145a86143ad565b5b8235905067ffffffffffffffff8111156145c6576145c56143b1565b5b6020830191508360208202830111156145e2576145e16143b5565b5b9250929050565b5f805f60408486031215614600576145ff614083565b5b5f84013567ffffffffffffffff81111561461d5761461c614087565b5b61462986828701614594565b9350935050602061463c86828701614184565b9150509250925092565b5f6146508261415d565b9050919050565b61466081614646565b811461466a575f80fd5b50565b5f8135905061467b81614657565b92915050565b5f6020828403121561469657614695614083565b5b5f6146a38482850161466d565b91505092915050565b5f80602083850312156146c2576146c1614083565b5b5f83013567ffffffffffffffff8111156146df576146de614087565b5b6146eb85828601614594565b92509250509250929050565b5f8083601f84011261470c5761470b6143ad565b5b8235905067ffffffffffffffff811115614729576147286143b1565b5b602083019150836001820283011115614745576147446143b5565b5b9250929050565b5f806020838503121561476257614761614083565b5b5f83013567ffffffffffffffff81111561477f5761477e614087565b5b61478b858286016146f7565b92509250509250929050565b5f8083601f8401126147ac576147ab6143ad565b5b8235905067ffffffffffffffff8111156147c9576147c86143b1565b5b6020830191508360208202830111156147e5576147e46143b5565b5b9250929050565b5f806020838503121561480257614801614083565b5b5f83013567ffffffffffffffff81111561481f5761481e614087565b5b61482b85828601614797565b92509250509250929050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b6148698161415d565b82525050565b5f67ffffffffffffffff82169050919050565b61488b8161486f565b82525050565b61489a8161410b565b82525050565b5f62ffffff82169050919050565b6148b7816148a0565b82525050565b608082015f8201516148d15f850182614860565b5060208201516148e46020850182614882565b5060408201516148f76040850182614891565b50606082015161490a60608501826148ae565b50505050565b5f61491b83836148bd565b60808301905092915050565b5f602082019050919050565b5f61493d82614837565b6149478185614841565b935061495283614851565b805f5b838110156149825781516149698882614910565b975061497483614927565b925050600181019050614955565b5085935050505092915050565b5f6020820190508181035f8301526149a78184614933565b905092915050565b5f602082840312156149c4576149c3614083565b5b5f6149d184828501614184565b91505092915050565b5f63ffffffff82169050919050565b6149f2816149da565b82525050565b5f602082019050614a0b5f8301846149e9565b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b614a43816142c1565b82525050565b5f614a548383614a3a565b60208301905092915050565b5f602082019050919050565b5f614a7682614a11565b614a808185614a1b565b9350614a8b83614a2b565b805f5b83811015614abb578151614aa28882614a49565b9750614aad83614a60565b925050600181019050614a8e565b5085935050505092915050565b5f6020820190508181035f830152614ae08184614a6c565b905092915050565b5f805f60608486031215614aff57614afe614083565b5b5f614b0c86828701614184565b9350506020614b1d868287016142e0565b9250506040614b2e868287016142e0565b9150509250925092565b5f8060408385031215614b4e57614b4d614083565b5b5f614b5b85828601614184565b9250506020614b6c8582860161446f565b9150509250929050565b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b614bb082614259565b810181811067ffffffffffffffff82111715614bcf57614bce614b7a565b5b80604052505050565b5f614be161407a565b9050614bed8282614ba7565b919050565b5f67ffffffffffffffff821115614c0c57614c0b614b7a565b5b614c1582614259565b9050602081019050919050565b828183375f83830152505050565b5f614c42614c3d84614bf2565b614bd8565b905082815260208101848484011115614c5e57614c5d614b76565b5b614c69848285614c22565b509392505050565b5f82601f830112614c8557614c846143ad565b5b8135614c95848260208601614c30565b91505092915050565b5f805f8060808587031215614cb657614cb5614083565b5b5f614cc387828801614184565b9450506020614cd487828801614184565b9350506040614ce5878288016142e0565b925050606085013567ffffffffffffffff811115614d0657614d05614087565b5b614d1287828801614c71565b91505092959194509250565b608082015f820151614d325f850182614860565b506020820151614d456020850182614882565b506040820151614d586040850182614891565b506060820151614d6b60608501826148ae565b50505050565b5f608082019050614d845f830184614d1e565b92915050565b614d93816144fe565b8114614d9d575f80fd5b50565b5f81359050614dae81614d8a565b92915050565b5f60208284031215614dc957614dc8614083565b5b5f614dd684828501614da0565b91505092915050565b5f8060408385031215614df557614df4614083565b5b5f614e0285828601614184565b9250506020614e1385828601614184565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f6002820490506001821680614e6157607f821691505b602082108103614e7457614e73614e1d565b5b50919050565b7f546865726520617265206e6f20746f6b656e73206c6566742e000000000000005f82015250565b5f614eae601983614221565b9150614eb982614e7a565b602082019050919050565b5f6020820190508181035f830152614edb81614ea2565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f614f46826142c1565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614f7857614f77614f0f565b5b600182019050919050565b5f614f8d826142c1565b9150614f98836142c1565b9250828202614fa6816142c1565b91508282048414831517614fbd57614fbc614f0f565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f614ffb826142c1565b9150615006836142c1565b92508261501657615015614fc4565b5b828204905092915050565b5f81905092915050565b50565b5f6150395f83615021565b91506150448261502b565b5f82019050919050565b5f6150588261502e565b9150819050919050565b7f5472616e73666572206661696c65642e000000000000000000000000000000005f82015250565b5f615096601083614221565b91506150a182615062565b602082019050919050565b5f6020820190508181035f8301526150c38161508a565b9050919050565b5f8160601b9050919050565b5f6150e0826150ca565b9050919050565b5f6150f1826150d6565b9050919050565b6151096151048261415d565b6150e7565b82525050565b5f61511a82846150f8565b60148201915081905092915050565b5f81519050615137816142ca565b92915050565b5f6020828403121561515257615151614083565b5b5f61515f84828501615129565b91505092915050565b5f8151905061517681614459565b92915050565b5f6020828403121561519157615190614083565b5b5f61519e84828501615168565b91505092915050565b7f5468652063616c6c657220697320616e6f7468657220636f6e74726163742e005f82015250565b5f6151db601f83614221565b91506151e6826151a7565b602082019050919050565b5f6020820190508181035f830152615208816151cf565b9050919050565b7f416c6c6f776c697374206d696e74206973206e6f74206f70656e2e00000000005f82015250565b5f615243601b83614221565b915061524e8261520f565b602082019050919050565b5f6020820190508181035f83015261527081615237565b9050919050565b7f43616e6e6f7420636c61696d206d6f7265207468616e203120616c6c6f776c695f8201527f7374206d696e742e000000000000000000000000000000000000000000000000602082015250565b5f6152d1602883614221565b91506152dc82615277565b604082019050919050565b5f6020820190508181035f8301526152fe816152c5565b9050919050565b7f496e636f727265637420616d6f756e74206f66204554482073656e742e0000005f82015250565b5f615339601d83614221565b915061534482615305565b602082019050919050565b5f6020820190508181035f8301526153668161532d565b9050919050565b7f4164647265737320646f6573206e6f7420657869737420696e20616c6c6f776c5f8201527f6973742e00000000000000000000000000000000000000000000000000000000602082015250565b5f6153c7602483614221565b91506153d28261536d565b604082019050919050565b5f6020820190508181035f8301526153f4816153bb565b9050919050565b5f615405826149da565b915063ffffffff820361541b5761541a614f0f565b5b600182019050919050565b5f82905092915050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f6008830261548c7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82615451565b6154968683615451565b95508019841693508086168417925050509392505050565b5f819050919050565b5f6154d16154cc6154c7846142c1565b6154ae565b6142c1565b9050919050565b5f819050919050565b6154ea836154b7565b6154fe6154f6826154d8565b84845461545d565b825550505050565b5f90565b615512615506565b61551d8184846154e1565b505050565b5b81811015615540576155355f8261550a565b600181019050615523565b5050565b601f8211156155855761555681615430565b61555f84615442565b8101602085101561556e578190505b61558261557a85615442565b830182615522565b50505b505050565b5f82821c905092915050565b5f6155a55f198460080261558a565b1980831691505092915050565b5f6155bd8383615596565b9150826002028217905092915050565b6155d78383615426565b67ffffffffffffffff8111156155f0576155ef614b7a565b5b6155fa8254614e4a565b615605828285615544565b5f601f831160018114615632575f8415615620578287013590505b61562a85826155b2565b865550615691565b601f19841661564086615430565b5f5b8281101561566757848901358255600182019150602085019450602081019050615642565b868310156156845784890135615680601f891682615596565b8355505b6001600288020188555050505b50505050505050565b7f46726565206d696e74206973206e6f74206f70656e2e000000000000000000005f82015250565b5f6156ce601683614221565b91506156d98261569a565b602082019050919050565b5f6020820190508181035f8301526156fb816156c2565b9050919050565b7f546869732077616c6c65742063616e6e6f7420636c61696d206d6f72652074685f8201527f616e20312066726565206d696e742e0000000000000000000000000000000000602082015250565b5f61575c602f83614221565b915061576782615702565b604082019050919050565b5f6020820190508181035f83015261578981615750565b9050919050565b5f61579a826142c1565b91506157a5836142c1565b92508282019050808211156157bd576157bc614f0f565b5b92915050565b7f4d696e74206973206e6f74206f70656e2e0000000000000000000000000000005f82015250565b5f6157f7601183614221565b9150615802826157c3565b602082019050919050565b5f6020820190508181035f830152615824816157eb565b9050919050565b7f546865206d6178696d756d206e756d626572206f66206d696e74656420746f6b5f8201527f656e73207065722077616c6c657420697320332e000000000000000000000000602082015250565b5f615885603483614221565b91506158908261582b565b604082019050919050565b5f6020820190508181035f8301526158b281615879565b9050919050565b7f596f752063616e6e6f6e74206d696e74203020746f6b656e732e0000000000005f82015250565b5f6158ed601a83614221565b91506158f8826158b9565b602082019050919050565b5f6020820190508181035f83015261591a816158e1565b9050919050565b5f81905092915050565b5f61593582614217565b61593f8185615921565b935061594f818560208601614231565b80840191505092915050565b7f2e6a736f6e0000000000000000000000000000000000000000000000000000005f82015250565b5f61598f600583615921565b915061599a8261595b565b600582019050919050565b5f6159b0828561592b565b91506159bc828461592b565b91506159c782615983565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f20615f8201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b5f615a2d602683614221565b9150615a38826159d3565b604082019050919050565b5f6020820190508181035f830152615a5a81615a21565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f615a95602083614221565b9150615aa082615a61565b602082019050919050565b5f6020820190508181035f830152615ac281615a89565b9050919050565b7f455243323938313a20726f79616c7479206665652077696c6c206578636565645f8201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b5f615b23602a83614221565b9150615b2e82615ac9565b604082019050919050565b5f6020820190508181035f830152615b5081615b17565b9050919050565b7f455243323938313a20696e76616c6964207265636569766572000000000000005f82015250565b5f615b8b601983614221565b9150615b9682615b57565b602082019050919050565b5f6020820190508181035f830152615bb881615b7f565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c005f82015250565b5f615bf3601f83614221565b9150615bfe82615bbf565b602082019050919050565b5f6020820190508181035f830152615c2081615be7565b9050919050565b5f615c31826142c1565b9150615c3c836142c1565b9250828203905081811115615c5457615c53614f0f565b5b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f615c7e82615c5a565b615c888185615c64565b9350615c98818560208601614231565b615ca181614259565b840191505092915050565b5f608082019050615cbf5f83018761431f565b615ccc602083018661431f565b615cd96040830185614385565b8181036060830152615ceb8184615c74565b905095945050505050565b5f81519050615d04816140b6565b92915050565b5f60208284031215615d1f57615d1e614083565b5b5f615d2c84828501615cf6565b9150509291505056fea264697066735822122009786820a633a65e4ccb30e4af84ec03005c357cd55acd18ba771dd265f1a86c64736f6c63430008140033000000000000000000000000000000000000000000000000000000000000012c0000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000001b
Deployed Bytecode
0x608060405260043610610380575f3560e01c806370a08231116101d0578063b7c0b8e811610101578063e066fb7d1161009f578063f2fde38b1161006e578063f2fde38b14610ce7578063f4a0a52814610d0f578063f95df41414610d37578063fb796e6c14610d5f57610380565b8063e066fb7d14610c31578063e985e9c514610c5b578063ee1cc94414610c97578063f19e75d414610cbf57610380565b8063c87b56dd116100db578063c87b56dd14610b69578063d684340914610ba5578063dc33e68114610bcd578063dde44b8914610c0957610380565b8063b7c0b8e814610ae9578063b88d4fde14610b11578063c23dc68f14610b2d57610380565b806395d89b411161016e578063a16c810311610148578063a16c810314610a1f578063a22cb46514610a5b578063a7f93ebd14610a83578063b360fb9614610aad57610380565b806395d89b411461099d57806399a2557a146109c7578063a0712d6814610a0357610380565b80637a5b85c1116101aa5780637a5b85c1146108e55780638462151c1461090f57806388d15d501461094b5780638da5cb5b1461097357610380565b806370a0823114610857578063715018a614610893578063731b9de3146108a957610380565b806338da2f69116102b557806349df728c116102535780635b92ac0d116102225780635b92ac0d1461078b5780635bbb2177146107b55780636352211e146107f157806368963df01461082d57610380565b806349df728c146106f75780634f9b563c1461071f578063537924ef1461074757806355f804b31461076357610380565b806342842e0e1161028f57806342842e0e1461065f57806342966c681461067b578063453c2310146106a357806345c0f533146106cd57610380565b806338da2f69146105e55780633ccfd60b1461060d5780633e484efb1461062357610380565b8063180b006d11610322578063229fa55d116102fc578063229fa55d1461053857806323b872dd14610562578063293108e01461057e5780632a55205a146105a857610380565b8063180b006d146104bc57806318160ddd146104e457806321d109141461050e57610380565b8063081812fc1161035e578063081812fc14610412578063095ea7b31461044e57806313b1f5231461046a578063163e1e611461049457610380565b806301ffc9a71461038457806304634d8d146103c057806306fdde03146103e8575b5f80fd5b34801561038f575f80fd5b506103aa60048036038101906103a591906140e0565b610d89565b6040516103b79190614125565b60405180910390f35b3480156103cb575f80fd5b506103e660048036038101906103e191906141d9565b610daa565b005b3480156103f3575f80fd5b506103fc610dc0565b60405161040991906142a1565b60405180910390f35b34801561041d575f80fd5b50610438600480360381019061043391906142f4565b610e50565b604051610445919061432e565b60405180910390f35b61046860048036038101906104639190614347565b610eca565b005b348015610475575f80fd5b5061047e610eff565b60405161048b9190614394565b60405180910390f35b34801561049f575f80fd5b506104ba60048036038101906104b5919061440e565b610f05565b005b3480156104c7575f80fd5b506104e260048036038101906104dd9190614483565b610fdd565b005b3480156104ef575f80fd5b506104f8611002565b6040516105059190614394565b60405180910390f35b348015610519575f80fd5b50610522611017565b60405161052f9190614125565b60405180910390f35b348015610543575f80fd5b5061054c61102a565b6040516105599190614125565b60405180910390f35b61057c600480360381019061057791906144ae565b61103d565b005b348015610589575f80fd5b506105926110a8565b60405161059f9190614516565b60405180910390f35b3480156105b3575f80fd5b506105ce60048036038101906105c9919061452f565b6110ae565b6040516105dc92919061456d565b60405180910390f35b3480156105f0575f80fd5b5061060b60048036038101906106069190614483565b61128a565b005b348015610618575f80fd5b506106216112af565b005b34801561062e575f80fd5b50610649600480360381019061064491906145e9565b611362565b6040516106569190614125565b60405180910390f35b610679600480360381019061067491906144ae565b6113e4565b005b348015610686575f80fd5b506106a1600480360381019061069c91906142f4565b61144f565b005b3480156106ae575f80fd5b506106b761145d565b6040516106c49190614394565b60405180910390f35b3480156106d8575f80fd5b506106e1611481565b6040516106ee9190614394565b60405180910390f35b348015610702575f80fd5b5061071d60048036038101906107189190614681565b6114a5565b005b34801561072a575f80fd5b5061074560048036038101906107409190614483565b6115b3565b005b610761600480360381019061075c91906146ac565b6115d7565b005b34801561076e575f80fd5b506107896004803603810190610784919061474c565b6118a5565b005b348015610796575f80fd5b5061079f6118c3565b6040516107ac9190614125565b60405180910390f35b3480156107c0575f80fd5b506107db60048036038101906107d691906147ec565b6118d6565b6040516107e8919061498f565b60405180910390f35b3480156107fc575f80fd5b50610817600480360381019061081291906142f4565b611996565b604051610824919061432e565b60405180910390f35b348015610838575f80fd5b506108416119a7565b60405161084e9190614516565b60405180910390f35b348015610862575f80fd5b5061087d600480360381019061087891906149af565b6119ad565b60405161088a9190614394565b60405180910390f35b34801561089e575f80fd5b506108a7611a62565b005b3480156108b4575f80fd5b506108cf60048036038101906108ca91906149af565b611a75565b6040516108dc91906149f8565b60405180910390f35b3480156108f0575f80fd5b506108f9611a97565b6040516109069190614125565b60405180910390f35b34801561091a575f80fd5b50610935600480360381019061093091906149af565b611aa9565b6040516109429190614ac8565b60405180910390f35b348015610956575f80fd5b50610971600480360381019061096c91906146ac565b611be5565b005b34801561097e575f80fd5b50610987611ebd565b604051610994919061432e565b60405180910390f35b3480156109a8575f80fd5b506109b1611ee5565b6040516109be91906142a1565b60405180910390f35b3480156109d2575f80fd5b506109ed60048036038101906109e89190614ae8565b611f75565b6040516109fa9190614ac8565b60405180910390f35b610a1d6004803603810190610a1891906142f4565b612174565b005b348015610a2a575f80fd5b50610a456004803603810190610a4091906149af565b6123a7565b604051610a5291906149f8565b60405180910390f35b348015610a66575f80fd5b50610a816004803603810190610a7c9190614b38565b6123c9565b005b348015610a8e575f80fd5b50610a976123fe565b604051610aa49190614394565b60405180910390f35b348015610ab8575f80fd5b50610ad36004803603810190610ace91906145e9565b612407565b604051610ae09190614125565b60405180910390f35b348015610af4575f80fd5b50610b0f6004803603810190610b0a9190614483565b612489565b005b610b2b6004803603810190610b269190614c9e565b6124ad565b005b348015610b38575f80fd5b50610b536004803603810190610b4e91906142f4565b61251a565b604051610b609190614d71565b60405180910390f35b348015610b74575f80fd5b50610b8f6004803603810190610b8a91906142f4565b612584565b604051610b9c91906142a1565b60405180910390f35b348015610bb0575f80fd5b50610bcb6004803603810190610bc691906142f4565b61261f565b005b348015610bd8575f80fd5b50610bf36004803603810190610bee91906149af565b612631565b604051610c009190614394565b60405180910390f35b348015610c14575f80fd5b50610c2f6004803603810190610c2a9190614db4565b612642565b005b348015610c3c575f80fd5b50610c45612654565b604051610c529190614394565b60405180910390f35b348015610c66575f80fd5b50610c816004803603810190610c7c9190614ddf565b61265d565b604051610c8e9190614125565b60405180910390f35b348015610ca2575f80fd5b50610cbd6004803603810190610cb89190614483565b6126eb565b005b348015610cca575f80fd5b50610ce56004803603810190610ce091906142f4565b612710565b005b348015610cf2575f80fd5b50610d0d6004803603810190610d0891906149af565b61279c565b005b348015610d1a575f80fd5b50610d356004803603810190610d3091906142f4565b61281e565b005b348015610d42575f80fd5b50610d5d6004803603810190610d589190614db4565b612830565b005b348015610d6a575f80fd5b50610d73612842565b604051610d809190614125565b60405180910390f35b5f610d9382612854565b80610da35750610da2826128e5565b5b9050919050565b610db261295e565b610dbc82826129dc565b5050565b606060028054610dcf90614e4a565b80601f0160208091040260200160405190810160405280929190818152602001828054610dfb90614e4a565b8015610e465780601f10610e1d57610100808354040283529160200191610e46565b820191905f5260205f20905b815481529060010190602001808311610e2957829003601f168201915b5050505050905090565b5f610e5a82612b6c565b610e90576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60065f8381526020019081526020015f205f015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b81610ed481612bc6565b610ef057610ee0612c11565b15610eef57610eee81612c26565b5b5b610efa8383612c65565b505050565b600d5481565b610f0d612da4565b610f1561295e565b81819050610f2281612df3565b610f61576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f5890614ec4565b60405180910390fd5b5f8383905090505f5b81811015610fce57610fa4858583818110610f8857610f87614ee2565b5b9050602002016020810190610f9d91906149af565b6001612e9d565b600d5f815480929190610fb690614f3c565b91905055508080610fc690614f3c565b915050610f6a565b505050610fd9612eba565b5050565b610fe561295e565b80601060036101000a81548160ff02191690831515021790555050565b5f61100b612ec4565b6001545f540303905090565b601060039054906101000a900460ff1681565b601060019054906101000a900460ff1681565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146110975761107a33612bc6565b61109657611086612c11565b156110955761109433612c26565b5b5b5b6110a2848484612ec8565b50505050565b600f5481565b5f805f600b5f8681526020019081526020015f206040518060400160405290815f82015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020015f820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505f73ffffffffffffffffffffffffffffffffffffffff16815f015173ffffffffffffffffffffffffffffffffffffffff160361123757600a6040518060400160405290815f82015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020015f820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b5f6112406131d6565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff168661126c9190614f83565b6112769190614ff1565b9050815f0151819350935050509250929050565b61129261295e565b80601060016101000a81548160ff02191690831515021790555050565b6112b761295e565b5f3373ffffffffffffffffffffffffffffffffffffffff16476040516112dc9061504e565b5f6040518083038185875af1925050503d805f8114611316576040519150601f19603f3d011682016040523d82523d5f602084013e61131b565b606091505b505090508061135f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611356906150ac565b60405180910390fd5b50565b5f806113d78585808060200260200160405190810160405280939291908181526020018383602002808284375f81840152601f19601f82011690508083019250505050505050600f54856040516020016113bc919061510f565b604051602081830303815290604052805190602001206131df565b9050809150509392505050565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461143e5761142133612bc6565b61143d5761142d612c11565b1561143c5761143b33612c26565b5b5b5b6114498484846131f5565b50505050565b61145a816001613214565b50565b7f000000000000000000000000000000000000000000000000000000000000000381565b7f000000000000000000000000000000000000000000000000000000000000012c81565b6114ad61295e565b6114b5612da4565b8073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb338373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161150b919061432e565b602060405180830381865afa158015611526573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061154a919061513d565b6040518363ffffffff1660e01b815260040161156792919061456d565b6020604051808303815f875af1158015611583573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906115a7919061517c565b506115b0612eba565b50565b6115bb61295e565b8060105f6101000a81548160ff02191690831515021790555050565b6115df612da4565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff161461164d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611644906151f1565b60405180910390fd5b601060019054906101000a900460ff1661169c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161169390615259565b60405180910390fd5b60016116a781612df3565b6116e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116dd90614ec4565b60405180910390fd5b5f806116f96116f433613450565b61349a565b915091505f8163ffffffff1614611745576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161173c906152e7565b60405180910390fd5b60115460013481836117579190614f83565b14611797576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161178e9061534f565b60405180910390fd5b8686600f5461180d8383808060200260200160405190810160405280939291908181526020018383602002808284375f81840152601f19601f8201169050808301925050505050505082336040516020016117f2919061510f565b604051602081830303815290604052805190602001206131df565b61184c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611843906153dd565b60405180910390fd5b5f8061185f61185a33613450565b61349a565b91509150808061186e906153fb565b9150506118843361187f84846134b5565b6134db565b61188f336001612e9d565b505050505050505050506118a1612eba565b5050565b6118ad61295e565b8181601591826118be9291906155cd565b505050565b601060029054906101000a900460ff1681565b60605f8383905090505f8167ffffffffffffffff8111156118fa576118f9614b7a565b5b60405190808252806020026020018201604052801561193357816020015b61192061402f565b8152602001906001900390816119185790505b5090505f5b82811461198a5761196186868381811061195557611954614ee2565b5b9050602002013561251a565b82828151811061197457611973614ee2565b5b6020026020010181905250806001019050611938565b50809250505092915050565b5f6119a08261358b565b9050919050565b600e5481565b5f8073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611a13576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff60055f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054169050919050565b611a6a61295e565b611a735f61364e565b565b5f805f611a89611a8485613450565b61349a565b915091508092505050919050565b60105f9054906101000a900460ff1681565b60605f805f611ab7856119ad565b90505f8167ffffffffffffffff811115611ad457611ad3614b7a565b5b604051908082528060200260200182016040528015611b025781602001602082028036833780820191505090505b509050611b0d61402f565b5f611b16612ec4565b90505b838614611bd757611b2981613711565b91508160400151611bcc575f73ffffffffffffffffffffffffffffffffffffffff16825f015173ffffffffffffffffffffffffffffffffffffffff1614611b7157815f015194505b8773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603611bcb5780838780600101985081518110611bbe57611bbd614ee2565b5b6020026020010181815250505b5b806001019050611b19565b508195505050505050919050565b611bed612da4565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614611c5b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c52906151f1565b60405180910390fd5b60105f9054906101000a900460ff16611ca9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ca0906156e4565b60405180910390fd5b8181600e54611d1f8383808060200260200160405190810160405280939291908181526020018383602002808284375f81840152601f19601f820116905080830192505050505050508233604051602001611d04919061510f565b604051602081830303815290604052805190602001206131df565b611d5e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d55906153dd565b60405180910390fd5b5f80611d71611d6c33613450565b61349a565b915091505f8263ffffffff1614611dbd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611db490615772565b60405180910390fd5b60017f000000000000000000000000000000000000000000000000000000000000012c81611de9611002565b611df39190615790565b11158015611e10575060135481600d54611e0d9190615790565b11155b611e4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e4690614ec4565b60405180910390fd5b5f80611e62611e5d33613450565b61349a565b915091508180611e71906153fb565b925050600d5f815480929190611e8690614f3c565b9190505550611e9e33611e9984846134b5565b6134db565b611ea9336001612e9d565b5050505050505050611eb9612eba565b5050565b5f60095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060038054611ef490614e4a565b80601f0160208091040260200160405190810160405280929190818152602001828054611f2090614e4a565b8015611f6b5780601f10611f4257610100808354040283529160200191611f6b565b820191905f5260205f20905b815481529060010190602001808311611f4e57829003601f168201915b5050505050905090565b6060818310611fb0576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f80611fba61373a565b9050611fc4612ec4565b851015611fd657611fd3612ec4565b94505b80841115611fe2578093505b5f611fec876119ad565b90508486101561200e575f868603905081811015612008578091505b50612012565b5f90505b5f8167ffffffffffffffff81111561202d5761202c614b7a565b5b60405190808252806020026020018201604052801561205b5781602001602082028036833780820191505090505b5090505f8203612071578094505050505061216d565b5f61207b8861251a565b90505f816040015161208e57815f015190505b5f8990505b8881141580156120a35750848714155b1561215f576120b181613711565b92508260400151612154575f73ffffffffffffffffffffffffffffffffffffffff16835f015173ffffffffffffffffffffffffffffffffffffffff16146120f957825f015191505b8a73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612153578084888060010199508151811061214657612145614ee2565b5b6020026020010181815250505b5b806001019050612093565b508583528296505050505050505b9392505050565b61217c612da4565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff16146121ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121e1906151f1565b60405180910390fd5b601060029054906101000a900460ff16612239576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122309061580d565b60405180910390fd5b807f00000000000000000000000000000000000000000000000000000000000000038161226533613742565b61226f9190615790565b11156122b0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122a79061589b565b60405180910390fd5b601254823481836122c19190614f83565b14612301576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122f89061534f565b60405180910390fd5b8361230b81612df3565b61234a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161234190614ec4565b60405180910390fd5b845f810361238d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161238490615903565b60405180910390fd5b6123973387612e9d565b50505050506123a4612eba565b50565b5f805f6123bb6123b685613450565b61349a565b915091508192505050919050565b816123d381612bc6565b6123ef576123df612c11565b156123ee576123ed81612c26565b5b5b6123f98383613796565b505050565b5f601254905090565b5f8061247c8585808060200260200160405190810160405280939291908181526020018383602002808284375f81840152601f19601f82011690508083019250505050505050600e5485604051602001612461919061510f565b604051602081830303815290604052805190602001206131df565b9050809150509392505050565b61249161295e565b80600c5f6101000a81548160ff02191690831515021790555050565b833373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614612507576124ea33612bc6565b612506576124f6612c11565b156125055761250433612c26565b5b5b5b6125138585858561389c565b5050505050565b61252261402f565b61252a61402f565b612532612ec4565b831080612546575061254261373a565b8310155b15612554578091505061257f565b61255d83613711565b9050806040015115612572578091505061257f565b61257b8361390e565b9150505b919050565b606061258f82612b6c565b6125c5576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f6125ce61392e565b90505f8151036125ec5760405180602001604052805f815250612617565b806125f6846139be565b6040516020016126079291906159a5565b6040516020818303038152906040525b915050919050565b61262761295e565b8060118190555050565b5f61263b82613742565b9050919050565b61264a61295e565b80600e8190555050565b5f601154905090565b5f60075f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16905092915050565b6126f361295e565b80601060026101000a81548160ff02191690831515021790555050565b61271861295e565b807f000000000000000000000000000000000000000000000000000000000000012c81612743611002565b61274d9190615790565b111561278e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161278590614ec4565b60405180910390fd5b6127983383612e9d565b5050565b6127a461295e565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612812576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161280990615a43565b60405180910390fd5b61281b8161364e565b50565b61282661295e565b8060128190555050565b61283861295e565b80600f8190555050565b600c5f9054906101000a900460ff1681565b5f6301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806128ae57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806128de5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b5f7f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612957575061295682613a0d565b5b9050919050565b612966613a76565b73ffffffffffffffffffffffffffffffffffffffff16612984611ebd565b73ffffffffffffffffffffffffffffffffffffffff16146129da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129d190615aab565b60405180910390fd5b565b6129e46131d6565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115612a42576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a3990615b39565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612ab0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612aa790615ba1565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600a5f820151815f015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506020820151815f0160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b5f81612b76612ec4565b11158015612b8457505f5482105b8015612bbf57505f7c010000000000000000000000000000000000000000000000000000000060045f8581526020019081526020015f205416145b9050919050565b5f731e0049783f008a0085193e00003d00cd54003c7173ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16149050919050565b5f600c5f9054906101000a900460ff16905090565b69c61711340011223344555f5230601a5280603a525f80604460166daaeb6d7670e522a718067333cd4e5afa612c5e573d5f803e3d5ffd5b5f603a5250565b5f612c6f82611996565b90508073ffffffffffffffffffffffffffffffffffffffff16612c90613a7d565b73ffffffffffffffffffffffffffffffffffffffff1614612cf357612cbc81612cb7613a7d565b61265d565b612cf2576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b8260065f8481526020019081526020015f205f015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600260085403612de9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612de090615c09565b60405180910390fd5b6002600881905550565b5f601060039054906101000a900460ff16612e45577f000000000000000000000000000000000000000000000000000000000000012c82612e32611002565b612e3c9190615790565b11159050612e98565b600d54601354612e559190615c27565b7f000000000000000000000000000000000000000000000000000000000000012c612e809190615c27565b82612e89611002565b612e939190615790565b111590505b919050565b612eb6828260405180602001604052805f815250613a84565b5050565b6001600881905550565b5f90565b5f612ed28261358b565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614612f39576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f80612f4484613b1b565b91509150612f5a8187612f55613a7d565b613b3e565b612fa657612f6f86612f6a613a7d565b61265d565b612fa5576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b5f73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff160361300b576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6130188686866001613b81565b8015613022575f82555b60055f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8154600190039190508190555060055f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8154600101919050819055506130ea856130c6888887613b87565b7c020000000000000000000000000000000000000000000000000000000017613bae565b60045f8681526020019081526020015f20819055505f7c0200000000000000000000000000000000000000000000000000000000841603613166575f6001850190505f60045f8381526020019081526020015f205403613164575f548114613163578360045f8381526020019081526020015f20819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46131ce8686866001613bd8565b505050505050565b5f612710905090565b5f826131eb8584613bde565b1490509392505050565b61320f83838360405180602001604052805f8152506124ad565b505050565b5f61321e8361358b565b90505f8190505f8061322f86613b1b565b9150915084156132985761324b8184613246613a7d565b613b3e565b613297576132608361325b613a7d565b61265d565b613296576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b5b6132a5835f886001613b81565b80156132af575f82555b600160806001901b0360055f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f828254019250508190555061335383613310855f88613b87565b7c02000000000000000000000000000000000000000000000000000000007c01000000000000000000000000000000000000000000000000000000001717613bae565b60045f8881526020019081526020015f20819055505f7c02000000000000000000000000000000000000000000000000000000008516036133cf575f6001870190505f60045f8381526020019081526020015f2054036133cd575f5481146133cc578460045f8381526020019081526020015f20819055505b5b505b855f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613437835f886001613bd8565b60015f8154809291906001019190505550505050505050565b5f60c060055f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054901c9050919050565b5f8060208367ffffffffffffffff16901c8391509150915091565b5f8163ffffffff1660208463ffffffff1667ffffffffffffffff16901b17905092915050565b5f60055f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205490505f82905060c081901b77ffffffffffffffffffffffffffffffffffffffffffffffff83161791508160055f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f208190555050505050565b5f8082905080613599612ec4565b11613617575f54811015613616575f60045f8381526020019081526020015f205490505f7c0100000000000000000000000000000000000000000000000000000000821603613614575b5f810361360a5760045f836001900393508381526020019081526020015f205490506135e3565b8092505050613649565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b5f60095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160095f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b61371961402f565b61373360045f8481526020019081526020015f2054613c32565b9050919050565b5f8054905090565b5f67ffffffffffffffff604060055f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054901c169050919050565b8060075f6137a2613a7d565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661384b613a7d565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516138909190614125565b60405180910390a35050565b6138a784848461103d565b5f8373ffffffffffffffffffffffffffffffffffffffff163b14613908576138d184848484613ce6565b613907576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b61391661402f565b6139276139228361358b565b613c32565b9050919050565b60606015805461393d90614e4a565b80601f016020809104026020016040519081016040528092919081815260200182805461396990614e4a565b80156139b45780601f1061398b576101008083540402835291602001916139b4565b820191905f5260205f20905b81548152906001019060200180831161399757829003601f168201915b5050505050905090565b606060a060405101806040526020810391505f825281835b6001156139f857600184039350600a81066030018453600a81049050806139d6575b50828103602084039350808452505050919050565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b5f33905090565b5f33905090565b613a8e8383613e31565b5f8373ffffffffffffffffffffffffffffffffffffffff163b14613b16575f805490505f83820390505b613aca5f868380600101945086613ce6565b613b00576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818110613ab857815f5414613b13575f80fd5b50505b505050565b5f805f60065f8581526020019081526020015f2090508092508254915050915091565b5f73ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b5f8060e883901c905060e8613b9d868684613fda565b62ffffff16901b9150509392505050565b5f73ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b5f808290505f5b8451811015613c2757613c1282868381518110613c0557613c04614ee2565b5b6020026020010151613fe2565b91508080613c1f90614f3c565b915050613be5565b508091505092915050565b613c3a61402f565b81815f019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff16815250505f7c01000000000000000000000000000000000000000000000000000000008316141581604001901515908115158152505060e882901c816060019062ffffff16908162ffffff1681525050919050565b5f8373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613d0b613a7d565b8786866040518563ffffffff1660e01b8152600401613d2d9493929190615cac565b6020604051808303815f875af1925050508015613d6857506040513d601f19601f82011682018060405250810190613d659190615d0a565b60015b613dde573d805f8114613d96576040519150601f19603f3d011682016040523d82523d5f602084013e613d9b565b606091505b505f815103613dd6576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b5f805490505f8203613e6f576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b613e7b5f848385613b81565b600160406001901b17820260055f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282540192505081905550613eed83613ede5f865f613b87565b613ee78561400c565b17613bae565b60045f8381526020019081526020015f20819055505f80838301905073ffffffffffffffffffffffffffffffffffffffff8516915082825f7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a4600183015b818114613f875780835f7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a4600181019050613f4e565b505f8203613fc1576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805f819055505050613fd55f848385613bd8565b505050565b5f9392505050565b5f818310613ff957613ff4828461401b565b614004565b614003838361401b565b5b905092915050565b5f6001821460e11b9050919050565b5f825f528160205260405f20905092915050565b60405180608001604052805f73ffffffffffffffffffffffffffffffffffffffff1681526020015f67ffffffffffffffff1681526020015f151581526020015f62ffffff1681525090565b5f604051905090565b5f80fd5b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6140bf8161408b565b81146140c9575f80fd5b50565b5f813590506140da816140b6565b92915050565b5f602082840312156140f5576140f4614083565b5b5f614102848285016140cc565b91505092915050565b5f8115159050919050565b61411f8161410b565b82525050565b5f6020820190506141385f830184614116565b92915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6141678261413e565b9050919050565b6141778161415d565b8114614181575f80fd5b50565b5f813590506141928161416e565b92915050565b5f6bffffffffffffffffffffffff82169050919050565b6141b881614198565b81146141c2575f80fd5b50565b5f813590506141d3816141af565b92915050565b5f80604083850312156141ef576141ee614083565b5b5f6141fc85828601614184565b925050602061420d858286016141c5565b9150509250929050565b5f81519050919050565b5f82825260208201905092915050565b5f5b8381101561424e578082015181840152602081019050614233565b5f8484015250505050565b5f601f19601f8301169050919050565b5f61427382614217565b61427d8185614221565b935061428d818560208601614231565b61429681614259565b840191505092915050565b5f6020820190508181035f8301526142b98184614269565b905092915050565b5f819050919050565b6142d3816142c1565b81146142dd575f80fd5b50565b5f813590506142ee816142ca565b92915050565b5f6020828403121561430957614308614083565b5b5f614316848285016142e0565b91505092915050565b6143288161415d565b82525050565b5f6020820190506143415f83018461431f565b92915050565b5f806040838503121561435d5761435c614083565b5b5f61436a85828601614184565b925050602061437b858286016142e0565b9150509250929050565b61438e816142c1565b82525050565b5f6020820190506143a75f830184614385565b92915050565b5f80fd5b5f80fd5b5f80fd5b5f8083601f8401126143ce576143cd6143ad565b5b8235905067ffffffffffffffff8111156143eb576143ea6143b1565b5b602083019150836020820283011115614407576144066143b5565b5b9250929050565b5f806020838503121561442457614423614083565b5b5f83013567ffffffffffffffff81111561444157614440614087565b5b61444d858286016143b9565b92509250509250929050565b6144628161410b565b811461446c575f80fd5b50565b5f8135905061447d81614459565b92915050565b5f6020828403121561449857614497614083565b5b5f6144a58482850161446f565b91505092915050565b5f805f606084860312156144c5576144c4614083565b5b5f6144d286828701614184565b93505060206144e386828701614184565b92505060406144f4868287016142e0565b9150509250925092565b5f819050919050565b614510816144fe565b82525050565b5f6020820190506145295f830184614507565b92915050565b5f806040838503121561454557614544614083565b5b5f614552858286016142e0565b9250506020614563858286016142e0565b9150509250929050565b5f6040820190506145805f83018561431f565b61458d6020830184614385565b9392505050565b5f8083601f8401126145a9576145a86143ad565b5b8235905067ffffffffffffffff8111156145c6576145c56143b1565b5b6020830191508360208202830111156145e2576145e16143b5565b5b9250929050565b5f805f60408486031215614600576145ff614083565b5b5f84013567ffffffffffffffff81111561461d5761461c614087565b5b61462986828701614594565b9350935050602061463c86828701614184565b9150509250925092565b5f6146508261415d565b9050919050565b61466081614646565b811461466a575f80fd5b50565b5f8135905061467b81614657565b92915050565b5f6020828403121561469657614695614083565b5b5f6146a38482850161466d565b91505092915050565b5f80602083850312156146c2576146c1614083565b5b5f83013567ffffffffffffffff8111156146df576146de614087565b5b6146eb85828601614594565b92509250509250929050565b5f8083601f84011261470c5761470b6143ad565b5b8235905067ffffffffffffffff811115614729576147286143b1565b5b602083019150836001820283011115614745576147446143b5565b5b9250929050565b5f806020838503121561476257614761614083565b5b5f83013567ffffffffffffffff81111561477f5761477e614087565b5b61478b858286016146f7565b92509250509250929050565b5f8083601f8401126147ac576147ab6143ad565b5b8235905067ffffffffffffffff8111156147c9576147c86143b1565b5b6020830191508360208202830111156147e5576147e46143b5565b5b9250929050565b5f806020838503121561480257614801614083565b5b5f83013567ffffffffffffffff81111561481f5761481e614087565b5b61482b85828601614797565b92509250509250929050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b6148698161415d565b82525050565b5f67ffffffffffffffff82169050919050565b61488b8161486f565b82525050565b61489a8161410b565b82525050565b5f62ffffff82169050919050565b6148b7816148a0565b82525050565b608082015f8201516148d15f850182614860565b5060208201516148e46020850182614882565b5060408201516148f76040850182614891565b50606082015161490a60608501826148ae565b50505050565b5f61491b83836148bd565b60808301905092915050565b5f602082019050919050565b5f61493d82614837565b6149478185614841565b935061495283614851565b805f5b838110156149825781516149698882614910565b975061497483614927565b925050600181019050614955565b5085935050505092915050565b5f6020820190508181035f8301526149a78184614933565b905092915050565b5f602082840312156149c4576149c3614083565b5b5f6149d184828501614184565b91505092915050565b5f63ffffffff82169050919050565b6149f2816149da565b82525050565b5f602082019050614a0b5f8301846149e9565b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b614a43816142c1565b82525050565b5f614a548383614a3a565b60208301905092915050565b5f602082019050919050565b5f614a7682614a11565b614a808185614a1b565b9350614a8b83614a2b565b805f5b83811015614abb578151614aa28882614a49565b9750614aad83614a60565b925050600181019050614a8e565b5085935050505092915050565b5f6020820190508181035f830152614ae08184614a6c565b905092915050565b5f805f60608486031215614aff57614afe614083565b5b5f614b0c86828701614184565b9350506020614b1d868287016142e0565b9250506040614b2e868287016142e0565b9150509250925092565b5f8060408385031215614b4e57614b4d614083565b5b5f614b5b85828601614184565b9250506020614b6c8582860161446f565b9150509250929050565b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b614bb082614259565b810181811067ffffffffffffffff82111715614bcf57614bce614b7a565b5b80604052505050565b5f614be161407a565b9050614bed8282614ba7565b919050565b5f67ffffffffffffffff821115614c0c57614c0b614b7a565b5b614c1582614259565b9050602081019050919050565b828183375f83830152505050565b5f614c42614c3d84614bf2565b614bd8565b905082815260208101848484011115614c5e57614c5d614b76565b5b614c69848285614c22565b509392505050565b5f82601f830112614c8557614c846143ad565b5b8135614c95848260208601614c30565b91505092915050565b5f805f8060808587031215614cb657614cb5614083565b5b5f614cc387828801614184565b9450506020614cd487828801614184565b9350506040614ce5878288016142e0565b925050606085013567ffffffffffffffff811115614d0657614d05614087565b5b614d1287828801614c71565b91505092959194509250565b608082015f820151614d325f850182614860565b506020820151614d456020850182614882565b506040820151614d586040850182614891565b506060820151614d6b60608501826148ae565b50505050565b5f608082019050614d845f830184614d1e565b92915050565b614d93816144fe565b8114614d9d575f80fd5b50565b5f81359050614dae81614d8a565b92915050565b5f60208284031215614dc957614dc8614083565b5b5f614dd684828501614da0565b91505092915050565b5f8060408385031215614df557614df4614083565b5b5f614e0285828601614184565b9250506020614e1385828601614184565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f6002820490506001821680614e6157607f821691505b602082108103614e7457614e73614e1d565b5b50919050565b7f546865726520617265206e6f20746f6b656e73206c6566742e000000000000005f82015250565b5f614eae601983614221565b9150614eb982614e7a565b602082019050919050565b5f6020820190508181035f830152614edb81614ea2565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f614f46826142c1565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614f7857614f77614f0f565b5b600182019050919050565b5f614f8d826142c1565b9150614f98836142c1565b9250828202614fa6816142c1565b91508282048414831517614fbd57614fbc614f0f565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f614ffb826142c1565b9150615006836142c1565b92508261501657615015614fc4565b5b828204905092915050565b5f81905092915050565b50565b5f6150395f83615021565b91506150448261502b565b5f82019050919050565b5f6150588261502e565b9150819050919050565b7f5472616e73666572206661696c65642e000000000000000000000000000000005f82015250565b5f615096601083614221565b91506150a182615062565b602082019050919050565b5f6020820190508181035f8301526150c38161508a565b9050919050565b5f8160601b9050919050565b5f6150e0826150ca565b9050919050565b5f6150f1826150d6565b9050919050565b6151096151048261415d565b6150e7565b82525050565b5f61511a82846150f8565b60148201915081905092915050565b5f81519050615137816142ca565b92915050565b5f6020828403121561515257615151614083565b5b5f61515f84828501615129565b91505092915050565b5f8151905061517681614459565b92915050565b5f6020828403121561519157615190614083565b5b5f61519e84828501615168565b91505092915050565b7f5468652063616c6c657220697320616e6f7468657220636f6e74726163742e005f82015250565b5f6151db601f83614221565b91506151e6826151a7565b602082019050919050565b5f6020820190508181035f830152615208816151cf565b9050919050565b7f416c6c6f776c697374206d696e74206973206e6f74206f70656e2e00000000005f82015250565b5f615243601b83614221565b915061524e8261520f565b602082019050919050565b5f6020820190508181035f83015261527081615237565b9050919050565b7f43616e6e6f7420636c61696d206d6f7265207468616e203120616c6c6f776c695f8201527f7374206d696e742e000000000000000000000000000000000000000000000000602082015250565b5f6152d1602883614221565b91506152dc82615277565b604082019050919050565b5f6020820190508181035f8301526152fe816152c5565b9050919050565b7f496e636f727265637420616d6f756e74206f66204554482073656e742e0000005f82015250565b5f615339601d83614221565b915061534482615305565b602082019050919050565b5f6020820190508181035f8301526153668161532d565b9050919050565b7f4164647265737320646f6573206e6f7420657869737420696e20616c6c6f776c5f8201527f6973742e00000000000000000000000000000000000000000000000000000000602082015250565b5f6153c7602483614221565b91506153d28261536d565b604082019050919050565b5f6020820190508181035f8301526153f4816153bb565b9050919050565b5f615405826149da565b915063ffffffff820361541b5761541a614f0f565b5b600182019050919050565b5f82905092915050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f6008830261548c7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82615451565b6154968683615451565b95508019841693508086168417925050509392505050565b5f819050919050565b5f6154d16154cc6154c7846142c1565b6154ae565b6142c1565b9050919050565b5f819050919050565b6154ea836154b7565b6154fe6154f6826154d8565b84845461545d565b825550505050565b5f90565b615512615506565b61551d8184846154e1565b505050565b5b81811015615540576155355f8261550a565b600181019050615523565b5050565b601f8211156155855761555681615430565b61555f84615442565b8101602085101561556e578190505b61558261557a85615442565b830182615522565b50505b505050565b5f82821c905092915050565b5f6155a55f198460080261558a565b1980831691505092915050565b5f6155bd8383615596565b9150826002028217905092915050565b6155d78383615426565b67ffffffffffffffff8111156155f0576155ef614b7a565b5b6155fa8254614e4a565b615605828285615544565b5f601f831160018114615632575f8415615620578287013590505b61562a85826155b2565b865550615691565b601f19841661564086615430565b5f5b8281101561566757848901358255600182019150602085019450602081019050615642565b868310156156845784890135615680601f891682615596565b8355505b6001600288020188555050505b50505050505050565b7f46726565206d696e74206973206e6f74206f70656e2e000000000000000000005f82015250565b5f6156ce601683614221565b91506156d98261569a565b602082019050919050565b5f6020820190508181035f8301526156fb816156c2565b9050919050565b7f546869732077616c6c65742063616e6e6f7420636c61696d206d6f72652074685f8201527f616e20312066726565206d696e742e0000000000000000000000000000000000602082015250565b5f61575c602f83614221565b915061576782615702565b604082019050919050565b5f6020820190508181035f83015261578981615750565b9050919050565b5f61579a826142c1565b91506157a5836142c1565b92508282019050808211156157bd576157bc614f0f565b5b92915050565b7f4d696e74206973206e6f74206f70656e2e0000000000000000000000000000005f82015250565b5f6157f7601183614221565b9150615802826157c3565b602082019050919050565b5f6020820190508181035f830152615824816157eb565b9050919050565b7f546865206d6178696d756d206e756d626572206f66206d696e74656420746f6b5f8201527f656e73207065722077616c6c657420697320332e000000000000000000000000602082015250565b5f615885603483614221565b91506158908261582b565b604082019050919050565b5f6020820190508181035f8301526158b281615879565b9050919050565b7f596f752063616e6e6f6e74206d696e74203020746f6b656e732e0000000000005f82015250565b5f6158ed601a83614221565b91506158f8826158b9565b602082019050919050565b5f6020820190508181035f83015261591a816158e1565b9050919050565b5f81905092915050565b5f61593582614217565b61593f8185615921565b935061594f818560208601614231565b80840191505092915050565b7f2e6a736f6e0000000000000000000000000000000000000000000000000000005f82015250565b5f61598f600583615921565b915061599a8261595b565b600582019050919050565b5f6159b0828561592b565b91506159bc828461592b565b91506159c782615983565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f20615f8201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b5f615a2d602683614221565b9150615a38826159d3565b604082019050919050565b5f6020820190508181035f830152615a5a81615a21565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f615a95602083614221565b9150615aa082615a61565b602082019050919050565b5f6020820190508181035f830152615ac281615a89565b9050919050565b7f455243323938313a20726f79616c7479206665652077696c6c206578636565645f8201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b5f615b23602a83614221565b9150615b2e82615ac9565b604082019050919050565b5f6020820190508181035f830152615b5081615b17565b9050919050565b7f455243323938313a20696e76616c6964207265636569766572000000000000005f82015250565b5f615b8b601983614221565b9150615b9682615b57565b602082019050919050565b5f6020820190508181035f830152615bb881615b7f565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c005f82015250565b5f615bf3601f83614221565b9150615bfe82615bbf565b602082019050919050565b5f6020820190508181035f830152615c2081615be7565b9050919050565b5f615c31826142c1565b9150615c3c836142c1565b9250828203905081811115615c5457615c53614f0f565b5b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f615c7e82615c5a565b615c888185615c64565b9350615c98818560208601614231565b615ca181614259565b840191505092915050565b5f608082019050615cbf5f83018761431f565b615ccc602083018661431f565b615cd96040830185614385565b8181036060830152615ceb8184615c74565b905095945050505050565b5f81519050615d04816140b6565b92915050565b5f60208284031215615d1f57615d1e614083565b5b5f615d2c84828501615cf6565b9150509291505056fea264697066735822122009786820a633a65e4ccb30e4af84ec03005c357cd55acd18ba771dd265f1a86c64736f6c63430008140033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000012c0000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000001b
-----Decoded View---------------
Arg [0] : collectionSize_ (uint256): 300
Arg [1] : maxPerWallet_ (uint256): 3
Arg [2] : reservedFreeMint_ (uint256): 27
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000000000000000000000000000000000000000012c
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [2] : 000000000000000000000000000000000000000000000000000000000000001b
Loading...
Loading
Loading...
Loading
[ 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.