APE Price: $1.29 (+1.28%)

Contract

0xBEf227ff3Cc34F848c0041900482AcF84722D5f8

Overview

APE Balance

Apechain LogoApechain LogoApechain Logo0 APE

APE Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw39837862024-11-10 10:01:3914 days ago1731232899IN
0xBEf227ff...84722D5f8
0 APE0.0008347625.42069
Set Approval For...33219812024-11-03 12:53:3621 days ago1730638416IN
0xBEf227ff...84722D5f8
0 APE0.0011754525.42069
Mint31028422024-11-01 17:39:3322 days ago1730482773IN
0xBEf227ff...84722D5f8
6 APE0.002255725.42069
Set Approval For...31009222024-11-01 17:18:3422 days ago1730481514IN
0xBEf227ff...84722D5f8
0 APE0.0011754525.42069
Set Approval For...30976082024-11-01 16:36:5622 days ago1730479016IN
0xBEf227ff...84722D5f8
0 APE0.0011754525.42069
Set Approval For...30975522024-11-01 16:36:1822 days ago1730478978IN
0xBEf227ff...84722D5f8
0 APE0.0011754525.42069
Mint30975162024-11-01 16:35:5022 days ago1730478950IN
0xBEf227ff...84722D5f8
5 APE0.0026272225.42069
Mint30973012024-11-01 16:33:2622 days ago1730478806IN
0xBEf227ff...84722D5f8
4 APE0.002577325.42069
Mint30972872024-11-01 16:33:1422 days ago1730478794IN
0xBEf227ff...84722D5f8
9 APE0.0028269325.42069
Mint30972782024-11-01 16:33:0822 days ago1730478788IN
0xBEf227ff...84722D5f8
3 APE0.0025273725.42069
Mint30972742024-11-01 16:33:0422 days ago1730478784IN
0xBEf227ff...84722D5f8
3 APE0.0025273725.42069
Mint30972702024-11-01 16:33:0122 days ago1730478781IN
0xBEf227ff...84722D5f8
3 APE0.0025273725.42069
Mint30972672024-11-01 16:32:5822 days ago1730478778IN
0xBEf227ff...84722D5f8
3 APE0.0025273725.42069
Mint30972632024-11-01 16:32:5522 days ago1730478775IN
0xBEf227ff...84722D5f8
3 APE0.0025273725.42069
Set Approval For...30967602024-11-01 16:26:5922 days ago1730478419IN
0xBEf227ff...84722D5f8
0 APE0.0011754525.42069
Set Approval For...30967002024-11-01 16:26:1122 days ago1730478371IN
0xBEf227ff...84722D5f8
0 APE0.0011754525.42069
Mint30966562024-11-01 16:25:3422 days ago1730478334IN
0xBEf227ff...84722D5f8
1 APE0.0024275225.42069
Mint30966522024-11-01 16:25:3222 days ago1730478332IN
0xBEf227ff...84722D5f8
1 APE0.0024275225.42069
Mint30966512024-11-01 16:25:3022 days ago1730478330IN
0xBEf227ff...84722D5f8
1 APE0.0024275225.42069
Mint30966452024-11-01 16:25:2822 days ago1730478328IN
0xBEf227ff...84722D5f8
1 APE0.0024275225.42069
Mint30966432024-11-01 16:25:2522 days ago1730478325IN
0xBEf227ff...84722D5f8
1 APE0.0024275225.42069
Mint30966392024-11-01 16:25:2422 days ago1730478324IN
0xBEf227ff...84722D5f8
1 APE0.0024275225.42069
Mint30966372024-11-01 16:25:2122 days ago1730478321IN
0xBEf227ff...84722D5f8
1 APE0.0024275225.42069
Mint30966342024-11-01 16:25:1922 days ago1730478319IN
0xBEf227ff...84722D5f8
1 APE0.0024275225.42069
Mint30966302024-11-01 16:25:1622 days ago1730478316IN
0xBEf227ff...84722D5f8
1 APE0.0024275225.42069
View all transactions

Latest 1 internal transaction

Parent Transaction Hash Block From To
39837862024-11-10 10:01:3914 days ago1731232899
0xBEf227ff...84722D5f8
159 APE

Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ApeAmericans

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at apescan.io on 2024-11-01
*/

// SPDX-License-Identifier: MIT

// File: @openzeppelin/contracts/security/ReentrancyGuard.sol


// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

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


// 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 (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

// 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: erc721a/contracts/ERC721A.sol


// Creator: Chiru Labs

pragma solidity ^0.8.4;








