ETH Price: $3,284.09 (+0.62%)

Contract

0x74868b8828A05d2C4945917399697B1006125f22
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Approval For...215721612025-01-07 11:01:3513 days ago1736247695IN
0x74868b88...006125f22
0 ETH0.0002796.03287592
Set Approval For...215718772025-01-07 10:04:3513 days ago1736244275IN
0x74868b88...006125f22
0 ETH0.000293576.35943772
Safe Transfer Fr...213258892024-12-04 1:35:1147 days ago1733276111IN
0x74868b88...006125f22
0 ETH0.0007238219.15883222
Safe Transfer Fr...213258862024-12-04 1:34:3547 days ago1733276075IN
0x74868b88...006125f22
0 ETH0.0007429919.66633441
Safe Transfer Fr...213258822024-12-04 1:33:4747 days ago1733276027IN
0x74868b88...006125f22
0 ETH0.0008044521.29981864
Set Approval For...208797912024-10-02 19:05:23110 days ago1727895923IN
0x74868b88...006125f22
0 ETH0.0018096639.20083975
Set Approval For...205634172024-08-19 14:57:47154 days ago1724079467IN
0x74868b88...006125f22
0 ETH0.000141753.07065238
Transfer From197346412024-04-25 20:02:47270 days ago1714075367IN
0x74868b88...006125f22
0 ETH0.000324569.28207213
Transfer From197346382024-04-25 20:02:11270 days ago1714075331IN
0x74868b88...006125f22
0 ETH0.000310588.88226627
Transfer From197346352024-04-25 20:01:35270 days ago1714075295IN
0x74868b88...006125f22
0 ETH0.000323219.24330393
Set Approval For...193556302024-03-03 15:46:35323 days ago1709480795IN
0x74868b88...006125f22
0 ETH0.0029252863.36721465
Safe Transfer Fr...193059162024-02-25 16:53:23330 days ago1708880003IN
0x74868b88...006125f22
0 ETH0.0015453440.8347265
Safe Transfer Fr...188992292023-12-30 15:30:23387 days ago1703950223IN
0x74868b88...006125f22
0 ETH0.0008291321.90917014
Set Approval For...187128542023-12-04 11:58:47413 days ago1701691127IN
0x74868b88...006125f22
0 ETH0.0017970238.92696872
Claim185863952023-11-16 18:59:23431 days ago1700161163IN
0x74868b88...006125f22
0 ETH0.006296842.81064119
Claim185863942023-11-16 18:59:11431 days ago1700161151IN
0x74868b88...006125f22
0 ETH0.0061970242.13227839
Approve184680222023-10-31 5:27:23447 days ago1698730043IN
0x74868b88...006125f22
0 ETH0.00112223.00788692
Approve184575182023-10-29 18:06:35449 days ago1698602795IN
0x74868b88...006125f22
0 ETH0.0009744219.98161396
Approve184426832023-10-27 16:17:35451 days ago1698423455IN
0x74868b88...006125f22
0 ETH0.0011903624.40981813
Approve184362262023-10-26 18:38:11452 days ago1698345491IN
0x74868b88...006125f22
0 ETH0.0009794120.08393955
Approve184358922023-10-26 17:30:59452 days ago1698341459IN
0x74868b88...006125f22
0 ETH0.0016785434.42048344
Approve184358752023-10-26 17:27:35452 days ago1698341255IN
0x74868b88...006125f22
0 ETH0.0016300833.42676532
Claim183614492023-10-16 7:29:11462 days ago1697441351IN
0x74868b88...006125f22
0 ETH0.001081346.51139695
Claim182991362023-10-07 14:14:47471 days ago1696688087IN
0x74868b88...006125f22
0 ETH0.001088626.71338389
Transfer From182875932023-10-05 23:29:47472 days ago1696548587IN
0x74868b88...006125f22
0 ETH0.00035710.20977601
View all transactions

Latest 4 internal transactions

Advanced mode:
Parent Transaction Hash Block
From
To
143065352022-03-02 8:34:031055 days ago1646210043
0x74868b88...006125f22
17.16 ETH
142995962022-03-01 6:56:301056 days ago1646117790
0x74868b88...006125f22
27.06 ETH
142901472022-02-27 19:33:571058 days ago1645990437
0x74868b88...006125f22
55.44 ETH
142668882022-02-24 5:27:091061 days ago1645680429
0x74868b88...006125f22
260.6 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ApeProject

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 1 : TheApeProject.sol
// SPDX-License-Identifier: MIT

// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}

// File: @openzeppelin/contracts/utils/Context.sol


// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

// File: @openzeppelin/contracts/access/Ownable.sol


// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;


/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

// File: @openzeppelin/contracts/utils/Address.sol


// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @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 v4.4.1 (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

// 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 v4.4.1 (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`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;
}

// 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: @openzeppelin/contracts/token/ERC721/ERC721.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;








