Feature Tip: Add private address tag to any address under My Name Tag !
Overview
TokenID
346
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:
HZNToken
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: MIT pragma solidity ^0.8.17; import "erc721a/contracts/extensions/ERC721ABurnable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import "./DefaultOperatorFilterer.sol"; /* hhhhhhh h:::::h h:::::h h:::::h h::::h hhhhh zzzzzzzzzzzzzzzzznnnn nnnnnnnn h::::hh:::::hhh z:::::::::::::::zn:::nn::::::::nn h::::::::::::::hh z::::::::::::::z n::::::::::::::nn h:::::::hhh::::::h zzzzzzzz::::::z nn:::::::::::::::n h::::::h h::::::h z::::::z n:::::nnnn:::::n h:::::h h:::::h z::::::z n::::n n::::n h:::::h h:::::h z::::::z n::::n n::::n h:::::h h:::::h z::::::z n::::n n::::n h:::::h h:::::h z::::::zzzzzzzz n::::n n::::n h:::::h h:::::h z::::::::::::::z n::::n n::::n h:::::h h:::::hz:::::::::::::::z n::::n n::::n hhhhhhh hhhhhhhzzzzzzzzzzzzzzzzz nnnnnn nnnnnn */ contract HZNToken is ERC721ABurnable, ReentrancyGuard, Ownable, DefaultOperatorFilterer { using Strings for uint256; using ECDSA for bytes32; mapping(address => bool) private whitelistMintAddresses; mapping(address => bool) private waitlistMintAddress; bytes32 constant HASH_1 = keccak256("BATCH_1"); bytes32 constant HASH_2 = keccak256("BATCH_2"); address constant SIGNER = 0x8983B079f9bD27F6Aec4bd637016b22b0E80D729; // ======== SUPPLY ======== uint256 public MAX_SUPPLY = 1111; // ======== PRICE ======== uint256 public whitelistPrice = 0.097 ether; uint256 public waitlistPrice = 0.097 ether; // ======== SALE TIME ======== uint256 public whitelistBatchTime = 1668183060; // 11.11AM EST uint256 public waitlistBatchTime = 1668193860; // 2.11PM EST // ======== METADATA ======== bool public isRevealed = false; string public _baseTokenURI; string public notRevealedURI; string public baseExtension = ".json"; // ======== CONSTRUCTOR ======== constructor() ERC721A("HZN", "HZN") {} // ======== MINTING ======== function whitelistMint(bytes memory _signature) external payable hasMintStarted(whitelistBatchTime) signerIsValid(HASH_1, _signature) withinSupply(1) ethValueCheck(whitelistPrice) alreadyMinted(whitelistMintAddresses) { _safeMint(msg.sender, 1); } function waitListMint(bytes memory _signature) external payable hasMintStarted(waitlistBatchTime) signerIsValid(HASH_2, _signature) withinSupply(1) ethValueCheck(waitlistPrice) alreadyMinted(waitlistMintAddress) { _safeMint(msg.sender, 1); } function teamMint(uint256 _quantity) external onlyOwner withinSupply(_quantity) { _safeMint(msg.sender, _quantity); } // ======== SETTERS ======== function setBaseURI(string calldata baseURI) external onlyOwner { _baseTokenURI = baseURI; } function setMaxSupply(uint256 _supply) external onlyOwner { MAX_SUPPLY = _supply; } function setPrice(uint256 _whitelist, uint256 _waitlist) external onlyOwner { whitelistPrice = _whitelist; waitlistPrice = _waitlist; } function setNotRevealedURI(string memory _notRevealedURI) public onlyOwner { notRevealedURI = _notRevealedURI; } function setIsRevealed(bool _reveal) external onlyOwner { isRevealed = _reveal; } function setMintTime(uint256 _whitelist, uint256 _waitlist) external onlyOwner { whitelistBatchTime = _whitelist; waitlistBatchTime = _waitlist; } // ======== WITHDRAW ======== function withdraw() external onlyOwner { (bool os, ) = payable(owner()).call{value: address(this).balance}(""); require(os); } // ========= GETTERS =========== function tokenURI(uint256 tokenId) public view virtual override(ERC721A, IERC721A) returns (string memory) { require( _exists(tokenId), "ERC721aMetadata: URI query for nonexistent token" ); if (!isRevealed) { return notRevealedURI; } return string( abi.encodePacked( _baseTokenURI, tokenId.toString(), baseExtension ) ); } function _startTokenId() internal view virtual override(ERC721A) returns (uint256) { return 1; } // ===== OPENSEA OVERRIDES ===== function transferFrom( address from, address to, uint256 tokenId ) public override(ERC721A, IERC721A) payable onlyAllowedOperator(from) { super.transferFrom(from, to, tokenId); } function safeTransferFrom( address from, address to, uint256 tokenId ) public override(ERC721A, IERC721A) payable onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId); } function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) public override(ERC721A, IERC721A) payable onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId, data); } // ===== MODIFIERS ===== modifier withinSupply(uint256 _quantity) { require(totalSupply() + _quantity <= MAX_SUPPLY, "Exceeded max supply"); _; } modifier signerIsValid(bytes32 _hash, bytes memory _signature) { bytes32 messagehash = keccak256( abi.encodePacked(address(this), _hash, msg.sender) ); address signer = messagehash.toEthSignedMessageHash().recover( _signature ); require(signer == SIGNER, "Signature not valid"); _; } modifier alreadyMinted(mapping(address => bool) storage _map) { require(!_map[msg.sender], "Already minted"); _map[msg.sender] = true; _; } modifier ethValueCheck(uint256 _price) { require(msg.value >= _price, "Not enough eth sent"); _; } modifier hasMintStarted(uint256 _startTime) { require(block.timestamp >= _startTime, "Not yet started"); _; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import {OperatorFilterer} from "./OperatorFilterer.sol"; abstract contract DefaultOperatorFilterer is OperatorFilterer { address constant DEFAULT_SUBSCRIPTION = address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6); constructor() OperatorFilterer(DEFAULT_SUBSCRIPTION, true) {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; import "../Strings.sol"; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV // Deprecated in v4.8 } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. /// @solidity memory-safe-assembly assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); uint8 v = uint8((uint256(vs) >> 255) + 27); return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// 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.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 // 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 // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721ABurnable.sol'; import '../ERC721A.sol'; /** * @title ERC721ABurnable. * * @dev ERC721A token that can be irreversibly burned (destroyed). */ abstract contract ERC721ABurnable is ERC721A, IERC721ABurnable { /** * @dev Burns `tokenId`. See {ERC721A-_burn}. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function burn(uint256 tokenId) public virtual override { _burn(tokenId, true); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol"; abstract contract OperatorFilterer { error OperatorNotAllowed(address operator); IOperatorFilterRegistry constant operatorFilterRegistry = IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E); 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(operatorFilterRegistry).code.length > 0) { if (subscribe) { operatorFilterRegistry.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy); } else { if (subscriptionOrRegistrantToCopy != address(0)) { operatorFilterRegistry.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy); } else { operatorFilterRegistry.register(address(this)); } } } } modifier onlyAllowedOperator(address from) virtual { // Check registry code length to facilitate testing in environments without a deployed registry. if (address(operatorFilterRegistry).code.length > 0) { // 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) { _; return; } if ( !( operatorFilterRegistry.isOperatorAllowed(address(this), msg.sender) && operatorFilterRegistry.isOperatorAllowed(address(this), from) ) ) { revert OperatorNotAllowed(msg.sender); } } _; } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; /** * @dev Interface of ERC721 token receiver. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @title ERC721A * * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) * Non-Fungible Token Standard, including the Metadata extension. * Optimized for lower gas during batch mints. * * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) * starting from `_startTokenId()`. * * Assumptions: * * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364). struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // Mask of an entry in packed address data. uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant _BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant _BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant _BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant _BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant _BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant _BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant _BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with {_mintERC2309}. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309} // is required to cause an overflow, which is unrealistic. uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See {_packedOwnershipOf} implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view virtual returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() public view virtual override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) public view virtual override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> _BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal virtual { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); _packedAddressData[owner] = packed; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes // of the XOR of all function selectors in the interface. // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165) // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`) return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & _BITMASK_BURNED == 0) { // Invariant: // There will always be an initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `curr` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP); ownership.burned = packed & _BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) public payable virtual override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId].value; } /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) public virtual override { _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned. } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) public payable virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public payable virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public payable virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Hook that is called before a set of serially-ordered token IDs * are about to be transferred. This includes minting. * And also called before burning one token. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token IDs * have been transferred. This includes minting. * And also called after one token has been burned. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 toMasked; uint256 end = startTokenId + quantity; // Use assembly to loop and emit the `Transfer` event for gas savings. // The duplicated `log4` removes an extra check and reduces stack juggling. // The assembly, together with the surrounding Solidity code, have been // delicately arranged to nudge the compiler into producing optimized opcodes. assembly { // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. toMasked := and(to, _BITMASK_ADDRESS) // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. startTokenId // `tokenId`. ) // The `iszero(eq(,))` check ensures that large values of `quantity` // that overflows uint256 will make the loop run out of gas. // The compiler will optimize the `iszero` away for performance. for { let tokenId := add(startTokenId, 1) } iszero(eq(tokenId, end)) { tokenId := add(tokenId, 1) } { // Emit the `Transfer` event. Similar to above. log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId) } } if (toMasked == 0) revert MintToZeroAddress(); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString(uint256 value) internal pure virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), but // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned. // We will need 1 word for the trailing zeros padding, 1 word for the length, // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0. let m := add(mload(0x40), 0xa0) // Update the free memory pointer to allocate. mstore(0x40, m) // Assign the `str` to the end. str := sub(m, 0x20) // Zeroize the slot after the string. mstore(str, 0) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; import '../IERC721A.sol'; /** * @dev Interface of ERC721ABurnable. */ interface IERC721ABurnable is IERC721A { /** * @dev Burns `tokenId`. See {ERC721A-_burn}. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function burn(uint256 tokenId) external; }
// SPDX-License-Identifier: MIT // 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/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 { function isOperatorAllowed(address registrant, address operator) external view returns (bool); function register(address registrant) external; function registerAndSubscribe(address registrant, address subscription) external; function registerAndCopyEntries(address registrant, address registrantToCopy) external; function updateOperator(address registrant, address operator, bool filtered) external; function updateOperators(address registrant, address[] calldata operators, bool filtered) external; function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external; function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external; function subscribe(address registrant, address registrantToSubscribe) external; function unsubscribe(address registrant, bool copyExistingEntries) external; function subscriptionOf(address addr) external returns (address registrant); function subscribers(address registrant) external returns (address[] memory); function subscriberAt(address registrant, uint256 index) external returns (address); function copyEntriesOf(address registrant, address registrantToCopy) external; function isOperatorFiltered(address registrant, address operator) external returns (bool); function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool); function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool); function filteredOperators(address addr) external returns (address[] memory); function filteredCodeHashes(address addr) external returns (bytes32[] memory); function filteredOperatorAt(address registrant, uint256 index) external returns (address); function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32); function isRegistered(address addr) external returns (bool); function codeHashOf(address addr) external returns (bytes32); }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the * ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables * (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, * checking first that contract recipients are aware of the ERC721 protocol * to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move * this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external payable; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Transfers `tokenId` from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} * whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external payable; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","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":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseExtension","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isRevealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"notRevealedURI","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":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"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":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_reveal","type":"bool"}],"name":"setIsRevealed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_supply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_whitelist","type":"uint256"},{"internalType":"uint256","name":"_waitlist","type":"uint256"}],"name":"setMintTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_notRevealedURI","type":"string"}],"name":"setNotRevealedURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_whitelist","type":"uint256"},{"internalType":"uint256","name":"_waitlist","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"teamMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"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":[{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"waitListMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"waitlistBatchTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"waitlistPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistBatchTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"whitelistPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052610457600c556701589cfc6f368000600d556701589cfc6f368000600e5563636e7414600f5563636e9e446010556000601160006101000a81548160ff0219169083151502179055506040518060400160405280600581526020017f2e6a736f6e00000000000000000000000000000000000000000000000000000081525060149081620000939190620006d7565b50348015620000a157600080fd5b50733cc6cdda760b79bafa08df41ecfa224f810dceb660016040518060400160405280600381526020017f485a4e00000000000000000000000000000000000000000000000000000000008152506040518060400160405280600381526020017f485a4e00000000000000000000000000000000000000000000000000000000008152508160029081620001369190620006d7565b508060039081620001489190620006d7565b50620001596200038660201b60201c565b60008190555050506001600881905550620001896200017d6200038f60201b60201c565b6200039760201b60201c565b60006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b11156200037e57801562000244576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16637d3e3dbe30846040518363ffffffff1660e01b81526004016200020a92919062000803565b600060405180830381600087803b1580156200022557600080fd5b505af11580156200023a573d6000803e3d6000fd5b505050506200037d565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614620002fe576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663a0af290330846040518363ffffffff1660e01b8152600401620002c492919062000803565b600060405180830381600087803b158015620002df57600080fd5b505af1158015620002f4573d6000803e3d6000fd5b505050506200037c565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16634420e486306040518263ffffffff1660e01b815260040162000347919062000830565b600060405180830381600087803b1580156200036257600080fd5b505af115801562000377573d6000803e3d6000fd5b505050505b5b5b50506200084d565b60006001905090565b600033905090565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620004df57607f821691505b602082108103620004f557620004f462000497565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026200055f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262000520565b6200056b868362000520565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b6000620005b8620005b2620005ac8462000583565b6200058d565b62000583565b9050919050565b6000819050919050565b620005d48362000597565b620005ec620005e382620005bf565b8484546200052d565b825550505050565b600090565b62000603620005f4565b62000610818484620005c9565b505050565b5b8181101562000638576200062c600082620005f9565b60018101905062000616565b5050565b601f82111562000687576200065181620004fb565b6200065c8462000510565b810160208510156200066c578190505b620006846200067b8562000510565b83018262000615565b50505b505050565b600082821c905092915050565b6000620006ac600019846008026200068c565b1980831691505092915050565b6000620006c7838362000699565b9150826002028217905092915050565b620006e2826200045d565b67ffffffffffffffff811115620006fe57620006fd62000468565b5b6200070a8254620004c6565b620007178282856200063c565b600060209050601f8311600181146200074f57600084156200073a578287015190505b620007468582620006b9565b865550620007b6565b601f1984166200075f86620004fb565b60005b82811015620007895784890151825560018201915060208501945060208101905062000762565b86831015620007a95784890151620007a5601f89168262000699565b8355505b6001600288020188555050505b505050505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620007eb82620007be565b9050919050565b620007fd81620007de565b82525050565b60006040820190506200081a6000830185620007f2565b620008296020830184620007f2565b9392505050565b6000602082019050620008476000830184620007f2565b92915050565b614708806200085d6000396000f3fe60806040526004361061021a5760003560e01c80636f8b44b011610123578063a22cb465116100ab578063e985e9c51161006f578063e985e9c514610749578063f2c4ce1e14610786578063f2fde38b146107af578063f7d97577146107d8578063fc1a1c36146108015761021a565b8063a22cb46514610671578063b88d4fde1461069a578063c6682862146106b6578063c87b56dd146106e1578063cfc86f7b1461071e5761021a565b8063839bf4c2116100f2578063839bf4c2146105ab5780638da5cb5b146105c75780638dedfcc8146105f2578063910401c51461061d57806395d89b41146106465761021a565b80636f8b44b01461050357806370a082311461052c578063715018a61461056957806372250380146105805761021a565b80633ccfd60b116101a65780634cf04138116101755780634cf041381461041c57806354214f691461044757806355f804b3146104725780636352211e1461049b57806368697129146104d85761021a565b80633ccfd60b1461039757806342842e0e146103ae57806342966c68146103ca57806349a5980a146103f35761021a565b806318160ddd116101ed57806318160ddd146102e057806323b872dd1461030b5780632fbba1151461032757806332cb6b0c1461035057806337bc4c0b1461037b5761021a565b806301ffc9a71461021f57806306fdde031461025c578063081812fc14610287578063095ea7b3146102c4575b600080fd5b34801561022b57600080fd5b5061024660048036038101906102419190613191565b61082c565b60405161025391906131d9565b60405180910390f35b34801561026857600080fd5b506102716108be565b60405161027e9190613284565b60405180910390f35b34801561029357600080fd5b506102ae60048036038101906102a991906132dc565b610950565b6040516102bb919061334a565b60405180910390f35b6102de60048036038101906102d99190613391565b6109cf565b005b3480156102ec57600080fd5b506102f5610b13565b60405161030291906133e0565b60405180910390f35b610325600480360381019061032091906133fb565b610b2a565b005b34801561033357600080fd5b5061034e600480360381019061034991906132dc565b610d0c565b005b34801561035c57600080fd5b50610365610d7a565b60405161037291906133e0565b60405180910390f35b61039560048036038101906103909190613583565b610d80565b005b3480156103a357600080fd5b506103ac611052565b005b6103c860048036038101906103c391906133fb565b6110da565b005b3480156103d657600080fd5b506103f160048036038101906103ec91906132dc565b6112bc565b005b3480156103ff57600080fd5b5061041a600480360381019061041591906135f8565b6112ca565b005b34801561042857600080fd5b506104316112ef565b60405161043e91906133e0565b60405180910390f35b34801561045357600080fd5b5061045c6112f5565b60405161046991906131d9565b60405180910390f35b34801561047e57600080fd5b5061049960048036038101906104949190613685565b611308565b005b3480156104a757600080fd5b506104c260048036038101906104bd91906132dc565b611326565b6040516104cf919061334a565b60405180910390f35b3480156104e457600080fd5b506104ed611338565b6040516104fa91906133e0565b60405180910390f35b34801561050f57600080fd5b5061052a600480360381019061052591906132dc565b61133e565b005b34801561053857600080fd5b50610553600480360381019061054e91906136d2565b611350565b60405161056091906133e0565b60405180910390f35b34801561057557600080fd5b5061057e611408565b005b34801561058c57600080fd5b5061059561141c565b6040516105a29190613284565b60405180910390f35b6105c560048036038101906105c09190613583565b6114aa565b005b3480156105d357600080fd5b506105dc61177c565b6040516105e9919061334a565b60405180910390f35b3480156105fe57600080fd5b506106076117a6565b60405161061491906133e0565b60405180910390f35b34801561062957600080fd5b50610644600480360381019061063f91906136ff565b6117ac565b005b34801561065257600080fd5b5061065b6117c6565b6040516106689190613284565b60405180910390f35b34801561067d57600080fd5b506106986004803603810190610693919061373f565b611858565b005b6106b460048036038101906106af919061377f565b611963565b005b3480156106c257600080fd5b506106cb611b48565b6040516106d89190613284565b60405180910390f35b3480156106ed57600080fd5b50610708600480360381019061070391906132dc565b611bd6565b6040516107159190613284565b60405180910390f35b34801561072a57600080fd5b50610733611cfc565b6040516107409190613284565b60405180910390f35b34801561075557600080fd5b50610770600480360381019061076b9190613802565b611d8a565b60405161077d91906131d9565b60405180910390f35b34801561079257600080fd5b506107ad60048036038101906107a891906138e3565b611e1e565b005b3480156107bb57600080fd5b506107d660048036038101906107d191906136d2565b611e39565b005b3480156107e457600080fd5b506107ff60048036038101906107fa91906136ff565b611ebc565b005b34801561080d57600080fd5b50610816611ed6565b60405161082391906133e0565b60405180910390f35b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061088757506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806108b75750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b6060600280546108cd9061395b565b80601f01602080910402602001604051908101604052809291908181526020018280546108f99061395b565b80156109465780601f1061091b57610100808354040283529160200191610946565b820191906000526020600020905b81548152906001019060200180831161092957829003601f168201915b5050505050905090565b600061095b82611edc565b610991576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006109da82611326565b90508073ffffffffffffffffffffffffffffffffffffffff166109fb611f3b565b73ffffffffffffffffffffffffffffffffffffffff1614610a5e57610a2781610a22611f3b565b611d8a565b610a5d576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6000610b1d611f43565b6001546000540303905090565b8260006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115610cfa573373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610b9c57610b97848484611f4c565b610d06565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430336040518363ffffffff1660e01b8152600401610be592919061398c565b602060405180830381865afa158015610c02573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c2691906139ca565b8015610cb857506daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b8152600401610c7692919061398c565b602060405180830381865afa158015610c93573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cb791906139ca565b5b610cf957336040517fede71dcc000000000000000000000000000000000000000000000000000000008152600401610cf0919061334a565b60405180910390fd5b5b610d05848484611f4c565b5b50505050565b610d1461226e565b80600c5481610d21610b13565b610d2b9190613a26565b1115610d6c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d6390613aa6565b60405180910390fd5b610d7633836122ec565b5050565b600c5481565b600f5480421015610dc6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dbd90613b12565b60405180910390fd5b7f48801b61ab966c562a6e832d284f834f5771725d94a5052e063f9e9e43550221826000308333604051602001610dff93929190613ba5565b6040516020818303038152906040528051906020012090506000610e3483610e268461230a565b61233a90919063ffffffff16565b9050738983b079f9bd27f6aec4bd637016b22b0e80d72973ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610eb8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eaf90613c2e565b60405180910390fd5b6001600c5481610ec6610b13565b610ed09190613a26565b1115610f11576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f0890613aa6565b60405180910390fd5b600d5480341015610f57576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f4e90613c9a565b60405180910390fd5b600a8060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615610fe5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fdc90613d06565b60405180910390fd5b60018160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506110473360016122ec565b505050505050505050565b61105a61226e565b600061106461177c565b73ffffffffffffffffffffffffffffffffffffffff164760405161108790613d57565b60006040518083038185875af1925050503d80600081146110c4576040519150601f19603f3d011682016040523d82523d6000602084013e6110c9565b606091505b50509050806110d757600080fd5b50565b8260006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b11156112aa573373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361114c57611147848484612361565b6112b6565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430336040518363ffffffff1660e01b815260040161119592919061398c565b602060405180830381865afa1580156111b2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111d691906139ca565b801561126857506daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b815260040161122692919061398c565b602060405180830381865afa158015611243573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061126791906139ca565b5b6112a957336040517fede71dcc0000000000000000000000000000000000000000000000000000000081526004016112a0919061334a565b60405180910390fd5b5b6112b5848484612361565b5b50505050565b6112c7816001612381565b50565b6112d261226e565b80601160006101000a81548160ff02191690831515021790555050565b60105481565b601160009054906101000a900460ff1681565b61131061226e565b818160129182611321929190613f23565b505050565b6000611331826125d3565b9050919050565b600e5481565b61134661226e565b80600c8190555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036113b7576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b61141061226e565b61141a600061269f565b565b601380546114299061395b565b80601f01602080910402602001604051908101604052809291908181526020018280546114559061395b565b80156114a25780601f10611477576101008083540402835291602001916114a2565b820191906000526020600020905b81548152906001019060200180831161148557829003601f168201915b505050505081565b601054804210156114f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114e790613b12565b60405180910390fd5b7fcf07a0ff71d0990e0b6a88d590d352073ae9dacd5db04cb714e5c8bfd561931a82600030833360405160200161152993929190613ba5565b604051602081830303815290604052805190602001209050600061155e836115508461230a565b61233a90919063ffffffff16565b9050738983b079f9bd27f6aec4bd637016b22b0e80d72973ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146115e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115d990613c2e565b60405180910390fd5b6001600c54816115f0610b13565b6115fa9190613a26565b111561163b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161163290613aa6565b60405180910390fd5b600e5480341015611681576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161167890613c9a565b60405180910390fd5b600b8060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161561170f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161170690613d06565b60405180910390fd5b60018160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506117713360016122ec565b505050505050505050565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600f5481565b6117b461226e565b81600f81905550806010819055505050565b6060600380546117d59061395b565b80601f01602080910402602001604051908101604052809291908181526020018280546118019061395b565b801561184e5780601f106118235761010080835404028352916020019161184e565b820191906000526020600020905b81548152906001019060200180831161183157829003601f168201915b5050505050905090565b8060076000611865611f3b565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611912611f3b565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161195791906131d9565b60405180910390a35050565b8360006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115611b34573373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036119d6576119d185858585612765565b611b41565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430336040518363ffffffff1660e01b8152600401611a1f92919061398c565b602060405180830381865afa158015611a3c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a6091906139ca565b8015611af257506daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b8152600401611ab092919061398c565b602060405180830381865afa158015611acd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611af191906139ca565b5b611b3357336040517fede71dcc000000000000000000000000000000000000000000000000000000008152600401611b2a919061334a565b60405180910390fd5b5b611b4085858585612765565b5b5050505050565b60148054611b559061395b565b80601f0160208091040260200160405190810160405280929190818152602001828054611b819061395b565b8015611bce5780601f10611ba357610100808354040283529160200191611bce565b820191906000526020600020905b815481529060010190602001808311611bb157829003601f168201915b505050505081565b6060611be182611edc565b611c20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c1790614065565b60405180910390fd5b601160009054906101000a900460ff16611cc65760138054611c419061395b565b80601f0160208091040260200160405190810160405280929190818152602001828054611c6d9061395b565b8015611cba5780601f10611c8f57610100808354040283529160200191611cba565b820191906000526020600020905b815481529060010190602001808311611c9d57829003601f168201915b50505050509050611cf7565b6012611cd1836127d8565b6014604051602001611ce593929190614144565b60405160208183030381529060405290505b919050565b60128054611d099061395b565b80601f0160208091040260200160405190810160405280929190818152602001828054611d359061395b565b8015611d825780601f10611d5757610100808354040283529160200191611d82565b820191906000526020600020905b815481529060010190602001808311611d6557829003601f168201915b505050505081565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611e2661226e565b8060139081611e359190614175565b5050565b611e4161226e565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611eb0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ea7906142b9565b60405180910390fd5b611eb98161269f565b50565b611ec461226e565b81600d8190555080600e819055505050565b600d5481565b600081611ee7611f43565b11158015611ef6575060005482105b8015611f34575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b60006001905090565b6000611f57826125d3565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611fbe576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080611fca846128a6565b91509150611fe08187611fdb611f3b565b6128cd565b61202c57611ff586611ff0611f3b565b611d8a565b61202b576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603612092576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61209f8686866001612911565b80156120aa57600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001019190508190555061217885612154888887612917565b7c02000000000000000000000000000000000000000000000000000000001761293f565b600460008681526020019081526020016000208190555060007c02000000000000000000000000000000000000000000000000000000008416036121fe57600060018501905060006004600083815260200190815260200160002054036121fc5760005481146121fb578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612266868686600161296a565b505050505050565b612276612970565b73ffffffffffffffffffffffffffffffffffffffff1661229461177c565b73ffffffffffffffffffffffffffffffffffffffff16146122ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122e190614325565b60405180910390fd5b565b612306828260405180602001604052806000815250612978565b5050565b60008160405160200161231d9190614391565b604051602081830303815290604052805190602001209050919050565b60008060006123498585612a15565b9150915061235681612a66565b819250505092915050565b61237c83838360405180602001604052806000815250611963565b505050565b600061238c836125d3565b9050600081905060008061239f866128a6565b915091508415612408576123bb81846123b6611f3b565b6128cd565b612407576123d0836123cb611f3b565b611d8a565b612406576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b5b612416836000886001612911565b801561242157600082555b600160806001901b03600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506124c98361248685600088612917565b7c02000000000000000000000000000000000000000000000000000000007c0100000000000000000000000000000000000000000000000000000000171761293f565b600460008881526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000085160361254f576000600187019050600060046000838152602001908152602001600020540361254d57600054811461254c578460046000838152602001908152602001600020819055505b5b505b85600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46125b983600088600161296a565b600160008154809291906001019190505550505050505050565b600080829050806125e2611f43565b11612668576000548110156126675760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603612665575b6000810361265b576004600083600190039350838152602001908152602001600020549050612631565b809250505061269a565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612770848484610b2a565b60008373ffffffffffffffffffffffffffffffffffffffff163b146127d25761279b84848484612bcc565b6127d1576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b6060600060016127e784612d1c565b01905060008167ffffffffffffffff81111561280657612805613458565b5b6040519080825280601f01601f1916602001820160405280156128385781602001600182028036833780820191505090505b509050600082602001820190505b60011561289b578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a858161288f5761288e6143b7565b5b04945060008503612846575b819350505050919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e861292e868684612e6f565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b600033905090565b6129828383612e78565b60008373ffffffffffffffffffffffffffffffffffffffff163b14612a1057600080549050600083820390505b6129c26000868380600101945086612bcc565b6129f8576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8181106129af578160005414612a0d57600080fd5b50505b505050565b6000806041835103612a565760008060006020860151925060408601519150606086015160001a9050612a4a87828585613033565b94509450505050612a5f565b60006002915091505b9250929050565b60006004811115612a7a57612a796143e6565b5b816004811115612a8d57612a8c6143e6565b5b0315612bc95760016004811115612aa757612aa66143e6565b5b816004811115612aba57612ab96143e6565b5b03612afa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612af190614461565b60405180910390fd5b60026004811115612b0e57612b0d6143e6565b5b816004811115612b2157612b206143e6565b5b03612b61576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b58906144cd565b60405180910390fd5b60036004811115612b7557612b746143e6565b5b816004811115612b8857612b876143e6565b5b03612bc8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bbf9061455f565b60405180910390fd5b5b50565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612bf2611f3b565b8786866040518563ffffffff1660e01b8152600401612c1494939291906145d4565b6020604051808303816000875af1925050508015612c5057506040513d601f19601f82011682018060405250810190612c4d9190614635565b60015b612cc9573d8060008114612c80576040519150601f19603f3d011682016040523d82523d6000602084013e612c85565b606091505b506000815103612cc1576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310612d7a577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381612d7057612d6f6143b7565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310612db7576d04ee2d6d415b85acef81000000008381612dad57612dac6143b7565b5b0492506020810190505b662386f26fc100008310612de657662386f26fc100008381612ddc57612ddb6143b7565b5b0492506010810190505b6305f5e1008310612e0f576305f5e1008381612e0557612e046143b7565b5b0492506008810190505b6127108310612e34576127108381612e2a57612e296143b7565b5b0492506004810190505b60648310612e575760648381612e4d57612e4c6143b7565b5b0492506002810190505b600a8310612e66576001810190505b80915050919050565b60009392505050565b60008054905060008203612eb8576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612ec56000848385612911565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550612f3c83612f2d6000866000612917565b612f3685613115565b1761293f565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b818114612fdd57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050612fa2565b5060008203613018576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600081905550505061302e600084838561296a565b505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c111561306e57600060039150915061310c565b600060018787878760405160008152602001604052604051613093949392919061468d565b6020604051602081039080840390855afa1580156130b5573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036131035760006001925092505061310c565b80600092509250505b94509492505050565b60006001821460e11b9050919050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61316e81613139565b811461317957600080fd5b50565b60008135905061318b81613165565b92915050565b6000602082840312156131a7576131a661312f565b5b60006131b58482850161317c565b91505092915050565b60008115159050919050565b6131d3816131be565b82525050565b60006020820190506131ee60008301846131ca565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561322e578082015181840152602081019050613213565b60008484015250505050565b6000601f19601f8301169050919050565b6000613256826131f4565b61326081856131ff565b9350613270818560208601613210565b6132798161323a565b840191505092915050565b6000602082019050818103600083015261329e818461324b565b905092915050565b6000819050919050565b6132b9816132a6565b81146132c457600080fd5b50565b6000813590506132d6816132b0565b92915050565b6000602082840312156132f2576132f161312f565b5b6000613300848285016132c7565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061333482613309565b9050919050565b61334481613329565b82525050565b600060208201905061335f600083018461333b565b92915050565b61336e81613329565b811461337957600080fd5b50565b60008135905061338b81613365565b92915050565b600080604083850312156133a8576133a761312f565b5b60006133b68582860161337c565b92505060206133c7858286016132c7565b9150509250929050565b6133da816132a6565b82525050565b60006020820190506133f560008301846133d1565b92915050565b6000806000606084860312156134145761341361312f565b5b60006134228682870161337c565b93505060206134338682870161337c565b9250506040613444868287016132c7565b9150509250925092565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6134908261323a565b810181811067ffffffffffffffff821117156134af576134ae613458565b5b80604052505050565b60006134c2613125565b90506134ce8282613487565b919050565b600067ffffffffffffffff8211156134ee576134ed613458565b5b6134f78261323a565b9050602081019050919050565b82818337600083830152505050565b6000613526613521846134d3565b6134b8565b90508281526020810184848401111561354257613541613453565b5b61354d848285613504565b509392505050565b600082601f83011261356a5761356961344e565b5b813561357a848260208601613513565b91505092915050565b6000602082840312156135995761359861312f565b5b600082013567ffffffffffffffff8111156135b7576135b6613134565b5b6135c384828501613555565b91505092915050565b6135d5816131be565b81146135e057600080fd5b50565b6000813590506135f2816135cc565b92915050565b60006020828403121561360e5761360d61312f565b5b600061361c848285016135e3565b91505092915050565b600080fd5b600080fd5b60008083601f8401126136455761364461344e565b5b8235905067ffffffffffffffff81111561366257613661613625565b5b60208301915083600182028301111561367e5761367d61362a565b5b9250929050565b6000806020838503121561369c5761369b61312f565b5b600083013567ffffffffffffffff8111156136ba576136b9613134565b5b6136c68582860161362f565b92509250509250929050565b6000602082840312156136e8576136e761312f565b5b60006136f68482850161337c565b91505092915050565b600080604083850312156137165761371561312f565b5b6000613724858286016132c7565b9250506020613735858286016132c7565b9150509250929050565b600080604083850312156137565761375561312f565b5b60006137648582860161337c565b9250506020613775858286016135e3565b9150509250929050565b600080600080608085870312156137995761379861312f565b5b60006137a78782880161337c565b94505060206137b88782880161337c565b93505060406137c9878288016132c7565b925050606085013567ffffffffffffffff8111156137ea576137e9613134565b5b6137f687828801613555565b91505092959194509250565b600080604083850312156138195761381861312f565b5b60006138278582860161337c565b92505060206138388582860161337c565b9150509250929050565b600067ffffffffffffffff82111561385d5761385c613458565b5b6138668261323a565b9050602081019050919050565b600061388661388184613842565b6134b8565b9050828152602081018484840111156138a2576138a1613453565b5b6138ad848285613504565b509392505050565b600082601f8301126138ca576138c961344e565b5b81356138da848260208601613873565b91505092915050565b6000602082840312156138f9576138f861312f565b5b600082013567ffffffffffffffff81111561391757613916613134565b5b613923848285016138b5565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061397357607f821691505b6020821081036139865761398561392c565b5b50919050565b60006040820190506139a1600083018561333b565b6139ae602083018461333b565b9392505050565b6000815190506139c4816135cc565b92915050565b6000602082840312156139e0576139df61312f565b5b60006139ee848285016139b5565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613a31826132a6565b9150613a3c836132a6565b9250828201905080821115613a5457613a536139f7565b5b92915050565b7f4578636565646564206d617820737570706c7900000000000000000000000000600082015250565b6000613a906013836131ff565b9150613a9b82613a5a565b602082019050919050565b60006020820190508181036000830152613abf81613a83565b9050919050565b7f4e6f742079657420737461727465640000000000000000000000000000000000600082015250565b6000613afc600f836131ff565b9150613b0782613ac6565b602082019050919050565b60006020820190508181036000830152613b2b81613aef565b9050919050565b60008160601b9050919050565b6000613b4a82613b32565b9050919050565b6000613b5c82613b3f565b9050919050565b613b74613b6f82613329565b613b51565b82525050565b6000819050919050565b6000819050919050565b613b9f613b9a82613b7a565b613b84565b82525050565b6000613bb18286613b63565b601482019150613bc18285613b8e565b602082019150613bd18284613b63565b601482019150819050949350505050565b7f5369676e6174757265206e6f742076616c696400000000000000000000000000600082015250565b6000613c186013836131ff565b9150613c2382613be2565b602082019050919050565b60006020820190508181036000830152613c4781613c0b565b9050919050565b7f4e6f7420656e6f756768206574682073656e7400000000000000000000000000600082015250565b6000613c846013836131ff565b9150613c8f82613c4e565b602082019050919050565b60006020820190508181036000830152613cb381613c77565b9050919050565b7f416c7265616479206d696e746564000000000000000000000000000000000000600082015250565b6000613cf0600e836131ff565b9150613cfb82613cba565b602082019050919050565b60006020820190508181036000830152613d1f81613ce3565b9050919050565b600081905092915050565b50565b6000613d41600083613d26565b9150613d4c82613d31565b600082019050919050565b6000613d6282613d34565b9150819050919050565b600082905092915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302613dd97fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613d9c565b613de38683613d9c565b95508019841693508086168417925050509392505050565b6000819050919050565b6000613e20613e1b613e16846132a6565b613dfb565b6132a6565b9050919050565b6000819050919050565b613e3a83613e05565b613e4e613e4682613e27565b848454613da9565b825550505050565b600090565b613e63613e56565b613e6e818484613e31565b505050565b5b81811015613e9257613e87600082613e5b565b600181019050613e74565b5050565b601f821115613ed757613ea881613d77565b613eb184613d8c565b81016020851015613ec0578190505b613ed4613ecc85613d8c565b830182613e73565b50505b505050565b600082821c905092915050565b6000613efa60001984600802613edc565b1980831691505092915050565b6000613f138383613ee9565b9150826002028217905092915050565b613f2d8383613d6c565b67ffffffffffffffff811115613f4657613f45613458565b5b613f50825461395b565b613f5b828285613e96565b6000601f831160018114613f8a5760008415613f78578287013590505b613f828582613f07565b865550613fea565b601f198416613f9886613d77565b60005b82811015613fc057848901358255600182019150602085019450602081019050613f9b565b86831015613fdd5784890135613fd9601f891682613ee9565b8355505b6001600288020188555050505b50505050505050565b7f455243373231614d657461646174613a2055524920717565727920666f72206e60008201527f6f6e6578697374656e7420746f6b656e00000000000000000000000000000000602082015250565b600061404f6030836131ff565b915061405a82613ff3565b604082019050919050565b6000602082019050818103600083015261407e81614042565b9050919050565b600081905092915050565b6000815461409d8161395b565b6140a78186614085565b945060018216600081146140c257600181146140d75761410a565b60ff198316865281151582028601935061410a565b6140e085613d77565b60005b83811015614102578154818901526001820191506020810190506140e3565b838801955050505b50505092915050565b600061411e826131f4565b6141288185614085565b9350614138818560208601613210565b80840191505092915050565b60006141508286614090565b915061415c8285614113565b91506141688284614090565b9150819050949350505050565b61417e826131f4565b67ffffffffffffffff81111561419757614196613458565b5b6141a1825461395b565b6141ac828285613e96565b600060209050601f8311600181146141df57600084156141cd578287015190505b6141d78582613f07565b86555061423f565b601f1984166141ed86613d77565b60005b82811015614215578489015182556001820191506020850194506020810190506141f0565b86831015614232578489015161422e601f891682613ee9565b8355505b6001600288020188555050505b505050505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006142a36026836131ff565b91506142ae82614247565b604082019050919050565b600060208201905081810360008301526142d281614296565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061430f6020836131ff565b915061431a826142d9565b602082019050919050565b6000602082019050818103600083015261433e81614302565b9050919050565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b600061437b601c83614085565b915061438682614345565b601c82019050919050565b600061439c8261436e565b91506143a88284613b8e565b60208201915081905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b600061444b6018836131ff565b915061445682614415565b602082019050919050565b6000602082019050818103600083015261447a8161443e565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b60006144b7601f836131ff565b91506144c282614481565b602082019050919050565b600060208201905081810360008301526144e6816144aa565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b60006145496022836131ff565b9150614554826144ed565b604082019050919050565b600060208201905081810360008301526145788161453c565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006145a68261457f565b6145b0818561458a565b93506145c0818560208601613210565b6145c98161323a565b840191505092915050565b60006080820190506145e9600083018761333b565b6145f6602083018661333b565b61460360408301856133d1565b8181036060830152614615818461459b565b905095945050505050565b60008151905061462f81613165565b92915050565b60006020828403121561464b5761464a61312f565b5b600061465984828501614620565b91505092915050565b61466b81613b7a565b82525050565b600060ff82169050919050565b61468781614671565b82525050565b60006080820190506146a26000830187614662565b6146af602083018661467e565b6146bc6040830185614662565b6146c96060830184614662565b9594505050505056fea26469706673582212201a47c738c85d6ee0ba95823621f71294419057b4cd658dbf4d32b7bf0080a23f64736f6c63430008110033
Deployed Bytecode
0x60806040526004361061021a5760003560e01c80636f8b44b011610123578063a22cb465116100ab578063e985e9c51161006f578063e985e9c514610749578063f2c4ce1e14610786578063f2fde38b146107af578063f7d97577146107d8578063fc1a1c36146108015761021a565b8063a22cb46514610671578063b88d4fde1461069a578063c6682862146106b6578063c87b56dd146106e1578063cfc86f7b1461071e5761021a565b8063839bf4c2116100f2578063839bf4c2146105ab5780638da5cb5b146105c75780638dedfcc8146105f2578063910401c51461061d57806395d89b41146106465761021a565b80636f8b44b01461050357806370a082311461052c578063715018a61461056957806372250380146105805761021a565b80633ccfd60b116101a65780634cf04138116101755780634cf041381461041c57806354214f691461044757806355f804b3146104725780636352211e1461049b57806368697129146104d85761021a565b80633ccfd60b1461039757806342842e0e146103ae57806342966c68146103ca57806349a5980a146103f35761021a565b806318160ddd116101ed57806318160ddd146102e057806323b872dd1461030b5780632fbba1151461032757806332cb6b0c1461035057806337bc4c0b1461037b5761021a565b806301ffc9a71461021f57806306fdde031461025c578063081812fc14610287578063095ea7b3146102c4575b600080fd5b34801561022b57600080fd5b5061024660048036038101906102419190613191565b61082c565b60405161025391906131d9565b60405180910390f35b34801561026857600080fd5b506102716108be565b60405161027e9190613284565b60405180910390f35b34801561029357600080fd5b506102ae60048036038101906102a991906132dc565b610950565b6040516102bb919061334a565b60405180910390f35b6102de60048036038101906102d99190613391565b6109cf565b005b3480156102ec57600080fd5b506102f5610b13565b60405161030291906133e0565b60405180910390f35b610325600480360381019061032091906133fb565b610b2a565b005b34801561033357600080fd5b5061034e600480360381019061034991906132dc565b610d0c565b005b34801561035c57600080fd5b50610365610d7a565b60405161037291906133e0565b60405180910390f35b61039560048036038101906103909190613583565b610d80565b005b3480156103a357600080fd5b506103ac611052565b005b6103c860048036038101906103c391906133fb565b6110da565b005b3480156103d657600080fd5b506103f160048036038101906103ec91906132dc565b6112bc565b005b3480156103ff57600080fd5b5061041a600480360381019061041591906135f8565b6112ca565b005b34801561042857600080fd5b506104316112ef565b60405161043e91906133e0565b60405180910390f35b34801561045357600080fd5b5061045c6112f5565b60405161046991906131d9565b60405180910390f35b34801561047e57600080fd5b5061049960048036038101906104949190613685565b611308565b005b3480156104a757600080fd5b506104c260048036038101906104bd91906132dc565b611326565b6040516104cf919061334a565b60405180910390f35b3480156104e457600080fd5b506104ed611338565b6040516104fa91906133e0565b60405180910390f35b34801561050f57600080fd5b5061052a600480360381019061052591906132dc565b61133e565b005b34801561053857600080fd5b50610553600480360381019061054e91906136d2565b611350565b60405161056091906133e0565b60405180910390f35b34801561057557600080fd5b5061057e611408565b005b34801561058c57600080fd5b5061059561141c565b6040516105a29190613284565b60405180910390f35b6105c560048036038101906105c09190613583565b6114aa565b005b3480156105d357600080fd5b506105dc61177c565b6040516105e9919061334a565b60405180910390f35b3480156105fe57600080fd5b506106076117a6565b60405161061491906133e0565b60405180910390f35b34801561062957600080fd5b50610644600480360381019061063f91906136ff565b6117ac565b005b34801561065257600080fd5b5061065b6117c6565b6040516106689190613284565b60405180910390f35b34801561067d57600080fd5b506106986004803603810190610693919061373f565b611858565b005b6106b460048036038101906106af919061377f565b611963565b005b3480156106c257600080fd5b506106cb611b48565b6040516106d89190613284565b60405180910390f35b3480156106ed57600080fd5b50610708600480360381019061070391906132dc565b611bd6565b6040516107159190613284565b60405180910390f35b34801561072a57600080fd5b50610733611cfc565b6040516107409190613284565b60405180910390f35b34801561075557600080fd5b50610770600480360381019061076b9190613802565b611d8a565b60405161077d91906131d9565b60405180910390f35b34801561079257600080fd5b506107ad60048036038101906107a891906138e3565b611e1e565b005b3480156107bb57600080fd5b506107d660048036038101906107d191906136d2565b611e39565b005b3480156107e457600080fd5b506107ff60048036038101906107fa91906136ff565b611ebc565b005b34801561080d57600080fd5b50610816611ed6565b60405161082391906133e0565b60405180910390f35b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061088757506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806108b75750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b6060600280546108cd9061395b565b80601f01602080910402602001604051908101604052809291908181526020018280546108f99061395b565b80156109465780601f1061091b57610100808354040283529160200191610946565b820191906000526020600020905b81548152906001019060200180831161092957829003601f168201915b5050505050905090565b600061095b82611edc565b610991576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006109da82611326565b90508073ffffffffffffffffffffffffffffffffffffffff166109fb611f3b565b73ffffffffffffffffffffffffffffffffffffffff1614610a5e57610a2781610a22611f3b565b611d8a565b610a5d576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6000610b1d611f43565b6001546000540303905090565b8260006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115610cfa573373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610b9c57610b97848484611f4c565b610d06565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430336040518363ffffffff1660e01b8152600401610be592919061398c565b602060405180830381865afa158015610c02573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c2691906139ca565b8015610cb857506daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b8152600401610c7692919061398c565b602060405180830381865afa158015610c93573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cb791906139ca565b5b610cf957336040517fede71dcc000000000000000000000000000000000000000000000000000000008152600401610cf0919061334a565b60405180910390fd5b5b610d05848484611f4c565b5b50505050565b610d1461226e565b80600c5481610d21610b13565b610d2b9190613a26565b1115610d6c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d6390613aa6565b60405180910390fd5b610d7633836122ec565b5050565b600c5481565b600f5480421015610dc6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dbd90613b12565b60405180910390fd5b7f48801b61ab966c562a6e832d284f834f5771725d94a5052e063f9e9e43550221826000308333604051602001610dff93929190613ba5565b6040516020818303038152906040528051906020012090506000610e3483610e268461230a565b61233a90919063ffffffff16565b9050738983b079f9bd27f6aec4bd637016b22b0e80d72973ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610eb8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eaf90613c2e565b60405180910390fd5b6001600c5481610ec6610b13565b610ed09190613a26565b1115610f11576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f0890613aa6565b60405180910390fd5b600d5480341015610f57576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f4e90613c9a565b60405180910390fd5b600a8060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615610fe5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fdc90613d06565b60405180910390fd5b60018160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506110473360016122ec565b505050505050505050565b61105a61226e565b600061106461177c565b73ffffffffffffffffffffffffffffffffffffffff164760405161108790613d57565b60006040518083038185875af1925050503d80600081146110c4576040519150601f19603f3d011682016040523d82523d6000602084013e6110c9565b606091505b50509050806110d757600080fd5b50565b8260006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b11156112aa573373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361114c57611147848484612361565b6112b6565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430336040518363ffffffff1660e01b815260040161119592919061398c565b602060405180830381865afa1580156111b2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111d691906139ca565b801561126857506daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b815260040161122692919061398c565b602060405180830381865afa158015611243573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061126791906139ca565b5b6112a957336040517fede71dcc0000000000000000000000000000000000000000000000000000000081526004016112a0919061334a565b60405180910390fd5b5b6112b5848484612361565b5b50505050565b6112c7816001612381565b50565b6112d261226e565b80601160006101000a81548160ff02191690831515021790555050565b60105481565b601160009054906101000a900460ff1681565b61131061226e565b818160129182611321929190613f23565b505050565b6000611331826125d3565b9050919050565b600e5481565b61134661226e565b80600c8190555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036113b7576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b61141061226e565b61141a600061269f565b565b601380546114299061395b565b80601f01602080910402602001604051908101604052809291908181526020018280546114559061395b565b80156114a25780601f10611477576101008083540402835291602001916114a2565b820191906000526020600020905b81548152906001019060200180831161148557829003601f168201915b505050505081565b601054804210156114f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114e790613b12565b60405180910390fd5b7fcf07a0ff71d0990e0b6a88d590d352073ae9dacd5db04cb714e5c8bfd561931a82600030833360405160200161152993929190613ba5565b604051602081830303815290604052805190602001209050600061155e836115508461230a565b61233a90919063ffffffff16565b9050738983b079f9bd27f6aec4bd637016b22b0e80d72973ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146115e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115d990613c2e565b60405180910390fd5b6001600c54816115f0610b13565b6115fa9190613a26565b111561163b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161163290613aa6565b60405180910390fd5b600e5480341015611681576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161167890613c9a565b60405180910390fd5b600b8060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161561170f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161170690613d06565b60405180910390fd5b60018160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506117713360016122ec565b505050505050505050565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600f5481565b6117b461226e565b81600f81905550806010819055505050565b6060600380546117d59061395b565b80601f01602080910402602001604051908101604052809291908181526020018280546118019061395b565b801561184e5780601f106118235761010080835404028352916020019161184e565b820191906000526020600020905b81548152906001019060200180831161183157829003601f168201915b5050505050905090565b8060076000611865611f3b565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611912611f3b565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161195791906131d9565b60405180910390a35050565b8360006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115611b34573373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036119d6576119d185858585612765565b611b41565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430336040518363ffffffff1660e01b8152600401611a1f92919061398c565b602060405180830381865afa158015611a3c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a6091906139ca565b8015611af257506daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b8152600401611ab092919061398c565b602060405180830381865afa158015611acd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611af191906139ca565b5b611b3357336040517fede71dcc000000000000000000000000000000000000000000000000000000008152600401611b2a919061334a565b60405180910390fd5b5b611b4085858585612765565b5b5050505050565b60148054611b559061395b565b80601f0160208091040260200160405190810160405280929190818152602001828054611b819061395b565b8015611bce5780601f10611ba357610100808354040283529160200191611bce565b820191906000526020600020905b815481529060010190602001808311611bb157829003601f168201915b505050505081565b6060611be182611edc565b611c20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c1790614065565b60405180910390fd5b601160009054906101000a900460ff16611cc65760138054611c419061395b565b80601f0160208091040260200160405190810160405280929190818152602001828054611c6d9061395b565b8015611cba5780601f10611c8f57610100808354040283529160200191611cba565b820191906000526020600020905b815481529060010190602001808311611c9d57829003601f168201915b50505050509050611cf7565b6012611cd1836127d8565b6014604051602001611ce593929190614144565b60405160208183030381529060405290505b919050565b60128054611d099061395b565b80601f0160208091040260200160405190810160405280929190818152602001828054611d359061395b565b8015611d825780601f10611d5757610100808354040283529160200191611d82565b820191906000526020600020905b815481529060010190602001808311611d6557829003601f168201915b505050505081565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611e2661226e565b8060139081611e359190614175565b5050565b611e4161226e565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611eb0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ea7906142b9565b60405180910390fd5b611eb98161269f565b50565b611ec461226e565b81600d8190555080600e819055505050565b600d5481565b600081611ee7611f43565b11158015611ef6575060005482105b8015611f34575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b60006001905090565b6000611f57826125d3565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611fbe576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080611fca846128a6565b91509150611fe08187611fdb611f3b565b6128cd565b61202c57611ff586611ff0611f3b565b611d8a565b61202b576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603612092576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61209f8686866001612911565b80156120aa57600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001019190508190555061217885612154888887612917565b7c02000000000000000000000000000000000000000000000000000000001761293f565b600460008681526020019081526020016000208190555060007c02000000000000000000000000000000000000000000000000000000008416036121fe57600060018501905060006004600083815260200190815260200160002054036121fc5760005481146121fb578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612266868686600161296a565b505050505050565b612276612970565b73ffffffffffffffffffffffffffffffffffffffff1661229461177c565b73ffffffffffffffffffffffffffffffffffffffff16146122ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122e190614325565b60405180910390fd5b565b612306828260405180602001604052806000815250612978565b5050565b60008160405160200161231d9190614391565b604051602081830303815290604052805190602001209050919050565b60008060006123498585612a15565b9150915061235681612a66565b819250505092915050565b61237c83838360405180602001604052806000815250611963565b505050565b600061238c836125d3565b9050600081905060008061239f866128a6565b915091508415612408576123bb81846123b6611f3b565b6128cd565b612407576123d0836123cb611f3b565b611d8a565b612406576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b5b612416836000886001612911565b801561242157600082555b600160806001901b03600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506124c98361248685600088612917565b7c02000000000000000000000000000000000000000000000000000000007c0100000000000000000000000000000000000000000000000000000000171761293f565b600460008881526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000085160361254f576000600187019050600060046000838152602001908152602001600020540361254d57600054811461254c578460046000838152602001908152602001600020819055505b5b505b85600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46125b983600088600161296a565b600160008154809291906001019190505550505050505050565b600080829050806125e2611f43565b11612668576000548110156126675760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603612665575b6000810361265b576004600083600190039350838152602001908152602001600020549050612631565b809250505061269a565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612770848484610b2a565b60008373ffffffffffffffffffffffffffffffffffffffff163b146127d25761279b84848484612bcc565b6127d1576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b6060600060016127e784612d1c565b01905060008167ffffffffffffffff81111561280657612805613458565b5b6040519080825280601f01601f1916602001820160405280156128385781602001600182028036833780820191505090505b509050600082602001820190505b60011561289b578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a858161288f5761288e6143b7565b5b04945060008503612846575b819350505050919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e861292e868684612e6f565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b600033905090565b6129828383612e78565b60008373ffffffffffffffffffffffffffffffffffffffff163b14612a1057600080549050600083820390505b6129c26000868380600101945086612bcc565b6129f8576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8181106129af578160005414612a0d57600080fd5b50505b505050565b6000806041835103612a565760008060006020860151925060408601519150606086015160001a9050612a4a87828585613033565b94509450505050612a5f565b60006002915091505b9250929050565b60006004811115612a7a57612a796143e6565b5b816004811115612a8d57612a8c6143e6565b5b0315612bc95760016004811115612aa757612aa66143e6565b5b816004811115612aba57612ab96143e6565b5b03612afa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612af190614461565b60405180910390fd5b60026004811115612b0e57612b0d6143e6565b5b816004811115612b2157612b206143e6565b5b03612b61576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b58906144cd565b60405180910390fd5b60036004811115612b7557612b746143e6565b5b816004811115612b8857612b876143e6565b5b03612bc8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bbf9061455f565b60405180910390fd5b5b50565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612bf2611f3b565b8786866040518563ffffffff1660e01b8152600401612c1494939291906145d4565b6020604051808303816000875af1925050508015612c5057506040513d601f19601f82011682018060405250810190612c4d9190614635565b60015b612cc9573d8060008114612c80576040519150601f19603f3d011682016040523d82523d6000602084013e612c85565b606091505b506000815103612cc1576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310612d7a577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381612d7057612d6f6143b7565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310612db7576d04ee2d6d415b85acef81000000008381612dad57612dac6143b7565b5b0492506020810190505b662386f26fc100008310612de657662386f26fc100008381612ddc57612ddb6143b7565b5b0492506010810190505b6305f5e1008310612e0f576305f5e1008381612e0557612e046143b7565b5b0492506008810190505b6127108310612e34576127108381612e2a57612e296143b7565b5b0492506004810190505b60648310612e575760648381612e4d57612e4c6143b7565b5b0492506002810190505b600a8310612e66576001810190505b80915050919050565b60009392505050565b60008054905060008203612eb8576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612ec56000848385612911565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550612f3c83612f2d6000866000612917565b612f3685613115565b1761293f565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b818114612fdd57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050612fa2565b5060008203613018576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600081905550505061302e600084838561296a565b505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c111561306e57600060039150915061310c565b600060018787878760405160008152602001604052604051613093949392919061468d565b6020604051602081039080840390855afa1580156130b5573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036131035760006001925092505061310c565b80600092509250505b94509492505050565b60006001821460e11b9050919050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61316e81613139565b811461317957600080fd5b50565b60008135905061318b81613165565b92915050565b6000602082840312156131a7576131a661312f565b5b60006131b58482850161317c565b91505092915050565b60008115159050919050565b6131d3816131be565b82525050565b60006020820190506131ee60008301846131ca565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561322e578082015181840152602081019050613213565b60008484015250505050565b6000601f19601f8301169050919050565b6000613256826131f4565b61326081856131ff565b9350613270818560208601613210565b6132798161323a565b840191505092915050565b6000602082019050818103600083015261329e818461324b565b905092915050565b6000819050919050565b6132b9816132a6565b81146132c457600080fd5b50565b6000813590506132d6816132b0565b92915050565b6000602082840312156132f2576132f161312f565b5b6000613300848285016132c7565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061333482613309565b9050919050565b61334481613329565b82525050565b600060208201905061335f600083018461333b565b92915050565b61336e81613329565b811461337957600080fd5b50565b60008135905061338b81613365565b92915050565b600080604083850312156133a8576133a761312f565b5b60006133b68582860161337c565b92505060206133c7858286016132c7565b9150509250929050565b6133da816132a6565b82525050565b60006020820190506133f560008301846133d1565b92915050565b6000806000606084860312156134145761341361312f565b5b60006134228682870161337c565b93505060206134338682870161337c565b9250506040613444868287016132c7565b9150509250925092565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6134908261323a565b810181811067ffffffffffffffff821117156134af576134ae613458565b5b80604052505050565b60006134c2613125565b90506134ce8282613487565b919050565b600067ffffffffffffffff8211156134ee576134ed613458565b5b6134f78261323a565b9050602081019050919050565b82818337600083830152505050565b6000613526613521846134d3565b6134b8565b90508281526020810184848401111561354257613541613453565b5b61354d848285613504565b509392505050565b600082601f83011261356a5761356961344e565b5b813561357a848260208601613513565b91505092915050565b6000602082840312156135995761359861312f565b5b600082013567ffffffffffffffff8111156135b7576135b6613134565b5b6135c384828501613555565b91505092915050565b6135d5816131be565b81146135e057600080fd5b50565b6000813590506135f2816135cc565b92915050565b60006020828403121561360e5761360d61312f565b5b600061361c848285016135e3565b91505092915050565b600080fd5b600080fd5b60008083601f8401126136455761364461344e565b5b8235905067ffffffffffffffff81111561366257613661613625565b5b60208301915083600182028301111561367e5761367d61362a565b5b9250929050565b6000806020838503121561369c5761369b61312f565b5b600083013567ffffffffffffffff8111156136ba576136b9613134565b5b6136c68582860161362f565b92509250509250929050565b6000602082840312156136e8576136e761312f565b5b60006136f68482850161337c565b91505092915050565b600080604083850312156137165761371561312f565b5b6000613724858286016132c7565b9250506020613735858286016132c7565b9150509250929050565b600080604083850312156137565761375561312f565b5b60006137648582860161337c565b9250506020613775858286016135e3565b9150509250929050565b600080600080608085870312156137995761379861312f565b5b60006137a78782880161337c565b94505060206137b88782880161337c565b93505060406137c9878288016132c7565b925050606085013567ffffffffffffffff8111156137ea576137e9613134565b5b6137f687828801613555565b91505092959194509250565b600080604083850312156138195761381861312f565b5b60006138278582860161337c565b92505060206138388582860161337c565b9150509250929050565b600067ffffffffffffffff82111561385d5761385c613458565b5b6138668261323a565b9050602081019050919050565b600061388661388184613842565b6134b8565b9050828152602081018484840111156138a2576138a1613453565b5b6138ad848285613504565b509392505050565b600082601f8301126138ca576138c961344e565b5b81356138da848260208601613873565b91505092915050565b6000602082840312156138f9576138f861312f565b5b600082013567ffffffffffffffff81111561391757613916613134565b5b613923848285016138b5565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061397357607f821691505b6020821081036139865761398561392c565b5b50919050565b60006040820190506139a1600083018561333b565b6139ae602083018461333b565b9392505050565b6000815190506139c4816135cc565b92915050565b6000602082840312156139e0576139df61312f565b5b60006139ee848285016139b5565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613a31826132a6565b9150613a3c836132a6565b9250828201905080821115613a5457613a536139f7565b5b92915050565b7f4578636565646564206d617820737570706c7900000000000000000000000000600082015250565b6000613a906013836131ff565b9150613a9b82613a5a565b602082019050919050565b60006020820190508181036000830152613abf81613a83565b9050919050565b7f4e6f742079657420737461727465640000000000000000000000000000000000600082015250565b6000613afc600f836131ff565b9150613b0782613ac6565b602082019050919050565b60006020820190508181036000830152613b2b81613aef565b9050919050565b60008160601b9050919050565b6000613b4a82613b32565b9050919050565b6000613b5c82613b3f565b9050919050565b613b74613b6f82613329565b613b51565b82525050565b6000819050919050565b6000819050919050565b613b9f613b9a82613b7a565b613b84565b82525050565b6000613bb18286613b63565b601482019150613bc18285613b8e565b602082019150613bd18284613b63565b601482019150819050949350505050565b7f5369676e6174757265206e6f742076616c696400000000000000000000000000600082015250565b6000613c186013836131ff565b9150613c2382613be2565b602082019050919050565b60006020820190508181036000830152613c4781613c0b565b9050919050565b7f4e6f7420656e6f756768206574682073656e7400000000000000000000000000600082015250565b6000613c846013836131ff565b9150613c8f82613c4e565b602082019050919050565b60006020820190508181036000830152613cb381613c77565b9050919050565b7f416c7265616479206d696e746564000000000000000000000000000000000000600082015250565b6000613cf0600e836131ff565b9150613cfb82613cba565b602082019050919050565b60006020820190508181036000830152613d1f81613ce3565b9050919050565b600081905092915050565b50565b6000613d41600083613d26565b9150613d4c82613d31565b600082019050919050565b6000613d6282613d34565b9150819050919050565b600082905092915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302613dd97fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613d9c565b613de38683613d9c565b95508019841693508086168417925050509392505050565b6000819050919050565b6000613e20613e1b613e16846132a6565b613dfb565b6132a6565b9050919050565b6000819050919050565b613e3a83613e05565b613e4e613e4682613e27565b848454613da9565b825550505050565b600090565b613e63613e56565b613e6e818484613e31565b505050565b5b81811015613e9257613e87600082613e5b565b600181019050613e74565b5050565b601f821115613ed757613ea881613d77565b613eb184613d8c565b81016020851015613ec0578190505b613ed4613ecc85613d8c565b830182613e73565b50505b505050565b600082821c905092915050565b6000613efa60001984600802613edc565b1980831691505092915050565b6000613f138383613ee9565b9150826002028217905092915050565b613f2d8383613d6c565b67ffffffffffffffff811115613f4657613f45613458565b5b613f50825461395b565b613f5b828285613e96565b6000601f831160018114613f8a5760008415613f78578287013590505b613f828582613f07565b865550613fea565b601f198416613f9886613d77565b60005b82811015613fc057848901358255600182019150602085019450602081019050613f9b565b86831015613fdd5784890135613fd9601f891682613ee9565b8355505b6001600288020188555050505b50505050505050565b7f455243373231614d657461646174613a2055524920717565727920666f72206e60008201527f6f6e6578697374656e7420746f6b656e00000000000000000000000000000000602082015250565b600061404f6030836131ff565b915061405a82613ff3565b604082019050919050565b6000602082019050818103600083015261407e81614042565b9050919050565b600081905092915050565b6000815461409d8161395b565b6140a78186614085565b945060018216600081146140c257600181146140d75761410a565b60ff198316865281151582028601935061410a565b6140e085613d77565b60005b83811015614102578154818901526001820191506020810190506140e3565b838801955050505b50505092915050565b600061411e826131f4565b6141288185614085565b9350614138818560208601613210565b80840191505092915050565b60006141508286614090565b915061415c8285614113565b91506141688284614090565b9150819050949350505050565b61417e826131f4565b67ffffffffffffffff81111561419757614196613458565b5b6141a1825461395b565b6141ac828285613e96565b600060209050601f8311600181146141df57600084156141cd578287015190505b6141d78582613f07565b86555061423f565b601f1984166141ed86613d77565b60005b82811015614215578489015182556001820191506020850194506020810190506141f0565b86831015614232578489015161422e601f891682613ee9565b8355505b6001600288020188555050505b505050505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006142a36026836131ff565b91506142ae82614247565b604082019050919050565b600060208201905081810360008301526142d281614296565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061430f6020836131ff565b915061431a826142d9565b602082019050919050565b6000602082019050818103600083015261433e81614302565b9050919050565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b600061437b601c83614085565b915061438682614345565b601c82019050919050565b600061439c8261436e565b91506143a88284613b8e565b60208201915081905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b600061444b6018836131ff565b915061445682614415565b602082019050919050565b6000602082019050818103600083015261447a8161443e565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b60006144b7601f836131ff565b91506144c282614481565b602082019050919050565b600060208201905081810360008301526144e6816144aa565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b60006145496022836131ff565b9150614554826144ed565b604082019050919050565b600060208201905081810360008301526145788161453c565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006145a68261457f565b6145b0818561458a565b93506145c0818560208601613210565b6145c98161323a565b840191505092915050565b60006080820190506145e9600083018761333b565b6145f6602083018661333b565b61460360408301856133d1565b8181036060830152614615818461459b565b905095945050505050565b60008151905061462f81613165565b92915050565b60006020828403121561464b5761464a61312f565b5b600061465984828501614620565b91505092915050565b61466b81613b7a565b82525050565b600060ff82169050919050565b61468781614671565b82525050565b60006080820190506146a26000830187614662565b6146af602083018661467e565b6146bc6040830185614662565b6146c96060830184614662565b9594505050505056fea26469706673582212201a47c738c85d6ee0ba95823621f71294419057b4cd658dbf4d32b7bf0080a23f64736f6c63430008110033
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.