ETH Price: $3,465.41 (-0.13%)
Gas: 2 Gwei

Token

ApeRacingAcademy NFTs (ARANFTs)
 

Overview

Max Total Supply

0 ARANFTs

Holders

64

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
oxoo1.eth
Balance
7 ARANFTs
0x75A721fF9f25FF87986A2B8BdFa4AFa93b4a4457
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
ARA

Compiler Version
v0.8.6+commit.11564f7e

Optimization Enabled:
Yes with 1000000 runs

Other Settings:
default evmVersion, MIT license
File 1 of 19 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../utils/Context.sol";

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

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

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

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

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

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

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

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 2 of 19 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 3 of 19 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

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

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

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

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

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

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

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

File 4 of 19 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 5 of 19 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

File 6 of 19 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @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 7 of 19 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

File 8 of 19 : Counters.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

File 9 of 19 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

File 10 of 19 : ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 11 of 19 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

File 12 of 19 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 13 of 19 : Contract.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Counters.sol";

import "./ERC721Tradable.sol";

/**
 * @title ARA NFTs
 * Base contract to create and distribute rewards to the ARA community
 */
contract ARA is ERC721Tradable {
    using Address for address;
    using Counters for Counters.Counter;

    // ============================== Variables ===================================
    address ownerAddress;

    // Count of tokenID
    Counters.Counter private tokenIdCount;

    // Metadata setter and locker
    string private metadataTokenURI;
    bool private lock;

    // ============================== Constants ===================================
    /// @notice Price to mint the NFTs
    uint256 public constant price = 4e16;

    /// @notice Max tokens supply for this contract
    uint256 public constant maxSupply = 10000;

    /// @notice Max tokens per transactions
    uint256 public constant maxPerTx = 20;

    /// @notice Max number of tokens available during first round
    uint256 public constant roundOneSupply = 1000;

    /// @notice Max number of tokens available during second round
    uint256 public constant roundTwoSupply = 4000;

    /// @notice End of Sale period (in Unix second)
    uint256 public mintEndDate = 1643486400;    

    // ============================== Constructor ===================================

    /// @notice Constructor of the NFT contract
    /// Takes as argument the OpenSea contract to manage sells
    constructor(address _proxyRegistryAddress)
        ERC721Tradable("ApeRacingAcademy NFTs", "ARANFTs", _proxyRegistryAddress)
    {
        metadataTokenURI = "https://aperacingacademy-metadata.herokuapp.com/metadata/";

        lock = false;        

        address[321] memory owners = [
            0x97b2E43Ede1a70869c51c95e6b7DACF2b4f9EaE5,
            0xf4b20EE9FC63AC1a23B6576fAe3aEbA0eCAcaFb5,
            0xf4b20EE9FC63AC1a23B6576fAe3aEbA0eCAcaFb5,
            0xf4b20EE9FC63AC1a23B6576fAe3aEbA0eCAcaFb5,
            0xf4b20EE9FC63AC1a23B6576fAe3aEbA0eCAcaFb5,
            0xa684CfC51bf2d794cf197c35f3377F117BF10b6f,
            0xa684CfC51bf2d794cf197c35f3377F117BF10b6f,
            0xa684CfC51bf2d794cf197c35f3377F117BF10b6f,
            0xa684CfC51bf2d794cf197c35f3377F117BF10b6f,
            0xa684CfC51bf2d794cf197c35f3377F117BF10b6f,
            0xa684CfC51bf2d794cf197c35f3377F117BF10b6f,
            0xa684CfC51bf2d794cf197c35f3377F117BF10b6f,
            0xa684CfC51bf2d794cf197c35f3377F117BF10b6f,
            0xa684CfC51bf2d794cf197c35f3377F117BF10b6f,
            0x9CD368D315e7c5A16Ee27f558937aa236b4aA509,
            0x9CD368D315e7c5A16Ee27f558937aa236b4aA509,
            0x9CD368D315e7c5A16Ee27f558937aa236b4aA509,
            0x9CD368D315e7c5A16Ee27f558937aa236b4aA509,
            0x9CD368D315e7c5A16Ee27f558937aa236b4aA509,
            0x9CD368D315e7c5A16Ee27f558937aa236b4aA509,
            0x97b2E43Ede1a70869c51c95e6b7DACF2b4f9EaE5,
            0xB6722ac207E297DDfa22efb8CF2308c949DB9491,
            0xB6722ac207E297DDfa22efb8CF2308c949DB9491,
            0xB6722ac207E297DDfa22efb8CF2308c949DB9491,
            0xB6722ac207E297DDfa22efb8CF2308c949DB9491,
            0xB6722ac207E297DDfa22efb8CF2308c949DB9491,
            0xB6722ac207E297DDfa22efb8CF2308c949DB9491,
            0xB6722ac207E297DDfa22efb8CF2308c949DB9491,
            0xB6722ac207E297DDfa22efb8CF2308c949DB9491,
            0xB6722ac207E297DDfa22efb8CF2308c949DB9491,
            0xB6722ac207E297DDfa22efb8CF2308c949DB9491,
            0xB6722ac207E297DDfa22efb8CF2308c949DB9491,
            0xB6722ac207E297DDfa22efb8CF2308c949DB9491,
            0xB6722ac207E297DDfa22efb8CF2308c949DB9491,
            0xB6722ac207E297DDfa22efb8CF2308c949DB9491,
            0xB6722ac207E297DDfa22efb8CF2308c949DB9491,
            0xB6722ac207E297DDfa22efb8CF2308c949DB9491,
            0xB6722ac207E297DDfa22efb8CF2308c949DB9491,
            0xB6722ac207E297DDfa22efb8CF2308c949DB9491,
            0xB6722ac207E297DDfa22efb8CF2308c949DB9491,
            0xB6722ac207E297DDfa22efb8CF2308c949DB9491,
            0xB6722ac207E297DDfa22efb8CF2308c949DB9491,
            0xB6722ac207E297DDfa22efb8CF2308c949DB9491,
            0xB6722ac207E297DDfa22efb8CF2308c949DB9491,
            0xB6722ac207E297DDfa22efb8CF2308c949DB9491,
            0xB6722ac207E297DDfa22efb8CF2308c949DB9491,
            0xB6722ac207E297DDfa22efb8CF2308c949DB9491,
            0xB6722ac207E297DDfa22efb8CF2308c949DB9491,
            0xB6722ac207E297DDfa22efb8CF2308c949DB9491,
            0xB6722ac207E297DDfa22efb8CF2308c949DB9491,
            0xB6722ac207E297DDfa22efb8CF2308c949DB9491,
            0xF13abD73FbB95effA1064E81951cE8E8b9f85e4E,
            0xF13abD73FbB95effA1064E81951cE8E8b9f85e4E,
            0xF13abD73FbB95effA1064E81951cE8E8b9f85e4E,
            0xF13abD73FbB95effA1064E81951cE8E8b9f85e4E,
            0xF13abD73FbB95effA1064E81951cE8E8b9f85e4E,
            0xF13abD73FbB95effA1064E81951cE8E8b9f85e4E,
            0xF13abD73FbB95effA1064E81951cE8E8b9f85e4E,
            0xF13abD73FbB95effA1064E81951cE8E8b9f85e4E,
            0xF13abD73FbB95effA1064E81951cE8E8b9f85e4E,
            0xF13abD73FbB95effA1064E81951cE8E8b9f85e4E,
            0xF13abD73FbB95effA1064E81951cE8E8b9f85e4E,
            0xF13abD73FbB95effA1064E81951cE8E8b9f85e4E,
            0xF13abD73FbB95effA1064E81951cE8E8b9f85e4E,
            0xF13abD73FbB95effA1064E81951cE8E8b9f85e4E,
            0xF13abD73FbB95effA1064E81951cE8E8b9f85e4E,
            0xF13abD73FbB95effA1064E81951cE8E8b9f85e4E,
            0xF13abD73FbB95effA1064E81951cE8E8b9f85e4E,
            0xF13abD73FbB95effA1064E81951cE8E8b9f85e4E,
            0xF13abD73FbB95effA1064E81951cE8E8b9f85e4E,
            0xF13abD73FbB95effA1064E81951cE8E8b9f85e4E,
            0xF13abD73FbB95effA1064E81951cE8E8b9f85e4E,
            0xF13abD73FbB95effA1064E81951cE8E8b9f85e4E,
            0xF13abD73FbB95effA1064E81951cE8E8b9f85e4E,
            0xF13abD73FbB95effA1064E81951cE8E8b9f85e4E,
            0xF13abD73FbB95effA1064E81951cE8E8b9f85e4E,
            0xF13abD73FbB95effA1064E81951cE8E8b9f85e4E,
            0xF13abD73FbB95effA1064E81951cE8E8b9f85e4E,
            0xF13abD73FbB95effA1064E81951cE8E8b9f85e4E,
            0xF13abD73FbB95effA1064E81951cE8E8b9f85e4E,
            0xF13abD73FbB95effA1064E81951cE8E8b9f85e4E,
            0x97b2E43Ede1a70869c51c95e6b7DACF2b4f9EaE5,
            0x97b2E43Ede1a70869c51c95e6b7DACF2b4f9EaE5,
            0x97b2E43Ede1a70869c51c95e6b7DACF2b4f9EaE5,
            0x97b2E43Ede1a70869c51c95e6b7DACF2b4f9EaE5,
            0x97b2E43Ede1a70869c51c95e6b7DACF2b4f9EaE5,
            0x97b2E43Ede1a70869c51c95e6b7DACF2b4f9EaE5,
            0x97b2E43Ede1a70869c51c95e6b7DACF2b4f9EaE5,
            0x326f54A215957F3DF5BC543384E84a7e6D97c854,
            0x326f54A215957F3DF5BC543384E84a7e6D97c854,
            0x326f54A215957F3DF5BC543384E84a7e6D97c854,
            0x715016a375285913D4B900ba616FDeE2B84adc67,
            0x715016a375285913D4B900ba616FDeE2B84adc67,
            0x715016a375285913D4B900ba616FDeE2B84adc67,
            0x89b3d1732848F06311794764977227fb1DE3E9e0,
            0x89b3d1732848F06311794764977227fb1DE3E9e0,
            0x89b3d1732848F06311794764977227fb1DE3E9e0,
            0xF9C1e03c61BEaE7A2059371E503cBBb358983662,
            0xF9C1e03c61BEaE7A2059371E503cBBb358983662,
            0xF9C1e03c61BEaE7A2059371E503cBBb358983662,
            0xF9C1e03c61BEaE7A2059371E503cBBb358983662,
            0xF9C1e03c61BEaE7A2059371E503cBBb358983662,
            0xF9C1e03c61BEaE7A2059371E503cBBb358983662,
            0xF9C1e03c61BEaE7A2059371E503cBBb358983662,
            0xF9C1e03c61BEaE7A2059371E503cBBb358983662,
            0xF9C1e03c61BEaE7A2059371E503cBBb358983662,
            0xF9C1e03c61BEaE7A2059371E503cBBb358983662,
            0xF9C1e03c61BEaE7A2059371E503cBBb358983662,
            0xF9C1e03c61BEaE7A2059371E503cBBb358983662,
            0xF9C1e03c61BEaE7A2059371E503cBBb358983662,
            0xF9C1e03c61BEaE7A2059371E503cBBb358983662,
            0xF9C1e03c61BEaE7A2059371E503cBBb358983662,
            0x8195fCB431ec1c21Fa88AfB4523590eD5a843C0f,
            0x1531D777f2fd79C43962f7d7d7DeA43dFa1F1f82,
            0x8DDFD27233772D507cACd8CC6104339f835810eA,
            0x4e1686BEdCF7B4f21B40a032cf6E7aFBbFaD947B,
            0xfAfd2cAf198738955759b1F8796b028362788218,
            0xfAfd2cAf198738955759b1F8796b028362788218,
            0xfAfd2cAf198738955759b1F8796b028362788218,
            0x34b053eF850f952c08bB2b35aD2efe6aF65905c4,
            0xc220245C3c6daf514059899d9abbEc8C3f5F6b45,
            0xc220245C3c6daf514059899d9abbEc8C3f5F6b45,
            0xc220245C3c6daf514059899d9abbEc8C3f5F6b45,
            0xF9C1e03c61BEaE7A2059371E503cBBb358983662,
            0xa6713D4BDD10455F326C00d70422eBD03ee99f8a,
            0xa6713D4BDD10455F326C00d70422eBD03ee99f8a,
            0xa6713D4BDD10455F326C00d70422eBD03ee99f8a,
            0xa6713D4BDD10455F326C00d70422eBD03ee99f8a,
            0xa6713D4BDD10455F326C00d70422eBD03ee99f8a,
            0xa6713D4BDD10455F326C00d70422eBD03ee99f8a,
            0xa6713D4BDD10455F326C00d70422eBD03ee99f8a,
            0xa6713D4BDD10455F326C00d70422eBD03ee99f8a,
            0xa6713D4BDD10455F326C00d70422eBD03ee99f8a,
            0xF66F1663A2d8059b9C4d1D5260d7d2E5d7fEBD69,
            0xF66F1663A2d8059b9C4d1D5260d7d2E5d7fEBD69,
            0xF66F1663A2d8059b9C4d1D5260d7d2E5d7fEBD69,
            0xF66F1663A2d8059b9C4d1D5260d7d2E5d7fEBD69,
            0xF66F1663A2d8059b9C4d1D5260d7d2E5d7fEBD69,
            0xF66F1663A2d8059b9C4d1D5260d7d2E5d7fEBD69,
            0xF66F1663A2d8059b9C4d1D5260d7d2E5d7fEBD69,
            0xF66F1663A2d8059b9C4d1D5260d7d2E5d7fEBD69,
            0xF66F1663A2d8059b9C4d1D5260d7d2E5d7fEBD69,
            0xF66F1663A2d8059b9C4d1D5260d7d2E5d7fEBD69,
            0xF66F1663A2d8059b9C4d1D5260d7d2E5d7fEBD69,
            0xF66F1663A2d8059b9C4d1D5260d7d2E5d7fEBD69,
            0xF66F1663A2d8059b9C4d1D5260d7d2E5d7fEBD69,
            0xF66F1663A2d8059b9C4d1D5260d7d2E5d7fEBD69,
            0xF66F1663A2d8059b9C4d1D5260d7d2E5d7fEBD69,
            0x93107B05Ff39f13386eB5914DB1C89AA50a9686F,
            0x7ddBaeFa8c2B776D8D824e8e9E55423710A3A331,
            0xF66F1663A2d8059b9C4d1D5260d7d2E5d7fEBD69,
            0xF66F1663A2d8059b9C4d1D5260d7d2E5d7fEBD69,
            0xF66F1663A2d8059b9C4d1D5260d7d2E5d7fEBD69,
            0xF66F1663A2d8059b9C4d1D5260d7d2E5d7fEBD69,
            0xF66F1663A2d8059b9C4d1D5260d7d2E5d7fEBD69,
            0xF66F1663A2d8059b9C4d1D5260d7d2E5d7fEBD69,
            0xF66F1663A2d8059b9C4d1D5260d7d2E5d7fEBD69,
            0xd84d2c87117f63200733B17fC4059184FFCE8bDD,
            0xc5516E6A36E4b04c08058b5b15e52Afb0449D839,
            0x8Db37586B2CA5dBB973880d742CDEAF230C95F6b,
            0x1B01946011B570016a1E3DfC158C6E6D831b662F,
            0x1B01946011B570016a1E3DfC158C6E6D831b662F,
            0x1B01946011B570016a1E3DfC158C6E6D831b662F,
            0x678e9f801b8b36f940578cc69D704Cd2b36Ea93a,
            0x678e9f801b8b36f940578cc69D704Cd2b36Ea93a,
            0x678e9f801b8b36f940578cc69D704Cd2b36Ea93a,
            0x678e9f801b8b36f940578cc69D704Cd2b36Ea93a,
            0x678e9f801b8b36f940578cc69D704Cd2b36Ea93a,
            0x678e9f801b8b36f940578cc69D704Cd2b36Ea93a,
            0x678e9f801b8b36f940578cc69D704Cd2b36Ea93a,
            0x210Fa5a3360E7a1196115CCa19DE877c9F1176cD,
            0xCbD6f15627ec214334e7A2B549261B3eed1B276D,
            0x210Fa5a3360E7a1196115CCa19DE877c9F1176cD,
            0x210Fa5a3360E7a1196115CCa19DE877c9F1176cD,
            0x210Fa5a3360E7a1196115CCa19DE877c9F1176cD,
            0x210Fa5a3360E7a1196115CCa19DE877c9F1176cD,
            0xf4b20EE9FC63AC1a23B6576fAe3aEbA0eCAcaFb5,
            0xf4b20EE9FC63AC1a23B6576fAe3aEbA0eCAcaFb5,
            0xf4b20EE9FC63AC1a23B6576fAe3aEbA0eCAcaFb5,
            0xf4b20EE9FC63AC1a23B6576fAe3aEbA0eCAcaFb5,
            0xf4b20EE9FC63AC1a23B6576fAe3aEbA0eCAcaFb5,
            0xf4b20EE9FC63AC1a23B6576fAe3aEbA0eCAcaFb5,
            0xf4b20EE9FC63AC1a23B6576fAe3aEbA0eCAcaFb5,
            0xb8bc7c5d14Fecb0b38966588D9DC042e3540b323,
            0xa6713D4BDD10455F326C00d70422eBD03ee99f8a,
            0xa6713D4BDD10455F326C00d70422eBD03ee99f8a,
            0xa6713D4BDD10455F326C00d70422eBD03ee99f8a,
            0xa6713D4BDD10455F326C00d70422eBD03ee99f8a,
            0xa6713D4BDD10455F326C00d70422eBD03ee99f8a,
            0xa6713D4BDD10455F326C00d70422eBD03ee99f8a,
            0xa6713D4BDD10455F326C00d70422eBD03ee99f8a,
            0xa6713D4BDD10455F326C00d70422eBD03ee99f8a,
            0xa6713D4BDD10455F326C00d70422eBD03ee99f8a,
            0xa6713D4BDD10455F326C00d70422eBD03ee99f8a,
            0xa6713D4BDD10455F326C00d70422eBD03ee99f8a,
            0xa6713D4BDD10455F326C00d70422eBD03ee99f8a,
            0xB1a149b2741F97Ea1d18e95b7C01500ED9FEc28b,
            0xF2BAB210FFF4a51B135eef656888195ea4fE2658,
            0x27Bd30CAA43632079c2eF59FD418A019CAd82576,
            0x27Bd30CAA43632079c2eF59FD418A019CAd82576,
            0x27Bd30CAA43632079c2eF59FD418A019CAd82576,
            0xAd565B3B1713bc9F99297F7654522bd3f109603F,
            0xAd565B3B1713bc9F99297F7654522bd3f109603F,
            0xAd565B3B1713bc9F99297F7654522bd3f109603F,
            0x8053a1E8522659c7f06D97B2E3732C79FB3A8E84,
            0x8053a1E8522659c7f06D97B2E3732C79FB3A8E84,
            0x8053a1E8522659c7f06D97B2E3732C79FB3A8E84,
            0xF9C1e03c61BEaE7A2059371E503cBBb358983662,
            0xF9C1e03c61BEaE7A2059371E503cBBb358983662,
            0xF9C1e03c61BEaE7A2059371E503cBBb358983662,
            0xF9C1e03c61BEaE7A2059371E503cBBb358983662,
            0xF9C1e03c61BEaE7A2059371E503cBBb358983662,
            0xF9C1e03c61BEaE7A2059371E503cBBb358983662,
            0xD8AEcA57968cd97D8f622950C36Ae04d86D735C2,
            0xf4b20EE9FC63AC1a23B6576fAe3aEbA0eCAcaFb5,
            0xf4b20EE9FC63AC1a23B6576fAe3aEbA0eCAcaFb5,
            0xf4b20EE9FC63AC1a23B6576fAe3aEbA0eCAcaFb5,
            0xf4b20EE9FC63AC1a23B6576fAe3aEbA0eCAcaFb5,
            0xf4b20EE9FC63AC1a23B6576fAe3aEbA0eCAcaFb5,
            0xf4b20EE9FC63AC1a23B6576fAe3aEbA0eCAcaFb5,
            0x639E25c229Ee7a272f3aAC41dBfADB4ae0382651,
            0x639E25c229Ee7a272f3aAC41dBfADB4ae0382651,
            0x639E25c229Ee7a272f3aAC41dBfADB4ae0382651,
            0x639E25c229Ee7a272f3aAC41dBfADB4ae0382651,
            0x639E25c229Ee7a272f3aAC41dBfADB4ae0382651,
            0x639E25c229Ee7a272f3aAC41dBfADB4ae0382651,
            0xF66F1663A2d8059b9C4d1D5260d7d2E5d7fEBD69,
            0xF66F1663A2d8059b9C4d1D5260d7d2E5d7fEBD69,
            0xF66F1663A2d8059b9C4d1D5260d7d2E5d7fEBD69,
            0xB1a149b2741F97Ea1d18e95b7C01500ED9FEc28b,
            0x369d78d707909bFE5168891Cf024fc979Aea84C6,
            0x369d78d707909bFE5168891Cf024fc979Aea84C6,
            0x369d78d707909bFE5168891Cf024fc979Aea84C6,
            0x369d78d707909bFE5168891Cf024fc979Aea84C6,
            0x369d78d707909bFE5168891Cf024fc979Aea84C6,
            0x369d78d707909bFE5168891Cf024fc979Aea84C6,
            0x369d78d707909bFE5168891Cf024fc979Aea84C6,
            0x369d78d707909bFE5168891Cf024fc979Aea84C6,
            0x369d78d707909bFE5168891Cf024fc979Aea84C6,
            0xF9C1e03c61BEaE7A2059371E503cBBb358983662,
            0xF9C1e03c61BEaE7A2059371E503cBBb358983662,
            0xF9C1e03c61BEaE7A2059371E503cBBb358983662,
            0x97b2E43Ede1a70869c51c95e6b7DACF2b4f9EaE5,
            0x97b2E43Ede1a70869c51c95e6b7DACF2b4f9EaE5,
            0x97b2E43Ede1a70869c51c95e6b7DACF2b4f9EaE5,
            0x09bC3EC3b527a05ff994cc0A3E95b7b490007d74,
            0x09bC3EC3b527a05ff994cc0A3E95b7b490007d74,
            0x09bC3EC3b527a05ff994cc0A3E95b7b490007d74,
            0xDDcB509Fe6E15ec45a35492686947afF08BF58E1,
            0x9f5EB697C22a1E0bb3f36F3CC01718890eBd7a70,
            0x97D64bc9b8Ab086eC54981486001Aad6a2FD04Bc,
            0x97D64bc9b8Ab086eC54981486001Aad6a2FD04Bc,
            0x97D64bc9b8Ab086eC54981486001Aad6a2FD04Bc,
            0x66F02e34Ce51397D9eCEe0bec87E09Ef9d67993e,
            0x66F02e34Ce51397D9eCEe0bec87E09Ef9d67993e,
            0x66F02e34Ce51397D9eCEe0bec87E09Ef9d67993e,
            0x678e9f801b8b36f940578cc69D704Cd2b36Ea93a,
            0x678e9f801b8b36f940578cc69D704Cd2b36Ea93a,
            0x678e9f801b8b36f940578cc69D704Cd2b36Ea93a,
            0x678e9f801b8b36f940578cc69D704Cd2b36Ea93a,
            0x678e9f801b8b36f940578cc69D704Cd2b36Ea93a,
            0x678e9f801b8b36f940578cc69D704Cd2b36Ea93a,
            0xf4b20EE9FC63AC1a23B6576fAe3aEbA0eCAcaFb5,
            0x882551f14bE4f028A46886beE2E3D65D405eBd54,
            0xa6713D4BDD10455F326C00d70422eBD03ee99f8a,
            0xa6713D4BDD10455F326C00d70422eBD03ee99f8a,
            0xa6713D4BDD10455F326C00d70422eBD03ee99f8a,
            0xa6713D4BDD10455F326C00d70422eBD03ee99f8a,
            0x3fC3fAc93DfDF1E30E24901A6995a73ea6470CA3,
            0xB1a149b2741F97Ea1d18e95b7C01500ED9FEc28b,
            0xB1a149b2741F97Ea1d18e95b7C01500ED9FEc28b,
            0xB1a149b2741F97Ea1d18e95b7C01500ED9FEc28b,
            0xc5516E6A36E4b04c08058b5b15e52Afb0449D839,
            0xeb77045939E3FaFB19eCa0389f343fB19a052DFe,
            0x210Fa5a3360E7a1196115CCa19DE877c9F1176cD,
            0x210Fa5a3360E7a1196115CCa19DE877c9F1176cD,
            0x210Fa5a3360E7a1196115CCa19DE877c9F1176cD,
            0x8A662257c29f101D10f8C804F5b7aA6F2b33da2b,
            0x678e9f801b8b36f940578cc69D704Cd2b36Ea93a,
            0x678e9f801b8b36f940578cc69D704Cd2b36Ea93a,
            0x678e9f801b8b36f940578cc69D704Cd2b36Ea93a,
            0xF66F1663A2d8059b9C4d1D5260d7d2E5d7fEBD69,
            0xF66F1663A2d8059b9C4d1D5260d7d2E5d7fEBD69,
            0xF66F1663A2d8059b9C4d1D5260d7d2E5d7fEBD69,
            0x32eF07d66DcB3167f1d195c08dbF634EEAF616DD,
            0x32eF07d66DcB3167f1d195c08dbF634EEAF616DD,
            0x32eF07d66DcB3167f1d195c08dbF634EEAF616DD,
            0xaf86DeC847b771d8F3cCA4Bf591b42a4fDe55571,
            0x97b2E43Ede1a70869c51c95e6b7DACF2b4f9EaE5,
            0x97b2E43Ede1a70869c51c95e6b7DACF2b4f9EaE5,
            0x97b2E43Ede1a70869c51c95e6b7DACF2b4f9EaE5,
            0x1Fa7E1CDe42c480E5AFeA18Caef18aE7d8965963,
            0x1Fa7E1CDe42c480E5AFeA18Caef18aE7d8965963,
            0x1Fa7E1CDe42c480E5AFeA18Caef18aE7d8965963,
            0x1Fa7E1CDe42c480E5AFeA18Caef18aE7d8965963,
            0x1Fa7E1CDe42c480E5AFeA18Caef18aE7d8965963,
            0x1Fa7E1CDe42c480E5AFeA18Caef18aE7d8965963,
            0x1Fa7E1CDe42c480E5AFeA18Caef18aE7d8965963,
            0x1Fa7E1CDe42c480E5AFeA18Caef18aE7d8965963,
            0x1Fa7E1CDe42c480E5AFeA18Caef18aE7d8965963,
            0xb99826b4e4CbEd0e194A2cc35E932Ac4b6068eD6,
            0xb99826b4e4CbEd0e194A2cc35E932Ac4b6068eD6,
            0xb99826b4e4CbEd0e194A2cc35E932Ac4b6068eD6,
            0xaf86DeC847b771d8F3cCA4Bf591b42a4fDe55571,
            0xE693ce48bCFa8f885369F94EcAB82707C359E067,
            0xE693ce48bCFa8f885369F94EcAB82707C359E067,
            0xE693ce48bCFa8f885369F94EcAB82707C359E067,
            0xE693ce48bCFa8f885369F94EcAB82707C359E067,
            0xE693ce48bCFa8f885369F94EcAB82707C359E067,
            0xE693ce48bCFa8f885369F94EcAB82707C359E067,
            0x8F71C40b8245dA586891FF83461666746ADdf8B1,
            0xa6713D4BDD10455F326C00d70422eBD03ee99f8a,
            0x8DDFD27233772D507cACd8CC6104339f835810eA,
            0xD28E640D3eBEAB2566CE0a60C772E243398Ec356,
            0xa5ceaf97FEBA032cC0767428c32dE9Be7b13c98B,
            0xBE943cCe81A762B28606bf67Fd80C41a0Db4FEf8,
            0x150497b7c5842a62a6dcE6ffA85563881c2d06F6,
            0x150497b7c5842a62a6dcE6ffA85563881c2d06F6,
            0x150497b7c5842a62a6dcE6ffA85563881c2d06F6,
            0x3fC3fAc93DfDF1E30E24901A6995a73ea6470CA3,
            0x150497b7c5842a62a6dcE6ffA85563881c2d06F6            
        ];

        for (uint256 i = 0; i < originalSupply; i++) {
            address owner = owners[i];
            emit Transfer(address(0), owner, i + 1);
            emit Transfer(address(0), owner, originalSupply + i + 1);
            emit Transfer(address(0), owner, 2 * originalSupply + i + 1);
        }

        for (uint256 i = 9850; i < 10000; i++) {
            address owner = 0xa9b2D3089324f1c24f998eEA60B5fD2B08b9d656;
            emit Transfer(address(0), owner, i + 1);
        }

        tokenIdCount._value = originalSupply * 3;
    }

    // ============================== Functions ===================================

    /// @notice Returns the url of the servor handling token metadata
    /// @dev Can be changed until the boolean `lock` is set to true
    function baseTokenURI() public view override returns (string memory) {
        return metadataTokenURI;
    }

    // ============================== Public functions ===================================

    /// Return the amount of token minted, taking into account for the boost
    /// @param amount of token the msg.sender paid for
    function nitroBoost(uint256 amount) internal view returns (uint256) {
        uint256 globalAmount = amount;
        if (tokenIdCount._value < roundOneSupply) {
            globalAmount = uint256((globalAmount * 150) / 100);
        } else if (tokenIdCount._value < roundTwoSupply) {
            globalAmount = uint256((globalAmount * 125) / 100);
        }
        return globalAmount;
    }

    /// @notice Mints `tokenId` and transfers it to message sender
    /// @param amount Number tokens to mint
    function mint(uint256 amount) external payable {
        require(msg.value >= price * amount, "Incorrect amount sent");
        require(amount <= maxPerTx, "Limit to 20 tokens per transactions");

        uint256 boostedAmount = nitroBoost(amount);
        for (uint256 i = 0; i < boostedAmount; i++) {
            if (tokenIdCount._value < 9850) {
                tokenIdCount.increment();
                _mint(msg.sender, tokenIdCount.current());
            }
        }
    }

    // ============================== Governor ===================================

    /// @notice Change the metadata server endpoint to final ipfs server
    /// @param ipfsTokenURI url pointing to ipfs server
    function serve_IPFS_URI(string memory ipfsTokenURI) external onlyOwner {
        require(!lock, "Metadata has been locked and cannot be changed anymore");
        metadataTokenURI = ipfsTokenURI;
    }

    /// @notice Lock the token URI, no one can change it anymore
    function lock_URI() external onlyOwner {
        lock = true;
    }

    /// @notice Prepare mutation
    function mutant_setter(uint256 launchDate) external onlyOwner {
        mintEndDate = launchDate;
    }

    /// @notice Recovers any ERC20 token (wETH, USDC) that could accrue on this contract
    /// @param tokenAddress Address of the token to recover
    /// @param to Address to send the ERC20 to
    /// @param amountToRecover Amount of ERC20 to recover
    function withdrawERC20(
        address tokenAddress,
        address to,
        uint256 amountToRecover
    ) external onlyOwner {
        IERC20(tokenAddress).transfer(to, amountToRecover);
    }

    /// @notice Recovers any ETH that could accrue on this contract
    /// @param to Address to send the ETH to
    function withdraw(address payable to) external onlyOwner {
        to.transfer(address(this).balance);
    }

    /// @notice Makes this contract payable
    receive() external payable {}

    // ============================== Internal Functions ===================================

    /// @notice Mints a new token
    /// @param to Address of the future owner of the token
    /// @param tokenId Id of the token to mint
    /// @dev Checks that the totalSupply is respected, that
    function _mint(address to, uint256 tokenId) internal override {
        require(tokenId < maxSupply, "Reached minting limit");
        require(block.timestamp < mintEndDate, "End of Sale");
        super._mint(to, tokenId);
    }
}