/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;
    string _originalBaseUri;
    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    address[10000] internal _owners;


    // Mapping from token ID to approved address
    mapping(uint256 => address) private _tokenApprovals;

    // Mapping from owner to operator approvals
    mapping(address => mapping(address => bool)) private _operatorApprovals;

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
        return
            interfaceId == type(IERC721).interfaceId ||
            interfaceId == type(IERC721Metadata).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: balance query for the zero address");
        uint256 count=0;
        for(uint i=0;i<_owners.length;i++){
            if(_owners[i]==owner){
                count=count+1;
            }
        }
        return count;
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        return owner;
    }

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
    }

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overriden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return _originalBaseUri;
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

    /**
     * @dev See {IERC721-isApprovedForAll}.
     */
    function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
        return _operatorApprovals[owner][operator];
    }

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

        _transfer(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransfer(from, to, tokenId, _data);
    }

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _owners[tokenId] != address(0);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, _data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");
   
        _owners[tokenId] = to;

        emit Transfer(address(0), to, tokenId);
    }


    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);


        // Clear approvals
        _approve(address(0), tokenId);

     
        delete _owners[tokenId];

        emit Transfer(owner, address(0), tokenId);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
        require(to != address(0), "ERC721: transfer to the zero address");


        // Clear approvals from the previous owner
        _approve(address(0), tokenId);

        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits a {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits a {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721Receiver.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

}

// File: @openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721URIStorage.sol)

pragma solidity ^0.8.0;


/**
 * @dev ERC721 token with storage based token URI management.
 */
abstract contract ERC721URIStorage is ERC721 {
    using Strings for uint256;

    // Optional mapping for token URIs
    mapping(uint256 => string) private _tokenURIs;

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721URIStorage: URI query for nonexistent token");

        string memory _tokenURI = _tokenURIs[tokenId];
        string memory base = _baseURI();

        // If there is no base URI, return the token URI.
        if (bytes(base).length == 0) {
            return _tokenURI;
        }
        // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked).
        if (bytes(_tokenURI).length > 0) {
            return string(abi.encodePacked(base, _tokenURI));
        }

        return super.tokenURI(tokenId);
    }

    /**
     * @dev Sets `_tokenURI` as the tokenURI of `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual {
        require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token");
        _tokenURIs[tokenId] = _tokenURI;
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual override {
        super._burn(tokenId);

        if (bytes(_tokenURIs[tokenId]).length != 0) {
            delete _tokenURIs[tokenId];
        }
    }
}

// File: @openzeppelin/contracts/token/ERC20/IERC20.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

// File: NewApe.sol










pragma solidity ^0.8.7;



  /****************************************|
  |         Ape Project Contract           |
  |_______________________________________*/

contract ApeProject is ERC721URIStorage,Ownable {

  /****************************************|
  |         Ape Types                      |
  |_______________________________________*/

    uint256 [] Apes;

/*
    xenaApes;
    legendaryApes;
    greatApes;
    genesisApes;
    timepieceApes;
*/

  /****************************************|
  |     Mappings And Variables             |
  |_______________________________________*/



struct Mining{
    uint256 useSilver;
    uint256 useGold;
}
mapping(uint256 => uint256) public apeTypes;
mapping(uint256 => uint256) public lastClaim;
mapping(address => bool) public WhiteListed;
mapping(address => Mining) public MiningEquipment;
  mapping(uint256 => string) private _tokenURIs;

uint256 public RewardTokenPerBlock=0;
uint256 public TOTALSUPPLY=9999;
uint256 public nextMinted=0;
uint256 public mintPrice=0;
uint256 public MiningPrice=0;
address public variableToken=address(0);
bool private hidden=false;
bool private partialSale=false;
bool private preSale=true;
  /****************************************|
  |     Constructor                        |
  |_______________________________________*/


    constructor(uint256 amount) ERC721("TheApeProject","THEAPEPROJECT") payable {
    require(amount <= TOTALSUPPLY, "amount exceeds the upper limit");
  for(uint i = 0; i < amount; i++){
        _safeMint(msg.sender,i);
        lastClaim[i]=block.number;

        }
       
        nextMinted=amount;
      
}

  /****************************************|
  |     Mutable Functions                  |
  |_______________________________________*/

function initiate(uint256 amount) public onlyOwner(){
    require(nextMinted+amount<TOTALSUPPLY,"All The Apes Have Been Minted");
      for(uint i = nextMinted; i < nextMinted+amount; i++){
        _safeMint(msg.sender,i);
         lastClaim[i]=block.number;
        }
       
        nextMinted=nextMinted+amount;
}
function buyMining(uint256 MiningType,uint256 times) public {
   if(MiningType==1){
 require( IERC20(variableToken).balanceOf(msg.sender)>(MiningPrice/2)*times,"Not Enough Variable Token To Buy Equipment");
 IERC20(variableToken).transferFrom(msg.sender,address(this),times*(MiningPrice/2));
 MiningEquipment[msg.sender].useSilver=MiningEquipment[msg.sender].useSilver+times;
  }
  if(MiningType==2){
   require( IERC20(variableToken).balanceOf(msg.sender)>times*MiningPrice,"Not Enough Variable Token To Buy Equipment");
 IERC20(variableToken).transferFrom(msg.sender,address(this),MiningPrice*times);
 MiningEquipment[msg.sender].useGold=MiningEquipment[msg.sender].useGold+times;
  }
}


function setMiningPrice(uint price) public onlyOwner(){
   MiningPrice=price;
}

function setWhiteList(address[] calldata list) external onlyOwner(){
    for (uint i=0;i<list.length;i++){
        WhiteListed[list[i]]=true;
    }
}


function setHidden(string memory newuri) public onlyOwner(){
    _originalBaseUri=newuri;
    if(hidden){
    hidden=false;
    }else{
    hidden=true;
    }

}


function setVariableToken(address token) public onlyOwner(){
    require(token!=address(0),"Can't Set Zero Address");
    variableToken=token;
}

function setRewardTokenPerBlock(uint256 rewardTokens) public onlyOwner(){
    RewardTokenPerBlock=rewardTokens;
}

function setMintPrice(uint256 price) public onlyOwner(){
    require(price<250000000000000000,"Price Reached Upper Limit");
    mintPrice=price;

}

function setPreSale() public onlyOwner(){
    if(preSale){
    preSale=false;
    }else{
    preSale=true;
    }

}

function mint(uint256 amount) public payable {
    require(nextMinted+amount<TOTALSUPPLY,"All The Apes Have Been Minted");
    require(mintPrice>0,"No Minting Price Has Been Set");
    require(msg.value==mintPrice*amount,"Not Enough ETH To Mint");
    require(amount<=10,"Up To A 10 Can Be Minted At Once");
    if(preSale){
    require(WhiteListed[msg.sender]==true,"Only WhiteListed Addresses Can Mint On Presale");
        for (uint i = 0; i < amount; i++) {
        _safeMint(msg.sender,nextMinted);
        apeTypes[nextMinted]=1;
        lastClaim[nextMinted]=block.number;
        nextMinted=nextMinted+1;
      }
    }else{
 for (uint i = 0; i < amount; i++) {
        _safeMint(msg.sender,nextMinted);
        nextMinted=nextMinted+1;
        apeTypes[nextMinted]=1;
        lastClaim[nextMinted]=block.number;
    }
    }
   
 
}

function claim(uint256[] calldata owned) external  {
   require(nextMinted==TOTALSUPPLY,"Not All The Apes Have Been Minted");
    require(hidden==false,"Apes Not Revealed Yet");
    uint256 amountToClaim=setClaimAmount(msg.sender,owned);
    require(amountToClaim>0,"Not Variable Token Amount To Claim");
    require(IERC20(variableToken).balanceOf(address(this))>amountToClaim,"Not Enough Variable Token In Contract To Claim");
    IERC20(variableToken).transfer(msg.sender,amountToClaim);

}

function setClaimAmount(address user,uint256[] memory owned) internal returns (uint256){
  require(hidden==false,"Apes Not Revealed Yet");
  uint256 amount;
    for(uint i = 0; i < owned.length; i++){
    require(ownerOf(owned[i])==user,"User Is Not The Owner");
    if(owned[i]<777){
    amount=amount+(block.number-lastClaim[owned[i]])*3*RewardTokenPerBlock;
    }else{
    amount=amount+(block.number-lastClaim[owned[i]])*apeTypes[owned[i]]*RewardTokenPerBlock;
        }
     lastClaim[owned[i]]=block.number;
    }
    
     if(MiningEquipment[msg.sender].useSilver>0){
      MiningEquipment[msg.sender].useSilver=MiningEquipment[msg.sender].useSilver-1;
      amount=amount*3/2;
    }
          if(MiningEquipment[msg.sender].useGold>0){
      MiningEquipment[msg.sender].useGold=MiningEquipment[msg.sender].useGold-1;
      amount=amount*5/2;
    }
    return amount;
    

}


  function adminWithdraw(address token) public onlyOwner(){

    IERC20(token).transfer(msg.sender,IERC20(token).balanceOf(address(this)));
  }

   function adminWithdrawETH(address payable admin) public onlyOwner(){
    require(admin != address(0), "admin can not be 0 address");
    admin.transfer(address(this).balance);
  }

  function casePartialSale() public onlyOwner(){
    require(partialSale==false,"Already Approved There Was A Partial Sale");
    TOTALSUPPLY=nextMinted;
    partialSale=true;
  }



  /****************************************|
  |     Push Ape Functions                 |
  |_______________________________________*/

function pushApes(uint256 [] calldata types,uint256 [] calldata Ids) external onlyOwner(){
    require((hidden==false),"A Push Can Only Be Done After All The Apes Have Been Revealed");
    require(types.length==Ids.length,"the length of ids and types is not equal");
    for (uint i = 0; i < types.length; i++){
        require(types[i] !=0, "value can not be 0!");
        apeTypes[Ids[i]]=types[i];
    }
}

  /****************************************|
  |     Non Mutable Functions              |
  |_______________________________________*/


function getMiningPrice() public view returns(uint256 _price) {
  _price=MiningPrice;
}

function getMining(uint256 MiningType) public view returns(uint256 uses) {
   if(MiningType==1){
  uses=MiningEquipment[msg.sender].useSilver;
 return uses;
  }
  if(MiningType==2){
  uses=MiningEquipment[msg.sender].useGold;
  return uses;
  }
}

function isHidden() public view returns (bool){
  return hidden;
}

function getVariableToken() public view returns (address){
  return variableToken;
}

function getRewardTokenPerBlock() public view returns (uint256){
    return RewardTokenPerBlock;
}

function getMintPrice() public view returns (uint256){
return mintPrice;

}
function getPreSale() public view returns (bool){
return preSale;

}
function getNextMinted() public view returns (uint256){
return nextMinted;

}

function getClaimAmount(address user,uint256[] memory owned) public view returns (uint256){
  require(hidden==false,"Apes Not Revealed Yet");
  uint256 amount;
    for(uint i = 0; i < owned.length; i++){
    require(ownerOf(owned[i])==user,"User Is Not The Owner");
    if(owned[i]<777){
    amount=amount+(block.number-lastClaim[owned[i]])*3*RewardTokenPerBlock;
    }else{
    amount=amount+(block.number-lastClaim[owned[i]])*apeTypes[owned[i]]*RewardTokenPerBlock;
        }
    }
    
     if(MiningEquipment[msg.sender].useSilver>0){
      amount=amount*3/2;
    }
          if(MiningEquipment[msg.sender].useGold>0){
      amount=amount*5/2;
    }
    return amount;
    

}
    function getOwned(address user,uint256 lastId) public view returns (uint256 _owned){
  require(hidden==false,"Apes Not Revealed Yet");
  for(uint i = lastId; i < TOTALSUPPLY; i++){
      if(ownerOf(i)==user){
        return i;
      }
  }    
      }
function getGovernance(address user) public view returns (bool){
    if(balanceOf(user)>=5){
        return true;
    }else{
        return false;
    }
}
    /**
     * @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 override returns (string memory) {
        return _originalBaseUri;
    }

  /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721URIStorage: URI query for nonexistent token");
        if(hidden==true){
            return _baseURI();
        }
        string memory _tokenURI = _tokenURIs[tokenId];
        string memory base = _baseURI();

        // If there is no base URI, return the token URI.
        if (bytes(base).length == 0) {
            return _tokenURI;
        }
        // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked).
        if (bytes(_tokenURI).length > 0) {
            return string(abi.encodePacked(base, _tokenURI));
        }

        return super.tokenURI(tokenId);
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"payable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"MiningEquipment","outputs":[{"internalType":"uint256","name":"useSilver","type":"uint256"},{"internalType":"uint256","name":"useGold","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MiningPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RewardTokenPerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOTALSUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"WhiteListed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"adminWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"admin","type":"address"}],"name":"adminWithdrawETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"apeTypes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"MiningType","type":"uint256"},{"internalType":"uint256","name":"times","type":"uint256"}],"name":"buyMining","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"casePartialSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"owned","type":"uint256[]"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256[]","name":"owned","type":"uint256[]"}],"name":"getClaimAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getGovernance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"MiningType","type":"uint256"}],"name":"getMining","outputs":[{"internalType":"uint256","name":"uses","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMiningPrice","outputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getNextMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"lastId","type":"uint256"}],"name":"getOwned","outputs":[{"internalType":"uint256","name":"_owned","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPreSale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRewardTokenPerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getVariableToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"initiate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isHidden","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"lastClaim","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"types","type":"uint256[]"},{"internalType":"uint256[]","name":"Ids","type":"uint256[]"}],"name":"pushApes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newuri","type":"string"}],"name":"setHidden","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setMiningPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setPreSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"rewardTokens","type":"uint256"}],"name":"setRewardTokenPerBlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"setVariableToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"list","type":"address[]"}],"name":"setWhiteList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"variableToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60806040819052600061271d81905561270f61271e5561271f8190556127208190556127215561272280546001600160b81b031916600160b01b1790556200410e388190039081908339810160408190526200005b9162000618565b6040518060400160405280600d81526020016c151a19505c19541c9bda9958dd609a1b8152506040518060400160405280600d81526020016c151211505411541493d29150d5609a1b8152508160019080519060200190620000bf9291906200053f565b508051620000d59060029060208401906200053f565b505050620000f2620000ec6200019560201b60201c565b62000199565b61271e548111156200014b5760405162461bcd60e51b815260206004820152601e60248201527f616d6f756e74206578636565647320746865207570706572206c696d6974000060448201526064015b60405180910390fd5b60005b818110156200018a57620001633382620001ec565b600081815261271960205260409020439055806200018181620006ea565b9150506200014e565b5061271f556200072a565b3390565b61271680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6200020e8282604051806020016040528060008152506200021260201b60201c565b5050565b6200021e83836200028a565b6200022d6000848484620003a3565b620002855760405162461bcd60e51b81526020600482015260326024820152600080516020620040ee83398151915260448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840162000142565b505050565b6001600160a01b038216620002e25760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640162000142565b620002ed816200050c565b156200033c5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640162000142565b81600382612710811062000354576200035462000714565b0180546001600160a01b0319166001600160a01b0392831617905560405182918416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000620003c4846001600160a01b03166200053960201b6200243f1760201c565b156200050057604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290620003fe90339089908890889060040162000632565b602060405180830381600087803b1580156200041957600080fd5b505af19250505080156200044c575060408051601f3d908101601f191682019092526200044991810190620005e5565b60015b620004e5573d8080156200047d576040519150601f19603f3d011682016040523d82523d6000602084013e62000482565b606091505b508051620004dd5760405162461bcd60e51b81526020600482015260326024820152600080516020620040ee83398151915260448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840162000142565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905062000504565b5060015b949350505050565b600080600383612710811062000526576200052662000714565b01546001600160a01b0316141592915050565b3b151590565b8280546200054d90620006ad565b90600052602060002090601f016020900481019282620005715760008555620005bc565b82601f106200058c57805160ff1916838001178555620005bc565b82800160010185558215620005bc579182015b82811115620005bc5782518255916020019190600101906200059f565b50620005ca929150620005ce565b5090565b5b80821115620005ca5760008155600101620005cf565b600060208284031215620005f857600080fd5b81516001600160e01b0319811681146200061157600080fd5b9392505050565b6000602082840312156200062b57600080fd5b5051919050565b600060018060a01b038087168352602081871681850152856040850152608060608501528451915081608085015260005b82811015620006815785810182015185820160a00152810162000663565b828111156200069457600060a084870101525b5050601f01601f19169190910160a00195945050505050565b600181811c90821680620006c257607f821691505b60208210811415620006e457634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156200070d57634e487b7160e01b600052601160045260246000fd5b5060010190565b634e487b7160e01b600052603260045260246000fd5b6139b4806200073a6000396000f3fe6080604052600436106102ff5760003560e01c80637e2ff5f911610190578063a7f93ebd116100dc578063cc7caf3d11610095578063e985e9c51161006f578063e985e9c51461090a578063f00ecca314610954578063f2fde38b14610975578063f4a0a5281461099557600080fd5b8063cc7caf3d146108ab578063d309aa2c146108ca578063d7406965146108ea57600080fd5b8063a7f93ebd146107ff578063aeca06ab14610815578063b042f80d14610835578063b88d4fde14610855578063c87b56dd14610875578063cb8c7efd1461089557600080fd5b80639728660e11610149578063a22cb46511610123578063a22cb46514610788578063a28835b6146107a8578063a523df1d146107c8578063a56c7ff1146107df57600080fd5b80639728660e146107405780639b58d54c14610755578063a0712d681461077557600080fd5b80637e2ff5f9146106a05780637ecf2f38146106b55780638da5cb5b146106d55780638f9560df146106f457806394a08c691461071457806395d89b411461072b57600080fd5b80634539ff421161024f57806370a0823111610208578063757dc617116101e2578063757dc617146105f6578063775b9c13146106405780637901ea78146106605780637c3d6de11461068057600080fd5b806370a08231146105ab578063715018a6146105cb5780637462e065146105e057600080fd5b80634539ff4214610506578063549a582d1461051d5780636352211e146105345780636817c76c146105545780636b6eaae21461056b5780636ba4c1381461058b57600080fd5b80632e00aa13116102bc578063383929cf11610296578063383929cf146104785780633d3728b51461049857806341480b8e146104c657806342842e0e146104e657600080fd5b80632e00aa13146103f55780632f3c04fe146104265780632f9be3ec1461046257600080fd5b806301ffc9a71461030457806306fdde0314610339578063081812fc1461035b578063095ea7b314610393578063189083ae146103b557806323b872dd146103d5575b600080fd5b34801561031057600080fd5b5061032461031f3660046134a0565b6109b5565b60405190151581526020015b60405180910390f35b34801561034557600080fd5b5061034e610a07565b604051610330919061360f565b34801561036757600080fd5b5061037b610376366004613523565b610a99565b6040516001600160a01b039091168152602001610330565b34801561039f57600080fd5b506103b36103ae3660046133a9565b610b27565b005b3480156103c157600080fd5b506103b36103d0366004613523565b610c3d565b3480156103e157600080fd5b506103b36103f03660046131f8565b610c6e565b34801561040157600080fd5b506103246104103660046131a2565b61271a6020526000908152604090205460ff1681565b34801561043257600080fd5b50610454610441366004613523565b6127186020526000908152604090205481565b604051908152602001610330565b34801561046e57600080fd5b5061271d54610454565b34801561048457600080fd5b506104546104933660046132b9565b610c9f565b3480156104a457600080fd5b506104546104b3366004613523565b6127196020526000908152604090205481565b3480156104d257600080fd5b506104546104e13660046133a9565b610ee3565b3480156104f257600080fd5b506103b36105013660046131f8565b610f60565b34801561051257600080fd5b5061045461271f5481565b34801561052957600080fd5b506104546127215481565b34801561054057600080fd5b5061037b61054f366004613523565b610f7b565b34801561056057600080fd5b506104546127205481565b34801561057757600080fd5b506103b3610586366004613555565b610ffe565b34801561059757600080fd5b506103b36105a63660046133d5565b61133e565b3480156105b757600080fd5b506104546105c63660046131a2565b6115cf565b3480156105d757600080fd5b506103b3611697565b3480156105ec57600080fd5b5061272154610454565b34801561060257600080fd5b5061062b6106113660046131a2565b61271b602052600090815260409020805460019091015482565b60408051928352602083019190915201610330565b34801561064c57600080fd5b506103b361065b3660046133d5565b6116ce565b34801561066c57600080fd5b506103b361067b366004613523565b61176c565b34801561068c57600080fd5b506103b361069b3660046131a2565b611857565b3480156106ac57600080fd5b506103b36118f4565b3480156106c157600080fd5b5061272254600160b01b900460ff16610324565b3480156106e157600080fd5b50612716546001600160a01b031661037b565b34801561070057600080fd5b5061032461070f3660046131a2565b611958565b34801561072057600080fd5b5061045461271e5481565b34801561073757600080fd5b5061034e61197f565b34801561074c57600080fd5b506103b361198e565b34801561076157600080fd5b506103b36107703660046131a2565b611a44565b6103b3610783366004613523565b611afa565b34801561079457600080fd5b506103b36107a336600461337b565b611daf565b3480156107b457600080fd5b506103b36107c33660046131a2565b611dba565b3480156107d457600080fd5b5061045461271d5481565b3480156107eb57600080fd5b506103b36107fa366004613417565b611ee4565b34801561080b57600080fd5b5061272054610454565b34801561082157600080fd5b5061272254600160a01b900460ff16610324565b34801561084157600080fd5b50610454610850366004613523565b6120bd565b34801561086157600080fd5b506103b3610870366004613239565b612100565b34801561088157600080fd5b5061034e610890366004613523565b612132565b3480156108a157600080fd5b5061271f54610454565b3480156108b757600080fd5b50612722546001600160a01b031661037b565b3480156108d657600080fd5b506103b36108e53660046134da565b612273565b3480156108f657600080fd5b506103b3610905366004613523565b6122ed565b34801561091657600080fd5b506103246109253660046131bf565b6001600160a01b0391821660009081526127146020908152604080832093909416825291909152205460ff1690565b34801561096057600080fd5b506127225461037b906001600160a01b031681565b34801561098157600080fd5b506103b36109903660046131a2565b61231e565b3480156109a157600080fd5b506103b36109b0366004613523565b6123b7565b60006001600160e01b031982166380ac58cd60e01b14806109e657506001600160e01b03198216635b5e139f60e01b145b80610a0157506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060018054610a1690613883565b80601f0160208091040260200160405190810160405280929190818152602001828054610a4290613883565b8015610a8f5780601f10610a6457610100808354040283529160200191610a8f565b820191906000526020600020905b815481529060010190602001808311610a7257829003601f168201915b5050505050905090565b6000610aa482612445565b610b0a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b50600090815261271360205260409020546001600160a01b031690565b6000610b3282610f7b565b9050806001600160a01b0316836001600160a01b03161415610ba05760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610b01565b336001600160a01b0382161480610bbc5750610bbc8133610925565b610c2e5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610b01565b610c38838361246f565b505050565b612716546001600160a01b03163314610c685760405162461bcd60e51b8152600401610b019061373e565b61272155565b610c7833826124de565b610c945760405162461bcd60e51b8152600401610b0190613773565b610c388383836125c5565b61272254600090600160a01b900460ff1615610ccd5760405162461bcd60e51b8152600401610b0190613622565b6000805b8351811015610e7857846001600160a01b0316610d06858381518110610cf957610cf9613919565b6020026020010151610f7b565b6001600160a01b031614610d545760405162461bcd60e51b81526020600482015260156024820152742ab9b2b91024b9902737ba102a34329027bbb732b960591b6044820152606401610b01565b610309848281518110610d6957610d69613919565b60200260200101511015610dda5761271d546127196000868481518110610d9257610d92613919565b602002602001015181526020019081526020016000205443610db49190613840565b610dbf906003613821565b610dc99190613821565b610dd390836137f5565b9150610e66565b61271d546127186000868481518110610df557610df5613919565b60200260200101518152602001908152602001600020546127196000878581518110610e2357610e23613919565b602002602001015181526020019081526020016000205443610e459190613840565b610e4f9190613821565b610e599190613821565b610e6390836137f5565b91505b80610e70816138be565b915050610cd1565b5033600090815261271b602052604090205415610ea9576002610e9c826003613821565b610ea6919061380d565b90505b33600090815261271b602052604090206001015415610edc576002610ecf826005613821565b610ed9919061380d565b90505b9392505050565b61272254600090600160a01b900460ff1615610f115760405162461bcd60e51b8152600401610b0190613622565b815b61271e54811015610f5957836001600160a01b0316610f3182610f7b565b6001600160a01b03161415610f47579050610a01565b80610f51816138be565b915050610f13565b5092915050565b610c3883838360405180602001604052806000815250612100565b6000806003836127108110610f9257610f92613919565b01546001600160a01b0316905080610a015760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610b01565b81600114156111a55780600261272154611018919061380d565b6110229190613821565b612722546040516370a0823160e01b81523360048201526001600160a01b03909116906370a082319060240160206040518083038186803b15801561106657600080fd5b505afa15801561107a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061109e919061353c565b116110bb5760405162461bcd60e51b8152600401610b01906136a3565b61272254612721546001600160a01b03909116906323b872dd90339030906110e59060029061380d565b6110ef9086613821565b6040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401602060405180830381600087803b15801561113e57600080fd5b505af1158015611152573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111769190613483565b5033600090815261271b60205260409020546111939082906137f5565b33600090815261271b60205260409020555b816002141561133a57612721546111bc9082613821565b612722546040516370a0823160e01b81523360048201526001600160a01b03909116906370a082319060240160206040518083038186803b15801561120057600080fd5b505afa158015611214573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611238919061353c565b116112555760405162461bcd60e51b8152600401610b01906136a3565b61272254612721546001600160a01b03909116906323b872dd903390309061127e908690613821565b6040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401602060405180830381600087803b1580156112cd57600080fd5b505af11580156112e1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113059190613483565b5033600090815261271b60205260409020600101546113259082906137f5565b33600090815261271b60205260409020600101555b5050565b61271e5461271f541461139d5760405162461bcd60e51b815260206004820152602160248201527f4e6f7420416c6c2054686520417065732048617665204265656e204d696e74656044820152601960fa1b6064820152608401610b01565b61272254600160a01b900460ff16156113c85760405162461bcd60e51b8152600401610b0190613622565b60006114073384848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061271592505050565b9050600081116114645760405162461bcd60e51b815260206004820152602260248201527f4e6f74205661726961626c6520546f6b656e20416d6f756e7420546f20436c61604482015261696d60f01b6064820152608401610b01565b612722546040516370a0823160e01b815230600482015282916001600160a01b0316906370a082319060240160206040518083038186803b1580156114a857600080fd5b505afa1580156114bc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114e0919061353c565b116115445760405162461bcd60e51b815260206004820152602e60248201527f4e6f7420456e6f756768205661726961626c6520546f6b656e20496e20436f6e60448201526d747261637420546f20436c61696d60901b6064820152608401610b01565b6127225460405163a9059cbb60e01b8152336004820152602481018390526001600160a01b039091169063a9059cbb90604401602060405180830381600087803b15801561159157600080fd5b505af11580156115a5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115c99190613483565b50505050565b60006001600160a01b03821661163a5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610b01565b6000805b612710811015610f5957836001600160a01b0316600382612710811061166657611666613919565b01546001600160a01b03161415611685576116828260016137f5565b91505b8061168f816138be565b91505061163e565b612716546001600160a01b031633146116c25760405162461bcd60e51b8152600401610b019061373e565b6116cc60006129cd565b565b612716546001600160a01b031633146116f95760405162461bcd60e51b8152600401610b019061373e565b60005b81811015610c3857600161271a600085858581811061171d5761171d613919565b905060200201602081019061173291906131a2565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905580611764816138be565b9150506116fc565b612716546001600160a01b031633146117975760405162461bcd60e51b8152600401610b019061373e565b61271e548161271f546117aa91906137f5565b106117f75760405162461bcd60e51b815260206004820152601d60248201527f416c6c2054686520417065732048617665204265656e204d696e7465640000006044820152606401610b01565b61271f545b8161271f5461180b91906137f5565b8110156118405761181c3382612a20565b60008181526127196020526040902043905580611838816138be565b9150506117fc565b508061271f5461185091906137f5565b61271f5550565b612716546001600160a01b031633146118825760405162461bcd60e51b8152600401610b019061373e565b6001600160a01b0381166118d15760405162461bcd60e51b815260206004820152601660248201527543616e277420536574205a65726f204164647265737360501b6044820152606401610b01565b61272280546001600160a01b0319166001600160a01b0392909216919091179055565b612716546001600160a01b0316331461191f5760405162461bcd60e51b8152600401610b019061373e565b61272254600160b01b900460ff161561194257612722805460ff60b01b19169055565b612722805460ff60b01b1916600160b01b179055565b60006005611965836115cf565b1061197257506001919050565b506000919050565b919050565b606060028054610a1690613883565b612716546001600160a01b031633146119b95760405162461bcd60e51b8152600401610b019061373e565b61272254600160a81b900460ff1615611a265760405162461bcd60e51b815260206004820152602960248201527f416c726561647920417070726f766564205468657265205761732041205061726044820152687469616c2053616c6560b81b6064820152608401610b01565b61271f5461271e55612722805460ff60a81b1916600160a81b179055565b612716546001600160a01b03163314611a6f5760405162461bcd60e51b8152600401610b019061373e565b6001600160a01b038116611ac55760405162461bcd60e51b815260206004820152601a60248201527f61646d696e2063616e206e6f74206265203020616464726573730000000000006044820152606401610b01565b6040516001600160a01b038216904780156108fc02916000818181858888f1935050505015801561133a573d6000803e3d6000fd5b61271e548161271f54611b0d91906137f5565b10611b5a5760405162461bcd60e51b815260206004820152601d60248201527f416c6c2054686520417065732048617665204265656e204d696e7465640000006044820152606401610b01565b60006127205411611bad5760405162461bcd60e51b815260206004820152601d60248201527f4e6f204d696e74696e6720507269636520486173204265656e205365740000006044820152606401610b01565b8061272054611bbc9190613821565b3414611c035760405162461bcd60e51b8152602060048201526016602482015275139bdd08115b9bdd59da0811551208151bc8135a5b9d60521b6044820152606401610b01565b600a811115611c545760405162461bcd60e51b815260206004820181905260248201527f557020546f20412031302043616e204265204d696e746564204174204f6e63656044820152606401610b01565b61272254600160b01b900460ff1615611d495733600090815261271a602052604090205460ff161515600114611ce35760405162461bcd60e51b815260206004820152602e60248201527f4f6e6c792057686974654c6973746564204164647265737365732043616e204d60448201526d696e74204f6e2050726573616c6560901b6064820152608401610b01565b60005b8181101561133a57611cfb3361271f54612a20565b61271f8054600090815261271860209081526040808320600190819055845484526127199092529091204390559054611d33916137f5565b61271f5580611d41816138be565b915050611ce6565b60005b8181101561133a57611d613361271f54612a20565b61271f54611d709060016137f5565b61271f81815560009182526127186020908152604080842060019055915483526127199052902043905580611da4816138be565b915050611d4c565b50565b61133a338383612a3a565b612716546001600160a01b03163314611de55760405162461bcd60e51b8152600401610b019061373e565b6040516370a0823160e01b81523060048201526001600160a01b0382169063a9059cbb90339083906370a082319060240160206040518083038186803b158015611e2e57600080fd5b505afa158015611e42573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e66919061353c565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b158015611eac57600080fd5b505af1158015611ec0573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061133a9190613483565b612716546001600160a01b03163314611f0f5760405162461bcd60e51b8152600401610b019061373e565b61272254600160a01b900460ff1615611f905760405162461bcd60e51b815260206004820152603d60248201527f4120507573682043616e204f6e6c7920426520446f6e6520416674657220416c60448201527f6c2054686520417065732048617665204265656e2052657665616c65640000006064820152608401610b01565b828114611ff05760405162461bcd60e51b815260206004820152602860248201527f746865206c656e677468206f662069647320616e64207479706573206973206e6044820152671bdd08195c5d585b60c21b6064820152608401610b01565b60005b838110156120b65784848281811061200d5761200d613919565b905060200201356000141561205a5760405162461bcd60e51b815260206004820152601360248201527276616c75652063616e206e6f7420626520302160681b6044820152606401610b01565b84848281811061206c5761206c613919565b90506020020135612718600085858581811061208a5761208a613919565b9050602002013581526020019081526020016000208190555080806120ae906138be565b915050611ff3565b5050505050565b600081600114156120de57505033600090815261271b602052604090205490565b816002141561197a57505033600090815261271b602052604090206001015490565b61210a33836124de565b6121265760405162461bcd60e51b8152600401610b0190613773565b6115c984848484612b0a565b606061213d82612445565b6121595760405162461bcd60e51b8152600401610b01906136ed565b61272254600160a01b900460ff1615156001141561217957610a01612b3d565b600082815261271c60205260408120805461219390613883565b80601f01602080910402602001604051908101604052809291908181526020018280546121bf90613883565b801561220c5780601f106121e15761010080835404028352916020019161220c565b820191906000526020600020905b8154815290600101906020018083116121ef57829003601f168201915b50505050509050600061221d612b3d565b9050805160001415612230575092915050565b81511561226257808260405160200161224a9291906135a3565b60405160208183030381529060405292505050919050565b61226b84612b4c565b949350505050565b612716546001600160a01b0316331461229e5760405162461bcd60e51b8152600401610b019061373e565b80516122b1906000906020840190613065565b5061272254600160a01b900460ff16156122d657612722805460ff60a01b1916905550565b612722805460ff60a01b1916600160a01b17905550565b612716546001600160a01b031633146123185760405162461bcd60e51b8152600401610b019061373e565b61271d55565b612716546001600160a01b031633146123495760405162461bcd60e51b8152600401610b019061373e565b6001600160a01b0381166123ae5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b01565b611dac816129cd565b612716546001600160a01b031633146123e25760405162461bcd60e51b8152600401610b019061373e565b6703782dace9d9000081106124395760405162461bcd60e51b815260206004820152601960248201527f50726963652052656163686564205570706572204c696d6974000000000000006044820152606401610b01565b61272055565b3b151590565b600080600383612710811061245c5761245c613919565b01546001600160a01b0316141592915050565b60008181526127136020526040902080546001600160a01b0319166001600160a01b03841690811790915581906124a582610f7b565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006124e982612445565b61254a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610b01565b600061255583610f7b565b9050806001600160a01b0316846001600160a01b031614806125905750836001600160a01b031661258584610a99565b6001600160a01b0316145b8061226b57506001600160a01b038082166000908152612714602090815260408083209388168352929052205460ff1661226b565b826001600160a01b03166125d882610f7b565b6001600160a01b0316146126405760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610b01565b6001600160a01b0382166126a25760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610b01565b6126ad60008261246f565b8160038261271081106126c2576126c2613919565b0180546001600160a01b0319166001600160a01b03928316179055604051829184811691908616907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90600090a4505050565b61272254600090600160a01b900460ff16156127435760405162461bcd60e51b8152600401610b0190613622565b6000805b835181101561291457846001600160a01b031661276f858381518110610cf957610cf9613919565b6001600160a01b0316146127bd5760405162461bcd60e51b81526020600482015260156024820152742ab9b2b91024b9902737ba102a34329027bbb732b960591b6044820152606401610b01565b6103098482815181106127d2576127d2613919565b602002602001015110156128435761271d5461271960008684815181106127fb576127fb613919565b60200260200101518152602001908152602001600020544361281d9190613840565b612828906003613821565b6128329190613821565b61283c90836137f5565b91506128cf565b61271d54612718600086848151811061285e5761285e613919565b6020026020010151815260200190815260200160002054612719600087858151811061288c5761288c613919565b6020026020010151815260200190815260200160002054436128ae9190613840565b6128b89190613821565b6128c29190613821565b6128cc90836137f5565b91505b4361271960008684815181106128e7576128e7613919565b6020026020010151815260200190815260200160002081905550808061290c906138be565b915050612747565b5033600090815261271b6020526040902054156129735733600090815261271b602052604090205461294890600190613840565b33600090815261271b60205260409020556002612966826003613821565b612970919061380d565b90505b33600090815261271b602052604090206001015415610edc5733600090815261271b602052604090206001908101546129ac9190613840565b33600090815261271b60205260409020600101556002610ecf826005613821565b61271680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61133a828260405180602001604052806000815250612c4d565b816001600160a01b0316836001600160a01b03161415612a9c5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610b01565b6001600160a01b0383811660008181526127146020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612b158484846125c5565b612b2184848484612c80565b6115c95760405162461bcd60e51b8152600401610b0190613651565b606060008054610a1690613883565b6060612b5782612445565b612b735760405162461bcd60e51b8152600401610b01906136ed565b6000828152612715602052604081208054612b8d90613883565b80601f0160208091040260200160405190810160405280929190818152602001828054612bb990613883565b8015612c065780601f10612bdb57610100808354040283529160200191612c06565b820191906000526020600020905b815481529060010190602001808311612be957829003601f168201915b505050505090506000612c17612b3d565b9050805160001415612c2a575092915050565b815115612c4457808260405160200161224a9291906135a3565b61226b84612d8d565b612c578383612e57565b612c646000848484612c80565b610c385760405162461bcd60e51b8152600401610b0190613651565b60006001600160a01b0384163b15612d8257604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612cc49033908990889088906004016135d2565b602060405180830381600087803b158015612cde57600080fd5b505af1925050508015612d0e575060408051601f3d908101601f19168201909252612d0b918101906134bd565b60015b612d68573d808015612d3c576040519150601f19603f3d011682016040523d82523d6000602084013e612d41565b606091505b508051612d605760405162461bcd60e51b8152600401610b0190613651565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061226b565b506001949350505050565b6060612d9882612445565b612dfc5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610b01565b6000612e06612b3d565b90506000815111612e265760405180602001604052806000815250610edc565b80612e3084612f67565b604051602001612e419291906135a3565b6040516020818303038152906040529392505050565b6001600160a01b038216612ead5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610b01565b612eb681612445565b15612f035760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610b01565b816003826127108110612f1857612f18613919565b0180546001600160a01b0319166001600160a01b0392831617905560405182918416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b606081612f8b5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612fb55780612f9f816138be565b9150612fae9050600a8361380d565b9150612f8f565b60008167ffffffffffffffff811115612fd057612fd061392f565b6040519080825280601f01601f191660200182016040528015612ffa576020820181803683370190505b5090505b841561226b5761300f600183613840565b915061301c600a866138d9565b6130279060306137f5565b60f81b81838151811061303c5761303c613919565b60200101906001600160f81b031916908160001a90535061305e600a8661380d565b9450612ffe565b82805461307190613883565b90600052602060002090601f01602090048101928261309357600085556130d9565b82601f106130ac57805160ff19168380011785556130d9565b828001600101855582156130d9579182015b828111156130d95782518255916020019190600101906130be565b506130e59291506130e9565b5090565b5b808211156130e557600081556001016130ea565b600067ffffffffffffffff8311156131185761311861392f565b61312b601f8401601f19166020016137c4565b905082815283838301111561313f57600080fd5b828260208301376000602084830101529392505050565b60008083601f84011261316857600080fd5b50813567ffffffffffffffff81111561318057600080fd5b6020830191508360208260051b850101111561319b57600080fd5b9250929050565b6000602082840312156131b457600080fd5b8135610edc81613945565b600080604083850312156131d257600080fd5b82356131dd81613945565b915060208301356131ed81613945565b809150509250929050565b60008060006060848603121561320d57600080fd5b833561321881613945565b9250602084013561322881613945565b929592945050506040919091013590565b6000806000806080858703121561324f57600080fd5b843561325a81613945565b9350602085013561326a81613945565b925060408501359150606085013567ffffffffffffffff81111561328d57600080fd5b8501601f8101871361329e57600080fd5b6132ad878235602084016130fe565b91505092959194509250565b600080604083850312156132cc57600080fd5b82356132d781613945565b915060208381013567ffffffffffffffff808211156132f557600080fd5b818601915086601f83011261330957600080fd5b81358181111561331b5761331b61392f565b8060051b915061332c8483016137c4565b8181528481019084860184860187018b101561334757600080fd5b600095505b8386101561336a57803583526001959095019491860191860161334c565b508096505050505050509250929050565b6000806040838503121561338e57600080fd5b823561339981613945565b915060208301356131ed8161395a565b600080604083850312156133bc57600080fd5b82356133c781613945565b946020939093013593505050565b600080602083850312156133e857600080fd5b823567ffffffffffffffff8111156133ff57600080fd5b61340b85828601613156565b90969095509350505050565b6000806000806040858703121561342d57600080fd5b843567ffffffffffffffff8082111561344557600080fd5b61345188838901613156565b9096509450602087013591508082111561346a57600080fd5b5061347787828801613156565b95989497509550505050565b60006020828403121561349557600080fd5b8151610edc8161395a565b6000602082840312156134b257600080fd5b8135610edc81613968565b6000602082840312156134cf57600080fd5b8151610edc81613968565b6000602082840312156134ec57600080fd5b813567ffffffffffffffff81111561350357600080fd5b8201601f8101841361351457600080fd5b61226b848235602084016130fe565b60006020828403121561353557600080fd5b5035919050565b60006020828403121561354e57600080fd5b5051919050565b6000806040838503121561356857600080fd5b50508035926020909101359150565b6000815180845261358f816020860160208601613857565b601f01601f19169290920160200192915050565b600083516135b5818460208801613857565b8351908301906135c9818360208801613857565b01949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061360590830184613577565b9695505050505050565b602081526000610edc6020830184613577565b602080825260159082015274105c195cc8139bdd0814995d99585b19590816595d605a1b604082015260600190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252602a908201527f4e6f7420456e6f756768205661726961626c6520546f6b656e20546f2042757960408201526908115c5d5a5c1b595b9d60b21b606082015260800190565b60208082526031908201527f45524337323155524953746f726167653a2055524920717565727920666f72206040820152703737b732bc34b9ba32b73a103a37b5b2b760791b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b604051601f8201601f1916810167ffffffffffffffff811182821017156137ed576137ed61392f565b604052919050565b60008219821115613808576138086138ed565b500190565b60008261381c5761381c613903565b500490565b600081600019048311821515161561383b5761383b6138ed565b500290565b600082821015613852576138526138ed565b500390565b60005b8381101561387257818101518382015260200161385a565b838111156115c95750506000910152565b600181811c9082168061389757607f821691505b602082108114156138b857634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156138d2576138d26138ed565b5060010190565b6000826138e8576138e8613903565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114611dac57600080fd5b8015158114611dac57600080fd5b6001600160e01b031981168114611dac57600080fdfea26469706673582212203aa663b38f54afc6a2b76478fc4abc4b0247525e86adbe64814fa347b21ab1a464736f6c634300080700334552433732313a207472616e7366657220746f206e6f6e2045524337323152650000000000000000000000000000000000000000000000000000000000000230

Deployed Bytecode

0x6080604052600436106102ff5760003560e01c80637e2ff5f911610190578063a7f93ebd116100dc578063cc7caf3d11610095578063e985e9c51161006f578063e985e9c51461090a578063f00ecca314610954578063f2fde38b14610975578063f4a0a5281461099557600080fd5b8063cc7caf3d146108ab578063d309aa2c146108ca578063d7406965146108ea57600080fd5b8063a7f93ebd146107ff578063aeca06ab14610815578063b042f80d14610835578063b88d4fde14610855578063c87b56dd14610875578063cb8c7efd1461089557600080fd5b80639728660e11610149578063a22cb46511610123578063a22cb46514610788578063a28835b6146107a8578063a523df1d146107c8578063a56c7ff1146107df57600080fd5b80639728660e146107405780639b58d54c14610755578063a0712d681461077557600080fd5b80637e2ff5f9146106a05780637ecf2f38146106b55780638da5cb5b146106d55780638f9560df146106f457806394a08c691461071457806395d89b411461072b57600080fd5b80634539ff421161024f57806370a0823111610208578063757dc617116101e2578063757dc617146105f6578063775b9c13146106405780637901ea78146106605780637c3d6de11461068057600080fd5b806370a08231146105ab578063715018a6146105cb5780637462e065146105e057600080fd5b80634539ff4214610506578063549a582d1461051d5780636352211e146105345780636817c76c146105545780636b6eaae21461056b5780636ba4c1381461058b57600080fd5b80632e00aa13116102bc578063383929cf11610296578063383929cf146104785780633d3728b51461049857806341480b8e146104c657806342842e0e146104e657600080fd5b80632e00aa13146103f55780632f3c04fe146104265780632f9be3ec1461046257600080fd5b806301ffc9a71461030457806306fdde0314610339578063081812fc1461035b578063095ea7b314610393578063189083ae146103b557806323b872dd146103d5575b600080fd5b34801561031057600080fd5b5061032461031f3660046134a0565b6109b5565b60405190151581526020015b60405180910390f35b34801561034557600080fd5b5061034e610a07565b604051610330919061360f565b34801561036757600080fd5b5061037b610376366004613523565b610a99565b6040516001600160a01b039091168152602001610330565b34801561039f57600080fd5b506103b36103ae3660046133a9565b610b27565b005b3480156103c157600080fd5b506103b36103d0366004613523565b610c3d565b3480156103e157600080fd5b506103b36103f03660046131f8565b610c6e565b34801561040157600080fd5b506103246104103660046131a2565b61271a6020526000908152604090205460ff1681565b34801561043257600080fd5b50610454610441366004613523565b6127186020526000908152604090205481565b604051908152602001610330565b34801561046e57600080fd5b5061271d54610454565b34801561048457600080fd5b506104546104933660046132b9565b610c9f565b3480156104a457600080fd5b506104546104b3366004613523565b6127196020526000908152604090205481565b3480156104d257600080fd5b506104546104e13660046133a9565b610ee3565b3480156104f257600080fd5b506103b36105013660046131f8565b610f60565b34801561051257600080fd5b5061045461271f5481565b34801561052957600080fd5b506104546127215481565b34801561054057600080fd5b5061037b61054f366004613523565b610f7b565b34801561056057600080fd5b506104546127205481565b34801561057757600080fd5b506103b3610586366004613555565b610ffe565b34801561059757600080fd5b506103b36105a63660046133d5565b61133e565b3480156105b757600080fd5b506104546105c63660046131a2565b6115cf565b3480156105d757600080fd5b506103b3611697565b3480156105ec57600080fd5b5061272154610454565b34801561060257600080fd5b5061062b6106113660046131a2565b61271b602052600090815260409020805460019091015482565b60408051928352602083019190915201610330565b34801561064c57600080fd5b506103b361065b3660046133d5565b6116ce565b34801561066c57600080fd5b506103b361067b366004613523565b61176c565b34801561068c57600080fd5b506103b361069b3660046131a2565b611857565b3480156106ac57600080fd5b506103b36118f4565b3480156106c157600080fd5b5061272254600160b01b900460ff16610324565b3480156106e157600080fd5b50612716546001600160a01b031661037b565b34801561070057600080fd5b5061032461070f3660046131a2565b611958565b34801561072057600080fd5b5061045461271e5481565b34801561073757600080fd5b5061034e61197f565b34801561074c57600080fd5b506103b361198e565b34801561076157600080fd5b506103b36107703660046131a2565b611a44565b6103b3610783366004613523565b611afa565b34801561079457600080fd5b506103b36107a336600461337b565b611daf565b3480156107b457600080fd5b506103b36107c33660046131a2565b611dba565b3480156107d457600080fd5b5061045461271d5481565b3480156107eb57600080fd5b506103b36107fa366004613417565b611ee4565b34801561080b57600080fd5b5061272054610454565b34801561082157600080fd5b5061272254600160a01b900460ff16610324565b34801561084157600080fd5b50610454610850366004613523565b6120bd565b34801561086157600080fd5b506103b3610870366004613239565b612100565b34801561088157600080fd5b5061034e610890366004613523565b612132565b3480156108a157600080fd5b5061271f54610454565b3480156108b757600080fd5b50612722546001600160a01b031661037b565b3480156108d657600080fd5b506103b36108e53660046134da565b612273565b3480156108f657600080fd5b506103b3610905366004613523565b6122ed565b34801561091657600080fd5b506103246109253660046131bf565b6001600160a01b0391821660009081526127146020908152604080832093909416825291909152205460ff1690565b34801561096057600080fd5b506127225461037b906001600160a01b031681565b34801561098157600080fd5b506103b36109903660046131a2565b61231e565b3480156109a157600080fd5b506103b36109b0366004613523565b6123b7565b60006001600160e01b031982166380ac58cd60e01b14806109e657506001600160e01b03198216635b5e139f60e01b145b80610a0157506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060018054610a1690613883565b80601f0160208091040260200160405190810160405280929190818152602001828054610a4290613883565b8015610a8f5780601f10610a6457610100808354040283529160200191610a8f565b820191906000526020600020905b815481529060010190602001808311610a7257829003601f168201915b5050505050905090565b6000610aa482612445565b610b0a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b50600090815261271360205260409020546001600160a01b031690565b6000610b3282610f7b565b9050806001600160a01b0316836001600160a01b03161415610ba05760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610b01565b336001600160a01b0382161480610bbc5750610bbc8133610925565b610c2e5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610b01565b610c38838361246f565b505050565b612716546001600160a01b03163314610c685760405162461bcd60e51b8152600401610b019061373e565b61272155565b610c7833826124de565b610c945760405162461bcd60e51b8152600401610b0190613773565b610c388383836125c5565b61272254600090600160a01b900460ff1615610ccd5760405162461bcd60e51b8152600401610b0190613622565b6000805b8351811015610e7857846001600160a01b0316610d06858381518110610cf957610cf9613919565b6020026020010151610f7b565b6001600160a01b031614610d545760405162461bcd60e51b81526020600482015260156024820152742ab9b2b91024b9902737ba102a34329027bbb732b960591b6044820152606401610b01565b610309848281518110610d6957610d69613919565b60200260200101511015610dda5761271d546127196000868481518110610d9257610d92613919565b602002602001015181526020019081526020016000205443610db49190613840565b610dbf906003613821565b610dc99190613821565b610dd390836137f5565b9150610e66565b61271d546127186000868481518110610df557610df5613919565b60200260200101518152602001908152602001600020546127196000878581518110610e2357610e23613919565b602002602001015181526020019081526020016000205443610e459190613840565b610e4f9190613821565b610e599190613821565b610e6390836137f5565b91505b80610e70816138be565b915050610cd1565b5033600090815261271b602052604090205415610ea9576002610e9c826003613821565b610ea6919061380d565b90505b33600090815261271b602052604090206001015415610edc576002610ecf826005613821565b610ed9919061380d565b90505b9392505050565b61272254600090600160a01b900460ff1615610f115760405162461bcd60e51b8152600401610b0190613622565b815b61271e54811015610f5957836001600160a01b0316610f3182610f7b565b6001600160a01b03161415610f47579050610a01565b80610f51816138be565b915050610f13565b5092915050565b610c3883838360405180602001604052806000815250612100565b6000806003836127108110610f9257610f92613919565b01546001600160a01b0316905080610a015760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610b01565b81600114156111a55780600261272154611018919061380d565b6110229190613821565b612722546040516370a0823160e01b81523360048201526001600160a01b03909116906370a082319060240160206040518083038186803b15801561106657600080fd5b505afa15801561107a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061109e919061353c565b116110bb5760405162461bcd60e51b8152600401610b01906136a3565b61272254612721546001600160a01b03909116906323b872dd90339030906110e59060029061380d565b6110ef9086613821565b6040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401602060405180830381600087803b15801561113e57600080fd5b505af1158015611152573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111769190613483565b5033600090815261271b60205260409020546111939082906137f5565b33600090815261271b60205260409020555b816002141561133a57612721546111bc9082613821565b612722546040516370a0823160e01b81523360048201526001600160a01b03909116906370a082319060240160206040518083038186803b15801561120057600080fd5b505afa158015611214573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611238919061353c565b116112555760405162461bcd60e51b8152600401610b01906136a3565b61272254612721546001600160a01b03909116906323b872dd903390309061127e908690613821565b6040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401602060405180830381600087803b1580156112cd57600080fd5b505af11580156112e1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113059190613483565b5033600090815261271b60205260409020600101546113259082906137f5565b33600090815261271b60205260409020600101555b5050565b61271e5461271f541461139d5760405162461bcd60e51b815260206004820152602160248201527f4e6f7420416c6c2054686520417065732048617665204265656e204d696e74656044820152601960fa1b6064820152608401610b01565b61272254600160a01b900460ff16156113c85760405162461bcd60e51b8152600401610b0190613622565b60006114073384848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061271592505050565b9050600081116114645760405162461bcd60e51b815260206004820152602260248201527f4e6f74205661726961626c6520546f6b656e20416d6f756e7420546f20436c61604482015261696d60f01b6064820152608401610b01565b612722546040516370a0823160e01b815230600482015282916001600160a01b0316906370a082319060240160206040518083038186803b1580156114a857600080fd5b505afa1580156114bc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114e0919061353c565b116115445760405162461bcd60e51b815260206004820152602e60248201527f4e6f7420456e6f756768205661726961626c6520546f6b656e20496e20436f6e60448201526d747261637420546f20436c61696d60901b6064820152608401610b01565b6127225460405163a9059cbb60e01b8152336004820152602481018390526001600160a01b039091169063a9059cbb90604401602060405180830381600087803b15801561159157600080fd5b505af11580156115a5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115c99190613483565b50505050565b60006001600160a01b03821661163a5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610b01565b6000805b612710811015610f5957836001600160a01b0316600382612710811061166657611666613919565b01546001600160a01b03161415611685576116828260016137f5565b91505b8061168f816138be565b91505061163e565b612716546001600160a01b031633146116c25760405162461bcd60e51b8152600401610b019061373e565b6116cc60006129cd565b565b612716546001600160a01b031633146116f95760405162461bcd60e51b8152600401610b019061373e565b60005b81811015610c3857600161271a600085858581811061171d5761171d613919565b905060200201602081019061173291906131a2565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905580611764816138be565b9150506116fc565b612716546001600160a01b031633146117975760405162461bcd60e51b8152600401610b019061373e565b61271e548161271f546117aa91906137f5565b106117f75760405162461bcd60e51b815260206004820152601d60248201527f416c6c2054686520417065732048617665204265656e204d696e7465640000006044820152606401610b01565b61271f545b8161271f5461180b91906137f5565b8110156118405761181c3382612a20565b60008181526127196020526040902043905580611838816138be565b9150506117fc565b508061271f5461185091906137f5565b61271f5550565b612716546001600160a01b031633146118825760405162461bcd60e51b8152600401610b019061373e565b6001600160a01b0381166118d15760405162461bcd60e51b815260206004820152601660248201527543616e277420536574205a65726f204164647265737360501b6044820152606401610b01565b61272280546001600160a01b0319166001600160a01b0392909216919091179055565b612716546001600160a01b0316331461191f5760405162461bcd60e51b8152600401610b019061373e565b61272254600160b01b900460ff161561194257612722805460ff60b01b19169055565b612722805460ff60b01b1916600160b01b179055565b60006005611965836115cf565b1061197257506001919050565b506000919050565b919050565b606060028054610a1690613883565b612716546001600160a01b031633146119b95760405162461bcd60e51b8152600401610b019061373e565b61272254600160a81b900460ff1615611a265760405162461bcd60e51b815260206004820152602960248201527f416c726561647920417070726f766564205468657265205761732041205061726044820152687469616c2053616c6560b81b6064820152608401610b01565b61271f5461271e55612722805460ff60a81b1916600160a81b179055565b612716546001600160a01b03163314611a6f5760405162461bcd60e51b8152600401610b019061373e565b6001600160a01b038116611ac55760405162461bcd60e51b815260206004820152601a60248201527f61646d696e2063616e206e6f74206265203020616464726573730000000000006044820152606401610b01565b6040516001600160a01b038216904780156108fc02916000818181858888f1935050505015801561133a573d6000803e3d6000fd5b61271e548161271f54611b0d91906137f5565b10611b5a5760405162461bcd60e51b815260206004820152601d60248201527f416c6c2054686520417065732048617665204265656e204d696e7465640000006044820152606401610b01565b60006127205411611bad5760405162461bcd60e51b815260206004820152601d60248201527f4e6f204d696e74696e6720507269636520486173204265656e205365740000006044820152606401610b01565b8061272054611bbc9190613821565b3414611c035760405162461bcd60e51b8152602060048201526016602482015275139bdd08115b9bdd59da0811551208151bc8135a5b9d60521b6044820152606401610b01565b600a811115611c545760405162461bcd60e51b815260206004820181905260248201527f557020546f20412031302043616e204265204d696e746564204174204f6e63656044820152606401610b01565b61272254600160b01b900460ff1615611d495733600090815261271a602052604090205460ff161515600114611ce35760405162461bcd60e51b815260206004820152602e60248201527f4f6e6c792057686974654c6973746564204164647265737365732043616e204d60448201526d696e74204f6e2050726573616c6560901b6064820152608401610b01565b60005b8181101561133a57611cfb3361271f54612a20565b61271f8054600090815261271860209081526040808320600190819055845484526127199092529091204390559054611d33916137f5565b61271f5580611d41816138be565b915050611ce6565b60005b8181101561133a57611d613361271f54612a20565b61271f54611d709060016137f5565b61271f81815560009182526127186020908152604080842060019055915483526127199052902043905580611da4816138be565b915050611d4c565b50565b61133a338383612a3a565b612716546001600160a01b03163314611de55760405162461bcd60e51b8152600401610b019061373e565b6040516370a0823160e01b81523060048201526001600160a01b0382169063a9059cbb90339083906370a082319060240160206040518083038186803b158015611e2e57600080fd5b505afa158015611e42573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e66919061353c565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b158015611eac57600080fd5b505af1158015611ec0573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061133a9190613483565b612716546001600160a01b03163314611f0f5760405162461bcd60e51b8152600401610b019061373e565b61272254600160a01b900460ff1615611f905760405162461bcd60e51b815260206004820152603d60248201527f4120507573682043616e204f6e6c7920426520446f6e6520416674657220416c60448201527f6c2054686520417065732048617665204265656e2052657665616c65640000006064820152608401610b01565b828114611ff05760405162461bcd60e51b815260206004820152602860248201527f746865206c656e677468206f662069647320616e64207479706573206973206e6044820152671bdd08195c5d585b60c21b6064820152608401610b01565b60005b838110156120b65784848281811061200d5761200d613919565b905060200201356000141561205a5760405162461bcd60e51b815260206004820152601360248201527276616c75652063616e206e6f7420626520302160681b6044820152606401610b01565b84848281811061206c5761206c613919565b90506020020135612718600085858581811061208a5761208a613919565b9050602002013581526020019081526020016000208190555080806120ae906138be565b915050611ff3565b5050505050565b600081600114156120de57505033600090815261271b602052604090205490565b816002141561197a57505033600090815261271b602052604090206001015490565b61210a33836124de565b6121265760405162461bcd60e51b8152600401610b0190613773565b6115c984848484612b0a565b606061213d82612445565b6121595760405162461bcd60e51b8152600401610b01906136ed565b61272254600160a01b900460ff1615156001141561217957610a01612b3d565b600082815261271c60205260408120805461219390613883565b80601f01602080910402602001604051908101604052809291908181526020018280546121bf90613883565b801561220c5780601f106121e15761010080835404028352916020019161220c565b820191906000526020600020905b8154815290600101906020018083116121ef57829003601f168201915b50505050509050600061221d612b3d565b9050805160001415612230575092915050565b81511561226257808260405160200161224a9291906135a3565b60405160208183030381529060405292505050919050565b61226b84612b4c565b949350505050565b612716546001600160a01b0316331461229e5760405162461bcd60e51b8152600401610b019061373e565b80516122b1906000906020840190613065565b5061272254600160a01b900460ff16156122d657612722805460ff60a01b1916905550565b612722805460ff60a01b1916600160a01b17905550565b612716546001600160a01b031633146123185760405162461bcd60e51b8152600401610b019061373e565b61271d55565b612716546001600160a01b031633146123495760405162461bcd60e51b8152600401610b019061373e565b6001600160a01b0381166123ae5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b01565b611dac816129cd565b612716546001600160a01b031633146123e25760405162461bcd60e51b8152600401610b019061373e565b6703782dace9d9000081106124395760405162461bcd60e51b815260206004820152601960248201527f50726963652052656163686564205570706572204c696d6974000000000000006044820152606401610b01565b61272055565b3b151590565b600080600383612710811061245c5761245c613919565b01546001600160a01b0316141592915050565b60008181526127136020526040902080546001600160a01b0319166001600160a01b03841690811790915581906124a582610f7b565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006124e982612445565b61254a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610b01565b600061255583610f7b565b9050806001600160a01b0316846001600160a01b031614806125905750836001600160a01b031661258584610a99565b6001600160a01b0316145b8061226b57506001600160a01b038082166000908152612714602090815260408083209388168352929052205460ff1661226b565b826001600160a01b03166125d882610f7b565b6001600160a01b0316146126405760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610b01565b6001600160a01b0382166126a25760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610b01565b6126ad60008261246f565b8160038261271081106126c2576126c2613919565b0180546001600160a01b0319166001600160a01b03928316179055604051829184811691908616907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90600090a4505050565b61272254600090600160a01b900460ff16156127435760405162461bcd60e51b8152600401610b0190613622565b6000805b835181101561291457846001600160a01b031661276f858381518110610cf957610cf9613919565b6001600160a01b0316146127bd5760405162461bcd60e51b81526020600482015260156024820152742ab9b2b91024b9902737ba102a34329027bbb732b960591b6044820152606401610b01565b6103098482815181106127d2576127d2613919565b602002602001015110156128435761271d5461271960008684815181106127fb576127fb613919565b60200260200101518152602001908152602001600020544361281d9190613840565b612828906003613821565b6128329190613821565b61283c90836137f5565b91506128cf565b61271d54612718600086848151811061285e5761285e613919565b6020026020010151815260200190815260200160002054612719600087858151811061288c5761288c613919565b6020026020010151815260200190815260200160002054436128ae9190613840565b6128b89190613821565b6128c29190613821565b6128cc90836137f5565b91505b4361271960008684815181106128e7576128e7613919565b6020026020010151815260200190815260200160002081905550808061290c906138be565b915050612747565b5033600090815261271b6020526040902054156129735733600090815261271b602052604090205461294890600190613840565b33600090815261271b60205260409020556002612966826003613821565b612970919061380d565b90505b33600090815261271b602052604090206001015415610edc5733600090815261271b602052604090206001908101546129ac9190613840565b33600090815261271b60205260409020600101556002610ecf826005613821565b61271680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61133a828260405180602001604052806000815250612c4d565b816001600160a01b0316836001600160a01b03161415612a9c5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610b01565b6001600160a01b0383811660008181526127146020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612b158484846125c5565b612b2184848484612c80565b6115c95760405162461bcd60e51b8152600401610b0190613651565b606060008054610a1690613883565b6060612b5782612445565b612b735760405162461bcd60e51b8152600401610b01906136ed565b6000828152612715602052604081208054612b8d90613883565b80601f0160208091040260200160405190810160405280929190818152602001828054612bb990613883565b8015612c065780601f10612bdb57610100808354040283529160200191612c06565b820191906000526020600020905b815481529060010190602001808311612be957829003601f168201915b505050505090506000612c17612b3d565b9050805160001415612c2a575092915050565b815115612c4457808260405160200161224a9291906135a3565b61226b84612d8d565b612c578383612e57565b612c646000848484612c80565b610c385760405162461bcd60e51b8152600401610b0190613651565b60006001600160a01b0384163b15612d8257604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612cc49033908990889088906004016135d2565b602060405180830381600087803b158015612cde57600080fd5b505af1925050508015612d0e575060408051601f3d908101601f19168201909252612d0b918101906134bd565b60015b612d68573d808015612d3c576040519150601f19603f3d011682016040523d82523d6000602084013e612d41565b606091505b508051612d605760405162461bcd60e51b8152600401610b0190613651565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061226b565b506001949350505050565b6060612d9882612445565b612dfc5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610b01565b6000612e06612b3d565b90506000815111612e265760405180602001604052806000815250610edc565b80612e3084612f67565b604051602001612e419291906135a3565b6040516020818303038152906040529392505050565b6001600160a01b038216612ead5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610b01565b612eb681612445565b15612f035760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610b01565b816003826127108110612f1857612f18613919565b0180546001600160a01b0319166001600160a01b0392831617905560405182918416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b606081612f8b5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612fb55780612f9f816138be565b9150612fae9050600a8361380d565b9150612f8f565b60008167ffffffffffffffff811115612fd057612fd061392f565b6040519080825280601f01601f191660200182016040528015612ffa576020820181803683370190505b5090505b841561226b5761300f600183613840565b915061301c600a866138d9565b6130279060306137f5565b60f81b81838151811061303c5761303c613919565b60200101906001600160f81b031916908160001a90535061305e600a8661380d565b9450612ffe565b82805461307190613883565b90600052602060002090601f01602090048101928261309357600085556130d9565b82601f106130ac57805160ff19168380011785556130d9565b828001600101855582156130d9579182015b828111156130d95782518255916020019190600101906130be565b506130e59291506130e9565b5090565b5b808211156130e557600081556001016130ea565b600067ffffffffffffffff8311156131185761311861392f565b61312b601f8401601f19166020016137c4565b905082815283838301111561313f57600080fd5b828260208301376000602084830101529392505050565b60008083601f84011261316857600080fd5b50813567ffffffffffffffff81111561318057600080fd5b6020830191508360208260051b850101111561319b57600080fd5b9250929050565b6000602082840312156131b457600080fd5b8135610edc81613945565b600080604083850312156131d257600080fd5b82356131dd81613945565b915060208301356131ed81613945565b809150509250929050565b60008060006060848603121561320d57600080fd5b833561321881613945565b9250602084013561322881613945565b929592945050506040919091013590565b6000806000806080858703121561324f57600080fd5b843561325a81613945565b9350602085013561326a81613945565b925060408501359150606085013567ffffffffffffffff81111561328d57600080fd5b8501601f8101871361329e57600080fd5b6132ad878235602084016130fe565b91505092959194509250565b600080604083850312156132cc57600080fd5b82356132d781613945565b915060208381013567ffffffffffffffff808211156132f557600080fd5b818601915086601f83011261330957600080fd5b81358181111561331b5761331b61392f565b8060051b915061332c8483016137c4565b8181528481019084860184860187018b101561334757600080fd5b600095505b8386101561336a57803583526001959095019491860191860161334c565b508096505050505050509250929050565b6000806040838503121561338e57600080fd5b823561339981613945565b915060208301356131ed8161395a565b600080604083850312156133bc57600080fd5b82356133c781613945565b946020939093013593505050565b600080602083850312156133e857600080fd5b823567ffffffffffffffff8111156133ff57600080fd5b61340b85828601613156565b90969095509350505050565b6000806000806040858703121561342d57600080fd5b843567ffffffffffffffff8082111561344557600080fd5b61345188838901613156565b9096509450602087013591508082111561346a57600080fd5b5061347787828801613156565b95989497509550505050565b60006020828403121561349557600080fd5b8151610edc8161395a565b6000602082840312156134b257600080fd5b8135610edc81613968565b6000602082840312156134cf57600080fd5b8151610edc81613968565b6000602082840312156134ec57600080fd5b813567ffffffffffffffff81111561350357600080fd5b8201601f8101841361351457600080fd5b61226b848235602084016130fe565b60006020828403121561353557600080fd5b5035919050565b60006020828403121561354e57600080fd5b5051919050565b6000806040838503121561356857600080fd5b50508035926020909101359150565b6000815180845261358f816020860160208601613857565b601f01601f19169290920160200192915050565b600083516135b5818460208801613857565b8351908301906135c9818360208801613857565b01949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061360590830184613577565b9695505050505050565b602081526000610edc6020830184613577565b602080825260159082015274105c195cc8139bdd0814995d99585b19590816595d605a1b604082015260600190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252602a908201527f4e6f7420456e6f756768205661726961626c6520546f6b656e20546f2042757960408201526908115c5d5a5c1b595b9d60b21b606082015260800190565b60208082526031908201527f45524337323155524953746f726167653a2055524920717565727920666f72206040820152703737b732bc34b9ba32b73a103a37b5b2b760791b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b604051601f8201601f1916810167ffffffffffffffff811182821017156137ed576137ed61392f565b604052919050565b60008219821115613808576138086138ed565b500190565b60008261381c5761381c613903565b500490565b600081600019048311821515161561383b5761383b6138ed565b500290565b600082821015613852576138526138ed565b500390565b60005b8381101561387257818101518382015260200161385a565b838111156115c95750506000910152565b600181811c9082168061389757607f821691505b602082108114156138b857634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156138d2576138d26138ed565b5060010190565b6000826138e8576138e8613903565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114611dac57600080fd5b8015158114611dac57600080fd5b6001600160e01b031981168114611dac57600080fdfea26469706673582212203aa663b38f54afc6a2b76478fc4abc4b0247525e86adbe64814fa347b21ab1a464736f6c63430008070033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

0000000000000000000000000000000000000000000000000000000000000230

-----Decoded View---------------
Arg [0] : amount (uint256): 560

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000230


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.