Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
0 S1NORTE
Holders
288
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 S1NORTELoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
StudioUno
Compiler Version
v0.8.6+commit.11564f7e
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.6; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/utils/cryptography/SignatureChecker.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; /// @title StudioUno smart-contract contract StudioUno is ERC721, Pausable, Ownable, ReentrancyGuard { using SignatureChecker for address; using Strings for uint256; bool public isArtScriptLocked; bool public publicMintingPaused; string public baseURI; // Current token prices per tier uint256 public publicPrice; uint256 public earlyCollectorPrice; uint256 public holderPrice; uint256 public primeHolderPrice; uint256 public updateMintPrice; uint256 public tokenId; // Last token ID minted uint256 public supplyLeft; // Supply amount available for public token minting address public trustedWallet_A; address public trustedWallet_B; address public signerCryptoarteEarlyCollector; address public signerCryptoarteHolder; address public signerCryptoartePrimeHolder; struct Token { address creatorAddress; string mode; string style; uint8 var1; uint8 var2; bool blackBackground; bool displayAddress; uint256 iteration; } struct ArtScript { string jsonProperties; string script1; string script2; string script3; string script4; string script5; } ArtScript public script; mapping(address => mapping( string => bool )) private mintedCombinations; mapping(address => bool) private hasMinted; mapping(address => bool) private blacklisted; mapping(uint256 => Token) private tokens; // @dev tokenId -> Token event Minted(address _buyer, uint256 _tokenId, uint256 _paid); event Transfered(address _wallet, uint256 _amount); event Updated(address _owner, uint256 _tokenId, uint256 _paid); constructor( address _trustedWallet_A, address _trustedWallet_B, address _signerCryptoarteEarlyCollector, address _signerCryptoarteHolder, address _signerCryptoartePrimeHolder, uint256 _totalSupply, uint256 _publicPrice, uint256 _earlyCollectorPrice, uint256 _holderPrice, uint256 _primeHolderPrice, uint256 _updateMintPrice ) ERC721("StudioUno Norte", "S1NORTE") { supplyLeft = _totalSupply; publicMintingPaused = true; trustedWallet_A = _trustedWallet_A; trustedWallet_B = _trustedWallet_B; publicPrice = _publicPrice; earlyCollectorPrice = _earlyCollectorPrice; holderPrice = _holderPrice; primeHolderPrice = _primeHolderPrice; updateMintPrice = _updateMintPrice; signerCryptoarteEarlyCollector = _signerCryptoarteEarlyCollector; signerCryptoarteHolder = _signerCryptoarteHolder; signerCryptoartePrimeHolder = _signerCryptoartePrimeHolder; _pause(); } function supportsInterface(bytes4 _interfaceId) public view override(ERC721) returns (bool) { return super.supportsInterface(_interfaceId); } modifier whenPublicMintingNotPaused { require(publicMintingPaused == false, "S1: publicMint paused"); _; } modifier whenArtScriptNotLocked { require( !isArtScriptLocked, "S1: ArtScript locked"); _; } // Getters of mappings function getIsMintedCombination(address _walletAddress, string memory combination) public view returns(bool value) { return mintedCombinations[_walletAddress][combination]; } function getHasMinted(address _walletAddress) public view returns(bool value) { return hasMinted[_walletAddress]; } function isBlacklisted(address _walletAddress) public view returns(bool value) { return blacklisted[_walletAddress]; } // Start: Minting operations /// @dev Mint token function publicMint(string memory mode, string memory style, uint8 var1, uint8 var2, bool blackBackground, bool displayAddress) external payable nonReentrant() whenNotPaused whenPublicMintingNotPaused { require(msg.value >= publicPrice, "S1: wrong price"); require(supplyLeft > 0, "S1: sold out"); require(( keccak256(abi.encode(mode)) == keccak256(abi.encode("1")) || keccak256(abi.encode(mode)) == keccak256(abi.encode("2")) || keccak256(abi.encode(mode)) == keccak256(abi.encode("3")) ) , "S1: wrong mode"); require(( keccak256(abi.encode(style)) == keccak256(abi.encode("1")) || keccak256(abi.encode(style)) == keccak256(abi.encode("2")) || keccak256(abi.encode(style)) == keccak256(abi.encode("3")) ) , "S1: wrong style"); supplyLeft--; _mintTo(msg.sender, msg.sender, mode, style, var1, var2, blackBackground, displayAddress); } /// @dev Mint token CryptoArte early collectors function cryptoArteEarlyCollectorMint(bytes memory signature, string memory mode, string memory style, uint8 var1, uint8 var2, bool blackBackground, bool displayAddress) external payable nonReentrant() whenNotPaused { require(isWhitelistedAsCryptoArteEarlyCollector(signature), "S1: not whitelisted"); if (hasMinted[msg.sender] == false) { require(msg.value >= 0, "S1: not free"); } else { require(msg.value >= earlyCollectorPrice, "S1: wrong price"); } require(( keccak256(abi.encode(mode)) == keccak256(abi.encode("1")) || keccak256(abi.encode(mode)) == keccak256(abi.encode("2")) || keccak256(abi.encode(mode)) == keccak256(abi.encode("3")) || keccak256(abi.encode(mode)) == keccak256(abi.encode("4")) ) , "S1: wrong mode"); require(( keccak256(abi.encode(style)) == keccak256(abi.encode("1")) || keccak256(abi.encode(style)) == keccak256(abi.encode("2")) || keccak256(abi.encode(style)) == keccak256(abi.encode("3")) || keccak256(abi.encode(style)) == keccak256(abi.encode("4")) || keccak256(abi.encode(style)) == keccak256(abi.encode("5")) ) , "S1: wrong style"); _mintTo(msg.sender, msg.sender, mode, style, var1, var2, blackBackground, displayAddress); } /// @dev Mint token CryptoArte holders function cryptoArteHolderMint(bytes memory signature, string memory mode, string memory style, uint8 var1, uint8 var2, bool blackBackground, bool displayAddress) external payable nonReentrant() whenNotPaused { require(isWhitelistedAsCryptoArteHolder(signature), "S1: not whitelisted"); require(msg.value >= holderPrice, "S1: wrong price"); require(( keccak256(abi.encode(mode)) == keccak256(abi.encode("1")) || keccak256(abi.encode(mode)) == keccak256(abi.encode("2")) || keccak256(abi.encode(mode)) == keccak256(abi.encode("3")) || keccak256(abi.encode(mode)) == keccak256(abi.encode("4")) ) , "S1: wrong mode"); require(( keccak256(abi.encode(style)) == keccak256(abi.encode("1")) || keccak256(abi.encode(style)) == keccak256(abi.encode("2")) || keccak256(abi.encode(style)) == keccak256(abi.encode("3")) || keccak256(abi.encode(style)) == keccak256(abi.encode("4")) ) , "S1: wrong style"); _mintTo(msg.sender, msg.sender, mode, style, var1, var2, blackBackground, displayAddress); } /// @dev Mint token CryptoArte prime holders function cryptoArtePrimeHolderMint(bytes memory signature, string memory mode, string memory style, uint8 var1, uint8 var2, bool blackBackground, bool displayAddress) external payable nonReentrant() whenNotPaused { require(isWhitelistedAsCryptoArtePrimeHolder(signature), "S1: not whitelisted"); if (hasMinted[msg.sender] == false) { require(msg.value >= 0, "S1: not free"); } else { require(msg.value >= primeHolderPrice, "S1: wrong price"); } require(( keccak256(abi.encode(mode)) == keccak256(abi.encode("1")) || keccak256(abi.encode(mode)) == keccak256(abi.encode("2")) || keccak256(abi.encode(mode)) == keccak256(abi.encode("3")) || keccak256(abi.encode(mode)) == keccak256(abi.encode("4")) ) , "S1: wrong mode"); require(( keccak256(abi.encode(style)) == keccak256(abi.encode("1")) || keccak256(abi.encode(style)) == keccak256(abi.encode("2")) || keccak256(abi.encode(style)) == keccak256(abi.encode("3")) || keccak256(abi.encode(style)) == keccak256(abi.encode("4")) || keccak256(abi.encode(style)) == keccak256(abi.encode("6")) ) , "S1: wrong style"); _mintTo(msg.sender, msg.sender, mode, style, var1, var2, blackBackground, displayAddress); } /// @dev Mint token internal function freeMintTo(address _receiver, address creatorAddress, string memory mode, string memory style, uint8 var1, uint8 var2, bool blackBackground, bool displayAddress) external nonReentrant() onlyOwner { _mintTo(_receiver, creatorAddress, mode, style, var1, var2, blackBackground, displayAddress); } /// @dev Increment tokenId, mint token, emit event function _mintTo(address _receiver, address creatorAddress, string memory mode, string memory style, uint8 var1, uint8 var2, bool blackBackground, bool displayAddress) internal { require(!blacklisted[msg.sender], "S1: blacklisted"); string memory combination = string(abi.encodePacked(mode, style)); require(mintedCombinations[creatorAddress][combination] == false, "S1: combination already minted"); mintedCombinations[creatorAddress][combination] = true; hasMinted[creatorAddress] = true; tokenId++; setTokenTraits(tokenId, creatorAddress, mode, style, var1, var2, blackBackground, displayAddress); if (msg.value > 0) { payment(); } super._safeMint(_receiver, tokenId); emit Minted(_receiver, tokenId, msg.value); } /// @dev Update token function updateMint(uint256 _tokenId, uint8 var1, uint8 var2, bool blackBackground, bool displayAddress) external payable nonReentrant() whenNotPaused { require(!blacklisted[msg.sender], "S1: blacklisted"); require(msg.sender == ownerOf(_tokenId), "S1: not owner"); require(msg.value >= updateMintPrice, "S1: wrong price"); Token storage token = tokens[_tokenId]; token.var1 = var1; token.var2 = var2; token.blackBackground = blackBackground; token.displayAddress = displayAddress; token.iteration = token.iteration + 1; if (msg.value > 0) { payment(); } emit Updated(msg.sender, _tokenId, msg.value); } // End: Minting operations // Start: Whitelisting operations function isWhitelistedAsCryptoArteEarlyCollector(bytes memory signature) internal view returns (bool) { bytes32 result = keccak256(abi.encodePacked(msg.sender)); bytes32 hash = keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", result)); return signerCryptoarteEarlyCollector.isValidSignatureNow(hash, signature); } function isWhitelistedAsCryptoArteHolder(bytes memory signature) internal view returns (bool) { bytes32 result = keccak256(abi.encodePacked(msg.sender)); bytes32 hash = keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", result)); return signerCryptoarteHolder.isValidSignatureNow(hash, signature); } function isWhitelistedAsCryptoArtePrimeHolder(bytes memory signature) internal view returns (bool) { bytes32 result = keccak256(abi.encodePacked(msg.sender)); bytes32 hash = keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", result)); return signerCryptoartePrimeHolder.isValidSignatureNow(hash, signature); } function setSignerCryptoarteEarlyCollector(address _signer) external onlyOwner { signerCryptoarteEarlyCollector = _signer; } function setSignerCryptoarteHolder(address _signer) external onlyOwner { signerCryptoarteHolder = _signer; } function setSignerCryptoartePrimeHolder(address _signer) external onlyOwner { signerCryptoartePrimeHolder = _signer; } // End: Whitelisting operations // Start: Blacklisting operations function setBlacklisted(address _addr, bool _value) external onlyOwner { blacklisted[_addr] = _value; } // End: Blacklisting operations // Start: Price operations /// @param _price New price function setPublicPrice(uint256 _price) external onlyOwner { publicPrice = _price; } /// @param _price New price function setEarlyCollectorPrice(uint256 _price) external onlyOwner { earlyCollectorPrice = _price; } /// @param _price New price function setHolderPrice(uint256 _price) external onlyOwner { holderPrice = _price; } /// @param _price New price function setPrimeHolderPrice(uint256 _price) external onlyOwner { primeHolderPrice = _price; } /// @param _price New price function setUpdateMintPrice(uint256 _price) external onlyOwner { updateMintPrice = _price; } // End: Price operations // Start: Token operations function getToken(uint256 _tokenId) external view returns (Token memory _token) { return tokens[_tokenId]; } function setTokenTraits(uint256 _tokenId, address creatorAddress, string memory mode, string memory style, uint8 var1, uint8 var2, bool blackBackground, bool displayAddress) internal { Token storage token = tokens[_tokenId]; token.creatorAddress = creatorAddress; token.mode = mode; token.style = style; token.var1 = var1; token.var2 = var2; token.blackBackground = blackBackground; token.displayAddress = displayAddress; token.iteration = 1; } function tokenURI(uint256 _tokenId) public view virtual override returns (string memory) { require(_exists(_tokenId), "S1: invalid token"); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, _tokenId.toString())) : ""; } function setBaseURI(string memory _newBaseURI) external onlyOwner { baseURI = _newBaseURI; } // End: Token operations //Start: Script operations function setArtScriptJSONProperties(string memory _jsonProperties) external onlyOwner whenArtScriptNotLocked { script.jsonProperties = _jsonProperties; } function setArtScript1(string memory _script1) external onlyOwner whenArtScriptNotLocked { script.script1 = _script1; } function setArtScript2(string memory _script2) external onlyOwner whenArtScriptNotLocked { script.script2 = _script2; } function setArtScript3(string memory _script3) external onlyOwner whenArtScriptNotLocked { script.script3 = _script3; } function setArtScript4(string memory _script4) external onlyOwner whenArtScriptNotLocked { script.script4 = _script4; } function setArtScript5(string memory _script5) external onlyOwner whenArtScriptNotLocked { script.script5 = _script5; } function setArtScriptLock() external onlyOwner whenArtScriptNotLocked { isArtScriptLocked = true; } //End: Script operations // Start: Trusted wallets operations function payment() internal { require(msg.value > 0, "S1: invalid value"); uint256 amount = (msg.value * 95) / 100; (bool success, ) = trustedWallet_A.call{value: amount}(""); require(success, "S1: Transfer A failed"); emit Transfered(trustedWallet_A, amount); amount = msg.value - amount; (success, ) = trustedWallet_B.call{value: amount}(""); require(success, "S1: Transfer B failed"); emit Transfered(trustedWallet_B, amount); } function setTrustedWallet_A(address _trustedWallet) external onlyOwner { trustedWallet_A = _trustedWallet; } function setTrustedWallet_B(address _trustedWallet) external onlyOwner { trustedWallet_B = _trustedWallet; } // End: Trusted wallets operations // Start Pauseable requirement function _beforeTokenTransfer( address _from, address _to, uint256 _tokenId ) internal virtual override { super._beforeTokenTransfer(_from, _to, _tokenId); require(!paused(), "S1: paused"); } /// @dev Pause contract function pause() external onlyOwner { _pause(); } /// @dev Unpause contract function unpause() external onlyOwner { _unpause(); } /// @dev Pause publicMint() function pausePublicMinting() external onlyOwner { publicMintingPaused = true; } /// @dev Unpause publicMint() function unpausePublicMinting() external onlyOwner { publicMintingPaused = false; } // End Pausable requirement }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT 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 pragma solidity ^0.8.0; import "./ECDSA.sol"; import "../Address.sol"; import "../../interfaces/IERC1271.sol"; /** * @dev Signature verification helper: Provide a single mechanism to verify both private-key (EOA) ECDSA signature and * ERC1271 contract sigantures. Using this instead of ECDSA.recover in your contract will make them compatible with * smart contract wallets such as Argent and Gnosis. * * Note: unlike ECDSA signatures, contract signature's are revocable, and the outcome of this function can thus change * through time. It could return true at block N and false at block N+1 (or the opposite). * * _Available since v4.1._ */ library SignatureChecker { function isValidSignatureNow( address signer, bytes32 hash, bytes memory signature ) internal view returns (bool) { if (Address.isContract(signer)) { try IERC1271(signer).isValidSignature(hash, signature) returns (bytes4 magicValue) { return magicValue == IERC1271(signer).isValidSignature.selector; } catch { return false; } } else { return ECDSA.recover(hash, signature) == signer; } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @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 { /** * @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. * * 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] */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { // 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 recover(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 recover(hash, r, vs); } else { revert("ECDSA: invalid signature length"); } } /** * @dev Overload of {ECDSA-recover} 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.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { bytes32 s; uint8 v; assembly { s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) v := add(shr(255, vs), 27) } return recover(hash, v, r, s); } /** * @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) { // 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 (281): 0 < s < secp256k1n ÷ 2 + 1, and for v in (282): 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. require( uint256(s) <= 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0, "ECDSA: invalid signature 's' value" ); require(v == 27 || v == 28, "ECDSA: invalid signature 'v' value"); // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); require(signer != address(0), "ECDSA: invalid signature"); return signer; } /** * @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 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 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 pragma solidity ^0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @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 * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 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); } function _verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) private 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 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 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 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 pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // 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. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @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 || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @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), "ERC721Metadata: 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 virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: 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 { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _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 { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @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. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @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`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @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 { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * 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 ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), 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("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * 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, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT 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 make 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.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 pragma solidity ^0.8.0; /** * @dev Interface of the ERC1271 standard signature validation method for * contracts as defined in https://eips.ethereum.org/EIPS/eip-1271[ERC-1271]. * * _Available since v4.1._ */ interface IERC1271 { /** * @dev Should return whether the signature provided is valid for the provided data * @param hash Hash of the data to be signed * @param signature Signature byte array associated with _data */ function isValidSignature(bytes32 hash, bytes memory signature) external view returns (bytes4 magicValue); }
// SPDX-License-Identifier: MIT 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() { _setOwner(_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 { _setOwner(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"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "berlin", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_trustedWallet_A","type":"address"},{"internalType":"address","name":"_trustedWallet_B","type":"address"},{"internalType":"address","name":"_signerCryptoarteEarlyCollector","type":"address"},{"internalType":"address","name":"_signerCryptoarteHolder","type":"address"},{"internalType":"address","name":"_signerCryptoartePrimeHolder","type":"address"},{"internalType":"uint256","name":"_totalSupply","type":"uint256"},{"internalType":"uint256","name":"_publicPrice","type":"uint256"},{"internalType":"uint256","name":"_earlyCollectorPrice","type":"uint256"},{"internalType":"uint256","name":"_holderPrice","type":"uint256"},{"internalType":"uint256","name":"_primeHolderPrice","type":"uint256"},{"internalType":"uint256","name":"_updateMintPrice","type":"uint256"}],"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":false,"internalType":"address","name":"_buyer","type":"address"},{"indexed":false,"internalType":"uint256","name":"_tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_paid","type":"uint256"}],"name":"Minted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_wallet","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"Transfered","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"_tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_paid","type":"uint256"}],"name":"Updated","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":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"string","name":"mode","type":"string"},{"internalType":"string","name":"style","type":"string"},{"internalType":"uint8","name":"var1","type":"uint8"},{"internalType":"uint8","name":"var2","type":"uint8"},{"internalType":"bool","name":"blackBackground","type":"bool"},{"internalType":"bool","name":"displayAddress","type":"bool"}],"name":"cryptoArteEarlyCollectorMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"string","name":"mode","type":"string"},{"internalType":"string","name":"style","type":"string"},{"internalType":"uint8","name":"var1","type":"uint8"},{"internalType":"uint8","name":"var2","type":"uint8"},{"internalType":"bool","name":"blackBackground","type":"bool"},{"internalType":"bool","name":"displayAddress","type":"bool"}],"name":"cryptoArteHolderMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"string","name":"mode","type":"string"},{"internalType":"string","name":"style","type":"string"},{"internalType":"uint8","name":"var1","type":"uint8"},{"internalType":"uint8","name":"var2","type":"uint8"},{"internalType":"bool","name":"blackBackground","type":"bool"},{"internalType":"bool","name":"displayAddress","type":"bool"}],"name":"cryptoArtePrimeHolderMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"earlyCollectorPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"address","name":"creatorAddress","type":"address"},{"internalType":"string","name":"mode","type":"string"},{"internalType":"string","name":"style","type":"string"},{"internalType":"uint8","name":"var1","type":"uint8"},{"internalType":"uint8","name":"var2","type":"uint8"},{"internalType":"bool","name":"blackBackground","type":"bool"},{"internalType":"bool","name":"displayAddress","type":"bool"}],"name":"freeMintTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_walletAddress","type":"address"}],"name":"getHasMinted","outputs":[{"internalType":"bool","name":"value","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_walletAddress","type":"address"},{"internalType":"string","name":"combination","type":"string"}],"name":"getIsMintedCombination","outputs":[{"internalType":"bool","name":"value","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getToken","outputs":[{"components":[{"internalType":"address","name":"creatorAddress","type":"address"},{"internalType":"string","name":"mode","type":"string"},{"internalType":"string","name":"style","type":"string"},{"internalType":"uint8","name":"var1","type":"uint8"},{"internalType":"uint8","name":"var2","type":"uint8"},{"internalType":"bool","name":"blackBackground","type":"bool"},{"internalType":"bool","name":"displayAddress","type":"bool"},{"internalType":"uint256","name":"iteration","type":"uint256"}],"internalType":"struct StudioUno.Token","name":"_token","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"holderPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isArtScriptLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_walletAddress","type":"address"}],"name":"isBlacklisted","outputs":[{"internalType":"bool","name":"value","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pausePublicMinting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"primeHolderPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"mode","type":"string"},{"internalType":"string","name":"style","type":"string"},{"internalType":"uint8","name":"var1","type":"uint8"},{"internalType":"uint8","name":"var2","type":"uint8"},{"internalType":"bool","name":"blackBackground","type":"bool"},{"internalType":"bool","name":"displayAddress","type":"bool"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"publicMintingPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"script","outputs":[{"internalType":"string","name":"jsonProperties","type":"string"},{"internalType":"string","name":"script1","type":"string"},{"internalType":"string","name":"script2","type":"string"},{"internalType":"string","name":"script3","type":"string"},{"internalType":"string","name":"script4","type":"string"},{"internalType":"string","name":"script5","type":"string"}],"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":"_script1","type":"string"}],"name":"setArtScript1","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_script2","type":"string"}],"name":"setArtScript2","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_script3","type":"string"}],"name":"setArtScript3","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_script4","type":"string"}],"name":"setArtScript4","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_script5","type":"string"}],"name":"setArtScript5","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_jsonProperties","type":"string"}],"name":"setArtScriptJSONProperties","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setArtScriptLock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"},{"internalType":"bool","name":"_value","type":"bool"}],"name":"setBlacklisted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setEarlyCollectorPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setHolderPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPrimeHolderPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPublicPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signer","type":"address"}],"name":"setSignerCryptoarteEarlyCollector","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signer","type":"address"}],"name":"setSignerCryptoarteHolder","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signer","type":"address"}],"name":"setSignerCryptoartePrimeHolder","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_trustedWallet","type":"address"}],"name":"setTrustedWallet_A","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_trustedWallet","type":"address"}],"name":"setTrustedWallet_B","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setUpdateMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signerCryptoarteEarlyCollector","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"signerCryptoarteHolder","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"signerCryptoartePrimeHolder","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"supplyLeft","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"_interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenId","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":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"trustedWallet_A","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"trustedWallet_B","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpausePublicMinting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint8","name":"var1","type":"uint8"},{"internalType":"uint8","name":"var2","type":"uint8"},{"internalType":"bool","name":"blackBackground","type":"bool"},{"internalType":"bool","name":"displayAddress","type":"bool"}],"name":"updateMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"updateMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b50604051620052f9380380620052f9833981016040819052620000349162000317565b604080518082018252600f81526e53747564696f556e6f204e6f72746560881b60208083019182528351808501909452600784526653314e4f52544560c81b9084015281519192916200008a9160009162000254565b508051620000a090600190602084019062000254565b50506006805460ff1916905550620000b8336200015c565b600160075560108690556008805461ff001916610100179055601180546001600160a01b03808e166001600160a01b031992831617909255601280548d8416908316179055600a879055600b869055600c859055600d849055600e839055601380548c8416908316179055601480548b841690831617905560158054928a16929091169190911790556200014b620001b6565b505050505050505050505062000401565b600680546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60065460ff1615620002015760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640160405180910390fd5b6006805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258620002373390565b6040516001600160a01b03909116815260200160405180910390a1565b8280546200026290620003c4565b90600052602060002090601f016020900481019282620002865760008555620002d1565b82601f10620002a157805160ff1916838001178555620002d1565b82800160010185558215620002d1579182015b82811115620002d1578251825591602001919060010190620002b4565b50620002df929150620002e3565b5090565b5b80821115620002df5760008155600101620002e4565b80516001600160a01b03811681146200031257600080fd5b919050565b60008060008060008060008060008060006101608c8e0312156200033a57600080fd5b620003458c620002fa565b9a506200035560208d01620002fa565b99506200036560408d01620002fa565b98506200037560608d01620002fa565b97506200038560808d01620002fa565b965060a08c0151955060c08c0151945060e08c015193506101008c015192506101208c015191506101408c015190509295989b509295989b9093969950565b600181811c90821680620003d957607f821691505b60208210811415620003fb57634e487b7160e01b600052602260045260246000fd5b50919050565b614ee880620004116000396000f3fe6080604052600436106103d95760003560e01c80638456cb59116101fd578063dfeab5c811610118578063f33063e5116100ab578063faa6e7e41161007a578063faa6e7e414610b16578063fae081d514610b36578063fdcf9d0714610b56578063fe083aa514610b6c578063fe575a8714610b7f57600080fd5b8063f33063e514610aa1578063f53f1b5b14610ac1578063f5ca6f5d14610ae1578063fa2a3d9c14610af657600080fd5b8063e9ef37a5116100e7578063e9ef37a514610a24578063ebe9eb9f14610a44578063ee906ae014610a6b578063f2fde38b14610a8157600080fd5b8063dfeab5c8146109a4578063e4b50cb8146109c4578063e5c9b896146109f1578063e985e9c514610a0457600080fd5b8063a2ca552511610190578063c62752551161015f578063c627525514610924578063c716b64114610944578063c87b56dd14610964578063d01dd6d21461098457600080fd5b8063a2ca5525146108b4578063a945bf80146108d4578063adcc1e27146108ea578063b88d4fde1461090457600080fd5b80639afee9dc116101cc5780639afee9dc1461084a578063a1f1781414610860578063a223c7f514610875578063a22cb4651461089457600080fd5b80638456cb59146107dd57806386e29b1c146107f25780638da5cb5b1461081257806395d89b411461083557600080fd5b80633dde0934116102f857806355a94eff1161028b57806362610c871161025a57806362610c87146107535780636352211e146107735780636c0360eb1461079357806370a08231146107a8578063715018a6146107c857600080fd5b806355a94eff146106e557806355ea73281461070557806355f804b31461071b5780635c975abb1461073b57600080fd5b80634414481e116102c75780634414481e1461067257806345647d53146106855780634a76e663146106a557806352716707146106c557600080fd5b80633dde0934146105e45780633f4ba83a1461060457806340e3c2a31461061957806342842e0e1461065257600080fd5b80631b186339116103705780632a72539a1161033f5780632a72539a1461056e5780632b83a3561461058e578063397fb83d146105ae5780633dc91693146105ce57600080fd5b80631b186339146105085780631cc7f2501461051b57806320012b381461052e57806323b872dd1461054e57600080fd5b8063095ea7b3116103ac578063095ea7b31461048f5780630b74f6ee146104af57806316130fe9146104cf57806317d70f7c146104e457600080fd5b806301ffc9a7146103de578063033b8e2d1461041357806306fdde0314610435578063081812fc14610457575b600080fd5b3480156103ea57600080fd5b506103fe6103f93660046145d6565b610bb8565b60405190151581526020015b60405180910390f35b34801561041f57600080fd5b5061043361042e36600461437a565b610bc9565b005b34801561044157600080fd5b5061044a610c24565b60405161040a91906149a9565b34801561046357600080fd5b506104776104723660046147b5565b610cb6565b6040516001600160a01b03909116815260200161040a565b34801561049b57600080fd5b506104336104aa3660046145ac565b610d4b565b3480156104bb57600080fd5b506104336104ca3660046147b5565b610e61565b3480156104db57600080fd5b50610433610e96565b3480156104f057600080fd5b506104fa600f5481565b60405190815260200161040a565b6104336105163660046147ce565b610ef8565b610433610529366004614610565b6110d1565b34801561053a57600080fd5b5061043361054936600461437a565b6114f3565b34801561055a57600080fd5b50610433610569366004614490565b611545565b34801561057a57600080fd5b5061043361058936600461437a565b611576565b34801561059a57600080fd5b50601154610477906001600160a01b031681565b3480156105ba57600080fd5b50601254610477906001600160a01b031681565b3480156105da57600080fd5b506104fa600e5481565b3480156105f057600080fd5b506104336105ff3660046146db565b6115c8565b34801561061057600080fd5b50610433611632565b34801561062557600080fd5b506103fe61063436600461437a565b6001600160a01b03166000908152601d602052604090205460ff1690565b34801561065e57600080fd5b5061043361066d366004614490565b61166c565b610433610680366004614710565b611687565b34801561069157600080fd5b50601454610477906001600160a01b031681565b3480156106b157600080fd5b50601554610477906001600160a01b031681565b3480156106d157600080fd5b506104336106e03660046147b5565b6119fb565b3480156106f157600080fd5b506104336107003660046147b5565b611a30565b34801561071157600080fd5b506104fa600c5481565b34801561072757600080fd5b506104336107363660046146db565b611a65565b34801561074757600080fd5b5060065460ff166103fe565b34801561075f57600080fd5b5061043361076e3660046146db565b611aa8565b34801561077f57600080fd5b5061047761078e3660046147b5565b611b0e565b34801561079f57600080fd5b5061044a611b85565b3480156107b457600080fd5b506104fa6107c336600461437a565b611c13565b3480156107d457600080fd5b50610433611c9a565b3480156107e957600080fd5b50610433611cd4565b3480156107fe57600080fd5b5061043361080d3660046146db565b611d0c565b34801561081e57600080fd5b5060065461010090046001600160a01b0316610477565b34801561084157600080fd5b5061044a611d72565b34801561085657600080fd5b506104fa600b5481565b34801561086c57600080fd5b50610433611d81565b34801561088157600080fd5b506008546103fe90610100900460ff1681565b3480156108a057600080fd5b506104336108af366004614534565b611dbe565b3480156108c057600080fd5b506104336108cf36600461437a565b611e83565b3480156108e057600080fd5b506104fa600a5481565b3480156108f657600080fd5b506008546103fe9060ff1681565b34801561091057600080fd5b5061043361091f3660046144cc565b611ed5565b34801561093057600080fd5b5061043361093f3660046147b5565b611f0d565b34801561095057600080fd5b5061043361095f3660046143c8565b611f42565b34801561097057600080fd5b5061044a61097f3660046147b5565b611fb9565b34801561099057600080fd5b5061043361099f366004614534565b612070565b3480156109b057600080fd5b506104336109bf3660046146db565b6120cb565b3480156109d057600080fd5b506109e46109df3660046147b5565b612131565b60405161040a9190614c8f565b6104336109ff366004614610565b61230f565b348015610a1057600080fd5b506103fe610a1f366004614395565b612610565b348015610a3057600080fd5b50610433610a3f3660046147b5565b61263e565b348015610a5057600080fd5b50610a59612673565b60405161040a969594939291906149bc565b348015610a7757600080fd5b506104fa600d5481565b348015610a8d57600080fd5b50610433610a9c36600461437a565b6129cb565b348015610aad57600080fd5b50610433610abc36600461437a565b612a6c565b348015610acd57600080fd5b50610433610adc3660046146db565b612abe565b348015610aed57600080fd5b50610433612b24565b348015610b0257600080fd5b50601354610477906001600160a01b031681565b348015610b2257600080fd5b50610433610b313660046146db565b612b65565b348015610b4257600080fd5b506103fe610b5136600461455e565b612bcb565b348015610b6257600080fd5b506104fa60105481565b610433610b7a366004614610565b612c0c565b348015610b8b57600080fd5b506103fe610b9a36600461437a565b6001600160a01b03166000908152601e602052604090205460ff1690565b6000610bc382612f93565b92915050565b6006546001600160a01b03610100909104163314610c025760405162461bcd60e51b8152600401610bf990614b45565b60405180910390fd5b601180546001600160a01b0319166001600160a01b0392909216919091179055565b606060008054610c3390614dda565b80601f0160208091040260200160405190810160405280929190818152602001828054610c5f90614dda565b8015610cac5780601f10610c8157610100808354040283529160200191610cac565b820191906000526020600020905b815481529060010190602001808311610c8f57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610d2f5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610bf9565b506000908152600460205260409020546001600160a01b031690565b6000610d5682611b0e565b9050806001600160a01b0316836001600160a01b03161415610dc45760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610bf9565b336001600160a01b0382161480610de05750610de08133612610565b610e525760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610bf9565b610e5c8383612fe3565b505050565b6006546001600160a01b03610100909104163314610e915760405162461bcd60e51b8152600401610bf990614b45565b600c55565b6006546001600160a01b03610100909104163314610ec65760405162461bcd60e51b8152600401610bf990614b45565b60085460ff1615610ee95760405162461bcd60e51b8152600401610bf990614bbe565b6008805460ff19166001179055565b60026007541415610f1b5760405162461bcd60e51b8152600401610bf990614c58565b600260075560065460ff1615610f435760405162461bcd60e51b8152600401610bf990614b1b565b336000908152601e602052604090205460ff1615610f955760405162461bcd60e51b815260206004820152600f60248201526e14cc4e88189b1858dadb1a5cdd1959608a1b6044820152606401610bf9565b610f9e85611b0e565b6001600160a01b0316336001600160a01b031614610fee5760405162461bcd60e51b815260206004820152600d60248201526c29989d103737ba1037bbb732b960991b6044820152606401610bf9565b600e543410156110105760405162461bcd60e51b8152600401610bf990614b95565b6000858152601f6020526040902060038101805460ff87811661ffff1990921691909117610100918716919091021763ffff00001916620100008515150263ff0000001916176301000000841515021790556004810154611072906001614d35565b6004820155341561108557611085613051565b6040805133815260208101889052348183015290517f99cc044fd36aeecc372e0e5efa3b9fb561c7bd355a7c7de464a05776716b14769181900360600190a15050600160075550505050565b600260075414156110f45760405162461bcd60e51b8152600401610bf990614c58565b600260075560065460ff161561111c5760405162461bcd60e51b8152600401610bf990614b1b565b61112587613286565b6111415760405162461bcd60e51b8152600401610bf990614ac6565b336000908152601d602052604090205460ff1661115d5761117f565b600d5434101561117f5760405162461bcd60e51b8152600401610bf990614b95565b60405160200161118e90614c3d565b60405160208183030381529060405280519060200120866040516020016111b591906149a9565b60405160208183030381529060405280519060200120148061122057506040516020016111e190614b7a565b604051602081830303815290604052805190602001208660405160200161120891906149a9565b60405160208183030381529060405280519060200120145b80611274575060405160200161123590614aab565b604051602081830303815290604052805190602001208660405160200161125c91906149a9565b60405160208183030381529060405280519060200120145b806112c8575060405160200161128990614a3e565b60405160208183030381529060405280519060200120866040516020016112b091906149a9565b60405160208183030381529060405280519060200120145b6112e45760405162461bcd60e51b8152600401610bf990614af3565b6040516020016112f390614c3d565b604051602081830303815290604052805190602001208560405160200161131a91906149a9565b604051602081830303815290604052805190602001201480611385575060405160200161134690614b7a565b604051602081830303815290604052805190602001208560405160200161136d91906149a9565b60405160208183030381529060405280519060200120145b806113d9575060405160200161139a90614aab565b60405160208183030381529060405280519060200120856040516020016113c191906149a9565b60405160208183030381529060405280519060200120145b8061142d57506040516020016113ee90614a3e565b604051602081830303815290604052805190602001208560405160200161141591906149a9565b60405160208183030381529060405280519060200120145b806114975750604051602001611458906020808252600190820152601b60f91b604082015260600190565b604051602081830303815290604052805190602001208560405160200161147f91906149a9565b60405160208183030381529060405280519060200120145b6114d55760405162461bcd60e51b815260206004820152600f60248201526e53313a2077726f6e67207374796c6560881b6044820152606401610bf9565b6114e53333888888888888613320565b505060016007555050505050565b6006546001600160a01b036101009091041633146115235760405162461bcd60e51b8152600401610bf990614b45565b601480546001600160a01b0319166001600160a01b0392909216919091179055565b61154f3382613520565b61156b5760405162461bcd60e51b8152600401610bf990614bec565b610e5c8383836135ef565b6006546001600160a01b036101009091041633146115a65760405162461bcd60e51b8152600401610bf990614b45565b601580546001600160a01b0319166001600160a01b0392909216919091179055565b6006546001600160a01b036101009091041633146115f85760405162461bcd60e51b8152600401610bf990614b45565b60085460ff161561161b5760405162461bcd60e51b8152600401610bf990614bbe565b805161162e906019906020840190614217565b5050565b6006546001600160a01b036101009091041633146116625760405162461bcd60e51b8152600401610bf990614b45565b61166a61379a565b565b610e5c83838360405180602001604052806000815250611ed5565b600260075414156116aa5760405162461bcd60e51b8152600401610bf990614c58565b600260075560065460ff16156116d25760405162461bcd60e51b8152600401610bf990614b1b565b600854610100900460ff16156117225760405162461bcd60e51b815260206004820152601560248201527414cc4e881c1d589b1a58d35a5b9d081c185d5cd959605a1b6044820152606401610bf9565b600a543410156117445760405162461bcd60e51b8152600401610bf990614b95565b6000601054116117855760405162461bcd60e51b815260206004820152600c60248201526b14cc4e881cdbdb19081bdd5d60a21b6044820152606401610bf9565b60405160200161179490614c3d565b60405160208183030381529060405280519060200120866040516020016117bb91906149a9565b60405160208183030381529060405280519060200120148061182657506040516020016117e790614b7a565b604051602081830303815290604052805190602001208660405160200161180e91906149a9565b60405160208183030381529060405280519060200120145b8061187a575060405160200161183b90614aab565b604051602081830303815290604052805190602001208660405160200161186291906149a9565b60405160208183030381529060405280519060200120145b6118965760405162461bcd60e51b8152600401610bf990614af3565b6040516020016118a590614c3d565b60405160208183030381529060405280519060200120856040516020016118cc91906149a9565b60405160208183030381529060405280519060200120148061193757506040516020016118f890614b7a565b604051602081830303815290604052805190602001208560405160200161191f91906149a9565b60405160208183030381529060405280519060200120145b8061198b575060405160200161194c90614aab565b604051602081830303815290604052805190602001208560405160200161197391906149a9565b60405160208183030381529060405280519060200120145b6119c95760405162461bcd60e51b815260206004820152600f60248201526e53313a2077726f6e67207374796c6560881b6044820152606401610bf9565b601080549060006119d983614dc3565b91905055506119ee3333888888888888613320565b5050600160075550505050565b6006546001600160a01b03610100909104163314611a2b5760405162461bcd60e51b8152600401610bf990614b45565b600b55565b6006546001600160a01b03610100909104163314611a605760405162461bcd60e51b8152600401610bf990614b45565b600e55565b6006546001600160a01b03610100909104163314611a955760405162461bcd60e51b8152600401610bf990614b45565b805161162e906009906020840190614217565b6006546001600160a01b03610100909104163314611ad85760405162461bcd60e51b8152600401610bf990614b45565b60085460ff1615611afb5760405162461bcd60e51b8152600401610bf990614bbe565b805161162e906017906020840190614217565b6000818152600260205260408120546001600160a01b031680610bc35760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610bf9565b60098054611b9290614dda565b80601f0160208091040260200160405190810160405280929190818152602001828054611bbe90614dda565b8015611c0b5780601f10611be057610100808354040283529160200191611c0b565b820191906000526020600020905b815481529060010190602001808311611bee57829003601f168201915b505050505081565b60006001600160a01b038216611c7e5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610bf9565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b03610100909104163314611cca5760405162461bcd60e51b8152600401610bf990614b45565b61166a600061382d565b6006546001600160a01b03610100909104163314611d045760405162461bcd60e51b8152600401610bf990614b45565b61166a613887565b6006546001600160a01b03610100909104163314611d3c5760405162461bcd60e51b8152600401610bf990614b45565b60085460ff1615611d5f5760405162461bcd60e51b8152600401610bf990614bbe565b805161162e906018906020840190614217565b606060018054610c3390614dda565b6006546001600160a01b03610100909104163314611db15760405162461bcd60e51b8152600401610bf990614b45565b6008805461ff0019169055565b6001600160a01b038216331415611e175760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610bf9565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6006546001600160a01b03610100909104163314611eb35760405162461bcd60e51b8152600401610bf990614b45565b601380546001600160a01b0319166001600160a01b0392909216919091179055565b611edf3383613520565b611efb5760405162461bcd60e51b8152600401610bf990614bec565b611f07848484846138df565b50505050565b6006546001600160a01b03610100909104163314611f3d5760405162461bcd60e51b8152600401610bf990614b45565b600a55565b60026007541415611f655760405162461bcd60e51b8152600401610bf990614c58565b60026007556006546001600160a01b03610100909104163314611f9a5760405162461bcd60e51b8152600401610bf990614b45565b611faa8888888888888888613320565b50506001600755505050505050565b6000818152600260205260409020546060906001600160a01b03166120145760405162461bcd60e51b815260206004820152601160248201527029989d1034b73b30b634b2103a37b5b2b760791b6044820152606401610bf9565b60006009805461202390614dda565b90501161203f5760405180602001604052806000815250610bc3565b600961204a83613912565b60405160200161205b9291906148bf565b60405160208183030381529060405292915050565b6006546001600160a01b036101009091041633146120a05760405162461bcd60e51b8152600401610bf990614b45565b6001600160a01b03919091166000908152601e60205260409020805460ff1916911515919091179055565b6006546001600160a01b036101009091041633146120fb5760405162461bcd60e51b8152600401610bf990614b45565b60085460ff161561211e5760405162461bcd60e51b8152600401610bf990614bbe565b805161162e90601a906020840190614217565b604080516101008101825260008082526060602083018190529282018390529181018290526080810182905260a0810182905260c0810182905260e08101919091526000828152601f60209081526040918290208251610100810190935280546001600160a01b0316835260018101805491928401916121b090614dda565b80601f01602080910402602001604051908101604052809291908181526020018280546121dc90614dda565b80156122295780601f106121fe57610100808354040283529160200191612229565b820191906000526020600020905b81548152906001019060200180831161220c57829003601f168201915b5050505050815260200160028201805461224290614dda565b80601f016020809104026020016040519081016040528092919081815260200182805461226e90614dda565b80156122bb5780601f10612290576101008083540402835291602001916122bb565b820191906000526020600020905b81548152906001019060200180831161229e57829003601f168201915b5050509183525050600382015460ff80821660208401526101008204811660408401526201000082048116151560608401526301000000909104161515608082015260049091015460a09091015292915050565b600260075414156123325760405162461bcd60e51b8152600401610bf990614c58565b600260075560065460ff161561235a5760405162461bcd60e51b8152600401610bf990614b1b565b61236387613a10565b61237f5760405162461bcd60e51b8152600401610bf990614ac6565b600c543410156123a15760405162461bcd60e51b8152600401610bf990614b95565b6040516020016123b090614c3d565b60405160208183030381529060405280519060200120866040516020016123d791906149a9565b604051602081830303815290604052805190602001201480612442575060405160200161240390614b7a565b604051602081830303815290604052805190602001208660405160200161242a91906149a9565b60405160208183030381529060405280519060200120145b80612496575060405160200161245790614aab565b604051602081830303815290604052805190602001208660405160200161247e91906149a9565b60405160208183030381529060405280519060200120145b806124ea57506040516020016124ab90614a3e565b60405160208183030381529060405280519060200120866040516020016124d291906149a9565b60405160208183030381529060405280519060200120145b6125065760405162461bcd60e51b8152600401610bf990614af3565b60405160200161251590614c3d565b604051602081830303815290604052805190602001208560405160200161253c91906149a9565b6040516020818303038152906040528051906020012014806125a7575060405160200161256890614b7a565b604051602081830303815290604052805190602001208560405160200161258f91906149a9565b60405160208183030381529060405280519060200120145b806125fb57506040516020016125bc90614aab565b60405160208183030381529060405280519060200120856040516020016125e391906149a9565b60405160208183030381529060405280519060200120145b80611497575060405160200161145890614a3e565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6006546001600160a01b0361010090910416331461266e5760405162461bcd60e51b8152600401610bf990614b45565b600d55565b60168054819061268290614dda565b80601f01602080910402602001604051908101604052809291908181526020018280546126ae90614dda565b80156126fb5780601f106126d0576101008083540402835291602001916126fb565b820191906000526020600020905b8154815290600101906020018083116126de57829003601f168201915b50505050509080600101805461271090614dda565b80601f016020809104026020016040519081016040528092919081815260200182805461273c90614dda565b80156127895780601f1061275e57610100808354040283529160200191612789565b820191906000526020600020905b81548152906001019060200180831161276c57829003601f168201915b50505050509080600201805461279e90614dda565b80601f01602080910402602001604051908101604052809291908181526020018280546127ca90614dda565b80156128175780601f106127ec57610100808354040283529160200191612817565b820191906000526020600020905b8154815290600101906020018083116127fa57829003601f168201915b50505050509080600301805461282c90614dda565b80601f016020809104026020016040519081016040528092919081815260200182805461285890614dda565b80156128a55780601f1061287a576101008083540402835291602001916128a5565b820191906000526020600020905b81548152906001019060200180831161288857829003601f168201915b5050505050908060040180546128ba90614dda565b80601f01602080910402602001604051908101604052809291908181526020018280546128e690614dda565b80156129335780601f1061290857610100808354040283529160200191612933565b820191906000526020600020905b81548152906001019060200180831161291657829003601f168201915b50505050509080600501805461294890614dda565b80601f016020809104026020016040519081016040528092919081815260200182805461297490614dda565b80156129c15780601f10612996576101008083540402835291602001916129c1565b820191906000526020600020905b8154815290600101906020018083116129a457829003601f168201915b5050505050905086565b6006546001600160a01b036101009091041633146129fb5760405162461bcd60e51b8152600401610bf990614b45565b6001600160a01b038116612a605760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610bf9565b612a698161382d565b50565b6006546001600160a01b03610100909104163314612a9c5760405162461bcd60e51b8152600401610bf990614b45565b601280546001600160a01b0319166001600160a01b0392909216919091179055565b6006546001600160a01b03610100909104163314612aee5760405162461bcd60e51b8152600401610bf990614b45565b60085460ff1615612b115760405162461bcd60e51b8152600401610bf990614bbe565b805161162e90601b906020840190614217565b6006546001600160a01b03610100909104163314612b545760405162461bcd60e51b8152600401610bf990614b45565b6008805461ff001916610100179055565b6006546001600160a01b03610100909104163314612b955760405162461bcd60e51b8152600401610bf990614b45565b60085460ff1615612bb85760405162461bcd60e51b8152600401610bf990614bbe565b805161162e906016906020840190614217565b6001600160a01b0382166000908152601c60205260408082209051612bf1908490614874565b9081526040519081900360200190205460ff16905092915050565b60026007541415612c2f5760405162461bcd60e51b8152600401610bf990614c58565b600260075560065460ff1615612c575760405162461bcd60e51b8152600401610bf990614b1b565b612c6087613aab565b612c7c5760405162461bcd60e51b8152600401610bf990614ac6565b336000908152601d602052604090205460ff16612c9857612cba565b600b54341015612cba5760405162461bcd60e51b8152600401610bf990614b95565b604051602001612cc990614c3d565b6040516020818303038152906040528051906020012086604051602001612cf091906149a9565b604051602081830303815290604052805190602001201480612d5b5750604051602001612d1c90614b7a565b6040516020818303038152906040528051906020012086604051602001612d4391906149a9565b60405160208183030381529060405280519060200120145b80612daf5750604051602001612d7090614aab565b6040516020818303038152906040528051906020012086604051602001612d9791906149a9565b60405160208183030381529060405280519060200120145b80612e035750604051602001612dc490614a3e565b6040516020818303038152906040528051906020012086604051602001612deb91906149a9565b60405160208183030381529060405280519060200120145b612e1f5760405162461bcd60e51b8152600401610bf990614af3565b604051602001612e2e90614c3d565b6040516020818303038152906040528051906020012085604051602001612e5591906149a9565b604051602081830303815290604052805190602001201480612ec05750604051602001612e8190614b7a565b6040516020818303038152906040528051906020012085604051602001612ea891906149a9565b60405160208183030381529060405280519060200120145b80612f145750604051602001612ed590614aab565b6040516020818303038152906040528051906020012085604051602001612efc91906149a9565b60405160208183030381529060405280519060200120145b80612f685750604051602001612f2990614a3e565b6040516020818303038152906040528051906020012085604051602001612f5091906149a9565b60405160208183030381529060405280519060200120145b806114975750604051602001611458906020808252600190820152603560f81b604082015260600190565b60006001600160e01b031982166380ac58cd60e01b1480612fc457506001600160e01b03198216635b5e139f60e01b145b80610bc357506301ffc9a760e01b6001600160e01b0319831614610bc3565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061301882611b0e565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600034116130955760405162461bcd60e51b815260206004820152601160248201527053313a20696e76616c69642076616c756560781b6044820152606401610bf9565b600060646130a434605f614d61565b6130ae9190614d4d565b6011546040519192506000916001600160a01b039091169083908381818185875af1925050503d8060008114613100576040519150601f19603f3d011682016040523d82523d6000602084013e613105565b606091505b505090508061314e5760405162461bcd60e51b815260206004820152601560248201527414cc4e88151c985b9cd9995c88104819985a5b1959605a1b6044820152606401610bf9565b601154604080516001600160a01b039092168252602082018490527f419013ffbfd3a7e95a13645088f1f9b8aff6057aaa2a840cc18ddbbec3d1677c910160405180910390a161319e8234614d80565b6012546040519193506001600160a01b0316908390600081818185875af1925050503d80600081146131ec576040519150601f19603f3d011682016040523d82523d6000602084013e6131f1565b606091505b5050809150508061323c5760405162461bcd60e51b815260206004820152601560248201527414cc4e88151c985b9cd9995c88108819985a5b1959605a1b6044820152606401610bf9565b601254604080516001600160a01b039092168252602082018490527f419013ffbfd3a7e95a13645088f1f9b8aff6057aaa2a840cc18ddbbec3d1677c910160405180910390a15050565b604080516001600160601b03193360601b16602080830191909152825180830360140181526034830184528051908201207f19457468657265756d205369676e6564204d6573736167653a0a3332000000006054840152607080840182905284518085039091018152609090930190935281519101206015546000929190613318906001600160a01b03168286613b39565b949350505050565b336000908152601e602052604090205460ff16156133725760405162461bcd60e51b815260206004820152600f60248201526e14cc4e88189b1858dadb1a5cdd1959608a1b6044820152606401610bf9565b60008686604051602001613387929190614890565b60408051601f198184030181528282526001600160a01b038b166000908152601c60205291909120909250906133be908390614874565b9081526040519081900360200190205460ff161561341e5760405162461bcd60e51b815260206004820152601e60248201527f53313a20636f6d62696e6174696f6e20616c7265616479206d696e74656400006044820152606401610bf9565b6001600160a01b0388166000908152601c602052604090819020905160019190613449908490614874565b90815260408051918290036020908101909220805493151560ff199485161790556001600160a01b038b166000908152601d90925281208054909216600117909155600f80549161349983614e15565b91905055506134b0600f5489898989898989613c06565b34156134be576134be613051565b6134ca89600f54613cb8565b600f54604080516001600160a01b038c16815260208101929092523482820152517f25b428dfde728ccfaddad7e29e4ac23c24ed7fd1a6e3e3f91894a9a073f5dfff9181900360600190a1505050505050505050565b6000818152600260205260408120546001600160a01b03166135995760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610bf9565b60006135a483611b0e565b9050806001600160a01b0316846001600160a01b031614806135df5750836001600160a01b03166135d484610cb6565b6001600160a01b0316145b8061331857506133188185612610565b826001600160a01b031661360282611b0e565b6001600160a01b03161461366a5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610bf9565b6001600160a01b0382166136cc5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610bf9565b6136d7838383613cd2565b6136e2600082612fe3565b6001600160a01b038316600090815260036020526040812080546001929061370b908490614d80565b90915550506001600160a01b0382166000908152600360205260408120805460019290613739908490614d35565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60065460ff166137e35760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610bf9565b6006805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600680546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60065460ff16156138aa5760405162461bcd60e51b8152600401610bf990614b1b565b6006805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586138103390565b6138ea8484846135ef565b6138f684848484613d12565b611f075760405162461bcd60e51b8152600401610bf990614a59565b6060816139365750506040805180820190915260018152600360fc1b602082015290565b8160005b8115613960578061394a81614e15565b91506139599050600a83614d4d565b915061393a565b60008167ffffffffffffffff81111561397b5761397b614e86565b6040519080825280601f01601f1916602001820160405280156139a5576020820181803683370190505b5090505b8415613318576139ba600183614d80565b91506139c7600a86614e30565b6139d2906030614d35565b60f81b8183815181106139e7576139e7614e70565b60200101906001600160f81b031916908160001a905350613a09600a86614d4d565b94506139a9565b604080513360601b6001600160601b031916602080830191909152825160148184030181526034830190935282519201919091207f19457468657265756d205369676e6564204d6573736167653a0a333200000000605483015260708201819052600091829060900160408051601f198184030181529190528051602090910120601454909150613318906001600160a01b03168286613b39565b604080516001600160601b03193360601b16602080830191909152825180830360140181526034830184528051908201207f19457468657265756d205369676e6564204d6573736167653a0a3332000000006054840152607080840182905284518085039091018152609090930190935281519101206013546000929190613318906001600160a01b031682865b6000833b15613bde57604051630b135d3f60e11b81526001600160a01b03851690631626ba7e90613b709086908690600401614990565b60206040518083038186803b158015613b8857600080fd5b505afa925050508015613bb8575060408051601f3d908101601f19168201909252613bb5918101906145f3565b60015b613bc457506000613bff565b6001600160e01b031916630b135d3f60e11b149050613bff565b836001600160a01b0316613bf28484613e1f565b6001600160a01b03161490505b9392505050565b6000888152601f6020908152604090912080546001600160a01b0319166001600160a01b038a1617815587519091613c459160018401918a0190614217565b508551613c5b9060028301906020890190614217565b5060038101805492151563010000000263ff0000001994151562010000029490941663ffff00001960ff9687166101000261ffff199095169690971695909517929092179490941692909217179055600160049091015550505050565b61162e828260405180602001604052806000815250613ec3565b60065460ff1615610e5c5760405162461bcd60e51b815260206004820152600a60248201526914cc4e881c185d5cd95960b21b6044820152606401610bf9565b60006001600160a01b0384163b15613e1457604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613d5690339089908890889060040161495d565b602060405180830381600087803b158015613d7057600080fd5b505af1925050508015613da0575060408051601f3d908101601f19168201909252613d9d918101906145f3565b60015b613dfa573d808015613dce576040519150601f19603f3d011682016040523d82523d6000602084013e613dd3565b606091505b508051613df25760405162461bcd60e51b8152600401610bf990614a59565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050613318565b506001949350505050565b6000815160411415613e535760208201516040830151606084015160001a613e4986828585613ef6565b9350505050610bc3565b815160401415613e7b5760208201516040830151613e7285838361409f565b92505050610bc3565b60405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610bf9565b613ecd83836140c9565b613eda6000848484613d12565b610e5c5760405162461bcd60e51b8152600401610bf990614a59565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0821115613f735760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610bf9565b8360ff16601b1480613f8857508360ff16601c145b613fdf5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610bf9565b6040805160008082526020820180845288905260ff871692820192909252606081018590526080810184905260019060a0016020604051602081039080840390855afa158015614033573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166140965760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610bf9565b95945050505050565b60006001600160ff1b03821660ff83901c601b016140bf86828785613ef6565b9695505050505050565b6001600160a01b03821661411f5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610bf9565b6000818152600260205260409020546001600160a01b0316156141845760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610bf9565b61419060008383613cd2565b6001600160a01b03821660009081526003602052604081208054600192906141b9908490614d35565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461422390614dda565b90600052602060002090601f016020900481019282614245576000855561428b565b82601f1061425e57805160ff191683800117855561428b565b8280016001018555821561428b579182015b8281111561428b578251825591602001919060010190614270565b5061429792915061429b565b5090565b5b80821115614297576000815560010161429c565b80356001600160a01b03811681146142c757600080fd5b919050565b803580151581146142c757600080fd5b600082601f8301126142ed57600080fd5b813567ffffffffffffffff8082111561430857614308614e86565b604051601f8301601f19908116603f0116810190828211818310171561433057614330614e86565b8160405283815286602085880101111561434957600080fd5b836020870160208301376000602085830101528094505050505092915050565b803560ff811681146142c757600080fd5b60006020828403121561438c57600080fd5b613bff826142b0565b600080604083850312156143a857600080fd5b6143b1836142b0565b91506143bf602084016142b0565b90509250929050565b600080600080600080600080610100898b0312156143e557600080fd5b6143ee896142b0565b97506143fc60208a016142b0565b9650604089013567ffffffffffffffff8082111561441957600080fd5b6144258c838d016142dc565b975060608b013591508082111561443b57600080fd5b506144488b828c016142dc565b95505061445760808a01614369565b935061446560a08a01614369565b925061447360c08a016142cc565b915061448160e08a016142cc565b90509295985092959890939650565b6000806000606084860312156144a557600080fd5b6144ae846142b0565b92506144bc602085016142b0565b9150604084013590509250925092565b600080600080608085870312156144e257600080fd5b6144eb856142b0565b93506144f9602086016142b0565b925060408501359150606085013567ffffffffffffffff81111561451c57600080fd5b614528878288016142dc565b91505092959194509250565b6000806040838503121561454757600080fd5b614550836142b0565b91506143bf602084016142cc565b6000806040838503121561457157600080fd5b61457a836142b0565b9150602083013567ffffffffffffffff81111561459657600080fd5b6145a2858286016142dc565b9150509250929050565b600080604083850312156145bf57600080fd5b6145c8836142b0565b946020939093013593505050565b6000602082840312156145e857600080fd5b8135613bff81614e9c565b60006020828403121561460557600080fd5b8151613bff81614e9c565b600080600080600080600060e0888a03121561462b57600080fd5b873567ffffffffffffffff8082111561464357600080fd5b61464f8b838c016142dc565b985060208a013591508082111561466557600080fd5b6146718b838c016142dc565b975060408a013591508082111561468757600080fd5b506146948a828b016142dc565b9550506146a360608901614369565b93506146b160808901614369565b92506146bf60a089016142cc565b91506146cd60c089016142cc565b905092959891949750929550565b6000602082840312156146ed57600080fd5b813567ffffffffffffffff81111561470457600080fd5b613318848285016142dc565b60008060008060008060c0878903121561472957600080fd5b863567ffffffffffffffff8082111561474157600080fd5b61474d8a838b016142dc565b9750602089013591508082111561476357600080fd5b5061477089828a016142dc565b95505061477f60408801614369565b935061478d60608801614369565b925061479b608088016142cc565b91506147a960a088016142cc565b90509295509295509295565b6000602082840312156147c757600080fd5b5035919050565b600080600080600060a086880312156147e657600080fd5b853594506147f660208701614369565b935061480460408701614369565b9250614812606087016142cc565b9150614820608087016142cc565b90509295509295909350565b60008151808452614844816020860160208601614d97565b601f01601f19169290920160200192915050565b6000815161486a818560208601614d97565b9290920192915050565b60008251614886818460208701614d97565b9190910192915050565b600083516148a2818460208801614d97565b8351908301906148b6818360208801614d97565b01949350505050565b600080845481600182811c9150808316806148db57607f831692505b60208084108214156148fb57634e487b7160e01b86526022600452602486fd5b81801561490f57600181146149205761494d565b60ff1986168952848901965061494d565b60008b81526020902060005b868110156149455781548b82015290850190830161492c565b505084890196505b5050505050506140968185614858565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906140bf9083018461482c565b828152604060208201526000613318604083018461482c565b602081526000613bff602083018461482c565b60c0815260006149cf60c083018961482c565b82810360208401526149e1818961482c565b905082810360408401526149f5818861482c565b90508281036060840152614a09818761482c565b90508281036080840152614a1d818661482c565b905082810360a0840152614a31818561482c565b9998505050505050505050565b6020808252600190820152600d60fa1b604082015260600190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252600190820152603360f81b604082015260600190565b60208082526013908201527214cc4e881b9bdd081dda1a5d195b1a5cdd1959606a1b604082015260600190565b6020808252600e908201526d53313a2077726f6e67206d6f646560901b604082015260600190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252600190820152601960f91b604082015260600190565b6020808252600f908201526e53313a2077726f6e6720707269636560881b604082015260600190565b60208082526014908201527314cc4e88105c9d14d8dc9a5c1d081b1bd8dad95960621b604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252600190820152603160f81b604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b602080825282516001600160a01b0316828201528201516101006040830181905260009190614cc261012085018361482c565b91506040850151601f19858403016060860152614cdf838261482c565b9250506060850151614cf6608086018260ff169052565b50608085015160ff811660a08601525060a085015180151560c08601525060c085015180151560e08601525060e0949094015192909301919091525090565b60008219821115614d4857614d48614e44565b500190565b600082614d5c57614d5c614e5a565b500490565b6000816000190483118215151615614d7b57614d7b614e44565b500290565b600082821015614d9257614d92614e44565b500390565b60005b83811015614db2578181015183820152602001614d9a565b83811115611f075750506000910152565b600081614dd257614dd2614e44565b506000190190565b600181811c90821680614dee57607f821691505b60208210811415614e0f57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415614e2957614e29614e44565b5060010190565b600082614e3f57614e3f614e5a565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114612a6957600080fdfea2646970667358221220cd8c767959bb4c7a1d5aa309cd01dbec12f30848d412eaaa34d018762fe9bb7f64736f6c634300080600330000000000000000000000009c5e88334ca3d54c21464d40b88f1405b9f8dcaa0000000000000000000000007b74134152a65b94d957f67178bd91a8fd729f4000000000000000000000000086068105a3677c15d54aa4f2646b11c8ec9813ca00000000000000000000000045c270aa1ab991a879eda48d59c19aebc63f4da00000000000000000000000006cf6873672c78e636f9b613a0697ce1383f8c3db0000000000000000000000000000000000000000000000000000000000001388000000000000000000000000000000000000000000000000010a741a4627800000000000000000000000000000000000000000000000000000b1a2bc2ec5000000000000000000000000000000000000000000000000000000b1a2bc2ec5000000000000000000000000000000000000000000000000000000b1a2bc2ec500000000000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106103d95760003560e01c80638456cb59116101fd578063dfeab5c811610118578063f33063e5116100ab578063faa6e7e41161007a578063faa6e7e414610b16578063fae081d514610b36578063fdcf9d0714610b56578063fe083aa514610b6c578063fe575a8714610b7f57600080fd5b8063f33063e514610aa1578063f53f1b5b14610ac1578063f5ca6f5d14610ae1578063fa2a3d9c14610af657600080fd5b8063e9ef37a5116100e7578063e9ef37a514610a24578063ebe9eb9f14610a44578063ee906ae014610a6b578063f2fde38b14610a8157600080fd5b8063dfeab5c8146109a4578063e4b50cb8146109c4578063e5c9b896146109f1578063e985e9c514610a0457600080fd5b8063a2ca552511610190578063c62752551161015f578063c627525514610924578063c716b64114610944578063c87b56dd14610964578063d01dd6d21461098457600080fd5b8063a2ca5525146108b4578063a945bf80146108d4578063adcc1e27146108ea578063b88d4fde1461090457600080fd5b80639afee9dc116101cc5780639afee9dc1461084a578063a1f1781414610860578063a223c7f514610875578063a22cb4651461089457600080fd5b80638456cb59146107dd57806386e29b1c146107f25780638da5cb5b1461081257806395d89b411461083557600080fd5b80633dde0934116102f857806355a94eff1161028b57806362610c871161025a57806362610c87146107535780636352211e146107735780636c0360eb1461079357806370a08231146107a8578063715018a6146107c857600080fd5b806355a94eff146106e557806355ea73281461070557806355f804b31461071b5780635c975abb1461073b57600080fd5b80634414481e116102c75780634414481e1461067257806345647d53146106855780634a76e663146106a557806352716707146106c557600080fd5b80633dde0934146105e45780633f4ba83a1461060457806340e3c2a31461061957806342842e0e1461065257600080fd5b80631b186339116103705780632a72539a1161033f5780632a72539a1461056e5780632b83a3561461058e578063397fb83d146105ae5780633dc91693146105ce57600080fd5b80631b186339146105085780631cc7f2501461051b57806320012b381461052e57806323b872dd1461054e57600080fd5b8063095ea7b3116103ac578063095ea7b31461048f5780630b74f6ee146104af57806316130fe9146104cf57806317d70f7c146104e457600080fd5b806301ffc9a7146103de578063033b8e2d1461041357806306fdde0314610435578063081812fc14610457575b600080fd5b3480156103ea57600080fd5b506103fe6103f93660046145d6565b610bb8565b60405190151581526020015b60405180910390f35b34801561041f57600080fd5b5061043361042e36600461437a565b610bc9565b005b34801561044157600080fd5b5061044a610c24565b60405161040a91906149a9565b34801561046357600080fd5b506104776104723660046147b5565b610cb6565b6040516001600160a01b03909116815260200161040a565b34801561049b57600080fd5b506104336104aa3660046145ac565b610d4b565b3480156104bb57600080fd5b506104336104ca3660046147b5565b610e61565b3480156104db57600080fd5b50610433610e96565b3480156104f057600080fd5b506104fa600f5481565b60405190815260200161040a565b6104336105163660046147ce565b610ef8565b610433610529366004614610565b6110d1565b34801561053a57600080fd5b5061043361054936600461437a565b6114f3565b34801561055a57600080fd5b50610433610569366004614490565b611545565b34801561057a57600080fd5b5061043361058936600461437a565b611576565b34801561059a57600080fd5b50601154610477906001600160a01b031681565b3480156105ba57600080fd5b50601254610477906001600160a01b031681565b3480156105da57600080fd5b506104fa600e5481565b3480156105f057600080fd5b506104336105ff3660046146db565b6115c8565b34801561061057600080fd5b50610433611632565b34801561062557600080fd5b506103fe61063436600461437a565b6001600160a01b03166000908152601d602052604090205460ff1690565b34801561065e57600080fd5b5061043361066d366004614490565b61166c565b610433610680366004614710565b611687565b34801561069157600080fd5b50601454610477906001600160a01b031681565b3480156106b157600080fd5b50601554610477906001600160a01b031681565b3480156106d157600080fd5b506104336106e03660046147b5565b6119fb565b3480156106f157600080fd5b506104336107003660046147b5565b611a30565b34801561071157600080fd5b506104fa600c5481565b34801561072757600080fd5b506104336107363660046146db565b611a65565b34801561074757600080fd5b5060065460ff166103fe565b34801561075f57600080fd5b5061043361076e3660046146db565b611aa8565b34801561077f57600080fd5b5061047761078e3660046147b5565b611b0e565b34801561079f57600080fd5b5061044a611b85565b3480156107b457600080fd5b506104fa6107c336600461437a565b611c13565b3480156107d457600080fd5b50610433611c9a565b3480156107e957600080fd5b50610433611cd4565b3480156107fe57600080fd5b5061043361080d3660046146db565b611d0c565b34801561081e57600080fd5b5060065461010090046001600160a01b0316610477565b34801561084157600080fd5b5061044a611d72565b34801561085657600080fd5b506104fa600b5481565b34801561086c57600080fd5b50610433611d81565b34801561088157600080fd5b506008546103fe90610100900460ff1681565b3480156108a057600080fd5b506104336108af366004614534565b611dbe565b3480156108c057600080fd5b506104336108cf36600461437a565b611e83565b3480156108e057600080fd5b506104fa600a5481565b3480156108f657600080fd5b506008546103fe9060ff1681565b34801561091057600080fd5b5061043361091f3660046144cc565b611ed5565b34801561093057600080fd5b5061043361093f3660046147b5565b611f0d565b34801561095057600080fd5b5061043361095f3660046143c8565b611f42565b34801561097057600080fd5b5061044a61097f3660046147b5565b611fb9565b34801561099057600080fd5b5061043361099f366004614534565b612070565b3480156109b057600080fd5b506104336109bf3660046146db565b6120cb565b3480156109d057600080fd5b506109e46109df3660046147b5565b612131565b60405161040a9190614c8f565b6104336109ff366004614610565b61230f565b348015610a1057600080fd5b506103fe610a1f366004614395565b612610565b348015610a3057600080fd5b50610433610a3f3660046147b5565b61263e565b348015610a5057600080fd5b50610a59612673565b60405161040a969594939291906149bc565b348015610a7757600080fd5b506104fa600d5481565b348015610a8d57600080fd5b50610433610a9c36600461437a565b6129cb565b348015610aad57600080fd5b50610433610abc36600461437a565b612a6c565b348015610acd57600080fd5b50610433610adc3660046146db565b612abe565b348015610aed57600080fd5b50610433612b24565b348015610b0257600080fd5b50601354610477906001600160a01b031681565b348015610b2257600080fd5b50610433610b313660046146db565b612b65565b348015610b4257600080fd5b506103fe610b5136600461455e565b612bcb565b348015610b6257600080fd5b506104fa60105481565b610433610b7a366004614610565b612c0c565b348015610b8b57600080fd5b506103fe610b9a36600461437a565b6001600160a01b03166000908152601e602052604090205460ff1690565b6000610bc382612f93565b92915050565b6006546001600160a01b03610100909104163314610c025760405162461bcd60e51b8152600401610bf990614b45565b60405180910390fd5b601180546001600160a01b0319166001600160a01b0392909216919091179055565b606060008054610c3390614dda565b80601f0160208091040260200160405190810160405280929190818152602001828054610c5f90614dda565b8015610cac5780601f10610c8157610100808354040283529160200191610cac565b820191906000526020600020905b815481529060010190602001808311610c8f57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610d2f5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610bf9565b506000908152600460205260409020546001600160a01b031690565b6000610d5682611b0e565b9050806001600160a01b0316836001600160a01b03161415610dc45760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610bf9565b336001600160a01b0382161480610de05750610de08133612610565b610e525760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610bf9565b610e5c8383612fe3565b505050565b6006546001600160a01b03610100909104163314610e915760405162461bcd60e51b8152600401610bf990614b45565b600c55565b6006546001600160a01b03610100909104163314610ec65760405162461bcd60e51b8152600401610bf990614b45565b60085460ff1615610ee95760405162461bcd60e51b8152600401610bf990614bbe565b6008805460ff19166001179055565b60026007541415610f1b5760405162461bcd60e51b8152600401610bf990614c58565b600260075560065460ff1615610f435760405162461bcd60e51b8152600401610bf990614b1b565b336000908152601e602052604090205460ff1615610f955760405162461bcd60e51b815260206004820152600f60248201526e14cc4e88189b1858dadb1a5cdd1959608a1b6044820152606401610bf9565b610f9e85611b0e565b6001600160a01b0316336001600160a01b031614610fee5760405162461bcd60e51b815260206004820152600d60248201526c29989d103737ba1037bbb732b960991b6044820152606401610bf9565b600e543410156110105760405162461bcd60e51b8152600401610bf990614b95565b6000858152601f6020526040902060038101805460ff87811661ffff1990921691909117610100918716919091021763ffff00001916620100008515150263ff0000001916176301000000841515021790556004810154611072906001614d35565b6004820155341561108557611085613051565b6040805133815260208101889052348183015290517f99cc044fd36aeecc372e0e5efa3b9fb561c7bd355a7c7de464a05776716b14769181900360600190a15050600160075550505050565b600260075414156110f45760405162461bcd60e51b8152600401610bf990614c58565b600260075560065460ff161561111c5760405162461bcd60e51b8152600401610bf990614b1b565b61112587613286565b6111415760405162461bcd60e51b8152600401610bf990614ac6565b336000908152601d602052604090205460ff1661115d5761117f565b600d5434101561117f5760405162461bcd60e51b8152600401610bf990614b95565b60405160200161118e90614c3d565b60405160208183030381529060405280519060200120866040516020016111b591906149a9565b60405160208183030381529060405280519060200120148061122057506040516020016111e190614b7a565b604051602081830303815290604052805190602001208660405160200161120891906149a9565b60405160208183030381529060405280519060200120145b80611274575060405160200161123590614aab565b604051602081830303815290604052805190602001208660405160200161125c91906149a9565b60405160208183030381529060405280519060200120145b806112c8575060405160200161128990614a3e565b60405160208183030381529060405280519060200120866040516020016112b091906149a9565b60405160208183030381529060405280519060200120145b6112e45760405162461bcd60e51b8152600401610bf990614af3565b6040516020016112f390614c3d565b604051602081830303815290604052805190602001208560405160200161131a91906149a9565b604051602081830303815290604052805190602001201480611385575060405160200161134690614b7a565b604051602081830303815290604052805190602001208560405160200161136d91906149a9565b60405160208183030381529060405280519060200120145b806113d9575060405160200161139a90614aab565b60405160208183030381529060405280519060200120856040516020016113c191906149a9565b60405160208183030381529060405280519060200120145b8061142d57506040516020016113ee90614a3e565b604051602081830303815290604052805190602001208560405160200161141591906149a9565b60405160208183030381529060405280519060200120145b806114975750604051602001611458906020808252600190820152601b60f91b604082015260600190565b604051602081830303815290604052805190602001208560405160200161147f91906149a9565b60405160208183030381529060405280519060200120145b6114d55760405162461bcd60e51b815260206004820152600f60248201526e53313a2077726f6e67207374796c6560881b6044820152606401610bf9565b6114e53333888888888888613320565b505060016007555050505050565b6006546001600160a01b036101009091041633146115235760405162461bcd60e51b8152600401610bf990614b45565b601480546001600160a01b0319166001600160a01b0392909216919091179055565b61154f3382613520565b61156b5760405162461bcd60e51b8152600401610bf990614bec565b610e5c8383836135ef565b6006546001600160a01b036101009091041633146115a65760405162461bcd60e51b8152600401610bf990614b45565b601580546001600160a01b0319166001600160a01b0392909216919091179055565b6006546001600160a01b036101009091041633146115f85760405162461bcd60e51b8152600401610bf990614b45565b60085460ff161561161b5760405162461bcd60e51b8152600401610bf990614bbe565b805161162e906019906020840190614217565b5050565b6006546001600160a01b036101009091041633146116625760405162461bcd60e51b8152600401610bf990614b45565b61166a61379a565b565b610e5c83838360405180602001604052806000815250611ed5565b600260075414156116aa5760405162461bcd60e51b8152600401610bf990614c58565b600260075560065460ff16156116d25760405162461bcd60e51b8152600401610bf990614b1b565b600854610100900460ff16156117225760405162461bcd60e51b815260206004820152601560248201527414cc4e881c1d589b1a58d35a5b9d081c185d5cd959605a1b6044820152606401610bf9565b600a543410156117445760405162461bcd60e51b8152600401610bf990614b95565b6000601054116117855760405162461bcd60e51b815260206004820152600c60248201526b14cc4e881cdbdb19081bdd5d60a21b6044820152606401610bf9565b60405160200161179490614c3d565b60405160208183030381529060405280519060200120866040516020016117bb91906149a9565b60405160208183030381529060405280519060200120148061182657506040516020016117e790614b7a565b604051602081830303815290604052805190602001208660405160200161180e91906149a9565b60405160208183030381529060405280519060200120145b8061187a575060405160200161183b90614aab565b604051602081830303815290604052805190602001208660405160200161186291906149a9565b60405160208183030381529060405280519060200120145b6118965760405162461bcd60e51b8152600401610bf990614af3565b6040516020016118a590614c3d565b60405160208183030381529060405280519060200120856040516020016118cc91906149a9565b60405160208183030381529060405280519060200120148061193757506040516020016118f890614b7a565b604051602081830303815290604052805190602001208560405160200161191f91906149a9565b60405160208183030381529060405280519060200120145b8061198b575060405160200161194c90614aab565b604051602081830303815290604052805190602001208560405160200161197391906149a9565b60405160208183030381529060405280519060200120145b6119c95760405162461bcd60e51b815260206004820152600f60248201526e53313a2077726f6e67207374796c6560881b6044820152606401610bf9565b601080549060006119d983614dc3565b91905055506119ee3333888888888888613320565b5050600160075550505050565b6006546001600160a01b03610100909104163314611a2b5760405162461bcd60e51b8152600401610bf990614b45565b600b55565b6006546001600160a01b03610100909104163314611a605760405162461bcd60e51b8152600401610bf990614b45565b600e55565b6006546001600160a01b03610100909104163314611a955760405162461bcd60e51b8152600401610bf990614b45565b805161162e906009906020840190614217565b6006546001600160a01b03610100909104163314611ad85760405162461bcd60e51b8152600401610bf990614b45565b60085460ff1615611afb5760405162461bcd60e51b8152600401610bf990614bbe565b805161162e906017906020840190614217565b6000818152600260205260408120546001600160a01b031680610bc35760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610bf9565b60098054611b9290614dda565b80601f0160208091040260200160405190810160405280929190818152602001828054611bbe90614dda565b8015611c0b5780601f10611be057610100808354040283529160200191611c0b565b820191906000526020600020905b815481529060010190602001808311611bee57829003601f168201915b505050505081565b60006001600160a01b038216611c7e5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610bf9565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b03610100909104163314611cca5760405162461bcd60e51b8152600401610bf990614b45565b61166a600061382d565b6006546001600160a01b03610100909104163314611d045760405162461bcd60e51b8152600401610bf990614b45565b61166a613887565b6006546001600160a01b03610100909104163314611d3c5760405162461bcd60e51b8152600401610bf990614b45565b60085460ff1615611d5f5760405162461bcd60e51b8152600401610bf990614bbe565b805161162e906018906020840190614217565b606060018054610c3390614dda565b6006546001600160a01b03610100909104163314611db15760405162461bcd60e51b8152600401610bf990614b45565b6008805461ff0019169055565b6001600160a01b038216331415611e175760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610bf9565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6006546001600160a01b03610100909104163314611eb35760405162461bcd60e51b8152600401610bf990614b45565b601380546001600160a01b0319166001600160a01b0392909216919091179055565b611edf3383613520565b611efb5760405162461bcd60e51b8152600401610bf990614bec565b611f07848484846138df565b50505050565b6006546001600160a01b03610100909104163314611f3d5760405162461bcd60e51b8152600401610bf990614b45565b600a55565b60026007541415611f655760405162461bcd60e51b8152600401610bf990614c58565b60026007556006546001600160a01b03610100909104163314611f9a5760405162461bcd60e51b8152600401610bf990614b45565b611faa8888888888888888613320565b50506001600755505050505050565b6000818152600260205260409020546060906001600160a01b03166120145760405162461bcd60e51b815260206004820152601160248201527029989d1034b73b30b634b2103a37b5b2b760791b6044820152606401610bf9565b60006009805461202390614dda565b90501161203f5760405180602001604052806000815250610bc3565b600961204a83613912565b60405160200161205b9291906148bf565b60405160208183030381529060405292915050565b6006546001600160a01b036101009091041633146120a05760405162461bcd60e51b8152600401610bf990614b45565b6001600160a01b03919091166000908152601e60205260409020805460ff1916911515919091179055565b6006546001600160a01b036101009091041633146120fb5760405162461bcd60e51b8152600401610bf990614b45565b60085460ff161561211e5760405162461bcd60e51b8152600401610bf990614bbe565b805161162e90601a906020840190614217565b604080516101008101825260008082526060602083018190529282018390529181018290526080810182905260a0810182905260c0810182905260e08101919091526000828152601f60209081526040918290208251610100810190935280546001600160a01b0316835260018101805491928401916121b090614dda565b80601f01602080910402602001604051908101604052809291908181526020018280546121dc90614dda565b80156122295780601f106121fe57610100808354040283529160200191612229565b820191906000526020600020905b81548152906001019060200180831161220c57829003601f168201915b5050505050815260200160028201805461224290614dda565b80601f016020809104026020016040519081016040528092919081815260200182805461226e90614dda565b80156122bb5780601f10612290576101008083540402835291602001916122bb565b820191906000526020600020905b81548152906001019060200180831161229e57829003601f168201915b5050509183525050600382015460ff80821660208401526101008204811660408401526201000082048116151560608401526301000000909104161515608082015260049091015460a09091015292915050565b600260075414156123325760405162461bcd60e51b8152600401610bf990614c58565b600260075560065460ff161561235a5760405162461bcd60e51b8152600401610bf990614b1b565b61236387613a10565b61237f5760405162461bcd60e51b8152600401610bf990614ac6565b600c543410156123a15760405162461bcd60e51b8152600401610bf990614b95565b6040516020016123b090614c3d565b60405160208183030381529060405280519060200120866040516020016123d791906149a9565b604051602081830303815290604052805190602001201480612442575060405160200161240390614b7a565b604051602081830303815290604052805190602001208660405160200161242a91906149a9565b60405160208183030381529060405280519060200120145b80612496575060405160200161245790614aab565b604051602081830303815290604052805190602001208660405160200161247e91906149a9565b60405160208183030381529060405280519060200120145b806124ea57506040516020016124ab90614a3e565b60405160208183030381529060405280519060200120866040516020016124d291906149a9565b60405160208183030381529060405280519060200120145b6125065760405162461bcd60e51b8152600401610bf990614af3565b60405160200161251590614c3d565b604051602081830303815290604052805190602001208560405160200161253c91906149a9565b6040516020818303038152906040528051906020012014806125a7575060405160200161256890614b7a565b604051602081830303815290604052805190602001208560405160200161258f91906149a9565b60405160208183030381529060405280519060200120145b806125fb57506040516020016125bc90614aab565b60405160208183030381529060405280519060200120856040516020016125e391906149a9565b60405160208183030381529060405280519060200120145b80611497575060405160200161145890614a3e565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6006546001600160a01b0361010090910416331461266e5760405162461bcd60e51b8152600401610bf990614b45565b600d55565b60168054819061268290614dda565b80601f01602080910402602001604051908101604052809291908181526020018280546126ae90614dda565b80156126fb5780601f106126d0576101008083540402835291602001916126fb565b820191906000526020600020905b8154815290600101906020018083116126de57829003601f168201915b50505050509080600101805461271090614dda565b80601f016020809104026020016040519081016040528092919081815260200182805461273c90614dda565b80156127895780601f1061275e57610100808354040283529160200191612789565b820191906000526020600020905b81548152906001019060200180831161276c57829003601f168201915b50505050509080600201805461279e90614dda565b80601f01602080910402602001604051908101604052809291908181526020018280546127ca90614dda565b80156128175780601f106127ec57610100808354040283529160200191612817565b820191906000526020600020905b8154815290600101906020018083116127fa57829003601f168201915b50505050509080600301805461282c90614dda565b80601f016020809104026020016040519081016040528092919081815260200182805461285890614dda565b80156128a55780601f1061287a576101008083540402835291602001916128a5565b820191906000526020600020905b81548152906001019060200180831161288857829003601f168201915b5050505050908060040180546128ba90614dda565b80601f01602080910402602001604051908101604052809291908181526020018280546128e690614dda565b80156129335780601f1061290857610100808354040283529160200191612933565b820191906000526020600020905b81548152906001019060200180831161291657829003601f168201915b50505050509080600501805461294890614dda565b80601f016020809104026020016040519081016040528092919081815260200182805461297490614dda565b80156129c15780601f10612996576101008083540402835291602001916129c1565b820191906000526020600020905b8154815290600101906020018083116129a457829003601f168201915b5050505050905086565b6006546001600160a01b036101009091041633146129fb5760405162461bcd60e51b8152600401610bf990614b45565b6001600160a01b038116612a605760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610bf9565b612a698161382d565b50565b6006546001600160a01b03610100909104163314612a9c5760405162461bcd60e51b8152600401610bf990614b45565b601280546001600160a01b0319166001600160a01b0392909216919091179055565b6006546001600160a01b03610100909104163314612aee5760405162461bcd60e51b8152600401610bf990614b45565b60085460ff1615612b115760405162461bcd60e51b8152600401610bf990614bbe565b805161162e90601b906020840190614217565b6006546001600160a01b03610100909104163314612b545760405162461bcd60e51b8152600401610bf990614b45565b6008805461ff001916610100179055565b6006546001600160a01b03610100909104163314612b955760405162461bcd60e51b8152600401610bf990614b45565b60085460ff1615612bb85760405162461bcd60e51b8152600401610bf990614bbe565b805161162e906016906020840190614217565b6001600160a01b0382166000908152601c60205260408082209051612bf1908490614874565b9081526040519081900360200190205460ff16905092915050565b60026007541415612c2f5760405162461bcd60e51b8152600401610bf990614c58565b600260075560065460ff1615612c575760405162461bcd60e51b8152600401610bf990614b1b565b612c6087613aab565b612c7c5760405162461bcd60e51b8152600401610bf990614ac6565b336000908152601d602052604090205460ff16612c9857612cba565b600b54341015612cba5760405162461bcd60e51b8152600401610bf990614b95565b604051602001612cc990614c3d565b6040516020818303038152906040528051906020012086604051602001612cf091906149a9565b604051602081830303815290604052805190602001201480612d5b5750604051602001612d1c90614b7a565b6040516020818303038152906040528051906020012086604051602001612d4391906149a9565b60405160208183030381529060405280519060200120145b80612daf5750604051602001612d7090614aab565b6040516020818303038152906040528051906020012086604051602001612d9791906149a9565b60405160208183030381529060405280519060200120145b80612e035750604051602001612dc490614a3e565b6040516020818303038152906040528051906020012086604051602001612deb91906149a9565b60405160208183030381529060405280519060200120145b612e1f5760405162461bcd60e51b8152600401610bf990614af3565b604051602001612e2e90614c3d565b6040516020818303038152906040528051906020012085604051602001612e5591906149a9565b604051602081830303815290604052805190602001201480612ec05750604051602001612e8190614b7a565b6040516020818303038152906040528051906020012085604051602001612ea891906149a9565b60405160208183030381529060405280519060200120145b80612f145750604051602001612ed590614aab565b6040516020818303038152906040528051906020012085604051602001612efc91906149a9565b60405160208183030381529060405280519060200120145b80612f685750604051602001612f2990614a3e565b6040516020818303038152906040528051906020012085604051602001612f5091906149a9565b60405160208183030381529060405280519060200120145b806114975750604051602001611458906020808252600190820152603560f81b604082015260600190565b60006001600160e01b031982166380ac58cd60e01b1480612fc457506001600160e01b03198216635b5e139f60e01b145b80610bc357506301ffc9a760e01b6001600160e01b0319831614610bc3565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061301882611b0e565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600034116130955760405162461bcd60e51b815260206004820152601160248201527053313a20696e76616c69642076616c756560781b6044820152606401610bf9565b600060646130a434605f614d61565b6130ae9190614d4d565b6011546040519192506000916001600160a01b039091169083908381818185875af1925050503d8060008114613100576040519150601f19603f3d011682016040523d82523d6000602084013e613105565b606091505b505090508061314e5760405162461bcd60e51b815260206004820152601560248201527414cc4e88151c985b9cd9995c88104819985a5b1959605a1b6044820152606401610bf9565b601154604080516001600160a01b039092168252602082018490527f419013ffbfd3a7e95a13645088f1f9b8aff6057aaa2a840cc18ddbbec3d1677c910160405180910390a161319e8234614d80565b6012546040519193506001600160a01b0316908390600081818185875af1925050503d80600081146131ec576040519150601f19603f3d011682016040523d82523d6000602084013e6131f1565b606091505b5050809150508061323c5760405162461bcd60e51b815260206004820152601560248201527414cc4e88151c985b9cd9995c88108819985a5b1959605a1b6044820152606401610bf9565b601254604080516001600160a01b039092168252602082018490527f419013ffbfd3a7e95a13645088f1f9b8aff6057aaa2a840cc18ddbbec3d1677c910160405180910390a15050565b604080516001600160601b03193360601b16602080830191909152825180830360140181526034830184528051908201207f19457468657265756d205369676e6564204d6573736167653a0a3332000000006054840152607080840182905284518085039091018152609090930190935281519101206015546000929190613318906001600160a01b03168286613b39565b949350505050565b336000908152601e602052604090205460ff16156133725760405162461bcd60e51b815260206004820152600f60248201526e14cc4e88189b1858dadb1a5cdd1959608a1b6044820152606401610bf9565b60008686604051602001613387929190614890565b60408051601f198184030181528282526001600160a01b038b166000908152601c60205291909120909250906133be908390614874565b9081526040519081900360200190205460ff161561341e5760405162461bcd60e51b815260206004820152601e60248201527f53313a20636f6d62696e6174696f6e20616c7265616479206d696e74656400006044820152606401610bf9565b6001600160a01b0388166000908152601c602052604090819020905160019190613449908490614874565b90815260408051918290036020908101909220805493151560ff199485161790556001600160a01b038b166000908152601d90925281208054909216600117909155600f80549161349983614e15565b91905055506134b0600f5489898989898989613c06565b34156134be576134be613051565b6134ca89600f54613cb8565b600f54604080516001600160a01b038c16815260208101929092523482820152517f25b428dfde728ccfaddad7e29e4ac23c24ed7fd1a6e3e3f91894a9a073f5dfff9181900360600190a1505050505050505050565b6000818152600260205260408120546001600160a01b03166135995760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610bf9565b60006135a483611b0e565b9050806001600160a01b0316846001600160a01b031614806135df5750836001600160a01b03166135d484610cb6565b6001600160a01b0316145b8061331857506133188185612610565b826001600160a01b031661360282611b0e565b6001600160a01b03161461366a5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610bf9565b6001600160a01b0382166136cc5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610bf9565b6136d7838383613cd2565b6136e2600082612fe3565b6001600160a01b038316600090815260036020526040812080546001929061370b908490614d80565b90915550506001600160a01b0382166000908152600360205260408120805460019290613739908490614d35565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60065460ff166137e35760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610bf9565b6006805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600680546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60065460ff16156138aa5760405162461bcd60e51b8152600401610bf990614b1b565b6006805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586138103390565b6138ea8484846135ef565b6138f684848484613d12565b611f075760405162461bcd60e51b8152600401610bf990614a59565b6060816139365750506040805180820190915260018152600360fc1b602082015290565b8160005b8115613960578061394a81614e15565b91506139599050600a83614d4d565b915061393a565b60008167ffffffffffffffff81111561397b5761397b614e86565b6040519080825280601f01601f1916602001820160405280156139a5576020820181803683370190505b5090505b8415613318576139ba600183614d80565b91506139c7600a86614e30565b6139d2906030614d35565b60f81b8183815181106139e7576139e7614e70565b60200101906001600160f81b031916908160001a905350613a09600a86614d4d565b94506139a9565b604080513360601b6001600160601b031916602080830191909152825160148184030181526034830190935282519201919091207f19457468657265756d205369676e6564204d6573736167653a0a333200000000605483015260708201819052600091829060900160408051601f198184030181529190528051602090910120601454909150613318906001600160a01b03168286613b39565b604080516001600160601b03193360601b16602080830191909152825180830360140181526034830184528051908201207f19457468657265756d205369676e6564204d6573736167653a0a3332000000006054840152607080840182905284518085039091018152609090930190935281519101206013546000929190613318906001600160a01b031682865b6000833b15613bde57604051630b135d3f60e11b81526001600160a01b03851690631626ba7e90613b709086908690600401614990565b60206040518083038186803b158015613b8857600080fd5b505afa925050508015613bb8575060408051601f3d908101601f19168201909252613bb5918101906145f3565b60015b613bc457506000613bff565b6001600160e01b031916630b135d3f60e11b149050613bff565b836001600160a01b0316613bf28484613e1f565b6001600160a01b03161490505b9392505050565b6000888152601f6020908152604090912080546001600160a01b0319166001600160a01b038a1617815587519091613c459160018401918a0190614217565b508551613c5b9060028301906020890190614217565b5060038101805492151563010000000263ff0000001994151562010000029490941663ffff00001960ff9687166101000261ffff199095169690971695909517929092179490941692909217179055600160049091015550505050565b61162e828260405180602001604052806000815250613ec3565b60065460ff1615610e5c5760405162461bcd60e51b815260206004820152600a60248201526914cc4e881c185d5cd95960b21b6044820152606401610bf9565b60006001600160a01b0384163b15613e1457604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613d5690339089908890889060040161495d565b602060405180830381600087803b158015613d7057600080fd5b505af1925050508015613da0575060408051601f3d908101601f19168201909252613d9d918101906145f3565b60015b613dfa573d808015613dce576040519150601f19603f3d011682016040523d82523d6000602084013e613dd3565b606091505b508051613df25760405162461bcd60e51b8152600401610bf990614a59565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050613318565b506001949350505050565b6000815160411415613e535760208201516040830151606084015160001a613e4986828585613ef6565b9350505050610bc3565b815160401415613e7b5760208201516040830151613e7285838361409f565b92505050610bc3565b60405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610bf9565b613ecd83836140c9565b613eda6000848484613d12565b610e5c5760405162461bcd60e51b8152600401610bf990614a59565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0821115613f735760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610bf9565b8360ff16601b1480613f8857508360ff16601c145b613fdf5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610bf9565b6040805160008082526020820180845288905260ff871692820192909252606081018590526080810184905260019060a0016020604051602081039080840390855afa158015614033573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166140965760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610bf9565b95945050505050565b60006001600160ff1b03821660ff83901c601b016140bf86828785613ef6565b9695505050505050565b6001600160a01b03821661411f5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610bf9565b6000818152600260205260409020546001600160a01b0316156141845760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610bf9565b61419060008383613cd2565b6001600160a01b03821660009081526003602052604081208054600192906141b9908490614d35565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461422390614dda565b90600052602060002090601f016020900481019282614245576000855561428b565b82601f1061425e57805160ff191683800117855561428b565b8280016001018555821561428b579182015b8281111561428b578251825591602001919060010190614270565b5061429792915061429b565b5090565b5b80821115614297576000815560010161429c565b80356001600160a01b03811681146142c757600080fd5b919050565b803580151581146142c757600080fd5b600082601f8301126142ed57600080fd5b813567ffffffffffffffff8082111561430857614308614e86565b604051601f8301601f19908116603f0116810190828211818310171561433057614330614e86565b8160405283815286602085880101111561434957600080fd5b836020870160208301376000602085830101528094505050505092915050565b803560ff811681146142c757600080fd5b60006020828403121561438c57600080fd5b613bff826142b0565b600080604083850312156143a857600080fd5b6143b1836142b0565b91506143bf602084016142b0565b90509250929050565b600080600080600080600080610100898b0312156143e557600080fd5b6143ee896142b0565b97506143fc60208a016142b0565b9650604089013567ffffffffffffffff8082111561441957600080fd5b6144258c838d016142dc565b975060608b013591508082111561443b57600080fd5b506144488b828c016142dc565b95505061445760808a01614369565b935061446560a08a01614369565b925061447360c08a016142cc565b915061448160e08a016142cc565b90509295985092959890939650565b6000806000606084860312156144a557600080fd5b6144ae846142b0565b92506144bc602085016142b0565b9150604084013590509250925092565b600080600080608085870312156144e257600080fd5b6144eb856142b0565b93506144f9602086016142b0565b925060408501359150606085013567ffffffffffffffff81111561451c57600080fd5b614528878288016142dc565b91505092959194509250565b6000806040838503121561454757600080fd5b614550836142b0565b91506143bf602084016142cc565b6000806040838503121561457157600080fd5b61457a836142b0565b9150602083013567ffffffffffffffff81111561459657600080fd5b6145a2858286016142dc565b9150509250929050565b600080604083850312156145bf57600080fd5b6145c8836142b0565b946020939093013593505050565b6000602082840312156145e857600080fd5b8135613bff81614e9c565b60006020828403121561460557600080fd5b8151613bff81614e9c565b600080600080600080600060e0888a03121561462b57600080fd5b873567ffffffffffffffff8082111561464357600080fd5b61464f8b838c016142dc565b985060208a013591508082111561466557600080fd5b6146718b838c016142dc565b975060408a013591508082111561468757600080fd5b506146948a828b016142dc565b9550506146a360608901614369565b93506146b160808901614369565b92506146bf60a089016142cc565b91506146cd60c089016142cc565b905092959891949750929550565b6000602082840312156146ed57600080fd5b813567ffffffffffffffff81111561470457600080fd5b613318848285016142dc565b60008060008060008060c0878903121561472957600080fd5b863567ffffffffffffffff8082111561474157600080fd5b61474d8a838b016142dc565b9750602089013591508082111561476357600080fd5b5061477089828a016142dc565b95505061477f60408801614369565b935061478d60608801614369565b925061479b608088016142cc565b91506147a960a088016142cc565b90509295509295509295565b6000602082840312156147c757600080fd5b5035919050565b600080600080600060a086880312156147e657600080fd5b853594506147f660208701614369565b935061480460408701614369565b9250614812606087016142cc565b9150614820608087016142cc565b90509295509295909350565b60008151808452614844816020860160208601614d97565b601f01601f19169290920160200192915050565b6000815161486a818560208601614d97565b9290920192915050565b60008251614886818460208701614d97565b9190910192915050565b600083516148a2818460208801614d97565b8351908301906148b6818360208801614d97565b01949350505050565b600080845481600182811c9150808316806148db57607f831692505b60208084108214156148fb57634e487b7160e01b86526022600452602486fd5b81801561490f57600181146149205761494d565b60ff1986168952848901965061494d565b60008b81526020902060005b868110156149455781548b82015290850190830161492c565b505084890196505b5050505050506140968185614858565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906140bf9083018461482c565b828152604060208201526000613318604083018461482c565b602081526000613bff602083018461482c565b60c0815260006149cf60c083018961482c565b82810360208401526149e1818961482c565b905082810360408401526149f5818861482c565b90508281036060840152614a09818761482c565b90508281036080840152614a1d818661482c565b905082810360a0840152614a31818561482c565b9998505050505050505050565b6020808252600190820152600d60fa1b604082015260600190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252600190820152603360f81b604082015260600190565b60208082526013908201527214cc4e881b9bdd081dda1a5d195b1a5cdd1959606a1b604082015260600190565b6020808252600e908201526d53313a2077726f6e67206d6f646560901b604082015260600190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252600190820152601960f91b604082015260600190565b6020808252600f908201526e53313a2077726f6e6720707269636560881b604082015260600190565b60208082526014908201527314cc4e88105c9d14d8dc9a5c1d081b1bd8dad95960621b604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252600190820152603160f81b604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b602080825282516001600160a01b0316828201528201516101006040830181905260009190614cc261012085018361482c565b91506040850151601f19858403016060860152614cdf838261482c565b9250506060850151614cf6608086018260ff169052565b50608085015160ff811660a08601525060a085015180151560c08601525060c085015180151560e08601525060e0949094015192909301919091525090565b60008219821115614d4857614d48614e44565b500190565b600082614d5c57614d5c614e5a565b500490565b6000816000190483118215151615614d7b57614d7b614e44565b500290565b600082821015614d9257614d92614e44565b500390565b60005b83811015614db2578181015183820152602001614d9a565b83811115611f075750506000910152565b600081614dd257614dd2614e44565b506000190190565b600181811c90821680614dee57607f821691505b60208210811415614e0f57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415614e2957614e29614e44565b5060010190565b600082614e3f57614e3f614e5a565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114612a6957600080fdfea2646970667358221220cd8c767959bb4c7a1d5aa309cd01dbec12f30848d412eaaa34d018762fe9bb7f64736f6c63430008060033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000009c5e88334ca3d54c21464d40b88f1405b9f8dcaa0000000000000000000000007b74134152a65b94d957f67178bd91a8fd729f4000000000000000000000000086068105a3677c15d54aa4f2646b11c8ec9813ca00000000000000000000000045c270aa1ab991a879eda48d59c19aebc63f4da00000000000000000000000006cf6873672c78e636f9b613a0697ce1383f8c3db0000000000000000000000000000000000000000000000000000000000001388000000000000000000000000000000000000000000000000010a741a4627800000000000000000000000000000000000000000000000000000b1a2bc2ec5000000000000000000000000000000000000000000000000000000b1a2bc2ec5000000000000000000000000000000000000000000000000000000b1a2bc2ec500000000000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _trustedWallet_A (address): 0x9c5e88334Ca3D54c21464D40b88F1405b9F8DcAa
Arg [1] : _trustedWallet_B (address): 0x7B74134152A65B94D957F67178bd91A8Fd729f40
Arg [2] : _signerCryptoarteEarlyCollector (address): 0x86068105A3677c15D54Aa4F2646b11C8eC9813CA
Arg [3] : _signerCryptoarteHolder (address): 0x45C270aa1aB991A879Eda48d59C19aEbc63F4da0
Arg [4] : _signerCryptoartePrimeHolder (address): 0x6Cf6873672C78e636F9B613A0697ce1383f8c3Db
Arg [5] : _totalSupply (uint256): 5000
Arg [6] : _publicPrice (uint256): 75000000000000000
Arg [7] : _earlyCollectorPrice (uint256): 50000000000000000
Arg [8] : _holderPrice (uint256): 50000000000000000
Arg [9] : _primeHolderPrice (uint256): 50000000000000000
Arg [10] : _updateMintPrice (uint256): 0
-----Encoded View---------------
11 Constructor Arguments found :
Arg [0] : 0000000000000000000000009c5e88334ca3d54c21464d40b88f1405b9f8dcaa
Arg [1] : 0000000000000000000000007b74134152a65b94d957f67178bd91a8fd729f40
Arg [2] : 00000000000000000000000086068105a3677c15d54aa4f2646b11c8ec9813ca
Arg [3] : 00000000000000000000000045c270aa1ab991a879eda48d59c19aebc63f4da0
Arg [4] : 0000000000000000000000006cf6873672c78e636f9b613a0697ce1383f8c3db
Arg [5] : 0000000000000000000000000000000000000000000000000000000000001388
Arg [6] : 000000000000000000000000000000000000000000000000010a741a46278000
Arg [7] : 00000000000000000000000000000000000000000000000000b1a2bc2ec50000
Arg [8] : 00000000000000000000000000000000000000000000000000b1a2bc2ec50000
Arg [9] : 00000000000000000000000000000000000000000000000000b1a2bc2ec50000
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000000
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.