ETH Price: $3,349.30 (-2.96%)

Token

PEEPonCHAIN (PP)
 

Overview

Max Total Supply

76 PP

Holders

64

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
20200707.eth
Balance
1 PP
0x50e457a42df31027Dd42ae2f56cE696e719Fd76F
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:
PEEPonCHAIN

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

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

// File: base64-sol/base64.sol



pragma solidity >=0.6.0;

/// @title Base64
/// @author Brecht Devos - <[email protected]>
/// @notice Provides functions for encoding/decoding base64
library Base64 {
    string internal constant TABLE_ENCODE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
    bytes  internal constant TABLE_DECODE = hex"0000000000000000000000000000000000000000000000000000000000000000"
                                            hex"00000000000000000000003e0000003f3435363738393a3b3c3d000000000000"
                                            hex"00000102030405060708090a0b0c0d0e0f101112131415161718190000000000"
                                            hex"001a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132330000000000";

    function encode(bytes memory data) internal pure returns (string memory) {
        if (data.length == 0) return '';

        // load the table into memory
        string memory table = TABLE_ENCODE;

        // multiply by 4/3 rounded up
        uint256 encodedLen = 4 * ((data.length + 2) / 3);

        // add some extra buffer at the end required for the writing
        string memory result = new string(encodedLen + 32);

        assembly {
            // set the actual output length
            mstore(result, encodedLen)

            // prepare the lookup table
            let tablePtr := add(table, 1)

            // input ptr
            let dataPtr := data
            let endPtr := add(dataPtr, mload(data))

            // result ptr, jump over length
            let resultPtr := add(result, 32)

            // run over the input, 3 bytes at a time
            for {} lt(dataPtr, endPtr) {}
            {
                // read 3 bytes
                dataPtr := add(dataPtr, 3)
                let input := mload(dataPtr)

                // write 4 characters
                mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F))))
                resultPtr := add(resultPtr, 1)
                mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F))))
                resultPtr := add(resultPtr, 1)
                mstore8(resultPtr, mload(add(tablePtr, and(shr( 6, input), 0x3F))))
                resultPtr := add(resultPtr, 1)
                mstore8(resultPtr, mload(add(tablePtr, and(        input,  0x3F))))
                resultPtr := add(resultPtr, 1)
            }

            // padding with '='
            switch mod(mload(data), 3)
            case 1 { mstore(sub(resultPtr, 2), shl(240, 0x3d3d)) }
            case 2 { mstore(sub(resultPtr, 1), shl(248, 0x3d)) }
        }

        return result;
    }

    function decode(string memory _data) internal pure returns (bytes memory) {
        bytes memory data = bytes(_data);

        if (data.length == 0) return new bytes(0);
        require(data.length % 4 == 0, "invalid base64 decoder input");

        // load the table into memory
        bytes memory table = TABLE_DECODE;

        // every 4 characters represent 3 bytes
        uint256 decodedLen = (data.length / 4) * 3;

        // add some extra buffer at the end required for the writing
        bytes memory result = new bytes(decodedLen + 32);

        assembly {
            // padding with '='
            let lastBytes := mload(add(data, mload(data)))
            if eq(and(lastBytes, 0xFF), 0x3d) {
                decodedLen := sub(decodedLen, 1)
                if eq(and(lastBytes, 0xFFFF), 0x3d3d) {
                    decodedLen := sub(decodedLen, 1)
                }
            }

            // set the actual output length
            mstore(result, decodedLen)

            // prepare the lookup table
            let tablePtr := add(table, 1)

            // input ptr
            let dataPtr := data
            let endPtr := add(dataPtr, mload(data))

            // result ptr, jump over length
            let resultPtr := add(result, 32)

            // run over the input, 4 characters at a time
            for {} lt(dataPtr, endPtr) {}
            {
               // read 4 characters
               dataPtr := add(dataPtr, 4)
               let input := mload(dataPtr)

               // write 3 bytes
               let output := add(
                   add(
                       shl(18, and(mload(add(tablePtr, and(shr(24, input), 0xFF))), 0xFF)),
                       shl(12, and(mload(add(tablePtr, and(shr(16, input), 0xFF))), 0xFF))),
                   add(
                       shl( 6, and(mload(add(tablePtr, and(shr( 8, input), 0xFF))), 0xFF)),
                               and(mload(add(tablePtr, and(        input , 0xFF))), 0xFF)
                    )
                )
                mstore(resultPtr, shl(232, output))
                resultPtr := add(resultPtr, 3)
            }
        }

        return result;
    }
}

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


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

pragma solidity ^0.8.0;

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

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

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

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

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

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


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

pragma solidity ^0.8.0;

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

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

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

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

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

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


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

pragma solidity ^0.8.0;

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

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

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


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

pragma solidity ^0.8.0;


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

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

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

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

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

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

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

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

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


// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// File: @openzeppelin/contracts/token/ERC721/IERC721Receiver.sol


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

pragma solidity ^0.8.0;

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

// File: @openzeppelin/contracts/utils/introspection/IERC165.sol


// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

// File: @openzeppelin/contracts/utils/introspection/ERC165.sol


// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;


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

// File: @openzeppelin/contracts/token/ERC721/IERC721.sol


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

pragma solidity ^0.8.0;


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

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

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

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

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

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

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

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

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

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

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

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

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


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

pragma solidity ^0.8.0;


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

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

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

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


// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;








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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

        _afterTokenTransfer(address(0), to, tokenId);
    }

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

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

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

        _balances[owner] -= 1;
        delete _owners[tokenId];

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

        _afterTokenTransfer(owner, address(0), tokenId);
    }

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

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

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

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

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}