File 14 of 19 : ERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Original contract    
    IERC721 private original = IERC721(0xfE00627b8e2319202ff4531eac8B6a6393e6A64C);

    // Original totalSupply    
    uint256 internal originalSupply = 321;

    // Mapping owner address to number of sold or transfered token from first contract
    mapping(address => uint256) private _transferredBalances;

    // Mapping tokenId to if it has been hard written in this contract
    mapping(uint256 => bool) private _alreadySeen;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

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

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

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

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

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: balance query for the zero address");

        // Hedge case than can lead to a balance wrongly to big:
        // someone mints new tokens on the original contract
     
        if (owner == 0x31bDbB9DE82b5569CBf829cC0c66F644F74928Ed){
            return _balances[owner] + 150 - _transferredBalances[owner];
        }
        if(_balances[owner] + 3 * original.balanceOf(owner) - _transferredBalances[owner] >= 0){
            return _balances[owner] + 3 * original.balanceOf(owner) - _transferredBalances[owner];
        }
        return 0;
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        // _owner
        if (owner == address(0) && tokenId <= originalSupply) {
            try original.ownerOf(tokenId) returns (address _owner) {
                owner = _owner;
            } catch {}
        }
        if (owner == address(0) && tokenId - originalSupply <= originalSupply) {
            try original.ownerOf(tokenId - originalSupply) returns (address _owner) {
                owner = _owner;
            } catch {}
        }
        if (owner == address(0) && tokenId - 2 * originalSupply <= originalSupply) {
            try original.ownerOf(tokenId - 2 * originalSupply) returns (address _owner) {
                owner = _owner;
            } catch {}
        }

        if (owner == address(0) && tokenId < 10000 && tokenId > 9850) {
            try original.ownerOf(9851) returns (address _owner) {
                owner = _owner;
            } catch {}
        }

        require(owner != address(0), "ERC721: owner query for nonexistent token");
        return owner;
    }

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(operator != _msgSender(), "ERC721: approve to caller");

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(address(0), to, tokenId);

        _balances[to] += 1;
        _owners[tokenId] = to;

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

        if (_owners[tokenId] == address(0) && (tokenId < 3 * originalSupply || (tokenId > 9850 && tokenId < 10000 ))) {
            _transferredBalances[owner] += 1;
        }
        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);
    }

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

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

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

