ERC-721
Overview
Max Total Supply
388 cub
Holders
140
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 cubLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
TmiNFT
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 999999 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: Unlicense pragma solidity ^0.8.2; /* .::::... .. .:..:::===+*****++==--::. .......--:=-.:==-==:====+****+++++*###*-. .::-===---+===--=*+++:====+****++++++*#####+: ..:-:-=+*++=======-+****-====*****++++++#**###*+=:. ..::-==+++**=====-==+*##+-===+*****+++++*%%+=+=--=====- ....:-=++==++**==----=**##+-===+*****+++++%%%%+=====---=*#+: ..:::----=+*+++=====-=+=+*#%*-++*##***++++++%%%%%+=====---+*+=-: .:--========++*++++=====++=*###=***####*******%%%%%%+=========---===. :-=++++++++*****++**+===+****%##=***#######***#%%%%%##*====-======+*#%+ .:-=====++++******+++****+*##%%%%#=***##########%%%%%%###*=+============++: .-=++++++++**+++=+*##*##%####%##%%*=***######%%%%%%%%%%**++++===-========+*** .-=++++++*****#**++++*%%%%%%##%%###=-*###########%%%%%%*=========++++++==-=*#%- .-=++*+*++****#*+++**##%%%%%%%#%###+=-#############%%%%%+========+#++++++++===*# :-+++++++++++*****++**#%%###****+=++=-#####***####%%####----=====*#+**#######*-== .:==++==+==++********###*==--:--=======#####*****#%%%*+++=-------=*++++++**###*--+. .--========++*****###***+=-------==-==-#####******%%%=:++++=-------=++++++++**=-=%- ..::----====+++***#####*++===-------===-####*++++++*%%:..=++++=------=+*##%%%%=--#%- :--===+++++*****##%%%##%##**+++===++==+*+=####++++++*+*#....:+++++=--=*%%%%%%%%*--*%%= :###%%%%%%%%%%%%@%%%@@@@@@%%%##%%#%%%##%%#=####*+=-:*##=-......=+++++=--=+#%%%%%+%%%%%+ :###%%%%%%%%%%%%%%%@@@@@@%%%#%%%%%%%##%%%#=#####*:::-*-:--:.....-++++##+--=#%%%+=%@#%%* :##%%%%%%%%%%%%%%@@@@@@@%%%%%%@@@%%%%%%%%*=******-:::::=*%%#+=-::++++*%%%*=**##==*%#%%# :##%%%%#####%%%@@@@@@@@%%%%@@@@%@@@%%%%%%*=*+++++=::::*%%**%%*##****+*%%%%%#**+==+###%# -#%%%%####%%%%%@@@@@@@@@%%%%%#%%%@@%##%%#*=#+=====:::-@@%#*+. ##*#%%#%%%%%%%*+===##*%* :#%%#####%%%%%%%@@@@@@@@%%#%@%%%##%%%%%%#*=##+-===--=+*+ .:=+##*+%%%%%%#%%%%*+===##*%+ -###########%%%%%@@@@@@@%%#%%%%#####%%###*=###==+++++****#%%%%#*++%%%%##:-#%%*+=+#%%##*===========. ..::::::--=----====-----=+--=++==--==-::::##*+++++=+***+++++::::+%%#=*-...+%#*+++*%#*%###########. ..::::--===:.........+*+==-=++*====--::::###*======++++===-....=%*--=:....-**+++++**=::::::::::: ..::::--===*=......:#%#+-=-=++=-==-------####*====--======:...-*%=--=%-....**+++++*# ...:::::--=+*-...-%%%*+=-=-+=-=---=-----*####*=:...:-----:.---+#---=%%+..-%%*++++#- ...:::--:::-*+:=%%#+**+==-:--=-=-:-===-+===*##:....:-----+*--=*--=*%%%*:*%%++++*# ..::::.:::---+###+==%#*+-------:-:--==-+===+##+:...:---=***=--=--*#%%%%*%%%++++#- ..:.:..::----===*===+#%#*=---::.=-:-==-:==+******+=====-=**+====--=*%%%%:#%#++++# .::..::--==========+#####=:--:.=##@@%*-+-+#%###**===---=*+==+*+---=#%%=.+%#++++- ..:.::-============+#*#*%-:-=-::=**%#--*@%***++-------===+##+-----*%#..-%#+++*- .::::---==========##%#*#-::::-:....==##+=-+=--===++**=-*##=-----=##+=-:#*+++%. ..:::-:::-=======+##%###-:::-:--:..:-#=---=====+++***==##*+=---=*#***+====+#% :-::::::-+*====+#####**+::::..:.....======-====+++*+-+*=======+#***+=====+@* ::.-:::-++**++=*##***+=+=--:.... .:-*======++++++**+-+===+*****#**+======%@= :.:-:=###*#%###***+++##+---:::-+*+**+===++**###%%%#==+*++*******======#@@. .--+**%##%###**+++**#######+=-=--+++++++++++*%@%#==****+++++**======+@@= .-++#%%#%#********+**#*:. ...-------==++++*#=-+##***++++##*=====%@# .-:+=*%%%%%#%####+**++*+=. .. .....::--==+*##=-=%%%=++**+*###@*==#@@. . .::=++#%@@%##***+*+++*++---:..:.......:--+*##*+-=#%%+=++*######@@%*@@= .:+*%@#%#%##*****+++++*++-+=-:=+*++++++++++==*%%%:+++++####%@@@:*# .::+*#%%%%%@%%#***+==+***####*#+=+++%*+++++*====#%%#+*++===+*#@@@* .. ..===#**##*%%%%###**###*###*****+-++++%%*++*%+===#%%%%%++=====#@@@: -==*#%%@@%%#%%%%%%%%%###*++*+-+++**%%#*#%*===#%%%%% ***===@@@* ::+%@#@%@@@@@@@@@@@@@@%%%%#%%*=-++++##%%*%%#===*%%%%*.####+*@@@. ..+*#@@%%#%@#@@@@@@@@@@@@@@%%%%*-:-=+*##%%%%%*==*@%%%- +###*:@@* .: :=-=+++:+*@#@@%@@@@@@@@@@@@@#+%+::=*#%@%%%%#=*@@@#: +#*. =@. .: . :.=+ +@%%@@#*%@@*%@@@@#+%%%*--##@@%%%@#*@@+.. +. - . +::. :-*-##%#*#*#%#%@@@@#+%%%%%##%%@@%%@@@#=: . .: :. =*##****#%#@@@##+#%%%@@@@%%@@%%@*- :*%= *=:= =+#*##+%*==+#%@@@@@@%@@%-. ..:...... .+=@%@##-+. .:=#+#@@@@* :**#%=*: - - = :*%- *-.# ++ . -.:# +#.:... = *::#::: := .* : --= .+-= . : */ import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "./ERC721A.sol"; contract TmiNFT is Ownable, ERC721A, ReentrancyGuard { using ECDSA for bytes32; using Strings for uint256; address private payoutAddress; address public signerAddress; // // metadata URI string public notRevealedUri; string private _baseTokenURI; uint256 public revealTokenId = 0; uint256 public collectionSize; uint256 public maxBatchSize; uint256 public currentSaleIndex; enum SaleStage { Whitelist, Public } struct SaleConfig { uint32 startTime; uint32 endTime; uint64 price; SaleStage stage; } SaleConfig[] public saleConfigs; mapping(string => bool) public ticketUsed; constructor(address _signerAddress) ERC721A("Gioia Pan x Too Much Information Lion", "cub") { collectionSize = 588; maxBatchSize = 1; payoutAddress = 0x3cCF4DBB56aFE01909f3B4Bda2785d74204a8D52; signerAddress = _signerAddress; currentSaleIndex = 0; SaleConfig memory whitelistSaleConfig = SaleConfig({ startTime: 1648951200, endTime: 1648962000, price: 0.5 ether, stage: SaleStage.Whitelist }); SaleConfig memory publicSaleConfig = SaleConfig({ startTime: 1648962000, endTime: 1649001600, price: 0.5 ether, stage: SaleStage.Public }); saleConfigs.push(whitelistSaleConfig); saleConfigs.push(publicSaleConfig); } modifier callerIsUser() { require(tx.origin == msg.sender, "The caller is another contract"); _; } modifier checkMintConstraint(uint256 quantity) { SaleConfig memory config = saleConfigs[currentSaleIndex]; uint256 price = uint256(config.price); require(quantity <= maxBatchSize, "Exceed mint quantity limit."); require( totalSupply() + quantity <= collectionSize, "reached max supply" ); require(msg.value >= price * quantity, "Need to send more ETH."); _; } function whitelistMint( uint256 quantity, string memory _ticket, bytes memory _signature ) external payable callerIsUser checkMintConstraint(quantity) { proceedSaleStageIfNeed(); require(isSaleStageOn(SaleStage.Whitelist), "sale has not started yet"); require(!ticketUsed[_ticket], "Ticket has already been used"); require( isAuthorized(msg.sender, _ticket, _signature, signerAddress), "Ticket is invalid" ); ticketUsed[_ticket] = true; _safeMint(msg.sender, quantity); } function mint(uint256 quantity) external payable callerIsUser checkMintConstraint(quantity) { proceedSaleStageIfNeed(); require(isSaleStageOn(SaleStage.Public), "sale has not started yet"); _safeMint(msg.sender, quantity); } function proceedSaleStageIfNeed() private { while (saleConfigs.length > currentSaleIndex + 1) { SaleConfig memory config = saleConfigs[currentSaleIndex]; uint256 nextStageSaleEndTime = uint256(config.endTime); if (block.timestamp >= nextStageSaleEndTime) { currentSaleIndex += 1; } else { return; } } } function checkEnoughPrice(uint256 price) private { require(msg.value >= price, "Need to send more ETH."); } function isSaleStageOn(SaleStage _stage) private view returns (bool) { if (saleConfigs.length <= currentSaleIndex) { return false; } SaleConfig memory config = saleConfigs[currentSaleIndex]; uint256 stagePrice = uint256(config.price); uint256 stageSaleStartTime = uint256(config.startTime); SaleStage currentStage = config.stage; return stagePrice != 0 && currentStage == _stage && block.timestamp >= stageSaleStartTime; } function setSaleConfig( uint256 _saleIndex, uint32 _startTime, uint32 _endTime, uint64 _price, SaleStage _stage ) external onlyOwner { SaleConfig memory config = SaleConfig({ startTime: _startTime, endTime: _endTime, price: _price, stage: _stage }); if (_saleIndex >= saleConfigs.length) { saleConfigs.push(config); } else { saleConfigs[_saleIndex] = config; } } function setCurrentSaleIndex(uint256 _currentSaleIndex) external onlyOwner { currentSaleIndex = _currentSaleIndex; } function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "URI query for nonexistent token"); if (tokenId >= revealTokenId) { return notRevealedUri; } string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } function _baseURI() internal view virtual override returns (string memory) { return _baseTokenURI; } function setBaseURI(string calldata baseURI) external onlyOwner { _baseTokenURI = baseURI; } function setRevealTokenId(uint256 _revealTokenId) external onlyOwner { revealTokenId = _revealTokenId; } function setNotRevealedUri(string calldata _notRevealedUri) external onlyOwner { notRevealedUri = _notRevealedUri; } function withdraw() external onlyOwner nonReentrant { (bool success, ) = payable(payoutAddress).call{ value: address(this).balance }(""); require(success, "Transfer failed."); } function numberMinted(address owner) public view returns (uint256) { return _numberMinted(owner); } function getOwnershipData(uint256 tokenId) external view returns (TokenOwnership memory) { return ownershipOf(tokenId); } function mintForAirdrop(address _to, uint256 _mintAmount) external onlyOwner { uint256 supply = totalSupply(); require(supply + _mintAmount <= collectionSize, "Exceed max supply"); _safeMint(_to, _mintAmount); } function mintForAirdrop(address[] memory _to, uint256 _mintAmount) external onlyOwner { uint256 supply = totalSupply(); require( supply + _to.length * _mintAmount <= collectionSize, "Exceed max supply" ); for (uint256 i = 0; i < _to.length; i++) { _safeMint(_to[i], _mintAmount); } } function setMaxBatchSize(uint256 _newMaxBatchSize) external onlyOwner { maxBatchSize = _newMaxBatchSize; } function setCollectionSize(uint256 _newCollectionSize) external onlyOwner { collectionSize = _newCollectionSize; } function isTicketAvailable(string memory ticket, bytes memory signature) external view returns (bool) { return !ticketUsed[ticket] && isAuthorized(msg.sender, ticket, signature, signerAddress); } function isAuthorized( address sender, string memory ticket, bytes memory signature, address _signerAddress ) private pure returns (bool) { bytes32 hash = keccak256(abi.encodePacked(sender, ticket)); bytes32 signedHash = keccak256( abi.encodePacked("\x19Ethereum Signed Message:\n32", hash) ); return _signerAddress == signedHash.recover(signature); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (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 // 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 v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.2; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..). * * Assumes the number of issuable tokens (collection size) is capped and fits in a uint128. * * Does not support burning tokens to address(0). */ contract ERC721A is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable { using Address for address; using Strings for uint256; struct TokenOwnership { address addr; uint64 startTimestamp; bool burned; } struct AddressData { uint64 balance; uint64 numberMinted; uint64 numberBurned; } uint256 private _currentIndex; uint128 internal _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 ownershipOf implementation for details. mapping(uint256 => TokenOwnership) private _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. * `maxBatchSize` refers to how much a minter can mint at a time. * `collectionSize_` refers to how many tokens are in the collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = 1; _burnCounter = 0; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than _currentIndex times unchecked { return _currentIndex - _burnCounter - 1; } } /** * @dev See {IERC721Enumerable-tokenByIndex}. * This read function is O(totalSupply). If calling from a separate contract, be sure to test gas first. * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case. */ function tokenByIndex(uint256 index) public view override returns (uint256) { uint256 numMintedSoFar = _currentIndex - 1; uint256 tokenIdsIdx = 1; // Counter overflow is impossible as the loop breaks when // uint256 i is equal to another uint256 numMintedSoFar. unchecked { for (uint256 i = 1; i < numMintedSoFar; i++) { TokenOwnership memory ownership = _ownerships[i]; if (!ownership.burned) { if (tokenIdsIdx == index) { return i; } tokenIdsIdx++; } } } revert("token of owner out of index"); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. * This read function is O(totalSupply). If calling from a separate contract, be sure to test gas first. * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) { require(index < balanceOf(owner), "owner index out of bounds"); uint256 numMintedSoFar = _currentIndex - 1; uint256 tokenIdsIdx = 1; address currOwnershipAddr; // Counter overflow is impossible as the loop breaks when // uint256 i is equal to another uint256 numMintedSoFar. unchecked { for (uint256 i = 1; i < numMintedSoFar; i++) { TokenOwnership memory ownership = _ownerships[i]; if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { if (tokenIdsIdx == index) { return i; } tokenIdsIdx++; } } } // Execution should never reach this point. revert("token of owner out of index"); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { require(owner != address(0), "balance query for the 0 address"); return uint256(_addressData[owner].balance); } function _numberMinted(address owner) internal view returns (uint256) { require(owner != address(0), "minted query for 0 address"); return uint256(_addressData[owner].numberMinted); } function _numberBurned(address owner) internal view returns (uint256) { require(owner != address(0), "burned query for 0 address"); return uint256(_addressData[owner].numberBurned); } /** * 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) { uint256 curr = tokenId; unchecked { if (curr < _currentIndex && tokenId > 0) { TokenOwnership memory ownership = _ownerships[curr]; if (!ownership.burned) { if (ownership.addr != address(0)) { return ownership; } // 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. while (true) { curr--; ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } } } } revert("unable to determine the owner"); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return ownershipOf(tokenId).addr; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @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 See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ERC721A.ownerOf(tokenId); require(to != owner, "approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "approve caller not owner/approved" ); _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { require(_exists(tokenId), "approved query for nonexistent"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public override { require(operator != _msgSender(), "ERC721A: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public 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); require( _checkOnERC721Received(from, to, tokenId, _data), "transfer to non ERC721Receiver" ); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return tokenId > 0 && tokenId < _currentIndex && !_ownerships[tokenId].burned; } 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 { _mint(to, quantity, _data, true); } /** * @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, bytes memory _data, bool safe ) internal { uint256 startTokenId = _currentIndex; require(to != address(0), "mint to the zero address"); require(quantity != 0, "quantity must be > than 0"); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 3.4e38 (2**128) - 1 // updatedIndex overflows if _currentIndex + quantity > 3.4e38 (2**128) - 1 unchecked { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; for (uint256 i; i < quantity; i++) { emit Transfer(address(0), to, updatedIndex); if (safe) { require( _checkOnERC721Received( address(0), to, updatedIndex, _data ), "transfer to non ERC721Receiver" ); } updatedIndex++; } _currentIndex = uint128(updatedIndex); } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) private { TokenOwnership memory prevOwnership = ownershipOf(tokenId); bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr || isApprovedForAll(prevOwnership.addr, _msgSender()) || getApproved(tokenId) == _msgSender()); require(isApprovedOrOwner, "transfer isn't owner/approved"); require(prevOwnership.addr == from, "transfer from incorrect owner"); require(to != address(0), "ERC721A: transfer to the zero address"); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership.addr); // 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**128. unchecked { _addressData[from].balance -= 1; _addressData[to].balance += 1; _ownerships[tokenId].addr = to; _ownerships[tokenId].startTimestamp = uint64(block.timestamp); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; if (_ownerships[nextTokenId].addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId < _currentIndex) { _ownerships[nextTokenId].addr = prevOwnership.addr; _ownerships[nextTokenId].startTimestamp = prevOwnership .startTimestamp; } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { TokenOwnership memory prevOwnership = ownershipOf(tokenId); _beforeTokenTransfers(prevOwnership.addr, address(0), tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership.addr); // 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**128. unchecked { _addressData[prevOwnership.addr].balance -= 1; _addressData[prevOwnership.addr].numberBurned += 1; // Keep track of who burned the token, and the timestamp of burning. _ownerships[tokenId].addr = prevOwnership.addr; _ownerships[tokenId].startTimestamp = uint64(block.timestamp); _ownerships[tokenId].burned = true; // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; if (_ownerships[nextTokenId].addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId < _currentIndex) { _ownerships[nextTokenId].addr = prevOwnership.addr; _ownerships[nextTokenId].startTimestamp = prevOwnership .startTimestamp; } } } emit Transfer(prevOwnership.addr, address(0), tokenId); _afterTokenTransfers(prevOwnership.addr, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received( _msgSender(), from, tokenId, _data ) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("transfer to non ERC721Receiver"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * 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 {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // 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 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, 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 Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @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 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); /** * @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; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 999999 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_signerAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"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":[{"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":[],"name":"collectionSize","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentSaleIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"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 ERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"ticket","type":"string"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"isTicketAvailable","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxBatchSize","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"mintForAirdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_to","type":"address[]"},{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"mintForAirdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"notRevealedUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"numberMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealTokenId","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":"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":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"saleConfigs","outputs":[{"internalType":"uint32","name":"startTime","type":"uint32"},{"internalType":"uint32","name":"endTime","type":"uint32"},{"internalType":"uint64","name":"price","type":"uint64"},{"internalType":"enum TmiNFT.SaleStage","name":"stage","type":"uint8"}],"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":"uint256","name":"_newCollectionSize","type":"uint256"}],"name":"setCollectionSize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_currentSaleIndex","type":"uint256"}],"name":"setCurrentSaleIndex","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newMaxBatchSize","type":"uint256"}],"name":"setMaxBatchSize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_notRevealedUri","type":"string"}],"name":"setNotRevealedUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_revealTokenId","type":"uint256"}],"name":"setRevealTokenId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_saleIndex","type":"uint256"},{"internalType":"uint32","name":"_startTime","type":"uint32"},{"internalType":"uint32","name":"_endTime","type":"uint32"},{"internalType":"uint64","name":"_price","type":"uint64"},{"internalType":"enum TmiNFT.SaleStage","name":"_stage","type":"uint8"}],"name":"setSaleConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signerAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"ticketUsed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"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":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"string","name":"_ticket","type":"string"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526000600e553480156200001657600080fd5b5060405162004e6438038062004e648339810160408190526200003991620003e7565b60405180606001604052806025815260200162004e1f6025913960408051808201909152600381526231bab160e91b60208201526200007833620002f1565b81516200008d90600390602085019062000341565b508051620000a390600490602084019062000341565b50506001808055600280546001600160801b0319169055600981905561024c600f556010819055600a8054733ccf4dbb56afe01909f3b4bda2785d74204a8d526001600160a01b031991821617909155600b80549091166001600160a01b038516179055600060118190556040805160808082018352636248ffa0825263624929d060208084018281526706f05b59d3b2000085870181815260608088018a815289519788018a52958752636249c48094870194909452968501529083018790526012805480890182559652835160008051602062004e448339815191529096018054915195516001600160401b03166801000000000000000002600160401b600160801b031963ffffffff978816640100000000026001600160401b0319909416979098169690961791909117958616851781559051929650909486949193849260ff60801b19909116600160401b600160881b03199091161790600160801b90849081111562000219576200021962000456565b0217905550506012805460018181018355600092909252835160008051602062004e448339815191529091018054602086015160408701516001600160401b03166801000000000000000002600160401b600160801b031963ffffffff928316640100000000026001600160401b031990941692909516919091179190911792831681178255606086015186955091939192849260ff60801b19909216600160401b600160881b03199091161790600160801b908490811115620002e157620002e162000456565b021790555050505050506200046c565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b8280546200034f9062000419565b90600052602060002090601f016020900481019282620003735760008555620003be565b82601f106200038e57805160ff1916838001178555620003be565b82800160010185558215620003be579182015b82811115620003be578251825591602001919060010190620003a1565b50620003cc929150620003d0565b5090565b5b80821115620003cc5760008155600101620003d1565b600060208284031215620003fa57600080fd5b81516001600160a01b03811681146200041257600080fd5b9392505050565b600181811c908216806200042e57607f821691505b602082108114156200045057634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052602160045260246000fd5b6149a3806200047c6000396000f3fe6080604052600436106102d15760003560e01c80636f8aa04111610179578063a85b9905116100d6578063c17ecd121161008a578063dc33e68111610064578063dc33e68114610847578063e985e9c514610867578063f2fde38b146108bd57600080fd5b8063c17ecd12146107e7578063c87b56dd14610807578063d7d339701461082757600080fd5b8063b88d4fde116100bb578063b88d4fde1461079e578063baa5b6c5146107be578063bd14c3d0146107d157600080fd5b8063a85b99051461075e578063aca8ffe71461077e57600080fd5b80638da5cb5b1161012d57806395d89b411161011257806395d89b4114610716578063a0712d681461072b578063a22cb4651461073e57600080fd5b80638da5cb5b146106875780639231ab2a146106b257600080fd5b8063715018a61161015e578063715018a61461061757806378dc745e1461062c57806384d8abf01461066757600080fd5b80636f8aa041146105d757806370a08231146105f757600080fd5b80632f745c591161023257806348b05c1c116101e657806356b93854116101c057806356b938541461056a5780635b7633d01461058a5780636352211e146105b757600080fd5b806348b05c1c146104fa5780634f6ccce71461052a57806355f804b31461054a57600080fd5b80633ccfd60b116102175780633ccfd60b146104af57806342842e0e146104c457806345c0f533146104e457600080fd5b80632f745c591461046f578063308d30a01461048f57600080fd5b806318160ddd116102895780632913daa01161026e5780632913daa0146104235780632a3a1925146104395780632b26a6bf1461044f57600080fd5b806318160ddd146103a957806323b872dd1461040357600080fd5b8063081812fc116102ba578063081812fc1461032d578063081c8c4414610372578063095ea7b31461038757600080fd5b806301ffc9a7146102d657806306fdde031461030b575b600080fd5b3480156102e257600080fd5b506102f66102f13660046142db565b6108dd565b60405190151581526020015b60405180910390f35b34801561031757600080fd5b50610320610a0e565b604051610302919061463a565b34801561033957600080fd5b5061034d610348366004614420565b610aa0565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610302565b34801561037e57600080fd5b50610320610b3f565b34801561039357600080fd5b506103a76103a23660046141f7565b610bcd565b005b3480156103b557600080fd5b506002546001546fffffffffffffffffffffffffffffffff90911690037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff015b604051908152602001610302565b34801561040f57600080fd5b506103a761041e366004614117565b610d35565b34801561042f57600080fd5b506103f560105481565b34801561044557600080fd5b506103f5600e5481565b34801561045b57600080fd5b506103a761046a366004614420565b610d40565b34801561047b57600080fd5b506103f561048a3660046141f7565b610dc6565b34801561049b57600080fd5b506103a76104aa3660046141f7565b610fce565b3480156104bb57600080fd5b506103a7611110565b3480156104d057600080fd5b506103a76104df366004614117565b6112d5565b3480156104f057600080fd5b506103f5600f5481565b34801561050657600080fd5b5061051a610515366004614420565b6112f0565b604051610302949392919061464d565b34801561053657600080fd5b506103f5610545366004614420565b611351565b34801561055657600080fd5b506103a7610565366004614315565b611420565b34801561057657600080fd5b506102f66105853660046143bc565b6114ad565b34801561059657600080fd5b50600b5461034d9073ffffffffffffffffffffffffffffffffffffffff1681565b3480156105c357600080fd5b5061034d6105d2366004614420565b611509565b3480156105e357600080fd5b506103a76105f2366004614221565b61151b565b34801561060357600080fd5b506103f56106123660046140c9565b6116a6565b34801561062357600080fd5b506103a7611758565b34801561063857600080fd5b506102f6610647366004614387565b805160208183018101805160138252928201919093012091525460ff1681565b34801561067357600080fd5b506103a76106823660046144a6565b6117e5565b34801561069357600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff1661034d565b3480156106be57600080fd5b506106d26106cd366004614420565b611b32565b60408051825173ffffffffffffffffffffffffffffffffffffffff16815260208084015167ffffffffffffffff169082015291810151151590820152606001610302565b34801561072257600080fd5b50610320611b58565b6103a7610739366004614420565b611b67565b34801561074a57600080fd5b506103a76107593660046141bb565b611ea4565b34801561076a57600080fd5b506103a7610779366004614420565b611fbb565b34801561078a57600080fd5b506103a7610799366004614420565b612041565b3480156107aa57600080fd5b506103a76107b9366004614153565b6120c7565b6103a76107cc366004614439565b612144565b3480156107dd57600080fd5b506103f560115481565b3480156107f357600080fd5b506103a7610802366004614315565b6125e9565b34801561081357600080fd5b50610320610822366004614420565b612676565b34801561083357600080fd5b506103a7610842366004614420565b6127de565b34801561085357600080fd5b506103f56108623660046140c9565b612864565b34801561087357600080fd5b506102f66108823660046140e4565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260086020908152604080832093909416825291909152205460ff1690565b3480156108c957600080fd5b506103a76108d83660046140c9565b61286f565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061097057507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806109bc57507fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d6300000000000000000000000000000000000000000000000000000000145b80610a0857507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b606060038054610a1d906147b3565b80601f0160208091040260200160405190810160405280929190818152602001828054610a49906147b3565b8015610a965780601f10610a6b57610100808354040283529160200191610a96565b820191906000526020600020905b815481529060010190602001808311610a7957829003601f168201915b5050505050905090565b6000610aab8261299f565b610b16576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f617070726f76656420717565727920666f72206e6f6e6578697374656e74000060448201526064015b60405180910390fd5b5060009081526007602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b600c8054610b4c906147b3565b80601f0160208091040260200160405190810160405280929190818152602001828054610b78906147b3565b8015610bc55780601f10610b9a57610100808354040283529160200191610bc5565b820191906000526020600020905b815481529060010190602001808311610ba857829003601f168201915b505050505081565b6000610bd882611509565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610c70576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f617070726f76616c20746f2063757272656e74206f776e6572000000000000006044820152606401610b0d565b3373ffffffffffffffffffffffffffffffffffffffff82161480610c995750610c998133610882565b610d25576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f617070726f76652063616c6c6572206e6f74206f776e65722f617070726f766560448201527f64000000000000000000000000000000000000000000000000000000000000006064820152608401610b0d565b610d308383836129ef565b505050565b610d30838383612a70565b60005473ffffffffffffffffffffffffffffffffffffffff163314610dc1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b0d565b601055565b6000610dd1836116a6565b8210610e39576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f6f776e657220696e646578206f7574206f6620626f756e6473000000000000006044820152606401610b0d565b600060018054610e499190614770565b905060016000815b83811015610f6b576000818152600560209081526040918290208251606081018452905473ffffffffffffffffffffffffffffffffffffffff8116825274010000000000000000000000000000000000000000810467ffffffffffffffff16928201929092527c010000000000000000000000000000000000000000000000000000000090910460ff161580159282019290925290610ef05750610f63565b805173ffffffffffffffffffffffffffffffffffffffff1615610f1257805192505b8773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610f615786841415610f5a57509350610a0892505050565b6001909301925b505b600101610e51565b506040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f746f6b656e206f66206f776e6572206f7574206f6620696e64657800000000006044820152606401610b0d565b60005473ffffffffffffffffffffffffffffffffffffffff16331461104f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b0d565b6002546001546000916fffffffffffffffffffffffffffffffff1690037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01600f5490915061109e8383614707565b1115611106576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f457863656564206d617820737570706c790000000000000000000000000000006044820152606401610b0d565b610d308383612e91565b60005473ffffffffffffffffffffffffffffffffffffffff163314611191576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b0d565b600260095414156111fe576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b0d565b6002600955600a5460405160009173ffffffffffffffffffffffffffffffffffffffff169047908381818185875af1925050503d806000811461125d576040519150601f19603f3d011682016040523d82523d6000602084013e611262565b606091505b50509050806112cd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5472616e73666572206661696c65642e000000000000000000000000000000006044820152606401610b0d565b506001600955565b610d30838383604051806020016040528060008152506120c7565b6012818154811061130057600080fd5b60009182526020909120015463ffffffff80821692506401000000008204169068010000000000000000810467ffffffffffffffff1690700100000000000000000000000000000000900460ff1684565b600080600180546113629190614770565b90506001805b82811015610f6b576000818152600560209081526040918290208251606081018452905473ffffffffffffffffffffffffffffffffffffffff8116825274010000000000000000000000000000000000000000810467ffffffffffffffff16928201929092527c010000000000000000000000000000000000000000000000000000000090910460ff1615159181018290529061141757858314156114105750949350505050565b6001909201915b50600101611368565b60005473ffffffffffffffffffffffffffffffffffffffff1633146114a1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b0d565b610d30600d8383613f47565b60006013836040516114bf91906145b0565b9081526040519081900360200190205460ff161580156115025750600b546115029033908590859073ffffffffffffffffffffffffffffffffffffffff16612eaf565b9392505050565b600061151482612f99565b5192915050565b60005473ffffffffffffffffffffffffffffffffffffffff16331461159c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b0d565b6002546001546000916fffffffffffffffffffffffffffffffff1690037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff019050600f548284516115ed9190614733565b6115f79083614707565b111561165f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f457863656564206d617820737570706c790000000000000000000000000000006044820152606401610b0d565b60005b83518110156116a05761168e848281518110611680576116806148e1565b602002602001015184612e91565b8061169881614807565b915050611662565b50505050565b600073ffffffffffffffffffffffffffffffffffffffff8216611725576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f62616c616e636520717565727920666f722074686520302061646472657373006044820152606401610b0d565b5073ffffffffffffffffffffffffffffffffffffffff1660009081526006602052604090205467ffffffffffffffff1690565b60005473ffffffffffffffffffffffffffffffffffffffff1633146117d9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b0d565b6117e360006131a4565b565b60005473ffffffffffffffffffffffffffffffffffffffff163314611866576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b0d565b600060405180608001604052808663ffffffff1681526020018563ffffffff1681526020018467ffffffffffffffff1681526020018360018111156118ad576118ad6148b2565b90526012549091508610611a0257601280546001818101835560009290925282517fbb8a6a4669ba250d26cd7a459eca9d215f8307e33aebe50379bc5a3617ec344490910180546020850151604086015167ffffffffffffffff1668010000000000000000027fffffffffffffffffffffffffffffffff0000000000000000ffffffffffffffff63ffffffff928316640100000000027fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000090941692909516919091179190911792831681178255606085015185949293909284927fffffffffffffffffffffffffffffff00ffffffffffffffffffffffffffffffff167fffffffffffffffffffffffffffffff000000000000000000ffffffffffffffff90921691909117907001000000000000000000000000000000009084908111156119f6576119f66148b2565b02179055505050611b2a565b8060128781548110611a1657611a166148e1565b600091825260209182902083519101805492840151604085015167ffffffffffffffff1668010000000000000000027fffffffffffffffffffffffffffffffff0000000000000000ffffffffffffffff63ffffffff928316640100000000027fffffffffffffffffffffffffffffffffffffffffffffffff00000000000000009096169290941691909117939093179182168317815560608401519092909183917fffffffffffffffffffffffffffffff00ffffffffffffffffffffffffffffffff167fffffffffffffffffffffffffffffff000000000000000000ffffffffffffffff90911617700100000000000000000000000000000000836001811115611b2257611b226148b2565b021790555050505b505050505050565b6040805160608101825260008082526020820181905291810191909152610a0882612f99565b606060048054610a1d906147b3565b323314611bd0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f5468652063616c6c657220697320616e6f7468657220636f6e747261637400006044820152606401610b0d565b806000601260115481548110611be857611be86148e1565b60009182526020918290206040805160808101825291909201805463ffffffff80821684526401000000008204169483019490945267ffffffffffffffff680100000000000000008504169282019290925291606083019060ff700100000000000000000000000000000000909104166001811115611c6957611c696148b2565b6001811115611c7a57611c7a6148b2565b905250604081015160105491925067ffffffffffffffff1690831115611cfc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f457863656564206d696e74207175616e74697479206c696d69742e00000000006044820152606401610b0d565b600f5460025460015485916fffffffffffffffffffffffffffffffff1690037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01611d479190614707565b1115611daf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f72656163686564206d617820737570706c7900000000000000000000000000006044820152606401610b0d565b611db98382614733565b341015611e22576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f4e65656420746f2073656e64206d6f7265204554482e000000000000000000006044820152606401610b0d565b611e2a613219565b611e346001613316565b611e9a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f73616c6520686173206e6f7420737461727465642079657400000000000000006044820152606401610b0d565b6116a03385612e91565b73ffffffffffffffffffffffffffffffffffffffff8216331415611f24576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c65720000000000006044820152606401610b0d565b33600081815260086020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60005473ffffffffffffffffffffffffffffffffffffffff16331461203c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b0d565b600e55565b60005473ffffffffffffffffffffffffffffffffffffffff1633146120c2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b0d565b600f55565b6120d2848484612a70565b6120de84848484613443565b6116a0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f7472616e7366657220746f206e6f6e20455243373231526563656976657200006044820152606401610b0d565b3233146121ad576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f5468652063616c6c657220697320616e6f7468657220636f6e747261637400006044820152606401610b0d565b8260006012601154815481106121c5576121c56148e1565b60009182526020918290206040805160808101825291909201805463ffffffff80821684526401000000008204169483019490945267ffffffffffffffff680100000000000000008504169282019290925291606083019060ff700100000000000000000000000000000000909104166001811115612246576122466148b2565b6001811115612257576122576148b2565b905250604081015160105491925067ffffffffffffffff16908311156122d9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f457863656564206d696e74207175616e74697479206c696d69742e00000000006044820152606401610b0d565b600f5460025460015485916fffffffffffffffffffffffffffffffff1690037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff016123249190614707565b111561238c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f72656163686564206d617820737570706c7900000000000000000000000000006044820152606401610b0d565b6123968382614733565b3410156123ff576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f4e65656420746f2073656e64206d6f7265204554482e000000000000000000006044820152606401610b0d565b612407613219565b6124116000613316565b612477576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f73616c6520686173206e6f7420737461727465642079657400000000000000006044820152606401610b0d565b60138560405161248791906145b0565b9081526040519081900360200190205460ff1615612501576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f5469636b65742068617320616c7265616479206265656e2075736564000000006044820152606401610b0d565b600b546125299033908790879073ffffffffffffffffffffffffffffffffffffffff16612eaf565b61258f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f5469636b657420697320696e76616c69640000000000000000000000000000006044820152606401610b0d565b60016013866040516125a191906145b0565b90815260405190819003602001902080549115157fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00909216919091179055611b2a3387612e91565b60005473ffffffffffffffffffffffffffffffffffffffff16331461266a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b0d565b610d30600c8383613f47565b60606126818261299f565b6126e7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e006044820152606401610b0d565b600e54821061278257600c80546126fd906147b3565b80601f0160208091040260200160405190810160405280929190818152602001828054612729906147b3565b80156127765780601f1061274b57610100808354040283529160200191612776565b820191906000526020600020905b81548152906001019060200180831161275957829003601f168201915b50505050509050919050565b600061278c613619565b90508051600014156127ad5760405180602001604052806000815250611502565b806127b784613628565b6040516020016127c89291906145cc565b6040516020818303038152906040529392505050565b60005473ffffffffffffffffffffffffffffffffffffffff16331461285f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b0d565b601155565b6000610a088261375a565b60005473ffffffffffffffffffffffffffffffffffffffff1633146128f0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b0d565b73ffffffffffffffffffffffffffffffffffffffff8116612993576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610b0d565b61299c816131a4565b50565b600080821180156129b1575060015482105b8015610a085750506000908152600560205260409020547c0100000000000000000000000000000000000000000000000000000000900460ff161590565b60008281526007602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff87811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000612a7b82612f99565b805190915060009073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480612ac357508151612ac39033610882565b80612aeb575033612ad384610aa0565b73ffffffffffffffffffffffffffffffffffffffff16145b905080612b54576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f7472616e736665722069736e2774206f776e65722f617070726f7665640000006044820152606401610b0d565b8473ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff1614612bed576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f7472616e736665722066726f6d20696e636f7272656374206f776e65720000006044820152606401610b0d565b73ffffffffffffffffffffffffffffffffffffffff8416612c90576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610b0d565b612ca060008484600001516129ef565b73ffffffffffffffffffffffffffffffffffffffff858116600090815260066020908152604080832080547fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000080821667ffffffffffffffff9283167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01831617909255898616808652838620805493841693831660019081018416949094179055898652600590945282852080547fffffffff000000000000000000000000000000000000000000000000000000001690941774010000000000000000000000000000000000000000429092169190910217909255908601808352912054909116612e2d57600154811015612e2d578251600082815260056020908152604090912080549186015167ffffffffffffffff1674010000000000000000000000000000000000000000027fffffffff0000000000000000000000000000000000000000000000000000000090921673ffffffffffffffffffffffffffffffffffffffff909316929092171790555b50828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b612eab828260405180602001604052806000815250613818565b5050565b6000808585604051602001612ec5929190614565565b604051602081830303815290604052805190602001209050600081604051602001612f1c91907f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152601c810191909152603c0190565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815291905280516020909101209050612f5e8186613825565b73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614925050505b949350505050565b6040805160608101825260008082526020820181905291810191909152600154829081108015612fc95750600083115b15613142576000818152600560209081526040918290208251606081018452905473ffffffffffffffffffffffffffffffffffffffff8116825274010000000000000000000000000000000000000000810467ffffffffffffffff16928201929092527c010000000000000000000000000000000000000000000000000000000090910460ff1615159181018290529061314057805173ffffffffffffffffffffffffffffffffffffffff1615613081579392505050565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff016000818152600560209081526040918290208251606081018452905473ffffffffffffffffffffffffffffffffffffffff811680835274010000000000000000000000000000000000000000820467ffffffffffffffff16938301939093527c0100000000000000000000000000000000000000000000000000000000900460ff161515928101929092521561313b579392505050565b613081565b505b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f756e61626c6520746f2064657465726d696e6520746865206f776e65720000006044820152606401610b0d565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b601154613227906001614707565b60125411156117e3576000601260115481548110613247576132476148e1565b60009182526020918290206040805160808101825291909201805463ffffffff80821684526401000000008204169483019490945267ffffffffffffffff680100000000000000008504169282019290925291606083019060ff7001000000000000000000000000000000009091041660018111156132c8576132c86148b2565b60018111156132d9576132d96148b2565b905250602081015190915063ffffffff16428111612eab576001601160008282546133049190614707565b9091555061330f9050565b5050613219565b6011546012546000911061332c57506000919050565b6000601260115481548110613343576133436148e1565b60009182526020918290206040805160808101825291909201805463ffffffff80821684526401000000008204169483019490945267ffffffffffffffff680100000000000000008504169282019290925291606083019060ff7001000000000000000000000000000000009091041660018111156133c4576133c46148b2565b60018111156133d5576133d56148b2565b90525060408101518151606083015192935067ffffffffffffffff9091169163ffffffff90911690821580159061342d5750856001811115613419576134196148b2565b81600181111561342b5761342b6148b2565b145b80156134395750814210155b9695505050505050565b600073ffffffffffffffffffffffffffffffffffffffff84163b15613611576040517f150b7a0200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063150b7a02906134ba9033908990889088906004016145fb565b602060405180830381600087803b1580156134d457600080fd5b505af1925050508015613522575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261351f918101906142f8565b60015b6135c6573d808015613550576040519150601f19603f3d011682016040523d82523d6000602084013e613555565b606091505b5080516135be576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f7472616e7366657220746f206e6f6e20455243373231526563656976657200006044820152606401610b0d565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050612f91565b506001612f91565b6060600d8054610a1d906147b3565b60608161366857505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115613692578061367c81614807565b915061368b9050600a8361471f565b915061366c565b60008167ffffffffffffffff8111156136ad576136ad614910565b6040519080825280601f01601f1916602001820160405280156136d7576020820181803683370190505b5090505b8415612f91576136ec600183614770565b91506136f9600a86614840565b613704906030614707565b60f81b818381518110613719576137196148e1565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613753600a8661471f565b94506136db565b600073ffffffffffffffffffffffffffffffffffffffff82166137d9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f6d696e74656420717565727920666f72203020616464726573730000000000006044820152606401610b0d565b5073ffffffffffffffffffffffffffffffffffffffff1660009081526006602052604090205468010000000000000000900467ffffffffffffffff1690565b610d308383836001613849565b60008060006138348585613b14565b9150915061384181613b84565b509392505050565b60015473ffffffffffffffffffffffffffffffffffffffff85166138c9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f6d696e7420746f20746865207a65726f206164647265737300000000000000006044820152606401610b0d565b83613930576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f7175616e74697479206d757374206265203e207468616e2030000000000000006044820152606401610b0d565b73ffffffffffffffffffffffffffffffffffffffff8516600081815260066020908152604080832080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000811667ffffffffffffffff8083168c018116918217680100000000000000007fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000090941690921783900481168c018116909202179091558584526005909252822080547fffffffff00000000000000000000000000000000000000000000000000000000169093177401000000000000000000000000000000000000000042909216919091021790915581905b85811015613af957604051829073ffffffffffffffffffffffffffffffffffffffff8916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48315613aed57613a876000888488613443565b613aed576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f7472616e7366657220746f206e6f6e20455243373231526563656976657200006044820152606401610b0d565b60019182019101613a27565b506fffffffffffffffffffffffffffffffff16600155612e8a565b600080825160411415613b4b5760208301516040840151606085015160001a613b3f87828585613ddd565b94509450505050613b7d565b825160401415613b755760208301516040840151613b6a868383613ef5565b935093505050613b7d565b506000905060025b9250929050565b6000816004811115613b9857613b986148b2565b1415613ba15750565b6001816004811115613bb557613bb56148b2565b1415613c1d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610b0d565b6002816004811115613c3157613c316148b2565b1415613c99576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610b0d565b6003816004811115613cad57613cad6148b2565b1415613d3b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610b0d565b6004816004811115613d4f57613d4f6148b2565b141561299c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610b0d565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115613e145750600090506003613eec565b8460ff16601b14158015613e2c57508460ff16601c14155b15613e3d5750600090506004613eec565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015613e91573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff8116613ee557600060019250925050613eec565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831681613f2b60ff86901c601b614707565b9050613f3987828885613ddd565b935093505050935093915050565b828054613f53906147b3565b90600052602060002090601f016020900481019282613f755760008555613fd9565b82601f10613fac578280017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00823516178555613fd9565b82800160010185558215613fd9579182015b82811115613fd9578235825591602001919060010190613fbe565b50613fe5929150613fe9565b5090565b5b80821115613fe55760008155600101613fea565b803573ffffffffffffffffffffffffffffffffffffffff8116811461402257600080fd5b919050565b600082601f83011261403857600080fd5b813567ffffffffffffffff81111561405257614052614910565b61408360207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f840116016146b8565b81815284602083860101111561409857600080fd5b816020850160208301376000918101602001919091529392505050565b803563ffffffff8116811461402257600080fd5b6000602082840312156140db57600080fd5b61150282613ffe565b600080604083850312156140f757600080fd5b61410083613ffe565b915061410e60208401613ffe565b90509250929050565b60008060006060848603121561412c57600080fd5b61413584613ffe565b925061414360208501613ffe565b9150604084013590509250925092565b6000806000806080858703121561416957600080fd5b61417285613ffe565b935061418060208601613ffe565b925060408501359150606085013567ffffffffffffffff8111156141a357600080fd5b6141af87828801614027565b91505092959194509250565b600080604083850312156141ce57600080fd5b6141d783613ffe565b9150602083013580151581146141ec57600080fd5b809150509250929050565b6000806040838503121561420a57600080fd5b61421383613ffe565b946020939093013593505050565b6000806040838503121561423457600080fd5b823567ffffffffffffffff8082111561424c57600080fd5b818501915085601f83011261426057600080fd5b813560208282111561427457614274614910565b8160051b92506142858184016146b8565b8281528181019085830185870184018b10156142a057600080fd5b600096505b848710156142ca576142b681613ffe565b8352600196909601959183019183016142a5565b509997909101359750505050505050565b6000602082840312156142ed57600080fd5b81356115028161493f565b60006020828403121561430a57600080fd5b81516115028161493f565b6000806020838503121561432857600080fd5b823567ffffffffffffffff8082111561434057600080fd5b818501915085601f83011261435457600080fd5b81358181111561436357600080fd5b86602082850101111561437557600080fd5b60209290920196919550909350505050565b60006020828403121561439957600080fd5b813567ffffffffffffffff8111156143b057600080fd5b612f9184828501614027565b600080604083850312156143cf57600080fd5b823567ffffffffffffffff808211156143e757600080fd5b6143f386838701614027565b9350602085013591508082111561440957600080fd5b5061441685828601614027565b9150509250929050565b60006020828403121561443257600080fd5b5035919050565b60008060006060848603121561444e57600080fd5b83359250602084013567ffffffffffffffff8082111561446d57600080fd5b61447987838801614027565b9350604086013591508082111561448f57600080fd5b5061449c86828701614027565b9150509250925092565b600080600080600060a086880312156144be57600080fd5b853594506144ce602087016140b5565b93506144dc604087016140b5565b9250606086013567ffffffffffffffff811681146144f957600080fd5b915060808601356002811061450d57600080fd5b809150509295509295909350565b60008151808452614533816020860160208601614787565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b7fffffffffffffffffffffffffffffffffffffffff0000000000000000000000008360601b168152600082516145a2816014850160208701614787565b919091016014019392505050565b600082516145c2818460208701614787565b9190910192915050565b600083516145de818460208801614787565b8351908301906145f2818360208801614787565b01949350505050565b600073ffffffffffffffffffffffffffffffffffffffff808716835280861660208401525083604083015260806060830152613439608083018461451b565b602081526000611502602083018461451b565b63ffffffff85811682528416602082015267ffffffffffffffff8316604082015260808101600283106146a9577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b82606083015295945050505050565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff811182821017156146ff576146ff614910565b604052919050565b6000821982111561471a5761471a614854565b500190565b60008261472e5761472e614883565b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561476b5761476b614854565b500290565b60008282101561478257614782614854565b500390565b60005b838110156147a257818101518382015260200161478a565b838111156116a05750506000910152565b600181811c908216806147c757607f821691505b60208210811415614801577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561483957614839614854565b5060010190565b60008261484f5761484f614883565b500690565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7fffffffff000000000000000000000000000000000000000000000000000000008116811461299c57600080fdfea2646970667358221220aac675ba169740d1d8fa9054d0efcec053bde5ea99a02707ee64b4a857f969c564736f6c6343000807003347696f69612050616e207820546f6f204d75636820496e666f726d6174696f6e204c696f6ebb8a6a4669ba250d26cd7a459eca9d215f8307e33aebe50379bc5a3617ec34440000000000000000000000009f4b0d94585a409d6070a1180331eac925231c3e
Deployed Bytecode
0x6080604052600436106102d15760003560e01c80636f8aa04111610179578063a85b9905116100d6578063c17ecd121161008a578063dc33e68111610064578063dc33e68114610847578063e985e9c514610867578063f2fde38b146108bd57600080fd5b8063c17ecd12146107e7578063c87b56dd14610807578063d7d339701461082757600080fd5b8063b88d4fde116100bb578063b88d4fde1461079e578063baa5b6c5146107be578063bd14c3d0146107d157600080fd5b8063a85b99051461075e578063aca8ffe71461077e57600080fd5b80638da5cb5b1161012d57806395d89b411161011257806395d89b4114610716578063a0712d681461072b578063a22cb4651461073e57600080fd5b80638da5cb5b146106875780639231ab2a146106b257600080fd5b8063715018a61161015e578063715018a61461061757806378dc745e1461062c57806384d8abf01461066757600080fd5b80636f8aa041146105d757806370a08231146105f757600080fd5b80632f745c591161023257806348b05c1c116101e657806356b93854116101c057806356b938541461056a5780635b7633d01461058a5780636352211e146105b757600080fd5b806348b05c1c146104fa5780634f6ccce71461052a57806355f804b31461054a57600080fd5b80633ccfd60b116102175780633ccfd60b146104af57806342842e0e146104c457806345c0f533146104e457600080fd5b80632f745c591461046f578063308d30a01461048f57600080fd5b806318160ddd116102895780632913daa01161026e5780632913daa0146104235780632a3a1925146104395780632b26a6bf1461044f57600080fd5b806318160ddd146103a957806323b872dd1461040357600080fd5b8063081812fc116102ba578063081812fc1461032d578063081c8c4414610372578063095ea7b31461038757600080fd5b806301ffc9a7146102d657806306fdde031461030b575b600080fd5b3480156102e257600080fd5b506102f66102f13660046142db565b6108dd565b60405190151581526020015b60405180910390f35b34801561031757600080fd5b50610320610a0e565b604051610302919061463a565b34801561033957600080fd5b5061034d610348366004614420565b610aa0565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610302565b34801561037e57600080fd5b50610320610b3f565b34801561039357600080fd5b506103a76103a23660046141f7565b610bcd565b005b3480156103b557600080fd5b506002546001546fffffffffffffffffffffffffffffffff90911690037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff015b604051908152602001610302565b34801561040f57600080fd5b506103a761041e366004614117565b610d35565b34801561042f57600080fd5b506103f560105481565b34801561044557600080fd5b506103f5600e5481565b34801561045b57600080fd5b506103a761046a366004614420565b610d40565b34801561047b57600080fd5b506103f561048a3660046141f7565b610dc6565b34801561049b57600080fd5b506103a76104aa3660046141f7565b610fce565b3480156104bb57600080fd5b506103a7611110565b3480156104d057600080fd5b506103a76104df366004614117565b6112d5565b3480156104f057600080fd5b506103f5600f5481565b34801561050657600080fd5b5061051a610515366004614420565b6112f0565b604051610302949392919061464d565b34801561053657600080fd5b506103f5610545366004614420565b611351565b34801561055657600080fd5b506103a7610565366004614315565b611420565b34801561057657600080fd5b506102f66105853660046143bc565b6114ad565b34801561059657600080fd5b50600b5461034d9073ffffffffffffffffffffffffffffffffffffffff1681565b3480156105c357600080fd5b5061034d6105d2366004614420565b611509565b3480156105e357600080fd5b506103a76105f2366004614221565b61151b565b34801561060357600080fd5b506103f56106123660046140c9565b6116a6565b34801561062357600080fd5b506103a7611758565b34801561063857600080fd5b506102f6610647366004614387565b805160208183018101805160138252928201919093012091525460ff1681565b34801561067357600080fd5b506103a76106823660046144a6565b6117e5565b34801561069357600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff1661034d565b3480156106be57600080fd5b506106d26106cd366004614420565b611b32565b60408051825173ffffffffffffffffffffffffffffffffffffffff16815260208084015167ffffffffffffffff169082015291810151151590820152606001610302565b34801561072257600080fd5b50610320611b58565b6103a7610739366004614420565b611b67565b34801561074a57600080fd5b506103a76107593660046141bb565b611ea4565b34801561076a57600080fd5b506103a7610779366004614420565b611fbb565b34801561078a57600080fd5b506103a7610799366004614420565b612041565b3480156107aa57600080fd5b506103a76107b9366004614153565b6120c7565b6103a76107cc366004614439565b612144565b3480156107dd57600080fd5b506103f560115481565b3480156107f357600080fd5b506103a7610802366004614315565b6125e9565b34801561081357600080fd5b50610320610822366004614420565b612676565b34801561083357600080fd5b506103a7610842366004614420565b6127de565b34801561085357600080fd5b506103f56108623660046140c9565b612864565b34801561087357600080fd5b506102f66108823660046140e4565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260086020908152604080832093909416825291909152205460ff1690565b3480156108c957600080fd5b506103a76108d83660046140c9565b61286f565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061097057507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806109bc57507fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d6300000000000000000000000000000000000000000000000000000000145b80610a0857507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b606060038054610a1d906147b3565b80601f0160208091040260200160405190810160405280929190818152602001828054610a49906147b3565b8015610a965780601f10610a6b57610100808354040283529160200191610a96565b820191906000526020600020905b815481529060010190602001808311610a7957829003601f168201915b5050505050905090565b6000610aab8261299f565b610b16576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f617070726f76656420717565727920666f72206e6f6e6578697374656e74000060448201526064015b60405180910390fd5b5060009081526007602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b600c8054610b4c906147b3565b80601f0160208091040260200160405190810160405280929190818152602001828054610b78906147b3565b8015610bc55780601f10610b9a57610100808354040283529160200191610bc5565b820191906000526020600020905b815481529060010190602001808311610ba857829003601f168201915b505050505081565b6000610bd882611509565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610c70576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f617070726f76616c20746f2063757272656e74206f776e6572000000000000006044820152606401610b0d565b3373ffffffffffffffffffffffffffffffffffffffff82161480610c995750610c998133610882565b610d25576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f617070726f76652063616c6c6572206e6f74206f776e65722f617070726f766560448201527f64000000000000000000000000000000000000000000000000000000000000006064820152608401610b0d565b610d308383836129ef565b505050565b610d30838383612a70565b60005473ffffffffffffffffffffffffffffffffffffffff163314610dc1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b0d565b601055565b6000610dd1836116a6565b8210610e39576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f6f776e657220696e646578206f7574206f6620626f756e6473000000000000006044820152606401610b0d565b600060018054610e499190614770565b905060016000815b83811015610f6b576000818152600560209081526040918290208251606081018452905473ffffffffffffffffffffffffffffffffffffffff8116825274010000000000000000000000000000000000000000810467ffffffffffffffff16928201929092527c010000000000000000000000000000000000000000000000000000000090910460ff161580159282019290925290610ef05750610f63565b805173ffffffffffffffffffffffffffffffffffffffff1615610f1257805192505b8773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610f615786841415610f5a57509350610a0892505050565b6001909301925b505b600101610e51565b506040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f746f6b656e206f66206f776e6572206f7574206f6620696e64657800000000006044820152606401610b0d565b60005473ffffffffffffffffffffffffffffffffffffffff16331461104f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b0d565b6002546001546000916fffffffffffffffffffffffffffffffff1690037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01600f5490915061109e8383614707565b1115611106576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f457863656564206d617820737570706c790000000000000000000000000000006044820152606401610b0d565b610d308383612e91565b60005473ffffffffffffffffffffffffffffffffffffffff163314611191576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b0d565b600260095414156111fe576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b0d565b6002600955600a5460405160009173ffffffffffffffffffffffffffffffffffffffff169047908381818185875af1925050503d806000811461125d576040519150601f19603f3d011682016040523d82523d6000602084013e611262565b606091505b50509050806112cd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5472616e73666572206661696c65642e000000000000000000000000000000006044820152606401610b0d565b506001600955565b610d30838383604051806020016040528060008152506120c7565b6012818154811061130057600080fd5b60009182526020909120015463ffffffff80821692506401000000008204169068010000000000000000810467ffffffffffffffff1690700100000000000000000000000000000000900460ff1684565b600080600180546113629190614770565b90506001805b82811015610f6b576000818152600560209081526040918290208251606081018452905473ffffffffffffffffffffffffffffffffffffffff8116825274010000000000000000000000000000000000000000810467ffffffffffffffff16928201929092527c010000000000000000000000000000000000000000000000000000000090910460ff1615159181018290529061141757858314156114105750949350505050565b6001909201915b50600101611368565b60005473ffffffffffffffffffffffffffffffffffffffff1633146114a1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b0d565b610d30600d8383613f47565b60006013836040516114bf91906145b0565b9081526040519081900360200190205460ff161580156115025750600b546115029033908590859073ffffffffffffffffffffffffffffffffffffffff16612eaf565b9392505050565b600061151482612f99565b5192915050565b60005473ffffffffffffffffffffffffffffffffffffffff16331461159c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b0d565b6002546001546000916fffffffffffffffffffffffffffffffff1690037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff019050600f548284516115ed9190614733565b6115f79083614707565b111561165f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f457863656564206d617820737570706c790000000000000000000000000000006044820152606401610b0d565b60005b83518110156116a05761168e848281518110611680576116806148e1565b602002602001015184612e91565b8061169881614807565b915050611662565b50505050565b600073ffffffffffffffffffffffffffffffffffffffff8216611725576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f62616c616e636520717565727920666f722074686520302061646472657373006044820152606401610b0d565b5073ffffffffffffffffffffffffffffffffffffffff1660009081526006602052604090205467ffffffffffffffff1690565b60005473ffffffffffffffffffffffffffffffffffffffff1633146117d9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b0d565b6117e360006131a4565b565b60005473ffffffffffffffffffffffffffffffffffffffff163314611866576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b0d565b600060405180608001604052808663ffffffff1681526020018563ffffffff1681526020018467ffffffffffffffff1681526020018360018111156118ad576118ad6148b2565b90526012549091508610611a0257601280546001818101835560009290925282517fbb8a6a4669ba250d26cd7a459eca9d215f8307e33aebe50379bc5a3617ec344490910180546020850151604086015167ffffffffffffffff1668010000000000000000027fffffffffffffffffffffffffffffffff0000000000000000ffffffffffffffff63ffffffff928316640100000000027fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000090941692909516919091179190911792831681178255606085015185949293909284927fffffffffffffffffffffffffffffff00ffffffffffffffffffffffffffffffff167fffffffffffffffffffffffffffffff000000000000000000ffffffffffffffff90921691909117907001000000000000000000000000000000009084908111156119f6576119f66148b2565b02179055505050611b2a565b8060128781548110611a1657611a166148e1565b600091825260209182902083519101805492840151604085015167ffffffffffffffff1668010000000000000000027fffffffffffffffffffffffffffffffff0000000000000000ffffffffffffffff63ffffffff928316640100000000027fffffffffffffffffffffffffffffffffffffffffffffffff00000000000000009096169290941691909117939093179182168317815560608401519092909183917fffffffffffffffffffffffffffffff00ffffffffffffffffffffffffffffffff167fffffffffffffffffffffffffffffff000000000000000000ffffffffffffffff90911617700100000000000000000000000000000000836001811115611b2257611b226148b2565b021790555050505b505050505050565b6040805160608101825260008082526020820181905291810191909152610a0882612f99565b606060048054610a1d906147b3565b323314611bd0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f5468652063616c6c657220697320616e6f7468657220636f6e747261637400006044820152606401610b0d565b806000601260115481548110611be857611be86148e1565b60009182526020918290206040805160808101825291909201805463ffffffff80821684526401000000008204169483019490945267ffffffffffffffff680100000000000000008504169282019290925291606083019060ff700100000000000000000000000000000000909104166001811115611c6957611c696148b2565b6001811115611c7a57611c7a6148b2565b905250604081015160105491925067ffffffffffffffff1690831115611cfc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f457863656564206d696e74207175616e74697479206c696d69742e00000000006044820152606401610b0d565b600f5460025460015485916fffffffffffffffffffffffffffffffff1690037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01611d479190614707565b1115611daf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f72656163686564206d617820737570706c7900000000000000000000000000006044820152606401610b0d565b611db98382614733565b341015611e22576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f4e65656420746f2073656e64206d6f7265204554482e000000000000000000006044820152606401610b0d565b611e2a613219565b611e346001613316565b611e9a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f73616c6520686173206e6f7420737461727465642079657400000000000000006044820152606401610b0d565b6116a03385612e91565b73ffffffffffffffffffffffffffffffffffffffff8216331415611f24576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c65720000000000006044820152606401610b0d565b33600081815260086020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60005473ffffffffffffffffffffffffffffffffffffffff16331461203c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b0d565b600e55565b60005473ffffffffffffffffffffffffffffffffffffffff1633146120c2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b0d565b600f55565b6120d2848484612a70565b6120de84848484613443565b6116a0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f7472616e7366657220746f206e6f6e20455243373231526563656976657200006044820152606401610b0d565b3233146121ad576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f5468652063616c6c657220697320616e6f7468657220636f6e747261637400006044820152606401610b0d565b8260006012601154815481106121c5576121c56148e1565b60009182526020918290206040805160808101825291909201805463ffffffff80821684526401000000008204169483019490945267ffffffffffffffff680100000000000000008504169282019290925291606083019060ff700100000000000000000000000000000000909104166001811115612246576122466148b2565b6001811115612257576122576148b2565b905250604081015160105491925067ffffffffffffffff16908311156122d9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f457863656564206d696e74207175616e74697479206c696d69742e00000000006044820152606401610b0d565b600f5460025460015485916fffffffffffffffffffffffffffffffff1690037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff016123249190614707565b111561238c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f72656163686564206d617820737570706c7900000000000000000000000000006044820152606401610b0d565b6123968382614733565b3410156123ff576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f4e65656420746f2073656e64206d6f7265204554482e000000000000000000006044820152606401610b0d565b612407613219565b6124116000613316565b612477576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f73616c6520686173206e6f7420737461727465642079657400000000000000006044820152606401610b0d565b60138560405161248791906145b0565b9081526040519081900360200190205460ff1615612501576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f5469636b65742068617320616c7265616479206265656e2075736564000000006044820152606401610b0d565b600b546125299033908790879073ffffffffffffffffffffffffffffffffffffffff16612eaf565b61258f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f5469636b657420697320696e76616c69640000000000000000000000000000006044820152606401610b0d565b60016013866040516125a191906145b0565b90815260405190819003602001902080549115157fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00909216919091179055611b2a3387612e91565b60005473ffffffffffffffffffffffffffffffffffffffff16331461266a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b0d565b610d30600c8383613f47565b60606126818261299f565b6126e7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e006044820152606401610b0d565b600e54821061278257600c80546126fd906147b3565b80601f0160208091040260200160405190810160405280929190818152602001828054612729906147b3565b80156127765780601f1061274b57610100808354040283529160200191612776565b820191906000526020600020905b81548152906001019060200180831161275957829003601f168201915b50505050509050919050565b600061278c613619565b90508051600014156127ad5760405180602001604052806000815250611502565b806127b784613628565b6040516020016127c89291906145cc565b6040516020818303038152906040529392505050565b60005473ffffffffffffffffffffffffffffffffffffffff16331461285f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b0d565b601155565b6000610a088261375a565b60005473ffffffffffffffffffffffffffffffffffffffff1633146128f0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b0d565b73ffffffffffffffffffffffffffffffffffffffff8116612993576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610b0d565b61299c816131a4565b50565b600080821180156129b1575060015482105b8015610a085750506000908152600560205260409020547c0100000000000000000000000000000000000000000000000000000000900460ff161590565b60008281526007602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff87811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000612a7b82612f99565b805190915060009073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480612ac357508151612ac39033610882565b80612aeb575033612ad384610aa0565b73ffffffffffffffffffffffffffffffffffffffff16145b905080612b54576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f7472616e736665722069736e2774206f776e65722f617070726f7665640000006044820152606401610b0d565b8473ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff1614612bed576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f7472616e736665722066726f6d20696e636f7272656374206f776e65720000006044820152606401610b0d565b73ffffffffffffffffffffffffffffffffffffffff8416612c90576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610b0d565b612ca060008484600001516129ef565b73ffffffffffffffffffffffffffffffffffffffff858116600090815260066020908152604080832080547fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000080821667ffffffffffffffff9283167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01831617909255898616808652838620805493841693831660019081018416949094179055898652600590945282852080547fffffffff000000000000000000000000000000000000000000000000000000001690941774010000000000000000000000000000000000000000429092169190910217909255908601808352912054909116612e2d57600154811015612e2d578251600082815260056020908152604090912080549186015167ffffffffffffffff1674010000000000000000000000000000000000000000027fffffffff0000000000000000000000000000000000000000000000000000000090921673ffffffffffffffffffffffffffffffffffffffff909316929092171790555b50828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b612eab828260405180602001604052806000815250613818565b5050565b6000808585604051602001612ec5929190614565565b604051602081830303815290604052805190602001209050600081604051602001612f1c91907f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152601c810191909152603c0190565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815291905280516020909101209050612f5e8186613825565b73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614925050505b949350505050565b6040805160608101825260008082526020820181905291810191909152600154829081108015612fc95750600083115b15613142576000818152600560209081526040918290208251606081018452905473ffffffffffffffffffffffffffffffffffffffff8116825274010000000000000000000000000000000000000000810467ffffffffffffffff16928201929092527c010000000000000000000000000000000000000000000000000000000090910460ff1615159181018290529061314057805173ffffffffffffffffffffffffffffffffffffffff1615613081579392505050565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff016000818152600560209081526040918290208251606081018452905473ffffffffffffffffffffffffffffffffffffffff811680835274010000000000000000000000000000000000000000820467ffffffffffffffff16938301939093527c0100000000000000000000000000000000000000000000000000000000900460ff161515928101929092521561313b579392505050565b613081565b505b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f756e61626c6520746f2064657465726d696e6520746865206f776e65720000006044820152606401610b0d565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b601154613227906001614707565b60125411156117e3576000601260115481548110613247576132476148e1565b60009182526020918290206040805160808101825291909201805463ffffffff80821684526401000000008204169483019490945267ffffffffffffffff680100000000000000008504169282019290925291606083019060ff7001000000000000000000000000000000009091041660018111156132c8576132c86148b2565b60018111156132d9576132d96148b2565b905250602081015190915063ffffffff16428111612eab576001601160008282546133049190614707565b9091555061330f9050565b5050613219565b6011546012546000911061332c57506000919050565b6000601260115481548110613343576133436148e1565b60009182526020918290206040805160808101825291909201805463ffffffff80821684526401000000008204169483019490945267ffffffffffffffff680100000000000000008504169282019290925291606083019060ff7001000000000000000000000000000000009091041660018111156133c4576133c46148b2565b60018111156133d5576133d56148b2565b90525060408101518151606083015192935067ffffffffffffffff9091169163ffffffff90911690821580159061342d5750856001811115613419576134196148b2565b81600181111561342b5761342b6148b2565b145b80156134395750814210155b9695505050505050565b600073ffffffffffffffffffffffffffffffffffffffff84163b15613611576040517f150b7a0200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063150b7a02906134ba9033908990889088906004016145fb565b602060405180830381600087803b1580156134d457600080fd5b505af1925050508015613522575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261351f918101906142f8565b60015b6135c6573d808015613550576040519150601f19603f3d011682016040523d82523d6000602084013e613555565b606091505b5080516135be576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f7472616e7366657220746f206e6f6e20455243373231526563656976657200006044820152606401610b0d565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050612f91565b506001612f91565b6060600d8054610a1d906147b3565b60608161366857505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115613692578061367c81614807565b915061368b9050600a8361471f565b915061366c565b60008167ffffffffffffffff8111156136ad576136ad614910565b6040519080825280601f01601f1916602001820160405280156136d7576020820181803683370190505b5090505b8415612f91576136ec600183614770565b91506136f9600a86614840565b613704906030614707565b60f81b818381518110613719576137196148e1565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613753600a8661471f565b94506136db565b600073ffffffffffffffffffffffffffffffffffffffff82166137d9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f6d696e74656420717565727920666f72203020616464726573730000000000006044820152606401610b0d565b5073ffffffffffffffffffffffffffffffffffffffff1660009081526006602052604090205468010000000000000000900467ffffffffffffffff1690565b610d308383836001613849565b60008060006138348585613b14565b9150915061384181613b84565b509392505050565b60015473ffffffffffffffffffffffffffffffffffffffff85166138c9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f6d696e7420746f20746865207a65726f206164647265737300000000000000006044820152606401610b0d565b83613930576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f7175616e74697479206d757374206265203e207468616e2030000000000000006044820152606401610b0d565b73ffffffffffffffffffffffffffffffffffffffff8516600081815260066020908152604080832080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000811667ffffffffffffffff8083168c018116918217680100000000000000007fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000090941690921783900481168c018116909202179091558584526005909252822080547fffffffff00000000000000000000000000000000000000000000000000000000169093177401000000000000000000000000000000000000000042909216919091021790915581905b85811015613af957604051829073ffffffffffffffffffffffffffffffffffffffff8916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48315613aed57613a876000888488613443565b613aed576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f7472616e7366657220746f206e6f6e20455243373231526563656976657200006044820152606401610b0d565b60019182019101613a27565b506fffffffffffffffffffffffffffffffff16600155612e8a565b600080825160411415613b4b5760208301516040840151606085015160001a613b3f87828585613ddd565b94509450505050613b7d565b825160401415613b755760208301516040840151613b6a868383613ef5565b935093505050613b7d565b506000905060025b9250929050565b6000816004811115613b9857613b986148b2565b1415613ba15750565b6001816004811115613bb557613bb56148b2565b1415613c1d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610b0d565b6002816004811115613c3157613c316148b2565b1415613c99576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610b0d565b6003816004811115613cad57613cad6148b2565b1415613d3b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610b0d565b6004816004811115613d4f57613d4f6148b2565b141561299c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610b0d565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115613e145750600090506003613eec565b8460ff16601b14158015613e2c57508460ff16601c14155b15613e3d5750600090506004613eec565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015613e91573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff8116613ee557600060019250925050613eec565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831681613f2b60ff86901c601b614707565b9050613f3987828885613ddd565b935093505050935093915050565b828054613f53906147b3565b90600052602060002090601f016020900481019282613f755760008555613fd9565b82601f10613fac578280017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00823516178555613fd9565b82800160010185558215613fd9579182015b82811115613fd9578235825591602001919060010190613fbe565b50613fe5929150613fe9565b5090565b5b80821115613fe55760008155600101613fea565b803573ffffffffffffffffffffffffffffffffffffffff8116811461402257600080fd5b919050565b600082601f83011261403857600080fd5b813567ffffffffffffffff81111561405257614052614910565b61408360207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f840116016146b8565b81815284602083860101111561409857600080fd5b816020850160208301376000918101602001919091529392505050565b803563ffffffff8116811461402257600080fd5b6000602082840312156140db57600080fd5b61150282613ffe565b600080604083850312156140f757600080fd5b61410083613ffe565b915061410e60208401613ffe565b90509250929050565b60008060006060848603121561412c57600080fd5b61413584613ffe565b925061414360208501613ffe565b9150604084013590509250925092565b6000806000806080858703121561416957600080fd5b61417285613ffe565b935061418060208601613ffe565b925060408501359150606085013567ffffffffffffffff8111156141a357600080fd5b6141af87828801614027565b91505092959194509250565b600080604083850312156141ce57600080fd5b6141d783613ffe565b9150602083013580151581146141ec57600080fd5b809150509250929050565b6000806040838503121561420a57600080fd5b61421383613ffe565b946020939093013593505050565b6000806040838503121561423457600080fd5b823567ffffffffffffffff8082111561424c57600080fd5b818501915085601f83011261426057600080fd5b813560208282111561427457614274614910565b8160051b92506142858184016146b8565b8281528181019085830185870184018b10156142a057600080fd5b600096505b848710156142ca576142b681613ffe565b8352600196909601959183019183016142a5565b509997909101359750505050505050565b6000602082840312156142ed57600080fd5b81356115028161493f565b60006020828403121561430a57600080fd5b81516115028161493f565b6000806020838503121561432857600080fd5b823567ffffffffffffffff8082111561434057600080fd5b818501915085601f83011261435457600080fd5b81358181111561436357600080fd5b86602082850101111561437557600080fd5b60209290920196919550909350505050565b60006020828403121561439957600080fd5b813567ffffffffffffffff8111156143b057600080fd5b612f9184828501614027565b600080604083850312156143cf57600080fd5b823567ffffffffffffffff808211156143e757600080fd5b6143f386838701614027565b9350602085013591508082111561440957600080fd5b5061441685828601614027565b9150509250929050565b60006020828403121561443257600080fd5b5035919050565b60008060006060848603121561444e57600080fd5b83359250602084013567ffffffffffffffff8082111561446d57600080fd5b61447987838801614027565b9350604086013591508082111561448f57600080fd5b5061449c86828701614027565b9150509250925092565b600080600080600060a086880312156144be57600080fd5b853594506144ce602087016140b5565b93506144dc604087016140b5565b9250606086013567ffffffffffffffff811681146144f957600080fd5b915060808601356002811061450d57600080fd5b809150509295509295909350565b60008151808452614533816020860160208601614787565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b7fffffffffffffffffffffffffffffffffffffffff0000000000000000000000008360601b168152600082516145a2816014850160208701614787565b919091016014019392505050565b600082516145c2818460208701614787565b9190910192915050565b600083516145de818460208801614787565b8351908301906145f2818360208801614787565b01949350505050565b600073ffffffffffffffffffffffffffffffffffffffff808716835280861660208401525083604083015260806060830152613439608083018461451b565b602081526000611502602083018461451b565b63ffffffff85811682528416602082015267ffffffffffffffff8316604082015260808101600283106146a9577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b82606083015295945050505050565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff811182821017156146ff576146ff614910565b604052919050565b6000821982111561471a5761471a614854565b500190565b60008261472e5761472e614883565b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561476b5761476b614854565b500290565b60008282101561478257614782614854565b500390565b60005b838110156147a257818101518382015260200161478a565b838111156116a05750506000910152565b600181811c908216806147c757607f821691505b60208210811415614801577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561483957614839614854565b5060010190565b60008261484f5761484f614883565b500690565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7fffffffff000000000000000000000000000000000000000000000000000000008116811461299c57600080fdfea2646970667358221220aac675ba169740d1d8fa9054d0efcec053bde5ea99a02707ee64b4a857f969c564736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000009f4b0d94585a409d6070a1180331eac925231c3e
-----Decoded View---------------
Arg [0] : _signerAddress (address): 0x9F4B0D94585A409D6070A1180331eac925231c3e
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000009f4b0d94585a409d6070a1180331eac925231c3e
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.