ERC-721
Overview
Max Total Supply
2,222 LSVIP
Holders
555
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 LSVIPLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
LeoContractSafeTransfer
Compiler Version
v0.8.14+commit.80d49f37
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.4; import "erc721a/contracts/ERC721A.sol"; import "./DefaultOperatorFilterer.sol"; import "@openzeppelin/[email protected]/security/ReentrancyGuard.sol"; import "@openzeppelin/[email protected]/security/Pausable.sol"; import "@openzeppelin/[email protected]/access/Ownable.sol"; import "@openzeppelin/[email protected]/utils/Strings.sol"; import "@openzeppelin/[email protected]/utils/cryptography/ECDSA.sol"; error ContractPaused(); error ProhibitTransfer(); contract LeoContractSafeTransfer is ERC721A, ReentrancyGuard, Ownable, Pausable, DefaultOperatorFilterer { using ECDSA for bytes32; using Strings for uint256; // var for token uri string public uriPrefix; string public uriSuffix = ".json"; // switch for sale active bool public isSaleActive = false; uint256 public price = 0.004 ether; // also, the value of maxSupply is for allowlist, need to be change in public func uint256 public maxSupply = 2222; // used to validate authorized mint addresses address private signerAddress = 0x272422f38181F3887dA85A7C886619A83BA9feEE; // Prohibit NFT Transfer mapping(uint256 => bool) private _prohibitTransferTokenId; constructor() ERC721A("LeoStudio VIP", "LSVIP") { setUriPrefix("https://leostudio.io/nft/metadata/"); } function setUriPrefix(string memory _uriPrefix) public onlyOwner { uriPrefix = _uriPrefix; } function setUriSuffix(string memory _uriSuffix) public onlyOwner { uriSuffix = _uriSuffix; } function _baseURI() internal view virtual override returns (string memory) { return uriPrefix; } function tokenURI(uint256 _tokenId) public view virtual override returns (string memory) { require(_exists(_tokenId), "URI query for nonexistent token"); string memory currentBaseURI = _baseURI(); return bytes(currentBaseURI).length > 0 ? string(abi.encodePacked(currentBaseURI, _tokenId.toString(), uriSuffix)) : ""; } // function for pause function pause() public onlyOwner { _pause(); } function unpause() public onlyOwner { _unpause(); } function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual override { super._beforeTokenTransfers(from, to, startTokenId, quantity); if (paused()) revert ContractPaused(); uint256 endTokenId = startTokenId + quantity; for (uint256 tokenId = startTokenId; tokenId < endTokenId; ++tokenId) { if (_prohibitTransferTokenId[tokenId]) revert ProhibitTransfer(); } } // function for mint function setMintPrice(uint256 _newMintPrice) public onlyOwner { require(price != _newMintPrice, "NEW_STATE_IDENTICAL_TO_OLD_STATE"); price = _newMintPrice; } function setMaxSupply(uint256 _maxSupply) public onlyOwner { require(maxSupply != _maxSupply, "NEW_STATE_IDENTICAL_TO_OLD_STATE"); maxSupply = _maxSupply; } function setSaleState(bool _saleActiveState) public onlyOwner { require(isSaleActive != _saleActiveState, "NEW_STATE_IDENTICAL_TO_OLD_STATE"); isSaleActive = _saleActiveState; } function setSignerAddress(address _signerAddress) external onlyOwner { require(_signerAddress != address(0)); signerAddress = _signerAddress; } function verifyAddressSigner(bytes32 _messageHash, bytes memory _signature) private view returns (bool) { return signerAddress == _messageHash.toEthSignedMessageHash().recover(_signature); } function hashMessage(address _sender, uint256 _maximumAllowedMints) private pure returns (bytes32) { return keccak256(abi.encode(_sender, _maximumAllowedMints)); } /** * @notice Allow for minting of tokens up to the maximum allowed for a given address. * The address of the sender and the number of mints allowed are hashed and signed * with the server's private key and verified here to prove allowlisting status. */ function mint( bytes32 _messageHash, bytes calldata _signature, uint256 _mintAmount, uint256 _maxAllowedMints ) external payable virtual nonReentrant { require(isSaleActive, "SALE_IS_NOT_ACTIVE"); require(_mintAmount > 0 && _mintAmount <= _maxAllowedMints, "INVALID_MINT_AMOUNT"); unchecked { // It has been checked that _mintAmount will not exceed maxMintAmountPerAddress. // First, numberMinted is less than maxMintAmountPerAddress, and totalMinted is less than maxSupply // So numberMinted(msg.sender) + _mintAmount is less than 2 * maxMintAmountPerAddress, // and totalMinted + _mintAmount is less than 2 * maxSupply, neither number will overflow. require(_numberMinted(msg.sender) + _mintAmount <= _maxAllowedMints, "MINT_TOO_MUCH"); require(_totalMinted() + _mintAmount <= maxSupply, "NOT_ENOUGH_MINTS_AVAILABLE"); } // Check signature require(hashMessage(msg.sender, _maxAllowedMints) == _messageHash, "MESSAGE_INVALID"); require(verifyAddressSigner(_messageHash, _signature), "SIGNATURE_VALIDATION_FAILED"); // Imprecise floats are scary, adding margin just to be safe to not fail txs require(msg.value >= ((price * _mintAmount) - 0.0001 ether) && msg.value <= ((price * _mintAmount) + 0.0001 ether), "INVALID_PRICE"); // ALL checks passed _safeMint(msg.sender, _mintAmount); } function gift(address _receiver, uint256 _mintAmount) external onlyOwner { unchecked { // Uncheck reason as same as mint require(_totalMinted() + _mintAmount <= maxSupply, "MINT_TOO_LARGE"); } _safeMint(_receiver, _mintAmount); } function getProhibitStatus(uint256 _tokenId) external view returns (bool) { return _prohibitTransferTokenId[_tokenId]; } function prohibitTransfer(uint256 _tokenId) external onlyOwner { _prohibitTransferTokenId[_tokenId] = true; } function allowTransfer(uint256 _tokenId) external onlyOwner { _prohibitTransferTokenId[_tokenId] = false; } function burn(uint256 _tokenId) external onlyOwner { _burn(_tokenId); } function totalMinted() external view returns (uint256) { return _totalMinted(); } function transferFrom(address from, address to, uint256 tokenId) public payable override onlyAllowedOperator(from) { super.transferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId) public payable override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public payable override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId, data); } /** * @notice Allow contract owner to withdraw to specific accounts */ function withdrawAll() external onlyOwner { uint256 balance = address(this).balance; require(payable(0x272422f38181F3887dA85A7C886619A83BA9feEE).send(balance)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.3) (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 } 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"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' 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 (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // 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.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_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) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT 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 // 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; /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the * ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables * (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, * checking first that contract recipients are aware of the ERC721 protocol * to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move * this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external payable; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Transfers `tokenId` from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} * whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external payable; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); }
// SPDX-License-Identifier: MIT 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 // 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); }
{ "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":"ContractPaused","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":"ProhibitTransfer","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"allowTransfer","outputs":[],"stateMutability":"nonpayable","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":[{"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":"uint256","name":"_tokenId","type":"uint256"}],"name":"getProhibitStatus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"gift","outputs":[],"stateMutability":"nonpayable","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":"isSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_messageHash","type":"bytes32"},{"internalType":"bytes","name":"_signature","type":"bytes"},{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"uint256","name":"_maxAllowedMints","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"prohibitTransfer","outputs":[],"stateMutability":"nonpayable","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":"uint256","name":"_maxSupply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newMintPrice","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_saleActiveState","type":"bool"}],"name":"setSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signerAddress","type":"address"}],"name":"setSignerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uriPrefix","type":"string"}],"name":"setUriPrefix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uriSuffix","type":"string"}],"name":"setUriSuffix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uriPrefix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uriSuffix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526040518060400160405280600581526020017f2e6a736f6e000000000000000000000000000000000000000000000000000000815250600b908051906020019062000051929190620005d2565b506000600c60006101000a81548160ff021916908315150217905550660e35fa931a0000600d556108ae600e5573272422f38181f3887da85a7c886619a83ba9feee600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550348015620000e057600080fd5b50733cc6cdda760b79bafa08df41ecfa224f810dceb660016040518060400160405280600d81526020017f4c656f53747564696f20564950000000000000000000000000000000000000008152506040518060400160405280600581526020017f4c5356495000000000000000000000000000000000000000000000000000000081525081600290805190602001906200017c929190620005d2565b50806003908051906020019062000195929190620005d2565b50620001a66200041860201b60201c565b60008190555050506001600881905550620001d6620001ca6200041d60201b60201c565b6200042560201b60201c565b6000600960146101000a81548160ff02191690831515021790555060006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115620003e6578015620002ac576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16637d3e3dbe30846040518363ffffffff1660e01b815260040162000272929190620006c7565b600060405180830381600087803b1580156200028d57600080fd5b505af1158015620002a2573d6000803e3d6000fd5b50505050620003e5565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161462000366576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663a0af290330846040518363ffffffff1660e01b81526004016200032c929190620006c7565b600060405180830381600087803b1580156200034757600080fd5b505af11580156200035c573d6000803e3d6000fd5b50505050620003e4565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16634420e486306040518263ffffffff1660e01b8152600401620003af9190620006f4565b600060405180830381600087803b158015620003ca57600080fd5b505af1158015620003df573d6000803e3d6000fd5b505050505b5b5b505062000412604051806060016040528060228152602001620052ef60229139620004eb60201b60201c565b620007f8565b600090565b600033905090565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b620004fb6200051760201b60201c565b80600a908051906020019062000513929190620005d2565b5050565b620005276200041d60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff166200054d620005a860201b60201c565b73ffffffffffffffffffffffffffffffffffffffff1614620005a6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200059d9062000772565b60405180910390fd5b565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b828054620005e090620007c3565b90600052602060002090601f01602090048101928262000604576000855562000650565b82601f106200061f57805160ff191683800117855562000650565b8280016001018555821562000650579182015b828111156200064f57825182559160200191906001019062000632565b5b5090506200065f919062000663565b5090565b5b808211156200067e57600081600090555060010162000664565b5090565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620006af8262000682565b9050919050565b620006c181620006a2565b82525050565b6000604082019050620006de6000830185620006b6565b620006ed6020830184620006b6565b9392505050565b60006020820190506200070b6000830184620006b6565b92915050565b600082825260208201905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006200075a60208362000711565b9150620007678262000722565b602082019050919050565b600060208201905081810360008301526200078d816200074b565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620007dc57607f821691505b602082108103620007f257620007f162000794565b5b50919050565b614ae780620008086000396000f3fe6080604052600436106102305760003560e01c8063715018a61161012e578063b88d4fde116100ab578063d16da4dd1161006f578063d16da4dd146107aa578063d5abeb01146107d3578063e985e9c5146107fe578063f2fde38b1461083b578063f4a0a5281461086457610230565b8063b88d4fde146106d6578063be411bb0146106f2578063c4e370951461071b578063c87b56dd14610744578063cbce4c971461078157610230565b806395d89b41116100f257806395d89b41146105ef578063960677e31461061a578063a035b1fe14610657578063a22cb46514610682578063a2309ff8146106ab57610230565b8063715018a6146105565780637ec4a6591461056d5780638456cb5914610596578063853828b6146105ad5780638da5cb5b146105c457610230565b80633f4ba83a116101bc5780635c975abb116101805780635c975abb1461045d57806362b99ad4146104885780636352211e146104b35780636f8b44b0146104f057806370a082311461051957610230565b80633f4ba83a146103ab57806342842e0e146103c257806342966c68146103de5780635503a0e814610407578063564566a81461043257610230565b8063095ea7b311610203578063095ea7b31461030357806316ba10e01461031f57806318160ddd1461034857806323b872dd1461037357806331fa3eb91461038f57610230565b806301ffc9a714610235578063046dc1661461027257806306fdde031461029b578063081812fc146102c6575b600080fd5b34801561024157600080fd5b5061025c6004803603810190610257919061348a565b61088d565b60405161026991906134d2565b60405180910390f35b34801561027e57600080fd5b506102996004803603810190610294919061354b565b61091f565b005b3480156102a757600080fd5b506102b06109a4565b6040516102bd9190613611565b60405180910390f35b3480156102d257600080fd5b506102ed60048036038101906102e89190613669565b610a36565b6040516102fa91906136a5565b60405180910390f35b61031d600480360381019061031891906136c0565b610ab5565b005b34801561032b57600080fd5b5061034660048036038101906103419190613835565b610bf9565b005b34801561035457600080fd5b5061035d610c1b565b60405161036a919061388d565b60405180910390f35b61038d600480360381019061038891906138a8565b610c32565b005b6103a960048036038101906103a49190613991565b610e14565b005b3480156103b757600080fd5b506103c0611116565b005b6103dc60048036038101906103d791906138a8565b611128565b005b3480156103ea57600080fd5b5061040560048036038101906104009190613669565b61130a565b005b34801561041357600080fd5b5061041c61131e565b6040516104299190613611565b60405180910390f35b34801561043e57600080fd5b506104476113ac565b60405161045491906134d2565b60405180910390f35b34801561046957600080fd5b506104726113bf565b60405161047f91906134d2565b60405180910390f35b34801561049457600080fd5b5061049d6113d6565b6040516104aa9190613611565b60405180910390f35b3480156104bf57600080fd5b506104da60048036038101906104d59190613669565b611464565b6040516104e791906136a5565b60405180910390f35b3480156104fc57600080fd5b5061051760048036038101906105129190613669565b611476565b005b34801561052557600080fd5b50610540600480360381019061053b919061354b565b6114cc565b60405161054d919061388d565b60405180910390f35b34801561056257600080fd5b5061056b611584565b005b34801561057957600080fd5b50610594600480360381019061058f9190613835565b611598565b005b3480156105a257600080fd5b506105ab6115ba565b005b3480156105b957600080fd5b506105c26115cc565b005b3480156105d057600080fd5b506105d961162e565b6040516105e691906136a5565b60405180910390f35b3480156105fb57600080fd5b50610604611658565b6040516106119190613611565b60405180910390f35b34801561062657600080fd5b50610641600480360381019061063c9190613669565b6116ea565b60405161064e91906134d2565b60405180910390f35b34801561066357600080fd5b5061066c611714565b604051610679919061388d565b60405180910390f35b34801561068e57600080fd5b506106a960048036038101906106a49190613a45565b61171a565b005b3480156106b757600080fd5b506106c0611825565b6040516106cd919061388d565b60405180910390f35b6106f060048036038101906106eb9190613b26565b611834565b005b3480156106fe57600080fd5b5061071960048036038101906107149190613669565b611a19565b005b34801561072757600080fd5b50610742600480360381019061073d9190613ba9565b611a50565b005b34801561075057600080fd5b5061076b60048036038101906107669190613669565b611aca565b6040516107789190613611565b60405180910390f35b34801561078d57600080fd5b506107a860048036038101906107a391906136c0565b611b74565b005b3480156107b657600080fd5b506107d160048036038101906107cc9190613669565b611bd8565b005b3480156107df57600080fd5b506107e8611c0f565b6040516107f5919061388d565b60405180910390f35b34801561080a57600080fd5b5061082560048036038101906108209190613bd6565b611c15565b60405161083291906134d2565b60405180910390f35b34801561084757600080fd5b50610862600480360381019061085d919061354b565b611ca9565b005b34801561087057600080fd5b5061088b60048036038101906108869190613669565b611d2c565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806108e857506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806109185750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b610927611d82565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361096057600080fd5b80600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6060600280546109b390613c45565b80601f01602080910402602001604051908101604052809291908181526020018280546109df90613c45565b8015610a2c5780601f10610a0157610100808354040283529160200191610a2c565b820191906000526020600020905b815481529060010190602001808311610a0f57829003601f168201915b5050505050905090565b6000610a4182611e00565b610a77576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610ac082611464565b90508073ffffffffffffffffffffffffffffffffffffffff16610ae1611e5f565b73ffffffffffffffffffffffffffffffffffffffff1614610b4457610b0d81610b08611e5f565b611c15565b610b43576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b610c01611d82565b80600b9080519060200190610c1792919061337b565b5050565b6000610c25611e67565b6001546000540303905090565b8260006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115610e02573373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610ca457610c9f848484611e6c565b610e0e565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430336040518363ffffffff1660e01b8152600401610ced929190613c76565b602060405180830381865afa158015610d0a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d2e9190613cb4565b8015610dc057506daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b8152600401610d7e929190613c76565b602060405180830381865afa158015610d9b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dbf9190613cb4565b5b610e0157336040517fede71dcc000000000000000000000000000000000000000000000000000000008152600401610df891906136a5565b60405180910390fd5b5b610e0d848484611e6c565b5b50505050565b600260085403610e59576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e5090613d2d565b60405180910390fd5b6002600881905550600c60009054906101000a900460ff16610eb0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ea790613d99565b60405180910390fd5b600082118015610ec05750808211155b610eff576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ef690613e05565b60405180910390fd5b8082610f0a3361218e565b011115610f4c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f4390613e71565b60405180910390fd5b600e5482610f586121e5565b011115610f9a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f9190613edd565b60405180910390fd5b84610fa533836121f8565b14610fe5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fdc90613f49565b60405180910390fd5b6110338585858080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505061222b565b611072576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161106990613fb5565b60405180910390fd5b655af3107a400082600d546110879190614004565b611091919061405e565b34101580156110be5750655af3107a400082600d546110b09190614004565b6110ba9190614092565b3411155b6110fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110f490614134565b60405180910390fd5b61110733836122a0565b60016008819055505050505050565b61111e611d82565b6111266122be565b565b8260006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b11156112f8573373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361119a57611195848484612321565b611304565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430336040518363ffffffff1660e01b81526004016111e3929190613c76565b602060405180830381865afa158015611200573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112249190613cb4565b80156112b657506daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b8152600401611274929190613c76565b602060405180830381865afa158015611291573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112b59190613cb4565b5b6112f757336040517fede71dcc0000000000000000000000000000000000000000000000000000000081526004016112ee91906136a5565b60405180910390fd5b5b611303848484612321565b5b50505050565b611312611d82565b61131b81612341565b50565b600b805461132b90613c45565b80601f016020809104026020016040519081016040528092919081815260200182805461135790613c45565b80156113a45780601f10611379576101008083540402835291602001916113a4565b820191906000526020600020905b81548152906001019060200180831161138757829003601f168201915b505050505081565b600c60009054906101000a900460ff1681565b6000600960149054906101000a900460ff16905090565b600a80546113e390613c45565b80601f016020809104026020016040519081016040528092919081815260200182805461140f90613c45565b801561145c5780601f106114315761010080835404028352916020019161145c565b820191906000526020600020905b81548152906001019060200180831161143f57829003601f168201915b505050505081565b600061146f8261234f565b9050919050565b61147e611d82565b80600e54036114c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114b9906141a0565b60405180910390fd5b80600e8190555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611533576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b61158c611d82565b611596600061241b565b565b6115a0611d82565b80600a90805190602001906115b692919061337b565b5050565b6115c2611d82565b6115ca6124e1565b565b6115d4611d82565b600047905073272422f38181f3887da85a7c886619a83ba9feee73ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f1935050505061162b57600080fd5b50565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606003805461166790613c45565b80601f016020809104026020016040519081016040528092919081815260200182805461169390613c45565b80156116e05780601f106116b5576101008083540402835291602001916116e0565b820191906000526020600020905b8154815290600101906020018083116116c357829003601f168201915b5050505050905090565b60006010600083815260200190815260200160002060009054906101000a900460ff169050919050565b600d5481565b8060076000611727611e5f565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166117d4611e5f565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161181991906134d2565b60405180910390a35050565b600061182f6121e5565b905090565b8360006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115611a05573373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036118a7576118a285858585612544565b611a12565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430336040518363ffffffff1660e01b81526004016118f0929190613c76565b602060405180830381865afa15801561190d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119319190613cb4565b80156119c357506daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b8152600401611981929190613c76565b602060405180830381865afa15801561199e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119c29190613cb4565b5b611a0457336040517fede71dcc0000000000000000000000000000000000000000000000000000000081526004016119fb91906136a5565b60405180910390fd5b5b611a1185858585612544565b5b5050505050565b611a21611d82565b60016010600083815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b611a58611d82565b801515600c60009054906101000a900460ff16151503611aad576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611aa4906141a0565b60405180910390fd5b80600c60006101000a81548160ff02191690831515021790555050565b6060611ad582611e00565b611b14576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b0b9061420c565b60405180910390fd5b6000611b1e6125b7565b90506000815111611b3e5760405180602001604052806000815250611b6c565b80611b4884612649565b600b604051602001611b5c939291906142fc565b6040516020818303038152906040525b915050919050565b611b7c611d82565b600e5481611b886121e5565b011115611bca576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bc190614379565b60405180910390fd5b611bd482826122a0565b5050565b611be0611d82565b60006010600083815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b600e5481565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611cb1611d82565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611d20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d179061440b565b60405180910390fd5b611d298161241b565b50565b611d34611d82565b80600d5403611d78576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d6f906141a0565b60405180910390fd5b80600d8190555050565b611d8a6127a9565b73ffffffffffffffffffffffffffffffffffffffff16611da861162e565b73ffffffffffffffffffffffffffffffffffffffff1614611dfe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611df590614477565b60405180910390fd5b565b600081611e0b611e67565b11158015611e1a575060005482105b8015611e58575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b600090565b6000611e778261234f565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611ede576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080611eea846127b1565b91509150611f008187611efb611e5f565b6127d8565b611f4c57611f1586611f10611e5f565b611c15565b611f4b576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603611fb2576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611fbf868686600161281c565b8015611fca57600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550612098856120748888876128f6565b7c02000000000000000000000000000000000000000000000000000000001761291e565b600460008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000084160361211e576000600185019050600060046000838152602001908152602001600020540361211c57600054811461211b578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46121868686866001612949565b505050505050565b600067ffffffffffffffff6040600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c169050919050565b60006121ef611e67565b60005403905090565b6000828260405160200161220d929190614497565b60405160208183030381529060405280519060200120905092915050565b60006122488261223a8561294f565b61297f90919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff16600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614905092915050565b6122ba8282604051806020016040528060008152506129a6565b5050565b6122c6612a43565b6000600960146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa61230a6127a9565b60405161231791906136a5565b60405180910390a1565b61233c83838360405180602001604052806000815250611834565b505050565b61234c816000612a8c565b50565b6000808290508061235e611e67565b116123e4576000548110156123e35760006004600083815260200190815260200160002054905060007c01000000000000000000000000000000000000000000000000000000008216036123e1575b600081036123d75760046000836001900393508381526020019081526020016000205490506123ad565b8092505050612416565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6124e9612cde565b6001600960146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861252d6127a9565b60405161253a91906136a5565b60405180910390a1565b61254f848484610c32565b60008373ffffffffffffffffffffffffffffffffffffffff163b146125b15761257a84848484612d28565b6125b0576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b6060600a80546125c690613c45565b80601f01602080910402602001604051908101604052809291908181526020018280546125f290613c45565b801561263f5780601f106126145761010080835404028352916020019161263f565b820191906000526020600020905b81548152906001019060200180831161262257829003601f168201915b5050505050905090565b606060008203612690576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506127a4565b600082905060005b600082146126c25780806126ab906144c0565b915050600a826126bb9190614537565b9150612698565b60008167ffffffffffffffff8111156126de576126dd61370a565b5b6040519080825280601f01601f1916602001820160405280156127105781602001600182028036833780820191505090505b5090505b6000851461279d57600182612729919061405e565b9150600a856127389190614568565b60306127449190614092565b60f81b81838151811061275a57612759614599565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856127969190614537565b9450612714565b8093505050505b919050565b600033905090565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b61282884848484612e78565b6128306113bf565b15612867576040517fab35696f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600081836128759190614092565b905060008390505b818110156128ee576010600082815260200190815260200160002060009054906101000a900460ff16156128dd576040517ff996f01200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806128e7906144c0565b905061287d565b505050505050565b60008060e883901c905060e861290d868684612e7e565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6000816040516020016129629190614635565b604051602081830303815290604052805190602001209050919050565b600080600061298e8585612e87565b9150915061299b81612ed8565b819250505092915050565b6129b083836130a4565b60008373ffffffffffffffffffffffffffffffffffffffff163b14612a3e57600080549050600083820390505b6129f06000868380600101945086612d28565b612a26576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8181106129dd578160005414612a3b57600080fd5b50505b505050565b612a4b6113bf565b612a8a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a81906146a7565b60405180910390fd5b565b6000612a978361234f565b90506000819050600080612aaa866127b1565b915091508415612b1357612ac68184612ac1611e5f565b6127d8565b612b1257612adb83612ad6611e5f565b611c15565b612b11576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b5b612b2183600088600161281c565b8015612b2c57600082555b600160806001901b03600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550612bd483612b91856000886128f6565b7c02000000000000000000000000000000000000000000000000000000007c0100000000000000000000000000000000000000000000000000000000171761291e565b600460008881526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000851603612c5a5760006001870190506000600460008381526020019081526020016000205403612c58576000548114612c57578460046000838152602001908152602001600020819055505b5b505b85600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612cc4836000886001612949565b600160008154809291906001019190505550505050505050565b612ce66113bf565b15612d26576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d1d90614713565b60405180910390fd5b565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612d4e611e5f565b8786866040518563ffffffff1660e01b8152600401612d709493929190614788565b6020604051808303816000875af1925050508015612dac57506040513d601f19601f82011682018060405250810190612da991906147e9565b60015b612e25573d8060008114612ddc576040519150601f19603f3d011682016040523d82523d6000602084013e612de1565b606091505b506000815103612e1d576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b50505050565b60009392505050565b6000806041835103612ec85760008060006020860151925060408601519150606086015160001a9050612ebc8782858561325f565b94509450505050612ed1565b60006002915091505b9250929050565b60006004811115612eec57612eeb614816565b5b816004811115612eff57612efe614816565b5b03156130a15760016004811115612f1957612f18614816565b5b816004811115612f2c57612f2b614816565b5b03612f6c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f6390614891565b60405180910390fd5b60026004811115612f8057612f7f614816565b5b816004811115612f9357612f92614816565b5b03612fd3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fca906148fd565b60405180910390fd5b60036004811115612fe757612fe6614816565b5b816004811115612ffa57612ff9614816565b5b0361303a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130319061498f565b60405180910390fd5b60048081111561304d5761304c614816565b5b8160048111156130605761305f614816565b5b036130a0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161309790614a21565b60405180910390fd5b5b50565b600080549050600082036130e4576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6130f1600084838561281c565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506131688361315960008660006128f6565b6131628561336b565b1761291e565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b81811461320957808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001810190506131ce565b5060008203613244576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600081905550505061325a6000848385612949565b505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c111561329a576000600391509150613362565b601b8560ff16141580156132b25750601c8560ff1614155b156132c4576000600491509150613362565b6000600187878787604051600081526020016040526040516132e99493929190614a6c565b6020604051602081039080840390855afa15801561330b573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361335957600060019250925050613362565b80600092509250505b94509492505050565b60006001821460e11b9050919050565b82805461338790613c45565b90600052602060002090601f0160209004810192826133a957600085556133f0565b82601f106133c257805160ff19168380011785556133f0565b828001600101855582156133f0579182015b828111156133ef5782518255916020019190600101906133d4565b5b5090506133fd9190613401565b5090565b5b8082111561341a576000816000905550600101613402565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61346781613432565b811461347257600080fd5b50565b6000813590506134848161345e565b92915050565b6000602082840312156134a05761349f613428565b5b60006134ae84828501613475565b91505092915050565b60008115159050919050565b6134cc816134b7565b82525050565b60006020820190506134e760008301846134c3565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613518826134ed565b9050919050565b6135288161350d565b811461353357600080fd5b50565b6000813590506135458161351f565b92915050565b60006020828403121561356157613560613428565b5b600061356f84828501613536565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156135b2578082015181840152602081019050613597565b838111156135c1576000848401525b50505050565b6000601f19601f8301169050919050565b60006135e382613578565b6135ed8185613583565b93506135fd818560208601613594565b613606816135c7565b840191505092915050565b6000602082019050818103600083015261362b81846135d8565b905092915050565b6000819050919050565b61364681613633565b811461365157600080fd5b50565b6000813590506136638161363d565b92915050565b60006020828403121561367f5761367e613428565b5b600061368d84828501613654565b91505092915050565b61369f8161350d565b82525050565b60006020820190506136ba6000830184613696565b92915050565b600080604083850312156136d7576136d6613428565b5b60006136e585828601613536565b92505060206136f685828601613654565b9150509250929050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613742826135c7565b810181811067ffffffffffffffff821117156137615761376061370a565b5b80604052505050565b600061377461341e565b90506137808282613739565b919050565b600067ffffffffffffffff8211156137a05761379f61370a565b5b6137a9826135c7565b9050602081019050919050565b82818337600083830152505050565b60006137d86137d384613785565b61376a565b9050828152602081018484840111156137f4576137f3613705565b5b6137ff8482856137b6565b509392505050565b600082601f83011261381c5761381b613700565b5b813561382c8482602086016137c5565b91505092915050565b60006020828403121561384b5761384a613428565b5b600082013567ffffffffffffffff8111156138695761386861342d565b5b61387584828501613807565b91505092915050565b61388781613633565b82525050565b60006020820190506138a2600083018461387e565b92915050565b6000806000606084860312156138c1576138c0613428565b5b60006138cf86828701613536565b93505060206138e086828701613536565b92505060406138f186828701613654565b9150509250925092565b6000819050919050565b61390e816138fb565b811461391957600080fd5b50565b60008135905061392b81613905565b92915050565b600080fd5b600080fd5b60008083601f84011261395157613950613700565b5b8235905067ffffffffffffffff81111561396e5761396d613931565b5b60208301915083600182028301111561398a57613989613936565b5b9250929050565b6000806000806000608086880312156139ad576139ac613428565b5b60006139bb8882890161391c565b955050602086013567ffffffffffffffff8111156139dc576139db61342d565b5b6139e88882890161393b565b945094505060406139fb88828901613654565b9250506060613a0c88828901613654565b9150509295509295909350565b613a22816134b7565b8114613a2d57600080fd5b50565b600081359050613a3f81613a19565b92915050565b60008060408385031215613a5c57613a5b613428565b5b6000613a6a85828601613536565b9250506020613a7b85828601613a30565b9150509250929050565b600067ffffffffffffffff821115613aa057613a9f61370a565b5b613aa9826135c7565b9050602081019050919050565b6000613ac9613ac484613a85565b61376a565b905082815260208101848484011115613ae557613ae4613705565b5b613af08482856137b6565b509392505050565b600082601f830112613b0d57613b0c613700565b5b8135613b1d848260208601613ab6565b91505092915050565b60008060008060808587031215613b4057613b3f613428565b5b6000613b4e87828801613536565b9450506020613b5f87828801613536565b9350506040613b7087828801613654565b925050606085013567ffffffffffffffff811115613b9157613b9061342d565b5b613b9d87828801613af8565b91505092959194509250565b600060208284031215613bbf57613bbe613428565b5b6000613bcd84828501613a30565b91505092915050565b60008060408385031215613bed57613bec613428565b5b6000613bfb85828601613536565b9250506020613c0c85828601613536565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613c5d57607f821691505b602082108103613c7057613c6f613c16565b5b50919050565b6000604082019050613c8b6000830185613696565b613c986020830184613696565b9392505050565b600081519050613cae81613a19565b92915050565b600060208284031215613cca57613cc9613428565b5b6000613cd884828501613c9f565b91505092915050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000613d17601f83613583565b9150613d2282613ce1565b602082019050919050565b60006020820190508181036000830152613d4681613d0a565b9050919050565b7f53414c455f49535f4e4f545f4143544956450000000000000000000000000000600082015250565b6000613d83601283613583565b9150613d8e82613d4d565b602082019050919050565b60006020820190508181036000830152613db281613d76565b9050919050565b7f494e56414c49445f4d494e545f414d4f554e5400000000000000000000000000600082015250565b6000613def601383613583565b9150613dfa82613db9565b602082019050919050565b60006020820190508181036000830152613e1e81613de2565b9050919050565b7f4d494e545f544f4f5f4d55434800000000000000000000000000000000000000600082015250565b6000613e5b600d83613583565b9150613e6682613e25565b602082019050919050565b60006020820190508181036000830152613e8a81613e4e565b9050919050565b7f4e4f545f454e4f5547485f4d494e54535f415641494c41424c45000000000000600082015250565b6000613ec7601a83613583565b9150613ed282613e91565b602082019050919050565b60006020820190508181036000830152613ef681613eba565b9050919050565b7f4d4553534147455f494e56414c49440000000000000000000000000000000000600082015250565b6000613f33600f83613583565b9150613f3e82613efd565b602082019050919050565b60006020820190508181036000830152613f6281613f26565b9050919050565b7f5349474e41545552455f56414c49444154494f4e5f4641494c45440000000000600082015250565b6000613f9f601b83613583565b9150613faa82613f69565b602082019050919050565b60006020820190508181036000830152613fce81613f92565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061400f82613633565b915061401a83613633565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561405357614052613fd5565b5b828202905092915050565b600061406982613633565b915061407483613633565b92508282101561408757614086613fd5565b5b828203905092915050565b600061409d82613633565b91506140a883613633565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156140dd576140dc613fd5565b5b828201905092915050565b7f494e56414c49445f505249434500000000000000000000000000000000000000600082015250565b600061411e600d83613583565b9150614129826140e8565b602082019050919050565b6000602082019050818103600083015261414d81614111565b9050919050565b7f4e45575f53544154455f4944454e544943414c5f544f5f4f4c445f5354415445600082015250565b600061418a602083613583565b915061419582614154565b602082019050919050565b600060208201905081810360008301526141b98161417d565b9050919050565b7f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e00600082015250565b60006141f6601f83613583565b9150614201826141c0565b602082019050919050565b60006020820190508181036000830152614225816141e9565b9050919050565b600081905092915050565b600061424282613578565b61424c818561422c565b935061425c818560208601613594565b80840191505092915050565b60008190508160005260206000209050919050565b6000815461428a81613c45565b614294818661422c565b945060018216600081146142af57600181146142c0576142f3565b60ff198316865281860193506142f3565b6142c985614268565b60005b838110156142eb578154818901526001820191506020810190506142cc565b838801955050505b50505092915050565b60006143088286614237565b91506143148285614237565b9150614320828461427d565b9150819050949350505050565b7f4d494e545f544f4f5f4c41524745000000000000000000000000000000000000600082015250565b6000614363600e83613583565b915061436e8261432d565b602082019050919050565b6000602082019050818103600083015261439281614356565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006143f5602683613583565b915061440082614399565b604082019050919050565b60006020820190508181036000830152614424816143e8565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614461602083613583565b915061446c8261442b565b602082019050919050565b6000602082019050818103600083015261449081614454565b9050919050565b60006040820190506144ac6000830185613696565b6144b9602083018461387e565b9392505050565b60006144cb82613633565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036144fd576144fc613fd5565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061454282613633565b915061454d83613633565b92508261455d5761455c614508565b5b828204905092915050565b600061457382613633565b915061457e83613633565b92508261458e5761458d614508565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b60006145fe601c8361422c565b9150614609826145c8565b601c82019050919050565b6000819050919050565b61462f61462a826138fb565b614614565b82525050565b6000614640826145f1565b915061464c828461461e565b60208201915081905092915050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b6000614691601483613583565b915061469c8261465b565b602082019050919050565b600060208201905081810360008301526146c081614684565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b60006146fd601083613583565b9150614708826146c7565b602082019050919050565b6000602082019050818103600083015261472c816146f0565b9050919050565b600081519050919050565b600082825260208201905092915050565b600061475a82614733565b614764818561473e565b9350614774818560208601613594565b61477d816135c7565b840191505092915050565b600060808201905061479d6000830187613696565b6147aa6020830186613696565b6147b7604083018561387e565b81810360608301526147c9818461474f565b905095945050505050565b6000815190506147e38161345e565b92915050565b6000602082840312156147ff576147fe613428565b5b600061480d848285016147d4565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b600061487b601883613583565b915061488682614845565b602082019050919050565b600060208201905081810360008301526148aa8161486e565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b60006148e7601f83613583565b91506148f2826148b1565b602082019050919050565b60006020820190508181036000830152614916816148da565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b6000614979602283613583565b91506149848261491d565b604082019050919050565b600060208201905081810360008301526149a88161496c565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b6000614a0b602283613583565b9150614a16826149af565b604082019050919050565b60006020820190508181036000830152614a3a816149fe565b9050919050565b614a4a816138fb565b82525050565b600060ff82169050919050565b614a6681614a50565b82525050565b6000608082019050614a816000830187614a41565b614a8e6020830186614a5d565b614a9b6040830185614a41565b614aa86060830184614a41565b9594505050505056fea2646970667358221220e8b29bf744aa99409eff52326ec4ed30355cf9443547469556856b4e5ba7f00f64736f6c634300080e003368747470733a2f2f6c656f73747564696f2e696f2f6e66742f6d657461646174612f
Deployed Bytecode
0x6080604052600436106102305760003560e01c8063715018a61161012e578063b88d4fde116100ab578063d16da4dd1161006f578063d16da4dd146107aa578063d5abeb01146107d3578063e985e9c5146107fe578063f2fde38b1461083b578063f4a0a5281461086457610230565b8063b88d4fde146106d6578063be411bb0146106f2578063c4e370951461071b578063c87b56dd14610744578063cbce4c971461078157610230565b806395d89b41116100f257806395d89b41146105ef578063960677e31461061a578063a035b1fe14610657578063a22cb46514610682578063a2309ff8146106ab57610230565b8063715018a6146105565780637ec4a6591461056d5780638456cb5914610596578063853828b6146105ad5780638da5cb5b146105c457610230565b80633f4ba83a116101bc5780635c975abb116101805780635c975abb1461045d57806362b99ad4146104885780636352211e146104b35780636f8b44b0146104f057806370a082311461051957610230565b80633f4ba83a146103ab57806342842e0e146103c257806342966c68146103de5780635503a0e814610407578063564566a81461043257610230565b8063095ea7b311610203578063095ea7b31461030357806316ba10e01461031f57806318160ddd1461034857806323b872dd1461037357806331fa3eb91461038f57610230565b806301ffc9a714610235578063046dc1661461027257806306fdde031461029b578063081812fc146102c6575b600080fd5b34801561024157600080fd5b5061025c6004803603810190610257919061348a565b61088d565b60405161026991906134d2565b60405180910390f35b34801561027e57600080fd5b506102996004803603810190610294919061354b565b61091f565b005b3480156102a757600080fd5b506102b06109a4565b6040516102bd9190613611565b60405180910390f35b3480156102d257600080fd5b506102ed60048036038101906102e89190613669565b610a36565b6040516102fa91906136a5565b60405180910390f35b61031d600480360381019061031891906136c0565b610ab5565b005b34801561032b57600080fd5b5061034660048036038101906103419190613835565b610bf9565b005b34801561035457600080fd5b5061035d610c1b565b60405161036a919061388d565b60405180910390f35b61038d600480360381019061038891906138a8565b610c32565b005b6103a960048036038101906103a49190613991565b610e14565b005b3480156103b757600080fd5b506103c0611116565b005b6103dc60048036038101906103d791906138a8565b611128565b005b3480156103ea57600080fd5b5061040560048036038101906104009190613669565b61130a565b005b34801561041357600080fd5b5061041c61131e565b6040516104299190613611565b60405180910390f35b34801561043e57600080fd5b506104476113ac565b60405161045491906134d2565b60405180910390f35b34801561046957600080fd5b506104726113bf565b60405161047f91906134d2565b60405180910390f35b34801561049457600080fd5b5061049d6113d6565b6040516104aa9190613611565b60405180910390f35b3480156104bf57600080fd5b506104da60048036038101906104d59190613669565b611464565b6040516104e791906136a5565b60405180910390f35b3480156104fc57600080fd5b5061051760048036038101906105129190613669565b611476565b005b34801561052557600080fd5b50610540600480360381019061053b919061354b565b6114cc565b60405161054d919061388d565b60405180910390f35b34801561056257600080fd5b5061056b611584565b005b34801561057957600080fd5b50610594600480360381019061058f9190613835565b611598565b005b3480156105a257600080fd5b506105ab6115ba565b005b3480156105b957600080fd5b506105c26115cc565b005b3480156105d057600080fd5b506105d961162e565b6040516105e691906136a5565b60405180910390f35b3480156105fb57600080fd5b50610604611658565b6040516106119190613611565b60405180910390f35b34801561062657600080fd5b50610641600480360381019061063c9190613669565b6116ea565b60405161064e91906134d2565b60405180910390f35b34801561066357600080fd5b5061066c611714565b604051610679919061388d565b60405180910390f35b34801561068e57600080fd5b506106a960048036038101906106a49190613a45565b61171a565b005b3480156106b757600080fd5b506106c0611825565b6040516106cd919061388d565b60405180910390f35b6106f060048036038101906106eb9190613b26565b611834565b005b3480156106fe57600080fd5b5061071960048036038101906107149190613669565b611a19565b005b34801561072757600080fd5b50610742600480360381019061073d9190613ba9565b611a50565b005b34801561075057600080fd5b5061076b60048036038101906107669190613669565b611aca565b6040516107789190613611565b60405180910390f35b34801561078d57600080fd5b506107a860048036038101906107a391906136c0565b611b74565b005b3480156107b657600080fd5b506107d160048036038101906107cc9190613669565b611bd8565b005b3480156107df57600080fd5b506107e8611c0f565b6040516107f5919061388d565b60405180910390f35b34801561080a57600080fd5b5061082560048036038101906108209190613bd6565b611c15565b60405161083291906134d2565b60405180910390f35b34801561084757600080fd5b50610862600480360381019061085d919061354b565b611ca9565b005b34801561087057600080fd5b5061088b60048036038101906108869190613669565b611d2c565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806108e857506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806109185750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b610927611d82565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361096057600080fd5b80600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6060600280546109b390613c45565b80601f01602080910402602001604051908101604052809291908181526020018280546109df90613c45565b8015610a2c5780601f10610a0157610100808354040283529160200191610a2c565b820191906000526020600020905b815481529060010190602001808311610a0f57829003601f168201915b5050505050905090565b6000610a4182611e00565b610a77576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610ac082611464565b90508073ffffffffffffffffffffffffffffffffffffffff16610ae1611e5f565b73ffffffffffffffffffffffffffffffffffffffff1614610b4457610b0d81610b08611e5f565b611c15565b610b43576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b610c01611d82565b80600b9080519060200190610c1792919061337b565b5050565b6000610c25611e67565b6001546000540303905090565b8260006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115610e02573373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610ca457610c9f848484611e6c565b610e0e565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430336040518363ffffffff1660e01b8152600401610ced929190613c76565b602060405180830381865afa158015610d0a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d2e9190613cb4565b8015610dc057506daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b8152600401610d7e929190613c76565b602060405180830381865afa158015610d9b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dbf9190613cb4565b5b610e0157336040517fede71dcc000000000000000000000000000000000000000000000000000000008152600401610df891906136a5565b60405180910390fd5b5b610e0d848484611e6c565b5b50505050565b600260085403610e59576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e5090613d2d565b60405180910390fd5b6002600881905550600c60009054906101000a900460ff16610eb0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ea790613d99565b60405180910390fd5b600082118015610ec05750808211155b610eff576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ef690613e05565b60405180910390fd5b8082610f0a3361218e565b011115610f4c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f4390613e71565b60405180910390fd5b600e5482610f586121e5565b011115610f9a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f9190613edd565b60405180910390fd5b84610fa533836121f8565b14610fe5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fdc90613f49565b60405180910390fd5b6110338585858080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505061222b565b611072576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161106990613fb5565b60405180910390fd5b655af3107a400082600d546110879190614004565b611091919061405e565b34101580156110be5750655af3107a400082600d546110b09190614004565b6110ba9190614092565b3411155b6110fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110f490614134565b60405180910390fd5b61110733836122a0565b60016008819055505050505050565b61111e611d82565b6111266122be565b565b8260006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b11156112f8573373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361119a57611195848484612321565b611304565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430336040518363ffffffff1660e01b81526004016111e3929190613c76565b602060405180830381865afa158015611200573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112249190613cb4565b80156112b657506daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b8152600401611274929190613c76565b602060405180830381865afa158015611291573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112b59190613cb4565b5b6112f757336040517fede71dcc0000000000000000000000000000000000000000000000000000000081526004016112ee91906136a5565b60405180910390fd5b5b611303848484612321565b5b50505050565b611312611d82565b61131b81612341565b50565b600b805461132b90613c45565b80601f016020809104026020016040519081016040528092919081815260200182805461135790613c45565b80156113a45780601f10611379576101008083540402835291602001916113a4565b820191906000526020600020905b81548152906001019060200180831161138757829003601f168201915b505050505081565b600c60009054906101000a900460ff1681565b6000600960149054906101000a900460ff16905090565b600a80546113e390613c45565b80601f016020809104026020016040519081016040528092919081815260200182805461140f90613c45565b801561145c5780601f106114315761010080835404028352916020019161145c565b820191906000526020600020905b81548152906001019060200180831161143f57829003601f168201915b505050505081565b600061146f8261234f565b9050919050565b61147e611d82565b80600e54036114c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114b9906141a0565b60405180910390fd5b80600e8190555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611533576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b61158c611d82565b611596600061241b565b565b6115a0611d82565b80600a90805190602001906115b692919061337b565b5050565b6115c2611d82565b6115ca6124e1565b565b6115d4611d82565b600047905073272422f38181f3887da85a7c886619a83ba9feee73ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f1935050505061162b57600080fd5b50565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606003805461166790613c45565b80601f016020809104026020016040519081016040528092919081815260200182805461169390613c45565b80156116e05780601f106116b5576101008083540402835291602001916116e0565b820191906000526020600020905b8154815290600101906020018083116116c357829003601f168201915b5050505050905090565b60006010600083815260200190815260200160002060009054906101000a900460ff169050919050565b600d5481565b8060076000611727611e5f565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166117d4611e5f565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161181991906134d2565b60405180910390a35050565b600061182f6121e5565b905090565b8360006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115611a05573373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036118a7576118a285858585612544565b611a12565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430336040518363ffffffff1660e01b81526004016118f0929190613c76565b602060405180830381865afa15801561190d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119319190613cb4565b80156119c357506daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b8152600401611981929190613c76565b602060405180830381865afa15801561199e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119c29190613cb4565b5b611a0457336040517fede71dcc0000000000000000000000000000000000000000000000000000000081526004016119fb91906136a5565b60405180910390fd5b5b611a1185858585612544565b5b5050505050565b611a21611d82565b60016010600083815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b611a58611d82565b801515600c60009054906101000a900460ff16151503611aad576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611aa4906141a0565b60405180910390fd5b80600c60006101000a81548160ff02191690831515021790555050565b6060611ad582611e00565b611b14576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b0b9061420c565b60405180910390fd5b6000611b1e6125b7565b90506000815111611b3e5760405180602001604052806000815250611b6c565b80611b4884612649565b600b604051602001611b5c939291906142fc565b6040516020818303038152906040525b915050919050565b611b7c611d82565b600e5481611b886121e5565b011115611bca576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bc190614379565b60405180910390fd5b611bd482826122a0565b5050565b611be0611d82565b60006010600083815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b600e5481565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611cb1611d82565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611d20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d179061440b565b60405180910390fd5b611d298161241b565b50565b611d34611d82565b80600d5403611d78576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d6f906141a0565b60405180910390fd5b80600d8190555050565b611d8a6127a9565b73ffffffffffffffffffffffffffffffffffffffff16611da861162e565b73ffffffffffffffffffffffffffffffffffffffff1614611dfe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611df590614477565b60405180910390fd5b565b600081611e0b611e67565b11158015611e1a575060005482105b8015611e58575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b600090565b6000611e778261234f565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611ede576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080611eea846127b1565b91509150611f008187611efb611e5f565b6127d8565b611f4c57611f1586611f10611e5f565b611c15565b611f4b576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603611fb2576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611fbf868686600161281c565b8015611fca57600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550612098856120748888876128f6565b7c02000000000000000000000000000000000000000000000000000000001761291e565b600460008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000084160361211e576000600185019050600060046000838152602001908152602001600020540361211c57600054811461211b578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46121868686866001612949565b505050505050565b600067ffffffffffffffff6040600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c169050919050565b60006121ef611e67565b60005403905090565b6000828260405160200161220d929190614497565b60405160208183030381529060405280519060200120905092915050565b60006122488261223a8561294f565b61297f90919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff16600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614905092915050565b6122ba8282604051806020016040528060008152506129a6565b5050565b6122c6612a43565b6000600960146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa61230a6127a9565b60405161231791906136a5565b60405180910390a1565b61233c83838360405180602001604052806000815250611834565b505050565b61234c816000612a8c565b50565b6000808290508061235e611e67565b116123e4576000548110156123e35760006004600083815260200190815260200160002054905060007c01000000000000000000000000000000000000000000000000000000008216036123e1575b600081036123d75760046000836001900393508381526020019081526020016000205490506123ad565b8092505050612416565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6124e9612cde565b6001600960146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861252d6127a9565b60405161253a91906136a5565b60405180910390a1565b61254f848484610c32565b60008373ffffffffffffffffffffffffffffffffffffffff163b146125b15761257a84848484612d28565b6125b0576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b6060600a80546125c690613c45565b80601f01602080910402602001604051908101604052809291908181526020018280546125f290613c45565b801561263f5780601f106126145761010080835404028352916020019161263f565b820191906000526020600020905b81548152906001019060200180831161262257829003601f168201915b5050505050905090565b606060008203612690576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506127a4565b600082905060005b600082146126c25780806126ab906144c0565b915050600a826126bb9190614537565b9150612698565b60008167ffffffffffffffff8111156126de576126dd61370a565b5b6040519080825280601f01601f1916602001820160405280156127105781602001600182028036833780820191505090505b5090505b6000851461279d57600182612729919061405e565b9150600a856127389190614568565b60306127449190614092565b60f81b81838151811061275a57612759614599565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856127969190614537565b9450612714565b8093505050505b919050565b600033905090565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b61282884848484612e78565b6128306113bf565b15612867576040517fab35696f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600081836128759190614092565b905060008390505b818110156128ee576010600082815260200190815260200160002060009054906101000a900460ff16156128dd576040517ff996f01200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806128e7906144c0565b905061287d565b505050505050565b60008060e883901c905060e861290d868684612e7e565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6000816040516020016129629190614635565b604051602081830303815290604052805190602001209050919050565b600080600061298e8585612e87565b9150915061299b81612ed8565b819250505092915050565b6129b083836130a4565b60008373ffffffffffffffffffffffffffffffffffffffff163b14612a3e57600080549050600083820390505b6129f06000868380600101945086612d28565b612a26576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8181106129dd578160005414612a3b57600080fd5b50505b505050565b612a4b6113bf565b612a8a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a81906146a7565b60405180910390fd5b565b6000612a978361234f565b90506000819050600080612aaa866127b1565b915091508415612b1357612ac68184612ac1611e5f565b6127d8565b612b1257612adb83612ad6611e5f565b611c15565b612b11576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b5b612b2183600088600161281c565b8015612b2c57600082555b600160806001901b03600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550612bd483612b91856000886128f6565b7c02000000000000000000000000000000000000000000000000000000007c0100000000000000000000000000000000000000000000000000000000171761291e565b600460008881526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000851603612c5a5760006001870190506000600460008381526020019081526020016000205403612c58576000548114612c57578460046000838152602001908152602001600020819055505b5b505b85600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612cc4836000886001612949565b600160008154809291906001019190505550505050505050565b612ce66113bf565b15612d26576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d1d90614713565b60405180910390fd5b565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612d4e611e5f565b8786866040518563ffffffff1660e01b8152600401612d709493929190614788565b6020604051808303816000875af1925050508015612dac57506040513d601f19601f82011682018060405250810190612da991906147e9565b60015b612e25573d8060008114612ddc576040519150601f19603f3d011682016040523d82523d6000602084013e612de1565b606091505b506000815103612e1d576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b50505050565b60009392505050565b6000806041835103612ec85760008060006020860151925060408601519150606086015160001a9050612ebc8782858561325f565b94509450505050612ed1565b60006002915091505b9250929050565b60006004811115612eec57612eeb614816565b5b816004811115612eff57612efe614816565b5b03156130a15760016004811115612f1957612f18614816565b5b816004811115612f2c57612f2b614816565b5b03612f6c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f6390614891565b60405180910390fd5b60026004811115612f8057612f7f614816565b5b816004811115612f9357612f92614816565b5b03612fd3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fca906148fd565b60405180910390fd5b60036004811115612fe757612fe6614816565b5b816004811115612ffa57612ff9614816565b5b0361303a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130319061498f565b60405180910390fd5b60048081111561304d5761304c614816565b5b8160048111156130605761305f614816565b5b036130a0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161309790614a21565b60405180910390fd5b5b50565b600080549050600082036130e4576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6130f1600084838561281c565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506131688361315960008660006128f6565b6131628561336b565b1761291e565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b81811461320957808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001810190506131ce565b5060008203613244576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600081905550505061325a6000848385612949565b505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c111561329a576000600391509150613362565b601b8560ff16141580156132b25750601c8560ff1614155b156132c4576000600491509150613362565b6000600187878787604051600081526020016040526040516132e99493929190614a6c565b6020604051602081039080840390855afa15801561330b573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361335957600060019250925050613362565b80600092509250505b94509492505050565b60006001821460e11b9050919050565b82805461338790613c45565b90600052602060002090601f0160209004810192826133a957600085556133f0565b82601f106133c257805160ff19168380011785556133f0565b828001600101855582156133f0579182015b828111156133ef5782518255916020019190600101906133d4565b5b5090506133fd9190613401565b5090565b5b8082111561341a576000816000905550600101613402565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61346781613432565b811461347257600080fd5b50565b6000813590506134848161345e565b92915050565b6000602082840312156134a05761349f613428565b5b60006134ae84828501613475565b91505092915050565b60008115159050919050565b6134cc816134b7565b82525050565b60006020820190506134e760008301846134c3565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613518826134ed565b9050919050565b6135288161350d565b811461353357600080fd5b50565b6000813590506135458161351f565b92915050565b60006020828403121561356157613560613428565b5b600061356f84828501613536565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156135b2578082015181840152602081019050613597565b838111156135c1576000848401525b50505050565b6000601f19601f8301169050919050565b60006135e382613578565b6135ed8185613583565b93506135fd818560208601613594565b613606816135c7565b840191505092915050565b6000602082019050818103600083015261362b81846135d8565b905092915050565b6000819050919050565b61364681613633565b811461365157600080fd5b50565b6000813590506136638161363d565b92915050565b60006020828403121561367f5761367e613428565b5b600061368d84828501613654565b91505092915050565b61369f8161350d565b82525050565b60006020820190506136ba6000830184613696565b92915050565b600080604083850312156136d7576136d6613428565b5b60006136e585828601613536565b92505060206136f685828601613654565b9150509250929050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613742826135c7565b810181811067ffffffffffffffff821117156137615761376061370a565b5b80604052505050565b600061377461341e565b90506137808282613739565b919050565b600067ffffffffffffffff8211156137a05761379f61370a565b5b6137a9826135c7565b9050602081019050919050565b82818337600083830152505050565b60006137d86137d384613785565b61376a565b9050828152602081018484840111156137f4576137f3613705565b5b6137ff8482856137b6565b509392505050565b600082601f83011261381c5761381b613700565b5b813561382c8482602086016137c5565b91505092915050565b60006020828403121561384b5761384a613428565b5b600082013567ffffffffffffffff8111156138695761386861342d565b5b61387584828501613807565b91505092915050565b61388781613633565b82525050565b60006020820190506138a2600083018461387e565b92915050565b6000806000606084860312156138c1576138c0613428565b5b60006138cf86828701613536565b93505060206138e086828701613536565b92505060406138f186828701613654565b9150509250925092565b6000819050919050565b61390e816138fb565b811461391957600080fd5b50565b60008135905061392b81613905565b92915050565b600080fd5b600080fd5b60008083601f84011261395157613950613700565b5b8235905067ffffffffffffffff81111561396e5761396d613931565b5b60208301915083600182028301111561398a57613989613936565b5b9250929050565b6000806000806000608086880312156139ad576139ac613428565b5b60006139bb8882890161391c565b955050602086013567ffffffffffffffff8111156139dc576139db61342d565b5b6139e88882890161393b565b945094505060406139fb88828901613654565b9250506060613a0c88828901613654565b9150509295509295909350565b613a22816134b7565b8114613a2d57600080fd5b50565b600081359050613a3f81613a19565b92915050565b60008060408385031215613a5c57613a5b613428565b5b6000613a6a85828601613536565b9250506020613a7b85828601613a30565b9150509250929050565b600067ffffffffffffffff821115613aa057613a9f61370a565b5b613aa9826135c7565b9050602081019050919050565b6000613ac9613ac484613a85565b61376a565b905082815260208101848484011115613ae557613ae4613705565b5b613af08482856137b6565b509392505050565b600082601f830112613b0d57613b0c613700565b5b8135613b1d848260208601613ab6565b91505092915050565b60008060008060808587031215613b4057613b3f613428565b5b6000613b4e87828801613536565b9450506020613b5f87828801613536565b9350506040613b7087828801613654565b925050606085013567ffffffffffffffff811115613b9157613b9061342d565b5b613b9d87828801613af8565b91505092959194509250565b600060208284031215613bbf57613bbe613428565b5b6000613bcd84828501613a30565b91505092915050565b60008060408385031215613bed57613bec613428565b5b6000613bfb85828601613536565b9250506020613c0c85828601613536565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613c5d57607f821691505b602082108103613c7057613c6f613c16565b5b50919050565b6000604082019050613c8b6000830185613696565b613c986020830184613696565b9392505050565b600081519050613cae81613a19565b92915050565b600060208284031215613cca57613cc9613428565b5b6000613cd884828501613c9f565b91505092915050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000613d17601f83613583565b9150613d2282613ce1565b602082019050919050565b60006020820190508181036000830152613d4681613d0a565b9050919050565b7f53414c455f49535f4e4f545f4143544956450000000000000000000000000000600082015250565b6000613d83601283613583565b9150613d8e82613d4d565b602082019050919050565b60006020820190508181036000830152613db281613d76565b9050919050565b7f494e56414c49445f4d494e545f414d4f554e5400000000000000000000000000600082015250565b6000613def601383613583565b9150613dfa82613db9565b602082019050919050565b60006020820190508181036000830152613e1e81613de2565b9050919050565b7f4d494e545f544f4f5f4d55434800000000000000000000000000000000000000600082015250565b6000613e5b600d83613583565b9150613e6682613e25565b602082019050919050565b60006020820190508181036000830152613e8a81613e4e565b9050919050565b7f4e4f545f454e4f5547485f4d494e54535f415641494c41424c45000000000000600082015250565b6000613ec7601a83613583565b9150613ed282613e91565b602082019050919050565b60006020820190508181036000830152613ef681613eba565b9050919050565b7f4d4553534147455f494e56414c49440000000000000000000000000000000000600082015250565b6000613f33600f83613583565b9150613f3e82613efd565b602082019050919050565b60006020820190508181036000830152613f6281613f26565b9050919050565b7f5349474e41545552455f56414c49444154494f4e5f4641494c45440000000000600082015250565b6000613f9f601b83613583565b9150613faa82613f69565b602082019050919050565b60006020820190508181036000830152613fce81613f92565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061400f82613633565b915061401a83613633565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561405357614052613fd5565b5b828202905092915050565b600061406982613633565b915061407483613633565b92508282101561408757614086613fd5565b5b828203905092915050565b600061409d82613633565b91506140a883613633565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156140dd576140dc613fd5565b5b828201905092915050565b7f494e56414c49445f505249434500000000000000000000000000000000000000600082015250565b600061411e600d83613583565b9150614129826140e8565b602082019050919050565b6000602082019050818103600083015261414d81614111565b9050919050565b7f4e45575f53544154455f4944454e544943414c5f544f5f4f4c445f5354415445600082015250565b600061418a602083613583565b915061419582614154565b602082019050919050565b600060208201905081810360008301526141b98161417d565b9050919050565b7f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e00600082015250565b60006141f6601f83613583565b9150614201826141c0565b602082019050919050565b60006020820190508181036000830152614225816141e9565b9050919050565b600081905092915050565b600061424282613578565b61424c818561422c565b935061425c818560208601613594565b80840191505092915050565b60008190508160005260206000209050919050565b6000815461428a81613c45565b614294818661422c565b945060018216600081146142af57600181146142c0576142f3565b60ff198316865281860193506142f3565b6142c985614268565b60005b838110156142eb578154818901526001820191506020810190506142cc565b838801955050505b50505092915050565b60006143088286614237565b91506143148285614237565b9150614320828461427d565b9150819050949350505050565b7f4d494e545f544f4f5f4c41524745000000000000000000000000000000000000600082015250565b6000614363600e83613583565b915061436e8261432d565b602082019050919050565b6000602082019050818103600083015261439281614356565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006143f5602683613583565b915061440082614399565b604082019050919050565b60006020820190508181036000830152614424816143e8565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614461602083613583565b915061446c8261442b565b602082019050919050565b6000602082019050818103600083015261449081614454565b9050919050565b60006040820190506144ac6000830185613696565b6144b9602083018461387e565b9392505050565b60006144cb82613633565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036144fd576144fc613fd5565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061454282613633565b915061454d83613633565b92508261455d5761455c614508565b5b828204905092915050565b600061457382613633565b915061457e83613633565b92508261458e5761458d614508565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b60006145fe601c8361422c565b9150614609826145c8565b601c82019050919050565b6000819050919050565b61462f61462a826138fb565b614614565b82525050565b6000614640826145f1565b915061464c828461461e565b60208201915081905092915050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b6000614691601483613583565b915061469c8261465b565b602082019050919050565b600060208201905081810360008301526146c081614684565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b60006146fd601083613583565b9150614708826146c7565b602082019050919050565b6000602082019050818103600083015261472c816146f0565b9050919050565b600081519050919050565b600082825260208201905092915050565b600061475a82614733565b614764818561473e565b9350614774818560208601613594565b61477d816135c7565b840191505092915050565b600060808201905061479d6000830187613696565b6147aa6020830186613696565b6147b7604083018561387e565b81810360608301526147c9818461474f565b905095945050505050565b6000815190506147e38161345e565b92915050565b6000602082840312156147ff576147fe613428565b5b600061480d848285016147d4565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b600061487b601883613583565b915061488682614845565b602082019050919050565b600060208201905081810360008301526148aa8161486e565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b60006148e7601f83613583565b91506148f2826148b1565b602082019050919050565b60006020820190508181036000830152614916816148da565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b6000614979602283613583565b91506149848261491d565b604082019050919050565b600060208201905081810360008301526149a88161496c565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b6000614a0b602283613583565b9150614a16826149af565b604082019050919050565b60006020820190508181036000830152614a3a816149fe565b9050919050565b614a4a816138fb565b82525050565b600060ff82169050919050565b614a6681614a50565b82525050565b6000608082019050614a816000830187614a41565b614a8e6020830186614a5d565b614a9b6040830185614a41565b614aa86060830184614a41565b9594505050505056fea2646970667358221220e8b29bf744aa99409eff52326ec4ed30355cf9443547469556856b4e5ba7f00f64736f6c634300080e0033
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.