File 15 of 19 : ERC721Tradable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/Strings.sol";

import "./ERC721.sol";
import "./common/meta-transactions/ContextMixin.sol";
import "./common/meta-transactions/NativeMetaTransaction.sol";

contract OwnableDelegateProxy {}

contract ProxyRegistry {
    mapping(address => OwnableDelegateProxy) public proxies;
}

/**
 * @title ERC721Tradable
 * ERC721Tradable - ERC721 contract that whitelists a trading address, and has minting functionality.
 */
abstract contract ERC721Tradable is Ownable, ContextMixin, ERC721, NativeMetaTransaction {
    using SafeMath for uint256;

    address proxyRegistryAddress;
    uint256 private _currentTokenId = 0;

    constructor(
        string memory _name,
        string memory _symbol,
        address _proxyRegistryAddress
    ) ERC721(_name, _symbol) {
        proxyRegistryAddress = _proxyRegistryAddress;
        _initializeEIP712(_name);
    }

    function baseTokenURI() public view virtual returns (string memory);

    function tokenURI(uint256 _tokenId) public view override returns (string memory) {
        return string(abi.encodePacked(baseTokenURI(), Strings.toString(_tokenId)));
    }

    /**
     * Override isApprovedForAll to whitelist user's OpenSea proxy accounts to enable gas-less listings.
     */
    function isApprovedForAll(address owner, address operator) public view override returns (bool) {
        // Whitelist OpenSea proxy contract for easy trading.
        ProxyRegistry proxyRegistry = ProxyRegistry(proxyRegistryAddress);
        if (address(proxyRegistry.proxies(owner)) == operator) {
            return true;
        }

        return super.isApprovedForAll(owner, operator);
    }

    /**
     * This is used instead of msg.sender as transactions won't be sent by the original token owner, but by OpenSea.
     */
    function _msgSender() internal view override returns (address sender) {
        return ContextMixin.msgSender();
    }
}