error ApprovalCallerNotOwnerNorApproved();
error ApprovalQueryForNonexistentToken();
error ApproveToCaller();
error ApprovalToCurrentOwner();
error BalanceQueryForZeroAddress();
error MintToZeroAddress();
error MintZeroQuantity();
error OwnerQueryForNonexistentToken();
error TransferCallerNotOwnerNorApproved();
error TransferFromIncorrectOwner();
error TransferToNonERC721ReceiverImplementer();
error TransferToZeroAddress();
error URIQueryForNonexistentToken();

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension. Built to optimize for lower gas during batch mints.
 *
 * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..).
 *
 * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 *
 * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721A is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Compiler will pack this into a single 256bit word.
    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Keeps track of the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
    }

    // Compiler will pack this into a single 256bit word.
    struct AddressData {
        // Realistically, 2**64-1 is more than enough.
        uint64 balance;
        // Keeps track of mint count with minimal overhead for tokenomics.
        uint64 numberMinted;
        // Keeps track of burn count with minimal overhead for tokenomics.
        uint64 numberBurned;
        // For miscellaneous variable(s) pertaining to the address
        // (e.g. number of whitelist mint slots used).
        // If there are multiple variables, please pack them into a uint64.
        uint64 aux;
    }

    // The tokenId of the next token to be minted.
    uint256 internal _currentIndex;

    // The number of tokens burned.
    uint256 internal _burnCounter;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to ownership details
    // An empty struct value does not necessarily mean the token is unowned. See _ownershipOf implementation for details.
    mapping(uint256 => TokenOwnership) internal _ownerships;

    // Mapping owner address to address data
    mapping(address => AddressData) private _addressData;

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

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

    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
        _currentIndex = _startTokenId();
    }

    /**
     * To change the starting tokenId, please override this function.
     */
    function _startTokenId() internal view virtual returns (uint256) {
        return 0;
    }

    /**
     * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens.
     */
    function totalSupply() public view returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than _currentIndex - _startTokenId() times
        unchecked {
            return _currentIndex - _burnCounter - _startTokenId();
        }
    }

    /**
     * Returns the total amount of tokens minted in the contract.
     */
    function _totalMinted() internal view returns (uint256) {
        // Counter underflow is impossible as _currentIndex does not decrement,
        // and it is initialized to _startTokenId()
        unchecked {
            return _currentIndex - _startTokenId();
        }
    }

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

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view override returns (uint256) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return uint256(_addressData[owner].balance);
    }

    /**
     * Returns the number of tokens minted by `owner`.
     */
    function _numberMinted(address owner) internal view returns (uint256) {
        return uint256(_addressData[owner].numberMinted);
    }

    /**
     * Returns the number of tokens burned by or on behalf of `owner`.
     */
    function _numberBurned(address owner) internal view returns (uint256) {
        return uint256(_addressData[owner].numberBurned);
    }

    /**
     * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used).
     */
    function _getAux(address owner) internal view returns (uint64) {
        return _addressData[owner].aux;
    }

    /**
     * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used).
     * If there are multiple variables, please pack them into a uint64.
     */
    function _setAux(address owner, uint64 aux) internal {
        _addressData[owner].aux = aux;
    }

    /**
     * Gas spent here starts off proportional to the maximum mint batch size.
     * It gradually moves to O(1) as tokens get transferred around in the collection over time.
     */
    function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) {
        uint256 curr = tokenId;

        unchecked {
            if (_startTokenId() <= curr && curr < _currentIndex) {
                TokenOwnership memory ownership = _ownerships[curr];
                if (!ownership.burned) {
                    if (ownership.addr != address(0)) {
                        return ownership;
                    }
                    // Invariant:
                    // There will always be an ownership that has an address and is not burned
                    // before an ownership that does not have an address and is not burned.
                    // Hence, curr will not underflow.
                    while (true) {
                        curr--;
                        ownership = _ownerships[curr];
                        if (ownership.addr != address(0)) {
                            return ownership;
                        }
                    }
                }
            }
        }
        revert OwnerQueryForNonexistentToken();
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view override returns (address) {
        return _ownershipOf(tokenId).addr;
    }

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

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

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

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

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

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public override {
        address owner = ERC721A.ownerOf(tokenId);
        if (to == owner) revert ApprovalToCurrentOwner();

        if (_msgSender() != owner && !isApprovedForAll(owner, _msgSender())) {
            revert ApprovalCallerNotOwnerNorApproved();
        }

        _approve(to, tokenId, owner);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view override returns (address) {
        if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();

        return _tokenApprovals[tokenId];
    }

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

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_msgSender(), operator, approved);
    }

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

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

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

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        _transfer(from, to, tokenId);
        if (to.isContract() && !_checkContractOnERC721Received(from, to, tokenId, _data)) {
            revert TransferToNonERC721ReceiverImplementer();
        }
    }

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

    function _safeMint(address to, uint256 quantity) internal {
        _safeMint(to, quantity, '');
    }

    /**
     * @dev Safely mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called for each safe transfer.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal {
        _mint(to, quantity, _data, true);
    }

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event.
     */
    function _mint(
        address to,
        uint256 quantity,
        bytes memory _data,
        bool safe
    ) internal {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();

        _beforeTokenTransfers(address(0), to, startTokenId, quantity);

        // Overflows are incredibly unrealistic.
        // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1
        // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1
        unchecked {
            _addressData[to].balance += uint64(quantity);
            _addressData[to].numberMinted += uint64(quantity);

            _ownerships[startTokenId].addr = to;
            _ownerships[startTokenId].startTimestamp = uint64(block.timestamp);

            uint256 updatedIndex = startTokenId;
            uint256 end = updatedIndex + quantity;

            if (safe && to.isContract()) {
                do {
                    emit Transfer(address(0), to, updatedIndex);
                    if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) {
                        revert TransferToNonERC721ReceiverImplementer();
                    }
                } while (updatedIndex != end);
                // Reentrancy protection
                if (_currentIndex != startTokenId) revert();
            } else {
                do {
                    emit Transfer(address(0), to, updatedIndex++);
                } while (updatedIndex != end);
            }
            _currentIndex = updatedIndex;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) private {
        TokenOwnership memory prevOwnership = _ownershipOf(tokenId);

        if (prevOwnership.addr != from) revert TransferFromIncorrectOwner();

        bool isApprovedOrOwner = (_msgSender() == from ||
            isApprovedForAll(from, _msgSender()) ||
            getApproved(tokenId) == _msgSender());

        if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

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

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256.
        unchecked {
            _addressData[from].balance -= 1;
            _addressData[to].balance += 1;

            TokenOwnership storage currSlot = _ownerships[tokenId];
            currSlot.addr = to;
            currSlot.startTimestamp = uint64(block.timestamp);

            // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it.
            // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
            uint256 nextTokenId = tokenId + 1;
            TokenOwnership storage nextSlot = _ownerships[nextTokenId];
            if (nextSlot.addr == address(0)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId != _currentIndex) {
                    nextSlot.addr = from;
                    nextSlot.startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

        emit Transfer(from, to, tokenId);
        _afterTokenTransfers(from, to, tokenId, 1);
    }

    /**
     * @dev This is equivalent to _burn(tokenId, false)
     */
    function _burn(uint256 tokenId) internal virtual {
        _burn(tokenId, false);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId, bool approvalCheck) internal virtual {
        TokenOwnership memory prevOwnership = _ownershipOf(tokenId);

        address from = prevOwnership.addr;

        if (approvalCheck) {
            bool isApprovedOrOwner = (_msgSender() == from ||
                isApprovedForAll(from, _msgSender()) ||
                getApproved(tokenId) == _msgSender());

            if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        }

        _beforeTokenTransfers(from, address(0), tokenId, 1);

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

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256.
        unchecked {
            AddressData storage addressData = _addressData[from];
            addressData.balance -= 1;
            addressData.numberBurned += 1;

            // Keep track of who burned the token, and the timestamp of burning.
            TokenOwnership storage currSlot = _ownerships[tokenId];
            currSlot.addr = from;
            currSlot.startTimestamp = uint64(block.timestamp);
            currSlot.burned = true;

            // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it.
            // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
            uint256 nextTokenId = tokenId + 1;
            TokenOwnership storage nextSlot = _ownerships[nextTokenId];
            if (nextSlot.addr == address(0)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId != _currentIndex) {
                    nextSlot.addr = from;
                    nextSlot.startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

        emit Transfer(from, address(0), tokenId);
        _afterTokenTransfers(from, address(0), tokenId, 1);

        // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times.
        unchecked {
            _burnCounter++;
        }
    }

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

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

    /**
     * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting.
     * And also called before burning one token.
     *
     * startTokenId - the first token id to be transferred
     * quantity - the amount to be transferred
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

    /**
     * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes
     * minting.
     * And also called after one token has been burned.
     *
     * startTokenId - the first token id to be transferred
     * quantity - the amount to be transferred
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been
     * transferred to `to`.
     * - When `from` is zero, `tokenId` has been minted for `to`.
     * - When `to` is zero, `tokenId` has been burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _afterTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}
}

// File: contracts/ApeAmericans.sol


 
pragma solidity >=0.8.0 <0.9.0;




 
contract ApeAmericans is ERC721A, Ownable, ReentrancyGuard {
  using Strings for uint256;
 
  string public _baseTokenURI;
  string public hiddenMetadataUri;
 
  uint256 public cost = 1 ether;
  uint256 public maxSupply = 2222;
  uint256 public freeSupply = 0;
  uint256 public maxMintAmountPerTx = 150;
  uint256 public FREE_NFT = 0;
 
  bool public paused = false;
  bool public revealed = true;
  mapping(address=>uint256) private free_nft;

  address private _royaltyReceiver;
  uint96 private _royaltyFeeNumerator;
 
  constructor(
    string memory _hiddenMetadataUri
  ) ERC721A("Ape Americans", "APEAMERICAN") {
 
    setHiddenMetadataUri(_hiddenMetadataUri);
  }
 
  function mint(uint256 _mintAmount) public payable nonReentrant {
    require(tx.origin == msg.sender, "Contracts are not allowed");
    require(_mintAmount > 0 && _mintAmount <= maxMintAmountPerTx, "Invalid mint amount!");
    require(totalSupply() + _mintAmount <= maxSupply, "Max supply exceeded!");
    require(!paused, "The contract is paused!");
    uint256 amountForPay=_mintAmount;
    if (this.balanceOf(_msgSender()) < FREE_NFT){
        if (amountForPay>=FREE_NFT){
            amountForPay-=FREE_NFT - free_nft[_msgSender()];
        }else{
            amountForPay=0;
        }
    }
    require(msg.value >= cost * amountForPay, "Insufficient funds!");

    if (totalSupply() >= freeSupply) {
          require(msg.value > 0, "Max free supply exceeded!");
          require(msg.value >= cost * _mintAmount, "Insufficient funds!");
      }
    free_nft[_msgSender()]+=_mintAmount;
    if (free_nft[_msgSender()] > FREE_NFT) free_nft[_msgSender()]=FREE_NFT;
    _safeMint(_msgSender(), _mintAmount);
  }
 
  function mintForAddress(uint256 _mintAmount, address _receiver) public onlyOwner {
    _safeMint(_receiver, _mintAmount);
  }
 
  function _startTokenId() internal view virtual override returns (uint256) {
    return 1;
  }
 
  function setRevealed(bool _state) public onlyOwner {
    revealed = _state;
  }
 
  function setCost(uint256 _cost) public onlyOwner {
    cost = _cost;
  }
 
  function setMaxMintAmountPerTx(uint256 _maxMintAmountPerTx) public onlyOwner {
    maxMintAmountPerTx = _maxMintAmountPerTx;
  }
 
  function setMaxSupply(uint256 _maxSupply) public onlyOwner {
    maxSupply = _maxSupply;
  }

  function setFreeSupply(uint256 _freeSupply) public onlyOwner {
    freeSupply = _freeSupply;
  }

  function setFREENFT(uint256 _FREENFT) public onlyOwner {
    FREE_NFT = _FREENFT;
  }

  function setPaused(bool _state) public onlyOwner {
    paused = _state;
  }
 
  function withdraw() public onlyOwner nonReentrant {
    (bool os, ) = payable(owner()).call{value: address(this).balance}('');
    require(os);
  }
 
  // METADATA HANDLING
 
  function setHiddenMetadataUri(string memory _hiddenMetadataUri) public onlyOwner {
    hiddenMetadataUri = _hiddenMetadataUri;
  }
 
  function setBaseURI(string calldata baseURI) public onlyOwner {
    _baseTokenURI = baseURI;
  }
 
  function _baseURI() internal view virtual override returns (string memory) {
      return _baseTokenURI;
  }
 
  function tokenURI(uint256 _tokenId) public view virtual override returns (string memory) {
      require(_exists(_tokenId), "URI does not exist!");
 
      if (revealed) {
          return string(abi.encodePacked(_baseURI(), _tokenId.toString()));
      } else {
          return hiddenMetadataUri;
      }
  }

  //ROYALTY

  function setDefaultRoyalty(address receiver, uint96 feeNumerator) public onlyOwner {
    require(feeNumerator <= 10000, "Fee exceeds 100%");
    _royaltyReceiver = receiver;
    _royaltyFeeNumerator = feeNumerator;
}

  function royaltyInfo(uint256 /* _tokenId */, uint256 _salePrice) external view returns (address, uint256) {
    uint256 royaltyAmount = (_salePrice * _royaltyFeeNumerator) / 10000;
    return (_royaltyReceiver, royaltyAmount);
}

  function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721A) returns (bool) {
    return interfaceId == 0x2a55205a || super.supportsInterface(interfaceId);
}

}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_hiddenMetadataUri","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"FREE_NFT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"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":[],"name":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freeSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hiddenMetadataUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintAmountPerTx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"address","name":"_receiver","type":"address"}],"name":"mintForAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cost","type":"uint256"}],"name":"setCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_FREENFT","type":"uint256"}],"name":"setFREENFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_freeSupply","type":"uint256"}],"name":"setFreeSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_hiddenMetadataUri","type":"string"}],"name":"setHiddenMetadataUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxMintAmountPerTx","type":"uint256"}],"name":"setMaxMintAmountPerTx","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxSupply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setRevealed","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":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052670de0b6b3a7640000600c556108ae600d556000600e8190556096600f556010556011805461ffff19166101001790553480156200004157600080fd5b50604051620028093803806200280983398101604081905262000064916200026c565b604080518082018252600d81526c41706520416d65726963616e7360981b60208083019182528351808501909452600b84526a20a822a0a6a2a924a1a0a760a91b908401528151919291620000bc91600291620001c6565b508051620000d2906003906020840190620001c6565b5050600160005550620000e533620000fc565b6001600955620000f5816200014e565b506200039b565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6008546001600160a01b03163314620001ad5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640160405180910390fd5b8051620001c290600b906020840190620001c6565b5050565b828054620001d49062000348565b90600052602060002090601f016020900481019282620001f8576000855562000243565b82601f106200021357805160ff191683800117855562000243565b8280016001018555821562000243579182015b828111156200024357825182559160200191906001019062000226565b506200025192915062000255565b5090565b5b8082111562000251576000815560010162000256565b600060208083850312156200028057600080fd5b82516001600160401b03808211156200029857600080fd5b818501915085601f830112620002ad57600080fd5b815181811115620002c257620002c262000385565b604051601f8201601f19908116603f01168101908382118183101715620002ed57620002ed62000385565b8160405282815288868487010111156200030657600080fd5b600093505b828410156200032a57848401860151818501870152928501926200030b565b828411156200033c5760008684830101525b98975050505050505050565b600181811c908216806200035d57607f821691505b602082108114156200037f57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b61245e80620003ab6000396000f3fe60806040526004361061023b5760003560e01c806370a082311161012e578063b3aa76a0116100ab578063e0a808531161006f578063e0a808531461067c578063e985e9c51461069c578063efbd73f4146106e5578063f2fde38b14610705578063f676308a1461072557600080fd5b8063b3aa76a0146105fb578063b88d4fde14610611578063c87b56dd14610631578063cfc86f7b14610651578063d5abeb011461066657600080fd5b806395d89b41116100f257806395d89b411461057e578063a0712d6814610593578063a22cb465146105a6578063a45ba8e7146105c6578063b071401b146105db57600080fd5b806370a08231146104f5578063715018a6146105155780638da5cb5b1461052a5780638e9d3bf11461054857806394354fd01461056857600080fd5b80632a55205a116101bc5780635183022711610180578063518302271461045c57806355f804b31461047b5780635c975abb1461049b5780636352211e146104b55780636f8b44b0146104d557600080fd5b80632a55205a146103a85780633ccfd60b146103e757806342842e0e146103fc57806344a0d68a1461041c5780634fdd43cb1461043c57600080fd5b806313faede61161020357806313faede61461031157806316c38b3c1461033557806318160ddd1461035557806323b872dd1461037257806324a6ab0c1461039257600080fd5b806301ffc9a71461024057806304634d8d1461027557806306fdde0314610297578063081812fc146102b9578063095ea7b3146102f1575b600080fd5b34801561024c57600080fd5b5061026061025b366004612076565b610745565b60405190151581526020015b60405180910390f35b34801561028157600080fd5b50610295610290366004612018565b610770565b005b3480156102a357600080fd5b506102ac610811565b60405161026c919061227a565b3480156102c557600080fd5b506102d96102d436600461216b565b6108a3565b6040516001600160a01b03909116815260200161026c565b3480156102fd57600080fd5b5061029561030c366004611fee565b6108e7565b34801561031d57600080fd5b50610327600c5481565b60405190815260200161026c565b34801561034157600080fd5b5061029561035036600461205b565b610975565b34801561036157600080fd5b506001546000540360001901610327565b34801561037e57600080fd5b5061029561038d366004611f0c565b6109b2565b34801561039e57600080fd5b50610327600e5481565b3480156103b457600080fd5b506103c86103c33660046121c0565b6109bd565b604080516001600160a01b03909316835260208301919091520161026c565b3480156103f357600080fd5b50610295610a06565b34801561040857600080fd5b50610295610417366004611f0c565b610b01565b34801561042857600080fd5b5061029561043736600461216b565b610b1c565b34801561044857600080fd5b50610295610457366004612122565b610b4b565b34801561046857600080fd5b5060115461026090610100900460ff1681565b34801561048757600080fd5b506102956104963660046120b0565b610b8c565b3480156104a757600080fd5b506011546102609060ff1681565b3480156104c157600080fd5b506102d96104d036600461216b565b610bc2565b3480156104e157600080fd5b506102956104f036600461216b565b610bd4565b34801561050157600080fd5b50610327610510366004611eb7565b610c03565b34801561052157600080fd5b50610295610c52565b34801561053657600080fd5b506008546001600160a01b03166102d9565b34801561055457600080fd5b5061029561056336600461216b565b610c88565b34801561057457600080fd5b50610327600f5481565b34801561058a57600080fd5b506102ac610cb7565b6102956105a136600461216b565b610cc6565b3480156105b257600080fd5b506102956105c1366004611fc4565b6110a6565b3480156105d257600080fd5b506102ac61113c565b3480156105e757600080fd5b506102956105f636600461216b565b6111ca565b34801561060757600080fd5b5061032760105481565b34801561061d57600080fd5b5061029561062c366004611f48565b6111f9565b34801561063d57600080fd5b506102ac61064c36600461216b565b61124a565b34801561065d57600080fd5b506102ac611376565b34801561067257600080fd5b50610327600d5481565b34801561068857600080fd5b5061029561069736600461205b565b611383565b3480156106a857600080fd5b506102606106b7366004611ed9565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b3480156106f157600080fd5b5061029561070036600461219d565b6113c7565b34801561071157600080fd5b50610295610720366004611eb7565b6113fb565b34801561073157600080fd5b5061029561074036600461216b565b611496565b600063152a902d60e11b6001600160e01b03198316148061076a575061076a826114c5565b92915050565b6008546001600160a01b031633146107a35760405162461bcd60e51b815260040161079a9061228d565b60405180910390fd5b612710816001600160601b031611156107f15760405162461bcd60e51b815260206004820152601060248201526f4665652065786365656473203130302560801b604482015260640161079a565b6001600160601b0316600160a01b026001600160a01b0390911617601355565b60606002805461082090612350565b80601f016020809104026020016040519081016040528092919081815260200182805461084c90612350565b80156108995780601f1061086e57610100808354040283529160200191610899565b820191906000526020600020905b81548152906001019060200180831161087c57829003601f168201915b5050505050905090565b60006108ae82611515565b6108cb576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006108f282610bc2565b9050806001600160a01b0316836001600160a01b031614156109275760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610947575061094581336106b7565b155b15610965576040516367d9dca160e11b815260040160405180910390fd5b61097083838361154e565b505050565b6008546001600160a01b0316331461099f5760405162461bcd60e51b815260040161079a9061228d565b6011805460ff1916911515919091179055565b6109708383836115aa565b60135460009081908190612710906109e590600160a01b90046001600160601b0316866122ee565b6109ef91906122da565b6013546001600160a01b0316969095509350505050565b6008546001600160a01b03163314610a305760405162461bcd60e51b815260040161079a9061228d565b60026009541415610a835760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161079a565b60026009556000610a9c6008546001600160a01b031690565b6001600160a01b03164760405160006040518083038185875af1925050503d8060008114610ae6576040519150601f19603f3d011682016040523d82523d6000602084013e610aeb565b606091505b5050905080610af957600080fd5b506001600955565b610970838383604051806020016040528060008152506111f9565b6008546001600160a01b03163314610b465760405162461bcd60e51b815260040161079a9061228d565b600c55565b6008546001600160a01b03163314610b755760405162461bcd60e51b815260040161079a9061228d565b8051610b8890600b906020840190611d0d565b5050565b6008546001600160a01b03163314610bb65760405162461bcd60e51b815260040161079a9061228d565b610970600a8383611d91565b6000610bcd8261179a565b5192915050565b6008546001600160a01b03163314610bfe5760405162461bcd60e51b815260040161079a9061228d565b600d55565b60006001600160a01b038216610c2c576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6008546001600160a01b03163314610c7c5760405162461bcd60e51b815260040161079a9061228d565b610c8660006118c3565b565b6008546001600160a01b03163314610cb25760405162461bcd60e51b815260040161079a9061228d565b601055565b60606003805461082090612350565b60026009541415610d195760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161079a565b6002600955323314610d6d5760405162461bcd60e51b815260206004820152601960248201527f436f6e74726163747320617265206e6f7420616c6c6f77656400000000000000604482015260640161079a565b600081118015610d7f5750600f548111155b610dc25760405162461bcd60e51b8152602060048201526014602482015273496e76616c6964206d696e7420616d6f756e742160601b604482015260640161079a565b600d546001546000548391900360001901610ddd91906122c2565b1115610e225760405162461bcd60e51b81526020600482015260146024820152734d617820737570706c792065786365656465642160601b604482015260640161079a565b60115460ff1615610e755760405162461bcd60e51b815260206004820152601760248201527f54686520636f6e74726163742069732070617573656421000000000000000000604482015260640161079a565b6010548190306370a08231336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b158015610ec057600080fd5b505afa158015610ed4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ef89190612184565b1015610f39576010548110610f355733600090815260126020526040902054601054610f24919061230d565b610f2e908261230d565b9050610f39565b5060005b80600c54610f4791906122ee565b341015610f8c5760405162461bcd60e51b8152602060048201526013602482015272496e73756666696369656e742066756e64732160681b604482015260640161079a565b600e546001546000540360001901106110425760003411610fef5760405162461bcd60e51b815260206004820152601960248201527f4d6178206672656520737570706c792065786365656465642100000000000000604482015260640161079a565b81600c54610ffd91906122ee565b3410156110425760405162461bcd60e51b8152602060048201526013602482015272496e73756666696369656e742066756e64732160681b604482015260640161079a565b33600090815260126020526040812080548492906110619084906122c2565b909155505060105433600090815260126020526040902054111561109357601054336000908152601260205260409020555b61109d3383611915565b50506001600955565b6001600160a01b0382163314156110d05760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600b805461114990612350565b80601f016020809104026020016040519081016040528092919081815260200182805461117590612350565b80156111c25780601f10611197576101008083540402835291602001916111c2565b820191906000526020600020905b8154815290600101906020018083116111a557829003601f168201915b505050505081565b6008546001600160a01b031633146111f45760405162461bcd60e51b815260040161079a9061228d565b600f55565b6112048484846115aa565b6001600160a01b0383163b1515801561122657506112248484848461192f565b155b15611244576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b606061125582611515565b6112975760405162461bcd60e51b815260206004820152601360248201527255524920646f6573206e6f742065786973742160681b604482015260640161079a565b601154610100900460ff16156112df576112af611a27565b6112b883611a36565b6040516020016112c992919061220e565b6040516020818303038152906040529050919050565b600b80546112ec90612350565b80601f016020809104026020016040519081016040528092919081815260200182805461131890612350565b80156113655780601f1061133a57610100808354040283529160200191611365565b820191906000526020600020905b81548152906001019060200180831161134857829003601f168201915b50505050509050919050565b919050565b600a805461114990612350565b6008546001600160a01b031633146113ad5760405162461bcd60e51b815260040161079a9061228d565b601180549115156101000261ff0019909216919091179055565b6008546001600160a01b031633146113f15760405162461bcd60e51b815260040161079a9061228d565b610b888183611915565b6008546001600160a01b031633146114255760405162461bcd60e51b815260040161079a9061228d565b6001600160a01b03811661148a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161079a565b611493816118c3565b50565b6008546001600160a01b031633146114c05760405162461bcd60e51b815260040161079a9061228d565b600e55565b60006001600160e01b031982166380ac58cd60e01b14806114f657506001600160e01b03198216635b5e139f60e01b145b8061076a57506301ffc9a760e01b6001600160e01b031983161461076a565b600081600111158015611529575060005482105b801561076a575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60006115b58261179a565b9050836001600160a01b031681600001516001600160a01b0316146115ec5760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b038616148061160a575061160a85336106b7565b8061162557503361161a846108a3565b6001600160a01b0316145b90508061164557604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03841661166c57604051633a954ecd60e21b815260040160405180910390fd5b6116786000848761154e565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff1980821667ffffffffffffffff92831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b4290921691909102178355870180845292208054919390911661174e57600054821461174e578054602086015167ffffffffffffffff16600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b604080516060810182526000808252602082018190529181019190915281806001111580156117ca575060005481105b156118aa57600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff161515918101829052906118a85780516001600160a01b03161561183e579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff16151592810192909252156118a3579392505050565b61183e565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610b88828260405180602001604052806000815250611b34565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061196490339089908890889060040161223d565b602060405180830381600087803b15801561197e57600080fd5b505af19250505080156119ae575060408051601f3d908101601f191682019092526119ab91810190612093565b60015b611a09573d8080156119dc576040519150601f19603f3d011682016040523d82523d6000602084013e6119e1565b606091505b508051611a01576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060600a805461082090612350565b606081611a5a5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611a845780611a6e8161238b565b9150611a7d9050600a836122da565b9150611a5e565b60008167ffffffffffffffff811115611a9f57611a9f6123fc565b6040519080825280601f01601f191660200182016040528015611ac9576020820181803683370190505b5090505b8415611a1f57611ade60018361230d565b9150611aeb600a866123a6565b611af69060306122c2565b60f81b818381518110611b0b57611b0b6123e6565b60200101906001600160f81b031916908160001a905350611b2d600a866122da565b9450611acd565b61097083838360016000546001600160a01b038516611b6557604051622e076360e81b815260040160405180910390fd5b83611b835760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff19811667ffffffffffffffff8083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c01811690920217909155858452600490925290912080546001600160e01b031916909217600160a01b429092169190910217905580808501838015611c3557506001600160a01b0387163b15155b15611cbe575b60405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4611c86600088848060010195508861192f565b611ca3576040516368d2bf6b60e11b815260040160405180910390fd5b80821415611c3b578260005414611cb957600080fd5b611d04565b5b6040516001830192906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480821415611cbf575b50600055611793565b828054611d1990612350565b90600052602060002090601f016020900481019282611d3b5760008555611d81565b82601f10611d5457805160ff1916838001178555611d81565b82800160010185558215611d81579182015b82811115611d81578251825591602001919060010190611d66565b50611d8d929150611e05565b5090565b828054611d9d90612350565b90600052602060002090601f016020900481019282611dbf5760008555611d81565b82601f10611dd85782800160ff19823516178555611d81565b82800160010185558215611d81579182015b82811115611d81578235825591602001919060010190611dea565b5b80821115611d8d5760008155600101611e06565b600067ffffffffffffffff80841115611e3557611e356123fc565b604051601f8501601f19908116603f01168101908282118183101715611e5d57611e5d6123fc565b81604052809350858152868686011115611e7657600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b038116811461137157600080fd5b8035801515811461137157600080fd5b600060208284031215611ec957600080fd5b611ed282611e90565b9392505050565b60008060408385031215611eec57600080fd5b611ef583611e90565b9150611f0360208401611e90565b90509250929050565b600080600060608486031215611f2157600080fd5b611f2a84611e90565b9250611f3860208501611e90565b9150604084013590509250925092565b60008060008060808587031215611f5e57600080fd5b611f6785611e90565b9350611f7560208601611e90565b925060408501359150606085013567ffffffffffffffff811115611f9857600080fd5b8501601f81018713611fa957600080fd5b611fb887823560208401611e1a565b91505092959194509250565b60008060408385031215611fd757600080fd5b611fe083611e90565b9150611f0360208401611ea7565b6000806040838503121561200157600080fd5b61200a83611e90565b946020939093013593505050565b6000806040838503121561202b57600080fd5b61203483611e90565b915060208301356001600160601b038116811461205057600080fd5b809150509250929050565b60006020828403121561206d57600080fd5b611ed282611ea7565b60006020828403121561208857600080fd5b8135611ed281612412565b6000602082840312156120a557600080fd5b8151611ed281612412565b600080602083850312156120c357600080fd5b823567ffffffffffffffff808211156120db57600080fd5b818501915085601f8301126120ef57600080fd5b8135818111156120fe57600080fd5b86602082850101111561211057600080fd5b60209290920196919550909350505050565b60006020828403121561213457600080fd5b813567ffffffffffffffff81111561214b57600080fd5b8201601f8101841361215c57600080fd5b611a1f84823560208401611e1a565b60006020828403121561217d57600080fd5b5035919050565b60006020828403121561219657600080fd5b5051919050565b600080604083850312156121b057600080fd5b82359150611f0360208401611e90565b600080604083850312156121d357600080fd5b50508035926020909101359150565b600081518084526121fa816020860160208601612324565b601f01601f19169290920160200192915050565b60008351612220818460208801612324565b835190830190612234818360208801612324565b01949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612270908301846121e2565b9695505050505050565b602081526000611ed260208301846121e2565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600082198211156122d5576122d56123ba565b500190565b6000826122e9576122e96123d0565b500490565b6000816000190483118215151615612308576123086123ba565b500290565b60008282101561231f5761231f6123ba565b500390565b60005b8381101561233f578181015183820152602001612327565b838111156112445750506000910152565b600181811c9082168061236457607f821691505b6020821081141561238557634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561239f5761239f6123ba565b5060010190565b6000826123b5576123b56123d0565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461149357600080fdfea2646970667358221220364708d0675b4ed98531ef200f20138912073877fdc58466cfad3b821c5c2fa964736f6c634300080700330000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000b415045414d45524943414e000000000000000000000000000000000000000000

Deployed Bytecode

0x60806040526004361061023b5760003560e01c806370a082311161012e578063b3aa76a0116100ab578063e0a808531161006f578063e0a808531461067c578063e985e9c51461069c578063efbd73f4146106e5578063f2fde38b14610705578063f676308a1461072557600080fd5b8063b3aa76a0146105fb578063b88d4fde14610611578063c87b56dd14610631578063cfc86f7b14610651578063d5abeb011461066657600080fd5b806395d89b41116100f257806395d89b411461057e578063a0712d6814610593578063a22cb465146105a6578063a45ba8e7146105c6578063b071401b146105db57600080fd5b806370a08231146104f5578063715018a6146105155780638da5cb5b1461052a5780638e9d3bf11461054857806394354fd01461056857600080fd5b80632a55205a116101bc5780635183022711610180578063518302271461045c57806355f804b31461047b5780635c975abb1461049b5780636352211e146104b55780636f8b44b0146104d557600080fd5b80632a55205a146103a85780633ccfd60b146103e757806342842e0e146103fc57806344a0d68a1461041c5780634fdd43cb1461043c57600080fd5b806313faede61161020357806313faede61461031157806316c38b3c1461033557806318160ddd1461035557806323b872dd1461037257806324a6ab0c1461039257600080fd5b806301ffc9a71461024057806304634d8d1461027557806306fdde0314610297578063081812fc146102b9578063095ea7b3146102f1575b600080fd5b34801561024c57600080fd5b5061026061025b366004612076565b610745565b60405190151581526020015b60405180910390f35b34801561028157600080fd5b50610295610290366004612018565b610770565b005b3480156102a357600080fd5b506102ac610811565b60405161026c919061227a565b3480156102c557600080fd5b506102d96102d436600461216b565b6108a3565b6040516001600160a01b03909116815260200161026c565b3480156102fd57600080fd5b5061029561030c366004611fee565b6108e7565b34801561031d57600080fd5b50610327600c5481565b60405190815260200161026c565b34801561034157600080fd5b5061029561035036600461205b565b610975565b34801561036157600080fd5b506001546000540360001901610327565b34801561037e57600080fd5b5061029561038d366004611f0c565b6109b2565b34801561039e57600080fd5b50610327600e5481565b3480156103b457600080fd5b506103c86103c33660046121c0565b6109bd565b604080516001600160a01b03909316835260208301919091520161026c565b3480156103f357600080fd5b50610295610a06565b34801561040857600080fd5b50610295610417366004611f0c565b610b01565b34801561042857600080fd5b5061029561043736600461216b565b610b1c565b34801561044857600080fd5b50610295610457366004612122565b610b4b565b34801561046857600080fd5b5060115461026090610100900460ff1681565b34801561048757600080fd5b506102956104963660046120b0565b610b8c565b3480156104a757600080fd5b506011546102609060ff1681565b3480156104c157600080fd5b506102d96104d036600461216b565b610bc2565b3480156104e157600080fd5b506102956104f036600461216b565b610bd4565b34801561050157600080fd5b50610327610510366004611eb7565b610c03565b34801561052157600080fd5b50610295610c52565b34801561053657600080fd5b506008546001600160a01b03166102d9565b34801561055457600080fd5b5061029561056336600461216b565b610c88565b34801561057457600080fd5b50610327600f5481565b34801561058a57600080fd5b506102ac610cb7565b6102956105a136600461216b565b610cc6565b3480156105b257600080fd5b506102956105c1366004611fc4565b6110a6565b3480156105d257600080fd5b506102ac61113c565b3480156105e757600080fd5b506102956105f636600461216b565b6111ca565b34801561060757600080fd5b5061032760105481565b34801561061d57600080fd5b5061029561062c366004611f48565b6111f9565b34801561063d57600080fd5b506102ac61064c36600461216b565b61124a565b34801561065d57600080fd5b506102ac611376565b34801561067257600080fd5b50610327600d5481565b34801561068857600080fd5b5061029561069736600461205b565b611383565b3480156106a857600080fd5b506102606106b7366004611ed9565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b3480156106f157600080fd5b5061029561070036600461219d565b6113c7565b34801561071157600080fd5b50610295610720366004611eb7565b6113fb565b34801561073157600080fd5b5061029561074036600461216b565b611496565b600063152a902d60e11b6001600160e01b03198316148061076a575061076a826114c5565b92915050565b6008546001600160a01b031633146107a35760405162461bcd60e51b815260040161079a9061228d565b60405180910390fd5b612710816001600160601b031611156107f15760405162461bcd60e51b815260206004820152601060248201526f4665652065786365656473203130302560801b604482015260640161079a565b6001600160601b0316600160a01b026001600160a01b0390911617601355565b60606002805461082090612350565b80601f016020809104026020016040519081016040528092919081815260200182805461084c90612350565b80156108995780601f1061086e57610100808354040283529160200191610899565b820191906000526020600020905b81548152906001019060200180831161087c57829003601f168201915b5050505050905090565b60006108ae82611515565b6108cb576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006108f282610bc2565b9050806001600160a01b0316836001600160a01b031614156109275760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610947575061094581336106b7565b155b15610965576040516367d9dca160e11b815260040160405180910390fd5b61097083838361154e565b505050565b6008546001600160a01b0316331461099f5760405162461bcd60e51b815260040161079a9061228d565b6011805460ff1916911515919091179055565b6109708383836115aa565b60135460009081908190612710906109e590600160a01b90046001600160601b0316866122ee565b6109ef91906122da565b6013546001600160a01b0316969095509350505050565b6008546001600160a01b03163314610a305760405162461bcd60e51b815260040161079a9061228d565b60026009541415610a835760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161079a565b60026009556000610a9c6008546001600160a01b031690565b6001600160a01b03164760405160006040518083038185875af1925050503d8060008114610ae6576040519150601f19603f3d011682016040523d82523d6000602084013e610aeb565b606091505b5050905080610af957600080fd5b506001600955565b610970838383604051806020016040528060008152506111f9565b6008546001600160a01b03163314610b465760405162461bcd60e51b815260040161079a9061228d565b600c55565b6008546001600160a01b03163314610b755760405162461bcd60e51b815260040161079a9061228d565b8051610b8890600b906020840190611d0d565b5050565b6008546001600160a01b03163314610bb65760405162461bcd60e51b815260040161079a9061228d565b610970600a8383611d91565b6000610bcd8261179a565b5192915050565b6008546001600160a01b03163314610bfe5760405162461bcd60e51b815260040161079a9061228d565b600d55565b60006001600160a01b038216610c2c576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6008546001600160a01b03163314610c7c5760405162461bcd60e51b815260040161079a9061228d565b610c8660006118c3565b565b6008546001600160a01b03163314610cb25760405162461bcd60e51b815260040161079a9061228d565b601055565b60606003805461082090612350565b60026009541415610d195760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161079a565b6002600955323314610d6d5760405162461bcd60e51b815260206004820152601960248201527f436f6e74726163747320617265206e6f7420616c6c6f77656400000000000000604482015260640161079a565b600081118015610d7f5750600f548111155b610dc25760405162461bcd60e51b8152602060048201526014602482015273496e76616c6964206d696e7420616d6f756e742160601b604482015260640161079a565b600d546001546000548391900360001901610ddd91906122c2565b1115610e225760405162461bcd60e51b81526020600482015260146024820152734d617820737570706c792065786365656465642160601b604482015260640161079a565b60115460ff1615610e755760405162461bcd60e51b815260206004820152601760248201527f54686520636f6e74726163742069732070617573656421000000000000000000604482015260640161079a565b6010548190306370a08231336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b158015610ec057600080fd5b505afa158015610ed4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ef89190612184565b1015610f39576010548110610f355733600090815260126020526040902054601054610f24919061230d565b610f2e908261230d565b9050610f39565b5060005b80600c54610f4791906122ee565b341015610f8c5760405162461bcd60e51b8152602060048201526013602482015272496e73756666696369656e742066756e64732160681b604482015260640161079a565b600e546001546000540360001901106110425760003411610fef5760405162461bcd60e51b815260206004820152601960248201527f4d6178206672656520737570706c792065786365656465642100000000000000604482015260640161079a565b81600c54610ffd91906122ee565b3410156110425760405162461bcd60e51b8152602060048201526013602482015272496e73756666696369656e742066756e64732160681b604482015260640161079a565b33600090815260126020526040812080548492906110619084906122c2565b909155505060105433600090815260126020526040902054111561109357601054336000908152601260205260409020555b61109d3383611915565b50506001600955565b6001600160a01b0382163314156110d05760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600b805461114990612350565b80601f016020809104026020016040519081016040528092919081815260200182805461117590612350565b80156111c25780601f10611197576101008083540402835291602001916111c2565b820191906000526020600020905b8154815290600101906020018083116111a557829003601f168201915b505050505081565b6008546001600160a01b031633146111f45760405162461bcd60e51b815260040161079a9061228d565b600f55565b6112048484846115aa565b6001600160a01b0383163b1515801561122657506112248484848461192f565b155b15611244576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b606061125582611515565b6112975760405162461bcd60e51b815260206004820152601360248201527255524920646f6573206e6f742065786973742160681b604482015260640161079a565b601154610100900460ff16156112df576112af611a27565b6112b883611a36565b6040516020016112c992919061220e565b6040516020818303038152906040529050919050565b600b80546112ec90612350565b80601f016020809104026020016040519081016040528092919081815260200182805461131890612350565b80156113655780601f1061133a57610100808354040283529160200191611365565b820191906000526020600020905b81548152906001019060200180831161134857829003601f168201915b50505050509050919050565b919050565b600a805461114990612350565b6008546001600160a01b031633146113ad5760405162461bcd60e51b815260040161079a9061228d565b601180549115156101000261ff0019909216919091179055565b6008546001600160a01b031633146113f15760405162461bcd60e51b815260040161079a9061228d565b610b888183611915565b6008546001600160a01b031633146114255760405162461bcd60e51b815260040161079a9061228d565b6001600160a01b03811661148a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161079a565b611493816118c3565b50565b6008546001600160a01b031633146114c05760405162461bcd60e51b815260040161079a9061228d565b600e55565b60006001600160e01b031982166380ac58cd60e01b14806114f657506001600160e01b03198216635b5e139f60e01b145b8061076a57506301ffc9a760e01b6001600160e01b031983161461076a565b600081600111158015611529575060005482105b801561076a575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60006115b58261179a565b9050836001600160a01b031681600001516001600160a01b0316146115ec5760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b038616148061160a575061160a85336106b7565b8061162557503361161a846108a3565b6001600160a01b0316145b90508061164557604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03841661166c57604051633a954ecd60e21b815260040160405180910390fd5b6116786000848761154e565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff1980821667ffffffffffffffff92831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b4290921691909102178355870180845292208054919390911661174e57600054821461174e578054602086015167ffffffffffffffff16600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b604080516060810182526000808252602082018190529181019190915281806001111580156117ca575060005481105b156118aa57600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff161515918101829052906118a85780516001600160a01b03161561183e579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff16151592810192909252156118a3579392505050565b61183e565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610b88828260405180602001604052806000815250611b34565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061196490339089908890889060040161223d565b602060405180830381600087803b15801561197e57600080fd5b505af19250505080156119ae575060408051601f3d908101601f191682019092526119ab91810190612093565b60015b611a09573d8080156119dc576040519150601f19603f3d011682016040523d82523d6000602084013e6119e1565b606091505b508051611a01576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060600a805461082090612350565b606081611a5a5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611a845780611a6e8161238b565b9150611a7d9050600a836122da565b9150611a5e565b60008167ffffffffffffffff811115611a9f57611a9f6123fc565b6040519080825280601f01601f191660200182016040528015611ac9576020820181803683370190505b5090505b8415611a1f57611ade60018361230d565b9150611aeb600a866123a6565b611af69060306122c2565b60f81b818381518110611b0b57611b0b6123e6565b60200101906001600160f81b031916908160001a905350611b2d600a866122da565b9450611acd565b61097083838360016000546001600160a01b038516611b6557604051622e076360e81b815260040160405180910390fd5b83611b835760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff19811667ffffffffffffffff8083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c01811690920217909155858452600490925290912080546001600160e01b031916909217600160a01b429092169190910217905580808501838015611c3557506001600160a01b0387163b15155b15611cbe575b60405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4611c86600088848060010195508861192f565b611ca3576040516368d2bf6b60e11b815260040160405180910390fd5b80821415611c3b578260005414611cb957600080fd5b611d04565b5b6040516001830192906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480821415611cbf575b50600055611793565b828054611d1990612350565b90600052602060002090601f016020900481019282611d3b5760008555611d81565b82601f10611d5457805160ff1916838001178555611d81565b82800160010185558215611d81579182015b82811115611d81578251825591602001919060010190611d66565b50611d8d929150611e05565b5090565b828054611d9d90612350565b90600052602060002090601f016020900481019282611dbf5760008555611d81565b82601f10611dd85782800160ff19823516178555611d81565b82800160010185558215611d81579182015b82811115611d81578235825591602001919060010190611dea565b5b80821115611d8d5760008155600101611e06565b600067ffffffffffffffff80841115611e3557611e356123fc565b604051601f8501601f19908116603f01168101908282118183101715611e5d57611e5d6123fc565b81604052809350858152868686011115611e7657600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b038116811461137157600080fd5b8035801515811461137157600080fd5b600060208284031215611ec957600080fd5b611ed282611e90565b9392505050565b60008060408385031215611eec57600080fd5b611ef583611e90565b9150611f0360208401611e90565b90509250929050565b600080600060608486031215611f2157600080fd5b611f2a84611e90565b9250611f3860208501611e90565b9150604084013590509250925092565b60008060008060808587031215611f5e57600080fd5b611f6785611e90565b9350611f7560208601611e90565b925060408501359150606085013567ffffffffffffffff811115611f9857600080fd5b8501601f81018713611fa957600080fd5b611fb887823560208401611e1a565b91505092959194509250565b60008060408385031215611fd757600080fd5b611fe083611e90565b9150611f0360208401611ea7565b6000806040838503121561200157600080fd5b61200a83611e90565b946020939093013593505050565b6000806040838503121561202b57600080fd5b61203483611e90565b915060208301356001600160601b038116811461205057600080fd5b809150509250929050565b60006020828403121561206d57600080fd5b611ed282611ea7565b60006020828403121561208857600080fd5b8135611ed281612412565b6000602082840312156120a557600080fd5b8151611ed281612412565b600080602083850312156120c357600080fd5b823567ffffffffffffffff808211156120db57600080fd5b818501915085601f8301126120ef57600080fd5b8135818111156120fe57600080fd5b86602082850101111561211057600080fd5b60209290920196919550909350505050565b60006020828403121561213457600080fd5b813567ffffffffffffffff81111561214b57600080fd5b8201601f8101841361215c57600080fd5b611a1f84823560208401611e1a565b60006020828403121561217d57600080fd5b5035919050565b60006020828403121561219657600080fd5b5051919050565b600080604083850312156121b057600080fd5b82359150611f0360208401611e90565b600080604083850312156121d357600080fd5b50508035926020909101359150565b600081518084526121fa816020860160208601612324565b601f01601f19169290920160200192915050565b60008351612220818460208801612324565b835190830190612234818360208801612324565b01949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612270908301846121e2565b9695505050505050565b602081526000611ed260208301846121e2565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600082198211156122d5576122d56123ba565b500190565b6000826122e9576122e96123d0565b500490565b6000816000190483118215151615612308576123086123ba565b500290565b60008282101561231f5761231f6123ba565b500390565b60005b8381101561233f578181015183820152602001612327565b838111156112445750506000910152565b600181811c9082168061236457607f821691505b6020821081141561238557634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561239f5761239f6123ba565b5060010190565b6000826123b5576123b56123d0565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461149357600080fdfea2646970667358221220364708d0675b4ed98531ef200f20138912073877fdc58466cfad3b821c5c2fa964736f6c63430008070033

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

0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000b415045414d45524943414e000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _hiddenMetadataUri (string): APEAMERICAN

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 000000000000000000000000000000000000000000000000000000000000000b
Arg [2] : 415045414d45524943414e000000000000000000000000000000000000000000


Deployed Bytecode Sourcemap

47599:4203:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;51614:183;;;;;;;;;;-1:-1:-1;51614:183:0;;;;;:::i;:::-;;:::i;:::-;;;8061:14:1;;8054:22;8036:41;;8024:2;8009:18;51614:183:0;;;;;;;;51151:220;;;;;;;;;;-1:-1:-1;51151:220:0;;;;;:::i;:::-;;:::i;:::-;;32879:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;34382:204::-;;;;;;;;;;-1:-1:-1;34382:204:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;7080:32:1;;;7062:51;;7050:2;7035:18;34382:204:0;6916:203:1;33945:371:0;;;;;;;;;;-1:-1:-1;33945:371:0;;;;;:::i;:::-;;:::i;47767:29::-;;;;;;;;;;;;;;;;;;;12385:25:1;;;12373:2;12358:18;47767:29:0;12239:177:1;50183:77:0;;;;;;;;;;-1:-1:-1;50183:77:0;;;;;:::i;:::-;;:::i;29015:303::-;;;;;;;;;;-1:-1:-1;49566:1:0;29269:12;29059:7;29253:13;:28;-1:-1:-1;;29253:46:0;29015:303;;35247:170;;;;;;;;;;-1:-1:-1;35247:170:0;;;;;:::i;:::-;;:::i;47837:29::-;;;;;;;;;;;;;;;;51377:231;;;;;;;;;;-1:-1:-1;51377:231:0;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;7809:32:1;;;7791:51;;7873:2;7858:18;;7851:34;;;;7764:18;51377:231:0;7617:274:1;50267:150:0;;;;;;;;;;;;;:::i;35488:185::-;;;;;;;;;;-1:-1:-1;35488:185:0;;;;;:::i;:::-;;:::i;49668:74::-;;;;;;;;;;-1:-1:-1;49668:74:0;;;;;:::i;:::-;;:::i;50451:132::-;;;;;;;;;;-1:-1:-1;50451:132:0;;;;;:::i;:::-;;:::i;47981:27::-;;;;;;;;;;-1:-1:-1;47981:27:0;;;;;;;;;;;50590:98;;;;;;;;;;-1:-1:-1;50590:98:0;;;;;:::i;:::-;;:::i;47950:26::-;;;;;;;;;;-1:-1:-1;47950:26:0;;;;;;;;32687:125;;;;;;;;;;-1:-1:-1;32687:125:0;;;;;:::i;:::-;;:::i;49886:94::-;;;;;;;;;;-1:-1:-1;49886:94:0;;;;;:::i;:::-;;:::i;30135:206::-;;;;;;;;;;-1:-1:-1;30135:206:0;;;;;:::i;:::-;;:::i;7524:103::-;;;;;;;;;;;;;:::i;6873:87::-;;;;;;;;;;-1:-1:-1;6946:6:0;;-1:-1:-1;;;;;6946:6:0;6873:87;;50090;;;;;;;;;;-1:-1:-1;50090:87:0;;;;;:::i;:::-;;:::i;47871:39::-;;;;;;;;;;;;;;;;33048:104;;;;;;;;;;;;;:::i;48301:1036::-;;;;;;:::i;:::-;;:::i;34658:287::-;;;;;;;;;;-1:-1:-1;34658:287:0;;;;;:::i;:::-;;:::i;47728:31::-;;;;;;;;;;;;;:::i;49749:130::-;;;;;;;;;;-1:-1:-1;49749:130:0;;;;;:::i;:::-;;:::i;47915:27::-;;;;;;;;;;;;;;;;35744:369;;;;;;;;;;-1:-1:-1;35744:369:0;;;;;:::i;:::-;;:::i;50812:318::-;;;;;;;;;;-1:-1:-1;50812:318:0;;;;;:::i;:::-;;:::i;47696:27::-;;;;;;;;;;;;;:::i;47801:31::-;;;;;;;;;;;;;;;;49580:81;;;;;;;;;;-1:-1:-1;49580:81:0;;;;;:::i;:::-;;:::i;35016:164::-;;;;;;;;;;-1:-1:-1;35016:164:0;;;;;:::i;:::-;-1:-1:-1;;;;;35137:25:0;;;35113:4;35137:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;35016:164;49344:127;;;;;;;;;;-1:-1:-1;49344:127:0;;;;;:::i;:::-;;:::i;7782:201::-;;;;;;;;;;-1:-1:-1;7782:201:0;;;;;:::i;:::-;;:::i;49986:98::-;;;;;;;;;;-1:-1:-1;49986:98:0;;;;;:::i;:::-;;:::i;51614:183::-;51708:4;-1:-1:-1;;;;;;;;;51728:25:0;;;;:65;;;51757:36;51781:11;51757:23;:36::i;:::-;51721:72;51614:183;-1:-1:-1;;51614:183:0:o;51151:220::-;6946:6;;-1:-1:-1;;;;;6946:6:0;5677:10;7093:23;7085:68;;;;-1:-1:-1;;;7085:68:0;;;;;;;:::i;:::-;;;;;;;;;51265:5:::1;51249:12;-1:-1:-1::0;;;;;51249:21:0::1;;;51241:50;;;::::0;-1:-1:-1;;;51241:50:0;;9270:2:1;51241:50:0::1;::::0;::::1;9252:21:1::0;9309:2;9289:18;;;9282:30;-1:-1:-1;;;9328:18:1;;;9321:46;9384:18;;51241:50:0::1;9068:340:1::0;51241:50:0::1;-1:-1:-1::0;;;;;51332:35:0::1;-1:-1:-1::0;;;51332:35:0::1;-1:-1:-1::0;;;;;51298:27:0;;::::1;51332:35;51298:16;51332:35:::0;51151:220::o;32879:100::-;32933:13;32966:5;32959:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32879:100;:::o;34382:204::-;34450:7;34475:16;34483:7;34475;:16::i;:::-;34470:64;;34500:34;;-1:-1:-1;;;34500:34:0;;;;;;;;;;;34470:64;-1:-1:-1;34554:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;34554:24:0;;34382:204::o;33945:371::-;34018:13;34034:24;34050:7;34034:15;:24::i;:::-;34018:40;;34079:5;-1:-1:-1;;;;;34073:11:0;:2;-1:-1:-1;;;;;34073:11:0;;34069:48;;;34093:24;;-1:-1:-1;;;34093:24:0;;;;;;;;;;;34069:48;5677:10;-1:-1:-1;;;;;34134:21:0;;;;;;:63;;-1:-1:-1;34160:37:0;34177:5;5677:10;35016:164;:::i;34160:37::-;34159:38;34134:63;34130:138;;;34221:35;;-1:-1:-1;;;34221:35:0;;;;;;;;;;;34130:138;34280:28;34289:2;34293:7;34302:5;34280:8;:28::i;:::-;34007:309;33945:371;;:::o;50183:77::-;6946:6;;-1:-1:-1;;;;;6946:6:0;5677:10;7093:23;7085:68;;;;-1:-1:-1;;;7085:68:0;;;;;;;:::i;:::-;50239:6:::1;:15:::0;;-1:-1:-1;;50239:15:0::1;::::0;::::1;;::::0;;;::::1;::::0;;50183:77::o;35247:170::-;35381:28;35391:4;35397:2;35401:7;35381:9;:28::i;51377:231::-;51528:20;;51465:7;;;;;;51552:5;;51515:33;;-1:-1:-1;;;51528:20:0;;-1:-1:-1;;;;;51528:20:0;51515:10;:33;:::i;:::-;51514:43;;;;:::i;:::-;51572:16;;-1:-1:-1;;;;;51572:16:0;;51490:67;;-1:-1:-1;51377:231:0;-1:-1:-1;;;;51377:231:0:o;50267:150::-;6946:6;;-1:-1:-1;;;;;6946:6:0;5677:10;7093:23;7085:68;;;;-1:-1:-1;;;7085:68:0;;;;;;;:::i;:::-;1847:1:::1;2445:7;;:19;;2437:63;;;::::0;-1:-1:-1;;;2437:63:0;;11031:2:1;2437:63:0::1;::::0;::::1;11013:21:1::0;11070:2;11050:18;;;11043:30;11109:33;11089:18;;;11082:61;11160:18;;2437:63:0::1;10829:355:1::0;2437:63:0::1;1847:1;2578:7;:18:::0;50325:7:::2;50346;6946:6:::0;;-1:-1:-1;;;;;6946:6:0;;6873:87;50346:7:::2;-1:-1:-1::0;;;;;50338:21:0::2;50367;50338:55;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;50324:69;;;50408:2;50400:11;;;::::0;::::2;;-1:-1:-1::0;1803:1:0::1;2757:7;:22:::0;50267:150::o;35488:185::-;35626:39;35643:4;35649:2;35653:7;35626:39;;;;;;;;;;;;:16;:39::i;49668:74::-;6946:6;;-1:-1:-1;;;;;6946:6:0;5677:10;7093:23;7085:68;;;;-1:-1:-1;;;7085:68:0;;;;;;;:::i;:::-;49724:4:::1;:12:::0;49668:74::o;50451:132::-;6946:6;;-1:-1:-1;;;;;6946:6:0;5677:10;7093:23;7085:68;;;;-1:-1:-1;;;7085:68:0;;;;;;;:::i;:::-;50539:38;;::::1;::::0;:17:::1;::::0;:38:::1;::::0;::::1;::::0;::::1;:::i;:::-;;50451:132:::0;:::o;50590:98::-;6946:6;;-1:-1:-1;;;;;6946:6:0;5677:10;7093:23;7085:68;;;;-1:-1:-1;;;7085:68:0;;;;;;;:::i;:::-;50659:23:::1;:13;50675:7:::0;;50659:23:::1;:::i;32687:125::-:0;32751:7;32778:21;32791:7;32778:12;:21::i;:::-;:26;;32687:125;-1:-1:-1;;32687:125:0:o;49886:94::-;6946:6;;-1:-1:-1;;;;;6946:6:0;5677:10;7093:23;7085:68;;;;-1:-1:-1;;;7085:68:0;;;;;;;:::i;:::-;49952:9:::1;:22:::0;49886:94::o;30135:206::-;30199:7;-1:-1:-1;;;;;30223:19:0;;30219:60;;30251:28;;-1:-1:-1;;;30251:28:0;;;;;;;;;;;30219:60;-1:-1:-1;;;;;;30305:19:0;;;;;:12;:19;;;;;:27;;;;30135:206::o;7524:103::-;6946:6;;-1:-1:-1;;;;;6946:6:0;5677:10;7093:23;7085:68;;;;-1:-1:-1;;;7085:68:0;;;;;;;:::i;:::-;7589:30:::1;7616:1;7589:18;:30::i;:::-;7524:103::o:0;50090:87::-;6946:6;;-1:-1:-1;;;;;6946:6:0;5677:10;7093:23;7085:68;;;;-1:-1:-1;;;7085:68:0;;;;;;;:::i;:::-;50152:8:::1;:19:::0;50090:87::o;33048:104::-;33104:13;33137:7;33130:14;;;;;:::i;48301:1036::-;1847:1;2445:7;;:19;;2437:63;;;;-1:-1:-1;;;2437:63:0;;11031:2:1;2437:63:0;;;11013:21:1;11070:2;11050:18;;;11043:30;11109:33;11089:18;;;11082:61;11160:18;;2437:63:0;10829:355:1;2437:63:0;1847:1;2578:7;:18;48379:9:::1;48392:10;48379:23;48371:61;;;::::0;-1:-1:-1;;;48371:61:0;;11391:2:1;48371:61:0::1;::::0;::::1;11373:21:1::0;11430:2;11410:18;;;11403:30;11469:27;11449:18;;;11442:55;11514:18;;48371:61:0::1;11189:349:1::0;48371:61:0::1;48461:1;48447:11;:15;:52;;;;;48481:18;;48466:11;:33;;48447:52;48439:85;;;::::0;-1:-1:-1;;;48439:85:0;;8921:2:1;48439:85:0::1;::::0;::::1;8903:21:1::0;8960:2;8940:18;;;8933:30;-1:-1:-1;;;8979:18:1;;;8972:50;9039:18;;48439:85:0::1;8719:344:1::0;48439:85:0::1;48570:9;::::0;49566:1;29269:12;29059:7;29253:13;48555:11;;29253:28;;-1:-1:-1;;29253:46:0;48539:27:::1;;;;:::i;:::-;:40;;48531:73;;;::::0;-1:-1:-1;;;48531:73:0;;10682:2:1;48531:73:0::1;::::0;::::1;10664:21:1::0;10721:2;10701:18;;;10694:30;-1:-1:-1;;;10740:18:1;;;10733:50;10800:18;;48531:73:0::1;10480:344:1::0;48531:73:0::1;48620:6;::::0;::::1;;48619:7;48611:43;;;::::0;-1:-1:-1;;;48611:43:0;;9976:2:1;48611:43:0::1;::::0;::::1;9958:21:1::0;10015:2;9995:18;;;9988:30;10054:25;10034:18;;;10027:53;10097:18;;48611:43:0::1;9774:347:1::0;48611:43:0::1;48735:8;::::0;48682:11;;48704:4:::1;:14;5677:10:::0;48704:28:::1;::::0;-1:-1:-1;;;;;;48704:28:0::1;::::0;;;;;;-1:-1:-1;;;;;7080:32:1;;;48704:28:0::1;::::0;::::1;7062:51:1::0;7035:18;;48704:28:0::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:39;48700:208;;;48773:8;;48759:12;:22;48755:146;;5677:10:::0;48822:22:::1;::::0;;;:8:::1;:22;::::0;;;;;48811:8:::1;::::0;:33:::1;::::0;48822:22;48811:33:::1;:::i;:::-;48797:47;::::0;;::::1;:::i;:::-;;;48755:146;;;-1:-1:-1::0;48888:1:0::1;48755:146;48942:12;48935:4;;:19;;;;:::i;:::-;48922:9;:32;;48914:64;;;::::0;-1:-1:-1;;;48914:64:0;;12093:2:1;48914:64:0::1;::::0;::::1;12075:21:1::0;12132:2;12112:18;;;12105:30;-1:-1:-1;;;12151:18:1;;;12144:49;12210:18;;48914:64:0::1;11891:343:1::0;48914:64:0::1;49008:10;::::0;49566:1;29269:12;29059:7;29253:13;:28;-1:-1:-1;;29253:46:0;48991:27:::1;48987:183;;49053:1;49041:9;:13;49033:51;;;::::0;-1:-1:-1;;;49033:51:0;;10328:2:1;49033:51:0::1;::::0;::::1;10310:21:1::0;10367:2;10347:18;;;10340:30;10406:27;10386:18;;;10379:55;10451:18;;49033:51:0::1;10126:349:1::0;49033:51:0::1;49125:11;49118:4;;:18;;;;:::i;:::-;49105:9;:31;;49097:63;;;::::0;-1:-1:-1;;;49097:63:0;;12093:2:1;49097:63:0::1;::::0;::::1;12075:21:1::0;12132:2;12112:18;;;12105:30;-1:-1:-1;;;12151:18:1;;;12144:49;12210:18;;49097:63:0::1;11891:343:1::0;49097:63:0::1;5677:10:::0;49176:22:::1;::::0;;;:8:::1;:22;::::0;;;;:35;;49200:11;;49176:22;:35:::1;::::0;49200:11;;49176:35:::1;:::i;:::-;::::0;;;-1:-1:-1;;49247:8:0::1;::::0;5677:10;49222:22:::1;::::0;;;:8:::1;:22;::::0;;;;;:33:::1;49218:70;;;49280:8;::::0;5677:10;49257:22:::1;::::0;;;:8:::1;:22;::::0;;;;:31;49218:70:::1;49295:36;5677:10:::0;49319:11:::1;49295:9;:36::i;:::-;-1:-1:-1::0;;1803:1:0;2757:7;:22;48301:1036::o;34658:287::-;-1:-1:-1;;;;;34757:24:0;;5677:10;34757:24;34753:54;;;34790:17;;-1:-1:-1;;;34790:17:0;;;;;;;;;;;34753:54;5677:10;34820:32;;;;:18;:32;;;;;;;;-1:-1:-1;;;;;34820:42:0;;;;;;;;;;;;:53;;-1:-1:-1;;34820:53:0;;;;;;;;;;34889:48;;8036:41:1;;;34820:42:0;;5677:10;34889:48;;8009:18:1;34889:48:0;;;;;;;34658:287;;:::o;47728:31::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;49749:130::-;6946:6;;-1:-1:-1;;;;;6946:6:0;5677:10;7093:23;7085:68;;;;-1:-1:-1;;;7085:68:0;;;;;;;:::i;:::-;49833:18:::1;:40:::0;49749:130::o;35744:369::-;35911:28;35921:4;35927:2;35931:7;35911:9;:28::i;:::-;-1:-1:-1;;;;;35954:13:0;;9869:19;:23;;35954:76;;;;;35974:56;36005:4;36011:2;36015:7;36024:5;35974:30;:56::i;:::-;35973:57;35954:76;35950:156;;;36054:40;;-1:-1:-1;;;36054:40:0;;;;;;;;;;;35950:156;35744:369;;;;:::o;50812:318::-;50886:13;50918:17;50926:8;50918:7;:17::i;:::-;50910:49;;;;-1:-1:-1;;;50910:49:0;;11745:2:1;50910:49:0;;;11727:21:1;11784:2;11764:18;;;11757:30;-1:-1:-1;;;11803:18:1;;;11796:49;11862:18;;50910:49:0;11543:343:1;50910:49:0;50975:8;;;;;;;50971:154;;;51029:10;:8;:10::i;:::-;51041:19;:8;:17;:19::i;:::-;51012:49;;;;;;;;;:::i;:::-;;;;;;;;;;;;;50998:64;;50812:318;;;:::o;50971:154::-;51098:17;51091:24;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;50812:318;;;:::o;50971:154::-;50812:318;;;:::o;47696:27::-;;;;;;;:::i;49580:81::-;6946:6;;-1:-1:-1;;;;;6946:6:0;5677:10;7093:23;7085:68;;;;-1:-1:-1;;;7085:68:0;;;;;;;:::i;:::-;49638:8:::1;:17:::0;;;::::1;;;;-1:-1:-1::0;;49638:17:0;;::::1;::::0;;;::::1;::::0;;49580:81::o;49344:127::-;6946:6;;-1:-1:-1;;;;;6946:6:0;5677:10;7093:23;7085:68;;;;-1:-1:-1;;;7085:68:0;;;;;;;:::i;:::-;49432:33:::1;49442:9;49453:11;49432:9;:33::i;7782:201::-:0;6946:6;;-1:-1:-1;;;;;6946:6:0;5677:10;7093:23;7085:68;;;;-1:-1:-1;;;7085:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;7871:22:0;::::1;7863:73;;;::::0;-1:-1:-1;;;7863:73:0;;8514:2:1;7863:73:0::1;::::0;::::1;8496:21:1::0;8553:2;8533:18;;;8526:30;8592:34;8572:18;;;8565:62;-1:-1:-1;;;8643:18:1;;;8636:36;8689:19;;7863:73:0::1;8312:402:1::0;7863:73:0::1;7947:28;7966:8;7947:18;:28::i;:::-;7782:201:::0;:::o;49986:98::-;6946:6;;-1:-1:-1;;;;;6946:6:0;5677:10;7093:23;7085:68;;;;-1:-1:-1;;;7085:68:0;;;;;;;:::i;:::-;50054:10:::1;:24:::0;49986:98::o;29766:305::-;29868:4;-1:-1:-1;;;;;;29905:40:0;;-1:-1:-1;;;29905:40:0;;:105;;-1:-1:-1;;;;;;;29962:48:0;;-1:-1:-1;;;29962:48:0;29905:105;:158;;;-1:-1:-1;;;;;;;;;;19766:40:0;;;30027:36;19657:157;36368:174;36425:4;36468:7;49566:1;36449:26;;:53;;;;;36489:13;;36479:7;:23;36449:53;:85;;;;-1:-1:-1;;36507:20:0;;;;:11;:20;;;;;:27;-1:-1:-1;;;36507:27:0;;;;36506:28;;36368:174::o;44525:196::-;44640:24;;;;:15;:24;;;;;;:29;;-1:-1:-1;;;;;;44640:29:0;-1:-1:-1;;;;;44640:29:0;;;;;;;;;44685:28;;44640:24;;44685:28;;;;;;;44525:196;;;:::o;39468:2130::-;39583:35;39621:21;39634:7;39621:12;:21::i;:::-;39583:59;;39681:4;-1:-1:-1;;;;;39659:26:0;:13;:18;;;-1:-1:-1;;;;;39659:26:0;;39655:67;;39694:28;;-1:-1:-1;;;39694:28:0;;;;;;;;;;;39655:67;39735:22;5677:10;-1:-1:-1;;;;;39761:20:0;;;;:73;;-1:-1:-1;39798:36:0;39815:4;5677:10;35016:164;:::i;39798:36::-;39761:126;;;-1:-1:-1;5677:10:0;39851:20;39863:7;39851:11;:20::i;:::-;-1:-1:-1;;;;;39851:36:0;;39761:126;39735:153;;39906:17;39901:66;;39932:35;;-1:-1:-1;;;39932:35:0;;;;;;;;;;;39901:66;-1:-1:-1;;;;;39982:16:0;;39978:52;;40007:23;;-1:-1:-1;;;40007:23:0;;;;;;;;;;;39978:52;40151:35;40168:1;40172:7;40181:4;40151:8;:35::i;:::-;-1:-1:-1;;;;;40482:18:0;;;;;;;:12;:18;;;;;;;;:31;;-1:-1:-1;;40482:31:0;;;;;;;-1:-1:-1;;40482:31:0;;;;;;;40528:16;;;;;;;;;:29;;;;;;;;-1:-1:-1;40528:29:0;;;;;;;;;;;40608:20;;;:11;:20;;;;;;40643:18;;-1:-1:-1;;;;;;40676:49:0;;;;-1:-1:-1;;;40709:15:0;40676:49;;;;;;;;;;40999:11;;41059:24;;;;;41102:13;;40608:20;;41059:24;;41102:13;41098:384;;41312:13;;41297:11;:28;41293:174;;41350:20;;41419:28;;;;41393:54;;-1:-1:-1;;;41393:54:0;-1:-1:-1;;;;;;41393:54:0;;;-1:-1:-1;;;;;41350:20:0;;41393:54;;;;41293:174;40457:1036;;;41529:7;41525:2;-1:-1:-1;;;;;41510:27:0;41519:4;-1:-1:-1;;;;;41510:27:0;;;;;;;;;;;41548:42;39572:2026;;39468:2130;;;:::o;31516:1109::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;31627:7:0;;49566:1;31676:23;;:47;;;;;31710:13;;31703:4;:20;31676:47;31672:886;;;31744:31;31778:17;;;:11;:17;;;;;;;;;31744:51;;;;;;;;;-1:-1:-1;;;;;31744:51:0;;;;-1:-1:-1;;;31744:51:0;;;;;;;;;;;-1:-1:-1;;;31744:51:0;;;;;;;;;;;;;;31814:729;;31864:14;;-1:-1:-1;;;;;31864:28:0;;31860:101;;31928:9;31516:1109;-1:-1:-1;;;31516:1109:0:o;31860:101::-;-1:-1:-1;;;32303:6:0;32348:17;;;;:11;:17;;;;;;;;;32336:29;;;;;;;;;-1:-1:-1;;;;;32336:29:0;;;;;-1:-1:-1;;;32336:29:0;;;;;;;;;;;-1:-1:-1;;;32336:29:0;;;;;;;;;;;;;32396:28;32392:109;;32464:9;31516:1109;-1:-1:-1;;;31516:1109:0:o;32392:109::-;32263:261;;;31725:833;31672:886;32586:31;;-1:-1:-1;;;32586:31:0;;;;;;;;;;;8143:191;8236:6;;;-1:-1:-1;;;;;8253:17:0;;;-1:-1:-1;;;;;;8253:17:0;;;;;;;8286:40;;8236:6;;;8253:17;8236:6;;8286:40;;8217:16;;8286:40;8206:128;8143:191;:::o;36550:104::-;36619:27;36629:2;36633:8;36619:27;;;;;;;;;;;;:9;:27::i;45213:667::-;45397:72;;-1:-1:-1;;;45397:72:0;;45376:4;;-1:-1:-1;;;;;45397:36:0;;;;;:72;;5677:10;;45448:4;;45454:7;;45463:5;;45397:72;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;45397:72:0;;;;;;;;-1:-1:-1;;45397:72:0;;;;;;;;;;;;:::i;:::-;;;45393:480;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;45631:13:0;;45627:235;;45677:40;;-1:-1:-1;;;45677:40:0;;;;;;;;;;;45627:235;45820:6;45814:13;45805:6;45801:2;45797:15;45790:38;45393:480;-1:-1:-1;;;;;;45516:55:0;-1:-1:-1;;;45516:55:0;;-1:-1:-1;45393:480:0;45213:667;;;;;;:::o;50695:110::-;50755:13;50786;50779:20;;;;;:::i;3159:723::-;3215:13;3436:10;3432:53;;-1:-1:-1;;3463:10:0;;;;;;;;;;;;-1:-1:-1;;;3463:10:0;;;;;3159:723::o;3432:53::-;3510:5;3495:12;3551:78;3558:9;;3551:78;;3584:8;;;;:::i;:::-;;-1:-1:-1;3607:10:0;;-1:-1:-1;3615:2:0;3607:10;;:::i;:::-;;;3551:78;;;3639:19;3671:6;3661:17;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;3661:17:0;;3639:39;;3689:154;3696:10;;3689:154;;3723:11;3733:1;3723:11;;:::i;:::-;;-1:-1:-1;3792:10:0;3800:2;3792:5;:10;:::i;:::-;3779:24;;:2;:24;:::i;:::-;3766:39;;3749:6;3756;3749:14;;;;;;;;:::i;:::-;;;;:56;-1:-1:-1;;;;;3749:56:0;;;;;;;;-1:-1:-1;3820:11:0;3829:2;3820:11;;:::i;:::-;;;3689:154;;37017:163;37140:32;37146:2;37150:8;37160:5;37167:4;37578:20;37601:13;-1:-1:-1;;;;;37629:16:0;;37625:48;;37654:19;;-1:-1:-1;;;37654:19:0;;;;;;;;;;;37625:48;37688:13;37684:44;;37710:18;;-1:-1:-1;;;37710:18:0;;;;;;;;;;;37684:44;-1:-1:-1;;;;;38079:16:0;;;;;;:12;:16;;;;;;;;:44;;-1:-1:-1;;38138:49:0;;38079:44;;;;;;;;38138:49;;;;-1:-1:-1;;38079:44:0;;;;;;38138:49;;;;;;;;;;;;;;;;38204:25;;;:11;:25;;;;;;:35;;-1:-1:-1;;;;;;38254:66:0;;;;-1:-1:-1;;;38304:15:0;38254:66;;;;;;;;;;38204:25;38401:23;;;38445:4;:23;;;;-1:-1:-1;;;;;;38453:13:0;;9869:19;:23;;38453:15;38441:641;;;38489:314;38520:38;;38545:12;;-1:-1:-1;;;;;38520:38:0;;;38537:1;;38520:38;;38537:1;;38520:38;38586:69;38625:1;38629:2;38633:14;;;;;;38649:5;38586:30;:69::i;:::-;38581:174;;38691:40;;-1:-1:-1;;;38691:40:0;;;;;;;;;;;38581:174;38798:3;38782:12;:19;;38489:314;;38884:12;38867:13;;:29;38863:43;;38898:8;;;38863:43;38441:641;;;38947:120;38978:40;;39003:14;;;;;-1:-1:-1;;;;;38978:40:0;;;38995:1;;38978:40;;38995:1;;38978:40;39062:3;39046:12;:19;;38947:120;;38441:641;-1:-1:-1;39096:13:0;:28;39146:60;35744:369;-1:-1:-1;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14:631:1;78:5;108:18;149:2;141:6;138:14;135:40;;;155:18;;:::i;:::-;230:2;224:9;198:2;284:15;;-1:-1:-1;;280:24:1;;;306:2;276:33;272:42;260:55;;;330:18;;;350:22;;;327:46;324:72;;;376:18;;:::i;:::-;416:10;412:2;405:22;445:6;436:15;;475:6;467;460:22;515:3;506:6;501:3;497:16;494:25;491:45;;;532:1;529;522:12;491:45;582:6;577:3;570:4;562:6;558:17;545:44;637:1;630:4;621:6;613;609:19;605:30;598:41;;;;14:631;;;;;:::o;650:173::-;718:20;;-1:-1:-1;;;;;767:31:1;;757:42;;747:70;;813:1;810;803:12;828:160;893:20;;949:13;;942:21;932:32;;922:60;;978:1;975;968:12;993:186;1052:6;1105:2;1093:9;1084:7;1080:23;1076:32;1073:52;;;1121:1;1118;1111:12;1073:52;1144:29;1163:9;1144:29;:::i;:::-;1134:39;993:186;-1:-1:-1;;;993:186:1:o;1184:260::-;1252:6;1260;1313:2;1301:9;1292:7;1288:23;1284:32;1281:52;;;1329:1;1326;1319:12;1281:52;1352:29;1371:9;1352:29;:::i;:::-;1342:39;;1400:38;1434:2;1423:9;1419:18;1400:38;:::i;:::-;1390:48;;1184:260;;;;;:::o;1449:328::-;1526:6;1534;1542;1595:2;1583:9;1574:7;1570:23;1566:32;1563:52;;;1611:1;1608;1601:12;1563:52;1634:29;1653:9;1634:29;:::i;:::-;1624:39;;1682:38;1716:2;1705:9;1701:18;1682:38;:::i;:::-;1672:48;;1767:2;1756:9;1752:18;1739:32;1729:42;;1449:328;;;;;:::o;1782:666::-;1877:6;1885;1893;1901;1954:3;1942:9;1933:7;1929:23;1925:33;1922:53;;;1971:1;1968;1961:12;1922:53;1994:29;2013:9;1994:29;:::i;:::-;1984:39;;2042:38;2076:2;2065:9;2061:18;2042:38;:::i;:::-;2032:48;;2127:2;2116:9;2112:18;2099:32;2089:42;;2182:2;2171:9;2167:18;2154:32;2209:18;2201:6;2198:30;2195:50;;;2241:1;2238;2231:12;2195:50;2264:22;;2317:4;2309:13;;2305:27;-1:-1:-1;2295:55:1;;2346:1;2343;2336:12;2295:55;2369:73;2434:7;2429:2;2416:16;2411:2;2407;2403:11;2369:73;:::i;:::-;2359:83;;;1782:666;;;;;;;:::o;2453:254::-;2518:6;2526;2579:2;2567:9;2558:7;2554:23;2550:32;2547:52;;;2595:1;2592;2585:12;2547:52;2618:29;2637:9;2618:29;:::i;:::-;2608:39;;2666:35;2697:2;2686:9;2682:18;2666:35;:::i;2712:254::-;2780:6;2788;2841:2;2829:9;2820:7;2816:23;2812:32;2809:52;;;2857:1;2854;2847:12;2809:52;2880:29;2899:9;2880:29;:::i;:::-;2870:39;2956:2;2941:18;;;;2928:32;;-1:-1:-1;;;2712:254:1:o;2971:366::-;3038:6;3046;3099:2;3087:9;3078:7;3074:23;3070:32;3067:52;;;3115:1;3112;3105:12;3067:52;3138:29;3157:9;3138:29;:::i;:::-;3128:39;;3217:2;3206:9;3202:18;3189:32;-1:-1:-1;;;;;3254:5:1;3250:38;3243:5;3240:49;3230:77;;3303:1;3300;3293:12;3230:77;3326:5;3316:15;;;2971:366;;;;;:::o;3342:180::-;3398:6;3451:2;3439:9;3430:7;3426:23;3422:32;3419:52;;;3467:1;3464;3457:12;3419:52;3490:26;3506:9;3490:26;:::i;3527:245::-;3585:6;3638:2;3626:9;3617:7;3613:23;3609:32;3606:52;;;3654:1;3651;3644:12;3606:52;3693:9;3680:23;3712:30;3736:5;3712:30;:::i;3777:249::-;3846:6;3899:2;3887:9;3878:7;3874:23;3870:32;3867:52;;;3915:1;3912;3905:12;3867:52;3947:9;3941:16;3966:30;3990:5;3966:30;:::i;4031:592::-;4102:6;4110;4163:2;4151:9;4142:7;4138:23;4134:32;4131:52;;;4179:1;4176;4169:12;4131:52;4219:9;4206:23;4248:18;4289:2;4281:6;4278:14;4275:34;;;4305:1;4302;4295:12;4275:34;4343:6;4332:9;4328:22;4318:32;;4388:7;4381:4;4377:2;4373:13;4369:27;4359:55;;4410:1;4407;4400:12;4359:55;4450:2;4437:16;4476:2;4468:6;4465:14;4462:34;;;4492:1;4489;4482:12;4462:34;4537:7;4532:2;4523:6;4519:2;4515:15;4511:24;4508:37;4505:57;;;4558:1;4555;4548:12;4505:57;4589:2;4581:11;;;;;4611:6;;-1:-1:-1;4031:592:1;;-1:-1:-1;;;;4031:592:1:o;4628:450::-;4697:6;4750:2;4738:9;4729:7;4725:23;4721:32;4718:52;;;4766:1;4763;4756:12;4718:52;4806:9;4793:23;4839:18;4831:6;4828:30;4825:50;;;4871:1;4868;4861:12;4825:50;4894:22;;4947:4;4939:13;;4935:27;-1:-1:-1;4925:55:1;;4976:1;4973;4966:12;4925:55;4999:73;5064:7;5059:2;5046:16;5041:2;5037;5033:11;4999:73;:::i;5083:180::-;5142:6;5195:2;5183:9;5174:7;5170:23;5166:32;5163:52;;;5211:1;5208;5201:12;5163:52;-1:-1:-1;5234:23:1;;5083:180;-1:-1:-1;5083:180:1:o;5268:184::-;5338:6;5391:2;5379:9;5370:7;5366:23;5362:32;5359:52;;;5407:1;5404;5397:12;5359:52;-1:-1:-1;5430:16:1;;5268:184;-1:-1:-1;5268:184:1:o;5457:254::-;5525:6;5533;5586:2;5574:9;5565:7;5561:23;5557:32;5554:52;;;5602:1;5599;5592:12;5554:52;5638:9;5625:23;5615:33;;5667:38;5701:2;5690:9;5686:18;5667:38;:::i;5716:248::-;5784:6;5792;5845:2;5833:9;5824:7;5820:23;5816:32;5813:52;;;5861:1;5858;5851:12;5813:52;-1:-1:-1;;5884:23:1;;;5954:2;5939:18;;;5926:32;;-1:-1:-1;5716:248:1:o;5969:257::-;6010:3;6048:5;6042:12;6075:6;6070:3;6063:19;6091:63;6147:6;6140:4;6135:3;6131:14;6124:4;6117:5;6113:16;6091:63;:::i;:::-;6208:2;6187:15;-1:-1:-1;;6183:29:1;6174:39;;;;6215:4;6170:50;;5969:257;-1:-1:-1;;5969:257:1:o;6231:470::-;6410:3;6448:6;6442:13;6464:53;6510:6;6505:3;6498:4;6490:6;6486:17;6464:53;:::i;:::-;6580:13;;6539:16;;;;6602:57;6580:13;6539:16;6636:4;6624:17;;6602:57;:::i;:::-;6675:20;;6231:470;-1:-1:-1;;;;6231:470:1:o;7124:488::-;-1:-1:-1;;;;;7393:15:1;;;7375:34;;7445:15;;7440:2;7425:18;;7418:43;7492:2;7477:18;;7470:34;;;7540:3;7535:2;7520:18;;7513:31;;;7318:4;;7561:45;;7586:19;;7578:6;7561:45;:::i;:::-;7553:53;7124:488;-1:-1:-1;;;;;;7124:488:1:o;8088:219::-;8237:2;8226:9;8219:21;8200:4;8257:44;8297:2;8286:9;8282:18;8274:6;8257:44;:::i;9413:356::-;9615:2;9597:21;;;9634:18;;;9627:30;9693:34;9688:2;9673:18;;9666:62;9760:2;9745:18;;9413:356::o;12421:128::-;12461:3;12492:1;12488:6;12485:1;12482:13;12479:39;;;12498:18;;:::i;:::-;-1:-1:-1;12534:9:1;;12421:128::o;12554:120::-;12594:1;12620;12610:35;;12625:18;;:::i;:::-;-1:-1:-1;12659:9:1;;12554:120::o;12679:168::-;12719:7;12785:1;12781;12777:6;12773:14;12770:1;12767:21;12762:1;12755:9;12748:17;12744:45;12741:71;;;12792:18;;:::i;:::-;-1:-1:-1;12832:9:1;;12679:168::o;12852:125::-;12892:4;12920:1;12917;12914:8;12911:34;;;12925:18;;:::i;:::-;-1:-1:-1;12962:9:1;;12852:125::o;12982:258::-;13054:1;13064:113;13078:6;13075:1;13072:13;13064:113;;;13154:11;;;13148:18;13135:11;;;13128:39;13100:2;13093:10;13064:113;;;13195:6;13192:1;13189:13;13186:48;;;-1:-1:-1;;13230:1:1;13212:16;;13205:27;12982:258::o;13245:380::-;13324:1;13320:12;;;;13367;;;13388:61;;13442:4;13434:6;13430:17;13420:27;;13388:61;13495:2;13487:6;13484:14;13464:18;13461:38;13458:161;;;13541:10;13536:3;13532:20;13529:1;13522:31;13576:4;13573:1;13566:15;13604:4;13601:1;13594:15;13458:161;;13245:380;;;:::o;13630:135::-;13669:3;-1:-1:-1;;13690:17:1;;13687:43;;;13710:18;;:::i;:::-;-1:-1:-1;13757:1:1;13746:13;;13630:135::o;13770:112::-;13802:1;13828;13818:35;;13833:18;;:::i;:::-;-1:-1:-1;13867:9:1;;13770:112::o;13887:127::-;13948:10;13943:3;13939:20;13936:1;13929:31;13979:4;13976:1;13969:15;14003:4;14000:1;13993:15;14019:127;14080:10;14075:3;14071:20;14068:1;14061:31;14111:4;14108:1;14101:15;14135:4;14132:1;14125:15;14151:127;14212:10;14207:3;14203:20;14200:1;14193:31;14243:4;14240:1;14233:15;14267:4;14264:1;14257:15;14283:127;14344:10;14339:3;14335:20;14332:1;14325:31;14375:4;14372:1;14365:15;14399:4;14396:1;14389:15;14415:131;-1:-1:-1;;;;;;14489:32:1;;14479:43;;14469:71;;14536:1;14533;14526:12

Swarm Source

ipfs://364708d0675b4ed98531ef200f20138912073877fdc58466cfad3b821c5c2fa9

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
[ 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.