Overview
TokenID
5239
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:
Utopia
Compiler Version
v0.8.13+commit.abaa5c0e
Optimization Enabled:
Yes with 1000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import "./Ownable.sol"; import "./ReentrancyGuard.sol"; import "./ERC721A.sol"; import "./Strings.sol"; import {DefaultOperatorFilterer} from "./DefaultOperatorFilterer.sol"; interface ISaleUtopiaNFTV2 { function buy(uint256 _quantity, address _to, bytes32[] calldata _merkleProof) external payable; } contract Utopia is Ownable, ERC721A, ReentrancyGuard, DefaultOperatorFilterer { using Strings for uint256; address public treasuryAddr; address public saleUtopiaNFT; mapping(address => bool) public allowedToMint; bool public isRevealed = false; bool public mintFinished = false; string private _baseTokenURI = ""; string private _unrevealedTokenURI = ""; string private _baseTokenEndURI = ""; event SetRevealed(bool indexed _isRevealed); event SetMintFinished(bool indexed _mintFinished); event SetAddressToMintAllowed(address indexed _account, bool indexed _canMint); event SetBaseURI(string indexed _baseURI); event SetUnrevealedURI(string indexed _unrevealedURI); event SetEndURI(string indexed _endURI); event SetOwnersExplicit(uint256 indexed _quantity); event SetDefaultRoyalty(address indexed _receiver, uint96 indexed _feeNumerator); event SetTokenRoyalty(uint256 indexed _tokenId, address indexed _receiver, uint96 indexed _feeNumerator); event ResetTokenRoyalty(uint256 indexed _tokenId); event SetTreasury(address indexed _treasuryAddr); event WithdrawMoney(); modifier onlyMintAllowedUsers() { require(allowedToMint[msg.sender], "You can't mint ;)"); _; } constructor( uint256 maxBatchSize_, uint256 collectionSize_ ) ERC721A("Utopia", "UTOPIA", maxBatchSize_, collectionSize_) { treasuryAddr = msg.sender; } function setSaleUtopiaNFT(address _saleUtopiaNFT) external onlyOwner { saleUtopiaNFT = _saleUtopiaNFT; } function setRevealed(bool _isRevealed) external onlyOwner { isRevealed = _isRevealed; emit SetRevealed(_isRevealed); } function setMintFinished(bool _mintFinished) external onlyOwner { mintFinished = _mintFinished; emit SetMintFinished(_mintFinished); } function setAddressToMintAllowed(address _account, bool _canMint) external onlyOwner { allowedToMint[_account] = _canMint; emit SetAddressToMintAllowed(_account, _canMint); } function mint(address to, uint256 qty) onlyMintAllowedUsers nonReentrant external { _safeMint(to, qty); } function setBaseURI(string calldata baseURI) external onlyOwner { require(mintFinished, "Utopia: minting must be completed first"); _baseTokenURI = baseURI; emit SetBaseURI(baseURI); } function setUnrevealedURI(string calldata unrevealedURI) external onlyOwner { _unrevealedTokenURI = unrevealedURI; emit SetUnrevealedURI(unrevealedURI); } function setEndURI(string calldata endURI) external onlyOwner { _baseTokenEndURI = endURI; emit SetEndURI(endURI); } function setOwnersExplicit(uint256 quantity) external onlyOwner { _setOwnersExplicit(quantity); emit SetOwnersExplicit(quantity); } function numberMinted(address owner) external view returns (uint256) { return _numberMinted(owner); } function getOwnershipData(uint256 tokenId) external view returns (TokenOwnership memory) { return ownershipOf(tokenId); } function tokensOfOwner(address _owner, uint256 _from, uint256 _to) external view returns(uint256[] memory ownerTokens) { uint256 tokenCount = balanceOf(_owner); if (tokenCount == 0) { return new uint256[](0); } else { uint256[] memory result = new uint256[](tokenCount); uint256 totalNFTs = totalSupply(); uint256 i = 0; uint256 tId; if (_to > totalNFTs) { _to = totalNFTs; } for (tId = _from; tId < _to; ++tId) { if (ownerOf(tId) == _owner) { result[i] = tId; ++i; } } return result; } } function tokenURI(uint256 tokenId) external view virtual override returns (string memory) { require( _exists(tokenId), "ERC721Metadata: URI query for nonexistent token" ); string memory baseURI = _baseURI(); string memory unrevealedURI = _unrevealedURI(); string memory endURI = _endURI(); if (isRevealed) { return string(abi.encodePacked(baseURI, tokenId.toString(), endURI)); } else { return string(abi.encodePacked(unrevealedURI, "0", endURI)); } } function feeDenominator() external virtual returns (uint96) { return _feeDenominator(); } function setDefaultRoyalty(address receiver, uint96 feeNumerator) external onlyOwner { _setDefaultRoyalty(receiver, feeNumerator); emit SetDefaultRoyalty(receiver, feeNumerator); } function deleteDefaultRoyalty() external onlyOwner { _deleteDefaultRoyalty(); } function setTokenRoyalty(uint256 tokenId, address receiver, uint96 feeNumerator) external onlyOwner { _setTokenRoyalty(tokenId, receiver, feeNumerator); emit SetTokenRoyalty(tokenId, receiver, feeNumerator); } function resetTokenRoyalty(uint256 tokenId) external onlyOwner { _resetTokenRoyalty(tokenId); emit ResetTokenRoyalty(tokenId); } function _baseURI() internal view virtual override returns (string memory) { return _baseTokenURI; } function _unrevealedURI() internal view virtual returns (string memory) { return _unrevealedTokenURI; } function _endURI() internal view virtual override returns (string memory) { return _baseTokenEndURI; } function buyWithCrossmint(uint256 _quantity, address _to, bytes32[] calldata _merkleProof) external payable { ISaleUtopiaNFTV2(saleUtopiaNFT).buy{value:msg.value}(_quantity, _to, _merkleProof); } function setTreasury(address _treasuryAddr) external onlyOwner { treasuryAddr = _treasuryAddr; emit SetTreasury(_treasuryAddr); } function withdrawMoney() external onlyOwner { (bool success, ) = treasuryAddr.call{value: address(this).balance}(""); require(success, "Transfer failed."); emit WithdrawMoney(); } function setApprovalForAll(address operator, bool approved) public override onlyAllowedOperatorApproval(operator) { super.setApprovalForAll(operator, approved); } function approve(address operator, uint256 tokenId) public override onlyAllowedOperatorApproval(operator) { super.approve(operator, tokenId); } function transferFrom(address from, address to, uint256 tokenId) public override onlyAllowedOperator(from) { super.transferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId) public override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId, data); } receive() external payable {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; /** * @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 make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import "./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() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _setOwner(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"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol"; import {CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS} from "./Constants.sol"; /* * @title OperatorFilterer * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another * registrant's entries in the OperatorFilterRegistry. * @dev This smart contract is meant to be inherited by token contracts so they can use the following: * - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods. * - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods. * Please note that if your token contract does not provide an owner with EIP-173, it must provide * administration methods on the contract itself to interact with the registry otherwise the subscription * will be locked to the options set during construction. */ abstract contract OperatorFilterer { /// @dev Emitted when an operator is not allowed. error OperatorNotAllowed(address operator); IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY = IOperatorFilterRegistry(CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS); /// @dev The constructor that is called when the contract is being deployed. constructor(address subscriptionOrRegistrantToCopy, bool subscribe) { // If an inheriting token contract is deployed to a network without the registry deployed, the modifier // will not revert, but the contract will need to be registered with the registry once it is deployed in // order for the modifier to filter addresses. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { if (subscribe) { OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy); } else { if (subscriptionOrRegistrantToCopy != address(0)) { OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy); } else { OPERATOR_FILTER_REGISTRY.register(address(this)); } } } } /** * @dev A helper function to check if an operator is allowed. */ modifier onlyAllowedOperator(address from) virtual { // Allow spending tokens from addresses with balance // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred // from an EOA. if (from != msg.sender) { _checkFilterOperator(msg.sender); } _; } /** * @dev A helper function to check if an operator approval is allowed. */ modifier onlyAllowedOperatorApproval(address operator) virtual { _checkFilterOperator(operator); _; } /** * @dev A helper function to check if an operator is allowed. */ function _checkFilterOperator(address operator) internal view virtual { // Check registry code length to facilitate testing in environments without a deployed registry. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { // under normal circumstances, this function will revert rather than return false, but inheriting contracts // may specify their own OperatorFilterRegistry implementations, which may behave differently if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) { revert OperatorNotAllowed(operator); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; interface IOperatorFilterRegistry { /** * @notice Returns true if operator is not filtered for a given token, either by address or codeHash. Also returns * true if supplied registrant address is not registered. */ function isOperatorAllowed(address registrant, address operator) external view returns (bool); /** * @notice Registers an address with the registry. May be called by address itself or by EIP-173 owner. */ function register(address registrant) external; /** * @notice Registers an address with the registry and "subscribes" to another address's filtered operators and codeHashes. */ function registerAndSubscribe(address registrant, address subscription) external; /** * @notice Registers an address with the registry and copies the filtered operators and codeHashes from another * address without subscribing. */ function registerAndCopyEntries(address registrant, address registrantToCopy) external; /** * @notice Unregisters an address with the registry and removes its subscription. May be called by address itself or by EIP-173 owner. * Note that this does not remove any filtered addresses or codeHashes. * Also note that any subscriptions to this registrant will still be active and follow the existing filtered addresses and codehashes. */ function unregister(address addr) external; /** * @notice Update an operator address for a registered address - when filtered is true, the operator is filtered. */ function updateOperator(address registrant, address operator, bool filtered) external; /** * @notice Update multiple operators for a registered address - when filtered is true, the operators will be filtered. Reverts on duplicates. */ function updateOperators(address registrant, address[] calldata operators, bool filtered) external; /** * @notice Update a codeHash for a registered address - when filtered is true, the codeHash is filtered. */ function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external; /** * @notice Update multiple codeHashes for a registered address - when filtered is true, the codeHashes will be filtered. Reverts on duplicates. */ function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external; /** * @notice Subscribe an address to another registrant's filtered operators and codeHashes. Will remove previous * subscription if present. * Note that accounts with subscriptions may go on to subscribe to other accounts - in this case, * subscriptions will not be forwarded. Instead the former subscription's existing entries will still be * used. */ function subscribe(address registrant, address registrantToSubscribe) external; /** * @notice Unsubscribe an address from its current subscribed registrant, and optionally copy its filtered operators and codeHashes. */ function unsubscribe(address registrant, bool copyExistingEntries) external; /** * @notice Get the subscription address of a given registrant, if any. */ function subscriptionOf(address addr) external returns (address registrant); /** * @notice Get the set of addresses subscribed to a given registrant. * Note that order is not guaranteed as updates are made. */ function subscribers(address registrant) external returns (address[] memory); /** * @notice Get the subscriber at a given index in the set of addresses subscribed to a given registrant. * Note that order is not guaranteed as updates are made. */ function subscriberAt(address registrant, uint256 index) external returns (address); /** * @notice Copy filtered operators and codeHashes from a different registrantToCopy to addr. */ function copyEntriesOf(address registrant, address registrantToCopy) external; /** * @notice Returns true if operator is filtered by a given address or its subscription. */ function isOperatorFiltered(address registrant, address operator) external returns (bool); /** * @notice Returns true if the hash of an address's code is filtered by a given address or its subscription. */ function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool); /** * @notice Returns true if a codeHash is filtered by a given address or its subscription. */ function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool); /** * @notice Returns a list of filtered operators for a given address or its subscription. */ function filteredOperators(address addr) external returns (address[] memory); /** * @notice Returns the set of filtered codeHashes for a given address or its subscription. * Note that order is not guaranteed as updates are made. */ function filteredCodeHashes(address addr) external returns (bytes32[] memory); /** * @notice Returns the filtered operator at the given index of the set of filtered operators for a given address or * its subscription. * Note that order is not guaranteed as updates are made. */ function filteredOperatorAt(address registrant, uint256 index) external returns (address); /** * @notice Returns the filtered codeHash at the given index of the list of filtered codeHashes for a given address or * its subscription. * Note that order is not guaranteed as updates are made. */ function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32); /** * @notice Returns true if an address has registered */ function isRegistered(address addr) external returns (bool); /** * @dev Convenience method to compute the code hash of an arbitrary contract */ function codeHashOf(address addr) external returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.13; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.13; import "./IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.13; import "./IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.13; import "./IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @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`. * * 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 calldata data ) external; /** * @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 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 ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.13; import "./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 pragma solidity ^0.8.13; /** * @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.13; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./IERC721Metadata.sol"; import "./IERC721Enumerable.sol"; import "./Address.sol"; import "./Context.sol"; import "./Strings.sol"; //import "./ERC165.sol"; import "./ERC2981.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..). * * Assumes the number of issuable tokens (collection size) is capped and fits in a uint128. * * Does not support burning tokens to address(0). */ contract ERC721A is Context, //ERC165, IERC721, IERC721Metadata, IERC721Enumerable, ERC2981 { using Address for address; using Strings for uint256; struct TokenOwnership { address addr; uint64 startTimestamp; } struct AddressData { uint128 balance; uint128 numberMinted; } uint256 private currentIndex = 0; uint256 internal immutable collectionSize; uint256 internal immutable maxBatchSize; // 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 ownershipOf implementation for details. mapping(uint256 => TokenOwnership) private _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev * `maxBatchSize` refers to how much a minter can mint at a time. * `collectionSize_` refers to how many tokens are in the collection. */ constructor( string memory name_, string memory symbol_, uint256 maxBatchSize_, uint256 collectionSize_ ) { require( collectionSize_ > 0, "ERC721A: collection must have a nonzero supply" ); require(maxBatchSize_ > 0, "ERC721A: max batch size must be nonzero"); require(maxBatchSize_ <= 50, "ERC721A: max batch size must be less than or equal to 50"); require(collectionSize_ == 9922, "ERC721A: the collection must have a size of 9922 NFTs"); _name = name_; _symbol = symbol_; maxBatchSize = maxBatchSize_; collectionSize = collectionSize_; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view override returns (uint256) { return currentIndex; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view override returns (uint256) { require(index < totalSupply(), "ERC721A: global index out of bounds"); return index; } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. * This read function is O(collectionSize). If calling from a separate contract, be sure to test gas first. * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) { require(index < totalSupply(), "ERC721A: we cannot search for values greater than totalSupply"); require(index < balanceOf(owner), "ERC721A: owner index out of bounds"); uint256 numMintedSoFar = totalSupply(); uint256 tokenIdsIdx = 0; address currOwnershipAddr = address(0); for (uint256 i = 0; i < numMintedSoFar; i++) { TokenOwnership memory ownership = _ownerships[i]; if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { if (tokenIdsIdx == index) { return i; } tokenIdsIdx++; } } revert("ERC721A: unable to get token of owner by index"); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC2981, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { require(owner != address(0), "ERC721A: balance query for the zero address"); return uint256(_addressData[owner].balance); } function _numberMinted(address owner) internal view returns (uint256) { require( owner != address(0), "ERC721A: number minted query for the zero address" ); return uint256(_addressData[owner].numberMinted); } function ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { require(_exists(tokenId), "ERC721A: owner query for nonexistent token"); uint256 lowestTokenToCheck; if (tokenId >= maxBatchSize) { lowestTokenToCheck = tokenId - maxBatchSize + 1; } for (uint256 curr = tokenId; curr >= lowestTokenToCheck; curr--) { TokenOwnership memory ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } revert("ERC721A: unable to determine the owner of token"); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return ownershipOf(tokenId).addr; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) external view virtual override returns (string memory) { require( _exists(tokenId), "ERC721Metadata: URI query for nonexistent token" ); string memory baseURI = _baseURI(); string memory endURI = _endURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString(), endURI)) : ""; } /** * @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, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } function _endURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override virtual { address owner = ERC721A.ownerOf(tokenId); require(to != owner, "ERC721A: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721A: approve caller is not owner nor approved for all" ); _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { require(_exists(tokenId), "ERC721A: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public override virtual { require(operator != _msgSender(), "ERC721A: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public override virtual { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public override virtual { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public override virtual { _transfer(from, to, tokenId); require( _checkOnERC721Received(from, to, tokenId, _data), "ERC721A: transfer to non ERC721Receiver implementer" ); } /** * @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 (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return tokenId < currentIndex; } function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ""); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - there must be `quantity` tokens remaining unminted in the total collection. * - `to` cannot be the zero address. * - `quantity` cannot be larger than the max batch size. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { uint256 startTokenId = currentIndex; uint256 currentTotalSupply = totalSupply(); require(to != address(0), "ERC721A: mint to the zero address"); // We know if the first token in the batch doesn't exist, the other ones don't as well, because of serial ordering. require(!_exists(startTokenId), "ERC721A: token already minted"); require(quantity <= maxBatchSize, "ERC721A: quantity to mint too high"); require(currentTotalSupply + quantity <= collectionSize, "ERC721A: can not mint that many NFTs in this collection"); _beforeTokenTransfers(address(0), to, startTokenId, quantity); AddressData memory addressData = _addressData[to]; _addressData[to] = AddressData( addressData.balance + uint128(quantity), addressData.numberMinted + uint128(quantity) ); _ownerships[startTokenId] = TokenOwnership(to, uint64(block.timestamp)); uint256 updatedIndex = startTokenId; for (uint256 i = 0; i < quantity; i++) { emit Transfer(address(0), to, updatedIndex); require( _checkOnERC721Received(address(0), to, updatedIndex, _data), "ERC721A: transfer to non ERC721Receiver implementer" ); updatedIndex++; } currentIndex = updatedIndex; _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) private { TokenOwnership memory prevOwnership = ownershipOf(tokenId); bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr || getApproved(tokenId) == _msgSender() || isApprovedForAll(prevOwnership.addr, _msgSender())); require( isApprovedOrOwner, "ERC721A: transfer caller is not owner nor approved" ); require( prevOwnership.addr == from, "ERC721A: transfer from incorrect owner" ); require(to != address(0), "ERC721A: transfer to the zero address"); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership.addr); _addressData[from].balance -= 1; _addressData[to].balance += 1; _ownerships[tokenId] = TokenOwnership(to, uint64(block.timestamp)); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; if (_ownerships[nextTokenId].addr == address(0)) { if (_exists(nextTokenId)) { _ownerships[nextTokenId] = TokenOwnership( prevOwnership.addr, prevOwnership.startTimestamp ); } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } uint256 public nextOwnerToExplicitlySet = 0; /** * @dev Explicitly set `owners` to eliminate loops in future calls of ownerOf(). */ function _setOwnersExplicit(uint256 quantity) internal { uint256 oldNextOwnerToSet = nextOwnerToExplicitlySet; require(quantity > 0, "quantity must be nonzero"); uint256 endIndex = oldNextOwnerToSet + quantity - 1; if (endIndex > collectionSize - 1) { endIndex = collectionSize - 1; } // We know if the last one in the group exists, all in the group exist, due to serial ordering. require(_exists(endIndex), "not enough minted yet for this cleanup"); for (uint256 i = oldNextOwnerToSet; i <= endIndex; i++) { if (_ownerships[i].addr == address(0)) { TokenOwnership memory ownership = ownershipOf(i); _ownerships[i] = TokenOwnership( ownership.addr, ownership.startTimestamp ); } } nextOwnerToExplicitlySet = endIndex + 1; } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721A: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * * 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`. */ 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. * * 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` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol) pragma solidity ^0.8.13; import "./IERC2981.sol"; import "./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 v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.13; 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 pragma solidity ^0.8.13; import {OperatorFilterer} from "./OperatorFilterer.sol"; import {CANONICAL_CORI_SUBSCRIPTION} from "./Constants.sol"; /** * @title DefaultOperatorFilterer * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription. * @dev Please note that if your token contract does not provide an owner with EIP-173, it must provide * administration methods on the contract itself to interact with the registry otherwise the subscription * will be locked to the options set during construction. */ abstract contract DefaultOperatorFilterer is OperatorFilterer { /// @dev The constructor that is called when the contract is being deployed. constructor() OperatorFilterer(CANONICAL_CORI_SUBSCRIPTION, true) {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; /* * @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 pragma solidity ^0.8.13; address constant CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS = 0x000000000000AAeB6D7670E522A718067333cd4E; address constant CANONICAL_CORI_SUBSCRIPTION = 0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6;
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) private pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 1000 }, "evmVersion": "london", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"uint256","name":"maxBatchSize_","type":"uint256"},{"internalType":"uint256","name":"collectionSize_","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","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":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"ResetTokenRoyalty","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_account","type":"address"},{"indexed":true,"internalType":"bool","name":"_canMint","type":"bool"}],"name":"SetAddressToMintAllowed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"string","name":"_baseURI","type":"string"}],"name":"SetBaseURI","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_receiver","type":"address"},{"indexed":true,"internalType":"uint96","name":"_feeNumerator","type":"uint96"}],"name":"SetDefaultRoyalty","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"string","name":"_endURI","type":"string"}],"name":"SetEndURI","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bool","name":"_mintFinished","type":"bool"}],"name":"SetMintFinished","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"SetOwnersExplicit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bool","name":"_isRevealed","type":"bool"}],"name":"SetRevealed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"_receiver","type":"address"},{"indexed":true,"internalType":"uint96","name":"_feeNumerator","type":"uint96"}],"name":"SetTokenRoyalty","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_treasuryAddr","type":"address"}],"name":"SetTreasury","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"string","name":"_unrevealedURI","type":"string"}],"name":"SetUnrevealedURI","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[],"name":"WithdrawMoney","type":"event"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"allowedToMint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"buyWithCrossmint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"deleteDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feeDenominator","outputs":[{"internalType":"uint96","name":"","type":"uint96"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getOwnershipData","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"}],"internalType":"struct ERC721A.TokenOwnership","name":"","type":"tuple"}],"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":"isRevealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"qty","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintFinished","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextOwnerToExplicitlySet","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":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"resetTokenRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleUtopiaNFT","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"bool","name":"_canMint","type":"bool"}],"name":"setAddressToMintAllowed","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":"receiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"endURI","type":"string"}],"name":"setEndURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_mintFinished","type":"bool"}],"name":"setMintFinished","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"setOwnersExplicit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isRevealed","type":"bool"}],"name":"setRevealed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_saleUtopiaNFT","type":"address"}],"name":"setSaleUtopiaNFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setTokenRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_treasuryAddr","type":"address"}],"name":"setTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"unrevealedURI","type":"string"}],"name":"setUnrevealedURI","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":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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"},{"internalType":"uint256","name":"_from","type":"uint256"},{"internalType":"uint256","name":"_to","type":"uint256"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"ownerTokens","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasuryAddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawMoney","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60006003819055600a819055600f805461ffff1916905560e0604081905260c0829052620000319160109190620004a6565b506040805160208101918290526000908190526200005291601191620004a6565b506040805160208101918290526000908190526200007391601291620004a6565b503480156200008157600080fd5b506040516200420938038062004209833981016040819052620000a4916200054c565b733cc6cdda760b79bafa08df41ecfa224f810dceb660016040518060400160405280600681526020016555746f70696160d01b8152506040518060400160405280600681526020016555544f50494160d01b8152508585620001156200010f6200045260201b60201c565b62000456565b60008111620001825760405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20636f6c6c656374696f6e206d757374206861766520612060448201526d6e6f6e7a65726f20737570706c7960901b60648201526084015b60405180910390fd5b60008211620001d35760405162461bcd60e51b81526020600482015260276024820152600080516020620041e98339815191526044820152666e6f6e7a65726f60c81b606482015260840162000179565b60328211156200023b5760405162461bcd60e51b81526020600482015260386024820152600080516020620041e983398151915260448201527f6c657373207468616e206f7220657175616c20746f2035300000000000000000606482015260840162000179565b806126c214620002b45760405162461bcd60e51b815260206004820152603560248201527f455243373231413a2074686520636f6c6c656374696f6e206d7573742068617660448201527f6520612073697a65206f662039393232204e4654730000000000000000000000606482015260840162000179565b8351620002c9906004906020870190620004a6565b508251620002df906005906020860190620004a6565b5060a09190915260805250506001600b556daaeb6d7670e522a718067333cd4e3b15620004355780156200038357604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b1580156200036457600080fd5b505af115801562000379573d6000803e3d6000fd5b5050505062000435565b6001600160a01b03821615620003d45760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af29039060440162000349565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b1580156200041b57600080fd5b505af115801562000430573d6000803e3d6000fd5b505050505b5050600c80546001600160a01b0319163317905550620005ad9050565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b828054620004b49062000571565b90600052602060002090601f016020900481019282620004d8576000855562000523565b82601f10620004f357805160ff191683800117855562000523565b8280016001018555821562000523579182015b828111156200052357825182559160200191906001019062000506565b506200053192915062000535565b5090565b5b8082111562000531576000815560010162000536565b600080604083850312156200056057600080fd5b505080516020909101519092909150565b600181811c908216806200058657607f821691505b602082108103620005a757634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a051613bfa620005ef600039600081816124da015281816125040152612eb6015260008181612164015281816121960152612f4c0152613bfa6000f3fe60806040526004361061030c5760003560e01c806370a082311161019a578063b88d4fde116100e1578063e0a808531161008a578063f2fde38b11610064578063f2fde38b1461090e578063fa8de5c71461092e578063fe2c7fee1461094e57600080fd5b8063e0a8085314610885578063e985e9c5146108a5578063f0f44260146108ee57600080fd5b8063cb97fca1116100bb578063cb97fca11461082f578063d7224ba01461084f578063dc33e6811461086557600080fd5b8063b88d4fde146107c2578063c839fe94146107e2578063c87b56dd1461080f57600080fd5b80639231ab2a11610143578063a89da3731161011d578063a89da37314610768578063aa1b103f14610798578063ac446002146107ad57600080fd5b80639231ab2a146106e557806395d89b4114610733578063a22cb4651461074857600080fd5b806383f24d4c1161017457806383f24d4c146106875780638a616bc0146106a75780638da5cb5b146106c757600080fd5b806370a0823114610633578063715018a61461065357806375143ef21461066857600080fd5b8063309992131161025e57806354214f69116102075780635b5803b9116101e15780635b5803b9146105d35780635c1f1807146105f35780636352211e1461061357600080fd5b806354214f691461057957806355f804b3146105935780635944c753146105b357600080fd5b806341f434341161023857806341f434341461051757806342842e0e146105395780634f6ccce71461055957600080fd5b806330999213146104c457806330d9a62a146104d757806340c10f19146104f757600080fd5b8063180b0d7e116102c05780632a55205a1161029a5780632a55205a146104455780632d20fb60146104845780632f745c59146104a457600080fd5b8063180b0d7e146103e957806318160ddd1461040657806323b872dd1461042557600080fd5b806306fdde03116102f157806306fdde031461036f578063081812fc14610391578063095ea7b3146103c957600080fd5b806301ffc9a71461031857806304634d8d1461034d57600080fd5b3661031357005b600080fd5b34801561032457600080fd5b506103386103333660046133e2565b61096e565b60405190151581526020015b60405180910390f35b34801561035957600080fd5b5061036d610368366004613437565b610a1a565b005b34801561037b57600080fd5b50610384610ab9565b60405161034491906134c2565b34801561039d57600080fd5b506103b16103ac3660046134d5565b610b4b565b6040516001600160a01b039091168152602001610344565b3480156103d557600080fd5b5061036d6103e43660046134ee565b610be6565b3480156103f557600080fd5b506040516127108152602001610344565b34801561041257600080fd5b506003545b604051908152602001610344565b34801561043157600080fd5b5061036d610440366004613518565b610bff565b34801561045157600080fd5b50610465610460366004613554565b610c2a565b604080516001600160a01b039093168352602083019190915201610344565b34801561049057600080fd5b5061036d61049f3660046134d5565b610ce5565b3480156104b057600080fd5b506104176104bf3660046134ee565b610d64565b61036d6104d2366004613576565b610f82565b3480156104e357600080fd5b50600c546103b1906001600160a01b031681565b34801561050357600080fd5b5061036d6105123660046134ee565b61100b565b34801561052357600080fd5b506103b16daaeb6d7670e522a718067333cd4e81565b34801561054557600080fd5b5061036d610554366004613518565b6110d4565b34801561056557600080fd5b506104176105743660046134d5565b6110f9565b34801561058557600080fd5b50600f546103389060ff1681565b34801561059f57600080fd5b5061036d6105ae366004613600565b61117c565b3480156105bf57600080fd5b5061036d6105ce366004613672565b611292565b3480156105df57600080fd5b5061036d6105ee3660046136ae565b611330565b3480156105ff57600080fd5b5061036d61060e3660046136d7565b6113a7565b34801561061f57600080fd5b506103b161062e3660046134d5565b611434565b34801561063f57600080fd5b5061041761064e3660046136ae565b611446565b34801561065f57600080fd5b5061036d6114e9565b34801561067457600080fd5b50600f5461033890610100900460ff1681565b34801561069357600080fd5b50600d546103b1906001600160a01b031681565b3480156106b357600080fd5b5061036d6106c23660046134d5565b61153d565b3480156106d357600080fd5b506000546001600160a01b03166103b1565b3480156106f157600080fd5b506107056107003660046134d5565b6115c2565b6040805182516001600160a01b0316815260209283015167ffffffffffffffff169281019290925201610344565b34801561073f57600080fd5b506103846115df565b34801561075457600080fd5b5061036d6107633660046136f4565b6115ee565b34801561077457600080fd5b506103386107833660046136ae565b600e6020526000908152604090205460ff1681565b3480156107a457600080fd5b5061036d611602565b3480156107b957600080fd5b5061036d611654565b3480156107ce57600080fd5b5061036d6107dd366004613741565b61176b565b3480156107ee57600080fd5b506108026107fd36600461381d565b611798565b6040516103449190613850565b34801561081b57600080fd5b5061038461082a3660046134d5565b61189d565b34801561083b57600080fd5b5061036d61084a3660046136f4565b611995565b34801561085b57600080fd5b50610417600a5481565b34801561087157600080fd5b506104176108803660046136ae565b611a31565b34801561089157600080fd5b5061036d6108a03660046136d7565b611a3c565b3480156108b157600080fd5b506103386108c0366004613894565b6001600160a01b03918216600090815260096020908152604080832093909416825291909152205460ff1690565b3480156108fa57600080fd5b5061036d6109093660046136ae565b611ac1565b34801561091a57600080fd5b5061036d6109293660046136ae565b611b60565b34801561093a57600080fd5b5061036d610949366004613600565b611c30565b34801561095a57600080fd5b5061036d610969366004613600565b611cc9565b60006001600160e01b031982167f80ac58cd0000000000000000000000000000000000000000000000000000000014806109d157506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610a0557506001600160e01b031982167f780e9d6300000000000000000000000000000000000000000000000000000000145b80610a145750610a1482611d62565b92915050565b6000546001600160a01b03163314610a675760405162461bcd60e51b81526020600482018190526024820152600080516020613ba583398151915260448201526064015b60405180910390fd5b610a718282611dc9565b6040516bffffffffffffffffffffffff8216906001600160a01b038416907fa1edde4ed5c1392c90dccd8e051a4080b761850e49a24c77d826348a51e1f8dc90600090a35050565b606060048054610ac8906138be565b80601f0160208091040260200160405190810160405280929190818152602001828054610af4906138be565b8015610b415780601f10610b1657610100808354040283529160200191610b41565b820191906000526020600020905b815481529060010190602001808311610b2457829003601f168201915b5050505050905090565b6000610b58826003541190565b610bca5760405162461bcd60e51b815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201527f78697374656e7420746f6b656e000000000000000000000000000000000000006064820152608401610a5e565b506000908152600860205260409020546001600160a01b031690565b81610bf081611ed0565b610bfa8383611fbb565b505050565b826001600160a01b0381163314610c1957610c1933611ed0565b610c248484846120e8565b50505050565b60008281526002602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046bffffffffffffffffffffffff16928201929092528291610ca95750604080518082019091526001546001600160a01b0381168252600160a01b90046bffffffffffffffffffffffff1660208201525b602081015160009061271090610ccd906bffffffffffffffffffffffff168761390e565b610cd79190613943565b915196919550909350505050565b6000546001600160a01b03163314610d2d5760405162461bcd60e51b81526020600482018190526024820152600080516020613ba58339815191526044820152606401610a5e565b610d36816120f3565b60405181907f63978e7bbb6bd665d16fcf4c4502864e3631a7433807e27ba66898ba73c6496390600090a250565b6000610d6f60035490565b8210610de35760405162461bcd60e51b815260206004820152603d60248201527f455243373231413a2077652063616e6e6f742073656172636820666f7220766160448201527f6c7565732067726561746572207468616e20746f74616c537570706c790000006064820152608401610a5e565b610dec83611446565b8210610e605760405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e60448201527f64730000000000000000000000000000000000000000000000000000000000006064820152608401610a5e565b6000610e6b60035490565b905060008060005b83811015610f13576000818152600660209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff169183019190915215610ec657805192505b876001600160a01b0316836001600160a01b031603610f0057868403610ef257509350610a1492505050565b83610efc81613957565b9450505b5080610f0b81613957565b915050610e73565b5060405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201527f6f776e657220627920696e6465780000000000000000000000000000000000006064820152608401610a5e565b600d546040517ffb30f2bf0000000000000000000000000000000000000000000000000000000081526001600160a01b039091169063fb30f2bf903490610fd3908890889088908890600401613970565b6000604051808303818588803b158015610fec57600080fd5b505af1158015611000573d6000803e3d6000fd5b505050505050505050565b336000908152600e602052604090205460ff1661106a5760405162461bcd60e51b815260206004820152601160248201527f596f752063616e2774206d696e74203b290000000000000000000000000000006044820152606401610a5e565b6002600b54036110bc5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a5e565b6002600b556110cb82826122f4565b50506001600b55565b826001600160a01b03811633146110ee576110ee33611ed0565b610c24848484612312565b600061110460035490565b82106111785760405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f7560448201527f6e647300000000000000000000000000000000000000000000000000000000006064820152608401610a5e565b5090565b6000546001600160a01b031633146111c45760405162461bcd60e51b81526020600482018190526024820152600080516020613ba58339815191526044820152606401610a5e565b600f54610100900460ff166112415760405162461bcd60e51b815260206004820152602760248201527f55746f7069613a206d696e74696e67206d75737420626520636f6d706c65746560448201527f64206669727374000000000000000000000000000000000000000000000000006064820152608401610a5e565b61124d6010838361333c565b50818160405161125e9291906139dc565b604051908190038120907f23c8c9488efebfd474e85a7956de6f39b17c7ab88502d42a623db2d8e382bbaa90600090a25050565b6000546001600160a01b031633146112da5760405162461bcd60e51b81526020600482018190526024820152600080516020613ba58339815191526044820152606401610a5e565b6112e583838361232d565b806bffffffffffffffffffffffff16826001600160a01b0316847f2595213009f64247e2789cf9981bcc53ee736a6aa52042a651aa1549ae6fff6160405160405180910390a4505050565b6000546001600160a01b031633146113785760405162461bcd60e51b81526020600482018190526024820152600080516020613ba58339815191526044820152606401610a5e565b600d805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6000546001600160a01b031633146113ef5760405162461bcd60e51b81526020600482018190526024820152600080516020613ba58339815191526044820152606401610a5e565b600f805461ff001916610100831515908102919091179091556040517ff905f0088811c65c3d6b98eee219bed12b48dd9d3bbe131fe15b99fbdbb6f60790600090a250565b600061143f82612445565b5192915050565b60006001600160a01b0382166114c45760405162461bcd60e51b815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201527f65726f20616464726573730000000000000000000000000000000000000000006064820152608401610a5e565b506001600160a01b03166000908152600760205260409020546001600160801b031690565b6000546001600160a01b031633146115315760405162461bcd60e51b81526020600482018190526024820152600080516020613ba58339815191526044820152606401610a5e565b61153b6000612610565b565b6000546001600160a01b031633146115855760405162461bcd60e51b81526020600482018190526024820152600080516020613ba58339815191526044820152606401610a5e565b60008181526002602052604081205560405181907f2d0c64cb223c165096aa5260f0c4f12caf09469f917f6139ff17e1795a01225d90600090a250565b6040805180820190915260008082526020820152610a1482612445565b606060058054610ac8906138be565b816115f881611ed0565b610bfa838361266d565b6000546001600160a01b0316331461164a5760405162461bcd60e51b81526020600482018190526024820152600080516020613ba58339815191526044820152606401610a5e565b61153b6000600155565b6000546001600160a01b0316331461169c5760405162461bcd60e51b81526020600482018190526024820152600080516020613ba58339815191526044820152606401610a5e565b600c546040516000916001600160a01b03169047908381818185875af1925050503d80600081146116e9576040519150601f19603f3d011682016040523d82523d6000602084013e6116ee565b606091505b505090508061173f5760405162461bcd60e51b815260206004820152601060248201527f5472616e73666572206661696c65642e000000000000000000000000000000006044820152606401610a5e565b6040517fb6c58ac2c9469c7de2607e230e2b25bd83bb307d5c8dad8e68a726509e6d432f90600090a150565b836001600160a01b03811633146117855761178533611ed0565b61179185858585612731565b5050505050565b606060006117a585611446565b9050806000036117c5575050604080516000815260208101909152611896565b60008167ffffffffffffffff8111156117e0576117e061372b565b604051908082528060200260200182016040528015611809578160200160208202803683370190505b509050600061181760035490565b905060008082871115611828578296505b50865b8681101561188e57886001600160a01b031661184682611434565b6001600160a01b03160361187e5780848381518110611867576118676139ec565b602090810291909101015261187b82613957565b91505b61188781613957565b905061182b565b509193505050505b9392505050565b60606118aa826003541190565b61191c5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610a5e565b60006119266127ba565b905060006119326127c9565b9050600061193e6127d8565b600f5490915060ff16156119825782611956866127e7565b8260405160200161196993929190613a02565b6040516020818303038152906040529350505050919050565b8181604051602001611969929190613a45565b6000546001600160a01b031633146119dd5760405162461bcd60e51b81526020600482018190526024820152600080516020613ba58339815191526044820152606401610a5e565b6001600160a01b0382166000818152600e6020526040808220805460ff191685151590811790915590519092917f307b0e6c4e436d6ecea33164555a3eaff43103a084b774e1df66c0718486ec1691a35050565b6000610a1482612908565b6000546001600160a01b03163314611a845760405162461bcd60e51b81526020600482018190526024820152600080516020613ba58339815191526044820152606401610a5e565b600f805460ff19168215159081179091556040517f47ae3db957b6f3cb6833ac96788154df5ae2f29502e5a710b933c85e2ae32cef90600090a250565b6000546001600160a01b03163314611b095760405162461bcd60e51b81526020600482018190526024820152600080516020613ba58339815191526044820152606401610a5e565b600c805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0383169081179091556040517fcb7ef3e545f5cdb893f5c568ba710fe08f336375a2d9fd66e161033f8fc09ef390600090a250565b6000546001600160a01b03163314611ba85760405162461bcd60e51b81526020600482018190526024820152600080516020613ba58339815191526044820152606401610a5e565b6001600160a01b038116611c245760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610a5e565b611c2d81612610565b50565b6000546001600160a01b03163314611c785760405162461bcd60e51b81526020600482018190526024820152600080516020613ba58339815191526044820152606401610a5e565b611c846012838361333c565b508181604051611c959291906139dc565b604051908190038120907f14ddf6549dfeae27cc1d430b4eaad9eec900623d0c765ae6dba72ebf3c72341d90600090a25050565b6000546001600160a01b03163314611d115760405162461bcd60e51b81526020600482018190526024820152600080516020613ba58339815191526044820152606401610a5e565b611d1d6011838361333c565b508181604051611d2e9291906139dc565b604051908190038120907facdfdd5724262f924ad56bda437d11c6cfe8ca3d58440f1052b335217431ba7e90600090a25050565b60006001600160e01b031982167f2a55205a000000000000000000000000000000000000000000000000000000001480610a1457507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610a14565b6127106bffffffffffffffffffffffff82161115611e3c5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610a5e565b6001600160a01b038216611e925760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610a5e565b604080518082019091526001600160a01b039092168083526bffffffffffffffffffffffff9091166020909201829052600160a01b90910217600155565b6daaeb6d7670e522a718067333cd4e3b15611c2d576040517fc61711340000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611f56573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f7a9190613a81565b611c2d576040517fede71dcc0000000000000000000000000000000000000000000000000000000081526001600160a01b0382166004820152602401610a5e565b6000611fc682611434565b9050806001600160a01b0316836001600160a01b03160361204f5760405162461bcd60e51b815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201527f65720000000000000000000000000000000000000000000000000000000000006064820152608401610a5e565b336001600160a01b038216148061206b575061206b81336108c0565b6120dd5760405162461bcd60e51b815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c000000000000006064820152608401610a5e565b610bfa8383836129b2565b610bfa838383612a1b565b600a54816121435760405162461bcd60e51b815260206004820152601860248201527f7175616e74697479206d757374206265206e6f6e7a65726f00000000000000006044820152606401610a5e565b600060016121518484613a9e565b61215b9190613ab6565b905061218860017f0000000000000000000000000000000000000000000000000000000000000000613ab6565b8111156121bd576121ba60017f0000000000000000000000000000000000000000000000000000000000000000613ab6565b90505b6121c8816003541190565b61223a5760405162461bcd60e51b815260206004820152602660248201527f6e6f7420656e6f756768206d696e7465642079657420666f722074686973206360448201527f6c65616e757000000000000000000000000000000000000000000000000000006064820152608401610a5e565b815b8181116122e0576000818152600660205260409020546001600160a01b03166122ce57600061226a82612445565b60408051808201825282516001600160a01b03908116825260209384015167ffffffffffffffff9081168584019081526000888152600690965293909420915182549351909416600160a01b026001600160e01b0319909316931692909217179055505b806122d881613957565b91505061223c565b506122ec816001613a9e565b600a55505050565b61230e828260405180602001604052806000815250612ddc565b5050565b610bfa8383836040518060200160405280600081525061176b565b6127106bffffffffffffffffffffffff821611156123a05760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610a5e565b6001600160a01b0382166123f65760405162461bcd60e51b815260206004820152601b60248201527f455243323938313a20496e76616c696420706172616d657465727300000000006044820152606401610a5e565b6040805180820182526001600160a01b0393841681526bffffffffffffffffffffffff92831660208083019182526000968752600290529190942093519051909116600160a01b029116179055565b6040805180820190915260008082526020820152612464826003541190565b6124d65760405162461bcd60e51b815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e6578697360448201527f74656e7420746f6b656e000000000000000000000000000000000000000000006064820152608401610a5e565b60007f00000000000000000000000000000000000000000000000000000000000000008310612537576125297f000000000000000000000000000000000000000000000000000000000000000084613ab6565b612534906001613a9e565b90505b825b8181106125a1576000818152600660209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff16918301919091521561258e57949350505050565b508061259981613acd565b915050612539565b5060405162461bcd60e51b815260206004820152602f60248201527f455243373231413a20756e61626c6520746f2064657465726d696e652074686560448201527f206f776e6572206f6620746f6b656e00000000000000000000000000000000006064820152608401610a5e565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b336001600160a01b038316036126c55760405162461bcd60e51b815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c65720000000000006044820152606401610a5e565b3360008181526009602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61273c848484612a1b565b612748848484846131e5565b610c245760405162461bcd60e51b815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527f6563656976657220696d706c656d656e746572000000000000000000000000006064820152608401610a5e565b606060108054610ac8906138be565b606060118054610ac8906138be565b606060128054610ac8906138be565b60608160000361280e5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612838578061282281613957565b91506128319050600a83613943565b9150612812565b60008167ffffffffffffffff8111156128535761285361372b565b6040519080825280601f01601f19166020018201604052801561287d576020820181803683370190505b5090505b841561290057612892600183613ab6565b915061289f600a86613ae4565b6128aa906030613a9e565b60f81b8183815181106128bf576128bf6139ec565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506128f9600a86613943565b9450612881565b949350505050565b60006001600160a01b0382166129865760405162461bcd60e51b815260206004820152603160248201527f455243373231413a206e756d626572206d696e74656420717565727920666f7260448201527f20746865207a65726f20616464726573730000000000000000000000000000006064820152608401610a5e565b506001600160a01b0316600090815260076020526040902054600160801b90046001600160801b031690565b600082815260086020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000612a2682612445565b80519091506000906001600160a01b0316336001600160a01b03161480612a5d575033612a5284610b4b565b6001600160a01b0316145b80612a6f57508151612a6f90336108c0565b905080612ae45760405162461bcd60e51b815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f76656400000000000000000000000000006064820152608401610a5e565b846001600160a01b031682600001516001600160a01b031614612b6f5760405162461bcd60e51b815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f727265637460448201527f206f776e657200000000000000000000000000000000000000000000000000006064820152608401610a5e565b6001600160a01b038416612beb5760405162461bcd60e51b815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610a5e565b612bfb60008484600001516129b2565b6001600160a01b0385166000908152600760205260408120805460019290612c2d9084906001600160801b0316613af8565b82546101009290920a6001600160801b038181021990931691831602179091556001600160a01b03861660009081526007602052604081208054600194509092612c7991859116613b20565b82546001600160801b039182166101009390930a9283029190920219909116179055506040805180820182526001600160a01b03808716825267ffffffffffffffff428116602080850191825260008981526006909152948520935184549151909216600160a01b026001600160e01b03199091169190921617179055612d01846001613a9e565b6000818152600660205260409020549091506001600160a01b0316612d9357612d2b816003541190565b15612d935760408051808201825284516001600160a01b03908116825260208087015167ffffffffffffffff9081168285019081526000878152600690935294909120925183549451909116600160a01b026001600160e01b03199094169116179190911790555b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b600354806001600160a01b038516612e5c5760405162461bcd60e51b815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610a5e565b612e67826003541190565b15612eb45760405162461bcd60e51b815260206004820152601d60248201527f455243373231413a20746f6b656e20616c7265616479206d696e7465640000006044820152606401610a5e565b7f0000000000000000000000000000000000000000000000000000000000000000841115612f4a5760405162461bcd60e51b815260206004820152602260248201527f455243373231413a207175616e7469747920746f206d696e7420746f6f20686960448201527f67680000000000000000000000000000000000000000000000000000000000006064820152608401610a5e565b7f0000000000000000000000000000000000000000000000000000000000000000612f758583613a9e565b1115612fe95760405162461bcd60e51b815260206004820152603760248201527f455243373231413a2063616e206e6f74206d696e742074686174206d616e792060448201527f4e46547320696e207468697320636f6c6c656374696f6e0000000000000000006064820152608401610a5e565b6001600160a01b0385166000908152600760209081526040918290208251808401845290546001600160801b038082168352600160801b9091041691810191909152815180830190925280519091908190613045908890613b20565b6001600160801b031681526020018683602001516130639190613b20565b6001600160801b039081169091526001600160a01b0380891660008181526007602090815260408083208751978301518716600160801b0297909616969096179094558451808601865291825267ffffffffffffffff4281168386019081528983526006909552948120915182549451909516600160a01b026001600160e01b031990941694909216939093179190911790915583905b868110156131d95760405182906001600160a01b038a16906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a461314760008984896131e5565b6131b95760405162461bcd60e51b815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527f6563656976657220696d706c656d656e746572000000000000000000000000006064820152608401610a5e565b816131c381613957565b92505080806131d190613957565b9150506130fa565b50600355505050505050565b60006001600160a01b0384163b1561333157604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613229903390899088908890600401613b4b565b6020604051808303816000875af1925050508015613264575060408051601f3d908101601f1916820190925261326191810190613b87565b60015b613317573d808015613292576040519150601f19603f3d011682016040523d82523d6000602084013e613297565b606091505b50805160000361330f5760405162461bcd60e51b815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527f6563656976657220696d706c656d656e746572000000000000000000000000006064820152608401610a5e565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612900565b506001949350505050565b828054613348906138be565b90600052602060002090601f01602090048101928261336a57600085556133b0565b82601f106133835782800160ff198235161785556133b0565b828001600101855582156133b0579182015b828111156133b0578235825591602001919060010190613395565b506111789291505b8082111561117857600081556001016133b8565b6001600160e01b031981168114611c2d57600080fd5b6000602082840312156133f457600080fd5b8135611896816133cc565b80356001600160a01b038116811461341657600080fd5b919050565b80356bffffffffffffffffffffffff8116811461341657600080fd5b6000806040838503121561344a57600080fd5b613453836133ff565b91506134616020840161341b565b90509250929050565b60005b8381101561348557818101518382015260200161346d565b83811115610c245750506000910152565b600081518084526134ae81602086016020860161346a565b601f01601f19169290920160200192915050565b6020815260006118966020830184613496565b6000602082840312156134e757600080fd5b5035919050565b6000806040838503121561350157600080fd5b61350a836133ff565b946020939093013593505050565b60008060006060848603121561352d57600080fd5b613536846133ff565b9250613544602085016133ff565b9150604084013590509250925092565b6000806040838503121561356757600080fd5b50508035926020909101359150565b6000806000806060858703121561358c57600080fd5b8435935061359c602086016133ff565b9250604085013567ffffffffffffffff808211156135b957600080fd5b818701915087601f8301126135cd57600080fd5b8135818111156135dc57600080fd5b8860208260051b85010111156135f157600080fd5b95989497505060200194505050565b6000806020838503121561361357600080fd5b823567ffffffffffffffff8082111561362b57600080fd5b818501915085601f83011261363f57600080fd5b81358181111561364e57600080fd5b86602082850101111561366057600080fd5b60209290920196919550909350505050565b60008060006060848603121561368757600080fd5b83359250613697602085016133ff565b91506136a56040850161341b565b90509250925092565b6000602082840312156136c057600080fd5b611896826133ff565b8015158114611c2d57600080fd5b6000602082840312156136e957600080fd5b8135611896816136c9565b6000806040838503121561370757600080fd5b613710836133ff565b91506020830135613720816136c9565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561375757600080fd5b613760856133ff565b935061376e602086016133ff565b925060408501359150606085013567ffffffffffffffff8082111561379257600080fd5b818701915087601f8301126137a657600080fd5b8135818111156137b8576137b861372b565b604051601f8201601f19908116603f011681019083821181831017156137e0576137e061372b565b816040528281528a60208487010111156137f957600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060006060848603121561383257600080fd5b61383b846133ff565b95602085013595506040909401359392505050565b6020808252825182820181905260009190848201906040850190845b818110156138885783518352928401929184019160010161386c565b50909695505050505050565b600080604083850312156138a757600080fd5b6138b0836133ff565b9150613461602084016133ff565b600181811c908216806138d257607f821691505b6020821081036138f257634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615613928576139286138f8565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826139525761395261392d565b500490565b600060018201613969576139696138f8565b5060010190565b8481526001600160a01b03841660208201526060604082015281606082015260007f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8311156139be57600080fd5b8260051b808560808501376000920160800191825250949350505050565b8183823760009101908152919050565b634e487b7160e01b600052603260045260246000fd5b60008451613a1481846020890161346a565b845190830190613a2881836020890161346a565b8451910190613a3b81836020880161346a565b0195945050505050565b60008351613a5781846020880161346a565b600360fc1b9083019081528351613a7581600184016020880161346a565b01600101949350505050565b600060208284031215613a9357600080fd5b8151611896816136c9565b60008219821115613ab157613ab16138f8565b500190565b600082821015613ac857613ac86138f8565b500390565b600081613adc57613adc6138f8565b506000190190565b600082613af357613af361392d565b500690565b60006001600160801b0383811690831681811015613b1857613b186138f8565b039392505050565b60006001600160801b03808316818516808303821115613b4257613b426138f8565b01949350505050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152613b7d6080830184613496565b9695505050505050565b600060208284031215613b9957600080fd5b8151611896816133cc56fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220916f387d658a4af7f054767661a218c600c4a9de948abd0ee435ab2266d889b664736f6c634300080d0033455243373231413a206d61782062617463682073697a65206d75737420626520000000000000000000000000000000000000000000000000000000000000003200000000000000000000000000000000000000000000000000000000000026c2
Deployed Bytecode
0x60806040526004361061030c5760003560e01c806370a082311161019a578063b88d4fde116100e1578063e0a808531161008a578063f2fde38b11610064578063f2fde38b1461090e578063fa8de5c71461092e578063fe2c7fee1461094e57600080fd5b8063e0a8085314610885578063e985e9c5146108a5578063f0f44260146108ee57600080fd5b8063cb97fca1116100bb578063cb97fca11461082f578063d7224ba01461084f578063dc33e6811461086557600080fd5b8063b88d4fde146107c2578063c839fe94146107e2578063c87b56dd1461080f57600080fd5b80639231ab2a11610143578063a89da3731161011d578063a89da37314610768578063aa1b103f14610798578063ac446002146107ad57600080fd5b80639231ab2a146106e557806395d89b4114610733578063a22cb4651461074857600080fd5b806383f24d4c1161017457806383f24d4c146106875780638a616bc0146106a75780638da5cb5b146106c757600080fd5b806370a0823114610633578063715018a61461065357806375143ef21461066857600080fd5b8063309992131161025e57806354214f69116102075780635b5803b9116101e15780635b5803b9146105d35780635c1f1807146105f35780636352211e1461061357600080fd5b806354214f691461057957806355f804b3146105935780635944c753146105b357600080fd5b806341f434341161023857806341f434341461051757806342842e0e146105395780634f6ccce71461055957600080fd5b806330999213146104c457806330d9a62a146104d757806340c10f19146104f757600080fd5b8063180b0d7e116102c05780632a55205a1161029a5780632a55205a146104455780632d20fb60146104845780632f745c59146104a457600080fd5b8063180b0d7e146103e957806318160ddd1461040657806323b872dd1461042557600080fd5b806306fdde03116102f157806306fdde031461036f578063081812fc14610391578063095ea7b3146103c957600080fd5b806301ffc9a71461031857806304634d8d1461034d57600080fd5b3661031357005b600080fd5b34801561032457600080fd5b506103386103333660046133e2565b61096e565b60405190151581526020015b60405180910390f35b34801561035957600080fd5b5061036d610368366004613437565b610a1a565b005b34801561037b57600080fd5b50610384610ab9565b60405161034491906134c2565b34801561039d57600080fd5b506103b16103ac3660046134d5565b610b4b565b6040516001600160a01b039091168152602001610344565b3480156103d557600080fd5b5061036d6103e43660046134ee565b610be6565b3480156103f557600080fd5b506040516127108152602001610344565b34801561041257600080fd5b506003545b604051908152602001610344565b34801561043157600080fd5b5061036d610440366004613518565b610bff565b34801561045157600080fd5b50610465610460366004613554565b610c2a565b604080516001600160a01b039093168352602083019190915201610344565b34801561049057600080fd5b5061036d61049f3660046134d5565b610ce5565b3480156104b057600080fd5b506104176104bf3660046134ee565b610d64565b61036d6104d2366004613576565b610f82565b3480156104e357600080fd5b50600c546103b1906001600160a01b031681565b34801561050357600080fd5b5061036d6105123660046134ee565b61100b565b34801561052357600080fd5b506103b16daaeb6d7670e522a718067333cd4e81565b34801561054557600080fd5b5061036d610554366004613518565b6110d4565b34801561056557600080fd5b506104176105743660046134d5565b6110f9565b34801561058557600080fd5b50600f546103389060ff1681565b34801561059f57600080fd5b5061036d6105ae366004613600565b61117c565b3480156105bf57600080fd5b5061036d6105ce366004613672565b611292565b3480156105df57600080fd5b5061036d6105ee3660046136ae565b611330565b3480156105ff57600080fd5b5061036d61060e3660046136d7565b6113a7565b34801561061f57600080fd5b506103b161062e3660046134d5565b611434565b34801561063f57600080fd5b5061041761064e3660046136ae565b611446565b34801561065f57600080fd5b5061036d6114e9565b34801561067457600080fd5b50600f5461033890610100900460ff1681565b34801561069357600080fd5b50600d546103b1906001600160a01b031681565b3480156106b357600080fd5b5061036d6106c23660046134d5565b61153d565b3480156106d357600080fd5b506000546001600160a01b03166103b1565b3480156106f157600080fd5b506107056107003660046134d5565b6115c2565b6040805182516001600160a01b0316815260209283015167ffffffffffffffff169281019290925201610344565b34801561073f57600080fd5b506103846115df565b34801561075457600080fd5b5061036d6107633660046136f4565b6115ee565b34801561077457600080fd5b506103386107833660046136ae565b600e6020526000908152604090205460ff1681565b3480156107a457600080fd5b5061036d611602565b3480156107b957600080fd5b5061036d611654565b3480156107ce57600080fd5b5061036d6107dd366004613741565b61176b565b3480156107ee57600080fd5b506108026107fd36600461381d565b611798565b6040516103449190613850565b34801561081b57600080fd5b5061038461082a3660046134d5565b61189d565b34801561083b57600080fd5b5061036d61084a3660046136f4565b611995565b34801561085b57600080fd5b50610417600a5481565b34801561087157600080fd5b506104176108803660046136ae565b611a31565b34801561089157600080fd5b5061036d6108a03660046136d7565b611a3c565b3480156108b157600080fd5b506103386108c0366004613894565b6001600160a01b03918216600090815260096020908152604080832093909416825291909152205460ff1690565b3480156108fa57600080fd5b5061036d6109093660046136ae565b611ac1565b34801561091a57600080fd5b5061036d6109293660046136ae565b611b60565b34801561093a57600080fd5b5061036d610949366004613600565b611c30565b34801561095a57600080fd5b5061036d610969366004613600565b611cc9565b60006001600160e01b031982167f80ac58cd0000000000000000000000000000000000000000000000000000000014806109d157506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610a0557506001600160e01b031982167f780e9d6300000000000000000000000000000000000000000000000000000000145b80610a145750610a1482611d62565b92915050565b6000546001600160a01b03163314610a675760405162461bcd60e51b81526020600482018190526024820152600080516020613ba583398151915260448201526064015b60405180910390fd5b610a718282611dc9565b6040516bffffffffffffffffffffffff8216906001600160a01b038416907fa1edde4ed5c1392c90dccd8e051a4080b761850e49a24c77d826348a51e1f8dc90600090a35050565b606060048054610ac8906138be565b80601f0160208091040260200160405190810160405280929190818152602001828054610af4906138be565b8015610b415780601f10610b1657610100808354040283529160200191610b41565b820191906000526020600020905b815481529060010190602001808311610b2457829003601f168201915b5050505050905090565b6000610b58826003541190565b610bca5760405162461bcd60e51b815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201527f78697374656e7420746f6b656e000000000000000000000000000000000000006064820152608401610a5e565b506000908152600860205260409020546001600160a01b031690565b81610bf081611ed0565b610bfa8383611fbb565b505050565b826001600160a01b0381163314610c1957610c1933611ed0565b610c248484846120e8565b50505050565b60008281526002602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046bffffffffffffffffffffffff16928201929092528291610ca95750604080518082019091526001546001600160a01b0381168252600160a01b90046bffffffffffffffffffffffff1660208201525b602081015160009061271090610ccd906bffffffffffffffffffffffff168761390e565b610cd79190613943565b915196919550909350505050565b6000546001600160a01b03163314610d2d5760405162461bcd60e51b81526020600482018190526024820152600080516020613ba58339815191526044820152606401610a5e565b610d36816120f3565b60405181907f63978e7bbb6bd665d16fcf4c4502864e3631a7433807e27ba66898ba73c6496390600090a250565b6000610d6f60035490565b8210610de35760405162461bcd60e51b815260206004820152603d60248201527f455243373231413a2077652063616e6e6f742073656172636820666f7220766160448201527f6c7565732067726561746572207468616e20746f74616c537570706c790000006064820152608401610a5e565b610dec83611446565b8210610e605760405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e60448201527f64730000000000000000000000000000000000000000000000000000000000006064820152608401610a5e565b6000610e6b60035490565b905060008060005b83811015610f13576000818152600660209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff169183019190915215610ec657805192505b876001600160a01b0316836001600160a01b031603610f0057868403610ef257509350610a1492505050565b83610efc81613957565b9450505b5080610f0b81613957565b915050610e73565b5060405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201527f6f776e657220627920696e6465780000000000000000000000000000000000006064820152608401610a5e565b600d546040517ffb30f2bf0000000000000000000000000000000000000000000000000000000081526001600160a01b039091169063fb30f2bf903490610fd3908890889088908890600401613970565b6000604051808303818588803b158015610fec57600080fd5b505af1158015611000573d6000803e3d6000fd5b505050505050505050565b336000908152600e602052604090205460ff1661106a5760405162461bcd60e51b815260206004820152601160248201527f596f752063616e2774206d696e74203b290000000000000000000000000000006044820152606401610a5e565b6002600b54036110bc5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a5e565b6002600b556110cb82826122f4565b50506001600b55565b826001600160a01b03811633146110ee576110ee33611ed0565b610c24848484612312565b600061110460035490565b82106111785760405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f7560448201527f6e647300000000000000000000000000000000000000000000000000000000006064820152608401610a5e565b5090565b6000546001600160a01b031633146111c45760405162461bcd60e51b81526020600482018190526024820152600080516020613ba58339815191526044820152606401610a5e565b600f54610100900460ff166112415760405162461bcd60e51b815260206004820152602760248201527f55746f7069613a206d696e74696e67206d75737420626520636f6d706c65746560448201527f64206669727374000000000000000000000000000000000000000000000000006064820152608401610a5e565b61124d6010838361333c565b50818160405161125e9291906139dc565b604051908190038120907f23c8c9488efebfd474e85a7956de6f39b17c7ab88502d42a623db2d8e382bbaa90600090a25050565b6000546001600160a01b031633146112da5760405162461bcd60e51b81526020600482018190526024820152600080516020613ba58339815191526044820152606401610a5e565b6112e583838361232d565b806bffffffffffffffffffffffff16826001600160a01b0316847f2595213009f64247e2789cf9981bcc53ee736a6aa52042a651aa1549ae6fff6160405160405180910390a4505050565b6000546001600160a01b031633146113785760405162461bcd60e51b81526020600482018190526024820152600080516020613ba58339815191526044820152606401610a5e565b600d805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6000546001600160a01b031633146113ef5760405162461bcd60e51b81526020600482018190526024820152600080516020613ba58339815191526044820152606401610a5e565b600f805461ff001916610100831515908102919091179091556040517ff905f0088811c65c3d6b98eee219bed12b48dd9d3bbe131fe15b99fbdbb6f60790600090a250565b600061143f82612445565b5192915050565b60006001600160a01b0382166114c45760405162461bcd60e51b815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201527f65726f20616464726573730000000000000000000000000000000000000000006064820152608401610a5e565b506001600160a01b03166000908152600760205260409020546001600160801b031690565b6000546001600160a01b031633146115315760405162461bcd60e51b81526020600482018190526024820152600080516020613ba58339815191526044820152606401610a5e565b61153b6000612610565b565b6000546001600160a01b031633146115855760405162461bcd60e51b81526020600482018190526024820152600080516020613ba58339815191526044820152606401610a5e565b60008181526002602052604081205560405181907f2d0c64cb223c165096aa5260f0c4f12caf09469f917f6139ff17e1795a01225d90600090a250565b6040805180820190915260008082526020820152610a1482612445565b606060058054610ac8906138be565b816115f881611ed0565b610bfa838361266d565b6000546001600160a01b0316331461164a5760405162461bcd60e51b81526020600482018190526024820152600080516020613ba58339815191526044820152606401610a5e565b61153b6000600155565b6000546001600160a01b0316331461169c5760405162461bcd60e51b81526020600482018190526024820152600080516020613ba58339815191526044820152606401610a5e565b600c546040516000916001600160a01b03169047908381818185875af1925050503d80600081146116e9576040519150601f19603f3d011682016040523d82523d6000602084013e6116ee565b606091505b505090508061173f5760405162461bcd60e51b815260206004820152601060248201527f5472616e73666572206661696c65642e000000000000000000000000000000006044820152606401610a5e565b6040517fb6c58ac2c9469c7de2607e230e2b25bd83bb307d5c8dad8e68a726509e6d432f90600090a150565b836001600160a01b03811633146117855761178533611ed0565b61179185858585612731565b5050505050565b606060006117a585611446565b9050806000036117c5575050604080516000815260208101909152611896565b60008167ffffffffffffffff8111156117e0576117e061372b565b604051908082528060200260200182016040528015611809578160200160208202803683370190505b509050600061181760035490565b905060008082871115611828578296505b50865b8681101561188e57886001600160a01b031661184682611434565b6001600160a01b03160361187e5780848381518110611867576118676139ec565b602090810291909101015261187b82613957565b91505b61188781613957565b905061182b565b509193505050505b9392505050565b60606118aa826003541190565b61191c5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610a5e565b60006119266127ba565b905060006119326127c9565b9050600061193e6127d8565b600f5490915060ff16156119825782611956866127e7565b8260405160200161196993929190613a02565b6040516020818303038152906040529350505050919050565b8181604051602001611969929190613a45565b6000546001600160a01b031633146119dd5760405162461bcd60e51b81526020600482018190526024820152600080516020613ba58339815191526044820152606401610a5e565b6001600160a01b0382166000818152600e6020526040808220805460ff191685151590811790915590519092917f307b0e6c4e436d6ecea33164555a3eaff43103a084b774e1df66c0718486ec1691a35050565b6000610a1482612908565b6000546001600160a01b03163314611a845760405162461bcd60e51b81526020600482018190526024820152600080516020613ba58339815191526044820152606401610a5e565b600f805460ff19168215159081179091556040517f47ae3db957b6f3cb6833ac96788154df5ae2f29502e5a710b933c85e2ae32cef90600090a250565b6000546001600160a01b03163314611b095760405162461bcd60e51b81526020600482018190526024820152600080516020613ba58339815191526044820152606401610a5e565b600c805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0383169081179091556040517fcb7ef3e545f5cdb893f5c568ba710fe08f336375a2d9fd66e161033f8fc09ef390600090a250565b6000546001600160a01b03163314611ba85760405162461bcd60e51b81526020600482018190526024820152600080516020613ba58339815191526044820152606401610a5e565b6001600160a01b038116611c245760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610a5e565b611c2d81612610565b50565b6000546001600160a01b03163314611c785760405162461bcd60e51b81526020600482018190526024820152600080516020613ba58339815191526044820152606401610a5e565b611c846012838361333c565b508181604051611c959291906139dc565b604051908190038120907f14ddf6549dfeae27cc1d430b4eaad9eec900623d0c765ae6dba72ebf3c72341d90600090a25050565b6000546001600160a01b03163314611d115760405162461bcd60e51b81526020600482018190526024820152600080516020613ba58339815191526044820152606401610a5e565b611d1d6011838361333c565b508181604051611d2e9291906139dc565b604051908190038120907facdfdd5724262f924ad56bda437d11c6cfe8ca3d58440f1052b335217431ba7e90600090a25050565b60006001600160e01b031982167f2a55205a000000000000000000000000000000000000000000000000000000001480610a1457507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610a14565b6127106bffffffffffffffffffffffff82161115611e3c5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610a5e565b6001600160a01b038216611e925760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610a5e565b604080518082019091526001600160a01b039092168083526bffffffffffffffffffffffff9091166020909201829052600160a01b90910217600155565b6daaeb6d7670e522a718067333cd4e3b15611c2d576040517fc61711340000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611f56573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f7a9190613a81565b611c2d576040517fede71dcc0000000000000000000000000000000000000000000000000000000081526001600160a01b0382166004820152602401610a5e565b6000611fc682611434565b9050806001600160a01b0316836001600160a01b03160361204f5760405162461bcd60e51b815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201527f65720000000000000000000000000000000000000000000000000000000000006064820152608401610a5e565b336001600160a01b038216148061206b575061206b81336108c0565b6120dd5760405162461bcd60e51b815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c000000000000006064820152608401610a5e565b610bfa8383836129b2565b610bfa838383612a1b565b600a54816121435760405162461bcd60e51b815260206004820152601860248201527f7175616e74697479206d757374206265206e6f6e7a65726f00000000000000006044820152606401610a5e565b600060016121518484613a9e565b61215b9190613ab6565b905061218860017f00000000000000000000000000000000000000000000000000000000000026c2613ab6565b8111156121bd576121ba60017f00000000000000000000000000000000000000000000000000000000000026c2613ab6565b90505b6121c8816003541190565b61223a5760405162461bcd60e51b815260206004820152602660248201527f6e6f7420656e6f756768206d696e7465642079657420666f722074686973206360448201527f6c65616e757000000000000000000000000000000000000000000000000000006064820152608401610a5e565b815b8181116122e0576000818152600660205260409020546001600160a01b03166122ce57600061226a82612445565b60408051808201825282516001600160a01b03908116825260209384015167ffffffffffffffff9081168584019081526000888152600690965293909420915182549351909416600160a01b026001600160e01b0319909316931692909217179055505b806122d881613957565b91505061223c565b506122ec816001613a9e565b600a55505050565b61230e828260405180602001604052806000815250612ddc565b5050565b610bfa8383836040518060200160405280600081525061176b565b6127106bffffffffffffffffffffffff821611156123a05760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610a5e565b6001600160a01b0382166123f65760405162461bcd60e51b815260206004820152601b60248201527f455243323938313a20496e76616c696420706172616d657465727300000000006044820152606401610a5e565b6040805180820182526001600160a01b0393841681526bffffffffffffffffffffffff92831660208083019182526000968752600290529190942093519051909116600160a01b029116179055565b6040805180820190915260008082526020820152612464826003541190565b6124d65760405162461bcd60e51b815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e6578697360448201527f74656e7420746f6b656e000000000000000000000000000000000000000000006064820152608401610a5e565b60007f00000000000000000000000000000000000000000000000000000000000000328310612537576125297f000000000000000000000000000000000000000000000000000000000000003284613ab6565b612534906001613a9e565b90505b825b8181106125a1576000818152600660209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff16918301919091521561258e57949350505050565b508061259981613acd565b915050612539565b5060405162461bcd60e51b815260206004820152602f60248201527f455243373231413a20756e61626c6520746f2064657465726d696e652074686560448201527f206f776e6572206f6620746f6b656e00000000000000000000000000000000006064820152608401610a5e565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b336001600160a01b038316036126c55760405162461bcd60e51b815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c65720000000000006044820152606401610a5e565b3360008181526009602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61273c848484612a1b565b612748848484846131e5565b610c245760405162461bcd60e51b815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527f6563656976657220696d706c656d656e746572000000000000000000000000006064820152608401610a5e565b606060108054610ac8906138be565b606060118054610ac8906138be565b606060128054610ac8906138be565b60608160000361280e5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612838578061282281613957565b91506128319050600a83613943565b9150612812565b60008167ffffffffffffffff8111156128535761285361372b565b6040519080825280601f01601f19166020018201604052801561287d576020820181803683370190505b5090505b841561290057612892600183613ab6565b915061289f600a86613ae4565b6128aa906030613a9e565b60f81b8183815181106128bf576128bf6139ec565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506128f9600a86613943565b9450612881565b949350505050565b60006001600160a01b0382166129865760405162461bcd60e51b815260206004820152603160248201527f455243373231413a206e756d626572206d696e74656420717565727920666f7260448201527f20746865207a65726f20616464726573730000000000000000000000000000006064820152608401610a5e565b506001600160a01b0316600090815260076020526040902054600160801b90046001600160801b031690565b600082815260086020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000612a2682612445565b80519091506000906001600160a01b0316336001600160a01b03161480612a5d575033612a5284610b4b565b6001600160a01b0316145b80612a6f57508151612a6f90336108c0565b905080612ae45760405162461bcd60e51b815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f76656400000000000000000000000000006064820152608401610a5e565b846001600160a01b031682600001516001600160a01b031614612b6f5760405162461bcd60e51b815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f727265637460448201527f206f776e657200000000000000000000000000000000000000000000000000006064820152608401610a5e565b6001600160a01b038416612beb5760405162461bcd60e51b815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610a5e565b612bfb60008484600001516129b2565b6001600160a01b0385166000908152600760205260408120805460019290612c2d9084906001600160801b0316613af8565b82546101009290920a6001600160801b038181021990931691831602179091556001600160a01b03861660009081526007602052604081208054600194509092612c7991859116613b20565b82546001600160801b039182166101009390930a9283029190920219909116179055506040805180820182526001600160a01b03808716825267ffffffffffffffff428116602080850191825260008981526006909152948520935184549151909216600160a01b026001600160e01b03199091169190921617179055612d01846001613a9e565b6000818152600660205260409020549091506001600160a01b0316612d9357612d2b816003541190565b15612d935760408051808201825284516001600160a01b03908116825260208087015167ffffffffffffffff9081168285019081526000878152600690935294909120925183549451909116600160a01b026001600160e01b03199094169116179190911790555b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b600354806001600160a01b038516612e5c5760405162461bcd60e51b815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610a5e565b612e67826003541190565b15612eb45760405162461bcd60e51b815260206004820152601d60248201527f455243373231413a20746f6b656e20616c7265616479206d696e7465640000006044820152606401610a5e565b7f0000000000000000000000000000000000000000000000000000000000000032841115612f4a5760405162461bcd60e51b815260206004820152602260248201527f455243373231413a207175616e7469747920746f206d696e7420746f6f20686960448201527f67680000000000000000000000000000000000000000000000000000000000006064820152608401610a5e565b7f00000000000000000000000000000000000000000000000000000000000026c2612f758583613a9e565b1115612fe95760405162461bcd60e51b815260206004820152603760248201527f455243373231413a2063616e206e6f74206d696e742074686174206d616e792060448201527f4e46547320696e207468697320636f6c6c656374696f6e0000000000000000006064820152608401610a5e565b6001600160a01b0385166000908152600760209081526040918290208251808401845290546001600160801b038082168352600160801b9091041691810191909152815180830190925280519091908190613045908890613b20565b6001600160801b031681526020018683602001516130639190613b20565b6001600160801b039081169091526001600160a01b0380891660008181526007602090815260408083208751978301518716600160801b0297909616969096179094558451808601865291825267ffffffffffffffff4281168386019081528983526006909552948120915182549451909516600160a01b026001600160e01b031990941694909216939093179190911790915583905b868110156131d95760405182906001600160a01b038a16906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a461314760008984896131e5565b6131b95760405162461bcd60e51b815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527f6563656976657220696d706c656d656e746572000000000000000000000000006064820152608401610a5e565b816131c381613957565b92505080806131d190613957565b9150506130fa565b50600355505050505050565b60006001600160a01b0384163b1561333157604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613229903390899088908890600401613b4b565b6020604051808303816000875af1925050508015613264575060408051601f3d908101601f1916820190925261326191810190613b87565b60015b613317573d808015613292576040519150601f19603f3d011682016040523d82523d6000602084013e613297565b606091505b50805160000361330f5760405162461bcd60e51b815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527f6563656976657220696d706c656d656e746572000000000000000000000000006064820152608401610a5e565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612900565b506001949350505050565b828054613348906138be565b90600052602060002090601f01602090048101928261336a57600085556133b0565b82601f106133835782800160ff198235161785556133b0565b828001600101855582156133b0579182015b828111156133b0578235825591602001919060010190613395565b506111789291505b8082111561117857600081556001016133b8565b6001600160e01b031981168114611c2d57600080fd5b6000602082840312156133f457600080fd5b8135611896816133cc565b80356001600160a01b038116811461341657600080fd5b919050565b80356bffffffffffffffffffffffff8116811461341657600080fd5b6000806040838503121561344a57600080fd5b613453836133ff565b91506134616020840161341b565b90509250929050565b60005b8381101561348557818101518382015260200161346d565b83811115610c245750506000910152565b600081518084526134ae81602086016020860161346a565b601f01601f19169290920160200192915050565b6020815260006118966020830184613496565b6000602082840312156134e757600080fd5b5035919050565b6000806040838503121561350157600080fd5b61350a836133ff565b946020939093013593505050565b60008060006060848603121561352d57600080fd5b613536846133ff565b9250613544602085016133ff565b9150604084013590509250925092565b6000806040838503121561356757600080fd5b50508035926020909101359150565b6000806000806060858703121561358c57600080fd5b8435935061359c602086016133ff565b9250604085013567ffffffffffffffff808211156135b957600080fd5b818701915087601f8301126135cd57600080fd5b8135818111156135dc57600080fd5b8860208260051b85010111156135f157600080fd5b95989497505060200194505050565b6000806020838503121561361357600080fd5b823567ffffffffffffffff8082111561362b57600080fd5b818501915085601f83011261363f57600080fd5b81358181111561364e57600080fd5b86602082850101111561366057600080fd5b60209290920196919550909350505050565b60008060006060848603121561368757600080fd5b83359250613697602085016133ff565b91506136a56040850161341b565b90509250925092565b6000602082840312156136c057600080fd5b611896826133ff565b8015158114611c2d57600080fd5b6000602082840312156136e957600080fd5b8135611896816136c9565b6000806040838503121561370757600080fd5b613710836133ff565b91506020830135613720816136c9565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561375757600080fd5b613760856133ff565b935061376e602086016133ff565b925060408501359150606085013567ffffffffffffffff8082111561379257600080fd5b818701915087601f8301126137a657600080fd5b8135818111156137b8576137b861372b565b604051601f8201601f19908116603f011681019083821181831017156137e0576137e061372b565b816040528281528a60208487010111156137f957600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060006060848603121561383257600080fd5b61383b846133ff565b95602085013595506040909401359392505050565b6020808252825182820181905260009190848201906040850190845b818110156138885783518352928401929184019160010161386c565b50909695505050505050565b600080604083850312156138a757600080fd5b6138b0836133ff565b9150613461602084016133ff565b600181811c908216806138d257607f821691505b6020821081036138f257634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615613928576139286138f8565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826139525761395261392d565b500490565b600060018201613969576139696138f8565b5060010190565b8481526001600160a01b03841660208201526060604082015281606082015260007f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8311156139be57600080fd5b8260051b808560808501376000920160800191825250949350505050565b8183823760009101908152919050565b634e487b7160e01b600052603260045260246000fd5b60008451613a1481846020890161346a565b845190830190613a2881836020890161346a565b8451910190613a3b81836020880161346a565b0195945050505050565b60008351613a5781846020880161346a565b600360fc1b9083019081528351613a7581600184016020880161346a565b01600101949350505050565b600060208284031215613a9357600080fd5b8151611896816136c9565b60008219821115613ab157613ab16138f8565b500190565b600082821015613ac857613ac86138f8565b500390565b600081613adc57613adc6138f8565b506000190190565b600082613af357613af361392d565b500690565b60006001600160801b0383811690831681811015613b1857613b186138f8565b039392505050565b60006001600160801b03808316818516808303821115613b4257613b426138f8565b01949350505050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152613b7d6080830184613496565b9695505050505050565b600060208284031215613b9957600080fd5b8151611896816133cc56fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220916f387d658a4af7f054767661a218c600c4a9de948abd0ee435ab2266d889b664736f6c634300080d0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000003200000000000000000000000000000000000000000000000000000000000026c2
-----Decoded View---------------
Arg [0] : maxBatchSize_ (uint256): 50
Arg [1] : collectionSize_ (uint256): 9922
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000032
Arg [1] : 00000000000000000000000000000000000000000000000000000000000026c2
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.