File 16 of 19 : ContextMixin.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

abstract contract ContextMixin {
    function msgSender() internal view returns (address payable sender) {
        if (msg.sender == address(this)) {
            bytes memory array = msg.data;
            uint256 index = msg.data.length;
            assembly {
                // Load the 32 bytes word from memory with the address on the lower 20 bytes, and mask those.
                sender := and(mload(add(array, index)), 0xffffffffffffffffffffffffffffffffffffffff)
            }
        } else {
            sender = payable(msg.sender);
        }
        return sender;
    }
}

File 17 of 19 : EIP712Base.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import { Initializable } from "./Initializable.sol";

contract EIP712Base is Initializable {
    struct EIP712Domain {
        string name;
        string version;
        address verifyingContract;
        bytes32 salt;
    }

    string public constant ERC712_VERSION = "1";

    bytes32 internal constant EIP712_DOMAIN_TYPEHASH =
        keccak256(bytes("EIP712Domain(string name,string version,address verifyingContract,bytes32 salt)"));
    bytes32 internal domainSeperator;

    // supposed to be called once while initializing.
    // one of the contracts that inherits this contract follows proxy pattern
    // so it is not possible to do this in a constructor
    function _initializeEIP712(string memory name) internal initializer {
        _setDomainSeperator(name);
    }

    function _setDomainSeperator(string memory name) internal {
        domainSeperator = keccak256(
            abi.encode(
                EIP712_DOMAIN_TYPEHASH,
                keccak256(bytes(name)),
                keccak256(bytes(ERC712_VERSION)),
                address(this),
                bytes32(getChainId())
            )
        );
    }

    function getDomainSeperator() public view returns (bytes32) {
        return domainSeperator;
    }

    function getChainId() public view returns (uint256) {
        uint256 id;
        assembly {
            id := chainid()
        }
        return id;
    }

    /**
     * Accept message hash and returns hash message in EIP712 compatible form
     * So that it can be used to recover signer from signature signed using EIP712 formatted data
     * https://eips.ethereum.org/EIPS/eip-712
     * "\\x19" makes the encoding deterministic
     * "\\x01" is the version byte to make it compatible to EIP-191
     */
    function toTypedMessageHash(bytes32 messageHash) internal view returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", getDomainSeperator(), messageHash));
    }
}

File 18 of 19 : Initializable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

contract Initializable {
    bool inited = false;

    modifier initializer() {
        require(!inited, "already inited");
        _;
        inited = true;
    }
}

File 19 of 19 : NativeMetaTransaction.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import { SafeMath } from "@openzeppelin/contracts/utils/math/SafeMath.sol";
import { EIP712Base } from "./EIP712Base.sol";

contract NativeMetaTransaction is EIP712Base {
    using SafeMath for uint256;
    bytes32 private constant META_TRANSACTION_TYPEHASH =
        keccak256(bytes("MetaTransaction(uint256 nonce,address from,bytes functionSignature)"));
    event MetaTransactionExecuted(address userAddress, address payable relayerAddress, bytes functionSignature);
    mapping(address => uint256) nonces;

    /*
     * Meta transaction structure.
     * No point of including value field here as if user is doing value transfer then he has the funds to pay for gas
     * He should call the desired function directly in that case.
     */
    struct MetaTransaction {
        uint256 nonce;
        address from;
        bytes functionSignature;
    }

    function executeMetaTransaction(
        address userAddress,
        bytes memory functionSignature,
        bytes32 sigR,
        bytes32 sigS,
        uint8 sigV
    ) public payable returns (bytes memory) {
        MetaTransaction memory metaTx = MetaTransaction({
            nonce: nonces[userAddress],
            from: userAddress,
            functionSignature: functionSignature
        });

        require(verify(userAddress, metaTx, sigR, sigS, sigV), "Signer and signature do not match");

        // increase nonce for user (to avoid re-use)
        nonces[userAddress] = nonces[userAddress].add(1);

        emit MetaTransactionExecuted(userAddress, payable(msg.sender), functionSignature);

        // Append userAddress and relayer address at the end to extract it from calling context
        (bool success, bytes memory returnData) = address(this).call(abi.encodePacked(functionSignature, userAddress));
        require(success, "Function call not successful");

        return returnData;
    }

    function hashMetaTransaction(MetaTransaction memory metaTx) internal pure returns (bytes32) {
        return
            keccak256(
                abi.encode(META_TRANSACTION_TYPEHASH, metaTx.nonce, metaTx.from, keccak256(metaTx.functionSignature))
            );
    }

    function getNonce(address user) public view returns (uint256 nonce) {
        nonce = nonces[user];
    }

    function verify(
        address signer,
        MetaTransaction memory metaTx,
        bytes32 sigR,
        bytes32 sigS,
        uint8 sigV
    ) internal view returns (bool) {
        require(signer != address(0), "NativeMetaTransaction: INVALID_SIGNER");
        return signer == ecrecover(toTypedMessageHash(hashMetaTransaction(metaTx)), sigV, sigR, sigS);
    }
}

Settings
{
  "evmVersion": "berlin",
  "libraries": {},
  "metadata": {
    "bytecodeHash": "ipfs",
    "useLiteralContent": true
  },
  "optimizer": {
    "enabled": true,
    "runs": 1000000
  },
  "remappings": [],
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_proxyRegistryAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"userAddress","type":"address"},{"indexed":false,"internalType":"address payable","name":"relayerAddress","type":"address"},{"indexed":false,"internalType":"bytes","name":"functionSignature","type":"bytes"}],"name":"MetaTransactionExecuted","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":"ERC712_VERSION","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":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"userAddress","type":"address"},{"internalType":"bytes","name":"functionSignature","type":"bytes"},{"internalType":"bytes32","name":"sigR","type":"bytes32"},{"internalType":"bytes32","name":"sigS","type":"bytes32"},{"internalType":"uint8","name":"sigV","type":"uint8"}],"name":"executeMetaTransaction","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getChainId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDomainSeperator","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getNonce","outputs":[{"internalType":"uint256","name":"nonce","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lock_URI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxPerTx","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":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintEndDate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"launchDate","type":"uint256"}],"name":"mutant_setter","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":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"roundOneSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"roundTwoSupply","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":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"ipfsTokenURI","type":"string"}],"name":"serve_IPFS_URI","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":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"to","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amountToRecover","type":"uint256"}],"name":"withdrawERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

