ETH Price: $3,464.17 (-1.22%)
Gas: 4 Gwei

Token

Scribbles Mint Pass (SCRBBLS)
 

Overview

Max Total Supply

888 SCRBBLS

Holders

360

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 SCRBBLS
0xd3034bDC0B7B7168aaE7f96F4DDa646051635bc7
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:
Scribbles

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, Unlicense license
File 1 of 14 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        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 2 of 14 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

File 3 of 14 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // 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: address zero is not a valid owner");
        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: invalid token ID");
        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) {
        _requireMinted(tokenId);

        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 overridden 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 token owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        _requireMinted(tokenId);

        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: caller is not token 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: caller is not token 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) {
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == 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 an {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 an {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 Reverts if the `tokenId` has not been minted yet.
     */
    function _requireMinted(uint256 tokenId) internal view virtual {
        require(_exists(tokenId), "ERC721: invalid token ID");
    }

    /**
     * @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 {
                    /// @solidity memory-safe-assembly
                    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 {}
}

File 4 of 14 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 5 of 14 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (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 `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 6 of 14 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 7 of 14 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.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
                /// @solidity memory-safe-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 8 of 14 : Context.sol
// SPDX-License-Identifier: MIT
// 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 9 of 14 : Counters.sol
// SPDX-License-Identifier: MIT
// 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 10 of 14 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

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

    /**
     * @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);
    }

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }
}

File 11 of 14 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        } else if (error == RecoverError.InvalidSignatureV) {
            revert("ECDSA: invalid signature 'v' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        // Check the signature length
        // - case 65: r,s,v signature (standard)
        // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            /// @solidity memory-safe-assembly
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else if (signature.length == 64) {
            bytes32 r;
            bytes32 vs;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            /// @solidity memory-safe-assembly
            assembly {
                r := mload(add(signature, 0x20))
                vs := mload(add(signature, 0x40))
            }
            return tryRecover(hash, r, vs);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
        uint8 v = uint8((uint256(vs) >> 255) + 27);
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }
        if (v != 27 && v != 28) {
            return (address(0), RecoverError.InvalidSignatureV);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from `s`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

File 12 of 14 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 13 of 14 : IERC165.sol
// SPDX-License-Identifier: MIT
// 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 14 of 14 : Scribbles.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;


import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
// import "hardhat/console.sol";

interface IOracle{
    function request() external returns (uint64 key);
    function getRandom(uint64 id) external view returns(uint256 rand);
}

contract Scribbles is Ownable, ReentrancyGuard, ERC721 {

    using Strings for uint;
    using Counters for Counters.Counter;
    using ECDSA for bytes32;

    Counters.Counter private _tokenId;
    address private signer; // signer to make signature
    string public notRevealedUri;

    // SALES
    address public constant WITHDRAW_ADDRESS = 0x876F13D830dBB25017da552256d56c779bD5C58e;
    bool public presaleActive = false;
    bool public publicSaleActive = false;
    bool public paused = false;

    uint256 public cost = 0.065 ether;
    uint256 public maxSupply = 5_898;
    uint256 public maxMintAmount = 2;
    uint256 public maxPerWallet = 4;
    bool public revealed = false;

    mapping(address => uint256) public whitelistMinted; // address => amount
    mapping(address => uint256) public publicMinted; // address => amount

    // list of probabilities for each trait type
    // 0-5: [Wizard, Rainbow, Plant (bark colors), Water, Fire, Ice]
    //      0-3: [clothes, expression, head, background]
    mapping(uint8 => uint8[][4]) public rarities;
    mapping(uint8 => uint8[][4]) public aliases;
    uint8[] public raritiesFaction;
    uint8[] public aliasesFaction;
    // mapping from hashed(tokenTrait) to the tokenId it's associated with
    // used to ensure there are no duplicates
    mapping(uint256 => uint256) public existingCombinations;

    IOracle public oracle;
    bytes32 internal entropySauce;

    mapping(uint256 => uint256) public mintBlocks;
    mapping(uint256 => Scribble) internal scribbles;

    // Flag for allowing or not allowing locking
    bool public lockingOpen = false;
    // tokenId to locking start time (0 = not locking).
    mapping(uint256 => uint256) private lockingStarted;
    // Cumulative per-token locking, excluding the current period.
    mapping(uint256 => uint256) private lockingTotal;
    uint256 public totalLockedCount;

    /** DATA STRUCTURE */
    struct Scribble {
        uint8 base;
        uint8 clothes;
        uint8 expression;
        uint8 head;
        uint8 background;
    }

    /** EVENTS */
    event BaseURISet(string baseURI);
    event OracleChanged(IOracle oracle);
    event SignerChanged(address signer);
    event PublicSaleStatusChanged(bool isActive);
    event PresaleStatusChanged(bool isActive);
    event NotRevealedUriChanged(string uri);
    event MaxMintAmountChanged(uint256 amount);
    event MaxPerWalletChanged(uint256 amount);
    event CostChanged(uint256 cost);
    event Paused(bool isPaused);
    event Revealed();

    // Emitted when a token begins locking.
    event Locked(uint256 indexed tokenId);
    // Emitted when a token stops locking; either through standard means or
    event UnLocked(uint256 indexed tokenId);
    // Emitted when a token is expelled from the locking.
    event Expelled(uint256 indexed tokenId);


    constructor(string memory _initNotRevealedUri) ERC721("Scribbles Mint Pass", "SCRBBLS") {
        setNotRevealedURI(_initNotRevealedUri);
        signer = msg.sender;

        // We'll use the last caller hash to add entropy to next caller
        entropySauce = keccak256(abi.encodePacked(msg.sender, block.timestamp, block.coinbase));

        raritySetup();
    }

    function raritySetup() internal {
        // I know this looks weird but it saves users gas by making lookup O(1)
        // A.J. Walker's Alias Algorithm
        // Faction: [0.18, 0.1, 0.18, 0.18, 0.18, 0.18]
        raritiesFaction = [173, 153, 193, 214, 234, 254];
        aliasesFaction = [2, 0, 3, 4, 5, 5];
        // Wizard
        //      clothes: [0.18, 0.2, 0.14, 0.15, 0.08, 0.25]
        rarities[0][0] =[234, 147, 214, 229, 122, 255];
        aliases[0][0] = [5, 5, 0, 1, 1, 5];
        //      expression: [0.25, 0.09, 0.21, 0.19, 0.08, 0.18]
        rarities[0][1] = [132, 137, 198, 234, 122, 255];
        aliases[0][1] = [2, 0, 3, 5, 0, 5];
        //      head: [0.15, 0.17, 0.13, 0.16, 0.19, 0.2]
        rarities[0][2] = [229, 234, 198, 244, 234, 255];
        aliases[0][2] = [1, 5, 4, 5, 5, 5];
        //      background: [0.15, 0.2, 0.18, 0.25, 0.08, 0.14]
        rarities[0][3] = [229, 147, 234, 255, 122, 214];
        aliases[0][3] = [1, 3, 3, 5, 1, 2];

        // Rainbow
        //      clothes: [0.25, 0.18, 0.2, 0.14, 0.15, 0.08]
        rarities[1][0] =[183, 204, 255, 214, 229, 122];
        aliases[1][0] = [1, 2, 5, 0, 0, 0];
        //      expression: [0.2, 0.2, 0.18, 0.16, 0.12, 0.14]
        rarities[1][1] = [224, 249, 244, 244, 183, 198];
        aliases[1][1] = [2, 5, 5, 0, 0, 1];
        //      head: [0.15, 0.17, 0.13, 0.16, 0.19, 0.20]
        rarities[1][2] = [229, 234, 198, 244, 234, 255];
        aliases[1][2] = [1, 5, 4, 5, 5, 5];
        //      background: [0.15, 0.16, 0.14, 0.16, 0.14, 0.25]
        rarities[1][3] = [229, 244, 214, 244, 214, 255];
        aliases[1][3] = [5, 5, 5, 5, 5, 5];

        // Plant (bark colors)
        //      clothes: [0.05, 0.19, 0.19, 0.19, 0.19, 0.19]
        rarities[2][0] = [76, 112, 147, 183, 219, 255];
        aliases[2][0] = [1, 2, 3, 4, 5, 5];
        //      expression: [0.2, 0.2, 0.18, 0.16, 0.12, 0.14]
        rarities[2][1] = [224, 249, 244, 244, 183, 198];
        aliases[2][1] = [2, 5, 5, 0, 0, 1];
        //      head: [0.15, 0.17, 0.13, 0.16, 0.19, 0.2]
        rarities[2][2] = [229, 234, 198, 244, 234, 255];
        aliases[2][2] = [1, 5, 4, 5, 5, 5];
        //      background: [0.15, 0.2, 0.16, 0.25, 0.14, 0.1]
        rarities[2][3] = [229, 229, 244, 255, 214, 153];
        aliases[2][3] = [1, 3, 1, 5, 1, 3];

        // Water
        //      clothes: [0.25, 0.2, 0.14, 0.12, 0.19, 0.1]
        rarities[3][0] = [168, 219, 214, 183, 239, 153];
        aliases[3][0] = [1, 4, 0, 0, 5, 0];
        //      expression: [0.2, 0.2, 0.18, 0.16, 0.12, 0.14]
        rarities[3][1] = [224, 249, 244, 244, 183, 198];
        aliases[3][1] = [2, 5, 5, 0, 0, 1];
        //      head: [0.15, 0.17, 0.13, 0.16, 0.19, 0.2]
        rarities[3][2] = [229, 234, 198, 244, 234, 255];
        aliases[3][2] = [1, 5, 4, 5, 5, 5];
        //      background: [0.15, 0.2, 0.25, 0.18, 0.1, 0.12]
        rarities[3][3] = [229, 178, 234, 255, 153, 183];
        aliases[3][3] = [1, 2, 3, 5, 1, 2];

        // Fire
        //      clothes: [0.25, 0.18, 0.15, 0.14, 0.2, 0.08]
        rarities[4][0] = [183, 204, 229, 214, 255, 122];
        aliases[4][0] = [1, 4, 0, 0, 5, 0];
        //      expression: [0.2, 0.2, 0.18, 0.16, 0.12, 0.14]
        rarities[4][1] = [224, 249, 244, 244, 183, 198];
        aliases[4][1] = [2, 5, 5, 0, 0, 1];
        //      head: [0.15, 0.17, 0.13, 0.16, 0.19, 0.2]
        rarities[4][2] = [229, 234, 198, 244, 234, 255];
        aliases[4][2] = [1, 5, 4, 5, 5, 5];
        //      background: [0.15, 0.25, 0.2, 0.15, 0.09, 0.16]
        rarities[4][3] = [229, 214, 254, 229, 137, 244];
        aliases[4][3] = [1, 2, 5, 1, 1, 2];

        // Ice
        //      clothes: [0.25, 0.18, 0.2, 0.14, 0.15, 0.08]
        rarities[5][0] = [183, 204, 255, 214, 229, 122];
        aliases[5][0] = [1, 2, 5, 0, 0, 0];
        //      expression: [0.2, 0.2, 0.18, 0.16, 0.12, 0.14]
        rarities[5][1] = [224, 249, 244, 244, 183, 198];
        aliases[5][1] = [2, 5, 5, 0, 0, 1];
        //      head: [0.15, 0.17, 0.13, 0.16, 0.19, 0.2]
        rarities[5][2] = [229, 234, 198, 244, 234, 255];
        aliases[5][2] = [1, 5, 4, 5, 5, 5];
        //      background: [0.15, 0.2, 0.25, 0.18, 0.1, 0.12]
        rarities[5][3] = [229, 178, 234, 255, 153, 183];
        aliases[5][3] = [1, 2, 3, 5, 1, 2];
    }

    // MODIFIERS
    modifier notPaused {
         require(!paused, "Contract paused");
         _;
    }

    modifier noCheaters() {
        uint256 size = 0;
        address acc = msg.sender;
        assembly {
            size := extcodesize(acc)
        }

        require(
            // (owner() == msg.sender) || (msg.sender == tx.origin && size == 0),
            (owner() == msg.sender) || (size == 0),
            "you're trying to cheat!"
        );
        _;

        // We'll use the last caller hash to add entropy to next caller
        entropySauce = keccak256(abi.encodePacked(acc, block.coinbase, entropySauce));
    }

    modifier validateCostMintAmount(uint256 _mintAmount) {
        require(msg.value >= cost * _mintAmount, "Insufficient funds");
        require(_mintAmount > 0, "Need to mint at least 1 NFT");
        require(_mintAmount + _tokenId.current() <= maxSupply, "Max supply exceeded");
        _;
    }

    // Public Methods

    function mint1(uint256 _mintAmount, bytes memory _signature) public payable notPaused nonReentrant noCheaters validateCostMintAmount(_mintAmount) {
        require(presaleActive == true, "Presale has not started yet");
        require(_isValidSignature(msg.sender, _signature) == true, "Not whitelisted");
        require(_mintAmount + whitelistMinted[msg.sender] <= maxMintAmount, "Max mint amount exceeded");

        whitelistMinted[msg.sender] += _mintAmount;
        for (uint256 i = 1; i <= _mintAmount; i++) {
            _mintScribble(msg.sender);
        }
    }

    function mintPublic(uint256 _mintAmount) public payable notPaused nonReentrant noCheaters validateCostMintAmount(_mintAmount) {
        require(publicSaleActive == true, "Public sale has not started yet");
        require(_mintAmount + publicMinted[msg.sender] <= maxPerWallet, "Max mint per wallet exceeded");

        publicMinted[msg.sender] += _mintAmount;
        for (uint256 i = 1; i <= _mintAmount; i++) {
            _mintScribble(msg.sender);
        }
    }

    function mintReserve(uint _mintAmount, address _to) external notPaused onlyOwner noCheaters {
        require(_mintAmount + _tokenId.current() <= maxSupply, "Max supply exceeded");
        for (uint i =0; i < _mintAmount; i++) {
            _mintScribble(_to);
        }
    }

    // PUBLIC VIEWS

    function currentTokenID() external view returns(uint){
        return _tokenId.current();
    }

    function totalSupply() public view virtual returns (uint256) {
        return _tokenId.current();
    }

    function getSigner() public view returns (address) {
        return signer;
    }

    /**
    @dev Don't use this method in other calls and contracts.
     */
    function walletOfOwner(address _owner) public view returns (uint256[] memory) {
        uint256 ownerTokenCount = balanceOf(_owner);
        uint256[] memory tokenIds = new uint256[](ownerTokenCount);
        uint256 id_ = 0;
        for (uint256 i = 1; i <= _tokenId.current(); i++) {
            if(ownerOf(i) == _owner) tokenIds[id_++] = i;
        }
        return tokenIds;
    }

    // Returns the length of time, in seconds, that the token has locked.
    function lockingPeriod(uint256 tokenId) external view returns (bool locking, uint256 current, uint256 total){
        uint256 start = lockingStarted[tokenId];
        if (start != 0) {
            locking = true;
            current = block.timestamp - start;
        }
        total = current + lockingTotal[tokenId];
    }

    // Changes the tokens' locking status (what's the plural of status?
    function toggleLocking(uint256[] calldata tokenIds) external {
        uint256 n = tokenIds.length;
        for (uint256 i = 0; i < n; ++i) {
            toggleLocking(tokenIds[i]);
        }
    }

    function toggleLocking(uint256 tokenId) internal {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved");
        uint256 start = lockingStarted[tokenId];
        if (start == 0) {
            require(lockingOpen, "locking closed");
            lockingStarted[tokenId] = block.timestamp;
            totalLockedCount ++;
            emit Locked(tokenId);
        } else {
            lockingTotal[tokenId] += block.timestamp - start;
            lockingStarted[tokenId] = 0;
            totalLockedCount --;
            emit UnLocked(tokenId);
        }
    }

    // @notice Admin-only ability to expel a token from the locking.
    function expelFromLocking(uint256 tokenId) external onlyOwner() {
        require(lockingStarted[tokenId] != 0, "Not locked");
        lockingTotal[tokenId] += block.timestamp - lockingStarted[tokenId];
        lockingStarted[tokenId] = 0;
        totalLockedCount --;
        emit UnLocked(tokenId);
        emit Expelled(tokenId);
    }

    /**
    @dev MUST only be modified by safeTransferWhileLocking(); if set to 2 then
    the _beforeTokenTransfer() block while locking is disabled.
     */
    uint256 private lockingTransfer = 1;

    /**
    @notice Transfer a token between addresses while the scribble is minting,
    thus not resetting the locking period.
     */
    function safeTransferWhileLocking(
        address from,
        address to,
        uint256 tokenId
    ) external {
        require(ownerOf(tokenId) == _msgSender(), "Only owner");
        lockingTransfer = 2;
        safeTransferFrom(from, to, tokenId);
        lockingTransfer = 1;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint tokenId) public view override(ERC721) returns (string memory) {
        require(_exists(tokenId), "Cannot query non-existent token");

        if (!revealed) {
            return notRevealedUri;
        }

        return super.tokenURI(tokenId);
    }

    function getAttributes(uint256 tokenId) public view returns (Scribble memory) {
        require(_exists(tokenId), "Cannot query non-existent token");
        require(mintBlocks[tokenId] != block.number, "Cannot query traits");
        return scribbles[tokenId];
    }
    
    /**
    * initiate random factor
    */
    uint64 key;
    uint256 randomResult;
    function requestRandomFactor() external onlyOwner {
        key = oracle.request();
    }

    function finalizeRandomFactor() external onlyOwner {
        require(key != 0, "not requested");
        randomResult = oracle.getRandom(key);
        require(randomResult != 0, "too soon");
        entropySauce = keccak256(abi.encodePacked(msg.sender, block.coinbase, randomResult, entropySauce));
        randomResult = 0;
        key = 0;
    }

    // ONLY OWNER SETTERS
    function setBaseURI(string calldata baseURI) external onlyOwner {
        _baseTokenURI = baseURI;
        emit BaseURISet(baseURI);
    }

    // Toggles the `lockingOpen` flag.
    function setLockingOpen(bool open) external onlyOwner {
        lockingOpen = open;
    }

    function setOracle(IOracle _oracle) external onlyOwner {
        oracle = _oracle;
        emit OracleChanged(_oracle);
    }

    function reveal() public onlyOwner {
        revealed = true;
        emit Revealed();
    }

    function pause(bool _state) public onlyOwner {
        paused = _state;
        emit Paused(_state);
    }

    function setCost(uint256 _newCost) public onlyOwner {
        cost = _newCost;
        emit CostChanged(_newCost);
    }

    function setMaxMintAmount(uint256 _newMaxMintAmount) public onlyOwner {
        maxMintAmount = _newMaxMintAmount;
        emit MaxMintAmountChanged(_newMaxMintAmount);
    }

    function setMaxPerWallet(uint256 _newMaxPerWallet) public onlyOwner {
        maxPerWallet = _newMaxPerWallet;
        emit MaxPerWalletChanged(_newMaxPerWallet);
    }

    function setNotRevealedURI(string memory _notRevealedURI) public onlyOwner {
        notRevealedUri = _notRevealedURI;
        emit NotRevealedUriChanged(_notRevealedURI);
    }

    function setPresaleStatus(bool _saleActive) public onlyOwner {
        presaleActive = _saleActive;
        emit PresaleStatusChanged(_saleActive);
    }

    function setPublicSaleStatus(bool _saleActive) public onlyOwner {
        publicSaleActive = _saleActive;
        emit PublicSaleStatusChanged(_saleActive);
    }

    function setSigner(address signer_) public onlyOwner {
        signer = signer_;
        emit SignerChanged(signer_);
    }

    function withdraw(uint256 amount) public payable {
        require(msg.sender == owner() || msg.sender == WITHDRAW_ADDRESS, "Only admin or withdrawer can call");
        (bool success, ) = payable(WITHDRAW_ADDRESS).call{value: (amount > address(this).balance ? address(this).balance : amount)}("");
        require(success, "Transfer failed");
    }

    // metadata URI
    string private _baseTokenURI;

    function _baseURI() internal view virtual override returns (string memory) {
        return _baseTokenURI;
    }
    
    /**
    @dev Block transfers while locking.
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual override {
        require(
            lockingStarted[tokenId] == 0 || lockingTransfer == 2,
            "locking"
        );
    }

    // Internal Helper Methods

    function _mintScribble(address to) internal {
        _tokenId.increment();
        uint256 id = _tokenId.current();
        mintBlocks[id] = block.number;
        uint256 seed = _random(id);
        generate(id, seed);
        _mint(to, id);
    }
    
    /**
    * generates traits for a specific token, checking to make sure it's unique
    * @param tokenId the id of the token to generate traits for
    * @param seed a pseudorandom 256 bit number to derive traits from
    * @return t - a struct of traits for the given token ID
    */
    function generate(uint256 tokenId, uint256 seed) internal returns (Scribble memory t) {
        t = selectTraits(seed);
        scribbles[tokenId] = t;
        return t;

        // keep the following code for future use, current version using different seed, so no need for now
        // if (existingCombinations[structToHash(t)] == 0) {
        //     scribbles[tokenId] = t;
        //     existingCombinations[structToHash(t)] = tokenId;
        //     return t;
        // }
        // return generate(tokenId, random(seed));
    }

    /**
    * uses A.J. Walker's Alias algorithm for O(1) rarity table lookup
    * ensuring O(1) instead of O(n) reduces mint cost by more than 50%
    * probability & alias tables are generated off-chain beforehand
    * @param seed portion of the 256 bit seed to remove trait correlation
    * @param traitType the trait type to select a trait for 
    * @return the ID of the randomly selected trait
    */
    function selectTrait(uint16 seed, uint8 traitType, uint8 base) internal view returns (uint8) {
        if(traitType == 0) { // base
            uint8 trait = uint8(seed) % uint8(raritiesFaction.length);
            if (seed >> 8 < raritiesFaction[trait]) return trait;
            return aliasesFaction[trait];
        } else { // clothes, expression, head, background
            uint8 rid = traitType - 1;
            uint8 trait = uint8(seed) % uint8(rarities[base][rid].length);
            if (seed >> 8 < rarities[base][rid][trait]) return trait;
            return aliases[base][rid][trait];
        }
    }

    /**
    * selects the species and all of its traits based on the seed value
    * @param seed a pseudorandom 256 bit number to derive traits from
    * @return t -  a struct of randomly selected traits
    */
    function selectTraits(uint256 seed) internal view returns (Scribble memory t) {    
        t.base = selectTrait(uint16(seed & 0xFFFF), 0, 0);
        seed >>= 16;
        t.clothes = selectTrait(uint16(seed & 0xFFFF), 1, t.base);
        seed >>= 16;
        t.expression = selectTrait(uint16(seed & 0xFFFF), 2, t.base);
        seed >>= 16;
        t.head = selectTrait(uint16(seed & 0xFFFF), 3, t.base);
        seed >>= 16;
        t.background = selectTrait(uint16(seed & 0xFFFF), 4, t.base);
        seed >>= 16;
    }

    /**
    * converts a struct to a 256 bit hash to check for uniqueness
    * @param s the struct to pack into a hash
    * @return the 256 bit hash of the struct
    */
    function structToHash(Scribble memory s) internal pure returns (uint256) {
        return uint256(bytes32(
        abi.encodePacked(
            s.base,
            s.clothes,
            s.expression,
            s.head,
            s.background
        )
        ));
    }

    /// @dev Create a bit more of randomness
    // function _randomize(
    //     uint256 rand,
    //     string memory val,
    //     uint256 spicy
    // ) internal pure returns (uint256) {
    //     return uint256(keccak256(abi.encode(rand, val, spicy)));
    // }

    // function _rand() internal view returns (uint256) {
    //     return
    //         uint256(
    //             keccak256(
    //                 abi.encodePacked(
    //                     tx.origin,
    //                     blockhash(block.number - 1),
    //                     block.timestamp,
    //                     entropySauce
    //                 )
    //             )
    //         );
    // }

    /**
    * generates a pseudorandom number
    * @param seed a value ensure different outcomes for different sources in the same block
    * @return a pseudorandom value
    */
    function _random(uint256 seed) internal view returns (uint256) {
        return uint256(keccak256(abi.encodePacked(
            // tx.origin,
            blockhash(block.number - 1),
            block.timestamp,
            seed,
            entropySauce
        )));
    }

    function _isValidSignature(address user, bytes memory signature) internal view returns (bool) {
        bytes32 hash = keccak256(abi.encodePacked("whitelist", user));
        address signer_ = hash.toEthSignedMessageHash().recover(signature);
        return signer_ == signer;
    }

}

Settings
{
  "evmVersion": "london",
  "libraries": {},
  "metadata": {
    "bytecodeHash": "ipfs",
    "useLiteralContent": true
  },
  "optimizer": {
    "details": {
      "constantOptimizer": true,
      "cse": true,
      "deduplicate": true,
      "inliner": true,
      "jumpdestRemover": true,
      "orderLiterals": true,
      "peephole": true,
      "yul": false
    },
    "runs": 200
  },
  "remappings": [],
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_initNotRevealedUri","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"baseURI","type":"string"}],"name":"BaseURISet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"cost","type":"uint256"}],"name":"CostChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Expelled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Locked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"MaxMintAmountChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"MaxPerWalletChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"uri","type":"string"}],"name":"NotRevealedUriChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"contract IOracle","name":"oracle","type":"address"}],"name":"OracleChanged","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":false,"internalType":"bool","name":"isPaused","type":"bool"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"isActive","type":"bool"}],"name":"PresaleStatusChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"isActive","type":"bool"}],"name":"PublicSaleStatusChanged","type":"event"},{"anonymous":false,"inputs":[],"name":"Revealed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"signer","type":"address"}],"name":"SignerChanged","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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"UnLocked","type":"event"},{"inputs":[],"name":"WITHDRAW_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"","type":"uint8"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"aliases","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"aliasesFaction","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentTokenID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"existingCombinations","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"expelFromLocking","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"finalizeRandomFactor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getAttributes","outputs":[{"components":[{"internalType":"uint8","name":"base","type":"uint8"},{"internalType":"uint8","name":"clothes","type":"uint8"},{"internalType":"uint8","name":"expression","type":"uint8"},{"internalType":"uint8","name":"head","type":"uint8"},{"internalType":"uint8","name":"background","type":"uint8"}],"internalType":"struct Scribbles.Scribble","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSigner","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":"lockingOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"lockingPeriod","outputs":[{"internalType":"bool","name":"locking","type":"bool"},{"internalType":"uint256","name":"current","type":"uint256"},{"internalType":"uint256","name":"total","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerWallet","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"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"mint1","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"mintBlocks","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"mintPublic","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"address","name":"_to","type":"address"}],"name":"mintReserve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"notRevealedUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"oracle","outputs":[{"internalType":"contract IOracle","name":"","type":"address"}],"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":[],"name":"presaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"publicMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"","type":"uint8"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"rarities","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"raritiesFaction","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"requestRandomFactor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferWhileLocking","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newCost","type":"uint256"}],"name":"setCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"open","type":"bool"}],"name":"setLockingOpen","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newMaxMintAmount","type":"uint256"}],"name":"setMaxMintAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newMaxPerWallet","type":"uint256"}],"name":"setMaxPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_notRevealedURI","type":"string"}],"name":"setNotRevealedURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IOracle","name":"_oracle","type":"address"}],"name":"setOracle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_saleActive","type":"bool"}],"name":"setPresaleStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_saleActive","type":"bool"}],"name":"setPublicSaleStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"signer_","type":"address"}],"name":"setSigner","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":"tokenIds","type":"uint256[]"}],"name":"toggleLocking","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalLockedCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"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":[{"internalType":"address","name":"","type":"address"}],"name":"whitelistMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"}]