contract PEEPonCHAIN is ERC721, Ownable {
  using Strings for uint256;
  using Counters for Counters.Counter;
  string public baseExtURI="";
  string public baseImgURI="";
  string public baseAniURI = "";
  uint256 public cost = 0.003 ether;
  uint256 public maxSupply = 10000;
  uint256 public freeSupply = 9999;
  uint256 public maxMintPerTx = 20;
  bool public paused = false;
  mapping(address => uint256) public addressFreeMint;
  mapping(uint256 => uint256) public seeds;
  Counters.Counter private supply;

  
  constructor() ERC721("PEEPonCHAIN", "PP") {
    privateMint(10,msg.sender);
  }

  function freeMint() public{
    require(!paused,"Mint Paused");
    require(supply.current() + 1 <= freeSupply,"Max Free NFT supply exceeded");
    require(addressFreeMint[msg.sender] < 1, "Only 1 Free NFT per wallet allowed");
    _mintCore(msg.sender,1);
    addressFreeMint[msg.sender]++;
  }

  function mint(uint256 _mintAmount) public payable mintMod(_mintAmount){
  
    require(!paused,"Mint Paused");
    require(msg.value >= cost * _mintAmount,"Insufficient fund");
    _mintCore(msg.sender,_mintAmount);

  }

  function privateMint(uint256 _mintAmount, address _receiver) public mintMod(_mintAmount) onlyOwner {
    _mintCore(_receiver,_mintAmount);
  }

  modifier mintMod(uint256 _mintAmount) {
    require(_mintAmount > 0 && _mintAmount <= maxMintPerTx, "Invalid mint amount");
    require(supply.current()+ _mintAmount <= maxSupply,"Max NFT supply exceeded");
    _;
  }

  function _mintCore(address _receiver, uint256 _mintAmount) internal {
     for (uint256 i = 1; i <= _mintAmount; i++) {
      supply.increment();
      uint256 tid = supply.current();
      _safeMint(_receiver, tid);
      seeds[tid] = uint256(keccak256(abi.encodePacked(uint256(bytes32(blockhash(block.number - 1))), tid)));
    }
  }

  function walletOfOwner(address _owner)
    public
    view
    returns (uint256[] memory)
  {
    uint256 ownerTokenCount = balanceOf(_owner);
    uint256[] memory ownedTokenIds = new uint256[](ownerTokenCount);
    uint256 currentTokenId = 1;
    uint256 ownedTokenIndex = 0;

    while (ownedTokenIndex < ownerTokenCount && currentTokenId <= maxSupply) {
      address currentTokenOwner = ownerOf(currentTokenId);

      if (currentTokenOwner == _owner) {
        ownedTokenIds[ownedTokenIndex] = currentTokenId;
        ownedTokenIndex++;
      }
      currentTokenId++;
    }
    return ownedTokenIds;
  }
  
  function contractURI() public pure returns (string memory) {
         return "ipfs://QmV3gaSutuXvDaaYC59UfxHUQuZdwoEXb1kXdGWUS6yPMY";
  }


  function tokenURI(uint256 tokenId)
    public
    view
    virtual
    override
    returns (string memory)
  {
    require(
      _exists(tokenId), "Token not found!"
    );
    return(genMeta(tokenId,seeds[tokenId]));
  }

  function totalSupply() public view returns (uint256) {
    return supply.current();
  }
  function setCost(uint256 _new) public onlyOwner() {
    cost = _new;
  }

  function setFreeSupply(uint256 _new) public onlyOwner() {
    require(_new < maxSupply, "Must be smaller than Max Supply");
    freeSupply = _new;
  }

  function setMaxMintPerTx(uint256 _new) public onlyOwner() {
    maxMintPerTx = _new;
  }

  function setBaseExtURI(string memory _new) public onlyOwner {
    baseExtURI = _new;
  }

  function setBaseAniURI(string memory _new) public onlyOwner {
    baseAniURI = _new;
  }
  function setBaseImgURI(string memory _new) public onlyOwner {
    baseImgURI = _new;
  }
  function pause(bool _state) public onlyOwner {
    paused = _state;
  }

  function withdraw() public payable onlyOwner {
    (bool success, ) = payable(msg.sender).call{value: address(this).balance}("");
    require(success);
  }
  
  function substring(string memory str, uint startIndex, uint endIndex) private pure returns (string memory) {
    bytes memory strBytes = bytes(str);
    bytes memory result = new bytes(endIndex-startIndex);
    for(uint i = startIndex; i < endIndex; i++) {
        result[i-startIndex] = strBytes[i];
    }
    return string(result);
  }
    
    
  function strToUint(string memory _str) private pure returns(uint256 res) {
    for (uint256 i = 0; i < bytes(_str).length; i++) {
        res += (uint8(bytes(_str)[i]) - 48) * 10**(bytes(_str).length - i - 1);
    }
    return (res);
  }


  function getRanResult(uint256 num, uint8[12] memory chance) private pure returns(uint256 res) {
    for (uint256 i=0; i<chance.length; i++)
      if (num<chance[i]) return(i);  
    return(0);
  } 

  struct Metadata{
    string gender;
    string body;
    string skin;
    string hairColor;
    string hair;
    string beard;
    string face;
    string head;    

    string extURL;
    string aniURL;
    string imgURL;
    string name;

    string[9] tops;
    string[4] goodies;

    string topPacked;
  }

  struct CheckData{
     uint8[12] chanceBody;
     string[6] nameBody;

     uint8[12] chanceSkin;
     string[7] nameSkin;

     uint8[12] chanceHairColor;
     string[12] nameHairColor;

     uint8[9] chanceShowTop;
     uint8[4] chanceShowGoodie;

     uint8[9][2] topsTotal;
     uint8[4][2] goodiesTotal;

     string[4] nameGoodie;

     uint256 body;
  }
  
  
  function genMeta(uint256 tid, uint256 seed) private view returns (string memory) {
        Metadata memory attr;
        CheckData memory check;
        string memory seedStr = seed.toString();

        
        check.chanceBody=[40,72,92,97,99,100,100,100,100,100,100,100];
        check.nameBody=["Normal","Skinny","Tattoo","Ape","Zombie","Skeleton"];

        check.chanceSkin=[18,36,54,72,90,95,100,100,100,100,100,100];
        check.nameSkin=["Human 1","Human 2","Human 3","Human 4","Human 5","Vampire","Amphibian"];

        check.chanceHairColor=[12,25,37,50,62,76,80,84,88,92,96,100];
        check.nameHairColor=["Gray","Amber","Brown","Blonde","Black","Tan","Red","Pink","Blue","Green","Purple","White"];

        check.chanceShowTop=[99,50,30,30,20,20,10,10,5];
        check.chanceShowGoodie=[8,30,40,4];

        check.topsTotal=[[12,39,22,35,4, 6, 5,5,3],[8,18,20,18,12,10,9,9,4]];


        check.goodiesTotal=[[5,25,19,8],[6,21,19,8]];
        check.nameGoodie=["Mouth","Hat","Eyewear","Special"];


        attr.gender = substring(seedStr,1,2);
        attr.body = substring(seedStr,2,4);
        attr.skin = substring(seedStr,4,6);
        attr.hairColor = substring(seedStr,6,8);
        attr.hair = substring(seedStr,60,62);
        attr.beard = substring(seedStr,62,64);
        attr.face = substring(seedStr,64,66);
        attr.head = substring(seedStr,66,67);

        attr.extURL = string(abi.encodePacked('"external_url":"',baseExtURI,'?s=',seed.toString(),'",'));
        attr.aniURL = string(abi.encodePacked('"animation_url":"',baseAniURI,'?s=',seed.toString(),'",'));
        attr.imgURL = string(abi.encodePacked('"image":"',baseImgURI,tid.toString(),'.png"'));
        attr.name = string(abi.encodePacked('"name":"PEEP #',tid.toString()));

        uint256 num;
        uint256 g;
        
        num = strToUint(attr.gender); 
        g=num%2;
        attr.gender = (num%2).toString();
        
        num = strToUint(attr.body); 
        check.body = getRanResult(num,check.chanceBody);
        attr.body = check.nameBody[check.body];

        num = strToUint(attr.skin); 
        attr.skin = check.nameSkin[getRanResult(num,check.chanceSkin)];

        num = strToUint(attr.hairColor); 
        attr.hairColor = check.nameHairColor[getRanResult(num,check.chanceHairColor)];

        num = strToUint(attr.head);
        attr.head = (num%5).toString();

        num = strToUint(attr.face);
        attr.face = (num%12).toString();

        num = strToUint(attr.hair);
        if (g==0) attr.hair = (num%36).toString();
        else attr.hair = (num%35).toString();

        num = strToUint(attr.beard);
        if (g==0) attr.beard = "0";
        else attr.beard = (num%26).toString();


        ////exceptions for ape/zombie/bone 
        if (check.body>2) attr.head=attr.face=attr.beard=attr.skin=attr.body;

        
        //tops
        uint256 totalTops=0;

        for (uint256 i=0; i<check.chanceShowTop.length; i++){
          num = strToUint(substring(seedStr,8+i*4+2,8+i*4+2+2)); //show
          if (num<check.chanceShowTop[i]) {
            totalTops++;
            num = strToUint(substring(seedStr,8+i*4,8+i*4+2)); //ID
            attr.tops[i]=string(abi.encodePacked('"T#',attr.gender,'-',(num%check.topsTotal[g][i]).toString(),'"'));
          } else attr.tops[i]='"None"';
          attr.tops[i]=string(abi.encodePacked('{"trait_type":"Top Layer ',(i+1).toString(),'","value":',attr.tops[i],'},'));
        }



        //goodies
        uint256 totalGoodies=0;
        for (uint256 i=0; i<check.chanceShowGoodie.length; i++){
          num = strToUint(substring(seedStr,44+i*4+2,44+i*4+2+2)); //show
          if (num<check.chanceShowGoodie[i]) {
            totalGoodies++;
            num = strToUint(substring(seedStr,44+i*4,44+i*4+2)); //ID
            attr.goodies[i]=string(abi.encodePacked('"A#',attr.gender,'-',(num%check.goodiesTotal[g][i]).toString(),'"'));
          } else attr.goodies[i]='"None"';
          attr.goodies[i]=string(abi.encodePacked('{"trait_type":"',check.nameGoodie[i],'","value":',attr.goodies[i],'},'));
        }
       

        attr.topPacked=string(
          abi.encodePacked( 
                            attr.tops[0],attr.tops[1],attr.tops[2],attr.tops[3],attr.tops[4],attr.tops[5],
                            attr.tops[6],attr.tops[7],attr.tops[8]
                           
                       
            )
          );


         string memory moreAttr=string(
          abi.encodePacked( 
                            attr.goodies[0],attr.goodies[1],attr.goodies[2],attr.goodies[3],

                            '{"trait_type":"Top Count","value":',totalTops.toString(),
                            '},{"trait_type":"Accessory Count","value":',totalGoodies.toString(),
                            '},{"trait_type":"Skin","value":"',attr.skin,
                            '"},{"trait_type":"ID","value":"ID #',attr.gender,
                            '"},{"trait_type":"Face","value":"Type ',attr.face,                        
                            '"},'
            )
          );

        string memory moreLastAttr=string(
          abi.encodePacked(
                            '{"trait_type":"Type","value":"',attr.body,
                            '"},{"trait_type":"Hair","value":"Style ',attr.gender,'-',attr.hair,
                            '"},{"trait_type":"Hair Color","value":"',attr.hairColor,
                            '"},{"trait_type":"Head","value":"Type ',attr.head,
                            '"},{"trait_type":"Facial Hair","value":"Style ',attr.beard,                      
                            '"}'
            )
          );

        return string(
                abi.encodePacked(
                    "data:application/json;base64,",
                    Base64.encode(
                        bytes(
                            abi.encodePacked('{',attr.name,
                            '","description":"","attributes":[',
                            attr.topPacked,
                            moreAttr,
                            moreLastAttr,
                            '],',
                            attr.extURL,attr.aniURL,attr.imgURL,
                            '}'
                            )
                        )
                    )
                )
            );
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"addressFreeMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseAniURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseExtURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseImgURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freeMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"freeSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"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":"maxMintPerTx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"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":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"address","name":"_receiver","type":"address"}],"name":"privateMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"seeds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_new","type":"string"}],"name":"setBaseAniURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_new","type":"string"}],"name":"setBaseExtURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_new","type":"string"}],"name":"setBaseImgURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_new","type":"uint256"}],"name":"setCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_new","type":"uint256"}],"name":"setFreeSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_new","type":"uint256"}],"name":"setMaxMintPerTx","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"}]

