Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
NFT
Overview
Max Total Supply
0 HERO
Holders
561
Market
Volume (24H)
0.43 ETH
Min Price (24H)
$976.33 @ 0.430000 ETH
Max Price (24H)
$976.33 @ 0.430000 ETH
Other Info
Token Contract
Balance
0 HEROLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
HeroGalaxy
Compiler Version
v0.8.11+commit.d7f03943
Optimization Enabled:
No with 200 runs
Other Settings:
byzantium EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity >=0.4.22 <0.9.0; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; contract HeroGalaxy is ERC721, Ownable,ReentrancyGuard { using Counters for Counters.Counter; using SafeMath for uint256; using ECDSA for bytes32; using Strings for uint256; uint256 public MAX_HERO_GALAXY_HEROES = 5555; uint256 public MAX_HERO_GALAXY_HEROES_PER_PURCHASE = 5; uint256 public MAX_HERO_GALAXY_HEROES_WHITELIST_CAP = 2; uint256 public constant HERO_GALAXY_PRICE = 0.069 ether; uint256 public RESERVED_HERO_GALAXY = 2222; string public tokenBaseURI; string public unrevealedURI; bool public presaleActive = false; bool public mintActive = false; bool public reservesMinted = false; mapping(address => uint256) private whitelistAddressMintCount; Counters.Counter public tokenSupply; constructor() ERC721("Hero Galaxy: Heroes", "HERO") {} // BEGIN REAL STUFF function setTokenBaseURI(string memory _baseURI) external onlyOwner { tokenBaseURI = _baseURI; } function setUnrevealedURI(string memory _unrevealedUri) external onlyOwner { unrevealedURI = _unrevealedUri; } function setWhitelistCap(uint256 _whitelist_cap) external onlyOwner { require(_whitelist_cap > RESERVED_HERO_GALAXY, "New reserved count must be higher than old"); RESERVED_HERO_GALAXY = _whitelist_cap; } function tokenURI(uint256 _tokenId) public view override returns (string memory) { bool revealed = bytes(tokenBaseURI).length > 0; if (!revealed) { return unrevealedURI; } require( _exists(_tokenId), "ERC721Metadata: URI query for nonexistent token" ); return string(abi.encodePacked(tokenBaseURI, _tokenId.toString())); } function setPresaleActive(bool _active) external onlyOwner { presaleActive = _active; } function setMintActive(bool _active) external onlyOwner { mintActive = _active; } function withdraw() public onlyOwner { uint256 balance = address(this).balance; payable(msg.sender).transfer(balance); } function verifyOwnerSignature(bytes32 hash, bytes memory signature) private view returns (bool) { return hash.toEthSignedMessageHash().recover(signature) == owner(); } // Mint function presaleMint(uint256 _quantity, bytes calldata _whitelistSignature) external payable nonReentrant { require( verifyOwnerSignature( keccak256(abi.encode(msg.sender)), _whitelistSignature ), "Invalid whitelist signature" ); require(presaleActive, "Presale is not active"); require( _quantity <= MAX_HERO_GALAXY_HEROES_WHITELIST_CAP, "You can only mint a maximum of 2 for presale" ); require( whitelistAddressMintCount[msg.sender].add(_quantity) <= MAX_HERO_GALAXY_HEROES_WHITELIST_CAP, "This purchase would exceed the maximum Hero Galaxy Heroes you are allowed to mint in the presale" ); whitelistAddressMintCount[msg.sender] += _quantity; _safeMintHeroes(_quantity); } function publicMint(uint256 _quantity) external payable { require(mintActive, "Sale is not active."); require( _quantity <= MAX_HERO_GALAXY_HEROES_PER_PURCHASE, "Quantity is more than allowed per transaction." ); _safeMintHeroes(_quantity); } function _safeMintHeroes(uint256 _quantity) internal { require(_quantity > 0, "You must mint at least 1 hero"); require( tokenSupply.current().add(_quantity) <= MAX_HERO_GALAXY_HEROES, "This purchase would exceed max supply of Hero Galaxy Heroes" ); require( msg.value >= HERO_GALAXY_PRICE.mul(_quantity), "The ether value sent is not correct" ); for (uint256 i = 0; i < _quantity; i++) { uint256 mintIndex = tokenSupply.current(); if (mintIndex < MAX_HERO_GALAXY_HEROES) { tokenSupply.increment(); _safeMint(msg.sender, mintIndex); } } } function mintReservedHeroes() external onlyOwner { require(!reservesMinted, "Reserves have already been minted."); require( tokenSupply.current().add(RESERVED_HERO_GALAXY) <= MAX_HERO_GALAXY_HEROES, "This mint would exceed max supply of Heroes" ); for (uint256 i = 0; i < RESERVED_HERO_GALAXY; i++) { uint256 mintIndex = tokenSupply.current(); if (mintIndex < MAX_HERO_GALAXY_HEROES) { tokenSupply.increment(); _safeMint(msg.sender, mintIndex); } } reservesMinted = true; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; import "../Strings.sol"; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return tryRecover(hash, r, vs); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); uint8 v = uint8((uint256(vs) >> 255) + 27); return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol) 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 { _setApprovalForAll(_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); _afterTokenTransfer(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); _afterTokenTransfer(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 from incorrect owner"); 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); _afterTokenTransfer(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 Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @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.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 {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
{ "remappings": [], "optimizer": { "enabled": false, "runs": 200 }, "evmVersion": "byzantium", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"HERO_GALAXY_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_HERO_GALAXY_HEROES","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_HERO_GALAXY_HEROES_PER_PURCHASE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_HERO_GALAXY_HEROES_WHITELIST_CAP","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RESERVED_HERO_GALAXY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintReservedHeroes","outputs":[],"stateMutability":"nonpayable","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":"presaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"},{"internalType":"bytes","name":"_whitelistSignature","type":"bytes"}],"name":"presaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reservesMinted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_active","type":"bool"}],"name":"setMintActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_active","type":"bool"}],"name":"setPresaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"}],"name":"setTokenBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_unrevealedUri","type":"string"}],"name":"setUnrevealedURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_whitelist_cap","type":"uint256"}],"name":"setWhitelistCap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenBaseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenSupply","outputs":[{"internalType":"uint256","name":"_value","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":"unrevealedURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526115b360085560056009556002600a556108ae600b556000600e60006101000a81548160ff0219169083151502179055506000600e60016101000a81548160ff0219169083151502179055506000600e60026101000a81548160ff0219169083151502179055503480156200007857600080fd5b506040518060400160405280601381526020017f4865726f2047616c6178793a204865726f6573000000000000000000000000008152506040518060400160405280600481526020017f4845524f000000000000000000000000000000000000000000000000000000008152508160009080519060200190620000fd92919062000227565b5080600190805190602001906200011692919062000227565b5050506200014b6200013662000159640100000000026401000000009004565b62000161640100000000026401000000009004565b60016007819055506200033c565b600033905090565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054620002359062000306565b90600052602060002090601f016020900481019282620002595760008555620002a5565b82601f106200027457805160ff1916838001178555620002a5565b82800160010185558215620002a5579182015b82811115620002a457825182559160200191906001019062000287565b5b509050620002b49190620002b8565b5090565b5b80821115620002d3576000816000905550600101620002b9565b5090565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200031f57607f821691505b60208210811415620003365762000335620002d7565b5b50919050565b614ea8806200034c6000396000f3fe60806040526004361061022c576000357c01000000000000000000000000000000000000000000000000000000009004806370a0823111610135578063c0929788116100bd578063e985e9c51161008c578063e985e9c514610765578063ee1cc944146107a2578063f2fde38b146107cb578063fd24a854146107f4578063fe2c7fee146108105761022c565b8063c0929788146106bb578063c87b56dd146106e6578063cc41d79514610723578063deded8961461074e5761022c565b80638ef79e91116101045780638ef79e91146105ec57806395d89b4114610615578063a20e0bca14610640578063a22cb46514610669578063b88d4fde146106925761022c565b806370a0823114610542578063715018a61461057f5780637824407f146105965780638da5cb5b146105c15761022c565b80633ccfd60b116101b85780634e99b800116101875780634e99b8001461045957806353135ca0146104845780636352211e146104af5780636831f9ae146104ec5780637035bf18146105175761022c565b80633ccfd60b146103c55780633f8121a2146103dc57806342842e0e146104055780634c0438061461042e5761022c565b8063142c0daf116101ff578063142c0daf146102ff5780631a76ec721461032a57806323b872dd1461035557806325fd90f31461037e5780632db11544146103a95761022c565b806301ffc9a71461023157806306fdde031461026e578063081812fc14610299578063095ea7b3146102d6575b600080fd5b34801561023d57600080fd5b506102586004803603810190610253919061305e565b610839565b60405161026591906130a6565b60405180910390f35b34801561027a57600080fd5b5061028361091b565b604051610290919061315a565b60405180910390f35b3480156102a557600080fd5b506102c060048036038101906102bb91906131b2565b6109ad565b6040516102cd9190613220565b60405180910390f35b3480156102e257600080fd5b506102fd60048036038101906102f89190613267565b610a32565b005b34801561030b57600080fd5b50610314610b4a565b60405161032191906132b6565b60405180910390f35b34801561033657600080fd5b5061033f610b50565b60405161034c91906132b6565b60405180910390f35b34801561036157600080fd5b5061037c600480360381019061037791906132d1565b610b56565b005b34801561038a57600080fd5b50610393610bb6565b6040516103a091906130a6565b60405180910390f35b6103c360048036038101906103be91906131b2565b610bc9565b005b3480156103d157600080fd5b506103da610c69565b005b3480156103e857600080fd5b5061040360048036038101906103fe9190613350565b610d4b565b005b34801561041157600080fd5b5061042c600480360381019061042791906132d1565b610de4565b005b34801561043a57600080fd5b50610443610e04565b60405161045091906132b6565b60405180910390f35b34801561046557600080fd5b5061046e610e0a565b60405161047b919061315a565b60405180910390f35b34801561049057600080fd5b50610499610e98565b6040516104a691906130a6565b60405180910390f35b3480156104bb57600080fd5b506104d660048036038101906104d191906131b2565b610eab565b6040516104e39190613220565b60405180910390f35b3480156104f857600080fd5b50610501610f5d565b60405161050e91906132b6565b60405180910390f35b34801561052357600080fd5b5061052c610f68565b604051610539919061315a565b60405180910390f35b34801561054e57600080fd5b506105696004803603810190610564919061337d565b610ff6565b60405161057691906132b6565b60405180910390f35b34801561058b57600080fd5b506105946110ae565b005b3480156105a257600080fd5b506105ab611136565b6040516105b891906132b6565b60405180910390f35b3480156105cd57600080fd5b506105d6611142565b6040516105e39190613220565b60405180910390f35b3480156105f857600080fd5b50610613600480360381019061060e91906134df565b61116c565b005b34801561062157600080fd5b5061062a611202565b604051610637919061315a565b60405180910390f35b34801561064c57600080fd5b50610667600480360381019061066291906131b2565b611294565b005b34801561067557600080fd5b50610690600480360381019061068b9190613528565b61135e565b005b34801561069e57600080fd5b506106b960048036038101906106b49190613609565b611374565b005b3480156106c757600080fd5b506106d06113d6565b6040516106dd91906132b6565b60405180910390f35b3480156106f257600080fd5b5061070d600480360381019061070891906131b2565b6113dc565b60405161071a919061315a565b60405180910390f35b34801561072f57600080fd5b50610738611507565b60405161074591906130a6565b60405180910390f35b34801561075a57600080fd5b5061076361151a565b005b34801561077157600080fd5b5061078c6004803603810190610787919061368c565b6116b4565b60405161079991906130a6565b60405180910390f35b3480156107ae57600080fd5b506107c960048036038101906107c49190613350565b611748565b005b3480156107d757600080fd5b506107f260048036038101906107ed919061337d565b6117e1565b005b61080e6004803603810190610809919061372c565b6118d9565b005b34801561081c57600080fd5b50610837600480360381019061083291906134df565b611b70565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061090457507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610914575061091382611c06565b5b9050919050565b60606000805461092a906137bb565b80601f0160208091040260200160405190810160405280929190818152602001828054610956906137bb565b80156109a35780601f10610978576101008083540402835291602001916109a3565b820191906000526020600020905b81548152906001019060200180831161098657829003601f168201915b5050505050905090565b60006109b882611c70565b6109f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109ee9061385f565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610a3d82610eab565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610aae576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aa5906138f1565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610acd611cdc565b73ffffffffffffffffffffffffffffffffffffffff161480610afc5750610afb81610af6611cdc565b6116b4565b5b610b3b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b3290613983565b60405180910390fd5b610b458383611ce4565b505050565b60095481565b600a5481565b610b67610b61611cdc565b82611d9d565b610ba6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b9d90613a15565b60405180910390fd5b610bb1838383611e7b565b505050565b600e60019054906101000a900460ff1681565b600e60019054906101000a900460ff16610c18576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c0f90613a81565b60405180910390fd5b600954811115610c5d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c5490613b13565b60405180910390fd5b610c66816120e2565b50565b610c71611cdc565b73ffffffffffffffffffffffffffffffffffffffff16610c8f611142565b73ffffffffffffffffffffffffffffffffffffffff1614610ce5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cdc90613b7f565b60405180910390fd5b60003073ffffffffffffffffffffffffffffffffffffffff163190503373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015610d47573d6000803e3d6000fd5b5050565b610d53611cdc565b73ffffffffffffffffffffffffffffffffffffffff16610d71611142565b73ffffffffffffffffffffffffffffffffffffffff1614610dc7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dbe90613b7f565b60405180910390fd5b80600e60006101000a81548160ff02191690831515021790555050565b610dff83838360405180602001604052806000815250611374565b505050565b60085481565b600c8054610e17906137bb565b80601f0160208091040260200160405190810160405280929190818152602001828054610e43906137bb565b8015610e905780601f10610e6557610100808354040283529160200191610e90565b820191906000526020600020905b815481529060010190602001808311610e7357829003601f168201915b505050505081565b600e60009054906101000a900460ff1681565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610f54576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f4b90613c11565b60405180910390fd5b80915050919050565b66f523226980800081565b600d8054610f75906137bb565b80601f0160208091040260200160405190810160405280929190818152602001828054610fa1906137bb565b8015610fee5780601f10610fc357610100808354040283529160200191610fee565b820191906000526020600020905b815481529060010190602001808311610fd157829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611067576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161105e90613ca3565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6110b6611cdc565b73ffffffffffffffffffffffffffffffffffffffff166110d4611142565b73ffffffffffffffffffffffffffffffffffffffff161461112a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161112190613b7f565b60405180910390fd5b6111346000612231565b565b60108060000154905081565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611174611cdc565b73ffffffffffffffffffffffffffffffffffffffff16611192611142565b73ffffffffffffffffffffffffffffffffffffffff16146111e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111df90613b7f565b60405180910390fd5b80600c90805190602001906111fe929190612f4f565b5050565b606060018054611211906137bb565b80601f016020809104026020016040519081016040528092919081815260200182805461123d906137bb565b801561128a5780601f1061125f5761010080835404028352916020019161128a565b820191906000526020600020905b81548152906001019060200180831161126d57829003601f168201915b5050505050905090565b61129c611cdc565b73ffffffffffffffffffffffffffffffffffffffff166112ba611142565b73ffffffffffffffffffffffffffffffffffffffff1614611310576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161130790613b7f565b60405180910390fd5b600b548111611354576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161134b90613d35565b60405180910390fd5b80600b8190555050565b611370611369611cdc565b83836122f7565b5050565b61138561137f611cdc565b83611d9d565b6113c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113bb90613a15565b60405180910390fd5b6113d084848484612464565b50505050565b600b5481565b6060600080600c80546113ee906137bb565b90501190508061148b57600d8054611405906137bb565b80601f0160208091040260200160405190810160405280929190818152602001828054611431906137bb565b801561147e5780601f106114535761010080835404028352916020019161147e565b820191906000526020600020905b81548152906001019060200180831161146157829003601f168201915b5050505050915050611502565b61149483611c70565b6114d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114ca90613dc7565b60405180910390fd5b600c6114de846124c0565b6040516020016114ef929190613eb7565b6040516020818303038152906040529150505b919050565b600e60029054906101000a900460ff1681565b611522611cdc565b73ffffffffffffffffffffffffffffffffffffffff16611540611142565b73ffffffffffffffffffffffffffffffffffffffff1614611596576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161158d90613b7f565b60405180910390fd5b600e60029054906101000a900460ff16156115e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115dd90613f4d565b60405180910390fd5b600854611607600b546115f96010612640565b61264e90919063ffffffff16565b1115611648576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161163f90613fdf565b60405180910390fd5b60005b600b548110156116965760006116616010612640565b9050600854811015611682576116776010612664565b611681338261267a565b5b50808061168e9061402e565b91505061164b565b506001600e60026101000a81548160ff021916908315150217905550565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611750611cdc565b73ffffffffffffffffffffffffffffffffffffffff1661176e611142565b73ffffffffffffffffffffffffffffffffffffffff16146117c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117bb90613b7f565b60405180910390fd5b80600e60016101000a81548160ff02191690831515021790555050565b6117e9611cdc565b73ffffffffffffffffffffffffffffffffffffffff16611807611142565b73ffffffffffffffffffffffffffffffffffffffff161461185d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161185490613b7f565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156118cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118c4906140e9565b60405180910390fd5b6118d681612231565b50565b6002600754141561191f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161191690614155565b60405180910390fd5b600260078190555061199b3360405160200161193b9190613220565b6040516020818303038152906040528051906020012083838080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050612698565b6119da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119d1906141c1565b60405180910390fd5b600e60009054906101000a900460ff16611a29576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a209061422d565b60405180910390fd5b600a54831115611a6e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a65906142bf565b60405180910390fd5b600a54611ac384600f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461264e90919063ffffffff16565b1115611b04576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611afb90614377565b60405180910390fd5b82600f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611b539190614397565b92505081905550611b63836120e2565b6001600781905550505050565b611b78611cdc565b73ffffffffffffffffffffffffffffffffffffffff16611b96611142565b73ffffffffffffffffffffffffffffffffffffffff1614611bec576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611be390613b7f565b60405180910390fd5b80600d9080519060200190611c02929190612f4f565b5050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611d5783610eab565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611da882611c70565b611de7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dde9061445f565b60405180910390fd5b6000611df283610eab565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611e6157508373ffffffffffffffffffffffffffffffffffffffff16611e49846109ad565b73ffffffffffffffffffffffffffffffffffffffff16145b80611e725750611e7181856116b4565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611e9b82610eab565b73ffffffffffffffffffffffffffffffffffffffff1614611ef1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ee8906144f1565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611f61576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f5890614583565b60405180910390fd5b611f6c8383836126f2565b611f77600082611ce4565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611fc791906145a3565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461201e9190614397565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46120dd8383836126f7565b505050565b60008111612125576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161211c90614623565b60405180910390fd5b600854612144826121366010612640565b61264e90919063ffffffff16565b1115612185576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161217c906146b5565b60405180910390fd5b61219f8166f52322698080006126fc90919063ffffffff16565b3410156121e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121d890614747565b60405180910390fd5b60005b8181101561222d5760006121f86010612640565b90506008548110156122195761220e6010612664565b612218338261267a565b5b5080806122259061402e565b9150506121e4565b5050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612366576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161235d906147b3565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161245791906130a6565b60405180910390a3505050565b61246f848484611e7b565b61247b84848484612712565b6124ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124b190614845565b60405180910390fd5b50505050565b60606000821415612508576040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905061263b565b600082905060005b6000821461253a5780806125239061402e565b915050600a826125339190614894565b9150612510565b60008167ffffffffffffffff811115612556576125556133b4565b5b6040519080825280601f01601f1916602001820160405280156125885781602001600182028036833780820191505090505b5090505b60008514612634576001826125a191906145a3565b9150600a856125b091906148c5565b60306125bc9190614397565b7f0100000000000000000000000000000000000000000000000000000000000000028183815181106125f1576125f06148f6565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561262d9190614894565b945061258c565b8093505050505b919050565b600081600001549050919050565b6000818361265c9190614397565b905092915050565b6001816000016000828254019250508190555050565b6126948282604051806020016040528060008152506128d2565b5050565b60006126a2611142565b73ffffffffffffffffffffffffffffffffffffffff166126d3836126c58661292d565b61295d90919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff1614905092915050565b505050565b505050565b6000818361270a9190614925565b905092915050565b60006127338473ffffffffffffffffffffffffffffffffffffffff16612984565b156128c5578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261275c611cdc565b8786866040518563ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040161279a94939291906149d4565b6020604051808303816000875af19250505080156127d657506040513d601f19601f820116820180604052508101906127d39190614a35565b60015b612859573d8060008114612806576040519150601f19603f3d011682016040523d82523d6000602084013e61280b565b606091505b50600081511415612851576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161284890614845565b60405180910390fd5b805181602001fd5b63150b7a027c0100000000000000000000000000000000000000000000000000000000027bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506128ca565b600190505b949350505050565b6128dc83836129a7565b6128e96000848484612712565b612928576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161291f90614845565b60405180910390fd5b505050565b6000816040516020016129409190614ad9565b604051602081830303815290604052805190602001209050919050565b600080600061296c8585612b81565b9150915061297981612c04565b819250505092915050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612a17576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a0e90614b4b565b60405180910390fd5b612a2081611c70565b15612a60576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a5790614bb7565b60405180910390fd5b612a6c600083836126f2565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612abc9190614397565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612b7d600083836126f7565b5050565b600080604183511415612bc35760008060006020860151925060408601519150606086015160001a9050612bb787828585612dd9565b94509450505050612bfd565b604083511415612bf4576000806020850151915060408501519050612be9868383612ee7565b935093505050612bfd565b60006002915091505b9250929050565b60006004811115612c1857612c17614bd7565b5b816004811115612c2b57612c2a614bd7565b5b1415612c3657612dd6565b60016004811115612c4a57612c49614bd7565b5b816004811115612c5d57612c5c614bd7565b5b1415612c9e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c9590614c52565b60405180910390fd5b60026004811115612cb257612cb1614bd7565b5b816004811115612cc557612cc4614bd7565b5b1415612d06576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cfd90614cbe565b60405180910390fd5b60036004811115612d1a57612d19614bd7565b5b816004811115612d2d57612d2c614bd7565b5b1415612d6e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d6590614d50565b60405180910390fd5b600480811115612d8157612d80614bd7565b5b816004811115612d9457612d93614bd7565b5b1415612dd5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612dcc90614de2565b60405180910390fd5b5b50565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083600190041115612e15576000600391509150612ede565b601b8560ff1614158015612e2d5750601c8560ff1614155b15612e3f576000600491509150612ede565b600060018787878760405160008152602001604052604051612e649493929190614e2d565b6020604051602081039080840390855afa158015612e86573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612ed557600060019250925050612ede565b80600092509250505b94509492505050565b60008060007f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600102841690506000601b60ff8660019004908060020a8204915050612f339190614397565b9050612f4187828885612dd9565b935093505050935093915050565b828054612f5b906137bb565b90600052602060002090601f016020900481019282612f7d5760008555612fc4565b82601f10612f9657805160ff1916838001178555612fc4565b82800160010185558215612fc4579182015b82811115612fc3578251825591602001919060010190612fa8565b5b509050612fd19190612fd5565b5090565b5b80821115612fee576000816000905550600101612fd6565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61303b81613006565b811461304657600080fd5b50565b60008135905061305881613032565b92915050565b60006020828403121561307457613073612ffc565b5b600061308284828501613049565b91505092915050565b60008115159050919050565b6130a08161308b565b82525050565b60006020820190506130bb6000830184613097565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156130fb5780820151818401526020810190506130e0565b8381111561310a576000848401525b50505050565b6000601f19601f8301169050919050565b600061312c826130c1565b61313681856130cc565b93506131468185602086016130dd565b61314f81613110565b840191505092915050565b600060208201905081810360008301526131748184613121565b905092915050565b6000819050919050565b61318f8161317c565b811461319a57600080fd5b50565b6000813590506131ac81613186565b92915050565b6000602082840312156131c8576131c7612ffc565b5b60006131d68482850161319d565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061320a826131df565b9050919050565b61321a816131ff565b82525050565b60006020820190506132356000830184613211565b92915050565b613244816131ff565b811461324f57600080fd5b50565b6000813590506132618161323b565b92915050565b6000806040838503121561327e5761327d612ffc565b5b600061328c85828601613252565b925050602061329d8582860161319d565b9150509250929050565b6132b08161317c565b82525050565b60006020820190506132cb60008301846132a7565b92915050565b6000806000606084860312156132ea576132e9612ffc565b5b60006132f886828701613252565b935050602061330986828701613252565b925050604061331a8682870161319d565b9150509250925092565b61332d8161308b565b811461333857600080fd5b50565b60008135905061334a81613324565b92915050565b60006020828403121561336657613365612ffc565b5b60006133748482850161333b565b91505092915050565b60006020828403121561339357613392612ffc565b5b60006133a184828501613252565b91505092915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6133ec82613110565b810181811067ffffffffffffffff8211171561340b5761340a6133b4565b5b80604052505050565b600061341e612ff2565b905061342a82826133e3565b919050565b600067ffffffffffffffff82111561344a576134496133b4565b5b61345382613110565b9050602081019050919050565b82818337600083830152505050565b600061348261347d8461342f565b613414565b90508281526020810184848401111561349e5761349d6133af565b5b6134a9848285613460565b509392505050565b600082601f8301126134c6576134c56133aa565b5b81356134d684826020860161346f565b91505092915050565b6000602082840312156134f5576134f4612ffc565b5b600082013567ffffffffffffffff81111561351357613512613001565b5b61351f848285016134b1565b91505092915050565b6000806040838503121561353f5761353e612ffc565b5b600061354d85828601613252565b925050602061355e8582860161333b565b9150509250929050565b600067ffffffffffffffff821115613583576135826133b4565b5b61358c82613110565b9050602081019050919050565b60006135ac6135a784613568565b613414565b9050828152602081018484840111156135c8576135c76133af565b5b6135d3848285613460565b509392505050565b600082601f8301126135f0576135ef6133aa565b5b8135613600848260208601613599565b91505092915050565b6000806000806080858703121561362357613622612ffc565b5b600061363187828801613252565b945050602061364287828801613252565b93505060406136538782880161319d565b925050606085013567ffffffffffffffff81111561367457613673613001565b5b613680878288016135db565b91505092959194509250565b600080604083850312156136a3576136a2612ffc565b5b60006136b185828601613252565b92505060206136c285828601613252565b9150509250929050565b600080fd5b600080fd5b60008083601f8401126136ec576136eb6133aa565b5b8235905067ffffffffffffffff811115613709576137086136cc565b5b602083019150836001820283011115613725576137246136d1565b5b9250929050565b60008060006040848603121561374557613744612ffc565b5b60006137538682870161319d565b935050602084013567ffffffffffffffff81111561377457613773613001565b5b613780868287016136d6565b92509250509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806137d357607f821691505b602082108114156137e7576137e661378c565b5b50919050565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b6000613849602c836130cc565b9150613854826137ed565b604082019050919050565b600060208201905081810360008301526138788161383c565b9050919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b60006138db6021836130cc565b91506138e68261387f565b604082019050919050565b6000602082019050818103600083015261390a816138ce565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b600061396d6038836130cc565b915061397882613911565b604082019050919050565b6000602082019050818103600083015261399c81613960565b9050919050565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b60006139ff6031836130cc565b9150613a0a826139a3565b604082019050919050565b60006020820190508181036000830152613a2e816139f2565b9050919050565b7f53616c65206973206e6f74206163746976652e00000000000000000000000000600082015250565b6000613a6b6013836130cc565b9150613a7682613a35565b602082019050919050565b60006020820190508181036000830152613a9a81613a5e565b9050919050565b7f5175616e74697479206973206d6f7265207468616e20616c6c6f77656420706560008201527f72207472616e73616374696f6e2e000000000000000000000000000000000000602082015250565b6000613afd602e836130cc565b9150613b0882613aa1565b604082019050919050565b60006020820190508181036000830152613b2c81613af0565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613b696020836130cc565b9150613b7482613b33565b602082019050919050565b60006020820190508181036000830152613b9881613b5c565b9050919050565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b6000613bfb6029836130cc565b9150613c0682613b9f565b604082019050919050565b60006020820190508181036000830152613c2a81613bee565b9050919050565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b6000613c8d602a836130cc565b9150613c9882613c31565b604082019050919050565b60006020820190508181036000830152613cbc81613c80565b9050919050565b7f4e657720726573657276656420636f756e74206d75737420626520686967686560008201527f72207468616e206f6c6400000000000000000000000000000000000000000000602082015250565b6000613d1f602a836130cc565b9150613d2a82613cc3565b604082019050919050565b60006020820190508181036000830152613d4e81613d12565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000613db1602f836130cc565b9150613dbc82613d55565b604082019050919050565b60006020820190508181036000830152613de081613da4565b9050919050565b600081905092915050565b60008190508160005260206000209050919050565b60008154613e14816137bb565b613e1e8186613de7565b94506001821660008114613e395760018114613e4a57613e7d565b60ff19831686528186019350613e7d565b613e5385613df2565b60005b83811015613e7557815481890152600182019150602081019050613e56565b838801955050505b50505092915050565b6000613e91826130c1565b613e9b8185613de7565b9350613eab8185602086016130dd565b80840191505092915050565b6000613ec38285613e07565b9150613ecf8284613e86565b91508190509392505050565b7f5265736572766573206861766520616c7265616479206265656e206d696e746560008201527f642e000000000000000000000000000000000000000000000000000000000000602082015250565b6000613f376022836130cc565b9150613f4282613edb565b604082019050919050565b60006020820190508181036000830152613f6681613f2a565b9050919050565b7f54686973206d696e7420776f756c6420657863656564206d617820737570706c60008201527f79206f66204865726f6573000000000000000000000000000000000000000000602082015250565b6000613fc9602b836130cc565b9150613fd482613f6d565b604082019050919050565b60006020820190508181036000830152613ff881613fbc565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006140398261317c565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561406c5761406b613fff565b5b600182019050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006140d36026836130cc565b91506140de82614077565b604082019050919050565b60006020820190508181036000830152614102816140c6565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b600061413f601f836130cc565b915061414a82614109565b602082019050919050565b6000602082019050818103600083015261416e81614132565b9050919050565b7f496e76616c69642077686974656c697374207369676e61747572650000000000600082015250565b60006141ab601b836130cc565b91506141b682614175565b602082019050919050565b600060208201905081810360008301526141da8161419e565b9050919050565b7f50726573616c65206973206e6f74206163746976650000000000000000000000600082015250565b60006142176015836130cc565b9150614222826141e1565b602082019050919050565b600060208201905081810360008301526142468161420a565b9050919050565b7f596f752063616e206f6e6c79206d696e742061206d6178696d756d206f66203260008201527f20666f722070726573616c650000000000000000000000000000000000000000602082015250565b60006142a9602c836130cc565b91506142b48261424d565b604082019050919050565b600060208201905081810360008301526142d88161429c565b9050919050565b7f5468697320707572636861736520776f756c642065786365656420746865206d60008201527f6178696d756d204865726f2047616c617879204865726f657320796f7520617260208201527f6520616c6c6f77656420746f206d696e7420696e207468652070726573616c65604082015250565b60006143616060836130cc565b915061436c826142df565b606082019050919050565b6000602082019050818103600083015261439081614354565b9050919050565b60006143a28261317c565b91506143ad8361317c565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156143e2576143e1613fff565b5b828201905092915050565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b6000614449602c836130cc565b9150614454826143ed565b604082019050919050565b600060208201905081810360008301526144788161443c565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b60006144db6025836130cc565b91506144e68261447f565b604082019050919050565b6000602082019050818103600083015261450a816144ce565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b600061456d6024836130cc565b915061457882614511565b604082019050919050565b6000602082019050818103600083015261459c81614560565b9050919050565b60006145ae8261317c565b91506145b98361317c565b9250828210156145cc576145cb613fff565b5b828203905092915050565b7f596f75206d757374206d696e74206174206c656173742031206865726f000000600082015250565b600061460d601d836130cc565b9150614618826145d7565b602082019050919050565b6000602082019050818103600083015261463c81614600565b9050919050565b7f5468697320707572636861736520776f756c6420657863656564206d6178207360008201527f7570706c79206f66204865726f2047616c617879204865726f65730000000000602082015250565b600061469f603b836130cc565b91506146aa82614643565b604082019050919050565b600060208201905081810360008301526146ce81614692565b9050919050565b7f5468652065746865722076616c75652073656e74206973206e6f7420636f727260008201527f6563740000000000000000000000000000000000000000000000000000000000602082015250565b60006147316023836130cc565b915061473c826146d5565b604082019050919050565b6000602082019050818103600083015261476081614724565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b600061479d6019836130cc565b91506147a882614767565b602082019050919050565b600060208201905081810360008301526147cc81614790565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b600061482f6032836130cc565b915061483a826147d3565b604082019050919050565b6000602082019050818103600083015261485e81614822565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061489f8261317c565b91506148aa8361317c565b9250826148ba576148b9614865565b5b828204905092915050565b60006148d08261317c565b91506148db8361317c565b9250826148eb576148ea614865565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006149308261317c565b915061493b8361317c565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561497457614973613fff565b5b828202905092915050565b600081519050919050565b600082825260208201905092915050565b60006149a68261497f565b6149b0818561498a565b93506149c08185602086016130dd565b6149c981613110565b840191505092915050565b60006080820190506149e96000830187613211565b6149f66020830186613211565b614a0360408301856132a7565b8181036060830152614a15818461499b565b905095945050505050565b600081519050614a2f81613032565b92915050565b600060208284031215614a4b57614a4a612ffc565b5b6000614a5984828501614a20565b91505092915050565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b6000614a98601c83613de7565b9150614aa382614a62565b601c82019050919050565b6000819050919050565b6000819050919050565b614ad3614ace82614aae565b614ab8565b82525050565b6000614ae482614a8b565b9150614af08284614ac2565b60208201915081905092915050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000614b356020836130cc565b9150614b4082614aff565b602082019050919050565b60006020820190508181036000830152614b6481614b28565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000614ba1601c836130cc565b9150614bac82614b6b565b602082019050919050565b60006020820190508181036000830152614bd081614b94565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b6000614c3c6018836130cc565b9150614c4782614c06565b602082019050919050565b60006020820190508181036000830152614c6b81614c2f565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b6000614ca8601f836130cc565b9150614cb382614c72565b602082019050919050565b60006020820190508181036000830152614cd781614c9b565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b6000614d3a6022836130cc565b9150614d4582614cde565b604082019050919050565b60006020820190508181036000830152614d6981614d2d565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b6000614dcc6022836130cc565b9150614dd782614d70565b604082019050919050565b60006020820190508181036000830152614dfb81614dbf565b9050919050565b614e0b81614aae565b82525050565b600060ff82169050919050565b614e2781614e11565b82525050565b6000608082019050614e426000830187614e02565b614e4f6020830186614e1e565b614e5c6040830185614e02565b614e696060830184614e02565b9594505050505056fea264697066735822122022f3e6350d7ba008c7c76bd1e0b4c6b623d28e55af41de807df4e72a2d9d470364736f6c634300080b0033
Deployed Bytecode
0x60806040526004361061022c576000357c01000000000000000000000000000000000000000000000000000000009004806370a0823111610135578063c0929788116100bd578063e985e9c51161008c578063e985e9c514610765578063ee1cc944146107a2578063f2fde38b146107cb578063fd24a854146107f4578063fe2c7fee146108105761022c565b8063c0929788146106bb578063c87b56dd146106e6578063cc41d79514610723578063deded8961461074e5761022c565b80638ef79e91116101045780638ef79e91146105ec57806395d89b4114610615578063a20e0bca14610640578063a22cb46514610669578063b88d4fde146106925761022c565b806370a0823114610542578063715018a61461057f5780637824407f146105965780638da5cb5b146105c15761022c565b80633ccfd60b116101b85780634e99b800116101875780634e99b8001461045957806353135ca0146104845780636352211e146104af5780636831f9ae146104ec5780637035bf18146105175761022c565b80633ccfd60b146103c55780633f8121a2146103dc57806342842e0e146104055780634c0438061461042e5761022c565b8063142c0daf116101ff578063142c0daf146102ff5780631a76ec721461032a57806323b872dd1461035557806325fd90f31461037e5780632db11544146103a95761022c565b806301ffc9a71461023157806306fdde031461026e578063081812fc14610299578063095ea7b3146102d6575b600080fd5b34801561023d57600080fd5b506102586004803603810190610253919061305e565b610839565b60405161026591906130a6565b60405180910390f35b34801561027a57600080fd5b5061028361091b565b604051610290919061315a565b60405180910390f35b3480156102a557600080fd5b506102c060048036038101906102bb91906131b2565b6109ad565b6040516102cd9190613220565b60405180910390f35b3480156102e257600080fd5b506102fd60048036038101906102f89190613267565b610a32565b005b34801561030b57600080fd5b50610314610b4a565b60405161032191906132b6565b60405180910390f35b34801561033657600080fd5b5061033f610b50565b60405161034c91906132b6565b60405180910390f35b34801561036157600080fd5b5061037c600480360381019061037791906132d1565b610b56565b005b34801561038a57600080fd5b50610393610bb6565b6040516103a091906130a6565b60405180910390f35b6103c360048036038101906103be91906131b2565b610bc9565b005b3480156103d157600080fd5b506103da610c69565b005b3480156103e857600080fd5b5061040360048036038101906103fe9190613350565b610d4b565b005b34801561041157600080fd5b5061042c600480360381019061042791906132d1565b610de4565b005b34801561043a57600080fd5b50610443610e04565b60405161045091906132b6565b60405180910390f35b34801561046557600080fd5b5061046e610e0a565b60405161047b919061315a565b60405180910390f35b34801561049057600080fd5b50610499610e98565b6040516104a691906130a6565b60405180910390f35b3480156104bb57600080fd5b506104d660048036038101906104d191906131b2565b610eab565b6040516104e39190613220565b60405180910390f35b3480156104f857600080fd5b50610501610f5d565b60405161050e91906132b6565b60405180910390f35b34801561052357600080fd5b5061052c610f68565b604051610539919061315a565b60405180910390f35b34801561054e57600080fd5b506105696004803603810190610564919061337d565b610ff6565b60405161057691906132b6565b60405180910390f35b34801561058b57600080fd5b506105946110ae565b005b3480156105a257600080fd5b506105ab611136565b6040516105b891906132b6565b60405180910390f35b3480156105cd57600080fd5b506105d6611142565b6040516105e39190613220565b60405180910390f35b3480156105f857600080fd5b50610613600480360381019061060e91906134df565b61116c565b005b34801561062157600080fd5b5061062a611202565b604051610637919061315a565b60405180910390f35b34801561064c57600080fd5b50610667600480360381019061066291906131b2565b611294565b005b34801561067557600080fd5b50610690600480360381019061068b9190613528565b61135e565b005b34801561069e57600080fd5b506106b960048036038101906106b49190613609565b611374565b005b3480156106c757600080fd5b506106d06113d6565b6040516106dd91906132b6565b60405180910390f35b3480156106f257600080fd5b5061070d600480360381019061070891906131b2565b6113dc565b60405161071a919061315a565b60405180910390f35b34801561072f57600080fd5b50610738611507565b60405161074591906130a6565b60405180910390f35b34801561075a57600080fd5b5061076361151a565b005b34801561077157600080fd5b5061078c6004803603810190610787919061368c565b6116b4565b60405161079991906130a6565b60405180910390f35b3480156107ae57600080fd5b506107c960048036038101906107c49190613350565b611748565b005b3480156107d757600080fd5b506107f260048036038101906107ed919061337d565b6117e1565b005b61080e6004803603810190610809919061372c565b6118d9565b005b34801561081c57600080fd5b50610837600480360381019061083291906134df565b611b70565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061090457507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610914575061091382611c06565b5b9050919050565b60606000805461092a906137bb565b80601f0160208091040260200160405190810160405280929190818152602001828054610956906137bb565b80156109a35780601f10610978576101008083540402835291602001916109a3565b820191906000526020600020905b81548152906001019060200180831161098657829003601f168201915b5050505050905090565b60006109b882611c70565b6109f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109ee9061385f565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610a3d82610eab565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610aae576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aa5906138f1565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610acd611cdc565b73ffffffffffffffffffffffffffffffffffffffff161480610afc5750610afb81610af6611cdc565b6116b4565b5b610b3b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b3290613983565b60405180910390fd5b610b458383611ce4565b505050565b60095481565b600a5481565b610b67610b61611cdc565b82611d9d565b610ba6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b9d90613a15565b60405180910390fd5b610bb1838383611e7b565b505050565b600e60019054906101000a900460ff1681565b600e60019054906101000a900460ff16610c18576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c0f90613a81565b60405180910390fd5b600954811115610c5d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c5490613b13565b60405180910390fd5b610c66816120e2565b50565b610c71611cdc565b73ffffffffffffffffffffffffffffffffffffffff16610c8f611142565b73ffffffffffffffffffffffffffffffffffffffff1614610ce5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cdc90613b7f565b60405180910390fd5b60003073ffffffffffffffffffffffffffffffffffffffff163190503373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015610d47573d6000803e3d6000fd5b5050565b610d53611cdc565b73ffffffffffffffffffffffffffffffffffffffff16610d71611142565b73ffffffffffffffffffffffffffffffffffffffff1614610dc7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dbe90613b7f565b60405180910390fd5b80600e60006101000a81548160ff02191690831515021790555050565b610dff83838360405180602001604052806000815250611374565b505050565b60085481565b600c8054610e17906137bb565b80601f0160208091040260200160405190810160405280929190818152602001828054610e43906137bb565b8015610e905780601f10610e6557610100808354040283529160200191610e90565b820191906000526020600020905b815481529060010190602001808311610e7357829003601f168201915b505050505081565b600e60009054906101000a900460ff1681565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610f54576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f4b90613c11565b60405180910390fd5b80915050919050565b66f523226980800081565b600d8054610f75906137bb565b80601f0160208091040260200160405190810160405280929190818152602001828054610fa1906137bb565b8015610fee5780601f10610fc357610100808354040283529160200191610fee565b820191906000526020600020905b815481529060010190602001808311610fd157829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611067576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161105e90613ca3565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6110b6611cdc565b73ffffffffffffffffffffffffffffffffffffffff166110d4611142565b73ffffffffffffffffffffffffffffffffffffffff161461112a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161112190613b7f565b60405180910390fd5b6111346000612231565b565b60108060000154905081565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611174611cdc565b73ffffffffffffffffffffffffffffffffffffffff16611192611142565b73ffffffffffffffffffffffffffffffffffffffff16146111e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111df90613b7f565b60405180910390fd5b80600c90805190602001906111fe929190612f4f565b5050565b606060018054611211906137bb565b80601f016020809104026020016040519081016040528092919081815260200182805461123d906137bb565b801561128a5780601f1061125f5761010080835404028352916020019161128a565b820191906000526020600020905b81548152906001019060200180831161126d57829003601f168201915b5050505050905090565b61129c611cdc565b73ffffffffffffffffffffffffffffffffffffffff166112ba611142565b73ffffffffffffffffffffffffffffffffffffffff1614611310576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161130790613b7f565b60405180910390fd5b600b548111611354576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161134b90613d35565b60405180910390fd5b80600b8190555050565b611370611369611cdc565b83836122f7565b5050565b61138561137f611cdc565b83611d9d565b6113c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113bb90613a15565b60405180910390fd5b6113d084848484612464565b50505050565b600b5481565b6060600080600c80546113ee906137bb565b90501190508061148b57600d8054611405906137bb565b80601f0160208091040260200160405190810160405280929190818152602001828054611431906137bb565b801561147e5780601f106114535761010080835404028352916020019161147e565b820191906000526020600020905b81548152906001019060200180831161146157829003601f168201915b5050505050915050611502565b61149483611c70565b6114d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114ca90613dc7565b60405180910390fd5b600c6114de846124c0565b6040516020016114ef929190613eb7565b6040516020818303038152906040529150505b919050565b600e60029054906101000a900460ff1681565b611522611cdc565b73ffffffffffffffffffffffffffffffffffffffff16611540611142565b73ffffffffffffffffffffffffffffffffffffffff1614611596576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161158d90613b7f565b60405180910390fd5b600e60029054906101000a900460ff16156115e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115dd90613f4d565b60405180910390fd5b600854611607600b546115f96010612640565b61264e90919063ffffffff16565b1115611648576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161163f90613fdf565b60405180910390fd5b60005b600b548110156116965760006116616010612640565b9050600854811015611682576116776010612664565b611681338261267a565b5b50808061168e9061402e565b91505061164b565b506001600e60026101000a81548160ff021916908315150217905550565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611750611cdc565b73ffffffffffffffffffffffffffffffffffffffff1661176e611142565b73ffffffffffffffffffffffffffffffffffffffff16146117c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117bb90613b7f565b60405180910390fd5b80600e60016101000a81548160ff02191690831515021790555050565b6117e9611cdc565b73ffffffffffffffffffffffffffffffffffffffff16611807611142565b73ffffffffffffffffffffffffffffffffffffffff161461185d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161185490613b7f565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156118cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118c4906140e9565b60405180910390fd5b6118d681612231565b50565b6002600754141561191f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161191690614155565b60405180910390fd5b600260078190555061199b3360405160200161193b9190613220565b6040516020818303038152906040528051906020012083838080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050612698565b6119da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119d1906141c1565b60405180910390fd5b600e60009054906101000a900460ff16611a29576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a209061422d565b60405180910390fd5b600a54831115611a6e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a65906142bf565b60405180910390fd5b600a54611ac384600f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461264e90919063ffffffff16565b1115611b04576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611afb90614377565b60405180910390fd5b82600f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611b539190614397565b92505081905550611b63836120e2565b6001600781905550505050565b611b78611cdc565b73ffffffffffffffffffffffffffffffffffffffff16611b96611142565b73ffffffffffffffffffffffffffffffffffffffff1614611bec576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611be390613b7f565b60405180910390fd5b80600d9080519060200190611c02929190612f4f565b5050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611d5783610eab565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611da882611c70565b611de7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dde9061445f565b60405180910390fd5b6000611df283610eab565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611e6157508373ffffffffffffffffffffffffffffffffffffffff16611e49846109ad565b73ffffffffffffffffffffffffffffffffffffffff16145b80611e725750611e7181856116b4565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611e9b82610eab565b73ffffffffffffffffffffffffffffffffffffffff1614611ef1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ee8906144f1565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611f61576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f5890614583565b60405180910390fd5b611f6c8383836126f2565b611f77600082611ce4565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611fc791906145a3565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461201e9190614397565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46120dd8383836126f7565b505050565b60008111612125576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161211c90614623565b60405180910390fd5b600854612144826121366010612640565b61264e90919063ffffffff16565b1115612185576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161217c906146b5565b60405180910390fd5b61219f8166f52322698080006126fc90919063ffffffff16565b3410156121e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121d890614747565b60405180910390fd5b60005b8181101561222d5760006121f86010612640565b90506008548110156122195761220e6010612664565b612218338261267a565b5b5080806122259061402e565b9150506121e4565b5050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612366576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161235d906147b3565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161245791906130a6565b60405180910390a3505050565b61246f848484611e7b565b61247b84848484612712565b6124ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124b190614845565b60405180910390fd5b50505050565b60606000821415612508576040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905061263b565b600082905060005b6000821461253a5780806125239061402e565b915050600a826125339190614894565b9150612510565b60008167ffffffffffffffff811115612556576125556133b4565b5b6040519080825280601f01601f1916602001820160405280156125885781602001600182028036833780820191505090505b5090505b60008514612634576001826125a191906145a3565b9150600a856125b091906148c5565b60306125bc9190614397565b7f0100000000000000000000000000000000000000000000000000000000000000028183815181106125f1576125f06148f6565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561262d9190614894565b945061258c565b8093505050505b919050565b600081600001549050919050565b6000818361265c9190614397565b905092915050565b6001816000016000828254019250508190555050565b6126948282604051806020016040528060008152506128d2565b5050565b60006126a2611142565b73ffffffffffffffffffffffffffffffffffffffff166126d3836126c58661292d565b61295d90919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff1614905092915050565b505050565b505050565b6000818361270a9190614925565b905092915050565b60006127338473ffffffffffffffffffffffffffffffffffffffff16612984565b156128c5578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261275c611cdc565b8786866040518563ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040161279a94939291906149d4565b6020604051808303816000875af19250505080156127d657506040513d601f19601f820116820180604052508101906127d39190614a35565b60015b612859573d8060008114612806576040519150601f19603f3d011682016040523d82523d6000602084013e61280b565b606091505b50600081511415612851576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161284890614845565b60405180910390fd5b805181602001fd5b63150b7a027c0100000000000000000000000000000000000000000000000000000000027bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506128ca565b600190505b949350505050565b6128dc83836129a7565b6128e96000848484612712565b612928576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161291f90614845565b60405180910390fd5b505050565b6000816040516020016129409190614ad9565b604051602081830303815290604052805190602001209050919050565b600080600061296c8585612b81565b9150915061297981612c04565b819250505092915050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612a17576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a0e90614b4b565b60405180910390fd5b612a2081611c70565b15612a60576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a5790614bb7565b60405180910390fd5b612a6c600083836126f2565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612abc9190614397565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612b7d600083836126f7565b5050565b600080604183511415612bc35760008060006020860151925060408601519150606086015160001a9050612bb787828585612dd9565b94509450505050612bfd565b604083511415612bf4576000806020850151915060408501519050612be9868383612ee7565b935093505050612bfd565b60006002915091505b9250929050565b60006004811115612c1857612c17614bd7565b5b816004811115612c2b57612c2a614bd7565b5b1415612c3657612dd6565b60016004811115612c4a57612c49614bd7565b5b816004811115612c5d57612c5c614bd7565b5b1415612c9e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c9590614c52565b60405180910390fd5b60026004811115612cb257612cb1614bd7565b5b816004811115612cc557612cc4614bd7565b5b1415612d06576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cfd90614cbe565b60405180910390fd5b60036004811115612d1a57612d19614bd7565b5b816004811115612d2d57612d2c614bd7565b5b1415612d6e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d6590614d50565b60405180910390fd5b600480811115612d8157612d80614bd7565b5b816004811115612d9457612d93614bd7565b5b1415612dd5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612dcc90614de2565b60405180910390fd5b5b50565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083600190041115612e15576000600391509150612ede565b601b8560ff1614158015612e2d5750601c8560ff1614155b15612e3f576000600491509150612ede565b600060018787878760405160008152602001604052604051612e649493929190614e2d565b6020604051602081039080840390855afa158015612e86573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612ed557600060019250925050612ede565b80600092509250505b94509492505050565b60008060007f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600102841690506000601b60ff8660019004908060020a8204915050612f339190614397565b9050612f4187828885612dd9565b935093505050935093915050565b828054612f5b906137bb565b90600052602060002090601f016020900481019282612f7d5760008555612fc4565b82601f10612f9657805160ff1916838001178555612fc4565b82800160010185558215612fc4579182015b82811115612fc3578251825591602001919060010190612fa8565b5b509050612fd19190612fd5565b5090565b5b80821115612fee576000816000905550600101612fd6565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61303b81613006565b811461304657600080fd5b50565b60008135905061305881613032565b92915050565b60006020828403121561307457613073612ffc565b5b600061308284828501613049565b91505092915050565b60008115159050919050565b6130a08161308b565b82525050565b60006020820190506130bb6000830184613097565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156130fb5780820151818401526020810190506130e0565b8381111561310a576000848401525b50505050565b6000601f19601f8301169050919050565b600061312c826130c1565b61313681856130cc565b93506131468185602086016130dd565b61314f81613110565b840191505092915050565b600060208201905081810360008301526131748184613121565b905092915050565b6000819050919050565b61318f8161317c565b811461319a57600080fd5b50565b6000813590506131ac81613186565b92915050565b6000602082840312156131c8576131c7612ffc565b5b60006131d68482850161319d565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061320a826131df565b9050919050565b61321a816131ff565b82525050565b60006020820190506132356000830184613211565b92915050565b613244816131ff565b811461324f57600080fd5b50565b6000813590506132618161323b565b92915050565b6000806040838503121561327e5761327d612ffc565b5b600061328c85828601613252565b925050602061329d8582860161319d565b9150509250929050565b6132b08161317c565b82525050565b60006020820190506132cb60008301846132a7565b92915050565b6000806000606084860312156132ea576132e9612ffc565b5b60006132f886828701613252565b935050602061330986828701613252565b925050604061331a8682870161319d565b9150509250925092565b61332d8161308b565b811461333857600080fd5b50565b60008135905061334a81613324565b92915050565b60006020828403121561336657613365612ffc565b5b60006133748482850161333b565b91505092915050565b60006020828403121561339357613392612ffc565b5b60006133a184828501613252565b91505092915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6133ec82613110565b810181811067ffffffffffffffff8211171561340b5761340a6133b4565b5b80604052505050565b600061341e612ff2565b905061342a82826133e3565b919050565b600067ffffffffffffffff82111561344a576134496133b4565b5b61345382613110565b9050602081019050919050565b82818337600083830152505050565b600061348261347d8461342f565b613414565b90508281526020810184848401111561349e5761349d6133af565b5b6134a9848285613460565b509392505050565b600082601f8301126134c6576134c56133aa565b5b81356134d684826020860161346f565b91505092915050565b6000602082840312156134f5576134f4612ffc565b5b600082013567ffffffffffffffff81111561351357613512613001565b5b61351f848285016134b1565b91505092915050565b6000806040838503121561353f5761353e612ffc565b5b600061354d85828601613252565b925050602061355e8582860161333b565b9150509250929050565b600067ffffffffffffffff821115613583576135826133b4565b5b61358c82613110565b9050602081019050919050565b60006135ac6135a784613568565b613414565b9050828152602081018484840111156135c8576135c76133af565b5b6135d3848285613460565b509392505050565b600082601f8301126135f0576135ef6133aa565b5b8135613600848260208601613599565b91505092915050565b6000806000806080858703121561362357613622612ffc565b5b600061363187828801613252565b945050602061364287828801613252565b93505060406136538782880161319d565b925050606085013567ffffffffffffffff81111561367457613673613001565b5b613680878288016135db565b91505092959194509250565b600080604083850312156136a3576136a2612ffc565b5b60006136b185828601613252565b92505060206136c285828601613252565b9150509250929050565b600080fd5b600080fd5b60008083601f8401126136ec576136eb6133aa565b5b8235905067ffffffffffffffff811115613709576137086136cc565b5b602083019150836001820283011115613725576137246136d1565b5b9250929050565b60008060006040848603121561374557613744612ffc565b5b60006137538682870161319d565b935050602084013567ffffffffffffffff81111561377457613773613001565b5b613780868287016136d6565b92509250509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806137d357607f821691505b602082108114156137e7576137e661378c565b5b50919050565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b6000613849602c836130cc565b9150613854826137ed565b604082019050919050565b600060208201905081810360008301526138788161383c565b9050919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b60006138db6021836130cc565b91506138e68261387f565b604082019050919050565b6000602082019050818103600083015261390a816138ce565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b600061396d6038836130cc565b915061397882613911565b604082019050919050565b6000602082019050818103600083015261399c81613960565b9050919050565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b60006139ff6031836130cc565b9150613a0a826139a3565b604082019050919050565b60006020820190508181036000830152613a2e816139f2565b9050919050565b7f53616c65206973206e6f74206163746976652e00000000000000000000000000600082015250565b6000613a6b6013836130cc565b9150613a7682613a35565b602082019050919050565b60006020820190508181036000830152613a9a81613a5e565b9050919050565b7f5175616e74697479206973206d6f7265207468616e20616c6c6f77656420706560008201527f72207472616e73616374696f6e2e000000000000000000000000000000000000602082015250565b6000613afd602e836130cc565b9150613b0882613aa1565b604082019050919050565b60006020820190508181036000830152613b2c81613af0565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613b696020836130cc565b9150613b7482613b33565b602082019050919050565b60006020820190508181036000830152613b9881613b5c565b9050919050565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b6000613bfb6029836130cc565b9150613c0682613b9f565b604082019050919050565b60006020820190508181036000830152613c2a81613bee565b9050919050565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b6000613c8d602a836130cc565b9150613c9882613c31565b604082019050919050565b60006020820190508181036000830152613cbc81613c80565b9050919050565b7f4e657720726573657276656420636f756e74206d75737420626520686967686560008201527f72207468616e206f6c6400000000000000000000000000000000000000000000602082015250565b6000613d1f602a836130cc565b9150613d2a82613cc3565b604082019050919050565b60006020820190508181036000830152613d4e81613d12565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000613db1602f836130cc565b9150613dbc82613d55565b604082019050919050565b60006020820190508181036000830152613de081613da4565b9050919050565b600081905092915050565b60008190508160005260206000209050919050565b60008154613e14816137bb565b613e1e8186613de7565b94506001821660008114613e395760018114613e4a57613e7d565b60ff19831686528186019350613e7d565b613e5385613df2565b60005b83811015613e7557815481890152600182019150602081019050613e56565b838801955050505b50505092915050565b6000613e91826130c1565b613e9b8185613de7565b9350613eab8185602086016130dd565b80840191505092915050565b6000613ec38285613e07565b9150613ecf8284613e86565b91508190509392505050565b7f5265736572766573206861766520616c7265616479206265656e206d696e746560008201527f642e000000000000000000000000000000000000000000000000000000000000602082015250565b6000613f376022836130cc565b9150613f4282613edb565b604082019050919050565b60006020820190508181036000830152613f6681613f2a565b9050919050565b7f54686973206d696e7420776f756c6420657863656564206d617820737570706c60008201527f79206f66204865726f6573000000000000000000000000000000000000000000602082015250565b6000613fc9602b836130cc565b9150613fd482613f6d565b604082019050919050565b60006020820190508181036000830152613ff881613fbc565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006140398261317c565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561406c5761406b613fff565b5b600182019050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006140d36026836130cc565b91506140de82614077565b604082019050919050565b60006020820190508181036000830152614102816140c6565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b600061413f601f836130cc565b915061414a82614109565b602082019050919050565b6000602082019050818103600083015261416e81614132565b9050919050565b7f496e76616c69642077686974656c697374207369676e61747572650000000000600082015250565b60006141ab601b836130cc565b91506141b682614175565b602082019050919050565b600060208201905081810360008301526141da8161419e565b9050919050565b7f50726573616c65206973206e6f74206163746976650000000000000000000000600082015250565b60006142176015836130cc565b9150614222826141e1565b602082019050919050565b600060208201905081810360008301526142468161420a565b9050919050565b7f596f752063616e206f6e6c79206d696e742061206d6178696d756d206f66203260008201527f20666f722070726573616c650000000000000000000000000000000000000000602082015250565b60006142a9602c836130cc565b91506142b48261424d565b604082019050919050565b600060208201905081810360008301526142d88161429c565b9050919050565b7f5468697320707572636861736520776f756c642065786365656420746865206d60008201527f6178696d756d204865726f2047616c617879204865726f657320796f7520617260208201527f6520616c6c6f77656420746f206d696e7420696e207468652070726573616c65604082015250565b60006143616060836130cc565b915061436c826142df565b606082019050919050565b6000602082019050818103600083015261439081614354565b9050919050565b60006143a28261317c565b91506143ad8361317c565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156143e2576143e1613fff565b5b828201905092915050565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b6000614449602c836130cc565b9150614454826143ed565b604082019050919050565b600060208201905081810360008301526144788161443c565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b60006144db6025836130cc565b91506144e68261447f565b604082019050919050565b6000602082019050818103600083015261450a816144ce565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b600061456d6024836130cc565b915061457882614511565b604082019050919050565b6000602082019050818103600083015261459c81614560565b9050919050565b60006145ae8261317c565b91506145b98361317c565b9250828210156145cc576145cb613fff565b5b828203905092915050565b7f596f75206d757374206d696e74206174206c656173742031206865726f000000600082015250565b600061460d601d836130cc565b9150614618826145d7565b602082019050919050565b6000602082019050818103600083015261463c81614600565b9050919050565b7f5468697320707572636861736520776f756c6420657863656564206d6178207360008201527f7570706c79206f66204865726f2047616c617879204865726f65730000000000602082015250565b600061469f603b836130cc565b91506146aa82614643565b604082019050919050565b600060208201905081810360008301526146ce81614692565b9050919050565b7f5468652065746865722076616c75652073656e74206973206e6f7420636f727260008201527f6563740000000000000000000000000000000000000000000000000000000000602082015250565b60006147316023836130cc565b915061473c826146d5565b604082019050919050565b6000602082019050818103600083015261476081614724565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b600061479d6019836130cc565b91506147a882614767565b602082019050919050565b600060208201905081810360008301526147cc81614790565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b600061482f6032836130cc565b915061483a826147d3565b604082019050919050565b6000602082019050818103600083015261485e81614822565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061489f8261317c565b91506148aa8361317c565b9250826148ba576148b9614865565b5b828204905092915050565b60006148d08261317c565b91506148db8361317c565b9250826148eb576148ea614865565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006149308261317c565b915061493b8361317c565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561497457614973613fff565b5b828202905092915050565b600081519050919050565b600082825260208201905092915050565b60006149a68261497f565b6149b0818561498a565b93506149c08185602086016130dd565b6149c981613110565b840191505092915050565b60006080820190506149e96000830187613211565b6149f66020830186613211565b614a0360408301856132a7565b8181036060830152614a15818461499b565b905095945050505050565b600081519050614a2f81613032565b92915050565b600060208284031215614a4b57614a4a612ffc565b5b6000614a5984828501614a20565b91505092915050565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b6000614a98601c83613de7565b9150614aa382614a62565b601c82019050919050565b6000819050919050565b6000819050919050565b614ad3614ace82614aae565b614ab8565b82525050565b6000614ae482614a8b565b9150614af08284614ac2565b60208201915081905092915050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000614b356020836130cc565b9150614b4082614aff565b602082019050919050565b60006020820190508181036000830152614b6481614b28565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000614ba1601c836130cc565b9150614bac82614b6b565b602082019050919050565b60006020820190508181036000830152614bd081614b94565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b6000614c3c6018836130cc565b9150614c4782614c06565b602082019050919050565b60006020820190508181036000830152614c6b81614c2f565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b6000614ca8601f836130cc565b9150614cb382614c72565b602082019050919050565b60006020820190508181036000830152614cd781614c9b565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b6000614d3a6022836130cc565b9150614d4582614cde565b604082019050919050565b60006020820190508181036000830152614d6981614d2d565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b6000614dcc6022836130cc565b9150614dd782614d70565b604082019050919050565b60006020820190508181036000830152614dfb81614dbf565b9050919050565b614e0b81614aae565b82525050565b600060ff82169050919050565b614e2781614e11565b82525050565b6000608082019050614e426000830187614e02565b614e4f6020830186614e1e565b614e5c6040830185614e02565b614e696060830184614e02565b9594505050505056fea264697066735822122022f3e6350d7ba008c7c76bd1e0b4c6b623d28e55af41de807df4e72a2d9d470364736f6c634300080b0033
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.