6080604052600b805462ffffff1916905566e6ed27d6668000600c5561170a600d556002600e556004600f556010805460ff19908116909155601c8054909116905560016020553480156200005357600080fd5b506040516200620b3803806200620b833981016040819052620000769162001977565b6040518060400160405280601381526020017f5363726962626c6573204d696e742050617373000000000000000000000000008152506040518060400160405280600781526020016653435242424c5360c81b815250620000e6620000e06200018060201b60201c565b62000184565b600180558151620000ff906002906020850190620017b5565b50805162000115906003906020840190620017b5565b5050506200012981620001d460201b60201c565b600980546001600160a01b031916339081179091556040516200015491904290419060200162001a0e565b60408051601f1981840301815291905280516020909101206019556200017962000230565b5062001bd2565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b620001de6200177d565b8051620001f390600a906020840190620017b5565b507f5b4603fcb3d3d9b6dba69e8b60ea02082aa1d621d2cc96d5bbfab381f6164e6e8160405162000225919062001a4b565b60405180910390a150565b6040805160c08101825260ad81526099602082015260c19181019190915260d6606082015260ea608082015260fe60a08201526200027390601590600662001844565b506040805160c08101825260028152600060208201526003918101919091526004606082015260056080820181905260a0820152620002b790601690600662001844565b506040805160c08101825260ea8152609360208083019190915260d69282019290925260e56060820152607a608082015260ff60a082015260008052601390915262000327907f8fa6efc3be94b5b348b21fea823fe8d100408cee9b7f90524494500445d8ff6c90600662001844565b506040805160c081018252600580825260208083018290526000938301849052600160608401819052608084015260a0830191909152918052601490915262000394907f4f26c3876aa9f4b92579780beea1161a61f87ebf1ec6ee865b299e447ecba99c90600662001844565b506040805160c08101825260848152608960208083019190915260c69282019290925260ea6060820152607a608082015260ff60a082015260008052601390915262000404907f8fa6efc3be94b5b348b21fea823fe8d100408cee9b7f90524494500445d8ff6d90600662001844565b506040805160c08101825260028152600060208083018290526003938301939093526005606083018190526080830182905260a08301528052601490915262000471907f4f26c3876aa9f4b92579780beea1161a61f87ebf1ec6ee865b299e447ecba99d90600662001844565b506040805160c08101825260e5815260ea602080830182905260c69383019390935260f46060830152608082015260ff60a0820152600080526013909152620004de907f8fa6efc3be94b5b348b21fea823fe8d100408cee9b7f90524494500445d8ff6e90600662001844565b506040805160c0810182526001815260056020808301829052600493830193909352606082018190526080820181905260a08201526000805260149091526200054b907f4f26c3876aa9f4b92579780beea1161a61f87ebf1ec6ee865b299e447ecba99e90600662001844565b506040805160c08101825260e58152609360208083019190915260ea9282019290925260ff6060820152607a608082015260d660a0820152600080526013909152620005bb907f8fa6efc3be94b5b348b21fea823fe8d100408cee9b7f90524494500445d8ff6f90600662001844565b506040805160c08101825260018082526003602080840182905293830152600560608301526080820152600260a082015260008052601490915262000624907f4f26c3876aa9f4b92579780beea1161a61f87ebf1ec6ee865b299e447ecba99f90600662001844565b506040805160c08101825260b7815260cc60208083019190915260ff9282019290925260d6606082015260e56080820152607a60a08201526001600052601390915262000695907f4155c2f711f2cdd34f8262ab8fb9b7020a700fe7b6948222152f7670d1fdf34d90600662001844565b506040805160c081018252600180825260026020808401919091526005938301939093526000606083018190526080830181905260a0830181905252601490915262000705907fb6c61a840592cc84133e4b25bd509abf4659307c57b160799b38490a5aa48f2c90600662001844565b506040805160c08101825260e0815260f960208083019190915260f4928201839052606082019290925260b7608082015260c660a08201526001600052601390915262000776907f4155c2f711f2cdd34f8262ab8fb9b7020a700fe7b6948222152f7670d1fdf34e90600662001844565b506040805160c08101825260028152600560208083018290529282015260006060820181905260808201819052600160a0830181905290526014909152620007e2907fb6c61a840592cc84133e4b25bd509abf4659307c57b160799b38490a5aa48f2d90600662001844565b506040805160c08101825260e5815260ea602080830182905260c69383019390935260f46060830152608082015260ff60a08201526001600052601390915262000850907f4155c2f711f2cdd34f8262ab8fb9b7020a700fe7b6948222152f7670d1fdf34f90600662001844565b506040805160c081018252600180825260056020808401829052600494840194909452606083018190526080830181905260a08301526000526014909152620008bd907fb6c61a840592cc84133e4b25bd509abf4659307c57b160799b38490a5aa48f2e90600662001844565b506040805160c08101825260e5815260f4602080830182905260d69383018490526060830191909152608082019290925260ff60a0820152600160005260139091526200092e907f4155c2f711f2cdd34f8262ab8fb9b7020a700fe7b6948222152f7670d1fdf35090600662001844565b506040805160c08101825260058082526020808301829052928201819052606082018190526080820181905260a08201526001600052601490915262000998907fb6c61a840592cc84133e4b25bd509abf4659307c57b160799b38490a5aa48f2f90600662001844565b506040805160c081018252604c8152607060208083019190915260939282019290925260b7606082015260db608082015260ff60a08201526002600052601390915262000a09907f0b9d2c0c271bb30544eb78c59bdaebdae2728e5f65814c07768a0abe90ed192390600662001844565b506040805160c08101825260018152600260208083018290526003938301939093526004606083015260056080830181905260a0830152600052601490915262000a77907fa1930aa930426c54c34daad2b9ada7c5d0ef0c96078a3c5bb79f6fa6602c4a7a90600662001844565b506040805160c08101825260e0815260f960208083019190915260f4928201839052606082019290925260b7608082015260c660a08201526002600052601390915262000ae8907f0b9d2c0c271bb30544eb78c59bdaebdae2728e5f65814c07768a0abe90ed192490600662001844565b506040805160c0810182526002808252600560208084018290529383015260006060830181905260808301819052600160a084015252601490915262000b52907fa1930aa930426c54c34daad2b9ada7c5d0ef0c96078a3c5bb79f6fa6602c4a7b90600662001844565b506040805160c08101825260e5815260ea602080830182905260c69383019390935260f46060830152608082015260ff60a08201526002600052601390915262000bc0907f0b9d2c0c271bb30544eb78c59bdaebdae2728e5f65814c07768a0abe90ed192590600662001844565b506040805160c0810182526001815260056020808301829052600493830193909352606082018190526080820181905260a08201526002600052601490915262000c2e907fa1930aa930426c54c34daad2b9ada7c5d0ef0c96078a3c5bb79f6fa6602c4a7c90600662001844565b506040805160c08101825260e580825260208083019190915260f49282019290925260ff606082015260d66080820152609960a08201526002600052601390915262000c9e907f0b9d2c0c271bb30544eb78c59bdaebdae2728e5f65814c07768a0abe90ed192690600662001844565b506040805160c08101825260018082526003602080840182905293830182905260056060840152608083019190915260a08201526002600052601490915262000d0b907fa1930aa930426c54c34daad2b9ada7c5d0ef0c96078a3c5bb79f6fa6602c4a7d90600662001844565b506040805160c08101825260a8815260db60208083019190915260d69282019290925260b7606082015260ef6080820152609960a08201526003600052601390915262000d7c907f0d2a6872ef858a7f8ead18dc4f3f2e8d35c853d47e2816cbb9cdd49202554e0c90600662001844565b506040805160c0810182526001815260046020808301919091526000928201839052606082018390526005608083015260a082018390526003909252601490915262000dec907f63d87a887046e0430be80fdeb014107d7198c879cbf2cddf39a6df195c86cb3890600662001844565b506040805160c08101825260e0815260f960208083019190915260f4928201839052606082019290925260b7608082015260c660a08201526003600052601390915262000e5d907f0d2a6872ef858a7f8ead18dc4f3f2e8d35c853d47e2816cbb9cdd49202554e0d90600662001844565b506040805160c08101825260028152600560208083018290529282015260006060820181905260808201819052600160a083015260039052601490915262000ec9907f63d87a887046e0430be80fdeb014107d7198c879cbf2cddf39a6df195c86cb3990600662001844565b506040805160c08101825260e5815260ea602080830182905260c69383019390935260f46060830152608082015260ff60a08201526003600052601390915262000f37907f0d2a6872ef858a7f8ead18dc4f3f2e8d35c853d47e2816cbb9cdd49202554e0e90600662001844565b506040805160c0810182526001815260056020808301829052600493830193909352606082018190526080820181905260a08201526003600052601490915262000fa5907f63d87a887046e0430be80fdeb014107d7198c879cbf2cddf39a6df195c86cb3a90600662001844565b506040805160c08101825260e5815260b260208083019190915260ea9282019290925260ff60608201526099608082015260b760a08201526003600052601390915262001016907f0d2a6872ef858a7f8ead18dc4f3f2e8d35c853d47e2816cbb9cdd49202554e0f90600662001844565b506040805160c081018252600180825260026020808401829052600394840185905260056060850152608084019290925260a0830152600092909252601490915262001086907f63d87a887046e0430be80fdeb014107d7198c879cbf2cddf39a6df195c86cb3b90600662001844565b506040805160c08101825260b7815260cc60208083019190915260e59282019290925260d6606082015260ff6080820152607a60a082015260046000526013909152620010f7907f01413ff7a3b1d5b6c016c061d48e2c7014700c777a29fcd068fff04265813d5d90600662001844565b506040805160c08101825260018152600460208083018290526000938301849052606083018490526005608084015260a083018490529252601490915262001163907f52102136546d97ed3f65ec1070a32935d3048ea12f310d29c378dc9d6555c0d690600662001844565b506040805160c08101825260e0815260f960208083019190915260f4928201839052606082019290925260b7608082015260c660a082015260046000526013909152620011d4907f01413ff7a3b1d5b6c016c061d48e2c7014700c777a29fcd068fff04265813d5e90600662001844565b506040805160c08101825260028152600560208083018290529282015260006060820181905260808201819052600160a083015260049052601490915262001240907f52102136546d97ed3f65ec1070a32935d3048ea12f310d29c378dc9d6555c0d790600662001844565b506040805160c08101825260e5815260ea602080830182905260c69383019390935260f46060830152608082015260ff60a082015260046000526013909152620012ae907f01413ff7a3b1d5b6c016c061d48e2c7014700c777a29fcd068fff04265813d5f90600662001844565b506040805160c08101825260018152600560208083018290526004938301849052606083018290526080830182905260a083019190915260009290925260149091526200131f907f52102136546d97ed3f65ec1070a32935d3048ea12f310d29c378dc9d6555c0d890600662001844565b506040805160c08101825260e580825260d660208084019190915260fe9383019390935260608201526089608082015260f460a0820152600460005260139091526200138f907f01413ff7a3b1d5b6c016c061d48e2c7014700c777a29fcd068fff04265813d6090600662001844565b506040805160c08101825260018082526002602080840182905260059484019490945260608301829052608083019190915260a082015260046000526014909152620013ff907f52102136546d97ed3f65ec1070a32935d3048ea12f310d29c378dc9d6555c0d990600662001844565b506040805160c08101825260b7815260cc60208083019190915260ff9282019290925260d6606082015260e56080820152607a60a08201526005600052601390915262001470907ff4b2859895858d6aa26d656e4999d552f6a869b74c43bba7d2a941c4d22c355990600662001844565b506040805160c08101825260018152600260208083019190915260059282018390526000606083018190526080830181905260a08301819052929092526014909152620014e1907f116126bec5aaa49b347e966c49378cf0c441de9121e306ea3d824584a9615aa290600662001844565b506040805160c08101825260e0815260f960208083019190915260f4928201839052606082019290925260b7608082015260c660a08201526005600052601390915262001552907ff4b2859895858d6aa26d656e4999d552f6a869b74c43bba7d2a941c4d22c355a90600662001844565b506040805160c081018252600281526005602080830182905292820181905260006060830181905260808301819052600160a0840152526014909152620015bd907f116126bec5aaa49b347e966c49378cf0c441de9121e306ea3d824584a9615aa390600662001844565b506040805160c08101825260e5815260ea602080830182905260c69383019390935260f46060830152608082015260ff60a0820152600560005260139091526200162b907ff4b2859895858d6aa26d656e4999d552f6a869b74c43bba7d2a941c4d22c355b90600662001844565b506040805160c0810182526001815260056020808301829052600493830193909352606082018190526080820181905260a08201819052600052601490915262001699907f116126bec5aaa49b347e966c49378cf0c441de9121e306ea3d824584a9615aa490600662001844565b506040805160c08101825260e5815260b260208083019190915260ea9282019290925260ff60608201526099608082015260b760a0820152600560005260139091526200170a907ff4b2859895858d6aa26d656e4999d552f6a869b74c43bba7d2a941c4d22c355c90600662001844565b506040805160c081018252600180825260026020808401829052600394840194909452600560608401819052608084019290925260a083015260005260149091526200177a907f116126bec5aaa49b347e966c49378cf0c441de9121e306ea3d824584a9615aa590600662001844565b50565b6000546001600160a01b03163314620017b35760405162461bcd60e51b8152600401620017aa9062001a65565b60405180910390fd5b565b828054620017c39062001b32565b90600052602060002090601f016020900481019282620017e7576000855562001832565b82601f106200180257805160ff191683800117855562001832565b8280016001018555821562001832579182015b828111156200183257825182559160200191906001019062001815565b5062001840929150620018e7565b5090565b82805482825590600052602060002090601f01602090048101928215620018325791602002820160005b83821115620018ae57835183826101000a81548160ff021916908360ff16021790555092602001926001016020816000010492830192600103026200186e565b8015620018dd5782816101000a81549060ff0219169055600101602081600001049283019260010302620018ae565b5050620018409291505b5b80821115620018405760008155600101620018e8565b6000620019156200190f8462001ac0565b62001aa1565b905082815260208101848484011115620019325762001932600080fd5b6200193f84828562001aff565b509392505050565b600082601f8301126200195d576200195d600080fd5b81516200196f848260208601620018fe565b949350505050565b6000602082840312156200198e576200198e600080fd5b81516001600160401b03811115620019a957620019a9600080fd5b6200196f8482850162001947565b620019cc620019c68262001aed565b62001b92565b82525050565b6000620019dd825190565b808452602084019350620019f681856020860162001aff565b601f01601f19169290920192915050565b80620019cc565b600062001a1c8286620019b7565b60148201915062001a2e828562001a07565b60208201915062001a408284620019b7565b506014019392505050565b6020808252810162001a5e8184620019d2565b9392505050565b60208082528181019081527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726040830152606082015b92915050565b600062001aad60405190565b905062001abb828262001b63565b919050565b60006001600160401b0382111562001adc5762001adc62001bbc565b601f19601f83011660200192915050565b60006001600160a01b03821662001a9b565b60005b8381101562001b1c57818101518382015260200162001b02565b8381111562001b2c576000848401525b50505050565b60028104600182168062001b4757607f821691505b6020821081141562001b5d5762001b5d62001ba6565b50919050565b601f19601f83011681018181106001600160401b038211171562001b8b5762001b8b62001bbc565b6040525050565b600062001a9b82600062001a9b8260601b90565b634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6146298062001be26000396000f3fe6080604052600436106103c35760003560e01c80636c19e783116101f2578063b423fe671161010d578063d5abeb01116100a0578063edf5ae8d1161006f578063edf5ae8d14610b35578063efd0cbf914610b4b578063f2c4ce1e14610b5e578063f2fde38b14610b7e57600080fd5b8063d5abeb0114610abf578063e0a05c2a14610ad5578063e268e4d314610af5578063e985e9c514610b1557600080fd5b8063c87b56dd116100dc578063c87b56dd14610a38578063cb6a0de514610a58578063d0fb0f8c14610a72578063d27768d914610a9f57600080fd5b8063b423fe67146109d9578063b88d4fde146109f9578063bb62115e146105c0578063bc8893b414610a1957600080fd5b80638b9a10d711610185578063a1b8f37411610154578063a1b8f37414610957578063a22cb46514610984578063a475b5dd146109a4578063ab38e40d146109b957600080fd5b80638b9a10d7146108e45780638da5cb5b146108f757806395d89b411461091557806398a8cffe1461092a57600080fd5b80637adbf973116101c15780637adbf973146108575780637dc0d1d014610877578063850dd091146108a45780638895283f146108c457600080fd5b80636c19e783146107e457806370a0823114610804578063715018a6146108245780637ac3c02f1461083957600080fd5b806323b872dd116102e257806344a0d68a1161027557806353135ca01161024457806353135ca01461076a57806355f804b3146107845780635c975abb146107a45780636352211e146107c457600080fd5b806344a0d68a146106fa578063453c23101461071a578063513b041914610730578063518302271461075057600080fd5b80634079f632116102b15780634079f6321461066b57806342842e0e146106805780634378a6e3146106a0578063438b6300146106cd57600080fd5b806323b872dd146105eb57806323fca6b11461060b5780632e1a7d4d14610638578063393cee571461064b57600080fd5b80630b2d61ad1161035a578063122e04a811610329578063122e04a81461058257806313faede6146105aa57806318160ddd146105c0578063239c70ae146105d557600080fd5b80630b2d61ad146104f35780630eac1708146105135780631015805b14610528578063117bafa11461056257600080fd5b8063081812fc11610396578063081812fc14610471578063081c8c441461049e578063088a4ed0146104b3578063095ea7b3146104d357600080fd5b806301ffc9a7146103c857806302329a29146103fe5780630484ee511461042057806306fdde031461044f575b600080fd5b3480156103d457600080fd5b506103e86103e336600461334d565b610b9e565b6040516103f59190613ffd565b60405180910390f35b34801561040a57600080fd5b5061041e61041936600461332c565b610bf0565b005b34801561042c57600080fd5b5061044061043b366004613425565b610c48565b6040516103f59392919061400b565b34801561045b57600080fd5b50610464610c94565b6040516103f59190614091565b34801561047d57600080fd5b5061049161048c366004613425565b610d26565b6040516103f59190613f9a565b3480156104aa57600080fd5b50610464610d4d565b3480156104bf57600080fd5b5061041e6104ce366004613425565b610ddb565b3480156104df57600080fd5b5061041e6104ee3660046132b2565b610e18565b3480156104ff57600080fd5b5061041e61050e36600461332c565b610ea7565b34801561051f57600080fd5b5061041e610ec2565b34801561053457600080fd5b50610555610543366004613153565b60126020526000908152604090205481565b6040516103f59190614310565b34801561056e57600080fd5b5061041e61057d3660046132e5565b610fec565b34801561058e57600080fd5b5061049173876f13d830dbb25017da552256d56c779bd5c58e81565b3480156105b657600080fd5b50610555600c5481565b3480156105cc57600080fd5b5061055561102f565b3480156105e157600080fd5b50610555600e5481565b3480156105f757600080fd5b5061041e6106063660046131b1565b61103f565b34801561061757600080fd5b5061062b6106263660046134f7565b611071565b6040516103f5919061432c565b61041e610646366004613425565b6110c4565b34801561065757600080fd5b5061062b610666366004613425565b6111a5565b34801561067757600080fd5b5061041e6111d9565b34801561068c57600080fd5b5061041e61069b3660046131b1565b61128c565b3480156106ac57600080fd5b506106c06106bb366004613425565b6112a7565b6040516103f59190614302565b3480156106d957600080fd5b506106ed6106e8366004613153565b611395565b6040516103f59190613fec565b34801561070657600080fd5b5061041e610715366004613425565b611461565b34801561072657600080fd5b50610555600f5481565b34801561073c57600080fd5b5061041e61074b366004613425565b61149e565b34801561075c57600080fd5b506010546103e89060ff1681565b34801561077657600080fd5b50600b546103e89060ff1681565b34801561079057600080fd5b5061041e61079f3660046133b0565b61158a565b3480156107b057600080fd5b50600b546103e89062010000900460ff1681565b3480156107d057600080fd5b506104916107df366004613425565b6115dc565b3480156107f057600080fd5b5061041e6107ff366004613153565b611611565b34801561081057600080fd5b5061055561081f366004613153565b611664565b34801561083057600080fd5b5061041e6116a8565b34801561084557600080fd5b506009546001600160a01b0316610491565b34801561086357600080fd5b5061041e61087236600461338f565b6116bc565b34801561088357600080fd5b50601854610897906001600160a01b031681565b6040516103f59190614071565b3480156108b057600080fd5b5061041e6108bf366004613467565b61170f565b3480156108d057600080fd5b5061041e6108df36600461332c565b611813565b61041e6108f2366004613489565b611859565b34801561090357600080fd5b506000546001600160a01b0316610491565b34801561092157600080fd5b50610464611a81565b34801561093657600080fd5b50610555610945366004613153565b60116020526000908152604090205481565b34801561096357600080fd5b50610555610972366004613425565b60176020526000908152604090205481565b34801561099057600080fd5b5061041e61099f36600461327f565b611a90565b3480156109b057600080fd5b5061041e611a9b565b3480156109c557600080fd5b5061062b6109d43660046134f7565b611adb565b3480156109e557600080fd5b5061041e6109f436600461332c565b611af7565b348015610a0557600080fd5b5061041e610a14366004613201565b611b42565b348015610a2557600080fd5b50600b546103e890610100900460ff1681565b348015610a4457600080fd5b50610464610a53366004613425565b611b74565b348015610a6457600080fd5b50601c546103e89060ff1681565b348015610a7e57600080fd5b50610555610a8d366004613425565b601a6020526000908152604090205481565b348015610aab57600080fd5b5061041e610aba3660046131b1565b611c50565b348015610acb57600080fd5b50610555600d5481565b348015610ae157600080fd5b5061062b610af0366004613425565b611c9a565b348015610b0157600080fd5b5061041e610b10366004613425565b611caa565b348015610b2157600080fd5b506103e8610b30366004613174565b611ce6565b348015610b4157600080fd5b50610555601f5481565b61041e610b59366004613425565b611d14565b348015610b6a57600080fd5b5061041e610b793660046133eb565b611f16565b348015610b8a57600080fd5b5061041e610b99366004613153565b611f61565b60006001600160e01b031982166380ac58cd60e01b1480610bcf57506001600160e01b03198216635b5e139f60e01b145b80610bea57506301ffc9a760e01b6001600160e01b03198316145b92915050565b610bf8611f9b565b600b805462ff0000191662010000831515021790556040517f0e2fb031ee032dc02d8011dc50b816eb450cf856abd8261680dac74f72165bd290610c3d908390613ffd565b60405180910390a150565b6000818152601d6020526040812054819081908015610c725760019350610c6f81426143cb565b92505b6000858152601e6020526040902054610c8b9084614380565b93959294505050565b606060028054610ca39061446d565b80601f0160208091040260200160405190810160405280929190818152602001828054610ccf9061446d565b8015610d1c5780601f10610cf157610100808354040283529160200191610d1c565b820191906000526020600020905b815481529060010190602001808311610cff57829003601f168201915b5050505050905090565b6000610d3182611fc5565b506000908152600660205260409020546001600160a01b031690565b600a8054610d5a9061446d565b80601f0160208091040260200160405190810160405280929190818152602001828054610d869061446d565b8015610dd35780601f10610da857610100808354040283529160200191610dd3565b820191906000526020600020905b815481529060010190602001808311610db657829003601f168201915b505050505081565b610de3611f9b565b600e8190556040517f71ef44637f994911a9fa6bc89bc19c9bbf6f510a992e74f90880ffbccd7b2c6b90610c3d908390614310565b6000610e23826115dc565b9050806001600160a01b0316836001600160a01b03161415610e605760405162461bcd60e51b8152600401610e5790614282565b60405180910390fd5b336001600160a01b0382161480610e7c5750610e7c8133611ce6565b610e985760405162461bcd60e51b8152600401610e5790614202565b610ea28383611ff9565b505050565b610eaf611f9b565b601c805460ff1916911515919091179055565b610eca611f9b565b6021546001600160401b0316610ef25760405162461bcd60e51b8152600401610e57906142f2565b6018546021546040516380932be160e01b81526001600160a01b03909216916380932be191610f2f916001600160401b039091169060040161431e565b60206040518083038186803b158015610f4757600080fd5b505afa158015610f5b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f7f9190613446565b6022819055610fa05760405162461bcd60e51b8152600401610e5790614142565b602254601954604051610fb99233924192602001613ea4565b60408051601f19818403018152919052805160209091012060195560006022556021805467ffffffffffffffff19169055565b8060005b818110156110295761101984848381811061100d5761100d614574565b90506020020135612067565b611022816144c6565b9050610ff0565b50505050565b600061103a60085490565b905090565b61104a335b82612195565b6110665760405162461bcd60e51b8152600401610e57906142a2565b610ea28383836121f4565b6014602052826000526040600020826004811061108d57600080fd5b01818154811061109c57600080fd5b906000526020600020906020918282040191900692509250509054906101000a900460ff1681565b6000546001600160a01b03163314806110f057503373876f13d830dbb25017da552256d56c779bd5c58e145b61110c5760405162461bcd60e51b8152600401610e57906142d2565b600073876f13d830dbb25017da552256d56c779bd5c58e4783116111305782611132565b475b60405161113e90613f92565b60006040518083038185875af1925050503d806000811461117b576040519150601f19603f3d011682016040523d82523d6000602084013e611180565b606091505b50509050806111a15760405162461bcd60e51b8152600401610e5790614102565b5050565b601681815481106111b557600080fd5b9060005260206000209060209182820401919006915054906101000a900460ff1681565b6111e1611f9b565b601860009054906101000a90046001600160a01b03166001600160a01b031663338cdca16040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561123157600080fd5b505af1158015611245573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061126991906134d6565b6021805467ffffffffffffffff19166001600160401b0392909216919091179055565b610ea283838360405180602001604052806000815250611b42565b6040805160a0810182526000808252602082018190529181018290526060810182905260808101919091526000828152600460205260409020546001600160a01b03166113065760405162461bcd60e51b8152600401610e5790614252565b6000828152601a60205260409020544314156113345760405162461bcd60e51b8152600401610e57906141a2565b506000908152601b6020908152604091829020825160a081018452905460ff80821683526101008204811693830193909352620100008104831693820193909352630100000083048216606082015264010000000090920416608082015290565b606060006113a283611664565b90506000816001600160401b038111156113be576113be61458a565b6040519080825280602002602001820160405280156113e7578160200160208202803683370190505b509050600060015b600854811161145757856001600160a01b031661140b826115dc565b6001600160a01b0316141561144557808383611426816144c6565b94508151811061143857611438614574565b6020026020010181815250505b8061144f816144c6565b9150506113ef565b5090949350505050565b611469611f9b565b600c8190556040517f5d3cc44bbc86a70941868a14a9f66a647d7f7499d4d3789f68e4486c11ea46da90610c3d908390614310565b6114a6611f9b565b6000818152601d60205260409020546114d15760405162461bcd60e51b8152600401610e5790614272565b6000818152601d60205260409020546114ea90426143cb565b6000828152601e602052604081208054909190611508908490614380565b90915550506000818152601d60205260408120819055601f80549161152c83614456565b909155505060405181907fdbd310cb147795b06bf9b1c69addb1c067502c8eff1940880f723187c27dd32b90600090a260405181907f3ebee94e74ea24f711b5876dca724062e18b7b37b6883e686a92f093248a4fcf90600090a250565b611592611f9b565b61159e60238383612ef2565b507ff9c7803e94e0d3c02900d8a90893a6d5e90dd04d32a4cfe825520f82bf9f32f682826040516115d092919061407f565b60405180910390a15050565b6000818152600460205260408120546001600160a01b031680610bea5760405162461bcd60e51b8152600401610e5790614262565b611619611f9b565b600980546001600160a01b0319166001600160a01b0383161790556040517f5719a5656c5cfdaafa148ecf366fd3b0a7fae06449ce2a46225977fb7417e29d90610c3d908390613f9a565b60006001600160a01b03821661168c5760405162461bcd60e51b8152600401610e57906141c2565b506001600160a01b031660009081526005602052604090205490565b6116b0611f9b565b6116ba6000612321565b565b6116c4611f9b565b601880546001600160a01b0319166001600160a01b0383161790556040517f0e05ae75e8b926552cf6fcd744d19f422561e3ced1e426868730852702dbe41890610c3d908390614071565b600b5462010000900460ff16156117385760405162461bcd60e51b8152600401610e5790614132565b611740611f9b565b33803b90806117576000546001600160a01b031690565b6001600160a01b0316148061176a575081155b6117865760405162461bcd60e51b8152600401610e5790614182565b600d546008546117969086614380565b11156117b45760405162461bcd60e51b8152600401610e57906140b2565b60005b848110156117da576117c884612371565b806117d2816144c6565b9150506117b7565b5080416019546040516020016117f293929190613e6d565b60408051601f19818403018152919052805160209091012060195550505050565b61181b611f9b565b600b805460ff19168215151790556040517f1f1a6b0fcc71315f2c3aeddbd1f6d527595d21eea9b73160e78d6fa49b7897a690610c3d908390613ffd565b600b5462010000900460ff16156118825760405162461bcd60e51b8152600401610e5790614132565b600260015414156118a55760405162461bcd60e51b8152600401610e57906142b2565b600260015533803b90806118c16000546001600160a01b031690565b6001600160a01b031614806118d4575081155b6118f05760405162461bcd60e51b8152600401610e5790614182565b8380600c546118ff91906143ac565b34101561191e5760405162461bcd60e51b8152600401610e57906141b2565b6000811161193e5760405162461bcd60e51b8152600401610e57906142c2565b600d5460085461194e9083614380565b111561196c5760405162461bcd60e51b8152600401610e57906140b2565b600b5460ff1615156001146119935760405162461bcd60e51b8152600401610e5790614232565b61199d33856123be565b15156001146119be5760405162461bcd60e51b8152600401610e57906141e2565b600e54336000908152601160205260409020546119db9087614380565b11156119f95760405162461bcd60e51b8152600401610e57906141d2565b3360009081526011602052604081208054879290611a18908490614380565b90915550600190505b858111611a4357611a3133612371565b80611a3b816144c6565b915050611a21565b50508041601954604051602001611a5c93929190613e6d565b60408051601f1981840301815291905280516020909101206019555050600180555050565b606060038054610ca39061446d565b6111a1338383612419565b611aa3611f9b565b6010805460ff191660011790556040517fe2a7169cedebe39671840370ae19ca4fc41be6191d4c77f174f189a4d8cd08c890600090a1565b6013602052826000526040600020826004811061108d57600080fd5b611aff611f9b565b600b805461ff001916610100831515021790556040517f36b97db79058521017a18d3f5261657061fa019ef5637747834f022e588ec07490610c3d908390613ffd565b611b4c3383612195565b611b685760405162461bcd60e51b8152600401610e57906142a2565b611029848484846124bc565b6000818152600460205260409020546060906001600160a01b0316611bab5760405162461bcd60e51b8152600401610e5790614252565b60105460ff16611c4757600a8054611bc29061446d565b80601f0160208091040260200160405190810160405280929190818152602001828054611bee9061446d565b8015611c3b5780601f10611c1057610100808354040283529160200191611c3b565b820191906000526020600020905b815481529060010190602001808311611c1e57829003601f168201915b50505050509050919050565b610bea826124ef565b33611c5a826115dc565b6001600160a01b031614611c805760405162461bcd60e51b8152600401610e57906140d2565b6002602055611c9083838361128c565b5050600160205550565b601581815481106111b557600080fd5b611cb2611f9b565b600f8190556040517ec836a17ed3a6a59dce35376ae3c2777797dc03f39f463153c0fea5b65f068390610c3d908390614310565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b600b5462010000900460ff1615611d3d5760405162461bcd60e51b8152600401610e5790614132565b60026001541415611d605760405162461bcd60e51b8152600401610e57906142b2565b600260015533803b9080611d7c6000546001600160a01b031690565b6001600160a01b03161480611d8f575081155b611dab5760405162461bcd60e51b8152600401610e5790614182565b8280600c54611dba91906143ac565b341015611dd95760405162461bcd60e51b8152600401610e57906141b2565b60008111611df95760405162461bcd60e51b8152600401610e57906142c2565b600d54600854611e099083614380565b1115611e275760405162461bcd60e51b8152600401610e57906140b2565b600b5460ff610100909104161515600114611e545760405162461bcd60e51b8152600401610e5790614222565b600f5433600090815260126020526040902054611e719086614380565b1115611e8f5760405162461bcd60e51b8152600401610e5790614192565b3360009081526012602052604081208054869290611eae908490614380565b90915550600190505b848111611ed957611ec733612371565b80611ed1816144c6565b915050611eb7565b50508041601954604051602001611ef293929190613e6d565b60408051601f19818403018152919052805160209091012060195550506001805550565b611f1e611f9b565b8051611f3190600a906020840190612f76565b507f5b4603fcb3d3d9b6dba69e8b60ea02082aa1d621d2cc96d5bbfab381f6164e6e81604051610c3d9190614091565b611f69611f9b565b6001600160a01b038116611f8f5760405162461bcd60e51b8152600401610e57906140f2565b611f9881612321565b50565b6000546001600160a01b031633146116ba5760405162461bcd60e51b8152600401610e5790614242565b6000818152600460205260409020546001600160a01b0316611f985760405162461bcd60e51b8152600401610e5790614262565b600081815260066020526040902080546001600160a01b0319166001600160a01b038416908117909155819061202e826115dc565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b61207033611044565b61208c5760405162461bcd60e51b8152600401610e57906142a2565b6000818152601d60205260409020548061211557601c5460ff166120c25760405162461bcd60e51b8152600401610e5790614292565b6000828152601d60205260408120429055601f8054916120e1836144c6565b909155505060405182907f032bc66be43dbccb7487781d168eb7bda224628a3b2c3388bdf69b532a3a161190600090a25050565b61211f81426143cb565b6000838152601e60205260408120805490919061213d908490614380565b90915550506000828152601d60205260408120819055601f80549161216183614456565b909155505060405182907fdbd310cb147795b06bf9b1c69addb1c067502c8eff1940880f723187c27dd32b90600090a25050565b6000806121a1836115dc565b9050806001600160a01b0316846001600160a01b031614806121c857506121c88185611ce6565b806121ec5750836001600160a01b03166121e184610d26565b6001600160a01b0316145b949350505050565b826001600160a01b0316612207826115dc565b6001600160a01b03161461222d5760405162461bcd60e51b8152600401610e5790614112565b6001600160a01b0382166122535760405162461bcd60e51b8152600401610e5790614152565b61225e838383612556565b612269600082611ff9565b6001600160a01b03831660009081526005602052604081208054600192906122929084906143cb565b90915550506001600160a01b03821660009081526005602052604081208054600192906122c0908490614380565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61237f600880546001019055565b600061238a60085490565b6000818152601a602052604081204390559091506123a78261258f565b90506123b382826125d3565b50610ea28383612695565b600080836040516020016123d29190613f6b565b60405160208183030381529060405280519060200120905060006123ff846123f984612783565b906127b3565b6009546001600160a01b0390811691161495945050505050565b816001600160a01b0316836001600160a01b0316141561244b5760405162461bcd60e51b8152600401610e5790614162565b6001600160a01b0383811660008181526007602090815260408083209487168084529490915290819020805460ff1916851515179055517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31906124af908590613ffd565b60405180910390a3505050565b6124c78484846121f4565b6124d3848484846127d7565b6110295760405162461bcd60e51b8152600401610e57906140e2565b60606124fa82611fc5565b60006125046128e4565b90506000815111612524576040518060200160405280600081525061254f565b8061252e846128f3565b60405160200161253f929190613f18565b6040516020818303038152906040525b9392505050565b6000818152601d6020526040902054158061257357506020546002145b610ea25760405162461bcd60e51b8152600401610e57906142e2565b600061259c6001436143cb565b4042836019546040516020016125b59493929190613eec565b60408051601f19818403018152919052805160209091012092915050565b6040805160a081018252600080825260208201819052918101829052606081018290526080810191909152612607826129f0565b6000848152601b60209081526040918290208351815492850151938501516060860151608087015160ff9081166401000000000264ff000000001992821663010000000263ff0000001994831662010000029490941663ffff0000199883166101000261ffff1990981692909516919091179590951795909516919091171792909216179055905092915050565b6001600160a01b0382166126bb5760405162461bcd60e51b8152600401610e5790614212565b6000818152600460205260409020546001600160a01b0316156126f05760405162461bcd60e51b8152600401610e5790614122565b6126fc60008383612556565b6001600160a01b0382166000908152600560205260408120805460019290612725908490614380565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000816040516020016127969190613f30565b604051602081830303815290604052805190602001209050919050565b60008060006127c28585612ac0565b915091506127cf81612b30565b509392505050565b60006001600160a01b0384163b156128d957604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061281b903390899088908890600401613fa8565b602060405180830381600087803b15801561283557600080fd5b505af1925050508015612865575060408051601f3d908101601f191682019092526128629181019061336e565b60015b6128bf573d808015612893576040519150601f19603f3d011682016040523d82523d6000602084013e612898565b606091505b5080516128b75760405162461bcd60e51b8152600401610e57906140e2565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506121ec565b506001949350505050565b606060238054610ca39061446d565b6060816129175750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612941578061292b816144c6565b915061293a9050600a83614398565b915061291b565b6000816001600160401b0381111561295b5761295b61458a565b6040519080825280601f01601f191660200182016040528015612985576020820181803683370190505b5090505b84156121ec5761299a6001836143cb565b91506129a7600a866144f3565b6129b2906030614380565b60f81b8183815181106129c7576129c7614574565b60200101906001600160f81b031916908160001a9053506129e9600a86614398565b9450612989565b6040805160a081018252600080825260208201819052918101829052606081018290526080810191909152612a2b8261ffff16600080612c15565b60ff1680825260109290921c91612a4a9061ffff841690600190612c15565b60ff166020820152805160109290921c91612a6d9061ffff841690600290612c15565b60ff166040820152805160109290921c91612a909061ffff841690600390612c15565b60ff166060820152805160109290921c91612ab39061ffff841690600490612c15565b60ff166080820152919050565b600080825160411415612af75760208301516040840151606085015160001a612aeb87828585612dd9565b94509450505050612b29565b825160401415612b215760208301516040840151612b16868383612eb9565b935093505050612b29565b506000905060025b9250929050565b6000816004811115612b4457612b44614548565b1415612b4d5750565b6001816004811115612b6157612b61614548565b1415612b7f5760405162461bcd60e51b8152600401610e57906140a2565b6002816004811115612b9357612b93614548565b1415612bb15760405162461bcd60e51b8152600401610e57906140c2565b6003816004811115612bc557612bc5614548565b1415612be35760405162461bcd60e51b8152600401610e5790614172565b6004816004811115612bf757612bf7614548565b1415611f985760405162461bcd60e51b8152600401610e57906141f2565b600060ff8316612cbb57601554600090612c2f908661450b565b905060158160ff1681548110612c4757612c47614574565b60009182526020918290209181049091015460ff601f9092166101000a90048116600887901c9091161015612c7d57905061254f565b60168160ff1681548110612c9357612c93614574565b90600052602060002090602091828204019190069054906101000a900460ff1691505061254f565b6000612cc86001856143e6565b60ff80851660009081526013602052604081209293509190831660048110612cf257612cf2614574565b0154612cfe908761450b565b60ff8086166000908152601360205260409020919250831660048110612d2657612d26614574565b018160ff1681548110612d3b57612d3b614574565b60009182526020918290209181049091015460ff601f9092166101000a90048116600888901c9091161015612d7357915061254f9050565b60ff808516600090815260146020526040902090831660048110612d9957612d99614574565b018160ff1681548110612dae57612dae614574565b90600052602060002090602091828204019190069054906101000a900460ff16925050509392505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612e105750600090506003612eb0565b8460ff16601b14158015612e2857508460ff16601c14155b15612e395750600090506004612eb0565b600060018787878760405160008152602001604052604051612e5e9493929190614033565b6020604051602081039080840390855afa158015612e80573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612ea957600060019250925050612eb0565b9150600090505b94509492505050565b6000806001600160ff1b03831681612ed660ff86901c601b614380565b9050612ee487828885612dd9565b935093505050935093915050565b828054612efe9061446d565b90600052602060002090601f016020900481019282612f205760008555612f66565b82601f10612f395782800160ff19823516178555612f66565b82800160010185558215612f66579182015b82811115612f66578235825591602001919060010190612f4b565b50612f72929150612fea565b5090565b828054612f829061446d565b90600052602060002090601f016020900481019282612fa45760008555612f66565b82601f10612fbd57805160ff1916838001178555612f66565b82800160010185558215612f66579182015b82811115612f66578251825591602001919060010190612fcf565b5b80821115612f725760008155600101612feb565b600061301261300d84614356565b61433a565b90508281526020810184848401111561302d5761302d600080fd5b6127cf84828561441e565b8035610bea816145a0565b60008083601f84011261305857613058600080fd5b5081356001600160401b0381111561307257613072600080fd5b602083019150836020820283011115612b2957612b29600080fd5b8035610bea816145b4565b8035610bea816145bc565b8051610bea816145bc565b600082601f8301126130c2576130c2600080fd5b81356121ec848260208601612fff565b8035610bea816145cc565b60008083601f8401126130f2576130f2600080fd5b5081356001600160401b0381111561310c5761310c600080fd5b602083019150836001820283011115612b2957612b29600080fd5b8035610bea816145d5565b8051610bea816145d5565b8051610bea816145db565b8035610bea816145ea565b60006020828403121561316857613168600080fd5b60006121ec8484613038565b6000806040838503121561318a5761318a600080fd5b60006131968585613038565b92505060206131a785828601613038565b9150509250929050565b6000806000606084860312156131c9576131c9600080fd5b60006131d58686613038565b93505060206131e686828701613038565b92505060406131f786828701613127565b9150509250925092565b6000806000806080858703121561321a5761321a600080fd5b60006132268787613038565b945050602061323787828801613038565b935050604061324887828801613127565b92505060608501356001600160401b0381111561326757613267600080fd5b613273878288016130ae565b91505092959194509250565b6000806040838503121561329557613295600080fd5b60006132a18585613038565b92505060206131a78582860161308d565b600080604083850312156132c8576132c8600080fd5b60006132d48585613038565b92505060206131a785828601613127565b600080602083850312156132fb576132fb600080fd5b82356001600160401b0381111561331457613314600080fd5b61332085828601613043565b92509250509250929050565b60006020828403121561334157613341600080fd5b60006121ec848461308d565b60006020828403121561336257613362600080fd5b60006121ec8484613098565b60006020828403121561338357613383600080fd5b60006121ec84846130a3565b6000602082840312156133a4576133a4600080fd5b60006121ec84846130d2565b600080602083850312156133c6576133c6600080fd5b82356001600160401b038111156133df576133df600080fd5b613320858286016130dd565b60006020828403121561340057613400600080fd5b81356001600160401b0381111561341957613419600080fd5b6121ec848285016130ae565b60006020828403121561343a5761343a600080fd5b60006121ec8484613127565b60006020828403121561345b5761345b600080fd5b60006121ec8484613132565b6000806040838503121561347d5761347d600080fd5b60006131968585613127565b6000806040838503121561349f5761349f600080fd5b60006134ab8585613127565b92505060208301356001600160401b038111156134ca576134ca600080fd5b6131a7858286016130ae565b6000602082840312156134eb576134eb600080fd5b60006121ec848461313d565b60008060006060848603121561350f5761350f600080fd5b600061351b8686613148565b93505060206131e686828701613127565b600061353883836135b1565b505060200190565b61355161354c826143f7565b6144e1565b82525050565b613551816143f7565b600061356a825190565b80845260209384019383018060005b8381101561359e57815161358d888261352c565b975060208301925050600101613579565b509495945050505050565b801515613551565b80613551565b60006135c1825190565b8084526020840193506135d881856020860161442a565b601f19601f8201165b9093019392505050565b61355181614413565b818352600060208401935061360a83858461441e565b601f19601f8401166135e1565b6000613621825190565b61362f81856020860161442a565b9290920192915050565b601881526000602082017f45434453413a20696e76616c6964207369676e61747572650000000000000000815291505b5060200190565b601381526000602082017213585e081cdd5c1c1b1e48195e18d959591959606a1b81529150613669565b601f81526000602082017f45434453413a20696e76616c6964207369676e6174757265206c656e6774680081529150613669565b600a81526000602082016927b7363c9037bbb732b960b11b81529150613669565b603281526000602082017f4552433732313a207472616e7366657220746f206e6f6e20455243373231526581527131b2b4bb32b91034b6b83632b6b2b73a32b960711b602082015291505b5060400190565b602681526000602082017f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181526564647265737360d01b6020820152915061373a565b600f81526000602082016e151c985b9cd9995c8819985a5b1959608a1b81529150613669565b602581526000602082017f4552433732313a207472616e736665722066726f6d20696e636f72726563742081526437bbb732b960d91b6020820152915061373a565b601c81526000602082017f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000081529150613669565b600f81526000602082016e10dbdb9d1c9858dd081c185d5cd959608a1b81529150613669565b60088152600060208201673a37b79039b7b7b760c11b81529150613669565b602481526000602082017f4552433732313a207472616e7366657220746f20746865207a65726f206164648152637265737360e01b6020820152915061373a565b601981526000602082017f4552433732313a20617070726f766520746f2063616c6c65720000000000000081529150613669565b602281526000602082017f45434453413a20696e76616c6964207369676e6174757265202773272076616c815261756560f01b6020820152915061373a565b601781526000602082017f796f7527726520747279696e6720746f2063686561742100000000000000000081529150613669565b601c81526000602082017f4d6178206d696e74207065722077616c6c65742065786365656465640000000081529150613669565b601381526000602082017243616e6e6f742071756572792074726169747360681b81529150613669565b6012815260006020820171496e73756666696369656e742066756e647360701b81529150613669565b602981526000602082017f4552433732313a2061646472657373207a65726f206973206e6f7420612076618152683634b21037bbb732b960b91b6020820152915061373a565b601881526000602082017f4d6178206d696e7420616d6f756e74206578636565646564000000000000000081529150613669565b600f81526000602082016e139bdd081dda1a5d195b1a5cdd1959608a1b81529150613669565b602281526000602082017f45434453413a20696e76616c6964207369676e6174757265202776272076616c815261756560f01b6020820152915061373a565b603e81526000602082017f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f81527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c00006020820152915061373a565b60208082527f4552433732313a206d696e7420746f20746865207a65726f206164647265737391019081526000613669565b601f81526000602082017f5075626c69632073616c6520686173206e6f742073746172746564207965740081529150613669565b601b81526000602082017f50726573616c6520686173206e6f74207374617274656420796574000000000081529150613669565b60208082527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657291019081526000613669565b601f81526000602082017f43616e6e6f74207175657279206e6f6e2d6578697374656e7420746f6b656e0081529150613669565b601881526000602082017f4552433732313a20696e76616c696420746f6b656e204944000000000000000081529150613669565b600a815260006020820169139bdd081b1bd8dad95960b21b81529150613669565b602181526000602082017f4552433732313a20617070726f76616c20746f2063757272656e74206f776e658152603960f91b6020820152915061373a565b600e81526000602082016d1b1bd8dada5b99c818db1bdcd95960921b81529150613669565b602e81526000602082017f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6581526d1c881b9bdc88185c1c1c9bdd995960921b6020820152915061373a565b601f81526000602082017f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081529150613669565b601b81526000602082017f4e65656420746f206d696e74206174206c656173742031204e4654000000000081529150613669565b602181526000602082017f4f6e6c792061646d696e206f7220776974686472617765722063616e2063616c8152601b60fa1b6020820152915061373a565b60078152600060208201666c6f636b696e6760c81b81529150613669565b600d81526000602082016c1b9bdd081c995c5d595cdd1959609a1b81529150613669565b805160a0830190613e098482613e64565b506020820151613e1c6020850182613e64565b506040820151613e2f6040850182613e64565b506060820151613e426060850182613e64565b5060808201516110296080850182613e64565b6001600160401b038116613551565b60ff8116613551565b6000613e798286613540565b601482019150613e898285613540565b601482019150613e9982846135b1565b506020019392505050565b6000613eb08287613540565b601482019150613ec08286613540565b601482019150613ed082856135b1565b602082019150613ee082846135b1565b50602001949350505050565b6000613ef882876135b1565b602082019150613f0882866135b1565b602082019150613ed082856135b1565b6000613f248285613617565b91506121ec8284613617565b7f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152601c016000613f6282846135b1565b50602001919050565b681dda1a5d195b1a5cdd60ba1b81526009016000613f898284613540565b50601401919050565b600081610bea565b60208101610bea8284613557565b60808101613fb68287613557565b613fc36020830186613557565b613fd060408301856135b1565b8181036060830152613fe281846135b7565b9695505050505050565b6020808252810161254f8184613560565b60208101610bea82846135a9565b6060810161401982866135a9565b61402660208301856135b1565b6121ec60408301846135b1565b6080810161404182876135b1565b61404e6020830186613e64565b61405b60408301856135b1565b61406860608301846135b1565b95945050505050565b60208101610bea82846135eb565b602080825281016121ec8184866135f4565b6020808252810161254f81846135b7565b60208082528101610bea81613639565b60208082528101610bea81613670565b60208082528101610bea8161369a565b60208082528101610bea816136ce565b60208082528101610bea816136ef565b60208082528101610bea81613741565b60208082528101610bea81613784565b60208082528101610bea816137aa565b60208082528101610bea816137ec565b60208082528101610bea81613820565b60208082528101610bea81613846565b60208082528101610bea81613865565b60208082528101610bea816138a6565b60208082528101610bea816138da565b60208082528101610bea81613919565b60208082528101610bea8161394d565b60208082528101610bea81613981565b60208082528101610bea816139ab565b60208082528101610bea816139d4565b60208082528101610bea81613a1a565b60208082528101610bea81613a4e565b60208082528101610bea81613a74565b60208082528101610bea81613ab3565b60208082528101610bea81613b0d565b60208082528101610bea81613b3f565b60208082528101610bea81613b73565b60208082528101610bea81613ba7565b60208082528101610bea81613bd9565b60208082528101610bea81613c0d565b60208082528101610bea81613c41565b60208082528101610bea81613c62565b60208082528101610bea81613ca0565b60208082528101610bea81613cc5565b60208082528101610bea81613d10565b60208082528101610bea81613d44565b60208082528101610bea81613d78565b60208082528101610bea81613db6565b60208082528101610bea81613dd4565b60a08101610bea8284613df8565b60208101610bea82846135b1565b60208101610bea8284613e55565b60208101610bea8284613e64565b600061434560405190565b9050614351828261449a565b919050565b60006001600160401b0382111561436f5761436f61458a565b601f19601f83011660200192915050565b600082198211156143935761439361451c565b500190565b6000826143a7576143a7614532565b500490565b60008160001904831182151516156143c6576143c661451c565b500290565b6000825b9250828210156143e1576143e161451c565b500390565b600060ff8216915060ff83166143cf565b60006001600160a01b038216610bea565b6000610bea826143f7565b6000610bea82614408565b82818337506000910152565b60005b8381101561444557818101518382015260200161442d565b838111156110295750506000910152565b6000816144655761446561451c565b506000190190565b60028104600182168061448157607f821691505b602082108114156144945761449461455e565b50919050565b601f19601f83011681018181106001600160401b03821117156144bf576144bf61458a565b6040525050565b60006000198214156144da576144da61451c565b5060010190565b6000610bea826000610bea8260601b90565b6000825b92508261450657614506614532565b500690565b600060ff8216915060ff83166144f7565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6145a9816143f7565b8114611f9857600080fd5b8015156145a9565b6001600160e01b031981166145a9565b6145a981614408565b806145a9565b6001600160401b0381166145a9565b60ff81166145a956fea2646970667358221220731ac88a5c1ca324e1315c692783a486c5dd8247cae262f2926f76f72bb5b09164736f6c6343000807003300000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106103c35760003560e01c80636c19e783116101f2578063b423fe671161010d578063d5abeb01116100a0578063edf5ae8d1161006f578063edf5ae8d14610b35578063efd0cbf914610b4b578063f2c4ce1e14610b5e578063f2fde38b14610b7e57600080fd5b8063d5abeb0114610abf578063e0a05c2a14610ad5578063e268e4d314610af5578063e985e9c514610b1557600080fd5b8063c87b56dd116100dc578063c87b56dd14610a38578063cb6a0de514610a58578063d0fb0f8c14610a72578063d27768d914610a9f57600080fd5b8063b423fe67146109d9578063b88d4fde146109f9578063bb62115e146105c0578063bc8893b414610a1957600080fd5b80638b9a10d711610185578063a1b8f37411610154578063a1b8f37414610957578063a22cb46514610984578063a475b5dd146109a4578063ab38e40d146109b957600080fd5b80638b9a10d7146108e45780638da5cb5b146108f757806395d89b411461091557806398a8cffe1461092a57600080fd5b80637adbf973116101c15780637adbf973146108575780637dc0d1d014610877578063850dd091146108a45780638895283f146108c457600080fd5b80636c19e783146107e457806370a0823114610804578063715018a6146108245780637ac3c02f1461083957600080fd5b806323b872dd116102e257806344a0d68a1161027557806353135ca01161024457806353135ca01461076a57806355f804b3146107845780635c975abb146107a45780636352211e146107c457600080fd5b806344a0d68a146106fa578063453c23101461071a578063513b041914610730578063518302271461075057600080fd5b80634079f632116102b15780634079f6321461066b57806342842e0e146106805780634378a6e3146106a0578063438b6300146106cd57600080fd5b806323b872dd146105eb57806323fca6b11461060b5780632e1a7d4d14610638578063393cee571461064b57600080fd5b80630b2d61ad1161035a578063122e04a811610329578063122e04a81461058257806313faede6146105aa57806318160ddd146105c0578063239c70ae146105d557600080fd5b80630b2d61ad146104f35780630eac1708146105135780631015805b14610528578063117bafa11461056257600080fd5b8063081812fc11610396578063081812fc14610471578063081c8c441461049e578063088a4ed0146104b3578063095ea7b3146104d357600080fd5b806301ffc9a7146103c857806302329a29146103fe5780630484ee511461042057806306fdde031461044f575b600080fd5b3480156103d457600080fd5b506103e86103e336600461334d565b610b9e565b6040516103f59190613ffd565b60405180910390f35b34801561040a57600080fd5b5061041e61041936600461332c565b610bf0565b005b34801561042c57600080fd5b5061044061043b366004613425565b610c48565b6040516103f59392919061400b565b34801561045b57600080fd5b50610464610c94565b6040516103f59190614091565b34801561047d57600080fd5b5061049161048c366004613425565b610d26565b6040516103f59190613f9a565b3480156104aa57600080fd5b50610464610d4d565b3480156104bf57600080fd5b5061041e6104ce366004613425565b610ddb565b3480156104df57600080fd5b5061041e6104ee3660046132b2565b610e18565b3480156104ff57600080fd5b5061041e61050e36600461332c565b610ea7565b34801561051f57600080fd5b5061041e610ec2565b34801561053457600080fd5b50610555610543366004613153565b60126020526000908152604090205481565b6040516103f59190614310565b34801561056e57600080fd5b5061041e61057d3660046132e5565b610fec565b34801561058e57600080fd5b5061049173876f13d830dbb25017da552256d56c779bd5c58e81565b3480156105b657600080fd5b50610555600c5481565b3480156105cc57600080fd5b5061055561102f565b3480156105e157600080fd5b50610555600e5481565b3480156105f757600080fd5b5061041e6106063660046131b1565b61103f565b34801561061757600080fd5b5061062b6106263660046134f7565b611071565b6040516103f5919061432c565b61041e610646366004613425565b6110c4565b34801561065757600080fd5b5061062b610666366004613425565b6111a5565b34801561067757600080fd5b5061041e6111d9565b34801561068c57600080fd5b5061041e61069b3660046131b1565b61128c565b3480156106ac57600080fd5b506106c06106bb366004613425565b6112a7565b6040516103f59190614302565b3480156106d957600080fd5b506106ed6106e8366004613153565b611395565b6040516103f59190613fec565b34801561070657600080fd5b5061041e610715366004613425565b611461565b34801561072657600080fd5b50610555600f5481565b34801561073c57600080fd5b5061041e61074b366004613425565b61149e565b34801561075c57600080fd5b506010546103e89060ff1681565b34801561077657600080fd5b50600b546103e89060ff1681565b34801561079057600080fd5b5061041e61079f3660046133b0565b61158a565b3480156107b057600080fd5b50600b546103e89062010000900460ff1681565b3480156107d057600080fd5b506104916107df366004613425565b6115dc565b3480156107f057600080fd5b5061041e6107ff366004613153565b611611565b34801561081057600080fd5b5061055561081f366004613153565b611664565b34801561083057600080fd5b5061041e6116a8565b34801561084557600080fd5b506009546001600160a01b0316610491565b34801561086357600080fd5b5061041e61087236600461338f565b6116bc565b34801561088357600080fd5b50601854610897906001600160a01b031681565b6040516103f59190614071565b3480156108b057600080fd5b5061041e6108bf366004613467565b61170f565b3480156108d057600080fd5b5061041e6108df36600461332c565b611813565b61041e6108f2366004613489565b611859565b34801561090357600080fd5b506000546001600160a01b0316610491565b34801561092157600080fd5b50610464611a81565b34801561093657600080fd5b50610555610945366004613153565b60116020526000908152604090205481565b34801561096357600080fd5b50610555610972366004613425565b60176020526000908152604090205481565b34801561099057600080fd5b5061041e61099f36600461327f565b611a90565b3480156109b057600080fd5b5061041e611a9b565b3480156109c557600080fd5b5061062b6109d43660046134f7565b611adb565b3480156109e557600080fd5b5061041e6109f436600461332c565b611af7565b348015610a0557600080fd5b5061041e610a14366004613201565b611b42565b348015610a2557600080fd5b50600b546103e890610100900460ff1681565b348015610a4457600080fd5b50610464610a53366004613425565b611b74565b348015610a6457600080fd5b50601c546103e89060ff1681565b348015610a7e57600080fd5b50610555610a8d366004613425565b601a6020526000908152604090205481565b348015610aab57600080fd5b5061041e610aba3660046131b1565b611c50565b348015610acb57600080fd5b50610555600d5481565b348015610ae157600080fd5b5061062b610af0366004613425565b611c9a565b348015610b0157600080fd5b5061041e610b10366004613425565b611caa565b348015610b2157600080fd5b506103e8610b30366004613174565b611ce6565b348015610b4157600080fd5b50610555601f5481565b61041e610b59366004613425565b611d14565b348015610b6a57600080fd5b5061041e610b793660046133eb565b611f16565b348015610b8a57600080fd5b5061041e610b99366004613153565b611f61565b60006001600160e01b031982166380ac58cd60e01b1480610bcf57506001600160e01b03198216635b5e139f60e01b145b80610bea57506301ffc9a760e01b6001600160e01b03198316145b92915050565b610bf8611f9b565b600b805462ff0000191662010000831515021790556040517f0e2fb031ee032dc02d8011dc50b816eb450cf856abd8261680dac74f72165bd290610c3d908390613ffd565b60405180910390a150565b6000818152601d6020526040812054819081908015610c725760019350610c6f81426143cb565b92505b6000858152601e6020526040902054610c8b9084614380565b93959294505050565b606060028054610ca39061446d565b80601f0160208091040260200160405190810160405280929190818152602001828054610ccf9061446d565b8015610d1c5780601f10610cf157610100808354040283529160200191610d1c565b820191906000526020600020905b815481529060010190602001808311610cff57829003601f168201915b5050505050905090565b6000610d3182611fc5565b506000908152600660205260409020546001600160a01b031690565b600a8054610d5a9061446d565b80601f0160208091040260200160405190810160405280929190818152602001828054610d869061446d565b8015610dd35780601f10610da857610100808354040283529160200191610dd3565b820191906000526020600020905b815481529060010190602001808311610db657829003601f168201915b505050505081565b610de3611f9b565b600e8190556040517f71ef44637f994911a9fa6bc89bc19c9bbf6f510a992e74f90880ffbccd7b2c6b90610c3d908390614310565b6000610e23826115dc565b9050806001600160a01b0316836001600160a01b03161415610e605760405162461bcd60e51b8152600401610e5790614282565b60405180910390fd5b336001600160a01b0382161480610e7c5750610e7c8133611ce6565b610e985760405162461bcd60e51b8152600401610e5790614202565b610ea28383611ff9565b505050565b610eaf611f9b565b601c805460ff1916911515919091179055565b610eca611f9b565b6021546001600160401b0316610ef25760405162461bcd60e51b8152600401610e57906142f2565b6018546021546040516380932be160e01b81526001600160a01b03909216916380932be191610f2f916001600160401b039091169060040161431e565b60206040518083038186803b158015610f4757600080fd5b505afa158015610f5b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f7f9190613446565b6022819055610fa05760405162461bcd60e51b8152600401610e5790614142565b602254601954604051610fb99233924192602001613ea4565b60408051601f19818403018152919052805160209091012060195560006022556021805467ffffffffffffffff19169055565b8060005b818110156110295761101984848381811061100d5761100d614574565b90506020020135612067565b611022816144c6565b9050610ff0565b50505050565b600061103a60085490565b905090565b61104a335b82612195565b6110665760405162461bcd60e51b8152600401610e57906142a2565b610ea28383836121f4565b6014602052826000526040600020826004811061108d57600080fd5b01818154811061109c57600080fd5b906000526020600020906020918282040191900692509250509054906101000a900460ff1681565b6000546001600160a01b03163314806110f057503373876f13d830dbb25017da552256d56c779bd5c58e145b61110c5760405162461bcd60e51b8152600401610e57906142d2565b600073876f13d830dbb25017da552256d56c779bd5c58e4783116111305782611132565b475b60405161113e90613f92565b60006040518083038185875af1925050503d806000811461117b576040519150601f19603f3d011682016040523d82523d6000602084013e611180565b606091505b50509050806111a15760405162461bcd60e51b8152600401610e5790614102565b5050565b601681815481106111b557600080fd5b9060005260206000209060209182820401919006915054906101000a900460ff1681565b6111e1611f9b565b601860009054906101000a90046001600160a01b03166001600160a01b031663338cdca16040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561123157600080fd5b505af1158015611245573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061126991906134d6565b6021805467ffffffffffffffff19166001600160401b0392909216919091179055565b610ea283838360405180602001604052806000815250611b42565b6040805160a0810182526000808252602082018190529181018290526060810182905260808101919091526000828152600460205260409020546001600160a01b03166113065760405162461bcd60e51b8152600401610e5790614252565b6000828152601a60205260409020544314156113345760405162461bcd60e51b8152600401610e57906141a2565b506000908152601b6020908152604091829020825160a081018452905460ff80821683526101008204811693830193909352620100008104831693820193909352630100000083048216606082015264010000000090920416608082015290565b606060006113a283611664565b90506000816001600160401b038111156113be576113be61458a565b6040519080825280602002602001820160405280156113e7578160200160208202803683370190505b509050600060015b600854811161145757856001600160a01b031661140b826115dc565b6001600160a01b0316141561144557808383611426816144c6565b94508151811061143857611438614574565b6020026020010181815250505b8061144f816144c6565b9150506113ef565b5090949350505050565b611469611f9b565b600c8190556040517f5d3cc44bbc86a70941868a14a9f66a647d7f7499d4d3789f68e4486c11ea46da90610c3d908390614310565b6114a6611f9b565b6000818152601d60205260409020546114d15760405162461bcd60e51b8152600401610e5790614272565b6000818152601d60205260409020546114ea90426143cb565b6000828152601e602052604081208054909190611508908490614380565b90915550506000818152601d60205260408120819055601f80549161152c83614456565b909155505060405181907fdbd310cb147795b06bf9b1c69addb1c067502c8eff1940880f723187c27dd32b90600090a260405181907f3ebee94e74ea24f711b5876dca724062e18b7b37b6883e686a92f093248a4fcf90600090a250565b611592611f9b565b61159e60238383612ef2565b507ff9c7803e94e0d3c02900d8a90893a6d5e90dd04d32a4cfe825520f82bf9f32f682826040516115d092919061407f565b60405180910390a15050565b6000818152600460205260408120546001600160a01b031680610bea5760405162461bcd60e51b8152600401610e5790614262565b611619611f9b565b600980546001600160a01b0319166001600160a01b0383161790556040517f5719a5656c5cfdaafa148ecf366fd3b0a7fae06449ce2a46225977fb7417e29d90610c3d908390613f9a565b60006001600160a01b03821661168c5760405162461bcd60e51b8152600401610e57906141c2565b506001600160a01b031660009081526005602052604090205490565b6116b0611f9b565b6116ba6000612321565b565b6116c4611f9b565b601880546001600160a01b0319166001600160a01b0383161790556040517f0e05ae75e8b926552cf6fcd744d19f422561e3ced1e426868730852702dbe41890610c3d908390614071565b600b5462010000900460ff16156117385760405162461bcd60e51b8152600401610e5790614132565b611740611f9b565b33803b90806117576000546001600160a01b031690565b6001600160a01b0316148061176a575081155b6117865760405162461bcd60e51b8152600401610e5790614182565b600d546008546117969086614380565b11156117b45760405162461bcd60e51b8152600401610e57906140b2565b60005b848110156117da576117c884612371565b806117d2816144c6565b9150506117b7565b5080416019546040516020016117f293929190613e6d565b60408051601f19818403018152919052805160209091012060195550505050565b61181b611f9b565b600b805460ff19168215151790556040517f1f1a6b0fcc71315f2c3aeddbd1f6d527595d21eea9b73160e78d6fa49b7897a690610c3d908390613ffd565b600b5462010000900460ff16156118825760405162461bcd60e51b8152600401610e5790614132565b600260015414156118a55760405162461bcd60e51b8152600401610e57906142b2565b600260015533803b90806118c16000546001600160a01b031690565b6001600160a01b031614806118d4575081155b6118f05760405162461bcd60e51b8152600401610e5790614182565b8380600c546118ff91906143ac565b34101561191e5760405162461bcd60e51b8152600401610e57906141b2565b6000811161193e5760405162461bcd60e51b8152600401610e57906142c2565b600d5460085461194e9083614380565b111561196c5760405162461bcd60e51b8152600401610e57906140b2565b600b5460ff1615156001146119935760405162461bcd60e51b8152600401610e5790614232565b61199d33856123be565b15156001146119be5760405162461bcd60e51b8152600401610e57906141e2565b600e54336000908152601160205260409020546119db9087614380565b11156119f95760405162461bcd60e51b8152600401610e57906141d2565b3360009081526011602052604081208054879290611a18908490614380565b90915550600190505b858111611a4357611a3133612371565b80611a3b816144c6565b915050611a21565b50508041601954604051602001611a5c93929190613e6d565b60408051601f1981840301815291905280516020909101206019555050600180555050565b606060038054610ca39061446d565b6111a1338383612419565b611aa3611f9b565b6010805460ff191660011790556040517fe2a7169cedebe39671840370ae19ca4fc41be6191d4c77f174f189a4d8cd08c890600090a1565b6013602052826000526040600020826004811061108d57600080fd5b611aff611f9b565b600b805461ff001916610100831515021790556040517f36b97db79058521017a18d3f5261657061fa019ef5637747834f022e588ec07490610c3d908390613ffd565b611b4c3383612195565b611b685760405162461bcd60e51b8152600401610e57906142a2565b611029848484846124bc565b6000818152600460205260409020546060906001600160a01b0316611bab5760405162461bcd60e51b8152600401610e5790614252565b60105460ff16611c4757600a8054611bc29061446d565b80601f0160208091040260200160405190810160405280929190818152602001828054611bee9061446d565b8015611c3b5780601f10611c1057610100808354040283529160200191611c3b565b820191906000526020600020905b815481529060010190602001808311611c1e57829003601f168201915b50505050509050919050565b610bea826124ef565b33611c5a826115dc565b6001600160a01b031614611c805760405162461bcd60e51b8152600401610e57906140d2565b6002602055611c9083838361128c565b5050600160205550565b601581815481106111b557600080fd5b611cb2611f9b565b600f8190556040517ec836a17ed3a6a59dce35376ae3c2777797dc03f39f463153c0fea5b65f068390610c3d908390614310565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b600b5462010000900460ff1615611d3d5760405162461bcd60e51b8152600401610e5790614132565b60026001541415611d605760405162461bcd60e51b8152600401610e57906142b2565b600260015533803b9080611d7c6000546001600160a01b031690565b6001600160a01b03161480611d8f575081155b611dab5760405162461bcd60e51b8152600401610e5790614182565b8280600c54611dba91906143ac565b341015611dd95760405162461bcd60e51b8152600401610e57906141b2565b60008111611df95760405162461bcd60e51b8152600401610e57906142c2565b600d54600854611e099083614380565b1115611e275760405162461bcd60e51b8152600401610e57906140b2565b600b5460ff610100909104161515600114611e545760405162461bcd60e51b8152600401610e5790614222565b600f5433600090815260126020526040902054611e719086614380565b1115611e8f5760405162461bcd60e51b8152600401610e5790614192565b3360009081526012602052604081208054869290611eae908490614380565b90915550600190505b848111611ed957611ec733612371565b80611ed1816144c6565b915050611eb7565b50508041601954604051602001611ef293929190613e6d565b60408051601f19818403018152919052805160209091012060195550506001805550565b611f1e611f9b565b8051611f3190600a906020840190612f76565b507f5b4603fcb3d3d9b6dba69e8b60ea02082aa1d621d2cc96d5bbfab381f6164e6e81604051610c3d9190614091565b611f69611f9b565b6001600160a01b038116611f8f5760405162461bcd60e51b8152600401610e57906140f2565b611f9881612321565b50565b6000546001600160a01b031633146116ba5760405162461bcd60e51b8152600401610e5790614242565b6000818152600460205260409020546001600160a01b0316611f985760405162461bcd60e51b8152600401610e5790614262565b600081815260066020526040902080546001600160a01b0319166001600160a01b038416908117909155819061202e826115dc565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b61207033611044565b61208c5760405162461bcd60e51b8152600401610e57906142a2565b6000818152601d60205260409020548061211557601c5460ff166120c25760405162461bcd60e51b8152600401610e5790614292565b6000828152601d60205260408120429055601f8054916120e1836144c6565b909155505060405182907f032bc66be43dbccb7487781d168eb7bda224628a3b2c3388bdf69b532a3a161190600090a25050565b61211f81426143cb565b6000838152601e60205260408120805490919061213d908490614380565b90915550506000828152601d60205260408120819055601f80549161216183614456565b909155505060405182907fdbd310cb147795b06bf9b1c69addb1c067502c8eff1940880f723187c27dd32b90600090a25050565b6000806121a1836115dc565b9050806001600160a01b0316846001600160a01b031614806121c857506121c88185611ce6565b806121ec5750836001600160a01b03166121e184610d26565b6001600160a01b0316145b949350505050565b826001600160a01b0316612207826115dc565b6001600160a01b03161461222d5760405162461bcd60e51b8152600401610e5790614112565b6001600160a01b0382166122535760405162461bcd60e51b8152600401610e5790614152565b61225e838383612556565b612269600082611ff9565b6001600160a01b03831660009081526005602052604081208054600192906122929084906143cb565b90915550506001600160a01b03821660009081526005602052604081208054600192906122c0908490614380565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61237f600880546001019055565b600061238a60085490565b6000818152601a602052604081204390559091506123a78261258f565b90506123b382826125d3565b50610ea28383612695565b600080836040516020016123d29190613f6b565b60405160208183030381529060405280519060200120905060006123ff846123f984612783565b906127b3565b6009546001600160a01b0390811691161495945050505050565b816001600160a01b0316836001600160a01b0316141561244b5760405162461bcd60e51b8152600401610e5790614162565b6001600160a01b0383811660008181526007602090815260408083209487168084529490915290819020805460ff1916851515179055517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31906124af908590613ffd565b60405180910390a3505050565b6124c78484846121f4565b6124d3848484846127d7565b6110295760405162461bcd60e51b8152600401610e57906140e2565b60606124fa82611fc5565b60006125046128e4565b90506000815111612524576040518060200160405280600081525061254f565b8061252e846128f3565b60405160200161253f929190613f18565b6040516020818303038152906040525b9392505050565b6000818152601d6020526040902054158061257357506020546002145b610ea25760405162461bcd60e51b8152600401610e57906142e2565b600061259c6001436143cb565b4042836019546040516020016125b59493929190613eec565b60408051601f19818403018152919052805160209091012092915050565b6040805160a081018252600080825260208201819052918101829052606081018290526080810191909152612607826129f0565b6000848152601b60209081526040918290208351815492850151938501516060860151608087015160ff9081166401000000000264ff000000001992821663010000000263ff0000001994831662010000029490941663ffff0000199883166101000261ffff1990981692909516919091179590951795909516919091171792909216179055905092915050565b6001600160a01b0382166126bb5760405162461bcd60e51b8152600401610e5790614212565b6000818152600460205260409020546001600160a01b0316156126f05760405162461bcd60e51b8152600401610e5790614122565b6126fc60008383612556565b6001600160a01b0382166000908152600560205260408120805460019290612725908490614380565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000816040516020016127969190613f30565b604051602081830303815290604052805190602001209050919050565b60008060006127c28585612ac0565b915091506127cf81612b30565b509392505050565b60006001600160a01b0384163b156128d957604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061281b903390899088908890600401613fa8565b602060405180830381600087803b15801561283557600080fd5b505af1925050508015612865575060408051601f3d908101601f191682019092526128629181019061336e565b60015b6128bf573d808015612893576040519150601f19603f3d011682016040523d82523d6000602084013e612898565b606091505b5080516128b75760405162461bcd60e51b8152600401610e57906140e2565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506121ec565b506001949350505050565b606060238054610ca39061446d565b6060816129175750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612941578061292b816144c6565b915061293a9050600a83614398565b915061291b565b6000816001600160401b0381111561295b5761295b61458a565b6040519080825280601f01601f191660200182016040528015612985576020820181803683370190505b5090505b84156121ec5761299a6001836143cb565b91506129a7600a866144f3565b6129b2906030614380565b60f81b8183815181106129c7576129c7614574565b60200101906001600160f81b031916908160001a9053506129e9600a86614398565b9450612989565b6040805160a081018252600080825260208201819052918101829052606081018290526080810191909152612a2b8261ffff16600080612c15565b60ff1680825260109290921c91612a4a9061ffff841690600190612c15565b60ff166020820152805160109290921c91612a6d9061ffff841690600290612c15565b60ff166040820152805160109290921c91612a909061ffff841690600390612c15565b60ff166060820152805160109290921c91612ab39061ffff841690600490612c15565b60ff166080820152919050565b600080825160411415612af75760208301516040840151606085015160001a612aeb87828585612dd9565b94509450505050612b29565b825160401415612b215760208301516040840151612b16868383612eb9565b935093505050612b29565b506000905060025b9250929050565b6000816004811115612b4457612b44614548565b1415612b4d5750565b6001816004811115612b6157612b61614548565b1415612b7f5760405162461bcd60e51b8152600401610e57906140a2565b6002816004811115612b9357612b93614548565b1415612bb15760405162461bcd60e51b8152600401610e57906140c2565b6003816004811115612bc557612bc5614548565b1415612be35760405162461bcd60e51b8152600401610e5790614172565b6004816004811115612bf757612bf7614548565b1415611f985760405162461bcd60e51b8152600401610e57906141f2565b600060ff8316612cbb57601554600090612c2f908661450b565b905060158160ff1681548110612c4757612c47614574565b60009182526020918290209181049091015460ff601f9092166101000a90048116600887901c9091161015612c7d57905061254f565b60168160ff1681548110612c9357612c93614574565b90600052602060002090602091828204019190069054906101000a900460ff1691505061254f565b6000612cc86001856143e6565b60ff80851660009081526013602052604081209293509190831660048110612cf257612cf2614574565b0154612cfe908761450b565b60ff8086166000908152601360205260409020919250831660048110612d2657612d26614574565b018160ff1681548110612d3b57612d3b614574565b60009182526020918290209181049091015460ff601f9092166101000a90048116600888901c9091161015612d7357915061254f9050565b60ff808516600090815260146020526040902090831660048110612d9957612d99614574565b018160ff1681548110612dae57612dae614574565b90600052602060002090602091828204019190069054906101000a900460ff16925050509392505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612e105750600090506003612eb0565b8460ff16601b14158015612e2857508460ff16601c14155b15612e395750600090506004612eb0565b600060018787878760405160008152602001604052604051612e5e9493929190614033565b6020604051602081039080840390855afa158015612e80573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612ea957600060019250925050612eb0565b9150600090505b94509492505050565b6000806001600160ff1b03831681612ed660ff86901c601b614380565b9050612ee487828885612dd9565b935093505050935093915050565b828054612efe9061446d565b90600052602060002090601f016020900481019282612f205760008555612f66565b82601f10612f395782800160ff19823516178555612f66565b82800160010185558215612f66579182015b82811115612f66578235825591602001919060010190612f4b565b50612f72929150612fea565b5090565b828054612f829061446d565b90600052602060002090601f016020900481019282612fa45760008555612f66565b82601f10612fbd57805160ff1916838001178555612f66565b82800160010185558215612f66579182015b82811115612f66578251825591602001919060010190612fcf565b5b80821115612f725760008155600101612feb565b600061301261300d84614356565b61433a565b90508281526020810184848401111561302d5761302d600080fd5b6127cf84828561441e565b8035610bea816145a0565b60008083601f84011261305857613058600080fd5b5081356001600160401b0381111561307257613072600080fd5b602083019150836020820283011115612b2957612b29600080fd5b8035610bea816145b4565b8035610bea816145bc565b8051610bea816145bc565b600082601f8301126130c2576130c2600080fd5b81356121ec848260208601612fff565b8035610bea816145cc565b60008083601f8401126130f2576130f2600080fd5b5081356001600160401b0381111561310c5761310c600080fd5b602083019150836001820283011115612b2957612b29600080fd5b8035610bea816145d5565b8051610bea816145d5565b8051610bea816145db565b8035610bea816145ea565b60006020828403121561316857613168600080fd5b60006121ec8484613038565b6000806040838503121561318a5761318a600080fd5b60006131968585613038565b92505060206131a785828601613038565b9150509250929050565b6000806000606084860312156131c9576131c9600080fd5b60006131d58686613038565b93505060206131e686828701613038565b92505060406131f786828701613127565b9150509250925092565b6000806000806080858703121561321a5761321a600080fd5b60006132268787613038565b945050602061323787828801613038565b935050604061324887828801613127565b92505060608501356001600160401b0381111561326757613267600080fd5b613273878288016130ae565b91505092959194509250565b6000806040838503121561329557613295600080fd5b60006132a18585613038565b92505060206131a78582860161308d565b600080604083850312156132c8576132c8600080fd5b60006132d48585613038565b92505060206131a785828601613127565b600080602083850312156132fb576132fb600080fd5b82356001600160401b0381111561331457613314600080fd5b61332085828601613043565b92509250509250929050565b60006020828403121561334157613341600080fd5b60006121ec848461308d565b60006020828403121561336257613362600080fd5b60006121ec8484613098565b60006020828403121561338357613383600080fd5b60006121ec84846130a3565b6000602082840312156133a4576133a4600080fd5b60006121ec84846130d2565b600080602083850312156133c6576133c6600080fd5b82356001600160401b038111156133df576133df600080fd5b613320858286016130dd565b60006020828403121561340057613400600080fd5b81356001600160401b0381111561341957613419600080fd5b6121ec848285016130ae565b60006020828403121561343a5761343a600080fd5b60006121ec8484613127565b60006020828403121561345b5761345b600080fd5b60006121ec8484613132565b6000806040838503121561347d5761347d600080fd5b60006131968585613127565b6000806040838503121561349f5761349f600080fd5b60006134ab8585613127565b92505060208301356001600160401b038111156134ca576134ca600080fd5b6131a7858286016130ae565b6000602082840312156134eb576134eb600080fd5b60006121ec848461313d565b60008060006060848603121561350f5761350f600080fd5b600061351b8686613148565b93505060206131e686828701613127565b600061353883836135b1565b505060200190565b61355161354c826143f7565b6144e1565b82525050565b613551816143f7565b600061356a825190565b80845260209384019383018060005b8381101561359e57815161358d888261352c565b975060208301925050600101613579565b509495945050505050565b801515613551565b80613551565b60006135c1825190565b8084526020840193506135d881856020860161442a565b601f19601f8201165b9093019392505050565b61355181614413565b818352600060208401935061360a83858461441e565b601f19601f8401166135e1565b6000613621825190565b61362f81856020860161442a565b9290920192915050565b601881526000602082017f45434453413a20696e76616c6964207369676e61747572650000000000000000815291505b5060200190565b601381526000602082017213585e081cdd5c1c1b1e48195e18d959591959606a1b81529150613669565b601f81526000602082017f45434453413a20696e76616c6964207369676e6174757265206c656e6774680081529150613669565b600a81526000602082016927b7363c9037bbb732b960b11b81529150613669565b603281526000602082017f4552433732313a207472616e7366657220746f206e6f6e20455243373231526581527131b2b4bb32b91034b6b83632b6b2b73a32b960711b602082015291505b5060400190565b602681526000602082017f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181526564647265737360d01b6020820152915061373a565b600f81526000602082016e151c985b9cd9995c8819985a5b1959608a1b81529150613669565b602581526000602082017f4552433732313a207472616e736665722066726f6d20696e636f72726563742081526437bbb732b960d91b6020820152915061373a565b601c81526000602082017f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000081529150613669565b600f81526000602082016e10dbdb9d1c9858dd081c185d5cd959608a1b81529150613669565b60088152600060208201673a37b79039b7b7b760c11b81529150613669565b602481526000602082017f4552433732313a207472616e7366657220746f20746865207a65726f206164648152637265737360e01b6020820152915061373a565b601981526000602082017f4552433732313a20617070726f766520746f2063616c6c65720000000000000081529150613669565b602281526000602082017f45434453413a20696e76616c6964207369676e6174757265202773272076616c815261756560f01b6020820152915061373a565b601781526000602082017f796f7527726520747279696e6720746f2063686561742100000000000000000081529150613669565b601c81526000602082017f4d6178206d696e74207065722077616c6c65742065786365656465640000000081529150613669565b601381526000602082017243616e6e6f742071756572792074726169747360681b81529150613669565b6012815260006020820171496e73756666696369656e742066756e647360701b81529150613669565b602981526000602082017f4552433732313a2061646472657373207a65726f206973206e6f7420612076618152683634b21037bbb732b960b91b6020820152915061373a565b601881526000602082017f4d6178206d696e7420616d6f756e74206578636565646564000000000000000081529150613669565b600f81526000602082016e139bdd081dda1a5d195b1a5cdd1959608a1b81529150613669565b602281526000602082017f45434453413a20696e76616c6964207369676e6174757265202776272076616c815261756560f01b6020820152915061373a565b603e81526000602082017f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f81527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c00006020820152915061373a565b60208082527f4552433732313a206d696e7420746f20746865207a65726f206164647265737391019081526000613669565b601f81526000602082017f5075626c69632073616c6520686173206e6f742073746172746564207965740081529150613669565b601b81526000602082017f50726573616c6520686173206e6f74207374617274656420796574000000000081529150613669565b60208082527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657291019081526000613669565b601f81526000602082017f43616e6e6f74207175657279206e6f6e2d6578697374656e7420746f6b656e0081529150613669565b601881526000602082017f4552433732313a20696e76616c696420746f6b656e204944000000000000000081529150613669565b600a815260006020820169139bdd081b1bd8dad95960b21b81529150613669565b602181526000602082017f4552433732313a20617070726f76616c20746f2063757272656e74206f776e658152603960f91b6020820152915061373a565b600e81526000602082016d1b1bd8dada5b99c818db1bdcd95960921b81529150613669565b602e81526000602082017f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6581526d1c881b9bdc88185c1c1c9bdd995960921b6020820152915061373a565b601f81526000602082017f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081529150613669565b601b81526000602082017f4e65656420746f206d696e74206174206c656173742031204e4654000000000081529150613669565b602181526000602082017f4f6e6c792061646d696e206f7220776974686472617765722063616e2063616c8152601b60fa1b6020820152915061373a565b60078152600060208201666c6f636b696e6760c81b81529150613669565b600d81526000602082016c1b9bdd081c995c5d595cdd1959609a1b81529150613669565b805160a0830190613e098482613e64565b506020820151613e1c6020850182613e64565b506040820151613e2f6040850182613e64565b506060820151613e426060850182613e64565b5060808201516110296080850182613e64565b6001600160401b038116613551565b60ff8116613551565b6000613e798286613540565b601482019150613e898285613540565b601482019150613e9982846135b1565b506020019392505050565b6000613eb08287613540565b601482019150613ec08286613540565b601482019150613ed082856135b1565b602082019150613ee082846135b1565b50602001949350505050565b6000613ef882876135b1565b602082019150613f0882866135b1565b602082019150613ed082856135b1565b6000613f248285613617565b91506121ec8284613617565b7f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152601c016000613f6282846135b1565b50602001919050565b681dda1a5d195b1a5cdd60ba1b81526009016000613f898284613540565b50601401919050565b600081610bea565b60208101610bea8284613557565b60808101613fb68287613557565b613fc36020830186613557565b613fd060408301856135b1565b8181036060830152613fe281846135b7565b9695505050505050565b6020808252810161254f8184613560565b60208101610bea82846135a9565b6060810161401982866135a9565b61402660208301856135b1565b6121ec60408301846135b1565b6080810161404182876135b1565b61404e6020830186613e64565b61405b60408301856135b1565b61406860608301846135b1565b95945050505050565b60208101610bea82846135eb565b602080825281016121ec8184866135f4565b6020808252810161254f81846135b7565b60208082528101610bea81613639565b60208082528101610bea81613670565b60208082528101610bea8161369a565b60208082528101610bea816136ce565b60208082528101610bea816136ef565b60208082528101610bea81613741565b60208082528101610bea81613784565b60208082528101610bea816137aa565b60208082528101610bea816137ec565b60208082528101610bea81613820565b60208082528101610bea81613846565b60208082528101610bea81613865565b60208082528101610bea816138a6565b60208082528101610bea816138da565b60208082528101610bea81613919565b60208082528101610bea8161394d565b60208082528101610bea81613981565b60208082528101610bea816139ab565b60208082528101610bea816139d4565b60208082528101610bea81613a1a565b60208082528101610bea81613a4e565b60208082528101610bea81613a74565b60208082528101610bea81613ab3565b60208082528101610bea81613b0d565b60208082528101610bea81613b3f565b60208082528101610bea81613b73565b60208082528101610bea81613ba7565b60208082528101610bea81613bd9565b60208082528101610bea81613c0d565b60208082528101610bea81613c41565b60208082528101610bea81613c62565b60208082528101610bea81613ca0565b60208082528101610bea81613cc5565b60208082528101610bea81613d10565b60208082528101610bea81613d44565b60208082528101610bea81613d78565b60208082528101610bea81613db6565b60208082528101610bea81613dd4565b60a08101610bea8284613df8565b60208101610bea82846135b1565b60208101610bea8284613e55565b60208101610bea8284613e64565b600061434560405190565b9050614351828261449a565b919050565b60006001600160401b0382111561436f5761436f61458a565b601f19601f83011660200192915050565b600082198211156143935761439361451c565b500190565b6000826143a7576143a7614532565b500490565b60008160001904831182151516156143c6576143c661451c565b500290565b6000825b9250828210156143e1576143e161451c565b500390565b600060ff8216915060ff83166143cf565b60006001600160a01b038216610bea565b6000610bea826143f7565b6000610bea82614408565b82818337506000910152565b60005b8381101561444557818101518382015260200161442d565b838111156110295750506000910152565b6000816144655761446561451c565b506000190190565b60028104600182168061448157607f821691505b602082108114156144945761449461455e565b50919050565b601f19601f83011681018181106001600160401b03821117156144bf576144bf61458a565b6040525050565b60006000198214156144da576144da61451c565b5060010190565b6000610bea826000610bea8260601b90565b6000825b92508261450657614506614532565b500690565b600060ff8216915060ff83166144f7565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6145a9816143f7565b8114611f9857600080fd5b8015156145a9565b6001600160e01b031981166145a9565b6145a981614408565b806145a9565b6001600160401b0381166145a9565b60ff81166145a956fea2646970667358221220731ac88a5c1ca324e1315c692783a486c5dd8247cae262f2926f76f72bb5b09164736f6c63430008070033

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

00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _initNotRevealedUri (string):

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000000


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.