ERC-721
Overview
Max Total Supply
2,345 NTP1
Holders
905
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
2 NTP1Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
NineTalesTwo
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.8.4; import "erc721a/contracts/ERC721A.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; error SaleClosed(); error WhitelistSaleSoldOut(); error PublicSaleSoldOut(); error ExceedsWLUserAllowance(); error ExceedsPubUserAllowance(); error InsufficientEth(); error InvalidSignature(); error AmountError(); error OutOfStock(); error ExceedsMaxSupply(); error ExceedsGiftsMax(); error NoBalance(); error ProvenanceLocked(); error WhitelistSaleClosed(); error PublicSaleClosed(); error ReallocationError(); contract NineTalesTwo is ERC721A, Ownable, ReentrancyGuard { using Strings for uint256; using ECDSA for bytes32; uint256 public constant NTT_MAX_SUPPLY = 4444; uint256 public NTT_WHITELIST = 3841; uint256 public NTT_GIFT = 100; uint256 public NTT_PUBLIC = 503; uint256 public NTT_PUBLIC_PER_USER = 2; uint256 public NTT_WHITELIST_PRICE = 0.089 ether; uint256 public NTT_PUBLIC_PRICE = 0.099 ether; string private _finalProvenanceHash; string private _baseTokenURI; address private _ownerAddress; address private _signerAddress; uint64 public giftedAmount; uint64 public publicAmountMinted; uint64 public whitelistAmountMinted; bool public saleIsLive = false; bool public whitelistLive = true; bool public publicSaleLive = true; bool public provenanceLocked = false; struct SaleInfo { uint256 _NTT_MAX_SUPPLY; uint256 _NTT_WHITELIST; uint256 _NTT_PUBLIC; uint256 _NTT_WHITELIST_PRICE; uint256 _NTT_PUBLIC_PRICE; uint256 _NTT_PUBLIC_PER_USER; bool _saleIsLive; bool _whitelistLive; bool _publicSaleLive; uint256 _totalSupply; uint64 _publicAmountMinted; uint64 _whitelistAmountMinted; } constructor( address safeAddr, address signerAddr, string memory unrevealed ) ERC721A("NineTales Phase 1", "NTP1") { _ownerAddress = safeAddr; _signerAddress = signerAddr; _baseTokenURI = unrevealed; } modifier callerIsUser() { require(tx.origin == msg.sender, "The caller is another contract"); _; } modifier liveSale { if(!saleIsLive) revert SaleClosed(); _; } modifier tokenAmountValid(uint64 tokenQuantity) { if(tokenQuantity < 1) revert AmountError(); if(_totalMinted() + tokenQuantity > NTT_MAX_SUPPLY) revert OutOfStock(); _; } function max(uint256 a, uint256 b) private pure returns(uint256) { return a >= b ? a : b; } function hashTx(address sender, uint256 tokenLimit) private pure returns(bytes32) { bytes32 hash = keccak256(abi.encodePacked(sender, tokenLimit)); return hash; } function matchAddressSigner(bytes32 hash, bytes memory signature) private view returns(bool) { return _signerAddress == hash.toEthSignedMessageHash().recover(signature); } function whitelistMint(bytes memory signature, uint64 tokenQuantity, uint256 tokenLimit) external payable liveSale callerIsUser tokenAmountValid(tokenQuantity) { if(!whitelistLive) revert WhitelistSaleClosed(); if(whitelistAmountMinted + tokenQuantity > NTT_WHITELIST) revert WhitelistSaleSoldOut(); if(msg.value < NTT_WHITELIST_PRICE * tokenQuantity) revert InsufficientEth(); uint64 mintedCount = _getAux(msg.sender); if(mintedCount + tokenQuantity > tokenLimit) revert ExceedsWLUserAllowance(); if(!matchAddressSigner(hashTx(msg.sender, tokenLimit), signature)) revert InvalidSignature(); _safeMint(msg.sender, tokenQuantity); _setAux(msg.sender, mintedCount + tokenQuantity); whitelistAmountMinted += tokenQuantity; } function publicMint(uint64 tokenQuantity) external payable liveSale callerIsUser tokenAmountValid(tokenQuantity) { if(!publicSaleLive) revert PublicSaleClosed(); if(publicAmountMinted + tokenQuantity > NTT_PUBLIC) revert PublicSaleSoldOut(); if(msg.value < NTT_PUBLIC_PRICE * tokenQuantity) revert InsufficientEth(); if(tokenQuantity + max(0, _numberMinted(msg.sender) - _getAux(msg.sender)) > NTT_PUBLIC_PER_USER) revert ExceedsPubUserAllowance(); _safeMint(msg.sender, tokenQuantity); publicAmountMinted += tokenQuantity; } function gift(address[] calldata winners) external onlyOwner { if(_totalMinted() + winners.length > NTT_MAX_SUPPLY) revert ExceedsMaxSupply(); if(giftedAmount + winners.length > NTT_GIFT) revert ExceedsGiftsMax(); for (uint256 i = 0; i < winners.length; i++) { _safeMint(winners[i], 1); } giftedAmount += uint64(winners.length); } function batchGift(address user, uint64 tokenQuantity) external onlyOwner { if(_totalMinted() + tokenQuantity > NTT_MAX_SUPPLY) revert ExceedsMaxSupply(); if(giftedAmount + tokenQuantity > NTT_GIFT) revert ExceedsGiftsMax(); _safeMint(user, tokenQuantity); giftedAmount += tokenQuantity; } function withdraw() external onlyOwner nonReentrant { uint256 balance = address(this).balance; if(balance <= 0) revert NoBalance(); (bool success, ) = _ownerAddress.call{value: balance}(""); require(success, "TRANSFER_FAIL"); } function setFinalProvenanceHash(string memory provenanceHash) external onlyOwner { if(provenanceLocked) revert ProvenanceLocked(); _finalProvenanceHash = provenanceHash; provenanceLocked = true; } function getFinalProvenanceHash() external view returns(string memory){ return _finalProvenanceHash; } function changeSaleStatus() external onlyOwner { saleIsLive = !saleIsLive; } function changeWhitelistStatus() external onlyOwner { whitelistLive = !whitelistLive; } function changePublicSaleStatus() external onlyOwner { publicSaleLive = !publicSaleLive; } function setSignerAddress(address _addr) external onlyOwner { _signerAddress = _addr; } function _baseURI() internal view virtual override returns (string memory) { return _baseTokenURI; } function setBaseURI(string calldata baseURI) external onlyOwner { _baseTokenURI = baseURI; } function setNttPublicUserLimit(uint256 _limit) external onlyOwner { NTT_PUBLIC_PER_USER = _limit; } function setPublicPrice(uint256 _salePrice) external onlyOwner { NTT_PUBLIC_PRICE = _salePrice; } function setWhitelistPrice(uint256 _salePrice) external onlyOwner { NTT_WHITELIST_PRICE = _salePrice; } function reallocateTokens(uint256 whitelistAmount, uint256 publicAmount, uint256 giftAmount) external onlyOwner{ if ((whitelistAmount + publicAmount + giftAmount) != NTT_MAX_SUPPLY) revert ReallocationError(); NTT_WHITELIST = whitelistAmount; NTT_PUBLIC = publicAmount; NTT_GIFT = giftAmount; } function getUserMintedInfo(address user) external view returns (uint256, uint256, uint256) { uint256 userPublicMintedCount = max(0, _numberMinted(user) - _getAux(user)); return(_numberMinted(user),_getAux(user),userPublicMintedCount); } function getSaleInfo() external view returns (SaleInfo memory) { SaleInfo memory currentInfo = SaleInfo(NTT_MAX_SUPPLY, NTT_WHITELIST, NTT_PUBLIC, NTT_WHITELIST_PRICE, NTT_PUBLIC_PRICE, NTT_PUBLIC_PER_USER, saleIsLive, whitelistLive, publicSaleLive, totalSupply(), publicAmountMinted, whitelistAmountMinted); return currentInfo; } function getOwnershipData(uint256 tokenId) external view returns (TokenOwnership memory) { return _ownershipOf(tokenId); } function _startTokenId() internal view virtual override returns (uint256) { return 1; } }
// 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 // OpenZeppelin Contracts v4.4.1 (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 Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _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.5.0) (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; import "../Strings.sol"; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } 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) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ 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. 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 if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return tryRecover(hash, r, vs); } 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 // ERC721A Contracts v4.0.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; /** * @dev ERC721 token receiver interface. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // 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 tokenId of the next token 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` 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 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } /** * @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 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 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 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 returns (uint256) { return _burnCounter; } /** * @dev See {IERC165-supportsInterface}. */ 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: 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. } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view 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 auxillary 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 auxillary 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 { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; assembly { // Cast aux without masking. auxCasted := aux } packed = (packed & BITMASK_AUX_COMPLEMENT) | (auxCasted << BITPOS_AUX); _packedAddressData[owner] = packed; } /** * 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 ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. // // We can directly compare the packed value. // If the address is zero, packed is zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * 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; } /** * Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) 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, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev Casts the address to uint256 without masking. */ function _addressToUint256(address value) private pure returns (uint256 result) { assembly { result := value } } /** * @dev Casts the boolean to uint256 without branching. */ function _boolToUint256(bool value) private pure returns (uint256 result) { assembly { result := value } } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = address(uint160(_packedOwnershipOf(tokenId))); if (to == owner) revert ApprovalToCurrentOwner(); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSenderERC721A()) revert ApproveToCaller(); _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { _transfer(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & BITMASK_BURNED == 0; // and not burned. } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal { _safeMint(to, 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. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the balance and number minted. _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] = _addressToUint256(to) | (block.timestamp << BITPOS_START_TIMESTAMP) | (_boolToUint256(quantity == 1) << BITPOS_NEXT_INITIALIZED); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; if (to.code.length != 0) { do { emit Transfer(address(0), to, updatedIndex); if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (updatedIndex < end); // Reentrancy protection if (_currentIndex != startTokenId) revert(); } else { do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex < end); } _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @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. */ function _mint(address to, uint256 quantity) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the balance and number minted. _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] = _addressToUint256(to) | (block.timestamp << BITPOS_START_TIMESTAMP) | (_boolToUint256(quantity == 1) << BITPOS_NEXT_INITIALIZED); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex < end); _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) private { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); bool isApprovedOrOwner = (_msgSenderERC721A() == from || isApprovedForAll(from, _msgSenderERC721A()) || getApproved(tokenId) == _msgSenderERC721A()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. delete _tokenApprovals[tokenId]; // 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] = _addressToUint256(to) | (block.timestamp << BITPOS_START_TIMESTAMP) | BITMASK_NEXT_INITIALIZED; // 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 `_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)); if (approvalCheck) { bool isApprovedOrOwner = (_msgSenderERC721A() == from || isApprovedForAll(from, _msgSenderERC721A()) || getApproved(tokenId) == _msgSenderERC721A()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. delete _tokenApprovals[tokenId]; // 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] = _addressToUint256(from) | (block.timestamp << BITPOS_START_TIMESTAMP) | BITMASK_BURNED | BITMASK_NEXT_INITIALIZED; // 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++; } } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _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)) } } } } /** * @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 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 returns (string memory ptr) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), // but we allocate 128 bytes to keep the free memory pointer 32-byte word aliged. // We will need 1 32-byte word to store the length, // and 3 32-byte words to store a maximum of 78 digits. Total: 32 + 3 * 32 = 128. ptr := add(mload(0x40), 128) // Update the free memory pointer to allocate. mstore(0x40, ptr) // Cache the end of the memory to calculate the length later. let end := ptr // We write the string from the rightmost digit to the leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // Costs a bit more than early returning for the zero case, // but cheaper in terms of deployment and overall runtime costs. for { // Initialize and perform the first pass without check. let temp := value // Move the pointer 1 byte leftwards to point to an empty character slot. ptr := sub(ptr, 1) // Write the character to the pointer. 48 is the ASCII index of '0'. mstore8(ptr, add(48, mod(temp, 10))) temp := div(temp, 10) } temp { // Keep dividing `temp` until zero. temp := div(temp, 10) } { // Body of the for loop. ptr := sub(ptr, 1) mstore8(ptr, add(48, mod(temp, 10))) } let length := sub(end, ptr) // Move the pointer 32 bytes leftwards to make room for the length. ptr := sub(ptr, 32) // Store the length. mstore(ptr, length) } } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.0.0 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of an ERC721A compliant contract. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * The caller cannot approve to their own address. */ error ApproveToCaller(); /** * The caller cannot approve to the current owner. */ error ApprovalToCurrentOwner(); /** * 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(); struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; } /** * @dev Returns the total amount of tokens stored by the contract. * * Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens. */ function totalSupply() external view returns (uint256); // ============================== // IERC165 // ============================== /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================== // 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`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must 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 ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================== // 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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // 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; } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"safeAddr","type":"address"},{"internalType":"address","name":"signerAddr","type":"address"},{"internalType":"string","name":"unrevealed","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AmountError","type":"error"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"ExceedsGiftsMax","type":"error"},{"inputs":[],"name":"ExceedsMaxSupply","type":"error"},{"inputs":[],"name":"ExceedsPubUserAllowance","type":"error"},{"inputs":[],"name":"ExceedsWLUserAllowance","type":"error"},{"inputs":[],"name":"InsufficientEth","type":"error"},{"inputs":[],"name":"InvalidSignature","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"NoBalance","type":"error"},{"inputs":[],"name":"OutOfStock","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ProvenanceLocked","type":"error"},{"inputs":[],"name":"PublicSaleClosed","type":"error"},{"inputs":[],"name":"PublicSaleSoldOut","type":"error"},{"inputs":[],"name":"ReallocationError","type":"error"},{"inputs":[],"name":"SaleClosed","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"},{"inputs":[],"name":"WhitelistSaleClosed","type":"error"},{"inputs":[],"name":"WhitelistSaleSoldOut","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"NTT_GIFT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NTT_MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NTT_PUBLIC","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NTT_PUBLIC_PER_USER","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NTT_PUBLIC_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NTT_WHITELIST","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NTT_WHITELIST_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint64","name":"tokenQuantity","type":"uint64"}],"name":"batchGift","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"changePublicSaleStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"changeSaleStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"changeWhitelistStatus","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":[],"name":"getFinalProvenanceHash","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getOwnershipData","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"}],"internalType":"struct IERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSaleInfo","outputs":[{"components":[{"internalType":"uint256","name":"_NTT_MAX_SUPPLY","type":"uint256"},{"internalType":"uint256","name":"_NTT_WHITELIST","type":"uint256"},{"internalType":"uint256","name":"_NTT_PUBLIC","type":"uint256"},{"internalType":"uint256","name":"_NTT_WHITELIST_PRICE","type":"uint256"},{"internalType":"uint256","name":"_NTT_PUBLIC_PRICE","type":"uint256"},{"internalType":"uint256","name":"_NTT_PUBLIC_PER_USER","type":"uint256"},{"internalType":"bool","name":"_saleIsLive","type":"bool"},{"internalType":"bool","name":"_whitelistLive","type":"bool"},{"internalType":"bool","name":"_publicSaleLive","type":"bool"},{"internalType":"uint256","name":"_totalSupply","type":"uint256"},{"internalType":"uint64","name":"_publicAmountMinted","type":"uint64"},{"internalType":"uint64","name":"_whitelistAmountMinted","type":"uint64"}],"internalType":"struct NineTalesTwo.SaleInfo","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getUserMintedInfo","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"winners","type":"address[]"}],"name":"gift","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"giftedAmount","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"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":"provenanceLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicAmountMinted","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"tokenQuantity","type":"uint64"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"publicSaleLive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"whitelistAmount","type":"uint256"},{"internalType":"uint256","name":"publicAmount","type":"uint256"},{"internalType":"uint256","name":"giftAmount","type":"uint256"}],"name":"reallocateTokens","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":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleIsLive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"provenanceHash","type":"string"}],"name":"setFinalProvenanceHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_limit","type":"uint256"}],"name":"setNttPublicUserLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"setPublicPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"setSignerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"setWhitelistPrice","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":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"whitelistAmountMinted","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistLive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"uint64","name":"tokenQuantity","type":"uint64"},{"internalType":"uint256","name":"tokenLimit","type":"uint256"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052610f01600a556064600b556101f7600c556002600d5567013c310749028000600e5567015fb7f9b8c38000600f556000601460106101000a81548160ff0219169083151502179055506001601460116101000a81548160ff0219169083151502179055506001601460126101000a81548160ff0219169083151502179055506000601460136101000a81548160ff021916908315150217905550348015620000ab57600080fd5b5060405162005a7738038062005a778339818101604052810190620000d191906200046f565b6040518060400160405280601181526020017f4e696e6554616c657320506861736520310000000000000000000000000000008152506040518060400160405280600481526020017f4e545031000000000000000000000000000000000000000000000000000000008152508160029080519060200190620001559291906200032a565b5080600390805190602001906200016e9291906200032a565b506200017f6200025360201b60201c565b6000819055505050620001a76200019b6200025c60201b60201c565b6200026460201b60201c565b600160098190555082601260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081601360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508060119080519060200190620002499291906200032a565b50505050620006bc565b60006001905090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8280546200033890620005b3565b90600052602060002090601f0160209004810192826200035c5760008555620003a8565b82601f106200037757805160ff1916838001178555620003a8565b82800160010185558215620003a8579182015b82811115620003a75782518255916020019190600101906200038a565b5b509050620003b79190620003bb565b5090565b5b80821115620003d6576000816000905550600101620003bc565b5090565b6000620003f1620003eb8462000513565b620004ea565b90508281526020810184848401111562000410576200040f62000682565b5b6200041d8482856200057d565b509392505050565b6000815190506200043681620006a2565b92915050565b600082601f8301126200045457620004536200067d565b5b815162000466848260208601620003da565b91505092915050565b6000806000606084860312156200048b576200048a6200068c565b5b60006200049b8682870162000425565b9350506020620004ae8682870162000425565b925050604084015167ffffffffffffffff811115620004d257620004d162000687565b5b620004e0868287016200043c565b9150509250925092565b6000620004f662000509565b9050620005048282620005e9565b919050565b6000604051905090565b600067ffffffffffffffff8211156200053157620005306200064e565b5b6200053c8262000691565b9050602081019050919050565b600062000556826200055d565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60005b838110156200059d57808201518184015260208101905062000580565b83811115620005ad576000848401525b50505050565b60006002820490506001821680620005cc57607f821691505b60208210811415620005e357620005e26200061f565b5b50919050565b620005f48262000691565b810181811067ffffffffffffffff821117156200061657620006156200064e565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b620006ad8162000549565b8114620006b957600080fd5b50565b6153ab80620006cc6000396000f3fe6080604052600436106102c95760003560e01c806379c3bb3e11610175578063b4c075bd116100dc578063ca36ce6c11610095578063e985e9c51161006f578063e985e9c514610a79578063f2fde38b14610ab6578063f412f5b614610adf578063f464f77514610b0a576102c9565b8063ca36ce6c146109f8578063db83694c14610a23578063dfe8e7a414610a4e576102c9565b8063b4c075bd146108fe578063b88d4fde14610927578063bcd42f9414610950578063c62752551461097b578063c87b56dd146109a4578063ca1d953c146109e1576102c9565b8063940f1ada1161012e578063940f1ada1461080057806395d89b411461082b57806396e4f731146108565780639979a1941461087f578063a22cb465146108aa578063a976406c146108d3576102c9565b806379c3bb3e146107025780638625ebe91461071957806389e8a87b146107425780638a981e611461076d5780638da5cb5b146107985780639231ab2a146107c3576102c9565b8063299c2cff116102345780636352211e116101ed5780636afcb7b0116101c75780636afcb7b01461066957806370a0823114610685578063715018a6146106c2578063717d57d3146106d9576102c9565b80636352211e146105d6578063658038ca146106135780636639c0db1461063e576102c9565b8063299c2cff146105025780633a8879bb146105195780633ccfd60b1461054457806342842e0e1461055b57806342efb3ca1461058457806355f804b3146105ad576102c9565b8063163e1e6111610286578063163e1e611461040457806318160ddd1461042d5780631b57190e1461045857806323b872dd1461048357806326d93800146104ac578063291fd06a146104d7576102c9565b806301ffc9a7146102ce578063046dc1661461030b57806306fdde0314610334578063081812fc1461035f578063095ea7b31461039c57806309623efd146103c5575b600080fd5b3480156102da57600080fd5b506102f560048036038101906102f09190614295565b610b26565b60405161030291906149ca565b60405180910390f35b34801561031757600080fd5b50610332600480360381019061032d9190614045565b610bb8565b005b34801561034057600080fd5b50610349610c78565b6040516103569190614a2a565b60405180910390f35b34801561036b57600080fd5b50610386600480360381019061038191906143f4565b610d0a565b6040516103939190614963565b60405180910390f35b3480156103a857600080fd5b506103c360048036038101906103be91906141c8565b610d86565b005b3480156103d157600080fd5b506103ec60048036038101906103e79190614045565b610f2d565b6040516103fb93929190614bbe565b60405180910390f35b34801561041057600080fd5b5061042b60048036038101906104269190614248565b610f93565b005b34801561043957600080fd5b50610442611170565b60405161044f9190614ba3565b60405180910390f35b34801561046457600080fd5b5061046d611187565b60405161047a9190614bf5565b60405180910390f35b34801561048f57600080fd5b506104aa60048036038101906104a591906140b2565b6111a1565b005b3480156104b857600080fd5b506104c16111b1565b6040516104ce91906149ca565b60405180910390f35b3480156104e357600080fd5b506104ec6111c4565b6040516104f99190614ba3565b60405180910390f35b34801561050e57600080fd5b506105176111ca565b005b34801561052557600080fd5b5061052e611272565b60405161053b91906149ca565b60405180910390f35b34801561055057600080fd5b50610559611285565b005b34801561056757600080fd5b50610582600480360381019061057d91906140b2565b611468565b005b34801561059057600080fd5b506105ab60048036038101906105a69190614421565b611488565b005b3480156105b957600080fd5b506105d460048036038101906105cf919061435e565b61156f565b005b3480156105e257600080fd5b506105fd60048036038101906105f891906143f4565b611601565b60405161060a9190614963565b60405180910390f35b34801561061f57600080fd5b50610628611613565b6040516106359190614ba3565b60405180910390f35b34801561064a57600080fd5b50610653611619565b6040516106609190614ba3565b60405180910390f35b610683600480360381019061067e9190614474565b61161f565b005b34801561069157600080fd5b506106ac60048036038101906106a79190614045565b611952565b6040516106b99190614ba3565b60405180910390f35b3480156106ce57600080fd5b506106d7611a0b565b005b3480156106e557600080fd5b5061070060048036038101906106fb91906143f4565b611a93565b005b34801561070e57600080fd5b50610717611b19565b005b34801561072557600080fd5b50610740600480360381019061073b91906143f4565b611bc1565b005b34801561074e57600080fd5b50610757611c47565b6040516107649190614a2a565b60405180910390f35b34801561077957600080fd5b50610782611cd9565b60405161078f9190614bf5565b60405180910390f35b3480156107a457600080fd5b506107ad611cf3565b6040516107ba9190614963565b60405180910390f35b3480156107cf57600080fd5b506107ea60048036038101906107e591906143f4565b611d1d565b6040516107f79190614b88565b60405180910390f35b34801561080c57600080fd5b50610815611d35565b6040516108229190614bf5565b60405180910390f35b34801561083757600080fd5b50610840611d4f565b60405161084d9190614a2a565b60405180910390f35b34801561086257600080fd5b5061087d600480360381019061087891906143ab565b611de1565b005b34801561088b57600080fd5b50610894611ed9565b6040516108a191906149ca565b60405180910390f35b3480156108b657600080fd5b506108d160048036038101906108cc9190614188565b611eec565b005b3480156108df57600080fd5b506108e8612064565b6040516108f59190614ba3565b60405180910390f35b34801561090a57600080fd5b5061092560048036038101906109209190614208565b61206a565b005b34801561093357600080fd5b5061094e60048036038101906109499190614105565b612208565b005b34801561095c57600080fd5b5061096561227b565b6040516109729190614ba3565b60405180910390f35b34801561098757600080fd5b506109a2600480360381019061099d91906143f4565b612281565b005b3480156109b057600080fd5b506109cb60048036038101906109c691906143f4565b612307565b6040516109d89190614a2a565b60405180910390f35b3480156109ed57600080fd5b506109f66123a6565b005b348015610a0457600080fd5b50610a0d61244e565b604051610a1a9190614ba3565b60405180910390f35b348015610a2f57600080fd5b50610a38612454565b604051610a459190614b6c565b60405180910390f35b348015610a5a57600080fd5b50610a6361253f565b604051610a709190614ba3565b60405180910390f35b348015610a8557600080fd5b50610aa06004803603810190610a9b9190614072565b612545565b604051610aad91906149ca565b60405180910390f35b348015610ac257600080fd5b50610add6004803603810190610ad89190614045565b6125d9565b005b348015610aeb57600080fd5b50610af46126d1565b604051610b0191906149ca565b60405180910390f35b610b246004803603810190610b1f91906142ef565b6126e4565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610b8157506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610bb15750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b610bc0612a54565b73ffffffffffffffffffffffffffffffffffffffff16610bde611cf3565b73ffffffffffffffffffffffffffffffffffffffff1614610c34576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c2b90614b2c565b60405180910390fd5b80601360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b606060028054610c8790614ee8565b80601f0160208091040260200160405190810160405280929190818152602001828054610cb390614ee8565b8015610d005780601f10610cd557610100808354040283529160200191610d00565b820191906000526020600020905b815481529060010190602001808311610ce357829003601f168201915b5050505050905090565b6000610d1582612a5c565b610d4b576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610d9182612abb565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610df9576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610e18612b89565b73ffffffffffffffffffffffffffffffffffffffff1614610e7b57610e4481610e3f612b89565b612545565b610e7a576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600080600080610f636000610f4187612b91565b67ffffffffffffffff16610f5488612bde565b610f5e9190614dd3565b612c35565b9050610f6e85612bde565b610f7786612b91565b828167ffffffffffffffff169150935093509350509193909250565b610f9b612a54565b73ffffffffffffffffffffffffffffffffffffffff16610fb9611cf3565b73ffffffffffffffffffffffffffffffffffffffff161461100f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100690614b2c565b60405180910390fd5b61115c8282905061101e612c4f565b6110289190614ce5565b1115611060576040517fc30436e900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600b5482829050601360149054906101000a900467ffffffffffffffff1667ffffffffffffffff166110929190614ce5565b11156110ca576040517f1ad4e6af00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b8282905081101561111d5761110a8383838181106110ee576110ed615059565b5b90506020020160208101906111039190614045565b6001612c62565b808061111590614f4b565b9150506110cd565b5081819050601360148282829054906101000a900467ffffffffffffffff166111469190614d3b565b92506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505050565b600061117a612c80565b6001546000540303905090565b601360149054906101000a900467ffffffffffffffff1681565b6111ac838383612c89565b505050565b601460129054906101000a900460ff1681565b600f5481565b6111d2612a54565b73ffffffffffffffffffffffffffffffffffffffff166111f0611cf3565b73ffffffffffffffffffffffffffffffffffffffff1614611246576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161123d90614b2c565b60405180910390fd5b601460129054906101000a900460ff1615601460126101000a81548160ff021916908315150217905550565b601460139054906101000a900460ff1681565b61128d612a54565b73ffffffffffffffffffffffffffffffffffffffff166112ab611cf3565b73ffffffffffffffffffffffffffffffffffffffff1614611301576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112f890614b2c565b60405180910390fd5b60026009541415611347576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161133e90614b4c565b60405180910390fd5b600260098190555060004790506000811161138e576040517fc2caa2a600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16826040516113d69061494e565b60006040518083038185875af1925050503d8060008114611413576040519150601f19603f3d011682016040523d82523d6000602084013e611418565b606091505b505090508061145c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161145390614aec565b60405180910390fd5b50506001600981905550565b61148383838360405180602001604052806000815250612208565b505050565b611490612a54565b73ffffffffffffffffffffffffffffffffffffffff166114ae611cf3565b73ffffffffffffffffffffffffffffffffffffffff1614611504576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114fb90614b2c565b60405180910390fd5b61115c8183856115149190614ce5565b61151e9190614ce5565b14611555576040517fba4f801200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b82600a8190555081600c8190555080600b81905550505050565b611577612a54565b73ffffffffffffffffffffffffffffffffffffffff16611595611cf3565b73ffffffffffffffffffffffffffffffffffffffff16146115eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115e290614b2c565b60405180910390fd5b8181601191906115fc929190613c54565b505050565b600061160c82612abb565b9050919050565b600e5481565b61115c81565b601460109054906101000a900460ff16611665576040517f4c013bd700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff16146116d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116ca90614acc565b60405180910390fd5b8060018167ffffffffffffffff161015611719576040517f4ff64a9f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61115c8167ffffffffffffffff1661172f612c4f565b6117399190614ce5565b1115611771576040517fade1cb4100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601460129054906101000a900460ff166117b7576040517fdd4e010600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600c5482601460009054906101000a900467ffffffffffffffff166117dc9190614d3b565b67ffffffffffffffff16111561181e576040517f2cb116bc00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8167ffffffffffffffff16600f546118369190614d79565b34101561186f576040517fa01a9df600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600d546118a2600061188033612b91565b67ffffffffffffffff1661189333612bde565b61189d9190614dd3565b612c35565b8367ffffffffffffffff166118b79190614ce5565b11156118ef576040517f6955d39600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611903338367ffffffffffffffff16612c62565b81601460008282829054906101000a900467ffffffffffffffff166119289190614d3b565b92506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156119ba576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611a13612a54565b73ffffffffffffffffffffffffffffffffffffffff16611a31611cf3565b73ffffffffffffffffffffffffffffffffffffffff1614611a87576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a7e90614b2c565b60405180910390fd5b611a916000613033565b565b611a9b612a54565b73ffffffffffffffffffffffffffffffffffffffff16611ab9611cf3565b73ffffffffffffffffffffffffffffffffffffffff1614611b0f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b0690614b2c565b60405180910390fd5b80600e8190555050565b611b21612a54565b73ffffffffffffffffffffffffffffffffffffffff16611b3f611cf3565b73ffffffffffffffffffffffffffffffffffffffff1614611b95576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b8c90614b2c565b60405180910390fd5b601460119054906101000a900460ff1615601460116101000a81548160ff021916908315150217905550565b611bc9612a54565b73ffffffffffffffffffffffffffffffffffffffff16611be7611cf3565b73ffffffffffffffffffffffffffffffffffffffff1614611c3d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c3490614b2c565b60405180910390fd5b80600d8190555050565b606060108054611c5690614ee8565b80601f0160208091040260200160405190810160405280929190818152602001828054611c8290614ee8565b8015611ccf5780601f10611ca457610100808354040283529160200191611ccf565b820191906000526020600020905b815481529060010190602001808311611cb257829003601f168201915b5050505050905090565b601460089054906101000a900467ffffffffffffffff1681565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611d25613cda565b611d2e826130f9565b9050919050565b601460009054906101000a900467ffffffffffffffff1681565b606060038054611d5e90614ee8565b80601f0160208091040260200160405190810160405280929190818152602001828054611d8a90614ee8565b8015611dd75780601f10611dac57610100808354040283529160200191611dd7565b820191906000526020600020905b815481529060010190602001808311611dba57829003601f168201915b5050505050905090565b611de9612a54565b73ffffffffffffffffffffffffffffffffffffffff16611e07611cf3565b73ffffffffffffffffffffffffffffffffffffffff1614611e5d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e5490614b2c565b60405180910390fd5b601460139054906101000a900460ff1615611ea4576040517f073a11f300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060109080519060200190611eba929190613d1d565b506001601460136101000a81548160ff02191690831515021790555050565b601460119054906101000a900460ff1681565b611ef4612b89565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611f59576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060076000611f66612b89565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16612013612b89565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161205891906149ca565b60405180910390a35050565b600c5481565b612072612a54565b73ffffffffffffffffffffffffffffffffffffffff16612090611cf3565b73ffffffffffffffffffffffffffffffffffffffff16146120e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120dd90614b2c565b60405180910390fd5b61115c8167ffffffffffffffff166120fc612c4f565b6121069190614ce5565b111561213e576040517fc30436e900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600b5481601360149054906101000a900467ffffffffffffffff166121639190614d3b565b67ffffffffffffffff1611156121a5576040517f1ad4e6af00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6121b9828267ffffffffffffffff16612c62565b80601360148282829054906101000a900467ffffffffffffffff166121de9190614d3b565b92506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505050565b612213848484612c89565b60008373ffffffffffffffffffffffffffffffffffffffff163b146122755761223e84848484613119565b612274576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b600a5481565b612289612a54565b73ffffffffffffffffffffffffffffffffffffffff166122a7611cf3565b73ffffffffffffffffffffffffffffffffffffffff16146122fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122f490614b2c565b60405180910390fd5b80600f8190555050565b606061231282612a5c565b612348576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000612352613279565b9050600081511415612373576040518060200160405280600081525061239e565b8061237d8461330b565b60405160200161238e929190614904565b6040516020818303038152906040525b915050919050565b6123ae612a54565b73ffffffffffffffffffffffffffffffffffffffff166123cc611cf3565b73ffffffffffffffffffffffffffffffffffffffff1614612422576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161241990614b2c565b60405180910390fd5b601460109054906101000a900460ff1615601460106101000a81548160ff021916908315150217905550565b600d5481565b61245c613da3565b600060405180610180016040528061115c8152602001600a548152602001600c548152602001600e548152602001600f548152602001600d548152602001601460109054906101000a900460ff1615158152602001601460119054906101000a900460ff1615158152602001601460129054906101000a900460ff16151581526020016124e7611170565b8152602001601460009054906101000a900467ffffffffffffffff1667ffffffffffffffff168152602001601460089054906101000a900467ffffffffffffffff1667ffffffffffffffff1681525090508091505090565b600b5481565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6125e1612a54565b73ffffffffffffffffffffffffffffffffffffffff166125ff611cf3565b73ffffffffffffffffffffffffffffffffffffffff1614612655576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161264c90614b2c565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156126c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126bc90614a8c565b60405180910390fd5b6126ce81613033565b50565b601460109054906101000a900460ff1681565b601460109054906101000a900460ff1661272a576040517f4c013bd700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614612798576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161278f90614acc565b60405180910390fd5b8160018167ffffffffffffffff1610156127de576040517f4ff64a9f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61115c8167ffffffffffffffff166127f4612c4f565b6127fe9190614ce5565b1115612836576040517fade1cb4100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601460119054906101000a900460ff1661287c576040517f9fe9d50600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a5483601460089054906101000a900467ffffffffffffffff166128a19190614d3b565b67ffffffffffffffff1611156128e3576040517fdcb83eb300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8267ffffffffffffffff16600e546128fb9190614d79565b341015612934576040517fa01a9df600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061293f33612b91565b905082848261294e9190614d3b565b67ffffffffffffffff161115612990576040517f78359fc900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6129a361299d3385613365565b8661339d565b6129d9576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6129ed338567ffffffffffffffff16612c62565b612a023385836129fd9190614d3b565b613412565b83601460088282829054906101000a900467ffffffffffffffff16612a279190614d3b565b92506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505050505050565b600033905090565b600081612a67612c80565b11158015612a76575060005482105b8015612ab4575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b60008082905080612aca612c80565b11612b5257600054811015612b515760006004600083815260200190815260200160002054905060007c010000000000000000000000000000000000000000000000000000000082161415612b4f575b6000811415612b45576004600083600190039350838152602001908152602001600020549050612b1a565b8092505050612b84565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b600033905090565b600060c0600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c9050919050565b600067ffffffffffffffff6040600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c169050919050565b600081831015612c455781612c47565b825b905092915050565b6000612c59612c80565b60005403905090565b612c7c8282604051806020016040528060008152506134c8565b5050565b60006001905090565b6000612c9482612abb565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614612cfb576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008473ffffffffffffffffffffffffffffffffffffffff16612d1c612b89565b73ffffffffffffffffffffffffffffffffffffffff161480612d4b5750612d4a85612d45612b89565b612545565b5b80612d905750612d59612b89565b73ffffffffffffffffffffffffffffffffffffffff16612d7884610d0a565b73ffffffffffffffffffffffffffffffffffffffff16145b905080612dc9576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612e30576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612e3d858585600161377d565b6006600084815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154600101919050819055507c020000000000000000000000000000000000000000000000000000000060a042901b612f3a86613783565b1717600460008581526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000083161415612fc4576000600184019050600060046000838152602001908152602001600020541415612fc2576000548114612fc1578260046000838152602001908152602001600020819055505b5b505b828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461302c858585600161378d565b5050505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b613101613cda565b61311261310d83612abb565b613793565b9050919050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261313f612b89565b8786866040518563ffffffff1660e01b8152600401613161949392919061497e565b602060405180830381600087803b15801561317b57600080fd5b505af19250505080156131ac57506040513d601f19601f820116820180604052508101906131a991906142c2565b60015b613226573d80600081146131dc576040519150601f19603f3d011682016040523d82523d6000602084013e6131e1565b606091505b5060008151141561321e576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b60606011805461328890614ee8565b80601f01602080910402602001604051908101604052809291908181526020018280546132b490614ee8565b80156133015780601f106132d657610100808354040283529160200191613301565b820191906000526020600020905b8154815290600101906020018083116132e457829003601f168201915b5050505050905090565b60606080604051019050806040528082600183039250600a81066030018353600a810490505b801561335157600183039250600a81066030018353600a81049050613331565b508181036020830392508083525050919050565b600080838360405160200161337b9291906148d8565b6040516020818303038152906040528051906020012090508091505092915050565b60006133ba826133ac8561382f565b61385f90919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff16601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614905092915050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050600082905060c081901b77ffffffffffffffffffffffffffffffffffffffffffffffff831617915081600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555050505050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415613535576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000831415613570576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61357d600085838661377d565b600160406001901b178302600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555060e16135e260018514613886565b901b60a042901b6135f286613783565b1717600460008381526020019081526020016000208190555060008190506000848201905060008673ffffffffffffffffffffffffffffffffffffffff163b146136f6575b818673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46136a66000878480600101955087613119565b6136dc576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8082106136375782600054146136f157600080fd5b613761565b5b818060010192508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a48082106136f7575b816000819055505050613777600085838661378d565b50505050565b50505050565b6000819050919050565b50505050565b61379b613cda565b81816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff168152505060007c010000000000000000000000000000000000000000000000000000000083161415816040019015159081151581525050919050565b6000816040516020016138429190614928565b604051602081830303815290604052805190602001209050919050565b600080600061386e8585613890565b9150915061387b81613913565b819250505092915050565b6000819050919050565b6000806041835114156138d25760008060006020860151925060408601519150606086015160001a90506138c687828585613ae8565b9450945050505061390c565b6040835114156139035760008060208501519150604085015190506138f8868383613bf5565b93509350505061390c565b60006002915091505b9250929050565b6000600481111561392757613926614ffb565b5b81600481111561393a57613939614ffb565b5b141561394557613ae5565b6001600481111561395957613958614ffb565b5b81600481111561396c5761396b614ffb565b5b14156139ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016139a490614a4c565b60405180910390fd5b600260048111156139c1576139c0614ffb565b5b8160048111156139d4576139d3614ffb565b5b1415613a15576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613a0c90614a6c565b60405180910390fd5b60036004811115613a2957613a28614ffb565b5b816004811115613a3c57613a3b614ffb565b5b1415613a7d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613a7490614aac565b60405180910390fd5b600480811115613a9057613a8f614ffb565b5b816004811115613aa357613aa2614ffb565b5b1415613ae4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613adb90614b0c565b60405180910390fd5b5b50565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c1115613b23576000600391509150613bec565b601b8560ff1614158015613b3b5750601c8560ff1614155b15613b4d576000600491509150613bec565b600060018787878760405160008152602001604052604051613b7294939291906149e5565b6020604051602081039080840390855afa158015613b94573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415613be357600060019250925050613bec565b80600092509250505b94509492505050565b60008060007f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60001b841690506000601b60ff8660001c901c613c389190614ce5565b9050613c4687828885613ae8565b935093505050935093915050565b828054613c6090614ee8565b90600052602060002090601f016020900481019282613c825760008555613cc9565b82601f10613c9b57803560ff1916838001178555613cc9565b82800160010185558215613cc9579182015b82811115613cc8578235825591602001919060010190613cad565b5b509050613cd69190613e1e565b5090565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681526020016000151581525090565b828054613d2990614ee8565b90600052602060002090601f016020900481019282613d4b5760008555613d92565b82601f10613d6457805160ff1916838001178555613d92565b82800160010185558215613d92579182015b82811115613d91578251825591602001919060010190613d76565b5b509050613d9f9190613e1e565b5090565b60405180610180016040528060008152602001600081526020016000815260200160008152602001600081526020016000815260200160001515815260200160001515815260200160001515815260200160008152602001600067ffffffffffffffff168152602001600067ffffffffffffffff1681525090565b5b80821115613e37576000816000905550600101613e1f565b5090565b6000613e4e613e4984614c35565b614c10565b905082815260208101848484011115613e6a57613e696150c6565b5b613e75848285614ea6565b509392505050565b6000613e90613e8b84614c66565b614c10565b905082815260208101848484011115613eac57613eab6150c6565b5b613eb7848285614ea6565b509392505050565b600081359050613ece81615302565b92915050565b60008083601f840112613eea57613ee96150bc565b5b8235905067ffffffffffffffff811115613f0757613f066150b7565b5b602083019150836020820283011115613f2357613f226150c1565b5b9250929050565b600081359050613f3981615319565b92915050565b600081359050613f4e81615330565b92915050565b600081519050613f6381615330565b92915050565b600082601f830112613f7e57613f7d6150bc565b5b8135613f8e848260208601613e3b565b91505092915050565b60008083601f840112613fad57613fac6150bc565b5b8235905067ffffffffffffffff811115613fca57613fc96150b7565b5b602083019150836001820283011115613fe657613fe56150c1565b5b9250929050565b600082601f830112614002576140016150bc565b5b8135614012848260208601613e7d565b91505092915050565b60008135905061402a81615347565b92915050565b60008135905061403f8161535e565b92915050565b60006020828403121561405b5761405a6150d0565b5b600061406984828501613ebf565b91505092915050565b60008060408385031215614089576140886150d0565b5b600061409785828601613ebf565b92505060206140a885828601613ebf565b9150509250929050565b6000806000606084860312156140cb576140ca6150d0565b5b60006140d986828701613ebf565b93505060206140ea86828701613ebf565b92505060406140fb8682870161401b565b9150509250925092565b6000806000806080858703121561411f5761411e6150d0565b5b600061412d87828801613ebf565b945050602061413e87828801613ebf565b935050604061414f8782880161401b565b925050606085013567ffffffffffffffff8111156141705761416f6150cb565b5b61417c87828801613f69565b91505092959194509250565b6000806040838503121561419f5761419e6150d0565b5b60006141ad85828601613ebf565b92505060206141be85828601613f2a565b9150509250929050565b600080604083850312156141df576141de6150d0565b5b60006141ed85828601613ebf565b92505060206141fe8582860161401b565b9150509250929050565b6000806040838503121561421f5761421e6150d0565b5b600061422d85828601613ebf565b925050602061423e85828601614030565b9150509250929050565b6000806020838503121561425f5761425e6150d0565b5b600083013567ffffffffffffffff81111561427d5761427c6150cb565b5b61428985828601613ed4565b92509250509250929050565b6000602082840312156142ab576142aa6150d0565b5b60006142b984828501613f3f565b91505092915050565b6000602082840312156142d8576142d76150d0565b5b60006142e684828501613f54565b91505092915050565b600080600060608486031215614308576143076150d0565b5b600084013567ffffffffffffffff811115614326576143256150cb565b5b61433286828701613f69565b935050602061434386828701614030565b92505060406143548682870161401b565b9150509250925092565b60008060208385031215614375576143746150d0565b5b600083013567ffffffffffffffff811115614393576143926150cb565b5b61439f85828601613f97565b92509250509250929050565b6000602082840312156143c1576143c06150d0565b5b600082013567ffffffffffffffff8111156143df576143de6150cb565b5b6143eb84828501613fed565b91505092915050565b60006020828403121561440a576144096150d0565b5b60006144188482850161401b565b91505092915050565b60008060006060848603121561443a576144396150d0565b5b60006144488682870161401b565b93505060206144598682870161401b565b925050604061446a8682870161401b565b9150509250925092565b60006020828403121561448a576144896150d0565b5b600061449884828501614030565b91505092915050565b6144aa81614e07565b82525050565b6144b981614e07565b82525050565b6144d06144cb82614e07565b614f94565b82525050565b6144df81614e19565b82525050565b6144ee81614e19565b82525050565b6144fd81614e25565b82525050565b61451461450f82614e25565b614fa6565b82525050565b600061452582614c97565b61452f8185614cad565b935061453f818560208601614eb5565b614548816150d5565b840191505092915050565b600061455e82614ca2565b6145688185614cc9565b9350614578818560208601614eb5565b614581816150d5565b840191505092915050565b600061459782614ca2565b6145a18185614cda565b93506145b1818560208601614eb5565b80840191505092915050565b60006145ca601883614cc9565b91506145d5826150f3565b602082019050919050565b60006145ed601f83614cc9565b91506145f88261511c565b602082019050919050565b6000614610601c83614cda565b915061461b82615145565b601c82019050919050565b6000614633602683614cc9565b915061463e8261516e565b604082019050919050565b6000614656602283614cc9565b9150614661826151bd565b604082019050919050565b6000614679601e83614cc9565b91506146848261520c565b602082019050919050565b600061469c600d83614cc9565b91506146a782615235565b602082019050919050565b60006146bf602283614cc9565b91506146ca8261525e565b604082019050919050565b60006146e2602083614cc9565b91506146ed826152ad565b602082019050919050565b6000614705600083614cbe565b9150614710826152d6565b600082019050919050565b6000614728601f83614cc9565b9150614733826152d9565b602082019050919050565b610180820160008201516147556000850182614876565b5060208201516147686020850182614876565b50604082015161477b6040850182614876565b50606082015161478e6060850182614876565b5060808201516147a16080850182614876565b5060a08201516147b460a0850182614876565b5060c08201516147c760c08501826144d6565b5060e08201516147da60e08501826144d6565b506101008201516147ef6101008501826144d6565b50610120820151614804610120850182614876565b506101408201516148196101408501826148ab565b5061016082015161482e6101608501826148ab565b50505050565b60608201600082015161484a60008501826144a1565b50602082015161485d60208501826148ab565b50604082015161487060408501826144d6565b50505050565b61487f81614e7b565b82525050565b61488e81614e7b565b82525050565b6148a56148a082614e7b565b614fc2565b82525050565b6148b481614e85565b82525050565b6148c381614e85565b82525050565b6148d281614e99565b82525050565b60006148e482856144bf565b6014820191506148f48284614894565b6020820191508190509392505050565b6000614910828561458c565b915061491c828461458c565b91508190509392505050565b600061493382614603565b915061493f8284614503565b60208201915081905092915050565b6000614959826146f8565b9150819050919050565b600060208201905061497860008301846144b0565b92915050565b600060808201905061499360008301876144b0565b6149a060208301866144b0565b6149ad6040830185614885565b81810360608301526149bf818461451a565b905095945050505050565b60006020820190506149df60008301846144e5565b92915050565b60006080820190506149fa60008301876144f4565b614a0760208301866148c9565b614a1460408301856144f4565b614a2160608301846144f4565b95945050505050565b60006020820190508181036000830152614a448184614553565b905092915050565b60006020820190508181036000830152614a65816145bd565b9050919050565b60006020820190508181036000830152614a85816145e0565b9050919050565b60006020820190508181036000830152614aa581614626565b9050919050565b60006020820190508181036000830152614ac581614649565b9050919050565b60006020820190508181036000830152614ae58161466c565b9050919050565b60006020820190508181036000830152614b058161468f565b9050919050565b60006020820190508181036000830152614b25816146b2565b9050919050565b60006020820190508181036000830152614b45816146d5565b9050919050565b60006020820190508181036000830152614b658161471b565b9050919050565b600061018082019050614b82600083018461473e565b92915050565b6000606082019050614b9d6000830184614834565b92915050565b6000602082019050614bb86000830184614885565b92915050565b6000606082019050614bd36000830186614885565b614be06020830185614885565b614bed6040830184614885565b949350505050565b6000602082019050614c0a60008301846148ba565b92915050565b6000614c1a614c2b565b9050614c268282614f1a565b919050565b6000604051905090565b600067ffffffffffffffff821115614c5057614c4f615088565b5b614c59826150d5565b9050602081019050919050565b600067ffffffffffffffff821115614c8157614c80615088565b5b614c8a826150d5565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000614cf082614e7b565b9150614cfb83614e7b565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614d3057614d2f614fcc565b5b828201905092915050565b6000614d4682614e85565b9150614d5183614e85565b92508267ffffffffffffffff03821115614d6e57614d6d614fcc565b5b828201905092915050565b6000614d8482614e7b565b9150614d8f83614e7b565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614dc857614dc7614fcc565b5b828202905092915050565b6000614dde82614e7b565b9150614de983614e7b565b925082821015614dfc57614dfb614fcc565b5b828203905092915050565b6000614e1282614e5b565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600067ffffffffffffffff82169050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b83811015614ed3578082015181840152602081019050614eb8565b83811115614ee2576000848401525b50505050565b60006002820490506001821680614f0057607f821691505b60208210811415614f1457614f1361502a565b5b50919050565b614f23826150d5565b810181811067ffffffffffffffff82111715614f4257614f41615088565b5b80604052505050565b6000614f5682614e7b565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614f8957614f88614fcc565b5b600182019050919050565b6000614f9f82614fb0565b9050919050565b6000819050919050565b6000614fbb826150e6565b9050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f5468652063616c6c657220697320616e6f7468657220636f6e74726163740000600082015250565b7f5452414e534645525f4641494c00000000000000000000000000000000000000600082015250565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b50565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b61530b81614e07565b811461531657600080fd5b50565b61532281614e19565b811461532d57600080fd5b50565b61533981614e2f565b811461534457600080fd5b50565b61535081614e7b565b811461535b57600080fd5b50565b61536781614e85565b811461537257600080fd5b5056fea2646970667358221220cd86393bcd1574764472adc643cb44229a3f6b7746ba36c0d3c288134adcb1a664736f6c634300080700330000000000000000000000002d36b3318d49455f6182d054694832c76d9f21c4000000000000000000000000e3b4e7c041627b1726d8167673b38c9ba07de43600000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d61375357716f7270667a454b43355432457a585765415a78354837444c6b48756673734c5375587a644248552f00000000000000000000
Deployed Bytecode
0x6080604052600436106102c95760003560e01c806379c3bb3e11610175578063b4c075bd116100dc578063ca36ce6c11610095578063e985e9c51161006f578063e985e9c514610a79578063f2fde38b14610ab6578063f412f5b614610adf578063f464f77514610b0a576102c9565b8063ca36ce6c146109f8578063db83694c14610a23578063dfe8e7a414610a4e576102c9565b8063b4c075bd146108fe578063b88d4fde14610927578063bcd42f9414610950578063c62752551461097b578063c87b56dd146109a4578063ca1d953c146109e1576102c9565b8063940f1ada1161012e578063940f1ada1461080057806395d89b411461082b57806396e4f731146108565780639979a1941461087f578063a22cb465146108aa578063a976406c146108d3576102c9565b806379c3bb3e146107025780638625ebe91461071957806389e8a87b146107425780638a981e611461076d5780638da5cb5b146107985780639231ab2a146107c3576102c9565b8063299c2cff116102345780636352211e116101ed5780636afcb7b0116101c75780636afcb7b01461066957806370a0823114610685578063715018a6146106c2578063717d57d3146106d9576102c9565b80636352211e146105d6578063658038ca146106135780636639c0db1461063e576102c9565b8063299c2cff146105025780633a8879bb146105195780633ccfd60b1461054457806342842e0e1461055b57806342efb3ca1461058457806355f804b3146105ad576102c9565b8063163e1e6111610286578063163e1e611461040457806318160ddd1461042d5780631b57190e1461045857806323b872dd1461048357806326d93800146104ac578063291fd06a146104d7576102c9565b806301ffc9a7146102ce578063046dc1661461030b57806306fdde0314610334578063081812fc1461035f578063095ea7b31461039c57806309623efd146103c5575b600080fd5b3480156102da57600080fd5b506102f560048036038101906102f09190614295565b610b26565b60405161030291906149ca565b60405180910390f35b34801561031757600080fd5b50610332600480360381019061032d9190614045565b610bb8565b005b34801561034057600080fd5b50610349610c78565b6040516103569190614a2a565b60405180910390f35b34801561036b57600080fd5b50610386600480360381019061038191906143f4565b610d0a565b6040516103939190614963565b60405180910390f35b3480156103a857600080fd5b506103c360048036038101906103be91906141c8565b610d86565b005b3480156103d157600080fd5b506103ec60048036038101906103e79190614045565b610f2d565b6040516103fb93929190614bbe565b60405180910390f35b34801561041057600080fd5b5061042b60048036038101906104269190614248565b610f93565b005b34801561043957600080fd5b50610442611170565b60405161044f9190614ba3565b60405180910390f35b34801561046457600080fd5b5061046d611187565b60405161047a9190614bf5565b60405180910390f35b34801561048f57600080fd5b506104aa60048036038101906104a591906140b2565b6111a1565b005b3480156104b857600080fd5b506104c16111b1565b6040516104ce91906149ca565b60405180910390f35b3480156104e357600080fd5b506104ec6111c4565b6040516104f99190614ba3565b60405180910390f35b34801561050e57600080fd5b506105176111ca565b005b34801561052557600080fd5b5061052e611272565b60405161053b91906149ca565b60405180910390f35b34801561055057600080fd5b50610559611285565b005b34801561056757600080fd5b50610582600480360381019061057d91906140b2565b611468565b005b34801561059057600080fd5b506105ab60048036038101906105a69190614421565b611488565b005b3480156105b957600080fd5b506105d460048036038101906105cf919061435e565b61156f565b005b3480156105e257600080fd5b506105fd60048036038101906105f891906143f4565b611601565b60405161060a9190614963565b60405180910390f35b34801561061f57600080fd5b50610628611613565b6040516106359190614ba3565b60405180910390f35b34801561064a57600080fd5b50610653611619565b6040516106609190614ba3565b60405180910390f35b610683600480360381019061067e9190614474565b61161f565b005b34801561069157600080fd5b506106ac60048036038101906106a79190614045565b611952565b6040516106b99190614ba3565b60405180910390f35b3480156106ce57600080fd5b506106d7611a0b565b005b3480156106e557600080fd5b5061070060048036038101906106fb91906143f4565b611a93565b005b34801561070e57600080fd5b50610717611b19565b005b34801561072557600080fd5b50610740600480360381019061073b91906143f4565b611bc1565b005b34801561074e57600080fd5b50610757611c47565b6040516107649190614a2a565b60405180910390f35b34801561077957600080fd5b50610782611cd9565b60405161078f9190614bf5565b60405180910390f35b3480156107a457600080fd5b506107ad611cf3565b6040516107ba9190614963565b60405180910390f35b3480156107cf57600080fd5b506107ea60048036038101906107e591906143f4565b611d1d565b6040516107f79190614b88565b60405180910390f35b34801561080c57600080fd5b50610815611d35565b6040516108229190614bf5565b60405180910390f35b34801561083757600080fd5b50610840611d4f565b60405161084d9190614a2a565b60405180910390f35b34801561086257600080fd5b5061087d600480360381019061087891906143ab565b611de1565b005b34801561088b57600080fd5b50610894611ed9565b6040516108a191906149ca565b60405180910390f35b3480156108b657600080fd5b506108d160048036038101906108cc9190614188565b611eec565b005b3480156108df57600080fd5b506108e8612064565b6040516108f59190614ba3565b60405180910390f35b34801561090a57600080fd5b5061092560048036038101906109209190614208565b61206a565b005b34801561093357600080fd5b5061094e60048036038101906109499190614105565b612208565b005b34801561095c57600080fd5b5061096561227b565b6040516109729190614ba3565b60405180910390f35b34801561098757600080fd5b506109a2600480360381019061099d91906143f4565b612281565b005b3480156109b057600080fd5b506109cb60048036038101906109c691906143f4565b612307565b6040516109d89190614a2a565b60405180910390f35b3480156109ed57600080fd5b506109f66123a6565b005b348015610a0457600080fd5b50610a0d61244e565b604051610a1a9190614ba3565b60405180910390f35b348015610a2f57600080fd5b50610a38612454565b604051610a459190614b6c565b60405180910390f35b348015610a5a57600080fd5b50610a6361253f565b604051610a709190614ba3565b60405180910390f35b348015610a8557600080fd5b50610aa06004803603810190610a9b9190614072565b612545565b604051610aad91906149ca565b60405180910390f35b348015610ac257600080fd5b50610add6004803603810190610ad89190614045565b6125d9565b005b348015610aeb57600080fd5b50610af46126d1565b604051610b0191906149ca565b60405180910390f35b610b246004803603810190610b1f91906142ef565b6126e4565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610b8157506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610bb15750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b610bc0612a54565b73ffffffffffffffffffffffffffffffffffffffff16610bde611cf3565b73ffffffffffffffffffffffffffffffffffffffff1614610c34576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c2b90614b2c565b60405180910390fd5b80601360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b606060028054610c8790614ee8565b80601f0160208091040260200160405190810160405280929190818152602001828054610cb390614ee8565b8015610d005780601f10610cd557610100808354040283529160200191610d00565b820191906000526020600020905b815481529060010190602001808311610ce357829003601f168201915b5050505050905090565b6000610d1582612a5c565b610d4b576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610d9182612abb565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610df9576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610e18612b89565b73ffffffffffffffffffffffffffffffffffffffff1614610e7b57610e4481610e3f612b89565b612545565b610e7a576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600080600080610f636000610f4187612b91565b67ffffffffffffffff16610f5488612bde565b610f5e9190614dd3565b612c35565b9050610f6e85612bde565b610f7786612b91565b828167ffffffffffffffff169150935093509350509193909250565b610f9b612a54565b73ffffffffffffffffffffffffffffffffffffffff16610fb9611cf3565b73ffffffffffffffffffffffffffffffffffffffff161461100f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100690614b2c565b60405180910390fd5b61115c8282905061101e612c4f565b6110289190614ce5565b1115611060576040517fc30436e900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600b5482829050601360149054906101000a900467ffffffffffffffff1667ffffffffffffffff166110929190614ce5565b11156110ca576040517f1ad4e6af00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b8282905081101561111d5761110a8383838181106110ee576110ed615059565b5b90506020020160208101906111039190614045565b6001612c62565b808061111590614f4b565b9150506110cd565b5081819050601360148282829054906101000a900467ffffffffffffffff166111469190614d3b565b92506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505050565b600061117a612c80565b6001546000540303905090565b601360149054906101000a900467ffffffffffffffff1681565b6111ac838383612c89565b505050565b601460129054906101000a900460ff1681565b600f5481565b6111d2612a54565b73ffffffffffffffffffffffffffffffffffffffff166111f0611cf3565b73ffffffffffffffffffffffffffffffffffffffff1614611246576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161123d90614b2c565b60405180910390fd5b601460129054906101000a900460ff1615601460126101000a81548160ff021916908315150217905550565b601460139054906101000a900460ff1681565b61128d612a54565b73ffffffffffffffffffffffffffffffffffffffff166112ab611cf3565b73ffffffffffffffffffffffffffffffffffffffff1614611301576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112f890614b2c565b60405180910390fd5b60026009541415611347576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161133e90614b4c565b60405180910390fd5b600260098190555060004790506000811161138e576040517fc2caa2a600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16826040516113d69061494e565b60006040518083038185875af1925050503d8060008114611413576040519150601f19603f3d011682016040523d82523d6000602084013e611418565b606091505b505090508061145c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161145390614aec565b60405180910390fd5b50506001600981905550565b61148383838360405180602001604052806000815250612208565b505050565b611490612a54565b73ffffffffffffffffffffffffffffffffffffffff166114ae611cf3565b73ffffffffffffffffffffffffffffffffffffffff1614611504576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114fb90614b2c565b60405180910390fd5b61115c8183856115149190614ce5565b61151e9190614ce5565b14611555576040517fba4f801200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b82600a8190555081600c8190555080600b81905550505050565b611577612a54565b73ffffffffffffffffffffffffffffffffffffffff16611595611cf3565b73ffffffffffffffffffffffffffffffffffffffff16146115eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115e290614b2c565b60405180910390fd5b8181601191906115fc929190613c54565b505050565b600061160c82612abb565b9050919050565b600e5481565b61115c81565b601460109054906101000a900460ff16611665576040517f4c013bd700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff16146116d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116ca90614acc565b60405180910390fd5b8060018167ffffffffffffffff161015611719576040517f4ff64a9f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61115c8167ffffffffffffffff1661172f612c4f565b6117399190614ce5565b1115611771576040517fade1cb4100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601460129054906101000a900460ff166117b7576040517fdd4e010600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600c5482601460009054906101000a900467ffffffffffffffff166117dc9190614d3b565b67ffffffffffffffff16111561181e576040517f2cb116bc00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8167ffffffffffffffff16600f546118369190614d79565b34101561186f576040517fa01a9df600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600d546118a2600061188033612b91565b67ffffffffffffffff1661189333612bde565b61189d9190614dd3565b612c35565b8367ffffffffffffffff166118b79190614ce5565b11156118ef576040517f6955d39600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611903338367ffffffffffffffff16612c62565b81601460008282829054906101000a900467ffffffffffffffff166119289190614d3b565b92506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156119ba576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611a13612a54565b73ffffffffffffffffffffffffffffffffffffffff16611a31611cf3565b73ffffffffffffffffffffffffffffffffffffffff1614611a87576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a7e90614b2c565b60405180910390fd5b611a916000613033565b565b611a9b612a54565b73ffffffffffffffffffffffffffffffffffffffff16611ab9611cf3565b73ffffffffffffffffffffffffffffffffffffffff1614611b0f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b0690614b2c565b60405180910390fd5b80600e8190555050565b611b21612a54565b73ffffffffffffffffffffffffffffffffffffffff16611b3f611cf3565b73ffffffffffffffffffffffffffffffffffffffff1614611b95576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b8c90614b2c565b60405180910390fd5b601460119054906101000a900460ff1615601460116101000a81548160ff021916908315150217905550565b611bc9612a54565b73ffffffffffffffffffffffffffffffffffffffff16611be7611cf3565b73ffffffffffffffffffffffffffffffffffffffff1614611c3d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c3490614b2c565b60405180910390fd5b80600d8190555050565b606060108054611c5690614ee8565b80601f0160208091040260200160405190810160405280929190818152602001828054611c8290614ee8565b8015611ccf5780601f10611ca457610100808354040283529160200191611ccf565b820191906000526020600020905b815481529060010190602001808311611cb257829003601f168201915b5050505050905090565b601460089054906101000a900467ffffffffffffffff1681565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611d25613cda565b611d2e826130f9565b9050919050565b601460009054906101000a900467ffffffffffffffff1681565b606060038054611d5e90614ee8565b80601f0160208091040260200160405190810160405280929190818152602001828054611d8a90614ee8565b8015611dd75780601f10611dac57610100808354040283529160200191611dd7565b820191906000526020600020905b815481529060010190602001808311611dba57829003601f168201915b5050505050905090565b611de9612a54565b73ffffffffffffffffffffffffffffffffffffffff16611e07611cf3565b73ffffffffffffffffffffffffffffffffffffffff1614611e5d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e5490614b2c565b60405180910390fd5b601460139054906101000a900460ff1615611ea4576040517f073a11f300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060109080519060200190611eba929190613d1d565b506001601460136101000a81548160ff02191690831515021790555050565b601460119054906101000a900460ff1681565b611ef4612b89565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611f59576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060076000611f66612b89565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16612013612b89565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161205891906149ca565b60405180910390a35050565b600c5481565b612072612a54565b73ffffffffffffffffffffffffffffffffffffffff16612090611cf3565b73ffffffffffffffffffffffffffffffffffffffff16146120e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120dd90614b2c565b60405180910390fd5b61115c8167ffffffffffffffff166120fc612c4f565b6121069190614ce5565b111561213e576040517fc30436e900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600b5481601360149054906101000a900467ffffffffffffffff166121639190614d3b565b67ffffffffffffffff1611156121a5576040517f1ad4e6af00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6121b9828267ffffffffffffffff16612c62565b80601360148282829054906101000a900467ffffffffffffffff166121de9190614d3b565b92506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505050565b612213848484612c89565b60008373ffffffffffffffffffffffffffffffffffffffff163b146122755761223e84848484613119565b612274576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b600a5481565b612289612a54565b73ffffffffffffffffffffffffffffffffffffffff166122a7611cf3565b73ffffffffffffffffffffffffffffffffffffffff16146122fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122f490614b2c565b60405180910390fd5b80600f8190555050565b606061231282612a5c565b612348576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000612352613279565b9050600081511415612373576040518060200160405280600081525061239e565b8061237d8461330b565b60405160200161238e929190614904565b6040516020818303038152906040525b915050919050565b6123ae612a54565b73ffffffffffffffffffffffffffffffffffffffff166123cc611cf3565b73ffffffffffffffffffffffffffffffffffffffff1614612422576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161241990614b2c565b60405180910390fd5b601460109054906101000a900460ff1615601460106101000a81548160ff021916908315150217905550565b600d5481565b61245c613da3565b600060405180610180016040528061115c8152602001600a548152602001600c548152602001600e548152602001600f548152602001600d548152602001601460109054906101000a900460ff1615158152602001601460119054906101000a900460ff1615158152602001601460129054906101000a900460ff16151581526020016124e7611170565b8152602001601460009054906101000a900467ffffffffffffffff1667ffffffffffffffff168152602001601460089054906101000a900467ffffffffffffffff1667ffffffffffffffff1681525090508091505090565b600b5481565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6125e1612a54565b73ffffffffffffffffffffffffffffffffffffffff166125ff611cf3565b73ffffffffffffffffffffffffffffffffffffffff1614612655576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161264c90614b2c565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156126c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126bc90614a8c565b60405180910390fd5b6126ce81613033565b50565b601460109054906101000a900460ff1681565b601460109054906101000a900460ff1661272a576040517f4c013bd700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614612798576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161278f90614acc565b60405180910390fd5b8160018167ffffffffffffffff1610156127de576040517f4ff64a9f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61115c8167ffffffffffffffff166127f4612c4f565b6127fe9190614ce5565b1115612836576040517fade1cb4100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601460119054906101000a900460ff1661287c576040517f9fe9d50600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a5483601460089054906101000a900467ffffffffffffffff166128a19190614d3b565b67ffffffffffffffff1611156128e3576040517fdcb83eb300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8267ffffffffffffffff16600e546128fb9190614d79565b341015612934576040517fa01a9df600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061293f33612b91565b905082848261294e9190614d3b565b67ffffffffffffffff161115612990576040517f78359fc900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6129a361299d3385613365565b8661339d565b6129d9576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6129ed338567ffffffffffffffff16612c62565b612a023385836129fd9190614d3b565b613412565b83601460088282829054906101000a900467ffffffffffffffff16612a279190614d3b565b92506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505050505050565b600033905090565b600081612a67612c80565b11158015612a76575060005482105b8015612ab4575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b60008082905080612aca612c80565b11612b5257600054811015612b515760006004600083815260200190815260200160002054905060007c010000000000000000000000000000000000000000000000000000000082161415612b4f575b6000811415612b45576004600083600190039350838152602001908152602001600020549050612b1a565b8092505050612b84565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b600033905090565b600060c0600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c9050919050565b600067ffffffffffffffff6040600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c169050919050565b600081831015612c455781612c47565b825b905092915050565b6000612c59612c80565b60005403905090565b612c7c8282604051806020016040528060008152506134c8565b5050565b60006001905090565b6000612c9482612abb565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614612cfb576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008473ffffffffffffffffffffffffffffffffffffffff16612d1c612b89565b73ffffffffffffffffffffffffffffffffffffffff161480612d4b5750612d4a85612d45612b89565b612545565b5b80612d905750612d59612b89565b73ffffffffffffffffffffffffffffffffffffffff16612d7884610d0a565b73ffffffffffffffffffffffffffffffffffffffff16145b905080612dc9576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612e30576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612e3d858585600161377d565b6006600084815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154600101919050819055507c020000000000000000000000000000000000000000000000000000000060a042901b612f3a86613783565b1717600460008581526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000083161415612fc4576000600184019050600060046000838152602001908152602001600020541415612fc2576000548114612fc1578260046000838152602001908152602001600020819055505b5b505b828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461302c858585600161378d565b5050505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b613101613cda565b61311261310d83612abb565b613793565b9050919050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261313f612b89565b8786866040518563ffffffff1660e01b8152600401613161949392919061497e565b602060405180830381600087803b15801561317b57600080fd5b505af19250505080156131ac57506040513d601f19601f820116820180604052508101906131a991906142c2565b60015b613226573d80600081146131dc576040519150601f19603f3d011682016040523d82523d6000602084013e6131e1565b606091505b5060008151141561321e576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b60606011805461328890614ee8565b80601f01602080910402602001604051908101604052809291908181526020018280546132b490614ee8565b80156133015780601f106132d657610100808354040283529160200191613301565b820191906000526020600020905b8154815290600101906020018083116132e457829003601f168201915b5050505050905090565b60606080604051019050806040528082600183039250600a81066030018353600a810490505b801561335157600183039250600a81066030018353600a81049050613331565b508181036020830392508083525050919050565b600080838360405160200161337b9291906148d8565b6040516020818303038152906040528051906020012090508091505092915050565b60006133ba826133ac8561382f565b61385f90919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff16601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614905092915050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050600082905060c081901b77ffffffffffffffffffffffffffffffffffffffffffffffff831617915081600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555050505050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415613535576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000831415613570576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61357d600085838661377d565b600160406001901b178302600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555060e16135e260018514613886565b901b60a042901b6135f286613783565b1717600460008381526020019081526020016000208190555060008190506000848201905060008673ffffffffffffffffffffffffffffffffffffffff163b146136f6575b818673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46136a66000878480600101955087613119565b6136dc576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8082106136375782600054146136f157600080fd5b613761565b5b818060010192508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a48082106136f7575b816000819055505050613777600085838661378d565b50505050565b50505050565b6000819050919050565b50505050565b61379b613cda565b81816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff168152505060007c010000000000000000000000000000000000000000000000000000000083161415816040019015159081151581525050919050565b6000816040516020016138429190614928565b604051602081830303815290604052805190602001209050919050565b600080600061386e8585613890565b9150915061387b81613913565b819250505092915050565b6000819050919050565b6000806041835114156138d25760008060006020860151925060408601519150606086015160001a90506138c687828585613ae8565b9450945050505061390c565b6040835114156139035760008060208501519150604085015190506138f8868383613bf5565b93509350505061390c565b60006002915091505b9250929050565b6000600481111561392757613926614ffb565b5b81600481111561393a57613939614ffb565b5b141561394557613ae5565b6001600481111561395957613958614ffb565b5b81600481111561396c5761396b614ffb565b5b14156139ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016139a490614a4c565b60405180910390fd5b600260048111156139c1576139c0614ffb565b5b8160048111156139d4576139d3614ffb565b5b1415613a15576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613a0c90614a6c565b60405180910390fd5b60036004811115613a2957613a28614ffb565b5b816004811115613a3c57613a3b614ffb565b5b1415613a7d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613a7490614aac565b60405180910390fd5b600480811115613a9057613a8f614ffb565b5b816004811115613aa357613aa2614ffb565b5b1415613ae4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613adb90614b0c565b60405180910390fd5b5b50565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c1115613b23576000600391509150613bec565b601b8560ff1614158015613b3b5750601c8560ff1614155b15613b4d576000600491509150613bec565b600060018787878760405160008152602001604052604051613b7294939291906149e5565b6020604051602081039080840390855afa158015613b94573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415613be357600060019250925050613bec565b80600092509250505b94509492505050565b60008060007f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60001b841690506000601b60ff8660001c901c613c389190614ce5565b9050613c4687828885613ae8565b935093505050935093915050565b828054613c6090614ee8565b90600052602060002090601f016020900481019282613c825760008555613cc9565b82601f10613c9b57803560ff1916838001178555613cc9565b82800160010185558215613cc9579182015b82811115613cc8578235825591602001919060010190613cad565b5b509050613cd69190613e1e565b5090565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681526020016000151581525090565b828054613d2990614ee8565b90600052602060002090601f016020900481019282613d4b5760008555613d92565b82601f10613d6457805160ff1916838001178555613d92565b82800160010185558215613d92579182015b82811115613d91578251825591602001919060010190613d76565b5b509050613d9f9190613e1e565b5090565b60405180610180016040528060008152602001600081526020016000815260200160008152602001600081526020016000815260200160001515815260200160001515815260200160001515815260200160008152602001600067ffffffffffffffff168152602001600067ffffffffffffffff1681525090565b5b80821115613e37576000816000905550600101613e1f565b5090565b6000613e4e613e4984614c35565b614c10565b905082815260208101848484011115613e6a57613e696150c6565b5b613e75848285614ea6565b509392505050565b6000613e90613e8b84614c66565b614c10565b905082815260208101848484011115613eac57613eab6150c6565b5b613eb7848285614ea6565b509392505050565b600081359050613ece81615302565b92915050565b60008083601f840112613eea57613ee96150bc565b5b8235905067ffffffffffffffff811115613f0757613f066150b7565b5b602083019150836020820283011115613f2357613f226150c1565b5b9250929050565b600081359050613f3981615319565b92915050565b600081359050613f4e81615330565b92915050565b600081519050613f6381615330565b92915050565b600082601f830112613f7e57613f7d6150bc565b5b8135613f8e848260208601613e3b565b91505092915050565b60008083601f840112613fad57613fac6150bc565b5b8235905067ffffffffffffffff811115613fca57613fc96150b7565b5b602083019150836001820283011115613fe657613fe56150c1565b5b9250929050565b600082601f830112614002576140016150bc565b5b8135614012848260208601613e7d565b91505092915050565b60008135905061402a81615347565b92915050565b60008135905061403f8161535e565b92915050565b60006020828403121561405b5761405a6150d0565b5b600061406984828501613ebf565b91505092915050565b60008060408385031215614089576140886150d0565b5b600061409785828601613ebf565b92505060206140a885828601613ebf565b9150509250929050565b6000806000606084860312156140cb576140ca6150d0565b5b60006140d986828701613ebf565b93505060206140ea86828701613ebf565b92505060406140fb8682870161401b565b9150509250925092565b6000806000806080858703121561411f5761411e6150d0565b5b600061412d87828801613ebf565b945050602061413e87828801613ebf565b935050604061414f8782880161401b565b925050606085013567ffffffffffffffff8111156141705761416f6150cb565b5b61417c87828801613f69565b91505092959194509250565b6000806040838503121561419f5761419e6150d0565b5b60006141ad85828601613ebf565b92505060206141be85828601613f2a565b9150509250929050565b600080604083850312156141df576141de6150d0565b5b60006141ed85828601613ebf565b92505060206141fe8582860161401b565b9150509250929050565b6000806040838503121561421f5761421e6150d0565b5b600061422d85828601613ebf565b925050602061423e85828601614030565b9150509250929050565b6000806020838503121561425f5761425e6150d0565b5b600083013567ffffffffffffffff81111561427d5761427c6150cb565b5b61428985828601613ed4565b92509250509250929050565b6000602082840312156142ab576142aa6150d0565b5b60006142b984828501613f3f565b91505092915050565b6000602082840312156142d8576142d76150d0565b5b60006142e684828501613f54565b91505092915050565b600080600060608486031215614308576143076150d0565b5b600084013567ffffffffffffffff811115614326576143256150cb565b5b61433286828701613f69565b935050602061434386828701614030565b92505060406143548682870161401b565b9150509250925092565b60008060208385031215614375576143746150d0565b5b600083013567ffffffffffffffff811115614393576143926150cb565b5b61439f85828601613f97565b92509250509250929050565b6000602082840312156143c1576143c06150d0565b5b600082013567ffffffffffffffff8111156143df576143de6150cb565b5b6143eb84828501613fed565b91505092915050565b60006020828403121561440a576144096150d0565b5b60006144188482850161401b565b91505092915050565b60008060006060848603121561443a576144396150d0565b5b60006144488682870161401b565b93505060206144598682870161401b565b925050604061446a8682870161401b565b9150509250925092565b60006020828403121561448a576144896150d0565b5b600061449884828501614030565b91505092915050565b6144aa81614e07565b82525050565b6144b981614e07565b82525050565b6144d06144cb82614e07565b614f94565b82525050565b6144df81614e19565b82525050565b6144ee81614e19565b82525050565b6144fd81614e25565b82525050565b61451461450f82614e25565b614fa6565b82525050565b600061452582614c97565b61452f8185614cad565b935061453f818560208601614eb5565b614548816150d5565b840191505092915050565b600061455e82614ca2565b6145688185614cc9565b9350614578818560208601614eb5565b614581816150d5565b840191505092915050565b600061459782614ca2565b6145a18185614cda565b93506145b1818560208601614eb5565b80840191505092915050565b60006145ca601883614cc9565b91506145d5826150f3565b602082019050919050565b60006145ed601f83614cc9565b91506145f88261511c565b602082019050919050565b6000614610601c83614cda565b915061461b82615145565b601c82019050919050565b6000614633602683614cc9565b915061463e8261516e565b604082019050919050565b6000614656602283614cc9565b9150614661826151bd565b604082019050919050565b6000614679601e83614cc9565b91506146848261520c565b602082019050919050565b600061469c600d83614cc9565b91506146a782615235565b602082019050919050565b60006146bf602283614cc9565b91506146ca8261525e565b604082019050919050565b60006146e2602083614cc9565b91506146ed826152ad565b602082019050919050565b6000614705600083614cbe565b9150614710826152d6565b600082019050919050565b6000614728601f83614cc9565b9150614733826152d9565b602082019050919050565b610180820160008201516147556000850182614876565b5060208201516147686020850182614876565b50604082015161477b6040850182614876565b50606082015161478e6060850182614876565b5060808201516147a16080850182614876565b5060a08201516147b460a0850182614876565b5060c08201516147c760c08501826144d6565b5060e08201516147da60e08501826144d6565b506101008201516147ef6101008501826144d6565b50610120820151614804610120850182614876565b506101408201516148196101408501826148ab565b5061016082015161482e6101608501826148ab565b50505050565b60608201600082015161484a60008501826144a1565b50602082015161485d60208501826148ab565b50604082015161487060408501826144d6565b50505050565b61487f81614e7b565b82525050565b61488e81614e7b565b82525050565b6148a56148a082614e7b565b614fc2565b82525050565b6148b481614e85565b82525050565b6148c381614e85565b82525050565b6148d281614e99565b82525050565b60006148e482856144bf565b6014820191506148f48284614894565b6020820191508190509392505050565b6000614910828561458c565b915061491c828461458c565b91508190509392505050565b600061493382614603565b915061493f8284614503565b60208201915081905092915050565b6000614959826146f8565b9150819050919050565b600060208201905061497860008301846144b0565b92915050565b600060808201905061499360008301876144b0565b6149a060208301866144b0565b6149ad6040830185614885565b81810360608301526149bf818461451a565b905095945050505050565b60006020820190506149df60008301846144e5565b92915050565b60006080820190506149fa60008301876144f4565b614a0760208301866148c9565b614a1460408301856144f4565b614a2160608301846144f4565b95945050505050565b60006020820190508181036000830152614a448184614553565b905092915050565b60006020820190508181036000830152614a65816145bd565b9050919050565b60006020820190508181036000830152614a85816145e0565b9050919050565b60006020820190508181036000830152614aa581614626565b9050919050565b60006020820190508181036000830152614ac581614649565b9050919050565b60006020820190508181036000830152614ae58161466c565b9050919050565b60006020820190508181036000830152614b058161468f565b9050919050565b60006020820190508181036000830152614b25816146b2565b9050919050565b60006020820190508181036000830152614b45816146d5565b9050919050565b60006020820190508181036000830152614b658161471b565b9050919050565b600061018082019050614b82600083018461473e565b92915050565b6000606082019050614b9d6000830184614834565b92915050565b6000602082019050614bb86000830184614885565b92915050565b6000606082019050614bd36000830186614885565b614be06020830185614885565b614bed6040830184614885565b949350505050565b6000602082019050614c0a60008301846148ba565b92915050565b6000614c1a614c2b565b9050614c268282614f1a565b919050565b6000604051905090565b600067ffffffffffffffff821115614c5057614c4f615088565b5b614c59826150d5565b9050602081019050919050565b600067ffffffffffffffff821115614c8157614c80615088565b5b614c8a826150d5565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000614cf082614e7b565b9150614cfb83614e7b565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614d3057614d2f614fcc565b5b828201905092915050565b6000614d4682614e85565b9150614d5183614e85565b92508267ffffffffffffffff03821115614d6e57614d6d614fcc565b5b828201905092915050565b6000614d8482614e7b565b9150614d8f83614e7b565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614dc857614dc7614fcc565b5b828202905092915050565b6000614dde82614e7b565b9150614de983614e7b565b925082821015614dfc57614dfb614fcc565b5b828203905092915050565b6000614e1282614e5b565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600067ffffffffffffffff82169050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b83811015614ed3578082015181840152602081019050614eb8565b83811115614ee2576000848401525b50505050565b60006002820490506001821680614f0057607f821691505b60208210811415614f1457614f1361502a565b5b50919050565b614f23826150d5565b810181811067ffffffffffffffff82111715614f4257614f41615088565b5b80604052505050565b6000614f5682614e7b565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614f8957614f88614fcc565b5b600182019050919050565b6000614f9f82614fb0565b9050919050565b6000819050919050565b6000614fbb826150e6565b9050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f5468652063616c6c657220697320616e6f7468657220636f6e74726163740000600082015250565b7f5452414e534645525f4641494c00000000000000000000000000000000000000600082015250565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b50565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b61530b81614e07565b811461531657600080fd5b50565b61532281614e19565b811461532d57600080fd5b50565b61533981614e2f565b811461534457600080fd5b50565b61535081614e7b565b811461535b57600080fd5b50565b61536781614e85565b811461537257600080fd5b5056fea2646970667358221220cd86393bcd1574764472adc643cb44229a3f6b7746ba36c0d3c288134adcb1a664736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000002d36b3318d49455f6182d054694832c76d9f21c4000000000000000000000000e3b4e7c041627b1726d8167673b38c9ba07de43600000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d61375357716f7270667a454b43355432457a585765415a78354837444c6b48756673734c5375587a644248552f00000000000000000000
-----Decoded View---------------
Arg [0] : safeAddr (address): 0x2D36b3318D49455f6182d054694832c76D9F21C4
Arg [1] : signerAddr (address): 0xE3b4E7C041627B1726D8167673b38C9Ba07dE436
Arg [2] : unrevealed (string): ipfs://Qma7SWqorpfzEKC5T2EzXWeAZx5H7DLkHufssLSuXzdBHU/
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000002d36b3318d49455f6182d054694832c76d9f21c4
Arg [1] : 000000000000000000000000e3b4e7c041627b1726d8167673b38c9ba07de436
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [4] : 697066733a2f2f516d61375357716f7270667a454b43355432457a585765415a
Arg [5] : 78354837444c6b48756673734c5375587a644248552f00000000000000000000
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.