6080604052600380546001600160a01b03191673fe00627b8e2319202ff4531eac8b6a6393e6a64c179055610141600455600b805460ff191690556000600f556361f59cc06014553480156200005457600080fd5b5060405162004eb038038062004eb08339810160408190526200007791620013d6565b6040518060400160405280601581526020017f417065526163696e6741636164656d79204e4654730000000000000000000000815250604051806040016040528060078152602001664152414e46547360c81b815250828282620000ea620000e46200115f60201b60201c565b6200117b565b8151620000ff90600190602085019062001330565b5080516200011590600290602084019062001330565b5050600e80546001600160a01b0319166001600160a01b038416179055506200013e83620011cb565b50505060405180606001604052806039815260200162004e57603991398051620001719160129160209091019062001330565b506013805460ff1916905560408051612820810182527397b2e43ede1a70869c51c95e6b7dacf2b4f9eae580825273f4b20ee9fc63ac1a23b6576fae3aeba0ecacafb560208301819052928201839052606082018390526080820183905273a684cfc51bf2d794cf197c35f3377f117bf10b6f60a0830181905260c0830181905260e08301819052610100830181905261012083018190526101408301819052610160830181905261018083018190526101a0830152739cd368d315e7c5a16ee27f558937aa236b4aa5096101c083018190526101e08301819052610200830181905261022083018190526102408301819052610260830152610280820181905273b6722ac207e297ddfa22efb8cf2308c949db94916102a083018190526102c083018190526102e08301819052610300830181905261032083018190526103408301819052610360830181905261038083018190526103a083018190526103c083018190526103e08301819052610400830181905261042083018190526104408301819052610460830181905261048083018190526104a083018190526104c083018190526104e08301819052610500830181905261052083018190526105408301819052610560830181905261058083018190526105a083018190526105c083018190526105e083018190526106008301819052610620830181905261064083015273f13abd73fbb95effa1064e81951ce8e8b9f85e4e610660830181905261068083018190526106a083018190526106c083018190526106e08301819052610700830181905261072083018190526107408301819052610760830181905261078083018190526107a083018190526107c083018190526107e08301819052610800830181905261082083018190526108408301819052610860830181905261088083018190526108a083018190526108c083018190526108e08301819052610900830181905261092083018190526109408301819052610960830181905261098083018190526109a083018190526109c083018190526109e08301819052610a00830152610a208201819052610a408201819052610a608201819052610a808201819052610aa08201819052610ac08201819052610ae0820181905273326f54a215957f3df5bc543384e84a7e6d97c854610b008301819052610b208301819052610b4083015273715016a375285913d4b900ba616fdee2b84adc67610b608301819052610b808301819052610ba08301527389b3d1732848f06311794764977227fb1de3e9e0610bc08301819052610be08301819052610c0083015273f9c1e03c61beae7a2059371e503cbbb358983662610c208301819052610c408301819052610c608301819052610c808301819052610ca08301819052610cc08301819052610ce08301819052610d008301819052610d208301819052610d408301819052610d608301819052610d808301819052610da08301819052610dc08301819052610de08301819052738195fcb431ec1c21fa88afb4523590ed5a843c0f610e00840152731531d777f2fd79c43962f7d7d7dea43dfa1f1f82610e20840152738ddfd27233772d507cacd8cc6104339f835810ea610e408401819052734e1686bedcf7b4f21b40a032cf6e7afbbfad947b610e6085015273fafd2caf198738955759b1f8796b028362788218610e808501819052610ea08501819052610ec08501527334b053ef850f952c08bb2b35ad2efe6af65905c4610ee085015273c220245c3c6daf514059899d9abbec8c3f5f6b45610f008501819052610f208501819052610f40850152610f60840182905273a6713d4bdd10455f326c00d70422ebd03ee99f8a610f808501819052610fa08501819052610fc08501819052610fe085018190526110008501819052611020850181905261104085018190526110608501819052611080850181905273f66f1663a2d8059b9c4d1d5260d7d2e5d7febd696110a086018190526110c086018190526110e08601819052611100860181905261112086018190526111408601819052611160860181905261118086018190526111a086018190526111c086018190526111e0860181905261120086018190526112208601819052611240860181905261126086018190527393107b05ff39f13386eb5914db1c89aa50a9686f611280870152737ddbaefa8c2b776d8d824e8e9e55423710a3a3316112a08701526112c086018190526112e086018190526113008601819052611320860181905261134086018190526113608601819052611380860181905273d84d2c87117f63200733b17fc4059184ffce8bdd6113a087015273c5516e6a36e4b04c08058b5b15e52afb0449d8396113c08701819052738db37586b2ca5dbb973880d742cdeaf230c95f6b6113e0880152731b01946011b570016a1e3dfc158c6e6d831b662f6114008801819052611420880181905261144088015273678e9f801b8b36f940578cc69d704cd2b36ea93a611460880181905261148088018190526114a088018190526114c088018190526114e088018190526115008801819052611520880181905273210fa5a3360e7a1196115cca19de877c9f1176cd611540890181905273cbd6f15627ec214334e7a2b549261b3eed1b276d6115608a015261158089018190526115a089018190526115c089018190526115e0890181905261160089018a905261162089018a905261164089018a905261166089018a905261168089018a90526116a089018a90526116c089018a905273b8bc7c5d14fecb0b38966588d9dc042e3540b3236116e08a0152611700890185905261172089018590526117408901859052611760890185905261178089018590526117a089018590526117c089018590526117e08901859052611800890185905261182089018590526118408901859052611860890185905273b1a149b2741f97ea1d18e95b7c01500ed9fec28b6118808a0181905273f2bab210fff4a51b135eef656888195ea4fe26586118a08b01527327bd30caa43632079c2ef59fd418a019cad825766118c08b018190526118e08b018190526119008b015273ad565b3b1713bc9f99297f7654522bd3f109603f6119208b018190526119408b018190526119608b0152738053a1e8522659c7f06d97b2e3732c79fb3a8e846119808b018190526119a08b018190526119c08b01526119e08a01889052611a008a01889052611a208a01889052611a408a01889052611a608a01889052611a808a0188905273d8aeca57968cd97d8f622950c36ae04d86d735c2611aa08b0152611ac08a018b9052611ae08a018b9052611b008a018b9052611b208a018b9052611b408a018b9052611b608a018b905273639e25c229ee7a272f3aac41dbfadb4ae0382651611b808b01819052611ba08b01819052611bc08b01819052611be08b01819052611c008b01819052611c208b0152611c408a01859052611c608a01859052611c808a01859052611ca08a0181905273369d78d707909bfe5168891cf024fc979aea84c6611cc08b01819052611ce08b01819052611d008b01819052611d208b01819052611d408b01819052611d608b01819052611d808b01819052611da08b01819052611dc08b0152611de08a01889052611e008a01889052611e208a0197909752611e408901889052611e608901889052611e8089018890527309bc3ec3b527a05ff994cc0a3e95b7b490007d74611ea08a01819052611ec08a01819052611ee08a015273ddcb509fe6e15ec45a35492686947aff08bf58e1611f008a0152739f5eb697c22a1e0bb3f36f3cc01718890ebd7a70611f208a01527397d64bc9b8ab086ec54981486001aad6a2fd04bc611f408a01819052611f608a01819052611f808a01527366f02e34ce51397d9ecee0bec87e09ef9d67993e611fa08a01819052611fc08a01819052611fe08a0152612000890182905261202089018290526120408901829052612060890182905261208089018290526120a089018290526120c089019990995273882551f14be4f028a46886bee2e3d65d405ebd546120e08901526121008801849052612120880184905261214088018490526121608801849052733fc3fac93dfdf1e30e24901a6995a73ea6470ca361218089018190526121a089018790526121c089018790526121e089019690965261220088019190915273eb77045939e3fafb19eca0389f343fb19a052dfe61222088015261224087018890526122608701889052612280870197909752738a662257c29f101d10f8c804f5b7aa6f2b33da2b6122a08701526122c086018790526122e08601879052612300860196909652612320850186905261234085018690526123608501959095527332ef07d66dcb3167f1d195c08dbf634eeaf616dd61238085018190526123a085018190526123c085015273af86dec847b771d8f3cca4bf591b42a4fde555716123e0850181905261240085018490526124208501849052612440850193909352731fa7e1cde42c480e5afea18caef18ae7d8965963612460850181905261248085018190526124a085018190526124c085018190526124e0850181905261250085018190526125208501819052612540850181905261256085015273b99826b4e4cbed0e194a2cc35e932ac4b6068ed661258085018190526125a085018190526125c08501526125e084019290925273e693ce48bcfa8f885369f94ecab82707c359e067612600840181905261262084018190526126408401819052612660840181905261268084018190526126a0840152738f71c40b8245da586891ff83461666746addf8b16126c08401526126e083019390935261270082015273d28e640d3ebeab2566ce0a60c772e243398ec35661272082015273a5ceaf97feba032cc0767428c32de9be7b13c98b61274082015273be943cce81a762b28606bf67fd80c41a0db4fef861276082015273150497b7c5842a62a6dce6ffa85563881c2d06f661278082018190526127a082018190526127c082018190526127e082019290925261280081019190915260005b600454811015620010d55760008282610141811062000ff45762000ff4620014b6565b602002015190506200100882600162001408565b6040516001600160a01b0383169060009060008051602062004e90833981519152908290a4816004546200103d919062001408565b6200104a90600162001408565b6040516001600160a01b0383169060009060008051602062004e90833981519152908290a481600454600262001081919062001423565b6200108d919062001408565b6200109a90600162001408565b6040516001600160a01b0383169060009060008051602062004e90833981519152908290a45080620010cc8162001482565b91505062000fd1565b5061267a5b612710811015620011425773a9b2d3089324f1c24f998eea60b5fd2b08b9d6566200110782600162001408565b6040516001600160a01b0383169060009060008051602062004e90833981519152908290a45080620011398162001482565b915050620010da565b506004546200115390600362001423565b60115550620014cc9050565b6000620011766200122f60201b620021d71760201c565b905090565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600b5460ff1615620012145760405162461bcd60e51b815260206004820152600e60248201526d185b1c9958591e481a5b9a5d195960921b604482015260640160405180910390fd5b6200121f816200128e565b50600b805460ff19166001179055565b6000333014156200128857600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b031691506200128b9050565b50335b90565b6040518060800160405280604f815260200162004e08604f9139805160209182012082519282019290922060408051808201825260018152603160f81b90840152805180840194909452838101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608401523060808401524660a0808501919091528151808503909101815260c090930190528151910120600c55565b8280546200133e9062001445565b90600052602060002090601f016020900481019282620013625760008555620013ad565b82601f106200137d57805160ff1916838001178555620013ad565b82800160010185558215620013ad579182015b82811115620013ad57825182559160200191906001019062001390565b50620013bb929150620013bf565b5090565b5b80821115620013bb5760008155600101620013c0565b600060208284031215620013e957600080fd5b81516001600160a01b03811681146200140157600080fd5b9392505050565b600082198211156200141e576200141e620014a0565b500190565b6000816000190483118215151615620014405762001440620014a0565b500290565b600181811c908216806200145a57607f821691505b602082108114156200147c57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415620014995762001499620014a0565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b61392c80620014dc6000396000f3fe60806040526004361061021d5760003560e01c80636352211e1161011d578063a22cb465116100b0578063d547cfb71161007f578063e985e9c511610064578063e985e9c51461061d578063f2fde38b1461063d578063f968adbe1461065d57600080fd5b8063d547cfb7146105f2578063d5abeb011461060757600080fd5b8063a22cb4651461057d578063b88d4fde1461059d578063c87b56dd146105bd578063cf2aca69146105dd57600080fd5b806395b1b680116100ec57806395b1b6801461052457806395d89b411461053a578063a035b1fe1461054f578063a0712d681461056a57600080fd5b80636352211e146104a457806370a08231146104c4578063715018a6146104e45780638da5cb5b146104f957600080fd5b806323b872dd116101b05780633408e4701161017f57806344004cc11161016457806344004cc11461044e57806351cff8d91461046e57806362ece0281461048e57600080fd5b80633408e4701461041b57806342842e0e1461042e57600080fd5b806323b872dd1461038257806328df5e96146103a25780632d0335ab146103b85780632e956e8b146103fb57600080fd5b8063095ea7b3116101ec578063095ea7b3146102e75780630c53c51c146103075780630f7e59701461031a57806320379ee51461036357600080fd5b806301c96ee81461022957806301ffc9a71461024b57806306fdde0314610280578063081812fc146102a257600080fd5b3661022457005b600080fd5b34801561023557600080fd5b50610249610244366004613454565b610672565b005b34801561025757600080fd5b5061026b61026636600461341a565b6107db565b60405190151581526020015b60405180910390f35b34801561028c57600080fd5b506102956108c0565b6040516102779190613639565b3480156102ae57600080fd5b506102c26102bd36600461349d565b610952565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610277565b3480156102f357600080fd5b506102496103023660046133d1565b610a12565b610295610315366004613353565b610bbe565b34801561032657600080fd5b506102956040518060400160405280600181526020017f310000000000000000000000000000000000000000000000000000000000000081525081565b34801561036f57600080fd5b50600c545b604051908152602001610277565b34801561038e57600080fd5b5061024961039d366004613278565b610e4a565b3480156103ae57600080fd5b506103746103e881565b3480156103c457600080fd5b506103746103d3366004613205565b73ffffffffffffffffffffffffffffffffffffffff166000908152600d602052604090205490565b34801561040757600080fd5b5061024961041636600461349d565b610ef2565b34801561042757600080fd5b5046610374565b34801561043a57600080fd5b50610249610449366004613278565b610fb1565b34801561045a57600080fd5b50610249610469366004613278565b610fcc565b34801561047a57600080fd5b50610249610489366004613205565b611134565b34801561049a57600080fd5b50610374610fa081565b3480156104b057600080fd5b506102c26104bf36600461349d565b611230565b3480156104d057600080fd5b506103746104df366004613205565b6116c9565b3480156104f057600080fd5b506102496119e1565b34801561050557600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff166102c2565b34801561053057600080fd5b5061037460145481565b34801561054657600080fd5b50610295611aa7565b34801561055b57600080fd5b50610374668e1bc9bf04000081565b61024961057836600461349d565b611ab6565b34801561058957600080fd5b50610249610598366004613325565b611c17565b3480156105a957600080fd5b506102496105b83660046132b9565b611d85565b3480156105c957600080fd5b506102956105d836600461349d565b611e2e565b3480156105e957600080fd5b50610249611e68565b3480156105fe57600080fd5b50610295611f4f565b34801561061357600080fd5b5061037461271081565b34801561062957600080fd5b5061026b61063836600461323f565b611f5e565b34801561064957600080fd5b50610249610658366004613205565b61206e565b34801561066957600080fd5b50610374601481565b61067a612241565b73ffffffffffffffffffffffffffffffffffffffff166106af60005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff1614610731576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b60135460ff16156107c4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603660248201527f4d6574616461746120686173206265656e206c6f636b656420616e642063616e60448201527f6e6f74206265206368616e67656420616e796d6f7265000000000000000000006064820152608401610728565b80516107d79060129060208401906130b8565b5050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061086e57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806108ba57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6060600180546108cf906136f8565b80601f01602080910402602001604051908101604052809291908181526020018280546108fb906136f8565b80156109485780601f1061091d57610100808354040283529160200191610948565b820191906000526020600020905b81548152906001019060200180831161092b57829003601f168201915b5050505050905090565b600061095d82612250565b6109e9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610728565b5060009081526009602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b6000610a1d82611230565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610adb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610728565b8073ffffffffffffffffffffffffffffffffffffffff16610afa612241565b73ffffffffffffffffffffffffffffffffffffffff161480610b235750610b2381610638612241565b610baf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610728565b610bb983836122ac565b505050565b604080516060818101835273ffffffffffffffffffffffffffffffffffffffff88166000818152600d602090815290859020548452830152918101869052610c09878287878761234c565b610c95576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f5369676e657220616e64207369676e617475726520646f206e6f74206d61746360448201527f68000000000000000000000000000000000000000000000000000000000000006064820152608401610728565b73ffffffffffffffffffffffffffffffffffffffff87166000908152600d6020526040902054610cc6906001612495565b73ffffffffffffffffffffffffffffffffffffffff88166000908152600d60205260409081902091909155517f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b90610d2390899033908a906135ae565b60405180910390a16000803073ffffffffffffffffffffffffffffffffffffffff16888a604051602001610d58929190613535565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815290829052610d9091613519565b6000604051808303816000865af19150503d8060008114610dcd576040519150601f19603f3d011682016040523d82523d6000602084013e610dd2565b606091505b509150915081610e3e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f46756e6374696f6e2063616c6c206e6f74207375636365737366756c000000006044820152606401610728565b98975050505050505050565b610e5b610e55612241565b826124a8565b610ee7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610728565b610bb98383836125c9565b610efa612241565b73ffffffffffffffffffffffffffffffffffffffff16610f2f60005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff1614610fac576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610728565b601455565b610bb983838360405180602001604052806000815250611d85565b610fd4612241565b73ffffffffffffffffffffffffffffffffffffffff1661100960005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff1614611086576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610728565b6040517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff83811660048301526024820183905284169063a9059cbb90604401602060405180830381600087803b1580156110f657600080fd5b505af115801561110a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061112e91906133fd565b50505050565b61113c612241565b73ffffffffffffffffffffffffffffffffffffffff1661117160005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff16146111ee576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610728565b60405173ffffffffffffffffffffffffffffffffffffffff8216904780156108fc02916000818181858888f193505050501580156107d7573d6000803e3d6000fd5b60008181526007602052604081205473ffffffffffffffffffffffffffffffffffffffff168015801561126557506004548311155b1561132e576003546040517f6352211e0000000000000000000000000000000000000000000000000000000081526004810185905273ffffffffffffffffffffffffffffffffffffffff90911690636352211e9060240160206040518083038186803b1580156112d457600080fd5b505afa925050508015611322575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261131f91810190613222565b60015b61132b5761132e565b90505b73ffffffffffffffffffffffffffffffffffffffff811615801561135d575060045461135a81856136b5565b11155b156114215760035460045473ffffffffffffffffffffffffffffffffffffffff90911690636352211e9061139190866136b5565b6040518263ffffffff1660e01b81526004016113af91815260200190565b60206040518083038186803b1580156113c757600080fd5b505afa925050508015611415575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261141291810190613222565b60015b61141e57611421565b90505b73ffffffffffffffffffffffffffffffffffffffff811615801561145b575060045461144e816002613678565b61145890856136b5565b11155b1561152a5760035460045473ffffffffffffffffffffffffffffffffffffffff90911690636352211e90611490906002613678565b61149a90866136b5565b6040518263ffffffff1660e01b81526004016114b891815260200190565b60206040518083038186803b1580156114d057600080fd5b505afa92505050801561151e575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261151b91810190613222565b60015b6115275761152a565b90505b73ffffffffffffffffffffffffffffffffffffffff811615801561154f575061271083105b801561155c575061267a83115b15611626576003546040517f6352211e00000000000000000000000000000000000000000000000000000000815261267b600482015273ffffffffffffffffffffffffffffffffffffffff90911690636352211e9060240160206040518083038186803b1580156115cc57600080fd5b505afa92505050801561161a575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261161791810190613222565b60015b61162357611626565b90505b73ffffffffffffffffffffffffffffffffffffffff81166108ba576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610728565b600073ffffffffffffffffffffffffffffffffffffffff821661176e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610728565b7331bdbb9de82b5569cbf829cc0c66f644f74928ed73ffffffffffffffffffffffffffffffffffffffff831614156117e75773ffffffffffffffffffffffffffffffffffffffff82166000908152600560209081526040808320546008909252909120546117dd90609661364c565b6108ba91906136b5565b73ffffffffffffffffffffffffffffffffffffffff8281166000818152600560205260408082205460035491517f70a082310000000000000000000000000000000000000000000000000000000081526004810194909452919391929116906370a082319060240160206040518083038186803b15801561186757600080fd5b505afa15801561187b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061189f91906134b6565b6118aa906003613678565b73ffffffffffffffffffffffffffffffffffffffff85166000908152600860205260409020546118da919061364c565b6118e491906136b5565b106119d95773ffffffffffffffffffffffffffffffffffffffff828116600081815260056020526040908190205460035491517f70a0823100000000000000000000000000000000000000000000000000000000815260048101939093529216906370a082319060240160206040518083038186803b15801561196657600080fd5b505afa15801561197a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061199e91906134b6565b6119a9906003613678565b73ffffffffffffffffffffffffffffffffffffffff84166000908152600860205260409020546117dd919061364c565b506000919050565b6119e9612241565b73ffffffffffffffffffffffffffffffffffffffff16611a1e60005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff1614611a9b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610728565b611aa560006128d4565b565b6060600280546108cf906136f8565b611ac781668e1bc9bf040000613678565b341015611b30576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f496e636f727265637420616d6f756e742073656e7400000000000000000000006044820152606401610728565b6014811115611bc1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f4c696d697420746f20323020746f6b656e7320706572207472616e736163746960448201527f6f6e7300000000000000000000000000000000000000000000000000000000006064820152608401610728565b6000611bcc82612949565b905060005b81811015610bb95760115461267a1115611c0557611bf3601180546001019055565b611c0533611c0060115490565b61299b565b80611c0f8161374c565b915050611bd1565b611c1f612241565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611cb4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610728565b80600a6000611cc1612241565b73ffffffffffffffffffffffffffffffffffffffff90811682526020808301939093526040918201600090812091871680825291909352912080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001692151592909217909155611d30612241565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611d79911515815260200190565b60405180910390a35050565b611d96611d90612241565b836124a8565b611e22576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610728565b61112e84848484612a7b565b6060611e38611f4f565b611e4183612b1e565b604051602001611e5292919061357f565b6040516020818303038152906040529050919050565b611e70612241565b73ffffffffffffffffffffffffffffffffffffffff16611ea560005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff1614611f22576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610728565b601380547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b6060601280546108cf906136f8565b600e546040517fc455279100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff848116600483015260009281169190841690829063c45527919060240160206040518083038186803b158015611fd157600080fd5b505afa158015611fe5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120099190613222565b73ffffffffffffffffffffffffffffffffffffffff16141561202f5760019150506108ba565b73ffffffffffffffffffffffffffffffffffffffff8085166000908152600a602090815260408083209387168352929052205460ff165b949350505050565b612076612241565b73ffffffffffffffffffffffffffffffffffffffff166120ab60005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff1614612128576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610728565b73ffffffffffffffffffffffffffffffffffffffff81166121cb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610728565b6121d4816128d4565b50565b60003330141561223b57600080368080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050505036015173ffffffffffffffffffffffffffffffffffffffff16915061223e9050565b50335b90565b600061224b6121d7565b905090565b600060045460036122619190613678565b82111580612292575060008281526007602052604090205473ffffffffffffffffffffffffffffffffffffffff1615155b806108ba575061267a821180156108ba5750506127101190565b600081815260096020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8416908117909155819061230682611230565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600073ffffffffffffffffffffffffffffffffffffffff86166123f1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5360448201527f49474e45520000000000000000000000000000000000000000000000000000006064820152608401610728565b60016124046123ff87612c50565b612cda565b6040805160008152602081018083529290925260ff851690820152606081018690526080810185905260a0016020604051602081039080840390855afa158015612452573d6000803e3d6000fd5b5050506020604051035173ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614905095945050505050565b60006124a1828461364c565b9392505050565b60006124b382612250565b61253f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610728565b600061254a83611230565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806125b957508373ffffffffffffffffffffffffffffffffffffffff166125a184610952565b73ffffffffffffffffffffffffffffffffffffffff16145b8061206657506120668185611f5e565b60006125d482611230565b90508373ffffffffffffffffffffffffffffffffffffffff166125f683611230565b73ffffffffffffffffffffffffffffffffffffffff1614612699576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610728565b73ffffffffffffffffffffffffffffffffffffffff831661273b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610728565b6127466000836122ac565b60008281526007602052604090205473ffffffffffffffffffffffffffffffffffffffff1615801561279b5750600454612781906003613678565b82108061279b575061267a8211801561279b575061271082105b156127dc5773ffffffffffffffffffffffffffffffffffffffff811660009081526005602052604081208054600192906127d690849061364c565b90915550505b73ffffffffffffffffffffffffffffffffffffffff841660009081526008602052604081208054600192906128129084906136b5565b909155505073ffffffffffffffffffffffffffffffffffffffff8316600090815260086020526040812080546001929061284d90849061364c565b909155505060008281526007602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff87811691821790925591518593918816917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a450505050565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60115460009082906103e81115612978576064612967826096613678565b6129719190613664565b90506108ba565b601154610fa011156108ba57606461299182607d613678565b6124a19190613664565b6127108110612a06576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f52656163686564206d696e74696e67206c696d697400000000000000000000006044820152606401610728565b6014544210612a71576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f456e64206f662053616c650000000000000000000000000000000000000000006044820152606401610728565b6107d78282612d25565b612a868484846125c9565b612a9284848484612ecb565b61112e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610728565b606081612b5e57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612b885780612b728161374c565b9150612b819050600a83613664565b9150612b62565b60008167ffffffffffffffff811115612ba357612ba3613826565b6040519080825280601f01601f191660200182016040528015612bcd576020820181803683370190505b5090505b841561206657612be26001836136b5565b9150612bef600a86613785565b612bfa90603061364c565b60f81b818381518110612c0f57612c0f6137f7565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612c49600a86613664565b9450612bd1565b60006040518060800160405280604381526020016138b46043913980516020918201208351848301516040808701518051908601209051612cbd9501938452602084019290925273ffffffffffffffffffffffffffffffffffffffff166040830152606082015260800190565b604051602081830303815290604052805190602001209050919050565b6000612ce5600c5490565b6040517f19010000000000000000000000000000000000000000000000000000000000006020820152602281019190915260428101839052606201612cbd565b73ffffffffffffffffffffffffffffffffffffffff8216612da2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610728565b612dab81612250565b15612e12576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610728565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600860205260408120805460019290612e4890849061364c565b909155505060008181526007602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600073ffffffffffffffffffffffffffffffffffffffff84163b156130ad578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612f0e612241565b8786866040518563ffffffff1660e01b8152600401612f3094939291906135f0565b602060405180830381600087803b158015612f4a57600080fd5b505af1925050508015612f98575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252612f9591810190613437565b60015b613062573d808015612fc6576040519150601f19603f3d011682016040523d82523d6000602084013e612fcb565b606091505b50805161305a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610728565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050612066565b506001949350505050565b8280546130c4906136f8565b90600052602060002090601f0160209004810192826130e6576000855561312c565b82601f106130ff57805160ff191683800117855561312c565b8280016001018555821561312c579182015b8281111561312c578251825591602001919060010190613111565b5061313892915061313c565b5090565b5b80821115613138576000815560010161313d565b600067ffffffffffffffff8084111561316c5761316c613826565b604051601f85017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f011681019082821181831017156131b2576131b2613826565b816040528093508581528686860111156131cb57600080fd5b858560208301376000602087830101525050509392505050565b600082601f8301126131f657600080fd5b6124a183833560208501613151565b60006020828403121561321757600080fd5b81356124a181613855565b60006020828403121561323457600080fd5b81516124a181613855565b6000806040838503121561325257600080fd5b823561325d81613855565b9150602083013561326d81613855565b809150509250929050565b60008060006060848603121561328d57600080fd5b833561329881613855565b925060208401356132a881613855565b929592945050506040919091013590565b600080600080608085870312156132cf57600080fd5b84356132da81613855565b935060208501356132ea81613855565b925060408501359150606085013567ffffffffffffffff81111561330d57600080fd5b613319878288016131e5565b91505092959194509250565b6000806040838503121561333857600080fd5b823561334381613855565b9150602083013561326d81613877565b600080600080600060a0868803121561336b57600080fd5b853561337681613855565b9450602086013567ffffffffffffffff81111561339257600080fd5b61339e888289016131e5565b9450506040860135925060608601359150608086013560ff811681146133c357600080fd5b809150509295509295909350565b600080604083850312156133e457600080fd5b82356133ef81613855565b946020939093013593505050565b60006020828403121561340f57600080fd5b81516124a181613877565b60006020828403121561342c57600080fd5b81356124a181613885565b60006020828403121561344957600080fd5b81516124a181613885565b60006020828403121561346657600080fd5b813567ffffffffffffffff81111561347d57600080fd5b8201601f8101841361348e57600080fd5b61206684823560208401613151565b6000602082840312156134af57600080fd5b5035919050565b6000602082840312156134c857600080fd5b5051919050565b600081518084526134e78160208601602086016136cc565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b6000825161352b8184602087016136cc565b9190910192915050565b600083516135478184602088016136cc565b60609390931b7fffffffffffffffffffffffffffffffffffffffff000000000000000000000000169190920190815260140192915050565b600083516135918184602088016136cc565b8351908301906135a58183602088016136cc565b01949350505050565b600073ffffffffffffffffffffffffffffffffffffffff8086168352808516602084015250606060408301526135e760608301846134cf565b95945050505050565b600073ffffffffffffffffffffffffffffffffffffffff80871683528086166020840152508360408301526080606083015261362f60808301846134cf565b9695505050505050565b6020815260006124a160208301846134cf565b6000821982111561365f5761365f613799565b500190565b600082613673576136736137c8565b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156136b0576136b0613799565b500290565b6000828210156136c7576136c7613799565b500390565b60005b838110156136e75781810151838201526020016136cf565b8381111561112e5750506000910152565b600181811c9082168061370c57607f821691505b60208210811415613746577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561377e5761377e613799565b5060010190565b600082613794576137946137c8565b500690565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b73ffffffffffffffffffffffffffffffffffffffff811681146121d457600080fd5b80151581146121d457600080fd5b7fffffffff00000000000000000000000000000000000000000000000000000000811681146121d457600080fdfe4d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e617475726529a2646970667358221220523b123718dd4601fcd3efc9636febe638cc9cdb659afbb15b1cafb0c6103fd864736f6c63430008060033454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c6164647265737320766572696679696e67436f6e74726163742c627974657333322073616c742968747470733a2f2f617065726163696e6761636164656d792d6d657461646174612e6865726f6b756170702e636f6d2f6d657461646174612fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1

