Overview
TokenID
381
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:
HashBrown
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: Unlicensed // Modified to enforce filters for transfers. import '@openzeppelin/contracts/security/ReentrancyGuard.sol'; import '@openzeppelin/contracts/utils/cryptography/MerkleProof.sol'; import '@openzeppelin/contracts/access/Ownable.sol'; import '@openzeppelin/contracts/utils/Strings.sol'; import 'erc721a/contracts/ERC721A.sol'; import 'operator-filter-registry/src/DefaultOperatorFilterer.sol'; import '@openzeppelin/contracts/interfaces/IERC2981.sol'; import '@openzeppelin/contracts/utils/math/SafeMath.sol'; pragma solidity 0.8.17; contract HashBrown is ERC721A, Ownable, ReentrancyGuard, DefaultOperatorFilterer { using Strings for uint256; // ================== Variables Start ======================= bytes32 public merkleRoot; string public uri; string public uriSuffix = ".json"; string public hiddenMetadataUri = "ipfs://JSON-CID/hidden.json"; uint256 public price = 0.0149 ether; uint256 public supplyLimit = 555; uint256 public wlsupplyLimit = 555; uint256 public constant ROYALTY_PERCENTAGE = 5; uint256 public maxMintAmountPerTx = 2; uint256 public wlmaxMintAmountPerTx = 2; uint256 public maxLimitPerWallet = 2; uint256 public wlmaxLimitPerWallet = 2; bool public whitelistSale = false; bool public publicSale = false; bool public revealed = false; mapping(address => uint256) public wlMintCount; mapping(address => uint256) public publicMintCount; uint256 public publicMinted; uint256 public wlMinted; // ================== Variables End ======================= // ================== Errors =========================== error TokenDoesNotExist(uint256 id); // ================== Constructor Start ======================= constructor(string memory _uri) ERC721A("HashBrown", "HB") payable { seturi(_uri); } function setApprovalForAll(address operator, bool approved) public override onlyAllowedOperatorApproval(operator) { super.setApprovalForAll(operator, approved); } function approve(address operator, uint256 tokenId) public payable override onlyAllowedOperatorApproval(operator) { super.approve(operator, tokenId); } function transferFrom(address from, address to, uint256 tokenId) public payable override onlyAllowedOperator(from) { super.transferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId) public payable override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public payable override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId, data); } function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount) { if (!_exists(tokenId)) { revert TokenDoesNotExist(tokenId); } return (address(0x0Eb0899f21e509d85b12b4C5BB96b004A6A72289), SafeMath.div(SafeMath.mul(salePrice, ROYALTY_PERCENTAGE), 100)); } // ================== Constructor End ======================= // ================== Mint Functions Start ======================= function WLmint(uint256 _mintAmount, bytes32[] calldata _merkleProof) public payable { // Verify wl requirements require(whitelistSale, 'The WlSale is paused!'); bytes32 leaf = keccak256(abi.encodePacked(_msgSender())); require(MerkleProof.verify(_merkleProof, merkleRoot, leaf), 'Invalid proof!'); // Normal requirements require(_mintAmount > 0 && _mintAmount <= wlmaxMintAmountPerTx, 'Invalid mint amount!'); require(totalSupply() + _mintAmount <= wlsupplyLimit, 'Max supply exceeded!'); require(wlMintCount[msg.sender] + _mintAmount <= wlmaxLimitPerWallet, 'Max mint per wallet exceeded!'); require(msg.value >= price * _mintAmount, 'Insufficient funds!'); // Mint _safeMint(_msgSender(), _mintAmount); // Mapping update wlMintCount[msg.sender] += _mintAmount; wlMinted += _mintAmount; } function PublicMint(uint256 _mintAmount) public payable { // Normal requirements require(publicSale, 'The PublicSale is paused!'); require(_mintAmount > 0 && _mintAmount <= maxMintAmountPerTx, 'Invalid mint amount!'); require(totalSupply() + _mintAmount <= supplyLimit, 'Max supply exceeded!'); require(publicMintCount[msg.sender] + _mintAmount <= maxLimitPerWallet, 'Max mint per wallet exceeded!'); require(msg.value >= price * _mintAmount, 'Insufficient funds!'); // Mint _safeMint(_msgSender(), _mintAmount); // Mapping update publicMintCount[msg.sender] += _mintAmount; publicMinted += _mintAmount; } function OwnerMint(uint256 _mintAmount, address _receiver) public onlyOwner { require(totalSupply() + _mintAmount <= supplyLimit, 'Max supply exceeded!'); _safeMint(_receiver, _mintAmount); } function Airdrop(uint256 _mintAmount, address _receiver) public onlyOwner { require(totalSupply() + _mintAmount <= supplyLimit, 'Max supply exceeded!'); _safeMint(_receiver, _mintAmount); } // ================== Mint Functions End ======================= // ================== Set Functions Start ======================= // reveal function setRevealed(bool _state) public onlyOwner { revealed = _state; } // uri function seturi(string memory _uri) public onlyOwner { uri = _uri; } function setUriSuffix(string memory _uriSuffix) public onlyOwner { uriSuffix = _uriSuffix; } function setHiddenMetadataUri(string memory _hiddenMetadataUri) public onlyOwner { hiddenMetadataUri = _hiddenMetadataUri; } // sales toggle function setpublicSale() public onlyOwner { publicSale = !publicSale; } function setwlSale() public onlyOwner { whitelistSale = !whitelistSale; } // hash set function setwlMerkleRootHash(bytes32 _merkleRoot) public onlyOwner { merkleRoot = _merkleRoot; } function setMaxMintAmountPerTx(uint256 _maxMintAmountPerTx) public onlyOwner { maxMintAmountPerTx = _maxMintAmountPerTx; } function setwlmaxMintAmountPerTx(uint256 _wlmaxMintAmountPerTx) public onlyOwner { wlmaxMintAmountPerTx = _wlmaxMintAmountPerTx; } // pax per wallet function setmaxLimitPerWallet(uint256 _pub, uint256 _wl) public onlyOwner { maxLimitPerWallet = _pub; wlmaxLimitPerWallet = _wl; } // price function setPrice(uint256 _price) public onlyOwner { price = _price; } // supply limit function setsupplyLimit(uint256 _supplyLimit) public onlyOwner { supplyLimit = _supplyLimit; } function setWLsupplyLimit(uint256 _wlsupplyLimit) public onlyOwner { wlsupplyLimit = _wlsupplyLimit; } // ================== Set Functions End ======================= // ================== Withdraw Function Start ======================= function withdraw() public onlyOwner nonReentrant { //owner withdraw (bool os, ) = payable(owner()).call{value: address(this).balance}(''); require(os); } // ================== Withdraw Function End======================= // ================== Read Functions Start ======================= function tokensOfOwner(address owner) external view returns (uint256[] memory) { unchecked { uint256[] memory a = new uint256[](balanceOf(owner)); uint256 end = _nextTokenId(); uint256 tokenIdsIdx; address currOwnershipAddr; for (uint256 i; i < end; i++) { TokenOwnership memory ownership = _ownershipAt(i); if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { a[tokenIdsIdx++] = i; } } return a; } } function _startTokenId() internal view virtual override returns (uint256) { return 1; } function tokenURI(uint256 _tokenId) public view virtual override returns (string memory) { require(_exists(_tokenId), 'ERC721Metadata: URI query for nonexistent token'); if (revealed == false) { return hiddenMetadataUri; } string memory currentBaseURI = _baseURI(); return bytes(currentBaseURI).length > 0 ? string(abi.encodePacked(currentBaseURI, _tokenId.toString(), uriSuffix)) : ''; } function _baseURI() internal view virtual override returns (string memory) { return uri; } // ================== Read Functions End ======================= }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import {OperatorFilterer} from "./OperatorFilterer.sol"; import {CANONICAL_CORI_SUBSCRIPTION} from "./lib/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 // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; /** * @dev Interface of ERC721 token receiver. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @title ERC721A * * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) * Non-Fungible Token Standard, including the Metadata extension. * Optimized for lower gas during batch mints. * * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) * starting from `_startTokenId()`. * * Assumptions: * * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364). struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // Mask of an entry in packed address data. uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant _BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant _BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant _BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant _BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant _BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant _BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant _BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with {_mintERC2309}. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309} // is required to cause an overflow, which is unrealistic. uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See {_packedOwnershipOf} implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view virtual returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() public view virtual override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) public view virtual override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> _BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal virtual { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); _packedAddressData[owner] = packed; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes // of the XOR of all function selectors in the interface. // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165) // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`) return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & _BITMASK_BURNED == 0) { // Invariant: // There will always be an initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `curr` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP); ownership.burned = packed & _BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) public payable virtual override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId].value; } /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) public virtual override { _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned. } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) public payable virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public payable virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public payable virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Hook that is called before a set of serially-ordered token IDs * are about to be transferred. This includes minting. * And also called before burning one token. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token IDs * have been transferred. This includes minting. * And also called after one token has been burned. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 toMasked; uint256 end = startTokenId + quantity; // Use assembly to loop and emit the `Transfer` event for gas savings. // The duplicated `log4` removes an extra check and reduces stack juggling. // The assembly, together with the surrounding Solidity code, have been // delicately arranged to nudge the compiler into producing optimized opcodes. assembly { // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. toMasked := and(to, _BITMASK_ADDRESS) // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. startTokenId // `tokenId`. ) // The `iszero(eq(,))` check ensures that large values of `quantity` // that overflows uint256 will make the loop run out of gas. // The compiler will optimize the `iszero` away for performance. for { let tokenId := add(startTokenId, 1) } iszero(eq(tokenId, end)) { tokenId := add(tokenId, 1) } { // Emit the `Transfer` event. Similar to above. log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId) } } if (toMasked == 0) revert MintToZeroAddress(); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString(uint256 value) internal pure virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), but // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned. // We will need 1 word for the trailing zeros padding, 1 word for the length, // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0. let m := add(mload(0x40), 0xa0) // Update the free memory pointer to allocate. mstore(0x40, m) // Assign the `str` to the end. str := sub(m, 0x20) // Zeroize the slot after the string. mstore(str, 0) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; import "./math/Math.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The tree and the proofs can be generated using our * https://github.com/OpenZeppelin/merkle-tree[JavaScript library]. * You will find a quickstart guide in the readme. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. * OpenZeppelin's JavaScript library generates merkle trees that are safe * against this attack out of the box. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false * respectively. * * CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer). * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// 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; import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol"; import {CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS} from "./lib/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 // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the * ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables * (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, * checking first that contract recipients are aware of the ERC721 protocol * to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move * this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external payable; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Transfers `tokenId` from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} * whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external payable; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT 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); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"stateMutability":"payable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"TokenDoesNotExist","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"address","name":"_receiver","type":"address"}],"name":"Airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"address","name":"_receiver","type":"address"}],"name":"OwnerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"PublicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"ROYALTY_PERCENTAGE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"WLmint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hiddenMetadataUri","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"maxLimitPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintAmountPerTx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"publicMintCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_hiddenMetadataUri","type":"string"}],"name":"setHiddenMetadataUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxMintAmountPerTx","type":"uint256"}],"name":"setMaxMintAmountPerTx","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setRevealed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uriSuffix","type":"string"}],"name":"setUriSuffix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_wlsupplyLimit","type":"uint256"}],"name":"setWLsupplyLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pub","type":"uint256"},{"internalType":"uint256","name":"_wl","type":"uint256"}],"name":"setmaxLimitPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setpublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_supplyLimit","type":"uint256"}],"name":"setsupplyLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"seturi","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setwlMerkleRootHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setwlSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_wlmaxMintAmountPerTx","type":"uint256"}],"name":"setwlmaxMintAmountPerTx","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"supplyLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uriSuffix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistSale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"wlMintCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"wlMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"wlmaxLimitPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"wlmaxMintAmountPerTx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"wlsupplyLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040526040518060400160405280600581526020017f2e6a736f6e000000000000000000000000000000000000000000000000000000815250600c90816200004a91906200085a565b506040518060400160405280601b81526020017f697066733a2f2f4a534f4e2d4349442f68696464656e2e6a736f6e0000000000815250600d90816200009191906200085a565b506634ef7897274000600e5561022b600f5561022b60105560026011556002601255600260135560026014556000601560006101000a81548160ff0219169083151502179055506000601560016101000a81548160ff0219169083151502179055506000601560026101000a81548160ff0219169083151502179055506040516200563c3803806200563c833981810160405281019062000133919062000aa5565b733cc6cdda760b79bafa08df41ecfa224f810dceb660016040518060400160405280600981526020017f4861736842726f776e00000000000000000000000000000000000000000000008152506040518060400160405280600281526020017f48420000000000000000000000000000000000000000000000000000000000008152508160029081620001c791906200085a565b508060039081620001d991906200085a565b50620001ea6200042960201b60201c565b600081905550505062000212620002066200043260201b60201c565b6200043a60201b60201c565b600160098190555060006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b11156200040f578015620002d5576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16637d3e3dbe30846040518363ffffffff1660e01b81526004016200029b92919062000b3b565b600060405180830381600087803b158015620002b657600080fd5b505af1158015620002cb573d6000803e3d6000fd5b505050506200040e565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146200038f576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663a0af290330846040518363ffffffff1660e01b81526004016200035592919062000b3b565b600060405180830381600087803b1580156200037057600080fd5b505af115801562000385573d6000803e3d6000fd5b505050506200040d565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16634420e486306040518263ffffffff1660e01b8152600401620003d8919062000b68565b600060405180830381600087803b158015620003f357600080fd5b505af115801562000408573d6000803e3d6000fd5b505050505b5b5b505062000422816200050060201b60201c565b5062000c08565b60006001905090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b620005106200052560201b60201c565b80600b90816200052191906200085a565b5050565b620005356200043260201b60201c565b73ffffffffffffffffffffffffffffffffffffffff166200055b620005b660201b60201c565b73ffffffffffffffffffffffffffffffffffffffff1614620005b4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620005ab9062000be6565b60405180910390fd5b565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200066257607f821691505b6020821081036200067857620006776200061a565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620006e27fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82620006a3565b620006ee8683620006a3565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b60006200073b620007356200072f8462000706565b62000710565b62000706565b9050919050565b6000819050919050565b62000757836200071a565b6200076f620007668262000742565b848454620006b0565b825550505050565b600090565b6200078662000777565b620007938184846200074c565b505050565b5b81811015620007bb57620007af6000826200077c565b60018101905062000799565b5050565b601f8211156200080a57620007d4816200067e565b620007df8462000693565b81016020851015620007ef578190505b62000807620007fe8562000693565b83018262000798565b50505b505050565b600082821c905092915050565b60006200082f600019846008026200080f565b1980831691505092915050565b60006200084a83836200081c565b9150826002028217905092915050565b6200086582620005e0565b67ffffffffffffffff811115620008815762000880620005eb565b5b6200088d825462000649565b6200089a828285620007bf565b600060209050601f831160018114620008d25760008415620008bd578287015190505b620008c985826200083c565b86555062000939565b601f198416620008e2866200067e565b60005b828110156200090c57848901518255600182019150602085019450602081019050620008e5565b868310156200092c578489015162000928601f8916826200081c565b8355505b6001600288020188555050505b505050505050565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b6200097b826200095f565b810181811067ffffffffffffffff821117156200099d576200099c620005eb565b5b80604052505050565b6000620009b262000941565b9050620009c0828262000970565b919050565b600067ffffffffffffffff821115620009e357620009e2620005eb565b5b620009ee826200095f565b9050602081019050919050565b60005b8381101562000a1b578082015181840152602081019050620009fe565b60008484015250505050565b600062000a3e62000a3884620009c5565b620009a6565b90508281526020810184848401111562000a5d5762000a5c6200095a565b5b62000a6a848285620009fb565b509392505050565b600082601f83011262000a8a5762000a8962000955565b5b815162000a9c84826020860162000a27565b91505092915050565b60006020828403121562000abe5762000abd6200094b565b5b600082015167ffffffffffffffff81111562000adf5762000ade62000950565b5b62000aed8482850162000a72565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062000b238262000af6565b9050919050565b62000b358162000b16565b82525050565b600060408201905062000b52600083018562000b2a565b62000b61602083018462000b2a565b9392505050565b600060208201905062000b7f600083018462000b2a565b92915050565b600082825260208201905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600062000bce60208362000b85565b915062000bdb8262000b96565b602082019050919050565b6000602082019050818103600083015262000c018162000bbf565b9050919050565b614a248062000c186000396000f3fe6080604052600436106103755760003560e01c806370cad3aa116101d1578063a22cb46511610102578063b8e4e8a4116100a0578063eac989f81161006f578063eac989f814610c52578063f2cd579614610c7d578063f2fde38b14610ca8578063f648498014610cd157610375565b8063b8e4e8a414610b98578063c87b56dd14610baf578063e0a8085314610bec578063e985e9c514610c1557610375565b8063a4f4f8af116100dc578063a4f4f8af14610aff578063abe37a9414610b2a578063b071401b14610b53578063b88d4fde14610b7c57610375565b8063a22cb46514610a82578063a28b56f214610aab578063a45ba8e714610ad457610375565b806391b7f5ed1161016f57806395d89b411161014957806395d89b41146109d357806396330b5f146109fe5780639fb17e3414610a3b578063a035b1fe14610a5757610375565b806391b7f5ed1461096357806393c7efbb1461098c57806394354fd0146109a857610375565b806378d45eef116101ab57806378d45eef146108a55780638462151c146108d0578063869194ac1461090d5780638da5cb5b1461093857610375565b806370cad3aa14610828578063715018a6146108655780637871e1541461087c57610375565b806331ffd6f1116102ab578063463fb323116102495780635503a0e8116102235780635503a0e8146107585780635a0b8b23146107835780636352211e146107ae57806370a08231146107eb57610375565b8063463fb323146106d95780634fdd43cb14610704578063518302271461072d57610375565b80633d13c32e116102855780633d13c32e1461063e57806341f434341461066757806342842e0e14610692578063463b08db146106ae57610375565b806331ffd6f1146105d157806333bc1c5c146105fc5780633ccfd60b1461062757610375565b806318160ddd1161031857806323b872dd116102f257806323b872dd146105235780632a55205a1461053f5780632eb4a7ab1461057d5780632eba0dce146105a857610375565b806318160ddd146104a457806319d1997a146104cf578063200bbdda146104fa57610375565b806306fdde031161035457806306fdde03146103f7578063081812fc14610422578063095ea7b31461045f57806316ba10e01461047b57610375565b806275770a1461037a57806301ffc9a7146103a357806306b9623b146103e0575b600080fd5b34801561038657600080fd5b506103a1600480360381019061039c91906133f0565b610cfa565b005b3480156103af57600080fd5b506103ca60048036038101906103c59190613475565b610d0c565b6040516103d791906134bd565b60405180910390f35b3480156103ec57600080fd5b506103f5610d9e565b005b34801561040357600080fd5b5061040c610dd2565b6040516104199190613568565b60405180910390f35b34801561042e57600080fd5b50610449600480360381019061044491906133f0565b610e64565b60405161045691906135cb565b60405180910390f35b61047960048036038101906104749190613612565b610ee3565b005b34801561048757600080fd5b506104a2600480360381019061049d9190613787565b610efc565b005b3480156104b057600080fd5b506104b9610f17565b6040516104c691906137df565b60405180910390f35b3480156104db57600080fd5b506104e4610f2e565b6040516104f191906137df565b60405180910390f35b34801561050657600080fd5b50610521600480360381019061051c91906137fa565b610f34565b005b61053d6004803603810190610538919061383a565b610f4e565b005b34801561054b57600080fd5b50610566600480360381019061056191906137fa565b610f9d565b60405161057492919061388d565b60405180910390f35b34801561058957600080fd5b5061059261101f565b60405161059f91906138cf565b60405180910390f35b3480156105b457600080fd5b506105cf60048036038101906105ca91906138ea565b611025565b005b3480156105dd57600080fd5b506105e6611092565b6040516105f391906134bd565b60405180910390f35b34801561060857600080fd5b506106116110a5565b60405161061e91906134bd565b60405180910390f35b34801561063357600080fd5b5061063c6110b8565b005b34801561064a57600080fd5b50610665600480360381019061066091906133f0565b611150565b005b34801561067357600080fd5b5061067c611162565b6040516106899190613989565b60405180910390f35b6106ac60048036038101906106a7919061383a565b611174565b005b3480156106ba57600080fd5b506106c36111c3565b6040516106d091906137df565b60405180910390f35b3480156106e557600080fd5b506106ee6111c8565b6040516106fb91906137df565b60405180910390f35b34801561071057600080fd5b5061072b60048036038101906107269190613787565b6111ce565b005b34801561073957600080fd5b506107426111e9565b60405161074f91906134bd565b60405180910390f35b34801561076457600080fd5b5061076d6111fc565b60405161077a9190613568565b60405180910390f35b34801561078f57600080fd5b5061079861128a565b6040516107a591906137df565b60405180910390f35b3480156107ba57600080fd5b506107d560048036038101906107d091906133f0565b611290565b6040516107e291906135cb565b60405180910390f35b3480156107f757600080fd5b50610812600480360381019061080d91906139a4565b6112a2565b60405161081f91906137df565b60405180910390f35b34801561083457600080fd5b5061084f600480360381019061084a91906139a4565b61135a565b60405161085c91906137df565b60405180910390f35b34801561087157600080fd5b5061087a611372565b005b34801561088857600080fd5b506108a3600480360381019061089e91906138ea565b611386565b005b3480156108b157600080fd5b506108ba6113f3565b6040516108c791906137df565b60405180910390f35b3480156108dc57600080fd5b506108f760048036038101906108f291906139a4565b6113f9565b6040516109049190613a8f565b60405180910390f35b34801561091957600080fd5b5061092261153d565b60405161092f91906137df565b60405180910390f35b34801561094457600080fd5b5061094d611543565b60405161095a91906135cb565b60405180910390f35b34801561096f57600080fd5b5061098a600480360381019061098591906133f0565b61156d565b005b6109a660048036038101906109a19190613b11565b61157f565b005b3480156109b457600080fd5b506109bd61189a565b6040516109ca91906137df565b60405180910390f35b3480156109df57600080fd5b506109e86118a0565b6040516109f59190613568565b60405180910390f35b348015610a0a57600080fd5b50610a256004803603810190610a2091906139a4565b611932565b604051610a3291906137df565b60405180910390f35b610a556004803603810190610a5091906133f0565b61194a565b005b348015610a6357600080fd5b50610a6c611ba3565b604051610a7991906137df565b60405180910390f35b348015610a8e57600080fd5b50610aa96004803603810190610aa49190613b9d565b611ba9565b005b348015610ab757600080fd5b50610ad26004803603810190610acd9190613c09565b611bc2565b005b348015610ae057600080fd5b50610ae9611bd4565b604051610af69190613568565b60405180910390f35b348015610b0b57600080fd5b50610b14611c62565b604051610b2191906137df565b60405180910390f35b348015610b3657600080fd5b50610b516004803603810190610b4c91906133f0565b611c68565b005b348015610b5f57600080fd5b50610b7a6004803603810190610b7591906133f0565b611c7a565b005b610b966004803603810190610b919190613cd7565b611c8c565b005b348015610ba457600080fd5b50610bad611cdd565b005b348015610bbb57600080fd5b50610bd66004803603810190610bd191906133f0565b611d11565b604051610be39190613568565b60405180910390f35b348015610bf857600080fd5b50610c136004803603810190610c0e9190613d5a565b611e69565b005b348015610c2157600080fd5b50610c3c6004803603810190610c379190613d87565b611e8e565b604051610c4991906134bd565b60405180910390f35b348015610c5e57600080fd5b50610c67611f22565b604051610c749190613568565b60405180910390f35b348015610c8957600080fd5b50610c92611fb0565b604051610c9f91906137df565b60405180910390f35b348015610cb457600080fd5b50610ccf6004803603810190610cca91906139a4565b611fb6565b005b348015610cdd57600080fd5b50610cf86004803603810190610cf39190613787565b612039565b005b610d02612054565b80600f8190555050565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610d6757506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610d975750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b610da6612054565b601560009054906101000a900460ff1615601560006101000a81548160ff021916908315150217905550565b606060028054610de190613df6565b80601f0160208091040260200160405190810160405280929190818152602001828054610e0d90613df6565b8015610e5a5780601f10610e2f57610100808354040283529160200191610e5a565b820191906000526020600020905b815481529060010190602001808311610e3d57829003601f168201915b5050505050905090565b6000610e6f826120d2565b610ea5576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b81610eed81612131565b610ef7838361222e565b505050565b610f04612054565b80600c9081610f139190613fc9565b5050565b6000610f21612372565b6001546000540303905090565b600f5481565b610f3c612054565b81601381905550806014819055505050565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610f8c57610f8b33612131565b5b610f9784848461237b565b50505050565b600080610fa9846120d2565b610fea57836040517fc927e5bf000000000000000000000000000000000000000000000000000000008152600401610fe191906137df565b60405180910390fd5b730eb0899f21e509d85b12b4c5bb96b004a6a7228961101461100d85600561269d565b60646126b3565b915091509250929050565b600a5481565b61102d612054565b600f5482611039610f17565b61104391906140ca565b1115611084576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161107b9061414a565b60405180910390fd5b61108e81836126c9565b5050565b601560009054906101000a900460ff1681565b601560019054906101000a900460ff1681565b6110c0612054565b6110c86126e7565b60006110d2611543565b73ffffffffffffffffffffffffffffffffffffffff16476040516110f59061419b565b60006040518083038185875af1925050503d8060008114611132576040519150601f19603f3d011682016040523d82523d6000602084013e611137565b606091505b505090508061114557600080fd5b5061114e612736565b565b611158612054565b8060108190555050565b6daaeb6d7670e522a718067333cd4e81565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146111b2576111b133612131565b5b6111bd848484612740565b50505050565b600581565b60195481565b6111d6612054565b80600d90816111e59190613fc9565b5050565b601560029054906101000a900460ff1681565b600c805461120990613df6565b80601f016020809104026020016040519081016040528092919081815260200182805461123590613df6565b80156112825780601f1061125757610100808354040283529160200191611282565b820191906000526020600020905b81548152906001019060200180831161126557829003601f168201915b505050505081565b60135481565b600061129b82612760565b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611309576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b60166020528060005260406000206000915090505481565b61137a612054565b611384600061282c565b565b61138e612054565b600f548261139a610f17565b6113a491906140ca565b11156113e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113dc9061414a565b60405180910390fd5b6113ef81836126c9565b5050565b60105481565b60606000611406836112a2565b67ffffffffffffffff81111561141f5761141e61365c565b5b60405190808252806020026020018201604052801561144d5781602001602082028036833780820191505090505b509050600061145a6128f2565b905060008060005b83811015611530576000611475826128fb565b90508060400151156114875750611523565b600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146114c757806000015192505b8773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036115215781868580600101965081518110611514576115136141b0565b5b6020026020010181815250505b505b8080600101915050611462565b5083945050505050919050565b60145481565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611575612054565b80600e8190555050565b601560009054906101000a900460ff166115ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115c59061422b565b60405180910390fd5b60006115d8612926565b6040516020016115e89190614293565b60405160208183030381529060405280519060200120905061164e838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600a548361292e565b61168d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611684906142fa565b60405180910390fd5b60008411801561169f57506012548411155b6116de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116d590614366565b60405180910390fd5b601054846116ea610f17565b6116f491906140ca565b1115611735576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161172c9061414a565b60405180910390fd5b60145484601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461178391906140ca565b11156117c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117bb906143d2565b60405180910390fd5b83600e546117d291906143f2565b341015611814576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161180b90614480565b60405180910390fd5b61182561181f612926565b856126c9565b83601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461187491906140ca565b92505081905550836019600082825461188d91906140ca565b9250508190555050505050565b60115481565b6060600380546118af90613df6565b80601f01602080910402602001604051908101604052809291908181526020018280546118db90613df6565b80156119285780601f106118fd57610100808354040283529160200191611928565b820191906000526020600020905b81548152906001019060200180831161190b57829003601f168201915b5050505050905090565b60176020528060005260406000206000915090505481565b601560019054906101000a900460ff16611999576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611990906144ec565b60405180910390fd5b6000811180156119ab57506011548111155b6119ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119e190614366565b60405180910390fd5b600f54816119f6610f17565b611a0091906140ca565b1115611a41576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a389061414a565b60405180910390fd5b60135481601760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611a8f91906140ca565b1115611ad0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ac7906143d2565b60405180910390fd5b80600e54611ade91906143f2565b341015611b20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b1790614480565b60405180910390fd5b611b31611b2b612926565b826126c9565b80601760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611b8091906140ca565b925050819055508060186000828254611b9991906140ca565b9250508190555050565b600e5481565b81611bb381612131565b611bbd8383612945565b505050565b611bca612054565b80600a8190555050565b600d8054611be190613df6565b80601f0160208091040260200160405190810160405280929190818152602001828054611c0d90613df6565b8015611c5a5780601f10611c2f57610100808354040283529160200191611c5a565b820191906000526020600020905b815481529060010190602001808311611c3d57829003601f168201915b505050505081565b60185481565b611c70612054565b8060128190555050565b611c82612054565b8060118190555050565b833373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611cca57611cc933612131565b5b611cd685858585612a50565b5050505050565b611ce5612054565b601560019054906101000a900460ff1615601560016101000a81548160ff021916908315150217905550565b6060611d1c826120d2565b611d5b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d529061457e565b60405180910390fd5b60001515601560029054906101000a900460ff16151503611e0857600d8054611d8390613df6565b80601f0160208091040260200160405190810160405280929190818152602001828054611daf90613df6565b8015611dfc5780601f10611dd157610100808354040283529160200191611dfc565b820191906000526020600020905b815481529060010190602001808311611ddf57829003601f168201915b50505050509050611e64565b6000611e12612ac3565b90506000815111611e325760405180602001604052806000815250611e60565b80611e3c84612b55565b600c604051602001611e509392919061465d565b6040516020818303038152906040525b9150505b919050565b611e71612054565b80601560026101000a81548160ff02191690831515021790555050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600b8054611f2f90613df6565b80601f0160208091040260200160405190810160405280929190818152602001828054611f5b90613df6565b8015611fa85780601f10611f7d57610100808354040283529160200191611fa8565b820191906000526020600020905b815481529060010190602001808311611f8b57829003601f168201915b505050505081565b60125481565b611fbe612054565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361202d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161202490614700565b60405180910390fd5b6120368161282c565b50565b612041612054565b80600b90816120509190613fc9565b5050565b61205c612926565b73ffffffffffffffffffffffffffffffffffffffff1661207a611543565b73ffffffffffffffffffffffffffffffffffffffff16146120d0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120c79061476c565b60405180910390fd5b565b6000816120dd612372565b111580156120ec575060005482105b801561212a575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b60006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b111561222b576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b81526004016121a892919061478c565b602060405180830381865afa1580156121c5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121e991906147ca565b61222a57806040517fede71dcc00000000000000000000000000000000000000000000000000000000815260040161222191906135cb565b60405180910390fd5b5b50565b600061223982611290565b90508073ffffffffffffffffffffffffffffffffffffffff1661225a612c23565b73ffffffffffffffffffffffffffffffffffffffff16146122bd5761228681612281612c23565b611e8e565b6122bc576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60006001905090565b600061238682612760565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146123ed576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000806123f984612c2b565b9150915061240f818761240a612c23565b612c52565b61245b576124248661241f612c23565b611e8e565b61245a576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16036124c1576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6124ce8686866001612c96565b80156124d957600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154600101919050819055506125a785612583888887612c9c565b7c020000000000000000000000000000000000000000000000000000000017612cc4565b600460008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000084160361262d576000600185019050600060046000838152602001908152602001600020540361262b57600054811461262a578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46126958686866001612cef565b505050505050565b600081836126ab91906143f2565b905092915050565b600081836126c19190614826565b905092915050565b6126e3828260405180602001604052806000815250612cf5565b5050565b60026009540361272c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612723906148a3565b60405180910390fd5b6002600981905550565b6001600981905550565b61275b83838360405180602001604052806000815250611c8c565b505050565b6000808290508061276f612372565b116127f5576000548110156127f45760006004600083815260200190815260200160002054905060007c01000000000000000000000000000000000000000000000000000000008216036127f2575b600081036127e85760046000836001900393508381526020019081526020016000205490506127be565b8092505050612827565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008054905090565b612903613357565b61291f6004600084815260200190815260200160002054612d92565b9050919050565b600033905090565b60008261293b8584612e48565b1490509392505050565b8060076000612952612c23565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166129ff612c23565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612a4491906134bd565b60405180910390a35050565b612a5b848484610f4e565b60008373ffffffffffffffffffffffffffffffffffffffff163b14612abd57612a8684848484612e9e565b612abc576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b6060600b8054612ad290613df6565b80601f0160208091040260200160405190810160405280929190818152602001828054612afe90613df6565b8015612b4b5780601f10612b2057610100808354040283529160200191612b4b565b820191906000526020600020905b815481529060010190602001808311612b2e57829003601f168201915b5050505050905090565b606060006001612b6484612fee565b01905060008167ffffffffffffffff811115612b8357612b8261365c565b5b6040519080825280601f01601f191660200182016040528015612bb55781602001600182028036833780820191505090505b509050600082602001820190505b600115612c18578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8581612c0c57612c0b6147f7565b5b04945060008503612bc3575b819350505050919050565b600033905090565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8612cb3868684613141565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b612cff838361314a565b60008373ffffffffffffffffffffffffffffffffffffffff163b14612d8d57600080549050600083820390505b612d3f6000868380600101945086612e9e565b612d75576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818110612d2c578160005414612d8a57600080fd5b50505b505050565b612d9a613357565b81816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff168152505060007c01000000000000000000000000000000000000000000000000000000008316141581604001901515908115158152505060e882901c816060019062ffffff16908162ffffff1681525050919050565b60008082905060005b8451811015612e9357612e7e82868381518110612e7157612e706141b0565b5b6020026020010151613305565b91508080612e8b906148c3565b915050612e51565b508091505092915050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612ec4612c23565b8786866040518563ffffffff1660e01b8152600401612ee69493929190614960565b6020604051808303816000875af1925050508015612f2257506040513d601f19601f82011682018060405250810190612f1f91906149c1565b60015b612f9b573d8060008114612f52576040519150601f19603f3d011682016040523d82523d6000602084013e612f57565b606091505b506000815103612f93576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000831061304c577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381613042576130416147f7565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310613089576d04ee2d6d415b85acef8100000000838161307f5761307e6147f7565b5b0492506020810190505b662386f26fc1000083106130b857662386f26fc1000083816130ae576130ad6147f7565b5b0492506010810190505b6305f5e10083106130e1576305f5e10083816130d7576130d66147f7565b5b0492506008810190505b61271083106131065761271083816130fc576130fb6147f7565b5b0492506004810190505b60648310613129576064838161311f5761311e6147f7565b5b0492506002810190505b600a8310613138576001810190505b80915050919050565b60009392505050565b6000805490506000820361318a576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6131976000848385612c96565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555061320e836131ff6000866000612c9c565b61320885613330565b17612cc4565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b8181146132af57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050613274565b50600082036132ea576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008190555050506133006000848385612cef565b505050565b600081831061331d576133188284613340565b613328565b6133278383613340565b5b905092915050565b60006001821460e11b9050919050565b600082600052816020526040600020905092915050565b6040518060800160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff168152602001600015158152602001600062ffffff1681525090565b6000604051905090565b600080fd5b600080fd5b6000819050919050565b6133cd816133ba565b81146133d857600080fd5b50565b6000813590506133ea816133c4565b92915050565b600060208284031215613406576134056133b0565b5b6000613414848285016133db565b91505092915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6134528161341d565b811461345d57600080fd5b50565b60008135905061346f81613449565b92915050565b60006020828403121561348b5761348a6133b0565b5b600061349984828501613460565b91505092915050565b60008115159050919050565b6134b7816134a2565b82525050565b60006020820190506134d260008301846134ae565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156135125780820151818401526020810190506134f7565b60008484015250505050565b6000601f19601f8301169050919050565b600061353a826134d8565b61354481856134e3565b93506135548185602086016134f4565b61355d8161351e565b840191505092915050565b60006020820190508181036000830152613582818461352f565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006135b58261358a565b9050919050565b6135c5816135aa565b82525050565b60006020820190506135e060008301846135bc565b92915050565b6135ef816135aa565b81146135fa57600080fd5b50565b60008135905061360c816135e6565b92915050565b60008060408385031215613629576136286133b0565b5b6000613637858286016135fd565b9250506020613648858286016133db565b9150509250929050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6136948261351e565b810181811067ffffffffffffffff821117156136b3576136b261365c565b5b80604052505050565b60006136c66133a6565b90506136d2828261368b565b919050565b600067ffffffffffffffff8211156136f2576136f161365c565b5b6136fb8261351e565b9050602081019050919050565b82818337600083830152505050565b600061372a613725846136d7565b6136bc565b90508281526020810184848401111561374657613745613657565b5b613751848285613708565b509392505050565b600082601f83011261376e5761376d613652565b5b813561377e848260208601613717565b91505092915050565b60006020828403121561379d5761379c6133b0565b5b600082013567ffffffffffffffff8111156137bb576137ba6133b5565b5b6137c784828501613759565b91505092915050565b6137d9816133ba565b82525050565b60006020820190506137f460008301846137d0565b92915050565b60008060408385031215613811576138106133b0565b5b600061381f858286016133db565b9250506020613830858286016133db565b9150509250929050565b600080600060608486031215613853576138526133b0565b5b6000613861868287016135fd565b9350506020613872868287016135fd565b9250506040613883868287016133db565b9150509250925092565b60006040820190506138a260008301856135bc565b6138af60208301846137d0565b9392505050565b6000819050919050565b6138c9816138b6565b82525050565b60006020820190506138e460008301846138c0565b92915050565b60008060408385031215613901576139006133b0565b5b600061390f858286016133db565b9250506020613920858286016135fd565b9150509250929050565b6000819050919050565b600061394f61394a6139458461358a565b61392a565b61358a565b9050919050565b600061396182613934565b9050919050565b600061397382613956565b9050919050565b61398381613968565b82525050565b600060208201905061399e600083018461397a565b92915050565b6000602082840312156139ba576139b96133b0565b5b60006139c8848285016135fd565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613a06816133ba565b82525050565b6000613a1883836139fd565b60208301905092915050565b6000602082019050919050565b6000613a3c826139d1565b613a4681856139dc565b9350613a51836139ed565b8060005b83811015613a82578151613a698882613a0c565b9750613a7483613a24565b925050600181019050613a55565b5085935050505092915050565b60006020820190508181036000830152613aa98184613a31565b905092915050565b600080fd5b600080fd5b60008083601f840112613ad157613ad0613652565b5b8235905067ffffffffffffffff811115613aee57613aed613ab1565b5b602083019150836020820283011115613b0a57613b09613ab6565b5b9250929050565b600080600060408486031215613b2a57613b296133b0565b5b6000613b38868287016133db565b935050602084013567ffffffffffffffff811115613b5957613b586133b5565b5b613b6586828701613abb565b92509250509250925092565b613b7a816134a2565b8114613b8557600080fd5b50565b600081359050613b9781613b71565b92915050565b60008060408385031215613bb457613bb36133b0565b5b6000613bc2858286016135fd565b9250506020613bd385828601613b88565b9150509250929050565b613be6816138b6565b8114613bf157600080fd5b50565b600081359050613c0381613bdd565b92915050565b600060208284031215613c1f57613c1e6133b0565b5b6000613c2d84828501613bf4565b91505092915050565b600067ffffffffffffffff821115613c5157613c5061365c565b5b613c5a8261351e565b9050602081019050919050565b6000613c7a613c7584613c36565b6136bc565b905082815260208101848484011115613c9657613c95613657565b5b613ca1848285613708565b509392505050565b600082601f830112613cbe57613cbd613652565b5b8135613cce848260208601613c67565b91505092915050565b60008060008060808587031215613cf157613cf06133b0565b5b6000613cff878288016135fd565b9450506020613d10878288016135fd565b9350506040613d21878288016133db565b925050606085013567ffffffffffffffff811115613d4257613d416133b5565b5b613d4e87828801613ca9565b91505092959194509250565b600060208284031215613d7057613d6f6133b0565b5b6000613d7e84828501613b88565b91505092915050565b60008060408385031215613d9e57613d9d6133b0565b5b6000613dac858286016135fd565b9250506020613dbd858286016135fd565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613e0e57607f821691505b602082108103613e2157613e20613dc7565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302613e897fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613e4c565b613e938683613e4c565b95508019841693508086168417925050509392505050565b6000613ec6613ec1613ebc846133ba565b61392a565b6133ba565b9050919050565b6000819050919050565b613ee083613eab565b613ef4613eec82613ecd565b848454613e59565b825550505050565b600090565b613f09613efc565b613f14818484613ed7565b505050565b5b81811015613f3857613f2d600082613f01565b600181019050613f1a565b5050565b601f821115613f7d57613f4e81613e27565b613f5784613e3c565b81016020851015613f66578190505b613f7a613f7285613e3c565b830182613f19565b50505b505050565b600082821c905092915050565b6000613fa060001984600802613f82565b1980831691505092915050565b6000613fb98383613f8f565b9150826002028217905092915050565b613fd2826134d8565b67ffffffffffffffff811115613feb57613fea61365c565b5b613ff58254613df6565b614000828285613f3c565b600060209050601f8311600181146140335760008415614021578287015190505b61402b8582613fad565b865550614093565b601f19841661404186613e27565b60005b8281101561406957848901518255600182019150602085019450602081019050614044565b868310156140865784890151614082601f891682613f8f565b8355505b6001600288020188555050505b505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006140d5826133ba565b91506140e0836133ba565b92508282019050808211156140f8576140f761409b565b5b92915050565b7f4d617820737570706c7920657863656564656421000000000000000000000000600082015250565b60006141346014836134e3565b915061413f826140fe565b602082019050919050565b6000602082019050818103600083015261416381614127565b9050919050565b600081905092915050565b50565b600061418560008361416a565b915061419082614175565b600082019050919050565b60006141a682614178565b9150819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f54686520576c53616c6520697320706175736564210000000000000000000000600082015250565b60006142156015836134e3565b9150614220826141df565b602082019050919050565b6000602082019050818103600083015261424481614208565b9050919050565b60008160601b9050919050565b60006142638261424b565b9050919050565b600061427582614258565b9050919050565b61428d614288826135aa565b61426a565b82525050565b600061429f828461427c565b60148201915081905092915050565b7f496e76616c69642070726f6f6621000000000000000000000000000000000000600082015250565b60006142e4600e836134e3565b91506142ef826142ae565b602082019050919050565b60006020820190508181036000830152614313816142d7565b9050919050565b7f496e76616c6964206d696e7420616d6f756e7421000000000000000000000000600082015250565b60006143506014836134e3565b915061435b8261431a565b602082019050919050565b6000602082019050818103600083015261437f81614343565b9050919050565b7f4d6178206d696e74207065722077616c6c657420657863656564656421000000600082015250565b60006143bc601d836134e3565b91506143c782614386565b602082019050919050565b600060208201905081810360008301526143eb816143af565b9050919050565b60006143fd826133ba565b9150614408836133ba565b9250828202614416816133ba565b9150828204841483151761442d5761442c61409b565b5b5092915050565b7f496e73756666696369656e742066756e64732100000000000000000000000000600082015250565b600061446a6013836134e3565b915061447582614434565b602082019050919050565b600060208201905081810360008301526144998161445d565b9050919050565b7f546865205075626c696353616c65206973207061757365642100000000000000600082015250565b60006144d66019836134e3565b91506144e1826144a0565b602082019050919050565b60006020820190508181036000830152614505816144c9565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000614568602f836134e3565b91506145738261450c565b604082019050919050565b600060208201905081810360008301526145978161455b565b9050919050565b600081905092915050565b60006145b4826134d8565b6145be818561459e565b93506145ce8185602086016134f4565b80840191505092915050565b600081546145e781613df6565b6145f1818661459e565b9450600182166000811461460c576001811461462157614654565b60ff1983168652811515820286019350614654565b61462a85613e27565b60005b8381101561464c5781548189015260018201915060208101905061462d565b838801955050505b50505092915050565b600061466982866145a9565b915061467582856145a9565b915061468182846145da565b9150819050949350505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006146ea6026836134e3565b91506146f58261468e565b604082019050919050565b60006020820190508181036000830152614719816146dd565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006147566020836134e3565b915061476182614720565b602082019050919050565b6000602082019050818103600083015261478581614749565b9050919050565b60006040820190506147a160008301856135bc565b6147ae60208301846135bc565b9392505050565b6000815190506147c481613b71565b92915050565b6000602082840312156147e0576147df6133b0565b5b60006147ee848285016147b5565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614831826133ba565b915061483c836133ba565b92508261484c5761484b6147f7565b5b828204905092915050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b600061488d601f836134e3565b915061489882614857565b602082019050919050565b600060208201905081810360008301526148bc81614880565b9050919050565b60006148ce826133ba565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614900576148ff61409b565b5b600182019050919050565b600081519050919050565b600082825260208201905092915050565b60006149328261490b565b61493c8185614916565b935061494c8185602086016134f4565b6149558161351e565b840191505092915050565b600060808201905061497560008301876135bc565b61498260208301866135bc565b61498f60408301856137d0565b81810360608301526149a18184614927565b905095945050505050565b6000815190506149bb81613449565b92915050565b6000602082840312156149d7576149d66133b0565b5b60006149e5848285016149ac565b9150509291505056fea264697066735822122043f8810918886833d49af463a9e60a8c6e7a8f1f6a32c87852dce00f8328523264736f6c6343000811003300000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106103755760003560e01c806370cad3aa116101d1578063a22cb46511610102578063b8e4e8a4116100a0578063eac989f81161006f578063eac989f814610c52578063f2cd579614610c7d578063f2fde38b14610ca8578063f648498014610cd157610375565b8063b8e4e8a414610b98578063c87b56dd14610baf578063e0a8085314610bec578063e985e9c514610c1557610375565b8063a4f4f8af116100dc578063a4f4f8af14610aff578063abe37a9414610b2a578063b071401b14610b53578063b88d4fde14610b7c57610375565b8063a22cb46514610a82578063a28b56f214610aab578063a45ba8e714610ad457610375565b806391b7f5ed1161016f57806395d89b411161014957806395d89b41146109d357806396330b5f146109fe5780639fb17e3414610a3b578063a035b1fe14610a5757610375565b806391b7f5ed1461096357806393c7efbb1461098c57806394354fd0146109a857610375565b806378d45eef116101ab57806378d45eef146108a55780638462151c146108d0578063869194ac1461090d5780638da5cb5b1461093857610375565b806370cad3aa14610828578063715018a6146108655780637871e1541461087c57610375565b806331ffd6f1116102ab578063463fb323116102495780635503a0e8116102235780635503a0e8146107585780635a0b8b23146107835780636352211e146107ae57806370a08231146107eb57610375565b8063463fb323146106d95780634fdd43cb14610704578063518302271461072d57610375565b80633d13c32e116102855780633d13c32e1461063e57806341f434341461066757806342842e0e14610692578063463b08db146106ae57610375565b806331ffd6f1146105d157806333bc1c5c146105fc5780633ccfd60b1461062757610375565b806318160ddd1161031857806323b872dd116102f257806323b872dd146105235780632a55205a1461053f5780632eb4a7ab1461057d5780632eba0dce146105a857610375565b806318160ddd146104a457806319d1997a146104cf578063200bbdda146104fa57610375565b806306fdde031161035457806306fdde03146103f7578063081812fc14610422578063095ea7b31461045f57806316ba10e01461047b57610375565b806275770a1461037a57806301ffc9a7146103a357806306b9623b146103e0575b600080fd5b34801561038657600080fd5b506103a1600480360381019061039c91906133f0565b610cfa565b005b3480156103af57600080fd5b506103ca60048036038101906103c59190613475565b610d0c565b6040516103d791906134bd565b60405180910390f35b3480156103ec57600080fd5b506103f5610d9e565b005b34801561040357600080fd5b5061040c610dd2565b6040516104199190613568565b60405180910390f35b34801561042e57600080fd5b50610449600480360381019061044491906133f0565b610e64565b60405161045691906135cb565b60405180910390f35b61047960048036038101906104749190613612565b610ee3565b005b34801561048757600080fd5b506104a2600480360381019061049d9190613787565b610efc565b005b3480156104b057600080fd5b506104b9610f17565b6040516104c691906137df565b60405180910390f35b3480156104db57600080fd5b506104e4610f2e565b6040516104f191906137df565b60405180910390f35b34801561050657600080fd5b50610521600480360381019061051c91906137fa565b610f34565b005b61053d6004803603810190610538919061383a565b610f4e565b005b34801561054b57600080fd5b50610566600480360381019061056191906137fa565b610f9d565b60405161057492919061388d565b60405180910390f35b34801561058957600080fd5b5061059261101f565b60405161059f91906138cf565b60405180910390f35b3480156105b457600080fd5b506105cf60048036038101906105ca91906138ea565b611025565b005b3480156105dd57600080fd5b506105e6611092565b6040516105f391906134bd565b60405180910390f35b34801561060857600080fd5b506106116110a5565b60405161061e91906134bd565b60405180910390f35b34801561063357600080fd5b5061063c6110b8565b005b34801561064a57600080fd5b50610665600480360381019061066091906133f0565b611150565b005b34801561067357600080fd5b5061067c611162565b6040516106899190613989565b60405180910390f35b6106ac60048036038101906106a7919061383a565b611174565b005b3480156106ba57600080fd5b506106c36111c3565b6040516106d091906137df565b60405180910390f35b3480156106e557600080fd5b506106ee6111c8565b6040516106fb91906137df565b60405180910390f35b34801561071057600080fd5b5061072b60048036038101906107269190613787565b6111ce565b005b34801561073957600080fd5b506107426111e9565b60405161074f91906134bd565b60405180910390f35b34801561076457600080fd5b5061076d6111fc565b60405161077a9190613568565b60405180910390f35b34801561078f57600080fd5b5061079861128a565b6040516107a591906137df565b60405180910390f35b3480156107ba57600080fd5b506107d560048036038101906107d091906133f0565b611290565b6040516107e291906135cb565b60405180910390f35b3480156107f757600080fd5b50610812600480360381019061080d91906139a4565b6112a2565b60405161081f91906137df565b60405180910390f35b34801561083457600080fd5b5061084f600480360381019061084a91906139a4565b61135a565b60405161085c91906137df565b60405180910390f35b34801561087157600080fd5b5061087a611372565b005b34801561088857600080fd5b506108a3600480360381019061089e91906138ea565b611386565b005b3480156108b157600080fd5b506108ba6113f3565b6040516108c791906137df565b60405180910390f35b3480156108dc57600080fd5b506108f760048036038101906108f291906139a4565b6113f9565b6040516109049190613a8f565b60405180910390f35b34801561091957600080fd5b5061092261153d565b60405161092f91906137df565b60405180910390f35b34801561094457600080fd5b5061094d611543565b60405161095a91906135cb565b60405180910390f35b34801561096f57600080fd5b5061098a600480360381019061098591906133f0565b61156d565b005b6109a660048036038101906109a19190613b11565b61157f565b005b3480156109b457600080fd5b506109bd61189a565b6040516109ca91906137df565b60405180910390f35b3480156109df57600080fd5b506109e86118a0565b6040516109f59190613568565b60405180910390f35b348015610a0a57600080fd5b50610a256004803603810190610a2091906139a4565b611932565b604051610a3291906137df565b60405180910390f35b610a556004803603810190610a5091906133f0565b61194a565b005b348015610a6357600080fd5b50610a6c611ba3565b604051610a7991906137df565b60405180910390f35b348015610a8e57600080fd5b50610aa96004803603810190610aa49190613b9d565b611ba9565b005b348015610ab757600080fd5b50610ad26004803603810190610acd9190613c09565b611bc2565b005b348015610ae057600080fd5b50610ae9611bd4565b604051610af69190613568565b60405180910390f35b348015610b0b57600080fd5b50610b14611c62565b604051610b2191906137df565b60405180910390f35b348015610b3657600080fd5b50610b516004803603810190610b4c91906133f0565b611c68565b005b348015610b5f57600080fd5b50610b7a6004803603810190610b7591906133f0565b611c7a565b005b610b966004803603810190610b919190613cd7565b611c8c565b005b348015610ba457600080fd5b50610bad611cdd565b005b348015610bbb57600080fd5b50610bd66004803603810190610bd191906133f0565b611d11565b604051610be39190613568565b60405180910390f35b348015610bf857600080fd5b50610c136004803603810190610c0e9190613d5a565b611e69565b005b348015610c2157600080fd5b50610c3c6004803603810190610c379190613d87565b611e8e565b604051610c4991906134bd565b60405180910390f35b348015610c5e57600080fd5b50610c67611f22565b604051610c749190613568565b60405180910390f35b348015610c8957600080fd5b50610c92611fb0565b604051610c9f91906137df565b60405180910390f35b348015610cb457600080fd5b50610ccf6004803603810190610cca91906139a4565b611fb6565b005b348015610cdd57600080fd5b50610cf86004803603810190610cf39190613787565b612039565b005b610d02612054565b80600f8190555050565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610d6757506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610d975750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b610da6612054565b601560009054906101000a900460ff1615601560006101000a81548160ff021916908315150217905550565b606060028054610de190613df6565b80601f0160208091040260200160405190810160405280929190818152602001828054610e0d90613df6565b8015610e5a5780601f10610e2f57610100808354040283529160200191610e5a565b820191906000526020600020905b815481529060010190602001808311610e3d57829003601f168201915b5050505050905090565b6000610e6f826120d2565b610ea5576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b81610eed81612131565b610ef7838361222e565b505050565b610f04612054565b80600c9081610f139190613fc9565b5050565b6000610f21612372565b6001546000540303905090565b600f5481565b610f3c612054565b81601381905550806014819055505050565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610f8c57610f8b33612131565b5b610f9784848461237b565b50505050565b600080610fa9846120d2565b610fea57836040517fc927e5bf000000000000000000000000000000000000000000000000000000008152600401610fe191906137df565b60405180910390fd5b730eb0899f21e509d85b12b4c5bb96b004a6a7228961101461100d85600561269d565b60646126b3565b915091509250929050565b600a5481565b61102d612054565b600f5482611039610f17565b61104391906140ca565b1115611084576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161107b9061414a565b60405180910390fd5b61108e81836126c9565b5050565b601560009054906101000a900460ff1681565b601560019054906101000a900460ff1681565b6110c0612054565b6110c86126e7565b60006110d2611543565b73ffffffffffffffffffffffffffffffffffffffff16476040516110f59061419b565b60006040518083038185875af1925050503d8060008114611132576040519150601f19603f3d011682016040523d82523d6000602084013e611137565b606091505b505090508061114557600080fd5b5061114e612736565b565b611158612054565b8060108190555050565b6daaeb6d7670e522a718067333cd4e81565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146111b2576111b133612131565b5b6111bd848484612740565b50505050565b600581565b60195481565b6111d6612054565b80600d90816111e59190613fc9565b5050565b601560029054906101000a900460ff1681565b600c805461120990613df6565b80601f016020809104026020016040519081016040528092919081815260200182805461123590613df6565b80156112825780601f1061125757610100808354040283529160200191611282565b820191906000526020600020905b81548152906001019060200180831161126557829003601f168201915b505050505081565b60135481565b600061129b82612760565b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611309576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b60166020528060005260406000206000915090505481565b61137a612054565b611384600061282c565b565b61138e612054565b600f548261139a610f17565b6113a491906140ca565b11156113e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113dc9061414a565b60405180910390fd5b6113ef81836126c9565b5050565b60105481565b60606000611406836112a2565b67ffffffffffffffff81111561141f5761141e61365c565b5b60405190808252806020026020018201604052801561144d5781602001602082028036833780820191505090505b509050600061145a6128f2565b905060008060005b83811015611530576000611475826128fb565b90508060400151156114875750611523565b600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146114c757806000015192505b8773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036115215781868580600101965081518110611514576115136141b0565b5b6020026020010181815250505b505b8080600101915050611462565b5083945050505050919050565b60145481565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611575612054565b80600e8190555050565b601560009054906101000a900460ff166115ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115c59061422b565b60405180910390fd5b60006115d8612926565b6040516020016115e89190614293565b60405160208183030381529060405280519060200120905061164e838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600a548361292e565b61168d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611684906142fa565b60405180910390fd5b60008411801561169f57506012548411155b6116de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116d590614366565b60405180910390fd5b601054846116ea610f17565b6116f491906140ca565b1115611735576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161172c9061414a565b60405180910390fd5b60145484601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461178391906140ca565b11156117c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117bb906143d2565b60405180910390fd5b83600e546117d291906143f2565b341015611814576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161180b90614480565b60405180910390fd5b61182561181f612926565b856126c9565b83601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461187491906140ca565b92505081905550836019600082825461188d91906140ca565b9250508190555050505050565b60115481565b6060600380546118af90613df6565b80601f01602080910402602001604051908101604052809291908181526020018280546118db90613df6565b80156119285780601f106118fd57610100808354040283529160200191611928565b820191906000526020600020905b81548152906001019060200180831161190b57829003601f168201915b5050505050905090565b60176020528060005260406000206000915090505481565b601560019054906101000a900460ff16611999576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611990906144ec565b60405180910390fd5b6000811180156119ab57506011548111155b6119ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119e190614366565b60405180910390fd5b600f54816119f6610f17565b611a0091906140ca565b1115611a41576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a389061414a565b60405180910390fd5b60135481601760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611a8f91906140ca565b1115611ad0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ac7906143d2565b60405180910390fd5b80600e54611ade91906143f2565b341015611b20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b1790614480565b60405180910390fd5b611b31611b2b612926565b826126c9565b80601760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611b8091906140ca565b925050819055508060186000828254611b9991906140ca565b9250508190555050565b600e5481565b81611bb381612131565b611bbd8383612945565b505050565b611bca612054565b80600a8190555050565b600d8054611be190613df6565b80601f0160208091040260200160405190810160405280929190818152602001828054611c0d90613df6565b8015611c5a5780601f10611c2f57610100808354040283529160200191611c5a565b820191906000526020600020905b815481529060010190602001808311611c3d57829003601f168201915b505050505081565b60185481565b611c70612054565b8060128190555050565b611c82612054565b8060118190555050565b833373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611cca57611cc933612131565b5b611cd685858585612a50565b5050505050565b611ce5612054565b601560019054906101000a900460ff1615601560016101000a81548160ff021916908315150217905550565b6060611d1c826120d2565b611d5b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d529061457e565b60405180910390fd5b60001515601560029054906101000a900460ff16151503611e0857600d8054611d8390613df6565b80601f0160208091040260200160405190810160405280929190818152602001828054611daf90613df6565b8015611dfc5780601f10611dd157610100808354040283529160200191611dfc565b820191906000526020600020905b815481529060010190602001808311611ddf57829003601f168201915b50505050509050611e64565b6000611e12612ac3565b90506000815111611e325760405180602001604052806000815250611e60565b80611e3c84612b55565b600c604051602001611e509392919061465d565b6040516020818303038152906040525b9150505b919050565b611e71612054565b80601560026101000a81548160ff02191690831515021790555050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600b8054611f2f90613df6565b80601f0160208091040260200160405190810160405280929190818152602001828054611f5b90613df6565b8015611fa85780601f10611f7d57610100808354040283529160200191611fa8565b820191906000526020600020905b815481529060010190602001808311611f8b57829003601f168201915b505050505081565b60125481565b611fbe612054565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361202d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161202490614700565b60405180910390fd5b6120368161282c565b50565b612041612054565b80600b90816120509190613fc9565b5050565b61205c612926565b73ffffffffffffffffffffffffffffffffffffffff1661207a611543565b73ffffffffffffffffffffffffffffffffffffffff16146120d0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120c79061476c565b60405180910390fd5b565b6000816120dd612372565b111580156120ec575060005482105b801561212a575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b60006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b111561222b576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b81526004016121a892919061478c565b602060405180830381865afa1580156121c5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121e991906147ca565b61222a57806040517fede71dcc00000000000000000000000000000000000000000000000000000000815260040161222191906135cb565b60405180910390fd5b5b50565b600061223982611290565b90508073ffffffffffffffffffffffffffffffffffffffff1661225a612c23565b73ffffffffffffffffffffffffffffffffffffffff16146122bd5761228681612281612c23565b611e8e565b6122bc576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60006001905090565b600061238682612760565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146123ed576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000806123f984612c2b565b9150915061240f818761240a612c23565b612c52565b61245b576124248661241f612c23565b611e8e565b61245a576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16036124c1576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6124ce8686866001612c96565b80156124d957600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154600101919050819055506125a785612583888887612c9c565b7c020000000000000000000000000000000000000000000000000000000017612cc4565b600460008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000084160361262d576000600185019050600060046000838152602001908152602001600020540361262b57600054811461262a578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46126958686866001612cef565b505050505050565b600081836126ab91906143f2565b905092915050565b600081836126c19190614826565b905092915050565b6126e3828260405180602001604052806000815250612cf5565b5050565b60026009540361272c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612723906148a3565b60405180910390fd5b6002600981905550565b6001600981905550565b61275b83838360405180602001604052806000815250611c8c565b505050565b6000808290508061276f612372565b116127f5576000548110156127f45760006004600083815260200190815260200160002054905060007c01000000000000000000000000000000000000000000000000000000008216036127f2575b600081036127e85760046000836001900393508381526020019081526020016000205490506127be565b8092505050612827565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008054905090565b612903613357565b61291f6004600084815260200190815260200160002054612d92565b9050919050565b600033905090565b60008261293b8584612e48565b1490509392505050565b8060076000612952612c23565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166129ff612c23565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612a4491906134bd565b60405180910390a35050565b612a5b848484610f4e565b60008373ffffffffffffffffffffffffffffffffffffffff163b14612abd57612a8684848484612e9e565b612abc576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b6060600b8054612ad290613df6565b80601f0160208091040260200160405190810160405280929190818152602001828054612afe90613df6565b8015612b4b5780601f10612b2057610100808354040283529160200191612b4b565b820191906000526020600020905b815481529060010190602001808311612b2e57829003601f168201915b5050505050905090565b606060006001612b6484612fee565b01905060008167ffffffffffffffff811115612b8357612b8261365c565b5b6040519080825280601f01601f191660200182016040528015612bb55781602001600182028036833780820191505090505b509050600082602001820190505b600115612c18578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8581612c0c57612c0b6147f7565b5b04945060008503612bc3575b819350505050919050565b600033905090565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8612cb3868684613141565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b612cff838361314a565b60008373ffffffffffffffffffffffffffffffffffffffff163b14612d8d57600080549050600083820390505b612d3f6000868380600101945086612e9e565b612d75576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818110612d2c578160005414612d8a57600080fd5b50505b505050565b612d9a613357565b81816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff168152505060007c01000000000000000000000000000000000000000000000000000000008316141581604001901515908115158152505060e882901c816060019062ffffff16908162ffffff1681525050919050565b60008082905060005b8451811015612e9357612e7e82868381518110612e7157612e706141b0565b5b6020026020010151613305565b91508080612e8b906148c3565b915050612e51565b508091505092915050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612ec4612c23565b8786866040518563ffffffff1660e01b8152600401612ee69493929190614960565b6020604051808303816000875af1925050508015612f2257506040513d601f19601f82011682018060405250810190612f1f91906149c1565b60015b612f9b573d8060008114612f52576040519150601f19603f3d011682016040523d82523d6000602084013e612f57565b606091505b506000815103612f93576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000831061304c577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381613042576130416147f7565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310613089576d04ee2d6d415b85acef8100000000838161307f5761307e6147f7565b5b0492506020810190505b662386f26fc1000083106130b857662386f26fc1000083816130ae576130ad6147f7565b5b0492506010810190505b6305f5e10083106130e1576305f5e10083816130d7576130d66147f7565b5b0492506008810190505b61271083106131065761271083816130fc576130fb6147f7565b5b0492506004810190505b60648310613129576064838161311f5761311e6147f7565b5b0492506002810190505b600a8310613138576001810190505b80915050919050565b60009392505050565b6000805490506000820361318a576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6131976000848385612c96565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555061320e836131ff6000866000612c9c565b61320885613330565b17612cc4565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b8181146132af57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050613274565b50600082036132ea576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008190555050506133006000848385612cef565b505050565b600081831061331d576133188284613340565b613328565b6133278383613340565b5b905092915050565b60006001821460e11b9050919050565b600082600052816020526040600020905092915050565b6040518060800160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff168152602001600015158152602001600062ffffff1681525090565b6000604051905090565b600080fd5b600080fd5b6000819050919050565b6133cd816133ba565b81146133d857600080fd5b50565b6000813590506133ea816133c4565b92915050565b600060208284031215613406576134056133b0565b5b6000613414848285016133db565b91505092915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6134528161341d565b811461345d57600080fd5b50565b60008135905061346f81613449565b92915050565b60006020828403121561348b5761348a6133b0565b5b600061349984828501613460565b91505092915050565b60008115159050919050565b6134b7816134a2565b82525050565b60006020820190506134d260008301846134ae565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156135125780820151818401526020810190506134f7565b60008484015250505050565b6000601f19601f8301169050919050565b600061353a826134d8565b61354481856134e3565b93506135548185602086016134f4565b61355d8161351e565b840191505092915050565b60006020820190508181036000830152613582818461352f565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006135b58261358a565b9050919050565b6135c5816135aa565b82525050565b60006020820190506135e060008301846135bc565b92915050565b6135ef816135aa565b81146135fa57600080fd5b50565b60008135905061360c816135e6565b92915050565b60008060408385031215613629576136286133b0565b5b6000613637858286016135fd565b9250506020613648858286016133db565b9150509250929050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6136948261351e565b810181811067ffffffffffffffff821117156136b3576136b261365c565b5b80604052505050565b60006136c66133a6565b90506136d2828261368b565b919050565b600067ffffffffffffffff8211156136f2576136f161365c565b5b6136fb8261351e565b9050602081019050919050565b82818337600083830152505050565b600061372a613725846136d7565b6136bc565b90508281526020810184848401111561374657613745613657565b5b613751848285613708565b509392505050565b600082601f83011261376e5761376d613652565b5b813561377e848260208601613717565b91505092915050565b60006020828403121561379d5761379c6133b0565b5b600082013567ffffffffffffffff8111156137bb576137ba6133b5565b5b6137c784828501613759565b91505092915050565b6137d9816133ba565b82525050565b60006020820190506137f460008301846137d0565b92915050565b60008060408385031215613811576138106133b0565b5b600061381f858286016133db565b9250506020613830858286016133db565b9150509250929050565b600080600060608486031215613853576138526133b0565b5b6000613861868287016135fd565b9350506020613872868287016135fd565b9250506040613883868287016133db565b9150509250925092565b60006040820190506138a260008301856135bc565b6138af60208301846137d0565b9392505050565b6000819050919050565b6138c9816138b6565b82525050565b60006020820190506138e460008301846138c0565b92915050565b60008060408385031215613901576139006133b0565b5b600061390f858286016133db565b9250506020613920858286016135fd565b9150509250929050565b6000819050919050565b600061394f61394a6139458461358a565b61392a565b61358a565b9050919050565b600061396182613934565b9050919050565b600061397382613956565b9050919050565b61398381613968565b82525050565b600060208201905061399e600083018461397a565b92915050565b6000602082840312156139ba576139b96133b0565b5b60006139c8848285016135fd565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613a06816133ba565b82525050565b6000613a1883836139fd565b60208301905092915050565b6000602082019050919050565b6000613a3c826139d1565b613a4681856139dc565b9350613a51836139ed565b8060005b83811015613a82578151613a698882613a0c565b9750613a7483613a24565b925050600181019050613a55565b5085935050505092915050565b60006020820190508181036000830152613aa98184613a31565b905092915050565b600080fd5b600080fd5b60008083601f840112613ad157613ad0613652565b5b8235905067ffffffffffffffff811115613aee57613aed613ab1565b5b602083019150836020820283011115613b0a57613b09613ab6565b5b9250929050565b600080600060408486031215613b2a57613b296133b0565b5b6000613b38868287016133db565b935050602084013567ffffffffffffffff811115613b5957613b586133b5565b5b613b6586828701613abb565b92509250509250925092565b613b7a816134a2565b8114613b8557600080fd5b50565b600081359050613b9781613b71565b92915050565b60008060408385031215613bb457613bb36133b0565b5b6000613bc2858286016135fd565b9250506020613bd385828601613b88565b9150509250929050565b613be6816138b6565b8114613bf157600080fd5b50565b600081359050613c0381613bdd565b92915050565b600060208284031215613c1f57613c1e6133b0565b5b6000613c2d84828501613bf4565b91505092915050565b600067ffffffffffffffff821115613c5157613c5061365c565b5b613c5a8261351e565b9050602081019050919050565b6000613c7a613c7584613c36565b6136bc565b905082815260208101848484011115613c9657613c95613657565b5b613ca1848285613708565b509392505050565b600082601f830112613cbe57613cbd613652565b5b8135613cce848260208601613c67565b91505092915050565b60008060008060808587031215613cf157613cf06133b0565b5b6000613cff878288016135fd565b9450506020613d10878288016135fd565b9350506040613d21878288016133db565b925050606085013567ffffffffffffffff811115613d4257613d416133b5565b5b613d4e87828801613ca9565b91505092959194509250565b600060208284031215613d7057613d6f6133b0565b5b6000613d7e84828501613b88565b91505092915050565b60008060408385031215613d9e57613d9d6133b0565b5b6000613dac858286016135fd565b9250506020613dbd858286016135fd565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613e0e57607f821691505b602082108103613e2157613e20613dc7565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302613e897fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613e4c565b613e938683613e4c565b95508019841693508086168417925050509392505050565b6000613ec6613ec1613ebc846133ba565b61392a565b6133ba565b9050919050565b6000819050919050565b613ee083613eab565b613ef4613eec82613ecd565b848454613e59565b825550505050565b600090565b613f09613efc565b613f14818484613ed7565b505050565b5b81811015613f3857613f2d600082613f01565b600181019050613f1a565b5050565b601f821115613f7d57613f4e81613e27565b613f5784613e3c565b81016020851015613f66578190505b613f7a613f7285613e3c565b830182613f19565b50505b505050565b600082821c905092915050565b6000613fa060001984600802613f82565b1980831691505092915050565b6000613fb98383613f8f565b9150826002028217905092915050565b613fd2826134d8565b67ffffffffffffffff811115613feb57613fea61365c565b5b613ff58254613df6565b614000828285613f3c565b600060209050601f8311600181146140335760008415614021578287015190505b61402b8582613fad565b865550614093565b601f19841661404186613e27565b60005b8281101561406957848901518255600182019150602085019450602081019050614044565b868310156140865784890151614082601f891682613f8f565b8355505b6001600288020188555050505b505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006140d5826133ba565b91506140e0836133ba565b92508282019050808211156140f8576140f761409b565b5b92915050565b7f4d617820737570706c7920657863656564656421000000000000000000000000600082015250565b60006141346014836134e3565b915061413f826140fe565b602082019050919050565b6000602082019050818103600083015261416381614127565b9050919050565b600081905092915050565b50565b600061418560008361416a565b915061419082614175565b600082019050919050565b60006141a682614178565b9150819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f54686520576c53616c6520697320706175736564210000000000000000000000600082015250565b60006142156015836134e3565b9150614220826141df565b602082019050919050565b6000602082019050818103600083015261424481614208565b9050919050565b60008160601b9050919050565b60006142638261424b565b9050919050565b600061427582614258565b9050919050565b61428d614288826135aa565b61426a565b82525050565b600061429f828461427c565b60148201915081905092915050565b7f496e76616c69642070726f6f6621000000000000000000000000000000000000600082015250565b60006142e4600e836134e3565b91506142ef826142ae565b602082019050919050565b60006020820190508181036000830152614313816142d7565b9050919050565b7f496e76616c6964206d696e7420616d6f756e7421000000000000000000000000600082015250565b60006143506014836134e3565b915061435b8261431a565b602082019050919050565b6000602082019050818103600083015261437f81614343565b9050919050565b7f4d6178206d696e74207065722077616c6c657420657863656564656421000000600082015250565b60006143bc601d836134e3565b91506143c782614386565b602082019050919050565b600060208201905081810360008301526143eb816143af565b9050919050565b60006143fd826133ba565b9150614408836133ba565b9250828202614416816133ba565b9150828204841483151761442d5761442c61409b565b5b5092915050565b7f496e73756666696369656e742066756e64732100000000000000000000000000600082015250565b600061446a6013836134e3565b915061447582614434565b602082019050919050565b600060208201905081810360008301526144998161445d565b9050919050565b7f546865205075626c696353616c65206973207061757365642100000000000000600082015250565b60006144d66019836134e3565b91506144e1826144a0565b602082019050919050565b60006020820190508181036000830152614505816144c9565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000614568602f836134e3565b91506145738261450c565b604082019050919050565b600060208201905081810360008301526145978161455b565b9050919050565b600081905092915050565b60006145b4826134d8565b6145be818561459e565b93506145ce8185602086016134f4565b80840191505092915050565b600081546145e781613df6565b6145f1818661459e565b9450600182166000811461460c576001811461462157614654565b60ff1983168652811515820286019350614654565b61462a85613e27565b60005b8381101561464c5781548189015260018201915060208101905061462d565b838801955050505b50505092915050565b600061466982866145a9565b915061467582856145a9565b915061468182846145da565b9150819050949350505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006146ea6026836134e3565b91506146f58261468e565b604082019050919050565b60006020820190508181036000830152614719816146dd565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006147566020836134e3565b915061476182614720565b602082019050919050565b6000602082019050818103600083015261478581614749565b9050919050565b60006040820190506147a160008301856135bc565b6147ae60208301846135bc565b9392505050565b6000815190506147c481613b71565b92915050565b6000602082840312156147e0576147df6133b0565b5b60006147ee848285016147b5565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614831826133ba565b915061483c836133ba565b92508261484c5761484b6147f7565b5b828204905092915050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b600061488d601f836134e3565b915061489882614857565b602082019050919050565b600060208201905081810360008301526148bc81614880565b9050919050565b60006148ce826133ba565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614900576148ff61409b565b5b600182019050919050565b600081519050919050565b600082825260208201905092915050565b60006149328261490b565b61493c8185614916565b935061494c8185602086016134f4565b6149558161351e565b840191505092915050565b600060808201905061497560008301876135bc565b61498260208301866135bc565b61498f60408301856137d0565b81810360608301526149a18184614927565b905095945050505050565b6000815190506149bb81613449565b92915050565b6000602082840312156149d7576149d66133b0565b5b60006149e5848285016149ac565b9150509291505056fea264697066735822122043f8810918886833d49af463a9e60a8c6e7a8f1f6a32c87852dce00f8328523264736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _uri (string):
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000000
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.