60a0604052600060809081526007906200001a90826200075d565b506040805160208101909152600081526008906200003990826200075d565b506040805160208101909152600081526009906200005890826200075d565b50660aa87bee538000600a55612710600b5561270f600c556014600d55600e805460ff191690553480156200008c57600080fd5b506040518060400160405280600b81526020016a2822a2a837b721a420a4a760a91b81525060405180604001604052806002815260200161050560f41b8152508160009081620000dd91906200075d565b506001620000ec82826200075d565b50505062000109620001036200011c60201b60201c565b62000120565b62000116600a3362000172565b62000933565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b81600081118015620001865750600d548111155b620001d85760405162461bcd60e51b815260206004820152601360248201527f496e76616c6964206d696e7420616d6f756e740000000000000000000000000060448201526064015b60405180910390fd5b600b5481620001f36011620002bc60201b620014061760201c565b620001ff91906200083f565b11156200024f5760405162461bcd60e51b815260206004820152601760248201527f4d6178204e465420737570706c792065786365656465640000000000000000006044820152606401620001cf565b6006546001600160a01b03163314620002ab5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401620001cf565b620002b78284620002c0565b505050565b5490565b60015b818111620002b757620002e260116200036460201b6200140a1760201c565b6000620002fb6011620002bc60201b620014061760201c565b90506200030984826200036d565b620003166001436200085b565b6040805191406020830152810182905260600160408051601f1981840301815291815281516020928301206000938452601090925290912055806200035b8162000871565b915050620002c3565b80546001019055565b6200038f8282604051806020016040528060008152506200039360201b60201c565b5050565b6200039f838362000406565b620003ae60008484846200054e565b620002b75760405162461bcd60e51b8152602060048201526032602482015260008051602062004cf683398151915260448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401620001cf565b6001600160a01b0382166200045e5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401620001cf565b6000818152600260205260409020546001600160a01b031615620004c55760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401620001cf565b6001600160a01b0382166000908152600360205260408120805460019290620004f09084906200083f565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006200056f846001600160a01b0316620006aa60201b620014131760201c565b156200069e57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290620005a99033908990889088906004016200088d565b6020604051808303816000875af1925050508015620005e7575060408051601f3d908101601f19168201909252620005e49181019062000900565b60015b62000683573d80801562000618576040519150601f19603f3d011682016040523d82523d6000602084013e6200061d565b606091505b5080516000036200067b5760405162461bcd60e51b8152602060048201526032602482015260008051602062004cf683398151915260448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401620001cf565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050620006a2565b5060015b949350505050565b6001600160a01b03163b151590565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620006e457607f821691505b6020821081036200070557634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620002b757600081815260208120601f850160051c81016020861015620007345750805b601f850160051c820191505b81811015620007555782815560010162000740565b505050505050565b81516001600160401b03811115620007795762000779620006b9565b62000791816200078a8454620006cf565b846200070b565b602080601f831160018114620007c95760008415620007b05750858301515b600019600386901b1c1916600185901b17855562000755565b600085815260208120601f198616915b82811015620007fa57888601518255948401946001909101908401620007d9565b5085821015620008195787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b8082018082111562000855576200085562000829565b92915050565b8181038181111562000855576200085562000829565b60006001820162000886576200088662000829565b5060010190565b600060018060a01b038087168352602081871681850152856040850152608060608501528451915081608085015260005b82811015620008dc5785810182015185820160a001528101620008be565b5050600060a0828501015260a0601f19601f83011684010191505095945050505050565b6000602082840312156200091357600080fd5b81516001600160e01b0319811681146200092c57600080fd5b9392505050565b6143b380620009436000396000f3fe60806040526004361061023b5760003560e01c806364eed1c21161012e578063bef870ca116100ab578063e8a3d4851161006f578063e8a3d48514610657578063e985e9c51461066c578063f0503e801461068c578063f2fde38b146106b9578063f676308a146106d957600080fd5b8063bef870ca146105d6578063c81678bb146105f6578063c87b56dd1461060b578063d5abeb011461062b578063de7fcb1d1461064157600080fd5b806395d89b41116100f257806395d89b411461054e578063a0712d6814610563578063a22cb46514610576578063b88d4fde14610596578063bbee1def146105b657600080fd5b806364eed1c2146104bb57806367034fbe146104db57806370a08231146104fb578063715018a61461051b5780638da5cb5b1461053057600080fd5b806342842e0e116101bc5780635ab52dc6116101805780635ab52dc6146104375780635b70ea9f1461044c5780635c975abb14610461578063616cdb1e1461047b5780636352211e1461049b57600080fd5b806342842e0e14610388578063438b6300146103a857806344a0d68a146103d557806345374bf2146103f557806357b9aee41461042257600080fd5b806313faede61161020357806313faede61461031157806318160ddd1461033557806323b872dd1461034a57806324a6ab0c1461036a5780633ccfd60b1461038057600080fd5b806301ffc9a71461024057806302329a291461027557806306fdde0314610297578063081812fc146102b9578063095ea7b3146102f1575b600080fd5b34801561024c57600080fd5b5061026061025b3660046132fc565b6106f9565b60405190151581526020015b60405180910390f35b34801561028157600080fd5b50610295610290366004613335565b61074b565b005b3480156102a357600080fd5b506102ac610791565b60405161026c91906133a0565b3480156102c557600080fd5b506102d96102d43660046133b3565b610823565b6040516001600160a01b03909116815260200161026c565b3480156102fd57600080fd5b5061029561030c3660046133e3565b6108b8565b34801561031d57600080fd5b50610327600a5481565b60405190815260200161026c565b34801561034157600080fd5b506103276109cd565b34801561035657600080fd5b5061029561036536600461340d565b6109dd565b34801561037657600080fd5b50610327600c5481565b610295610a0e565b34801561039457600080fd5b506102956103a336600461340d565b610a90565b3480156103b457600080fd5b506103c86103c3366004613449565b610aab565b60405161026c9190613464565b3480156103e157600080fd5b506102956103f03660046133b3565b610b8b565b34801561040157600080fd5b50610327610410366004613449565b600f6020526000908152604090205481565b34801561042e57600080fd5b506102ac610bba565b34801561044357600080fd5b506102ac610c48565b34801561045857600080fd5b50610295610c55565b34801561046d57600080fd5b50600e546102609060ff1681565b34801561048757600080fd5b506102956104963660046133b3565b610d8c565b3480156104a757600080fd5b506102d96104b63660046133b3565b610dbb565b3480156104c757600080fd5b506102956104d6366004613534565b610e32565b3480156104e757600080fd5b506102956104f6366004613534565b610e6c565b34801561050757600080fd5b50610327610516366004613449565b610ea2565b34801561052757600080fd5b50610295610f29565b34801561053c57600080fd5b506006546001600160a01b03166102d9565b34801561055a57600080fd5b506102ac610f5f565b6102956105713660046133b3565b610f6e565b34801561058257600080fd5b5061029561059136600461357d565b6110be565b3480156105a257600080fd5b506102956105b13660046135b0565b6110c9565b3480156105c257600080fd5b506102956105d1366004613534565b611101565b3480156105e257600080fd5b506102956105f136600461362c565b611137565b34801561060257600080fd5b506102ac61121f565b34801561061757600080fd5b506102ac6106263660046133b3565b61122c565b34801561063757600080fd5b50610327600b5481565b34801561064d57600080fd5b50610327600d5481565b34801561066357600080fd5b506102ac6112a0565b34801561067857600080fd5b5061026061068736600461364f565b6112c0565b34801561069857600080fd5b506103276106a73660046133b3565b60106020526000908152604090205481565b3480156106c557600080fd5b506102956106d4366004613449565b6112ee565b3480156106e557600080fd5b506102956106f43660046133b3565b611386565b60006001600160e01b031982166380ac58cd60e01b148061072a57506001600160e01b03198216635b5e139f60e01b145b8061074557506301ffc9a760e01b6001600160e01b03198316145b92915050565b6006546001600160a01b0316331461077e5760405162461bcd60e51b815260040161077590613679565b60405180910390fd5b600e805460ff1916911515919091179055565b6060600080546107a0906136ae565b80601f01602080910402602001604051908101604052809291908181526020018280546107cc906136ae565b80156108195780601f106107ee57610100808354040283529160200191610819565b820191906000526020600020905b8154815290600101906020018083116107fc57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b031661089c5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610775565b506000908152600460205260409020546001600160a01b031690565b60006108c382610dbb565b9050806001600160a01b0316836001600160a01b0316036109305760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610775565b336001600160a01b038216148061094c575061094c81336112c0565b6109be5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610775565b6109c88383611422565b505050565b60006109d860115490565b905090565b6109e73382611490565b610a035760405162461bcd60e51b8152600401610775906136e2565b6109c8838383611567565b6006546001600160a01b03163314610a385760405162461bcd60e51b815260040161077590613679565b604051600090339047908381818185875af1925050503d8060008114610a7a576040519150601f19603f3d011682016040523d82523d6000602084013e610a7f565b606091505b5050905080610a8d57600080fd5b50565b6109c8838383604051806020016040528060008152506110c9565b60606000610ab883610ea2565b905060008167ffffffffffffffff811115610ad557610ad56134a8565b604051908082528060200260200182016040528015610afe578160200160208202803683370190505b509050600160005b8381108015610b175750600b548211155b15610b81576000610b2783610dbb565b9050866001600160a01b0316816001600160a01b031603610b6e5782848381518110610b5557610b55613733565b602090810291909101015281610b6a8161375f565b9250505b82610b788161375f565b93505050610b06565b5090949350505050565b6006546001600160a01b03163314610bb55760405162461bcd60e51b815260040161077590613679565b600a55565b60098054610bc7906136ae565b80601f0160208091040260200160405190810160405280929190818152602001828054610bf3906136ae565b8015610c405780601f10610c1557610100808354040283529160200191610c40565b820191906000526020600020905b815481529060010190602001808311610c2357829003601f168201915b505050505081565b60088054610bc7906136ae565b600e5460ff1615610c965760405162461bcd60e51b815260206004820152600b60248201526a135a5b9d0814185d5cd95960aa1b6044820152606401610775565b600c54601154610ca7906001613778565b1115610cf55760405162461bcd60e51b815260206004820152601c60248201527f4d61782046726565204e465420737570706c79206578636565646564000000006044820152606401610775565b336000908152600f6020526040902054600111610d5f5760405162461bcd60e51b815260206004820152602260248201527f4f6e6c7920312046726565204e4654207065722077616c6c657420616c6c6f77604482015261195960f21b6064820152608401610775565b610d6a336001611703565b336000908152600f60205260408120805491610d858361375f565b9190505550565b6006546001600160a01b03163314610db65760405162461bcd60e51b815260040161077590613679565b600d55565b6000818152600260205260408120546001600160a01b0316806107455760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610775565b6006546001600160a01b03163314610e5c5760405162461bcd60e51b815260040161077590613679565b6009610e6882826137d9565b5050565b6006546001600160a01b03163314610e965760405162461bcd60e51b815260040161077590613679565b6008610e6882826137d9565b60006001600160a01b038216610f0d5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610775565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b03163314610f535760405162461bcd60e51b815260040161077590613679565b610f5d6000611788565b565b6060600180546107a0906136ae565b80600081118015610f815750600d548111155b610fc35760405162461bcd60e51b8152602060048201526013602482015272125b9d985b1a59081b5a5b9d08185b5bdd5b9d606a1b6044820152606401610775565b600b5481610fd060115490565b610fda9190613778565b11156110225760405162461bcd60e51b815260206004820152601760248201527613585e08139195081cdd5c1c1b1e48195e18d959591959604a1b6044820152606401610775565b600e5460ff16156110635760405162461bcd60e51b815260206004820152600b60248201526a135a5b9d0814185d5cd95960aa1b6044820152606401610775565b81600a546110719190613899565b3410156110b45760405162461bcd60e51b8152602060048201526011602482015270125b9cdd59999a58da595b9d08199d5b99607a1b6044820152606401610775565b610e683383611703565b610e683383836117da565b6110d33383611490565b6110ef5760405162461bcd60e51b8152600401610775906136e2565b6110fb848484846118a8565b50505050565b6006546001600160a01b0316331461112b5760405162461bcd60e51b815260040161077590613679565b6007610e6882826137d9565b8160008111801561114a5750600d548111155b61118c5760405162461bcd60e51b8152602060048201526013602482015272125b9d985b1a59081b5a5b9d08185b5bdd5b9d606a1b6044820152606401610775565b600b548161119960115490565b6111a39190613778565b11156111eb5760405162461bcd60e51b815260206004820152601760248201527613585e08139195081cdd5c1c1b1e48195e18d959591959604a1b6044820152606401610775565b6006546001600160a01b031633146112155760405162461bcd60e51b815260040161077590613679565b6109c88284611703565b60078054610bc7906136ae565b6000818152600260205260409020546060906001600160a01b03166112865760405162461bcd60e51b815260206004820152601060248201526f546f6b656e206e6f7420666f756e642160801b6044820152606401610775565b6000828152601060205260409020546107459083906118db565b606060405180606001604052806035815260200161430960359139905090565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6006546001600160a01b031633146113185760405162461bcd60e51b815260040161077590613679565b6001600160a01b03811661137d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610775565b610a8d81611788565b6006546001600160a01b031633146113b05760405162461bcd60e51b815260040161077590613679565b600b5481106114015760405162461bcd60e51b815260206004820152601f60248201527f4d75737420626520736d616c6c6572207468616e204d617820537570706c79006044820152606401610775565b600c55565b5490565b80546001019055565b6001600160a01b03163b151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061145782610dbb565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166115095760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610775565b600061151483610dbb565b9050806001600160a01b0316846001600160a01b0316148061154f5750836001600160a01b031661154484610823565b6001600160a01b0316145b8061155f575061155f81856112c0565b949350505050565b826001600160a01b031661157a82610dbb565b6001600160a01b0316146115de5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610775565b6001600160a01b0382166116405760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610775565b61164b600082611422565b6001600160a01b03831660009081526003602052604081208054600192906116749084906138b0565b90915550506001600160a01b03821660009081526003602052604081208054600192906116a2908490613778565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60015b8181116109c85761171b601180546001019055565b600061172660115490565b905061173284826129de565b61173d6001436138b0565b6040805191406020830152810182905260600160408051601f1981840301815291815281516020928301206000938452601090925290912055806117808161375f565b915050611706565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b03160361183b5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610775565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6118b3848484611567565b6118bf848484846129f8565b6110fb5760405162461bcd60e51b8152600401610775906138c3565b60606118e561307a565b6118ed6130fc565b60006118f885612af9565b9050604051806101800160405280602860ff168152602001604860ff168152602001605c60ff168152602001606160ff168152602001606360ff168152602001606460ff168152602001606460ff168152602001606460ff168152602001606460ff168152602001606460ff168152602001606460ff168152602001606460ff1681525082600001819052506040518060c0016040528060405180604001604052806006815260200165139bdc9b585b60d21b815250815260200160405180604001604052806006815260200165536b696e6e7960d01b815250815260200160405180604001604052806006815260200165546174746f6f60d01b81525081526020016040518060400160405280600381526020016241706560e81b8152508152602001604051806040016040528060068152602001655a6f6d62696560d01b81525081526020016040518060400160405280600881526020016729b5b2b632ba37b760c11b8152508152508260200181905250604051806101800160405280601260ff168152602001602460ff168152602001603660ff168152602001604860ff168152602001605a60ff168152602001605f60ff168152602001606460ff168152602001606460ff168152602001606460ff168152602001606460ff168152602001606460ff168152602001606460ff1681525082604001819052506040518060e001604052806040518060400160405280600781526020016648756d616e203160c81b815250815260200160405180604001604052806007815260200166243ab6b0b7101960c91b81525081526020016040518060400160405280600781526020016648756d616e203360c81b815250815260200160405180604001604052806007815260200166121d5b585b880d60ca1b81525081526020016040518060400160405280600781526020016648756d616e203560c81b81525081526020016040518060400160405280600781526020016656616d7069726560c81b81525081526020016040518060400160405280600981526020016820b6b83434b134b0b760b91b8152508152508260600181905250604051806101800160405280600c60ff168152602001601960ff168152602001602560ff168152602001603260ff168152602001603e60ff168152602001604c60ff168152602001605060ff168152602001605460ff168152602001605860ff168152602001605c60ff168152602001606060ff168152602001606460ff168152508260800181905250604051806101800160405280604051806040016040528060048152602001634772617960e01b81525081526020016040518060400160405280600581526020016420b6b132b960d91b815250815260200160405180604001604052806005815260200164213937bbb760d91b815250815260200160405180604001604052806006815260200165426c6f6e646560d01b815250815260200160405180604001604052806005815260200164426c61636b60d81b8152508152602001604051806040016040528060038152602001622a30b760e91b81525081526020016040518060400160405280600381526020016214995960ea1b81525081526020016040518060400160405280600481526020016350696e6b60e01b815250815260200160405180604001604052806004815260200163426c756560e01b81525081526020016040518060400160405280600581526020016423b932b2b760d91b815250815260200160405180604001604052806006815260200165507572706c6560d01b815250815260200160405180604001604052806005815260200164576869746560d81b8152508152508260a00181905250604051806101200160405280606360ff168152602001603260ff168152602001601e60ff168152602001601e60ff168152602001601460ff168152602001601460ff168152602001600a60ff168152602001600a60ff168152602001600560ff168152508260c001819052506040518060800160405280600860ff168152602001601e60ff168152602001602860ff168152602001600460ff168152508260e001819052506040518060400160405280604051806101200160405280600c60ff168152602001602760ff168152602001601660ff168152602001602360ff168152602001600460ff168152602001600660ff168152602001600560ff168152602001600560ff168152602001600360ff168152508152602001604051806101200160405280600860ff168152602001601260ff168152602001601460ff168152602001601260ff168152602001600c60ff168152602001600a60ff168152602001600960ff168152602001600960ff168152602001600460ff1681525081525082610100018190525060405180604001604052806040518060800160405280600560ff168152602001601960ff168152602001601360ff168152602001600860ff1681525081526020016040518060800160405280600660ff168152602001601560ff168152602001601360ff168152602001600860ff1681525081525082610120018190525060405180608001604052806040518060400160405280600581526020016409adeeae8d60db1b81525081526020016040518060400160405280600381526020016212185d60ea1b81525081526020016040518060400160405280600781526020016622bcb2bbb2b0b960c91b81525081526020016040518060400160405280600781526020016614dc1958da585b60ca1b8152508152508261014001819052506120fb8160016002612bfa565b835261210a8160026004612bfa565b602084015261211c8160046006612bfa565b604084015261212e8160066008612bfa565b606084015261214081603c603e612bfa565b608084015261215281603e6040612bfa565b60a08401526121648160406042612bfa565b60c08401526121768160426043612bfa565b60e0840152600761218686612af9565b6040516020016121979291906139a4565b60408051601f1981840301815291905261010084015260096121b886612af9565b6040516020016121c9929190613a00565b60408051601f1981840301815291905261012084015260086121ea87612af9565b6040516020016121fb929190613a26565b60408051601f1981840301815291905261014084015261221a86612af9565b60405160200161222a9190613a6d565b60408051601f198184030181529190526101608401528251600090819061225090612cc7565b915061225d600283613aba565b905061227261226d600284613aba565b612af9565b8552602085015161228290612cc7565b9150612292828560000151612d4f565b6101608501819052602085015190600681106122b0576122b0613733565b602002015185602001819052506122ca8560400151612cc7565b915083606001516122df838660400151612d4f565b600781106122ef576122ef613733565b60200201516040860152606085015161230790612cc7565b91508360a0015161231c838660800151612d4f565b600c811061232c5761232c613733565b6020020151606086015260e085015161234490612cc7565b915061235461226d600584613aba565b60e086015260c085015161236790612cc7565b915061237761226d600c84613aba565b60c0860152608085015161238a90612cc7565b9150806000036123ac576123a261226d602484613aba565b60808601526123c0565b6123ba61226d602384613aba565b60808601525b6123cd8560a00151612cc7565b9150806000036123f9576040805180820190915260018152600360fc1b602082015260a086015261240d565b61240761226d601a84613aba565b60a08601525b6002846101600151111561243b5760208501516040860181905260a0860181905260c0860181905260e08601525b6000805b600981101561264c576124a66124a18661245a846004613899565b612465906008613778565b612470906002613778565b61247b856004613899565b612486906008613778565b612491906002613778565b61249c906002613778565b612bfa565b612cc7565b93508560c0015181600981106124be576124be613733565b602002015160ff1684101561259857816124d78161375f565b925061250e90506124a1866124ed846004613899565b6124f8906008613778565b612503856004613899565b612491906008613778565b93508660000151612557876101000151856002811061252f5761252f613733565b6020020151836009811061254557612545613733565b602002015161226d9060ff1687613aba565b604051602001612568929190613ace565b604051602081830303815290604052876101800151826009811061258e5761258e613733565b60200201526125d4565b60405180604001604052806006815260200165112737b7329160d11b81525087610180015182600981106125ce576125ce613733565b60200201525b6125e261226d826001613778565b87610180015182600981106125f9576125f9613733565b602002015160405160200161260f929190613b28565b604051602081830303815290604052876101800151826009811061263557612635613733565b6020020152806126448161375f565b91505061243f565b506000805b600481101561284c576126986124a18761266c846004613899565b61267790602c613778565b612682906002613778565b61268d856004613899565b61248690602c613778565b94508660e0015181600481106126b0576126b0613733565b602002015160ff1685101561278a57816126c98161375f565b925061270090506124a1876126df846004613899565b6126ea90602c613778565b6126f5856004613899565b61249190602c613778565b94508760000151612749886101200151866002811061272157612721613733565b6020020151836004811061273757612737613733565b602002015161226d9060ff1688613aba565b60405160200161275a929190613ba5565b604051602081830303815290604052886101a00151826004811061278057612780613733565b60200201526127c6565b60405180604001604052806006815260200165112737b7329160d11b815250886101a0015182600481106127c0576127c0613733565b60200201525b86610140015181600481106127dd576127dd613733565b6020020151886101a0015182600481106127f9576127f9613733565b602002015160405160200161280f929190613bc4565b604051602081830303815290604052886101a00151826004811061283557612835613733565b6020020152806128448161375f565b915050612651565b5061018087015180516020808301516040808501516060860151608087015160a088015160c089015160e08a0151610100909a0151955161289b9a979895979496939592949193919201613c34565b60408051808303601f190181529181526101c08901919091526101a088015180516020820151928201516060909201516000939192906128da87612af9565b6128e387612af9565b8d604001518e600001518f60c0015160405160200161290a99989796959493929190613cf5565b60405160208183030381529060405290506000886020015189600001518a608001518b606001518c60e001518d60a0015160405160200161295096959493929190613ebc565b60405160208183030381529060405290506129ae8961016001518a6101c0015184848d61010001518e61012001518f610140015160405160200161299a9796959493929190614059565b604051602081830303815290604052612da0565b6040516020016129be919061414c565b604051602081830303815290604052995050505050505050505092915050565b610e68828260405180602001604052806000815250612f05565b60006001600160a01b0384163b15612aee57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612a3c903390899088908890600401614191565b6020604051808303816000875af1925050508015612a77575060408051601f3d908101601f19168201909252612a74918101906141ce565b60015b612ad4573d808015612aa5576040519150601f19603f3d011682016040523d82523d6000602084013e612aaa565b606091505b508051600003612acc5760405162461bcd60e51b8152600401610775906138c3565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061155f565b506001949350505050565b606081600003612b205750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612b4a5780612b348161375f565b9150612b439050600a836141eb565b9150612b24565b60008167ffffffffffffffff811115612b6557612b656134a8565b6040519080825280601f01601f191660200182016040528015612b8f576020820181803683370190505b5090505b841561155f57612ba46001836138b0565b9150612bb1600a86613aba565b612bbc906030613778565b60f81b818381518110612bd157612bd1613733565b60200101906001600160f81b031916908160001a905350612bf3600a866141eb565b9450612b93565b6060836000612c0985856138b0565b67ffffffffffffffff811115612c2157612c216134a8565b6040519080825280601f01601f191660200182016040528015612c4b576020820181803683370190505b509050845b84811015612cbd57828181518110612c6a57612c6a613733565b01602001516001600160f81b03191682612c8488846138b0565b81518110612c9457612c94613733565b60200101906001600160f81b031916908160001a90535080612cb58161375f565b915050612c50565b5095945050505050565b6000805b8251811015612d49576001818451612ce391906138b0565b612ced91906138b0565b612cf890600a6142e3565b6030848381518110612d0c57612d0c613733565b0160200151612d1e919060f81c6142ef565b60ff16612d2b9190613899565b612d359083613778565b915080612d418161375f565b915050612ccb565b50919050565b6000805b600c811015612d96578281600c8110612d6e57612d6e613733565b602002015160ff16841015612d84579050610745565b80612d8e8161375f565b915050612d53565b5060009392505050565b60608151600003612dbf57505060408051602081019091526000815290565b600060405180606001604052806040815260200161433e6040913990506000600384516002612dee9190613778565b612df891906141eb565b612e03906004613899565b90506000612e12826020613778565b67ffffffffffffffff811115612e2a57612e2a6134a8565b6040519080825280601f01601f191660200182016040528015612e54576020820181803683370190505b509050818152600183018586518101602084015b81831015612ec0576003830192508251603f8160121c168501518253600182019150603f81600c1c168501518253600182019150603f8160061c168501518253600182019150603f8116850151825350600101612e68565b600389510660018114612eda5760028114612eeb57612ef7565b613d3d60f01b600119830152612ef7565b603d60f81b6000198301525b509398975050505050505050565b612f0f8383612f38565b612f1c60008484846129f8565b6109c85760405162461bcd60e51b8152600401610775906138c3565b6001600160a01b038216612f8e5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610775565b6000818152600260205260409020546001600160a01b031615612ff35760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610775565b6001600160a01b038216600090815260036020526040812080546001929061301c908490613778565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b604051806101e001604052806060815260200160608152602001606081526020016060815260200160608152602001606081526020016060815260200160608152602001606081526020016060815260200160608152602001606081526020016130e261319f565b81526020016130ef6131c7565b8152602001606081525090565b6040518061018001604052806131106131e1565b815260200161311d613200565b815260200161312a6131e1565b815260200161313761321a565b81526020016131446131e1565b8152602001613151613234565b815260200161315e61324f565b815260200161316b61326e565b815260200161317861328c565b81526020016131856132b9565b81526020016131926131c7565b8152602001600081525090565b6040518061012001604052806009905b60608152602001906001900390816131af5790505090565b6040805160808101909152606081526003602082016131af565b604051806101800160405280600c906020820280368337509192915050565b6040805160c08101909152606081526005602082016131af565b6040805160e08101909152606081526006602082016131af565b60408051610180810190915260608152600b602082016131af565b6040518061012001604052806009906020820280368337509192915050565b60405180608001604052806004906020820280368337509192915050565b60405180604001604052806002905b6132a361324f565b81526020019060019003908161329b5790505090565b60405180604001604052806002905b6132d061326e565b8152602001906001900390816132c85790505090565b6001600160e01b031981168114610a8d57600080fd5b60006020828403121561330e57600080fd5b8135613319816132e6565b9392505050565b8035801515811461333057600080fd5b919050565b60006020828403121561334757600080fd5b61331982613320565b60005b8381101561336b578181015183820152602001613353565b50506000910152565b6000815180845261338c816020860160208601613350565b601f01601f19169290920160200192915050565b6020815260006133196020830184613374565b6000602082840312156133c557600080fd5b5035919050565b80356001600160a01b038116811461333057600080fd5b600080604083850312156133f657600080fd5b6133ff836133cc565b946020939093013593505050565b60008060006060848603121561342257600080fd5b61342b846133cc565b9250613439602085016133cc565b9150604084013590509250925092565b60006020828403121561345b57600080fd5b613319826133cc565b6020808252825182820181905260009190848201906040850190845b8181101561349c57835183529284019291840191600101613480565b50909695505050505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff808411156134d9576134d96134a8565b604051601f8501601f19908116603f01168101908282118183101715613501576135016134a8565b8160405280935085815286868601111561351a57600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561354657600080fd5b813567ffffffffffffffff81111561355d57600080fd5b8201601f8101841361356e57600080fd5b61155f848235602084016134be565b6000806040838503121561359057600080fd5b613599836133cc565b91506135a760208401613320565b90509250929050565b600080600080608085870312156135c657600080fd5b6135cf856133cc565b93506135dd602086016133cc565b925060408501359150606085013567ffffffffffffffff81111561360057600080fd5b8501601f8101871361361157600080fd5b613620878235602084016134be565b91505092959194509250565b6000806040838503121561363f57600080fd5b823591506135a7602084016133cc565b6000806040838503121561366257600080fd5b61366b836133cc565b91506135a7602084016133cc565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c908216806136c257607f821691505b602082108103612d4957634e487b7160e01b600052602260045260246000fd5b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006001820161377157613771613749565b5060010190565b8082018082111561074557610745613749565b601f8211156109c857600081815260208120601f850160051c810160208610156137b25750805b601f850160051c820191505b818110156137d1578281556001016137be565b505050505050565b815167ffffffffffffffff8111156137f3576137f36134a8565b6138078161380184546136ae565b8461378b565b602080601f83116001811461383c57600084156138245750858301515b600019600386901b1c1916600185901b1785556137d1565b600085815260208120601f198616915b8281101561386b5788860151825594840194600190910190840161384c565b50858210156138895787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b808202811582820484141761074557610745613749565b8181038181111561074557610745613749565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60008154613922816136ae565b6001828116801561393a576001811461394f5761397e565b60ff198416875282151583028701945061397e565b8560005260208060002060005b858110156139755781548a82015290840190820161395c565b50505082870194505b5050505092915050565b6000815161399a818560208601613350565b9290920192915050565b6f1132bc3a32b93730b62fbab936111d1160811b815260006139c96010830185613915565b623f733d60e81b815283516139e5816003840160208801613350565b61088b60f21b60039290910191820152600501949350505050565b701130b734b6b0ba34b7b72fbab936111d1160791b815260006139c96011830185613915565b681134b6b0b3b2911d1160b91b81526000613a446009830185613915565b8351613a54818360208801613350565b64173837339160d91b9101908152600501949350505050565b6d226e616d65223a2250454550202360901b81528151600090613a9781600e850160208701613350565b91909101600e0192915050565b634e487b7160e01b600052601260045260246000fd5b600082613ac957613ac9613aa4565b500690565b6222542360e81b81528251600090613aed816003850160208801613350565b602d60f81b6003918401918201528351613b0e816004840160208801613350565b601160f91b60049290910191820152600501949350505050565b7f7b2274726169745f74797065223a22546f70204c617965722000000000000000815260008351613b60816019850160208801613350565b691116113b30b63ab2911d60b11b6019918401918201528351613b8a816023840160208801613350565b611f4b60f21b60239290910191820152602501949350505050565b6222412360e81b81528251600090613aed816003850160208801613350565b6e3d913a3930b4ba2fba3cb832911d1160891b81528251600090613bef81600f850160208801613350565b691116113b30b63ab2911d60b11b600f918401918201528351613c19816019840160208801613350565b611f4b60f21b60199290910191820152601b01949350505050565b60008a51613c46818460208f01613350565b8a51613c588183860160208f01613350565b8a519184010190613c6d818360208e01613350565b8951613c7f8183850160208e01613350565b8951929091010190613c95818360208c01613350565b8751613ca78183850160208c01613350565b8751929091010190613cbd818360208a01613350565b8551613ccf8183850160208a01613350565b8551929091010190613ce5818360208801613350565b019b9a5050505050505050505050565b60008a51613d07818460208f01613350565b8a5190830190613d1b818360208f01613350565b8a51910190613d2e818360208e01613350565b8951910190613d41818360208d01613350565b8082019150507f7b2274726169745f74797065223a22546f7020436f756e74222c2276616c7565815261111d60f11b60208201528751613d88816022840160208c01613350565b7f7d2c7b2274726169745f74797065223a224163636573736f727920436f756e7460229290910191820152691116113b30b63ab2911d60b11b60428201528651613dd981604c840160208b01613350565b613eab613e9c613e96613e5e613e58613e23613e1d604c888a01017f7d2c7b2274726169745f74797065223a22536b696e222c2276616c7565223a22815260200190565b8d613988565b7f227d2c7b2274726169745f74797065223a224944222c2276616c7565223a224981526244202360e81b602082015260230190565b8a613988565b7f227d2c7b2274726169745f74797065223a2246616365222c2276616c7565223a8152650112a3cb832960d51b602082015260260190565b87613988565b62089f4b60ea1b815260030190565b9d9c50505050505050505050505050565b7f7b2274726169745f74797065223a2254797065222c2276616c7565223a220000815260008751613ef481601e850160208c01613350565b7f227d2c7b2274726169745f74797065223a2248616972222c2276616c7565223a601e918401918201526601129ba3cb632960cd1b603e8201528751613f41816045840160208c01613350565b602d60f81b604592909101918201528651613f63816046840160208b01613350565b7f227d2c7b2274726169745f74797065223a224861697220436f6c6f72222c2276604692909101918201526630b63ab2911d1160c91b606682015261404c61403e614038613ff8613ff2613fba606d87018c613988565b7f227d2c7b2274726169745f74797065223a2248656164222c2276616c7565223a8152650112a3cb832960d51b602082015260260190565b89613988565b7f227d2c7b2274726169745f74797065223a2246616369616c2048616972222c2281526d03b30b63ab2911d1129ba3cb632960951b6020820152602e0190565b86613988565b61227d60f01b815260020190565b9998505050505050505050565b607b60f81b81526000885160206140768260018601838e01613350565b7f222c226465736372697074696f6e223a22222c2261747472696275746573223a600192850192830152605b60f81b602183015289516140bc8160228501848e01613350565b89519201916140d18160228501848d01613350565b88519201916140e68160228501848c01613350565b61174b60f21b6022939091019283015286516141088160248501848b01613350565b865192019161411d8160248501848a01613350565b61413c61412f60248386010188613988565b607d60f81b815260010190565b9c9b505050505050505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161418481601d850160208701613350565b91909101601d0192915050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906141c490830184613374565b9695505050505050565b6000602082840312156141e057600080fd5b8151613319816132e6565b6000826141fa576141fa613aa4565b500490565b600181815b8085111561423a57816000190482111561422057614220613749565b8085161561422d57918102915b93841c9390800290614204565b509250929050565b60008261425157506001610745565b8161425e57506000610745565b8160018114614274576002811461427e5761429a565b6001915050610745565b60ff84111561428f5761428f613749565b50506001821b610745565b5060208310610133831016604e8410600b84101617156142bd575081810a610745565b6142c783836141ff565b80600019048211156142db576142db613749565b029392505050565b60006133198383614242565b60ff82811682821603908111156107455761074561374956fe697066733a2f2f516d5633676153757475587644616159433539556678485551755a64776f455862316b5864475755533679504d594142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220c1d9fa30dea52b9793810a19bb691e82406b7fe38ac05d9720276e294fa4239364736f6c634300081100334552433732313a207472616e7366657220746f206e6f6e204552433732315265