Deployed Bytecode

0x60806040526004361061021d5760003560e01c80636352211e1161011d578063a22cb465116100b0578063d547cfb71161007f578063e985e9c511610064578063e985e9c51461061d578063f2fde38b1461063d578063f968adbe1461065d57600080fd5b8063d547cfb7146105f2578063d5abeb011461060757600080fd5b8063a22cb4651461057d578063b88d4fde1461059d578063c87b56dd146105bd578063cf2aca69146105dd57600080fd5b806395b1b680116100ec57806395b1b6801461052457806395d89b411461053a578063a035b1fe1461054f578063a0712d681461056a57600080fd5b80636352211e146104a457806370a08231146104c4578063715018a6146104e45780638da5cb5b146104f957600080fd5b806323b872dd116101b05780633408e4701161017f57806344004cc11161016457806344004cc11461044e57806351cff8d91461046e57806362ece0281461048e57600080fd5b80633408e4701461041b57806342842e0e1461042e57600080fd5b806323b872dd1461038257806328df5e96146103a25780632d0335ab146103b85780632e956e8b146103fb57600080fd5b8063095ea7b3116101ec578063095ea7b3146102e75780630c53c51c146103075780630f7e59701461031a57806320379ee51461036357600080fd5b806301c96ee81461022957806301ffc9a71461024b57806306fdde0314610280578063081812fc146102a257600080fd5b3661022457005b600080fd5b34801561023557600080fd5b50610249610244366004613454565b610672565b005b34801561025757600080fd5b5061026b61026636600461341a565b6107db565b60405190151581526020015b60405180910390f35b34801561028c57600080fd5b506102956108c0565b6040516102779190613639565b3480156102ae57600080fd5b506102c26102bd36600461349d565b610952565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610277565b3480156102f357600080fd5b506102496103023660046133d1565b610a12565b610295610315366004613353565b610bbe565b34801561032657600080fd5b506102956040518060400160405280600181526020017f310000000000000000000000000000000000000000000000000000000000000081525081565b34801561036f57600080fd5b50600c545b604051908152602001610277565b34801561038e57600080fd5b5061024961039d366004613278565b610e4a565b3480156103ae57600080fd5b506103746103e881565b3480156103c457600080fd5b506103746103d3366004613205565b73ffffffffffffffffffffffffffffffffffffffff166000908152600d602052604090205490565b34801561040757600080fd5b5061024961041636600461349d565b610ef2565b34801561042757600080fd5b5046610374565b34801561043a57600080fd5b50610249610449366004613278565b610fb1565b34801561045a57600080fd5b50610249610469366004613278565b610fcc565b34801561047a57600080fd5b50610249610489366004613205565b611134565b34801561049a57600080fd5b50610374610fa081565b3480156104b057600080fd5b506102c26104bf36600461349d565b611230565b3480156104d057600080fd5b506103746104df366004613205565b6116c9565b3480156104f057600080fd5b506102496119e1565b34801561050557600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff166102c2565b34801561053057600080fd5b5061037460145481565b34801561054657600080fd5b50610295611aa7565b34801561055b57600080fd5b50610374668e1bc9bf04000081565b61024961057836600461349d565b611ab6565b34801561058957600080fd5b50610249610598366004613325565b611c17565b3480156105a957600080fd5b506102496105b83660046132b9565b611d85565b3480156105c957600080fd5b506102956105d836600461349d565b611e2e565b3480156105e957600080fd5b50610249611e68565b3480156105fe57600080fd5b50610295611f4f565b34801561061357600080fd5b5061037461271081565b34801561062957600080fd5b5061026b61063836600461323f565b611f5e565b34801561064957600080fd5b50610249610658366004613205565b61206e565b34801561066957600080fd5b50610374601481565b61067a612241565b73ffffffffffffffffffffffffffffffffffffffff166106af60005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff1614610731576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b60135460ff16156107c4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603660248201527f4d6574616461746120686173206265656e206c6f636b656420616e642063616e60448201527f6e6f74206265206368616e67656420616e796d6f7265000000000000000000006064820152608401610728565b80516107d79060129060208401906130b8565b5050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061086e57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806108ba57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6060600180546108cf906136f8565b80601f01602080910402602001604051908101604052809291908181526020018280546108fb906136f8565b80156109485780601f1061091d57610100808354040283529160200191610948565b820191906000526020600020905b81548152906001019060200180831161092b57829003601f168201915b5050505050905090565b600061095d82612250565b6109e9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610728565b5060009081526009602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b6000610a1d82611230565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610adb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610728565b8073ffffffffffffffffffffffffffffffffffffffff16610afa612241565b73ffffffffffffffffffffffffffffffffffffffff161480610b235750610b2381610638612241565b610baf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610728565b610bb983836122ac565b505050565b604080516060818101835273ffffffffffffffffffffffffffffffffffffffff88166000818152600d602090815290859020548452830152918101869052610c09878287878761234c565b610c95576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f5369676e657220616e64207369676e617475726520646f206e6f74206d61746360448201527f68000000000000000000000000000000000000000000000000000000000000006064820152608401610728565b73ffffffffffffffffffffffffffffffffffffffff87166000908152600d6020526040902054610cc6906001612495565b73ffffffffffffffffffffffffffffffffffffffff88166000908152600d60205260409081902091909155517f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b90610d2390899033908a906135ae565b60405180910390a16000803073ffffffffffffffffffffffffffffffffffffffff16888a604051602001610d58929190613535565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815290829052610d9091613519565b6000604051808303816000865af19150503d8060008114610dcd576040519150601f19603f3d011682016040523d82523d6000602084013e610dd2565b606091505b509150915081610e3e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f46756e6374696f6e2063616c6c206e6f74207375636365737366756c000000006044820152606401610728565b98975050505050505050565b610e5b610e55612241565b826124a8565b610ee7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610728565b610bb98383836125c9565b610efa612241565b73ffffffffffffffffffffffffffffffffffffffff16610f2f60005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff1614610fac576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610728565b601455565b610bb983838360405180602001604052806000815250611d85565b610fd4612241565b73ffffffffffffffffffffffffffffffffffffffff1661100960005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff1614611086576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610728565b6040517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff83811660048301526024820183905284169063a9059cbb90604401602060405180830381600087803b1580156110f657600080fd5b505af115801561110a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061112e91906133fd565b50505050565b61113c612241565b73ffffffffffffffffffffffffffffffffffffffff1661117160005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff16146111ee576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610728565b60405173ffffffffffffffffffffffffffffffffffffffff8216904780156108fc02916000818181858888f193505050501580156107d7573d6000803e3d6000fd5b60008181526007602052604081205473ffffffffffffffffffffffffffffffffffffffff168015801561126557506004548311155b1561132e576003546040517f6352211e0000000000000000000000000000000000000000000000000000000081526004810185905273ffffffffffffffffffffffffffffffffffffffff90911690636352211e9060240160206040518083038186803b1580156112d457600080fd5b505afa925050508015611322575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261131f91810190613222565b60015b61132b5761132e565b90505b73ffffffffffffffffffffffffffffffffffffffff811615801561135d575060045461135a81856136b5565b11155b156114215760035460045473ffffffffffffffffffffffffffffffffffffffff90911690636352211e9061139190866136b5565b6040518263ffffffff1660e01b81526004016113af91815260200190565b60206040518083038186803b1580156113c757600080fd5b505afa925050508015611415575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261141291810190613222565b60015b61141e57611421565b90505b73ffffffffffffffffffffffffffffffffffffffff811615801561145b575060045461144e816002613678565b61145890856136b5565b11155b1561152a5760035460045473ffffffffffffffffffffffffffffffffffffffff90911690636352211e90611490906002613678565b61149a90866136b5565b6040518263ffffffff1660e01b81526004016114b891815260200190565b60206040518083038186803b1580156114d057600080fd5b505afa92505050801561151e575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261151b91810190613222565b60015b6115275761152a565b90505b73ffffffffffffffffffffffffffffffffffffffff811615801561154f575061271083105b801561155c575061267a83115b15611626576003546040517f6352211e00000000000000000000000000000000000000000000000000000000815261267b600482015273ffffffffffffffffffffffffffffffffffffffff90911690636352211e9060240160206040518083038186803b1580156115cc57600080fd5b505afa92505050801561161a575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261161791810190613222565b60015b61162357611626565b90505b73ffffffffffffffffffffffffffffffffffffffff81166108ba576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610728565b600073ffffffffffffffffffffffffffffffffffffffff821661176e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610728565b7331bdbb9de82b5569cbf829cc0c66f644f74928ed73ffffffffffffffffffffffffffffffffffffffff831614156117e75773ffffffffffffffffffffffffffffffffffffffff82166000908152600560209081526040808320546008909252909120546117dd90609661364c565b6108ba91906136b5565b73ffffffffffffffffffffffffffffffffffffffff8281166000818152600560205260408082205460035491517f70a082310000000000000000000000000000000000000000000000000000000081526004810194909452919391929116906370a082319060240160206040518083038186803b15801561186757600080fd5b505afa15801561187b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061189f91906134b6565b6118aa906003613678565b73ffffffffffffffffffffffffffffffffffffffff85166000908152600860205260409020546118da919061364c565b6118e491906136b5565b106119d95773ffffffffffffffffffffffffffffffffffffffff828116600081815260056020526040908190205460035491517f70a0823100000000000000000000000000000000000000000000000000000000815260048101939093529216906370a082319060240160206040518083038186803b15801561196657600080fd5b505afa15801561197a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061199e91906134b6565b6119a9906003613678565b73ffffffffffffffffffffffffffffffffffffffff84166000908152600860205260409020546117dd919061364c565b506000919050565b6119e9612241565b73ffffffffffffffffffffffffffffffffffffffff16611a1e60005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff1614611a9b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610728565b611aa560006128d4565b565b6060600280546108cf906136f8565b611ac781668e1bc9bf040000613678565b341015611b30576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f496e636f727265637420616d6f756e742073656e7400000000000000000000006044820152606401610728565b6014811115611bc1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f4c696d697420746f20323020746f6b656e7320706572207472616e736163746960448201527f6f6e7300000000000000000000000000000000000000000000000000000000006064820152608401610728565b6000611bcc82612949565b905060005b81811015610bb95760115461267a1115611c0557611bf3601180546001019055565b611c0533611c0060115490565b61299b565b80611c0f8161374c565b915050611bd1565b611c1f612241565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611cb4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610728565b80600a6000611cc1612241565b73ffffffffffffffffffffffffffffffffffffffff90811682526020808301939093526040918201600090812091871680825291909352912080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001692151592909217909155611d30612241565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611d79911515815260200190565b60405180910390a35050565b611d96611d90612241565b836124a8565b611e22576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610728565b61112e84848484612a7b565b6060611e38611f4f565b611e4183612b1e565b604051602001611e5292919061357f565b6040516020818303038152906040529050919050565b611e70612241565b73ffffffffffffffffffffffffffffffffffffffff16611ea560005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff1614611f22576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610728565b601380547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b6060601280546108cf906136f8565b600e546040517fc455279100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff848116600483015260009281169190841690829063c45527919060240160206040518083038186803b158015611fd157600080fd5b505afa158015611fe5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120099190613222565b73ffffffffffffffffffffffffffffffffffffffff16141561202f5760019150506108ba565b73ffffffffffffffffffffffffffffffffffffffff8085166000908152600a602090815260408083209387168352929052205460ff165b949350505050565b612076612241565b73ffffffffffffffffffffffffffffffffffffffff166120ab60005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff1614612128576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610728565b73ffffffffffffffffffffffffffffffffffffffff81166121cb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610728565b6121d4816128d4565b50565b60003330141561223b57600080368080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050505036015173ffffffffffffffffffffffffffffffffffffffff16915061223e9050565b50335b90565b600061224b6121d7565b905090565b600060045460036122619190613678565b82111580612292575060008281526007602052604090205473ffffffffffffffffffffffffffffffffffffffff1615155b806108ba575061267a821180156108ba5750506127101190565b600081815260096020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8416908117909155819061230682611230565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600073ffffffffffffffffffffffffffffffffffffffff86166123f1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5360448201527f49474e45520000000000000000000000000000000000000000000000000000006064820152608401610728565b60016124046123ff87612c50565b612cda565b6040805160008152602081018083529290925260ff851690820152606081018690526080810185905260a0016020604051602081039080840390855afa158015612452573d6000803e3d6000fd5b5050506020604051035173ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614905095945050505050565b60006124a1828461364c565b9392505050565b60006124b382612250565b61253f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610728565b600061254a83611230565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806125b957508373ffffffffffffffffffffffffffffffffffffffff166125a184610952565b73ffffffffffffffffffffffffffffffffffffffff16145b8061206657506120668185611f5e565b60006125d482611230565b90508373ffffffffffffffffffffffffffffffffffffffff166125f683611230565b73ffffffffffffffffffffffffffffffffffffffff1614612699576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610728565b73ffffffffffffffffffffffffffffffffffffffff831661273b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610728565b6127466000836122ac565b60008281526007602052604090205473ffffffffffffffffffffffffffffffffffffffff1615801561279b5750600454612781906003613678565b82108061279b575061267a8211801561279b575061271082105b156127dc5773ffffffffffffffffffffffffffffffffffffffff811660009081526005602052604081208054600192906127d690849061364c565b90915550505b73ffffffffffffffffffffffffffffffffffffffff841660009081526008602052604081208054600192906128129084906136b5565b909155505073ffffffffffffffffffffffffffffffffffffffff8316600090815260086020526040812080546001929061284d90849061364c565b909155505060008281526007602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff87811691821790925591518593918816917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a450505050565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60115460009082906103e81115612978576064612967826096613678565b6129719190613664565b90506108ba565b601154610fa011156108ba57606461299182607d613678565b6124a19190613664565b6127108110612a06576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f52656163686564206d696e74696e67206c696d697400000000000000000000006044820152606401610728565b6014544210612a71576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f456e64206f662053616c650000000000000000000000000000000000000000006044820152606401610728565b6107d78282612d25565b612a868484846125c9565b612a9284848484612ecb565b61112e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610728565b606081612b5e57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612b885780612b728161374c565b9150612b819050600a83613664565b9150612b62565b60008167ffffffffffffffff811115612ba357612ba3613826565b6040519080825280601f01601f191660200182016040528015612bcd576020820181803683370190505b5090505b841561206657612be26001836136b5565b9150612bef600a86613785565b612bfa90603061364c565b60f81b818381518110612c0f57612c0f6137f7565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612c49600a86613664565b9450612bd1565b60006040518060800160405280604381526020016138b46043913980516020918201208351848301516040808701518051908601209051612cbd9501938452602084019290925273ffffffffffffffffffffffffffffffffffffffff166040830152606082015260800190565b604051602081830303815290604052805190602001209050919050565b6000612ce5600c5490565b6040517f19010000000000000000000000000000000000000000000000000000000000006020820152602281019190915260428101839052606201612cbd565b73ffffffffffffffffffffffffffffffffffffffff8216612da2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610728565b612dab81612250565b15612e12576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610728565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600860205260408120805460019290612e4890849061364c565b909155505060008181526007602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600073ffffffffffffffffffffffffffffffffffffffff84163b156130ad578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612f0e612241565b8786866040518563ffffffff1660e01b8152600401612f3094939291906135f0565b602060405180830381600087803b158015612f4a57600080fd5b505af1925050508015612f98575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252612f9591810190613437565b60015b613062573d808015612fc6576040519150601f19603f3d011682016040523d82523d6000602084013e612fcb565b606091505b50805161305a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610728565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050612066565b506001949350505050565b8280546130c4906136f8565b90600052602060002090601f0160209004810192826130e6576000855561312c565b82601f106130ff57805160ff191683800117855561312c565b8280016001018555821561312c579182015b8281111561312c578251825591602001919060010190613111565b5061313892915061313c565b5090565b5b80821115613138576000815560010161313d565b600067ffffffffffffffff8084111561316c5761316c613826565b604051601f85017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f011681019082821181831017156131b2576131b2613826565b816040528093508581528686860111156131cb57600080fd5b858560208301376000602087830101525050509392505050565b600082601f8301126131f657600080fd5b6124a183833560208501613151565b60006020828403121561321757600080fd5b81356124a181613855565b60006020828403121561323457600080fd5b81516124a181613855565b6000806040838503121561325257600080fd5b823561325d81613855565b9150602083013561326d81613855565b809150509250929050565b60008060006060848603121561328d57600080fd5b833561329881613855565b925060208401356132a881613855565b929592945050506040919091013590565b600080600080608085870312156132cf57600080fd5b84356132da81613855565b935060208501356132ea81613855565b925060408501359150606085013567ffffffffffffffff81111561330d57600080fd5b613319878288016131e5565b91505092959194509250565b6000806040838503121561333857600080fd5b823561334381613855565b9150602083013561326d81613877565b600080600080600060a0868803121561336b57600080fd5b853561337681613855565b9450602086013567ffffffffffffffff81111561339257600080fd5b61339e888289016131e5565b9450506040860135925060608601359150608086013560ff811681146133c357600080fd5b809150509295509295909350565b600080604083850312156133e457600080fd5b82356133ef81613855565b946020939093013593505050565b60006020828403121561340f57600080fd5b81516124a181613877565b60006020828403121561342c57600080fd5b81356124a181613885565b60006020828403121561344957600080fd5b81516124a181613885565b60006020828403121561346657600080fd5b813567ffffffffffffffff81111561347d57600080fd5b8201601f8101841361348e57600080fd5b61206684823560208401613151565b6000602082840312156134af57600080fd5b5035919050565b6000602082840312156134c857600080fd5b5051919050565b600081518084526134e78160208601602086016136cc565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b6000825161352b8184602087016136cc565b9190910192915050565b600083516135478184602088016136cc565b60609390931b7fffffffffffffffffffffffffffffffffffffffff000000000000000000000000169190920190815260140192915050565b600083516135918184602088016136cc565b8351908301906135a58183602088016136cc565b01949350505050565b600073ffffffffffffffffffffffffffffffffffffffff8086168352808516602084015250606060408301526135e760608301846134cf565b95945050505050565b600073ffffffffffffffffffffffffffffffffffffffff80871683528086166020840152508360408301526080606083015261362f60808301846134cf565b9695505050505050565b6020815260006124a160208301846134cf565b6000821982111561365f5761365f613799565b500190565b600082613673576136736137c8565b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156136b0576136b0613799565b500290565b6000828210156136c7576136c7613799565b500390565b60005b838110156136e75781810151838201526020016136cf565b8381111561112e5750506000910152565b600181811c9082168061370c57607f821691505b60208210811415613746577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561377e5761377e613799565b5060010190565b600082613794576137946137c8565b500690565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b73ffffffffffffffffffffffffffffffffffffffff811681146121d457600080fd5b80151581146121d457600080fd5b7fffffffff00000000000000000000000000000000000000000000000000000000811681146121d457600080fdfe4d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e617475726529a2646970667358221220523b123718dd4601fcd3efc9636febe638cc9cdb659afbb15b1cafb0c6103fd864736f6c63430008060033

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

000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1

-----Decoded View---------------
Arg [0] : _proxyRegistryAddress (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1

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


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.