Deployed Bytecode

0x60806040526004361061023b5760003560e01c806364eed1c21161012e578063bef870ca116100ab578063e8a3d4851161006f578063e8a3d48514610657578063e985e9c51461066c578063f0503e801461068c578063f2fde38b146106b9578063f676308a146106d957600080fd5b8063bef870ca146105d6578063c81678bb146105f6578063c87b56dd1461060b578063d5abeb011461062b578063de7fcb1d1461064157600080fd5b806395d89b41116100f257806395d89b411461054e578063a0712d6814610563578063a22cb46514610576578063b88d4fde14610596578063bbee1def146105b657600080fd5b806364eed1c2146104bb57806367034fbe146104db57806370a08231146104fb578063715018a61461051b5780638da5cb5b1461053057600080fd5b806342842e0e116101bc5780635ab52dc6116101805780635ab52dc6146104375780635b70ea9f1461044c5780635c975abb14610461578063616cdb1e1461047b5780636352211e1461049b57600080fd5b806342842e0e14610388578063438b6300146103a857806344a0d68a146103d557806345374bf2146103f557806357b9aee41461042257600080fd5b806313faede61161020357806313faede61461031157806318160ddd1461033557806323b872dd1461034a57806324a6ab0c1461036a5780633ccfd60b1461038057600080fd5b806301ffc9a71461024057806302329a291461027557806306fdde0314610297578063081812fc146102b9578063095ea7b3146102f1575b600080fd5b34801561024c57600080fd5b5061026061025b3660046132fc565b6106f9565b60405190151581526020015b60405180910390f35b34801561028157600080fd5b50610295610290366004613335565b61074b565b005b3480156102a357600080fd5b506102ac610791565b60405161026c91906133a0565b3480156102c557600080fd5b506102d96102d43660046133b3565b610823565b6040516001600160a01b03909116815260200161026c565b3480156102fd57600080fd5b5061029561030c3660046133e3565b6108b8565b34801561031d57600080fd5b50610327600a5481565b60405190815260200161026c565b34801561034157600080fd5b506103276109cd565b34801561035657600080fd5b5061029561036536600461340d565b6109dd565b34801561037657600080fd5b50610327600c5481565b610295610a0e565b34801561039457600080fd5b506102956103a336600461340d565b610a90565b3480156103b457600080fd5b506103c86103c3366004613449565b610aab565b60405161026c9190613464565b3480156103e157600080fd5b506102956103f03660046133b3565b610b8b565b34801561040157600080fd5b50610327610410366004613449565b600f6020526000908152604090205481565b34801561042e57600080fd5b506102ac610bba565b34801561044357600080fd5b506102ac610c48565b34801561045857600080fd5b50610295610c55565b34801561046d57600080fd5b50600e546102609060ff1681565b34801561048757600080fd5b506102956104963660046133b3565b610d8c565b3480156104a757600080fd5b506102d96104b63660046133b3565b610dbb565b3480156104c757600080fd5b506102956104d6366004613534565b610e32565b3480156104e757600080fd5b506102956104f6366004613534565b610e6c565b34801561050757600080fd5b50610327610516366004613449565b610ea2565b34801561052757600080fd5b50610295610f29565b34801561053c57600080fd5b506006546001600160a01b03166102d9565b34801561055a57600080fd5b506102ac610f5f565b6102956105713660046133b3565b610f6e565b34801561058257600080fd5b5061029561059136600461357d565b6110be565b3480156105a257600080fd5b506102956105b13660046135b0565b6110c9565b3480156105c257600080fd5b506102956105d1366004613534565b611101565b3480156105e257600080fd5b506102956105f136600461362c565b611137565b34801561060257600080fd5b506102ac61121f565b34801561061757600080fd5b506102ac6106263660046133b3565b61122c565b34801561063757600080fd5b50610327600b5481565b34801561064d57600080fd5b50610327600d5481565b34801561066357600080fd5b506102ac6112a0565b34801561067857600080fd5b5061026061068736600461364f565b6112c0565b34801561069857600080fd5b506103276106a73660046133b3565b60106020526000908152604090205481565b3480156106c557600080fd5b506102956106d4366004613449565b6112ee565b3480156106e557600080fd5b506102956106f43660046133b3565b611386565b60006001600160e01b031982166380ac58cd60e01b148061072a57506001600160e01b03198216635b5e139f60e01b145b8061074557506301ffc9a760e01b6001600160e01b03198316145b92915050565b6006546001600160a01b0316331461077e5760405162461bcd60e51b815260040161077590613679565b60405180910390fd5b600e805460ff1916911515919091179055565b6060600080546107a0906136ae565b80601f01602080910402602001604051908101604052809291908181526020018280546107cc906136ae565b80156108195780601f106107ee57610100808354040283529160200191610819565b820191906000526020600020905b8154815290600101906020018083116107fc57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b031661089c5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610775565b506000908152600460205260409020546001600160a01b031690565b60006108c382610dbb565b9050806001600160a01b0316836001600160a01b0316036109305760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610775565b336001600160a01b038216148061094c575061094c81336112c0565b6109be5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610775565b6109c88383611422565b505050565b60006109d860115490565b905090565b6109e73382611490565b610a035760405162461bcd60e51b8152600401610775906136e2565b6109c8838383611567565b6006546001600160a01b03163314610a385760405162461bcd60e51b815260040161077590613679565b604051600090339047908381818185875af1925050503d8060008114610a7a576040519150601f19603f3d011682016040523d82523d6000602084013e610a7f565b606091505b5050905080610a8d57600080fd5b50565b6109c8838383604051806020016040528060008152506110c9565b60606000610ab883610ea2565b905060008167ffffffffffffffff811115610ad557610ad56134a8565b604051908082528060200260200182016040528015610afe578160200160208202803683370190505b509050600160005b8381108015610b175750600b548211155b15610b81576000610b2783610dbb565b9050866001600160a01b0316816001600160a01b031603610b6e5782848381518110610b5557610b55613733565b602090810291909101015281610b6a8161375f565b9250505b82610b788161375f565b93505050610b06565b5090949350505050565b6006546001600160a01b03163314610bb55760405162461bcd60e51b815260040161077590613679565b600a55565b60098054610bc7906136ae565b80601f0160208091040260200160405190810160405280929190818152602001828054610bf3906136ae565b8015610c405780601f10610c1557610100808354040283529160200191610c40565b820191906000526020600020905b815481529060010190602001808311610c2357829003601f168201915b505050505081565b60088054610bc7906136ae565b600e5460ff1615610c965760405162461bcd60e51b815260206004820152600b60248201526a135a5b9d0814185d5cd95960aa1b6044820152606401610775565b600c54601154610ca7906001613778565b1115610cf55760405162461bcd60e51b815260206004820152601c60248201527f4d61782046726565204e465420737570706c79206578636565646564000000006044820152606401610775565b336000908152600f6020526040902054600111610d5f5760405162461bcd60e51b815260206004820152602260248201527f4f6e6c7920312046726565204e4654207065722077616c6c657420616c6c6f77604482015261195960f21b6064820152608401610775565b610d6a336001611703565b336000908152600f60205260408120805491610d858361375f565b9190505550565b6006546001600160a01b03163314610db65760405162461bcd60e51b815260040161077590613679565b600d55565b6000818152600260205260408120546001600160a01b0316806107455760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610775565b6006546001600160a01b03163314610e5c5760405162461bcd60e51b815260040161077590613679565b6009610e6882826137d9565b5050565b6006546001600160a01b03163314610e965760405162461bcd60e51b815260040161077590613679565b6008610e6882826137d9565b60006001600160a01b038216610f0d5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610775565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b03163314610f535760405162461bcd60e51b815260040161077590613679565b610f5d6000611788565b565b6060600180546107a0906136ae565b80600081118015610f815750600d548111155b610fc35760405162461bcd60e51b8152602060048201526013602482015272125b9d985b1a59081b5a5b9d08185b5bdd5b9d606a1b6044820152606401610775565b600b5481610fd060115490565b610fda9190613778565b11156110225760405162461bcd60e51b815260206004820152601760248201527613585e08139195081cdd5c1c1b1e48195e18d959591959604a1b6044820152606401610775565b600e5460ff16156110635760405162461bcd60e51b815260206004820152600b60248201526a135a5b9d0814185d5cd95960aa1b6044820152606401610775565b81600a546110719190613899565b3410156110b45760405162461bcd60e51b8152602060048201526011602482015270125b9cdd59999a58da595b9d08199d5b99607a1b6044820152606401610775565b610e683383611703565b610e683383836117da565b6110d33383611490565b6110ef5760405162461bcd60e51b8152600401610775906136e2565b6110fb848484846118a8565b50505050565b6006546001600160a01b0316331461112b5760405162461bcd60e51b815260040161077590613679565b6007610e6882826137d9565b8160008111801561114a5750600d548111155b61118c5760405162461bcd60e51b8152602060048201526013602482015272125b9d985b1a59081b5a5b9d08185b5bdd5b9d606a1b6044820152606401610775565b600b548161119960115490565b6111a39190613778565b11156111eb5760405162461bcd60e51b815260206004820152601760248201527613585e08139195081cdd5c1c1b1e48195e18d959591959604a1b6044820152606401610775565b6006546001600160a01b031633146112155760405162461bcd60e51b815260040161077590613679565b6109c88284611703565b60078054610bc7906136ae565b6000818152600260205260409020546060906001600160a01b03166112865760405162461bcd60e51b815260206004820152601060248201526f546f6b656e206e6f7420666f756e642160801b6044820152606401610775565b6000828152601060205260409020546107459083906118db565b606060405180606001604052806035815260200161430960359139905090565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6006546001600160a01b031633146113185760405162461bcd60e51b815260040161077590613679565b6001600160a01b03811661137d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610775565b610a8d81611788565b6006546001600160a01b031633146113b05760405162461bcd60e51b815260040161077590613679565b600b5481106114015760405162461bcd60e51b815260206004820152601f60248201527f4d75737420626520736d616c6c6572207468616e204d617820537570706c79006044820152606401610775565b600c55565b5490565b80546001019055565b6001600160a01b03163b151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061145782610dbb565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166115095760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610775565b600061151483610dbb565b9050806001600160a01b0316846001600160a01b0316148061154f5750836001600160a01b031661154484610823565b6001600160a01b0316145b8061155f575061155f81856112c0565b949350505050565b826001600160a01b031661157a82610dbb565b6001600160a01b0316146115de5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610775565b6001600160a01b0382166116405760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610775565b61164b600082611422565b6001600160a01b03831660009081526003602052604081208054600192906116749084906138b0565b90915550506001600160a01b03821660009081526003602052604081208054600192906116a2908490613778565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60015b8181116109c85761171b601180546001019055565b600061172660115490565b905061173284826129de565b61173d6001436138b0565b6040805191406020830152810182905260600160408051601f1981840301815291815281516020928301206000938452601090925290912055806117808161375f565b915050611706565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b03160361183b5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610775565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6118b3848484611567565b6118bf848484846129f8565b6110fb5760405162461bcd60e51b8152600401610775906138c3565b60606118e561307a565b6118ed6130fc565b60006118f885612af9565b9050604051806101800160405280602860ff168152602001604860ff168152602001605c60ff168152602001606160ff168152602001606360ff168152602001606460ff168152602001606460ff168152602001606460ff168152602001606460ff168152602001606460ff168152602001606460ff168152602001606460ff1681525082600001819052506040518060c0016040528060405180604001604052806006815260200165139bdc9b585b60d21b815250815260200160405180604001604052806006815260200165536b696e6e7960d01b815250815260200160405180604001604052806006815260200165546174746f6f60d01b81525081526020016040518060400160405280600381526020016241706560e81b8152508152602001604051806040016040528060068152602001655a6f6d62696560d01b81525081526020016040518060400160405280600881526020016729b5b2b632ba37b760c11b8152508152508260200181905250604051806101800160405280601260ff168152602001602460ff168152602001603660ff168152602001604860ff168152602001605a60ff168152602001605f60ff168152602001606460ff168152602001606460ff168152602001606460ff168152602001606460ff168152602001606460ff168152602001606460ff1681525082604001819052506040518060e001604052806040518060400160405280600781526020016648756d616e203160c81b815250815260200160405180604001604052806007815260200166243ab6b0b7101960c91b81525081526020016040518060400160405280600781526020016648756d616e203360c81b815250815260200160405180604001604052806007815260200166121d5b585b880d60ca1b81525081526020016040518060400160405280600781526020016648756d616e203560c81b81525081526020016040518060400160405280600781526020016656616d7069726560c81b81525081526020016040518060400160405280600981526020016820b6b83434b134b0b760b91b8152508152508260600181905250604051806101800160405280600c60ff168152602001601960ff168152602001602560ff168152602001603260ff168152602001603e60ff168152602001604c60ff168152602001605060ff168152602001605460ff168152602001605860ff168152602001605c60ff168152602001606060ff168152602001606460ff168152508260800181905250604051806101800160405280604051806040016040528060048152602001634772617960e01b81525081526020016040518060400160405280600581526020016420b6b132b960d91b815250815260200160405180604001604052806005815260200164213937bbb760d91b815250815260200160405180604001604052806006815260200165426c6f6e646560d01b815250815260200160405180604001604052806005815260200164426c61636b60d81b8152508152602001604051806040016040528060038152602001622a30b760e91b81525081526020016040518060400160405280600381526020016214995960ea1b81525081526020016040518060400160405280600481526020016350696e6b60e01b815250815260200160405180604001604052806004815260200163426c756560e01b81525081526020016040518060400160405280600581526020016423b932b2b760d91b815250815260200160405180604001604052806006815260200165507572706c6560d01b815250815260200160405180604001604052806005815260200164576869746560d81b8152508152508260a00181905250604051806101200160405280606360ff168152602001603260ff168152602001601e60ff168152602001601e60ff168152602001601460ff168152602001601460ff168152602001600a60ff168152602001600a60ff168152602001600560ff168152508260c001819052506040518060800160405280600860ff168152602001601e60ff168152602001602860ff168152602001600460ff168152508260e001819052506040518060400160405280604051806101200160405280600c60ff168152602001602760ff168152602001601660ff168152602001602360ff168152602001600460ff168152602001600660ff168152602001600560ff168152602001600560ff168152602001600360ff168152508152602001604051806101200160405280600860ff168152602001601260ff168152602001601460ff168152602001601260ff168152602001600c60ff168152602001600a60ff168152602001600960ff168152602001600960ff168152602001600460ff1681525081525082610100018190525060405180604001604052806040518060800160405280600560ff168152602001601960ff168152602001601360ff168152602001600860ff1681525081526020016040518060800160405280600660ff168152602001601560ff168152602001601360ff168152602001600860ff1681525081525082610120018190525060405180608001604052806040518060400160405280600581526020016409adeeae8d60db1b81525081526020016040518060400160405280600381526020016212185d60ea1b81525081526020016040518060400160405280600781526020016622bcb2bbb2b0b960c91b81525081526020016040518060400160405280600781526020016614dc1958da585b60ca1b8152508152508261014001819052506120fb8160016002612bfa565b835261210a8160026004612bfa565b602084015261211c8160046006612bfa565b604084015261212e8160066008612bfa565b606084015261214081603c603e612bfa565b608084015261215281603e6040612bfa565b60a08401526121648160406042612bfa565b60c08401526121768160426043612bfa565b60e0840152600761218686612af9565b6040516020016121979291906139a4565b60408051601f1981840301815291905261010084015260096121b886612af9565b6040516020016121c9929190613a00565b60408051601f1981840301815291905261012084015260086121ea87612af9565b6040516020016121fb929190613a26565b60408051601f1981840301815291905261014084015261221a86612af9565b60405160200161222a9190613a6d565b60408051601f198184030181529190526101608401528251600090819061225090612cc7565b915061225d600283613aba565b905061227261226d600284613aba565b612af9565b8552602085015161228290612cc7565b9150612292828560000151612d4f565b6101608501819052602085015190600681106122b0576122b0613733565b602002015185602001819052506122ca8560400151612cc7565b915083606001516122df838660400151612d4f565b600781106122ef576122ef613733565b60200201516040860152606085015161230790612cc7565b91508360a0015161231c838660800151612d4f565b600c811061232c5761232c613733565b6020020151606086015260e085015161234490612cc7565b915061235461226d600584613aba565b60e086015260c085015161236790612cc7565b915061237761226d600c84613aba565b60c0860152608085015161238a90612cc7565b9150806000036123ac576123a261226d602484613aba565b60808601526123c0565b6123ba61226d602384613aba565b60808601525b6123cd8560a00151612cc7565b9150806000036123f9576040805180820190915260018152600360fc1b602082015260a086015261240d565b61240761226d601a84613aba565b60a08601525b6002846101600151111561243b5760208501516040860181905260a0860181905260c0860181905260e08601525b6000805b600981101561264c576124a66124a18661245a846004613899565b612465906008613778565b612470906002613778565b61247b856004613899565b612486906008613778565b612491906002613778565b61249c906002613778565b612bfa565b612cc7565b93508560c0015181600981106124be576124be613733565b602002015160ff1684101561259857816124d78161375f565b925061250e90506124a1866124ed846004613899565b6124f8906008613778565b612503856004613899565b612491906008613778565b93508660000151612557876101000151856002811061252f5761252f613733565b6020020151836009811061254557612545613733565b602002015161226d9060ff1687613aba565b604051602001612568929190613ace565b604051602081830303815290604052876101800151826009811061258e5761258e613733565b60200201526125d4565b60405180604001604052806006815260200165112737b7329160d11b81525087610180015182600981106125ce576125ce613733565b60200201525b6125e261226d826001613778565b87610180015182600981106125f9576125f9613733565b602002015160405160200161260f929190613b28565b604051602081830303815290604052876101800151826009811061263557612635613733565b6020020152806126448161375f565b91505061243f565b506000805b600481101561284c576126986124a18761266c846004613899565b61267790602c613778565b612682906002613778565b61268d856004613899565b61248690602c613778565b94508660e0015181600481106126b0576126b0613733565b602002015160ff1685101561278a57816126c98161375f565b925061270090506124a1876126df846004613899565b6126ea90602c613778565b6126f5856004613899565b61249190602c613778565b94508760000151612749886101200151866002811061272157612721613733565b6020020151836004811061273757612737613733565b602002015161226d9060ff1688613aba565b60405160200161275a929190613ba5565b604051602081830303815290604052886101a00151826004811061278057612780613733565b60200201526127c6565b60405180604001604052806006815260200165112737b7329160d11b815250886101a0015182600481106127c0576127c0613733565b60200201525b86610140015181600481106127dd576127dd613733565b6020020151886101a0015182600481106127f9576127f9613733565b602002015160405160200161280f929190613bc4565b604051602081830303815290604052886101a00151826004811061283557612835613733565b6020020152806128448161375f565b915050612651565b5061018087015180516020808301516040808501516060860151608087015160a088015160c089015160e08a0151610100909a0151955161289b9a979895979496939592949193919201613c34565b60408051808303601f190181529181526101c08901919091526101a088015180516020820151928201516060909201516000939192906128da87612af9565b6128e387612af9565b8d604001518e600001518f60c0015160405160200161290a99989796959493929190613cf5565b60405160208183030381529060405290506000886020015189600001518a608001518b606001518c60e001518d60a0015160405160200161295096959493929190613ebc565b60405160208183030381529060405290506129ae8961016001518a6101c0015184848d61010001518e61012001518f610140015160405160200161299a9796959493929190614059565b604051602081830303815290604052612da0565b6040516020016129be919061414c565b604051602081830303815290604052995050505050505050505092915050565b610e68828260405180602001604052806000815250612f05565b60006001600160a01b0384163b15612aee57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612a3c903390899088908890600401614191565b6020604051808303816000875af1925050508015612a77575060408051601f3d908101601f19168201909252612a74918101906141ce565b60015b612ad4573d808015612aa5576040519150601f19603f3d011682016040523d82523d6000602084013e612aaa565b606091505b508051600003612acc5760405162461bcd60e51b8152600401610775906138c3565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061155f565b506001949350505050565b606081600003612b205750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612b4a5780612b348161375f565b9150612b439050600a836141eb565b9150612b24565b60008167ffffffffffffffff811115612b6557612b656134a8565b6040519080825280601f01601f191660200182016040528015612b8f576020820181803683370190505b5090505b841561155f57612ba46001836138b0565b9150612bb1600a86613aba565b612bbc906030613778565b60f81b818381518110612bd157612bd1613733565b60200101906001600160f81b031916908160001a905350612bf3600a866141eb565b9450612b93565b6060836000612c0985856138b0565b67ffffffffffffffff811115612c2157612c216134a8565b6040519080825280601f01601f191660200182016040528015612c4b576020820181803683370190505b509050845b84811015612cbd57828181518110612c6a57612c6a613733565b01602001516001600160f81b03191682612c8488846138b0565b81518110612c9457612c94613733565b60200101906001600160f81b031916908160001a90535080612cb58161375f565b915050612c50565b5095945050505050565b6000805b8251811015612d49576001818451612ce391906138b0565b612ced91906138b0565b612cf890600a6142e3565b6030848381518110612d0c57612d0c613733565b0160200151612d1e919060f81c6142ef565b60ff16612d2b9190613899565b612d359083613778565b915080612d418161375f565b915050612ccb565b50919050565b6000805b600c811015612d96578281600c8110612d6e57612d6e613733565b602002015160ff16841015612d84579050610745565b80612d8e8161375f565b915050612d53565b5060009392505050565b60608151600003612dbf57505060408051602081019091526000815290565b600060405180606001604052806040815260200161433e6040913990506000600384516002612dee9190613778565b612df891906141eb565b612e03906004613899565b90506000612e12826020613778565b67ffffffffffffffff811115612e2a57612e2a6134a8565b6040519080825280601f01601f191660200182016040528015612e54576020820181803683370190505b509050818152600183018586518101602084015b81831015612ec0576003830192508251603f8160121c168501518253600182019150603f81600c1c168501518253600182019150603f8160061c168501518253600182019150603f8116850151825350600101612e68565b600389510660018114612eda5760028114612eeb57612ef7565b613d3d60f01b600119830152612ef7565b603d60f81b6000198301525b509398975050505050505050565b612f0f8383612f38565b612f1c60008484846129f8565b6109c85760405162461bcd60e51b8152600401610775906138c3565b6001600160a01b038216612f8e5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610775565b6000818152600260205260409020546001600160a01b031615612ff35760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610775565b6001600160a01b038216600090815260036020526040812080546001929061301c908490613778565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b604051806101e001604052806060815260200160608152602001606081526020016060815260200160608152602001606081526020016060815260200160608152602001606081526020016060815260200160608152602001606081526020016130e261319f565b81526020016130ef6131c7565b8152602001606081525090565b6040518061018001604052806131106131e1565b815260200161311d613200565b815260200161312a6131e1565b815260200161313761321a565b81526020016131446131e1565b8152602001613151613234565b815260200161315e61324f565b815260200161316b61326e565b815260200161317861328c565b81526020016131856132b9565b81526020016131926131c7565b8152602001600081525090565b6040518061012001604052806009905b60608152602001906001900390816131af5790505090565b6040805160808101909152606081526003602082016131af565b604051806101800160405280600c906020820280368337509192915050565b6040805160c08101909152606081526005602082016131af565b6040805160e08101909152606081526006602082016131af565b60408051610180810190915260608152600b602082016131af565b6040518061012001604052806009906020820280368337509192915050565b60405180608001604052806004906020820280368337509192915050565b60405180604001604052806002905b6132a361324f565b81526020019060019003908161329b5790505090565b60405180604001604052806002905b6132d061326e565b8152602001906001900390816132c85790505090565b6001600160e01b031981168114610a8d57600080fd5b60006020828403121561330e57600080fd5b8135613319816132e6565b9392505050565b8035801515811461333057600080fd5b919050565b60006020828403121561334757600080fd5b61331982613320565b60005b8381101561336b578181015183820152602001613353565b50506000910152565b6000815180845261338c816020860160208601613350565b601f01601f19169290920160200192915050565b6020815260006133196020830184613374565b6000602082840312156133c557600080fd5b5035919050565b80356001600160a01b038116811461333057600080fd5b600080604083850312156133f657600080fd5b6133ff836133cc565b946020939093013593505050565b60008060006060848603121561342257600080fd5b61342b846133cc565b9250613439602085016133cc565b9150604084013590509250925092565b60006020828403121561345b57600080fd5b613319826133cc565b6020808252825182820181905260009190848201906040850190845b8181101561349c57835183529284019291840191600101613480565b50909695505050505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff808411156134d9576134d96134a8565b604051601f8501601f19908116603f01168101908282118183101715613501576135016134a8565b8160405280935085815286868601111561351a57600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561354657600080fd5b813567ffffffffffffffff81111561355d57600080fd5b8201601f8101841361356e57600080fd5b61155f848235602084016134be565b6000806040838503121561359057600080fd5b613599836133cc565b91506135a760208401613320565b90509250929050565b600080600080608085870312156135c657600080fd5b6135cf856133cc565b93506135dd602086016133cc565b925060408501359150606085013567ffffffffffffffff81111561360057600080fd5b8501601f8101871361361157600080fd5b613620878235602084016134be565b91505092959194509250565b6000806040838503121561363f57600080fd5b823591506135a7602084016133cc565b6000806040838503121561366257600080fd5b61366b836133cc565b91506135a7602084016133cc565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c908216806136c257607f821691505b602082108103612d4957634e487b7160e01b600052602260045260246000fd5b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006001820161377157613771613749565b5060010190565b8082018082111561074557610745613749565b601f8211156109c857600081815260208120601f850160051c810160208610156137b25750805b601f850160051c820191505b818110156137d1578281556001016137be565b505050505050565b815167ffffffffffffffff8111156137f3576137f36134a8565b6138078161380184546136ae565b8461378b565b602080601f83116001811461383c57600084156138245750858301515b600019600386901b1c1916600185901b1785556137d1565b600085815260208120601f198616915b8281101561386b5788860151825594840194600190910190840161384c565b50858210156138895787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b808202811582820484141761074557610745613749565b8181038181111561074557610745613749565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60008154613922816136ae565b6001828116801561393a576001811461394f5761397e565b60ff198416875282151583028701945061397e565b8560005260208060002060005b858110156139755781548a82015290840190820161395c565b50505082870194505b5050505092915050565b6000815161399a818560208601613350565b9290920192915050565b6f1132bc3a32b93730b62fbab936111d1160811b815260006139c96010830185613915565b623f733d60e81b815283516139e5816003840160208801613350565b61088b60f21b60039290910191820152600501949350505050565b701130b734b6b0ba34b7b72fbab936111d1160791b815260006139c96011830185613915565b681134b6b0b3b2911d1160b91b81526000613a446009830185613915565b8351613a54818360208801613350565b64173837339160d91b9101908152600501949350505050565b6d226e616d65223a2250454550202360901b81528151600090613a9781600e850160208701613350565b91909101600e0192915050565b634e487b7160e01b600052601260045260246000fd5b600082613ac957613ac9613aa4565b500690565b6222542360e81b81528251600090613aed816003850160208801613350565b602d60f81b6003918401918201528351613b0e816004840160208801613350565b601160f91b60049290910191820152600501949350505050565b7f7b2274726169745f74797065223a22546f70204c617965722000000000000000815260008351613b60816019850160208801613350565b691116113b30b63ab2911d60b11b6019918401918201528351613b8a816023840160208801613350565b611f4b60f21b60239290910191820152602501949350505050565b6222412360e81b81528251600090613aed816003850160208801613350565b6e3d913a3930b4ba2fba3cb832911d1160891b81528251600090613bef81600f850160208801613350565b691116113b30b63ab2911d60b11b600f918401918201528351613c19816019840160208801613350565b611f4b60f21b60199290910191820152601b01949350505050565b60008a51613c46818460208f01613350565b8a51613c588183860160208f01613350565b8a519184010190613c6d818360208e01613350565b8951613c7f8183850160208e01613350565b8951929091010190613c95818360208c01613350565b8751613ca78183850160208c01613350565b8751929091010190613cbd818360208a01613350565b8551613ccf8183850160208a01613350565b8551929091010190613ce5818360208801613350565b019b9a5050505050505050505050565b60008a51613d07818460208f01613350565b8a5190830190613d1b818360208f01613350565b8a51910190613d2e818360208e01613350565b8951910190613d41818360208d01613350565b8082019150507f7b2274726169745f74797065223a22546f7020436f756e74222c2276616c7565815261111d60f11b60208201528751613d88816022840160208c01613350565b7f7d2c7b2274726169745f74797065223a224163636573736f727920436f756e7460229290910191820152691116113b30b63ab2911d60b11b60428201528651613dd981604c840160208b01613350565b613eab613e9c613e96613e5e613e58613e23613e1d604c888a01017f7d2c7b2274726169745f74797065223a22536b696e222c2276616c7565223a22815260200190565b8d613988565b7f227d2c7b2274726169745f74797065223a224944222c2276616c7565223a224981526244202360e81b602082015260230190565b8a613988565b7f227d2c7b2274726169745f74797065223a2246616365222c2276616c7565223a8152650112a3cb832960d51b602082015260260190565b87613988565b62089f4b60ea1b815260030190565b9d9c50505050505050505050505050565b7f7b2274726169745f74797065223a2254797065222c2276616c7565223a220000815260008751613ef481601e850160208c01613350565b7f227d2c7b2274726169745f74797065223a2248616972222c2276616c7565223a601e918401918201526601129ba3cb632960cd1b603e8201528751613f41816045840160208c01613350565b602d60f81b604592909101918201528651613f63816046840160208b01613350565b7f227d2c7b2274726169745f74797065223a224861697220436f6c6f72222c2276604692909101918201526630b63ab2911d1160c91b606682015261404c61403e614038613ff8613ff2613fba606d87018c613988565b7f227d2c7b2274726169745f74797065223a2248656164222c2276616c7565223a8152650112a3cb832960d51b602082015260260190565b89613988565b7f227d2c7b2274726169745f74797065223a2246616369616c2048616972222c2281526d03b30b63ab2911d1129ba3cb632960951b6020820152602e0190565b86613988565b61227d60f01b815260020190565b9998505050505050505050565b607b60f81b81526000885160206140768260018601838e01613350565b7f222c226465736372697074696f6e223a22222c2261747472696275746573223a600192850192830152605b60f81b602183015289516140bc8160228501848e01613350565b89519201916140d18160228501848d01613350565b88519201916140e68160228501848c01613350565b61174b60f21b6022939091019283015286516141088160248501848b01613350565b865192019161411d8160248501848a01613350565b61413c61412f60248386010188613988565b607d60f81b815260010190565b9c9b505050505050505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161418481601d850160208701613350565b91909101601d0192915050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906141c490830184613374565b9695505050505050565b6000602082840312156141e057600080fd5b8151613319816132e6565b6000826141fa576141fa613aa4565b500490565b600181815b8085111561423a57816000190482111561422057614220613749565b8085161561422d57918102915b93841c9390800290614204565b509250929050565b60008261425157506001610745565b8161425e57506000610745565b8160018114614274576002811461427e5761429a565b6001915050610745565b60ff84111561428f5761428f613749565b50506001821b610745565b5060208310610133831016604e8410600b84101617156142bd575081810a610745565b6142c783836141ff565b80600019048211156142db576142db613749565b029392505050565b60006133198383614242565b60ff82811682821603908111156107455761074561374956fe697066733a2f2f516d5633676153757475587644616159433539556678485551755a64776f455862316b5864475755533679504d594142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220c1d9fa30dea52b9793810a19bb691e82406b7fe38ac05d9720276e294fa4239364736f6c63430008110033

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.