MATIC Price: $0.707193 (-1.66%)
Gas: 453 GWei
 

Overview

Max Total Supply

1,048 pApes

Holders

215

Total Transfers

-

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information

Contract Source Code Verified (Exact Match)

Contract Name:
PartyApes

Compiler Version
v0.8.15+commit.e14f2714

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 16 : PartyApes.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.15;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

import "@chainlink/contracts/src/v0.8/interfaces/VRFCoordinatorV2Interface.sol";
import "@chainlink/contracts/src/v0.8/VRFConsumerBaseV2.sol";

/**
 * @title PartyApes
 * @notice Official PartyApes collection made by PartyFinance (previously PolkaParty).
 * Five types of PartyApes, each holding a different amount of revenue from the PartyFinance platform.
 * Platinum, Gold, Silver, Bronze and Common.
 *
 * This collection replaces v1 and v2 PartyApes.
 *      - PartyApes (pApes): https://etherscan.io/address/0xedeaa6f6b1d8bccf84b1ec60f758606413c3c481
 *      - PartyApesV2 (pApesV2): https://polygonscan.com/address/0xe8d4ac0ff6b39f022f8b876e3f2b4fadf7d07b03
 * Snapshot of holders taken after contract deployment in order to airdrop the upgraded PartyApes NFTs.
 *
 * @dev Available PartyApes mint feature extended with ChainLink VRF v2 for a provably fair and verifiable random PartyApe minting
 *
 * Created with <3
 */
contract PartyApes is ERC721, ERC721Enumerable, VRFConsumerBaseV2, Ownable {
    /***************
    STATE
    ***************/
    VRFCoordinatorV2Interface immutable COORDINATOR;

    // Polygon USDC token contract
    address USDC = 0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174;
    // Max gas price to bump to.
    bytes32 keyHash;
    // Callback gas limit
    uint32 callbackGasLimit = 500000;
    // Request confirmations
    uint16 requestConfirmations = 3;

    // Storage parameters
    string public baseUri;
    bool public contractLocked;
    bool public ready;
    uint256[] public availableApes;
    uint64 public subscriptionId;
    uint256 public price = 500 * 10**6;

    // Info of each mint pending request
    struct Request {
        // Address of a user
        address user;
        // Mint total price
        uint256 price;
        // Block number
        uint256 blockNumber;
    }

    // Mapping requestId returned by Chainlink VRF
    mapping(uint256 => Request) public requests; /* requestId */ /* Request */
    uint256 public pendingRequests;

    /***************
    EVENTS
    ***************/
    /**
     * @notice Emitted when a user request to randomly mint a PartyApe
     * @param requestId Id for the mint request
     * @param user Address of the minter
     * @param price Total price for minting
     */
    event MintRequested(uint256 indexed requestId, address user, uint256 price);

    /**
     * @notice Emitted when ChainLink responds back with the random number and when the mint is done.
     * @param requestId Id for the mint request
     * @param user Address of the minter
     * @param tokenId Id of the randomly minted token
     */
    event MintSettled(uint256 indexed requestId, address user, uint256 tokenId);

    /**
     * @notice Emitted in the exceptional cases whenever the VRF fails minting a PartyApe
     * @param requestId Id for the failed mint request
     */
    event RefundNeeded(uint256 indexed requestId);

    /**
     * @notice Emitted when user requests refund, in case VRF fails (extremely rare)
     * @param requestId Id for the mint request
     * @param user Address of the minter
     */
    event MintRefunded(uint256 indexed requestId, address user);

    /**
     * @notice Constructor inherits ERRC721 and VRFConsumerBaseV2
     *
     * @param _baseUri The collection base uri
     * @param _vrfCoordinator VRF Coordinator address
     * @param _keyHash The gas lane to use, which specifies the maximum gas price to bump to
     * @param _subscriptionId The subscription ID that this contract uses for funding VRF requests
     */
    constructor(
        string memory _baseUri,
        address _vrfCoordinator,
        bytes32 _keyHash,
        uint64 _subscriptionId
    ) ERC721("PartyApes", "pApes") VRFConsumerBaseV2(_vrfCoordinator) {
        baseUri = _baseUri;
        COORDINATOR = VRFCoordinatorV2Interface(_vrfCoordinator);
        keyHash = _keyHash;
        subscriptionId = _subscriptionId;
    }

    /**
     * @notice Request to mint a randomly available PartyApe through ChainLink VRF
     */
    function mint() external returns (uint256) {
        require(ready, "Mint not enabled");
        require(getRemaining() > 0, "Sold out");
        require(pendingRequests < getRemaining(), "Seems sold out");

        // Handle Mint Purchase transfer
        handleMintPurchase();

        // Request random tokenId from ChainLink VRF
        uint256 s_requestId = COORDINATOR.requestRandomWords(
            keyHash,
            subscriptionId,
            requestConfirmations,
            callbackGasLimit,
            1
        );

        // Store pending mint request
        requests[s_requestId] = Request({
            user: msg.sender,
            price: price,
            blockNumber: block.number
        });
        pendingRequests++;

        // Emit MintRequested event
        emit MintRequested(s_requestId, msg.sender, price);

        // Return ChainLink VRF request Id
        return s_requestId;
    }

    /**
     * @notice Settle the PartyApe randomly mint through ChainLink VRF callback
     * @param requestId ChainLink VRF request Id for the mint request
     * @param randomWords Provably fair and verifiable random number
     */
    function fulfillRandomWords(uint256 requestId, uint256[] memory randomWords)
        internal
        override
    {
        // Get the pending mint request
        Request storage request = requests[requestId];

        if (request.user != address(0) && availableApes.length > 0) {
            // Do a roll by taking a modulo of available PartyApe's array.
            uint256 outcomeIdx = randomWords[0] % availableApes.length;

            // Get the random tokenId from the available list
            uint256 tokenId = availableApes[outcomeIdx];

            // Mint PartyPunk
            _safeMint(request.user, tokenId);

            // Remove tokenId as available
            availableApes[outcomeIdx] = availableApes[availableApes.length - 1];
            availableApes.pop();

            // Emit MintSettled event
            emit MintSettled(requestId, request.user, tokenId);

            // Delete mint pending request
            delete requests[requestId];
            pendingRequests--;
        } else {
            emit RefundNeeded(requestId);
        }
    }

    /**
     * @notice Refund the mint request in the extremely unlikely scenario it was not settled by Chainlink VRF.
     * @dev At least 20 block confirmations must passed after the mint was requested.
     * @param requestId ChainLink VRF request Id for the mint request
     * @param toggle Whether to refund automatically (in case the refund was done manually)
     */
    function refundMint(uint256 requestId, bool toggle) external onlyOwner {
        // Get the pending mint request
        Request storage request = requests[requestId];

        // Validation check
        require(request.user != address(0), "Request is invalid");
        require(
            block.number > request.blockNumber + 20,
            "Wait before requesting refund"
        );

        // Refund the user
        if (toggle && request.price > 0) {
            require(
                IERC20(USDC).balanceOf(address(this)) >= request.price,
                "Not enough balance"
            );
            IERC20(USDC).transfer(request.user, request.price);
        }

        // Record refund in event logs
        emit MintRefunded(requestId, request.user);

        // Delete mint pending request
        delete requests[requestId];
        pendingRequests--;
    }

    /**
     * @notice Airdrops existing PartyApes to users
     * @dev Both arguments must have the same array length
     * @param to Array of addresses to airdrop the respective PartyApe
     * @param tokenIds Array of tokenIds that matches the addresses index
     */
    function airdrop(address[] memory to, uint256[] memory tokenIds)
        external
        onlyOwner
    {
        require(to.length == tokenIds.length, "Arrays length must match");
        for (uint256 i = 0; i < tokenIds.length; i++) {
            _safeMint(to[i], tokenIds[i]);
        }
    }

    /**
     * @notice Adds the extra apes (by tokenId) available to be minted
     * @dev Validates against any already minted PartyApe or previously added as available
     * @param apes Array of new tokenIds to list as available to be minted
     */
    function addAvailableApes(uint256[] memory apes) external onlyOwner {
        for (uint256 i = 0; i < apes.length; i++) {
            require(!_exists(apes[i]), "Token id already minted");
            require(
                !isIncluded(availableApes, apes[i]),
                "Token id already added as available"
            );
            availableApes.push(apes[i]);
        }
    }

    /**
     * @notice Clears all extra apes (by tokenId) that was previously added as avaialble
     */
    function removeAvailableApes() external onlyOwner {
        availableApes = new uint256[](0);
    }

    /***************
    HELPERS
    ***************/
    /// @dev Helper to find an element in array
    function isIncluded(uint256[] memory arr, uint256 el)
        private
        pure
        returns (bool)
    {
        for (uint256 i = 0; i < arr.length; i++) {
            if (arr[i] == el) {
                return true;
            }
        }
        return false;
    }

    /// @dev Set the mint price
    function setPrice(uint256 _price) external onlyOwner {
        price = _price;
    }

    /// @dev Get the mint price
    function getPrice() private view returns (uint256) {
        if (msg.sender == owner()) return 0;
        return price;
    }

    /// @dev Transfer the mint payment
    function handleMintPurchase() private {
        uint256 _price = getPrice();
        if (_price > 0) {
            require(
                IERC20(USDC).balanceOf(msg.sender) >= _price,
                "Not enough balance"
            );
            IERC20(USDC).transferFrom(msg.sender, address(this), _price);
        }
    }

    /// @dev Toggle the status of the minting (extra Apes)
    function toggleStatus(bool _ready) external onlyOwner {
        ready = _ready;
    }

    /// @dev Withdraw any tokens held by the contract
    function withdrawTokens(address token, uint256 amount) external onlyOwner {
        IERC20(token).transfer(msg.sender, amount);
    }

    /// @dev Get the remaining number of available apes to mint
    function getRemaining() public view returns (uint256) {
        return availableApes.length;
    }

    /// @dev Handle base uri
    function secureBaseUri(string memory _baseUri) external onlyOwner {
        require(!contractLocked, "Contract is locked, URI cannot be changed");
        baseUri = _baseUri;
    }

    /// @dev Handle base uri
    function lockContract() external onlyOwner {
        require(!contractLocked, "Already locked");
        contractLocked = true;
    }

    /// @dev Handle the ChainLink VRF subscription specs
    function handleSubscription(
        uint64 _subscriptionId,
        bytes32 _keyHash,
        uint32 _callbackGasLimit,
        uint16 _requestConfirmations
    ) external onlyOwner {
        subscriptionId = _subscriptionId;
        keyHash = _keyHash;
        callbackGasLimit = _callbackGasLimit;
        requestConfirmations = _requestConfirmations;
    }

    /***************
    OVERRIDES
    ***************/
    function _baseURI() internal view override returns (string memory) {
        return baseUri;
    }

    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal override(ERC721, ERC721Enumerable) {
        super._beforeTokenTransfer(from, to, tokenId);
    }

    function supportsInterface(bytes4 interfaceId)
        public
        view
        override(ERC721, ERC721Enumerable)
        returns (bool)
    {
        return super.supportsInterface(interfaceId);
    }
}

File 2 of 16 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

File 3 of 16 : 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 16 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "./IERC721Enumerable.sol";

/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

    // Mapping from token ID to index of the owner tokens list
    mapping(uint256 => uint256) private _ownedTokensIndex;

    // Array with all token ids, used for enumeration
    uint256[] private _allTokens;

    // Mapping from token id to position in the allTokens array
    mapping(uint256 => uint256) private _allTokensIndex;

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

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
        return _ownedTokens[owner][index];
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _allTokens.length;
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds");
        return _allTokens[index];
    }

    /**
     * @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` cannot be the zero address.
     * - `to` cannot be the zero address.
     *
     * 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 override {
        super._beforeTokenTransfer(from, to, tokenId);

        if (from == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        } else if (from != to) {
            _removeTokenFromOwnerEnumeration(from, tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        } else if (to != from) {
            _addTokenToOwnerEnumeration(to, tokenId);
        }
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param to address representing the new owner of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        uint256 length = ERC721.balanceOf(to);
        _ownedTokens[to][length] = tokenId;
        _ownedTokensIndex[tokenId] = length;
    }

    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }

    /**
     * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
     * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
     * gas optimizations e.g. when performing a transfer operation (avoiding double writes).
     * This has O(1) time complexity, but alters the order of the _ownedTokens array.
     * @param from address representing the previous owner of the given token ID
     * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
     */
    function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
        // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

            _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        delete _ownedTokensIndex[tokenId];
        delete _ownedTokens[from][lastTokenIndex];
    }

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _allTokens.length - 1;
        uint256 tokenIndex = _allTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
        // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
        // an 'if' statement (like in _removeTokenFromOwnerEnumeration)
        uint256 lastTokenId = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
        _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }
}

File 5 of 16 : 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 6 of 16 : VRFCoordinatorV2Interface.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface VRFCoordinatorV2Interface {
  /**
   * @notice Get configuration relevant for making requests
   * @return minimumRequestConfirmations global min for request confirmations
   * @return maxGasLimit global max for request gas limit
   * @return s_provingKeyHashes list of registered key hashes
   */
  function getRequestConfig()
    external
    view
    returns (
      uint16,
      uint32,
      bytes32[] memory
    );

  /**
   * @notice Request a set of random words.
   * @param keyHash - Corresponds to a particular oracle job which uses
   * that key for generating the VRF proof. Different keyHash's have different gas price
   * ceilings, so you can select a specific one to bound your maximum per request cost.
   * @param subId  - The ID of the VRF subscription. Must be funded
   * with the minimum subscription balance required for the selected keyHash.
   * @param minimumRequestConfirmations - How many blocks you'd like the
   * oracle to wait before responding to the request. See SECURITY CONSIDERATIONS
   * for why you may want to request more. The acceptable range is
   * [minimumRequestBlockConfirmations, 200].
   * @param callbackGasLimit - How much gas you'd like to receive in your
   * fulfillRandomWords callback. Note that gasleft() inside fulfillRandomWords
   * may be slightly less than this amount because of gas used calling the function
   * (argument decoding etc.), so you may need to request slightly more than you expect
   * to have inside fulfillRandomWords. The acceptable range is
   * [0, maxGasLimit]
   * @param numWords - The number of uint256 random values you'd like to receive
   * in your fulfillRandomWords callback. Note these numbers are expanded in a
   * secure way by the VRFCoordinator from a single random value supplied by the oracle.
   * @return requestId - A unique identifier of the request. Can be used to match
   * a request to a response in fulfillRandomWords.
   */
  function requestRandomWords(
    bytes32 keyHash,
    uint64 subId,
    uint16 minimumRequestConfirmations,
    uint32 callbackGasLimit,
    uint32 numWords
  ) external returns (uint256 requestId);

  /**
   * @notice Create a VRF subscription.
   * @return subId - A unique subscription id.
   * @dev You can manage the consumer set dynamically with addConsumer/removeConsumer.
   * @dev Note to fund the subscription, use transferAndCall. For example
   * @dev  LINKTOKEN.transferAndCall(
   * @dev    address(COORDINATOR),
   * @dev    amount,
   * @dev    abi.encode(subId));
   */
  function createSubscription() external returns (uint64 subId);

  /**
   * @notice Get a VRF subscription.
   * @param subId - ID of the subscription
   * @return balance - LINK balance of the subscription in juels.
   * @return reqCount - number of requests for this subscription, determines fee tier.
   * @return owner - owner of the subscription.
   * @return consumers - list of consumer address which are able to use this subscription.
   */
  function getSubscription(uint64 subId)
    external
    view
    returns (
      uint96 balance,
      uint64 reqCount,
      address owner,
      address[] memory consumers
    );

  /**
   * @notice Request subscription owner transfer.
   * @param subId - ID of the subscription
   * @param newOwner - proposed new owner of the subscription
   */
  function requestSubscriptionOwnerTransfer(uint64 subId, address newOwner) external;

  /**
   * @notice Request subscription owner transfer.
   * @param subId - ID of the subscription
   * @dev will revert if original owner of subId has
   * not requested that msg.sender become the new owner.
   */
  function acceptSubscriptionOwnerTransfer(uint64 subId) external;

  /**
   * @notice Add a consumer to a VRF subscription.
   * @param subId - ID of the subscription
   * @param consumer - New consumer which can use the subscription
   */
  function addConsumer(uint64 subId, address consumer) external;

  /**
   * @notice Remove a consumer from a VRF subscription.
   * @param subId - ID of the subscription
   * @param consumer - Consumer to remove from the subscription
   */
  function removeConsumer(uint64 subId, address consumer) external;

  /**
   * @notice Cancel a subscription
   * @param subId - ID of the subscription
   * @param to - Where to send the remaining LINK to
   */
  function cancelSubscription(uint64 subId, address to) external;

  /*
   * @notice Check to see if there exists a request commitment consumers
   * for all consumers and keyhashes for a given sub.
   * @param subId - ID of the subscription
   * @return true if there exists at least one unfulfilled request for the subscription, false
   * otherwise.
   */
  function pendingRequestExists(uint64 subId) external view returns (bool);
}

File 7 of 16 : VRFConsumerBaseV2.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

/** ****************************************************************************
 * @notice Interface for contracts using VRF randomness
 * *****************************************************************************
 * @dev PURPOSE
 *
 * @dev Reggie the Random Oracle (not his real job) wants to provide randomness
 * @dev to Vera the verifier in such a way that Vera can be sure he's not
 * @dev making his output up to suit himself. Reggie provides Vera a public key
 * @dev to which he knows the secret key. Each time Vera provides a seed to
 * @dev Reggie, he gives back a value which is computed completely
 * @dev deterministically from the seed and the secret key.
 *
 * @dev Reggie provides a proof by which Vera can verify that the output was
 * @dev correctly computed once Reggie tells it to her, but without that proof,
 * @dev the output is indistinguishable to her from a uniform random sample
 * @dev from the output space.
 *
 * @dev The purpose of this contract is to make it easy for unrelated contracts
 * @dev to talk to Vera the verifier about the work Reggie is doing, to provide
 * @dev simple access to a verifiable source of randomness. It ensures 2 things:
 * @dev 1. The fulfillment came from the VRFCoordinator
 * @dev 2. The consumer contract implements fulfillRandomWords.
 * *****************************************************************************
 * @dev USAGE
 *
 * @dev Calling contracts must inherit from VRFConsumerBase, and can
 * @dev initialize VRFConsumerBase's attributes in their constructor as
 * @dev shown:
 *
 * @dev   contract VRFConsumer {
 * @dev     constructor(<other arguments>, address _vrfCoordinator, address _link)
 * @dev       VRFConsumerBase(_vrfCoordinator) public {
 * @dev         <initialization with other arguments goes here>
 * @dev       }
 * @dev   }
 *
 * @dev The oracle will have given you an ID for the VRF keypair they have
 * @dev committed to (let's call it keyHash). Create subscription, fund it
 * @dev and your consumer contract as a consumer of it (see VRFCoordinatorInterface
 * @dev subscription management functions).
 * @dev Call requestRandomWords(keyHash, subId, minimumRequestConfirmations,
 * @dev callbackGasLimit, numWords),
 * @dev see (VRFCoordinatorInterface for a description of the arguments).
 *
 * @dev Once the VRFCoordinator has received and validated the oracle's response
 * @dev to your request, it will call your contract's fulfillRandomWords method.
 *
 * @dev The randomness argument to fulfillRandomWords is a set of random words
 * @dev generated from your requestId and the blockHash of the request.
 *
 * @dev If your contract could have concurrent requests open, you can use the
 * @dev requestId returned from requestRandomWords to track which response is associated
 * @dev with which randomness request.
 * @dev See "SECURITY CONSIDERATIONS" for principles to keep in mind,
 * @dev if your contract could have multiple requests in flight simultaneously.
 *
 * @dev Colliding `requestId`s are cryptographically impossible as long as seeds
 * @dev differ.
 *
 * *****************************************************************************
 * @dev SECURITY CONSIDERATIONS
 *
 * @dev A method with the ability to call your fulfillRandomness method directly
 * @dev could spoof a VRF response with any random value, so it's critical that
 * @dev it cannot be directly called by anything other than this base contract
 * @dev (specifically, by the VRFConsumerBase.rawFulfillRandomness method).
 *
 * @dev For your users to trust that your contract's random behavior is free
 * @dev from malicious interference, it's best if you can write it so that all
 * @dev behaviors implied by a VRF response are executed *during* your
 * @dev fulfillRandomness method. If your contract must store the response (or
 * @dev anything derived from it) and use it later, you must ensure that any
 * @dev user-significant behavior which depends on that stored value cannot be
 * @dev manipulated by a subsequent VRF request.
 *
 * @dev Similarly, both miners and the VRF oracle itself have some influence
 * @dev over the order in which VRF responses appear on the blockchain, so if
 * @dev your contract could have multiple VRF requests in flight simultaneously,
 * @dev you must ensure that the order in which the VRF responses arrive cannot
 * @dev be used to manipulate your contract's user-significant behavior.
 *
 * @dev Since the block hash of the block which contains the requestRandomness
 * @dev call is mixed into the input to the VRF *last*, a sufficiently powerful
 * @dev miner could, in principle, fork the blockchain to evict the block
 * @dev containing the request, forcing the request to be included in a
 * @dev different block with a different hash, and therefore a different input
 * @dev to the VRF. However, such an attack would incur a substantial economic
 * @dev cost. This cost scales with the number of blocks the VRF oracle waits
 * @dev until it calls responds to a request. It is for this reason that
 * @dev that you can signal to an oracle you'd like them to wait longer before
 * @dev responding to the request (however this is not enforced in the contract
 * @dev and so remains effective only in the case of unmodified oracle software).
 */
abstract contract VRFConsumerBaseV2 {
  error OnlyCoordinatorCanFulfill(address have, address want);
  address private immutable vrfCoordinator;

  /**
   * @param _vrfCoordinator address of VRFCoordinator contract
   */
  constructor(address _vrfCoordinator) {
    vrfCoordinator = _vrfCoordinator;
  }

  /**
   * @notice fulfillRandomness handles the VRF response. Your contract must
   * @notice implement it. See "SECURITY CONSIDERATIONS" above for important
   * @notice principles to keep in mind when implementing your fulfillRandomness
   * @notice method.
   *
   * @dev VRFConsumerBaseV2 expects its subcontracts to have a method with this
   * @dev signature, and will call it once it has verified the proof
   * @dev associated with the randomness. (It is triggered via a call to
   * @dev rawFulfillRandomness, below.)
   *
   * @param requestId The Id initially returned by requestRandomness
   * @param randomWords the VRF output expanded to the requested number of words
   */
  function fulfillRandomWords(uint256 requestId, uint256[] memory randomWords) internal virtual;

  // rawFulfillRandomness is called by VRFCoordinator when it receives a valid VRF
  // proof. rawFulfillRandomness then calls fulfillRandomness, after validating
  // the origin of the call
  function rawFulfillRandomWords(uint256 requestId, uint256[] memory randomWords) external {
    if (msg.sender != vrfCoordinator) {
      revert OnlyCoordinatorCanFulfill(msg.sender, vrfCoordinator);
    }
    fulfillRandomWords(requestId, randomWords);
  }
}

File 8 of 16 : 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 9 of 16 : 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 10 of 16 : 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 11 of 16 : 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 12 of 16 : 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 13 of 16 : 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 14 of 16 : 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 15 of 16 : 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 16 of 16 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_baseUri","type":"string"},{"internalType":"address","name":"_vrfCoordinator","type":"address"},{"internalType":"bytes32","name":"_keyHash","type":"bytes32"},{"internalType":"uint64","name":"_subscriptionId","type":"uint64"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"have","type":"address"},{"internalType":"address","name":"want","type":"address"}],"name":"OnlyCoordinatorCanFulfill","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"requestId","type":"uint256"},{"indexed":false,"internalType":"address","name":"user","type":"address"}],"name":"MintRefunded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"requestId","type":"uint256"},{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"}],"name":"MintRequested","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"requestId","type":"uint256"},{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"MintSettled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"requestId","type":"uint256"}],"name":"RefundNeeded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"uint256[]","name":"apes","type":"uint256[]"}],"name":"addAvailableApes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"to","type":"address[]"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"availableApes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRemaining","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"_subscriptionId","type":"uint64"},{"internalType":"bytes32","name":"_keyHash","type":"bytes32"},{"internalType":"uint32","name":"_callbackGasLimit","type":"uint32"},{"internalType":"uint16","name":"_requestConfirmations","type":"uint16"}],"name":"handleSubscription","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingRequests","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"requestId","type":"uint256"},{"internalType":"uint256[]","name":"randomWords","type":"uint256[]"}],"name":"rawFulfillRandomWords","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"ready","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"requestId","type":"uint256"},{"internalType":"bool","name":"toggle","type":"bool"}],"name":"refundMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"removeAvailableApes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"requests","outputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"blockNumber","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseUri","type":"string"}],"name":"secureBaseUri","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":"uint256","name":"_price","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"subscriptionId","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","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":"bool","name":"_ready","type":"bool"}],"name":"toggleStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c0604052732791bca1f2de4661ed88a30c99a7a9449aa84174600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506207a120600d60006101000a81548163ffffffff021916908363ffffffff1602179055506003600d60046101000a81548161ffff021916908361ffff160217905550631dcd6500601255348015620000b057600080fd5b5060405162005ed038038062005ed08339818101604052810190620000d691906200058e565b826040518060400160405280600981526020017f50617274794170657300000000000000000000000000000000000000000000008152506040518060400160405280600581526020017f704170657300000000000000000000000000000000000000000000000000000081525081600090816200015491906200086a565b5080600190816200016691906200086a565b5050508073ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff168152505050620001be620001b26200023e60201b60201c565b6200024660201b60201c565b83600e9081620001cf91906200086a565b508273ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff168152505081600c8190555080601160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505050505062000951565b600033905090565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b62000375826200032a565b810181811067ffffffffffffffff821117156200039757620003966200033b565b5b80604052505050565b6000620003ac6200030c565b9050620003ba82826200036a565b919050565b600067ffffffffffffffff821115620003dd57620003dc6200033b565b5b620003e8826200032a565b9050602081019050919050565b60005b8381101562000415578082015181840152602081019050620003f8565b8381111562000425576000848401525b50505050565b6000620004426200043c84620003bf565b620003a0565b90508281526020810184848401111562000461576200046062000325565b5b6200046e848285620003f5565b509392505050565b600082601f8301126200048e576200048d62000320565b5b8151620004a08482602086016200042b565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620004d682620004a9565b9050919050565b620004e881620004c9565b8114620004f457600080fd5b50565b6000815190506200050881620004dd565b92915050565b6000819050919050565b62000523816200050e565b81146200052f57600080fd5b50565b600081519050620005438162000518565b92915050565b600067ffffffffffffffff82169050919050565b620005688162000549565b81146200057457600080fd5b50565b60008151905062000588816200055d565b92915050565b60008060008060808587031215620005ab57620005aa62000316565b5b600085015167ffffffffffffffff811115620005cc57620005cb6200031b565b5b620005da8782880162000476565b9450506020620005ed87828801620004f7565b9350506040620006008782880162000532565b9250506060620006138782880162000577565b91505092959194509250565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200067257607f821691505b6020821081036200068857620006876200062a565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620006f27fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82620006b3565b620006fe8683620006b3565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b60006200074b620007456200073f8462000716565b62000720565b62000716565b9050919050565b6000819050919050565b62000767836200072a565b6200077f620007768262000752565b848454620006c0565b825550505050565b600090565b6200079662000787565b620007a38184846200075c565b505050565b5b81811015620007cb57620007bf6000826200078c565b600181019050620007a9565b5050565b601f8211156200081a57620007e4816200068e565b620007ef84620006a3565b81016020851015620007ff578190505b620008176200080e85620006a3565b830182620007a8565b50505b505050565b600082821c905092915050565b60006200083f600019846008026200081f565b1980831691505092915050565b60006200085a83836200082c565b9150826002028217905092915050565b62000875826200061f565b67ffffffffffffffff8111156200089157620008906200033b565b5b6200089d825462000659565b620008aa828285620007cf565b600060209050601f831160018114620008e25760008415620008cd578287015190505b620008d985826200084c565b86555062000949565b601f198416620008f2866200068e565b60005b828110156200091c57848901518255600182019150602085019450602081019050620008f5565b868310156200093c578489015162000938601f8916826200082c565b8355505b6001600288020188555050505b505050505050565b60805160a0516155526200097e6000396000610af1015260008181610cde0152610d3201526155526000f3fe608060405234801561001057600080fd5b50600436106102485760003560e01c80636defbf801161013b578063a22cb465116100b8578063c79f97d11161007c578063c79f97d11461068f578063c87b56dd146106bf578063d6a022b8146106ef578063e985e9c51461070d578063f2fde38b1461073d57610248565b8063a22cb46514610615578063a4c6f0f314610631578063aeab5fae1461064d578063b88d4fde14610657578063c46b0d841461067357610248565b80638da5cb5b116100ff5780638da5cb5b1461058157806391b7f5ed1461059f57806395d89b41146105bb5780639abc8320146105d9578063a035b1fe146105f757610248565b80636defbf80146104ed57806370a082311461050b578063715018a61461053b578063753868e31461054557806381d12c581461054f57610248565b80632f745c59116101c95780634f6ccce71161018d5780634f6ccce71461043957806359994bb6146104695780636352211e1461048557806367243482146104b55780636d1c0863146104d157610248565b80632f745c5914610395578063324cb3cb146103c557806342842e0e146103e357806349f034c1146103ff5780634a0aee291461041b57610248565b806309c1ba2e1161021057806309c1ba2e146103035780631249c58b1461032157806318160ddd1461033f5780631fe543e31461035d57806323b872dd1461037957610248565b806301ffc9a71461024d57806306b091f91461027d57806306fdde0314610299578063081812fc146102b7578063095ea7b3146102e7575b600080fd5b61026760048036038101906102629190613550565b610759565b6040516102749190613598565b60405180910390f35b61029760048036038101906102929190613647565b61076b565b005b6102a16107f6565b6040516102ae9190613720565b60405180910390f35b6102d160048036038101906102cc9190613742565b610888565b6040516102de919061377e565b60405180910390f35b61030160048036038101906102fc9190613647565b6108ce565b005b61030b6109e5565b60405161031891906137bc565b60405180910390f35b6103296109ff565b60405161033691906137e6565b60405180910390f35b610347610ccf565b60405161035491906137e6565b60405180910390f35b61037760048036038101906103729190613949565b610cdc565b005b610393600480360381019061038e91906139a5565b610d9c565b005b6103af60048036038101906103aa9190613647565b610dfc565b6040516103bc91906137e6565b60405180910390f35b6103cd610ea1565b6040516103da9190613598565b60405180910390f35b6103fd60048036038101906103f891906139a5565b610eb4565b005b61041960048036038101906104149190613a24565b610ed4565b005b610423611260565b60405161043091906137e6565b60405180910390f35b610453600480360381019061044e9190613742565b611266565b60405161046091906137e6565b60405180910390f35b610483600480360381019061047e9190613b3c565b6112d7565b005b61049f600480360381019061049a9190613742565b611353565b6040516104ac919061377e565b60405180910390f35b6104cf60048036038101906104ca9190613c66565b611404565b005b6104eb60048036038101906104e69190613cde565b6114b2565b005b6104f56114d7565b6040516105029190613598565b60405180910390f35b61052560048036038101906105209190613d0b565b6114ea565b60405161053291906137e6565b60405180910390f35b6105436115a1565b005b61054d6115b5565b005b61056960048036038101906105649190613742565b61162a565b60405161057893929190613d38565b60405180910390f35b610589611674565b604051610596919061377e565b60405180910390f35b6105b960048036038101906105b49190613742565b61169e565b005b6105c36116b0565b6040516105d09190613720565b60405180910390f35b6105e1611742565b6040516105ee9190613720565b60405180910390f35b6105ff6117d0565b60405161060c91906137e6565b60405180910390f35b61062f600480360381019061062a9190613d6f565b6117d6565b005b61064b60048036038101906106469190613daf565b6117ec565b005b610655611971565b005b610671600480360381019061066c9190613ead565b6119db565b005b61068d60048036038101906106889190613fd1565b611a3d565b005b6106a960048036038101906106a49190613742565b611aa8565b6040516106b691906137e6565b60405180910390f35b6106d960048036038101906106d49190613742565b611acc565b6040516106e69190613720565b60405180910390f35b6106f7611b34565b60405161070491906137e6565b60405180910390f35b6107276004803603810190610722919061401a565b611b41565b6040516107349190613598565b60405180910390f35b61075760048036038101906107529190613d0b565b611bd5565b005b600061076482611c58565b9050919050565b610773611cd2565b8173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b81526004016107ae92919061405a565b6020604051808303816000875af11580156107cd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107f19190614098565b505050565b606060008054610805906140f4565b80601f0160208091040260200160405190810160405280929190818152602001828054610831906140f4565b801561087e5780601f106108535761010080835404028352916020019161087e565b820191906000526020600020905b81548152906001019060200180831161086157829003601f168201915b5050505050905090565b600061089382611d50565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006108d982611353565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610949576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161094090614197565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610968611d9b565b73ffffffffffffffffffffffffffffffffffffffff161480610997575061099681610991611d9b565b611b41565b5b6109d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109cd90614229565b60405180910390fd5b6109e08383611da3565b505050565b601160009054906101000a900467ffffffffffffffff1681565b6000600f60019054906101000a900460ff16610a50576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a4790614295565b60405180910390fd5b6000610a5a611b34565b11610a9a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a9190614301565b60405180910390fd5b610aa2611b34565b60145410610ae5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610adc9061436d565b60405180910390fd5b610aed611e5c565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16635d3b1d30600c54601160009054906101000a900467ffffffffffffffff16600d60049054906101000a900461ffff16600d60009054906101000a900463ffffffff1660016040518663ffffffff1660e01b8152600401610b8b9594939291906143ff565b6020604051808303816000875af1158015610baa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bce9190614467565b905060405180606001604052803373ffffffffffffffffffffffffffffffffffffffff1681526020016012548152602001438152506013600083815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550602082015181600101556040820151816002015590505060146000815480929190610c87906144c3565b9190505550807f32f62f6e38f01677299722b6f618d17026edcb8decf51f73dd4c6d8ffcebd74f33601254604051610cc092919061405a565b60405180910390a28091505090565b6000600880549050905090565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610d8e57337f00000000000000000000000000000000000000000000000000000000000000006040517f1cf993f4000000000000000000000000000000000000000000000000000000008152600401610d8592919061450b565b60405180910390fd5b610d988282611ff6565b5050565b610dad610da7611d9b565b82612270565b610dec576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610de3906145a6565b60405180910390fd5b610df7838383612305565b505050565b6000610e07836114ea565b8210610e48576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e3f90614638565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b600f60009054906101000a900460ff1681565b610ecf838383604051806020016040528060008152506119db565b505050565b610edc611cd2565b6000601360008481526020019081526020016000209050600073ffffffffffffffffffffffffffffffffffffffff168160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1603610f86576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f7d906146a4565b60405180910390fd5b60148160020154610f9791906146c4565b4311610fd8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fcf90614766565b60405180910390fd5b818015610fe9575060008160010154115b1561119a578060010154600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161104e919061377e565b602060405180830381865afa15801561106b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061108f9190614467565b10156110d0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110c7906147d2565b60405180910390fd5b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb8260000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1683600101546040518363ffffffff1660e01b815260040161115592919061405a565b6020604051808303816000875af1158015611174573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111989190614098565b505b827f9bfcb7a12aa2e2312b55e871c0f37a082fafd1f6ff70c01a4f4e4d59fdff76ab8260000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040516111ee919061377e565b60405180910390a260136000848152602001908152602001600020600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905560018201600090556002820160009055505060146000815480929190611256906147f2565b9190505550505050565b60145481565b6000611270610ccf565b82106112b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112a89061488d565b60405180910390fd5b600882815481106112c5576112c46148ad565b5b90600052602060002001549050919050565b6112df611cd2565b83601160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555082600c8190555081600d60006101000a81548163ffffffff021916908363ffffffff16021790555080600d60046101000a81548161ffff021916908361ffff16021790555050505050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036113fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113f290614928565b60405180910390fd5b80915050919050565b61140c611cd2565b8051825114611450576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161144790614994565b60405180910390fd5b60005b81518110156114ad5761149a838281518110611472576114716148ad565b5b602002602001015183838151811061148d5761148c6148ad565b5b602002602001015161256b565b80806114a5906144c3565b915050611453565b505050565b6114ba611cd2565b80600f60016101000a81548160ff02191690831515021790555050565b600f60019054906101000a900460ff1681565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361155a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161155190614a26565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6115a9611cd2565b6115b36000612589565b565b6115bd611cd2565b600f60009054906101000a900460ff161561160d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161160490614a92565b60405180910390fd5b6001600f60006101000a81548160ff021916908315150217905550565b60136020528060005260406000206000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154908060020154905083565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6116a6611cd2565b8060128190555050565b6060600180546116bf906140f4565b80601f01602080910402602001604051908101604052809291908181526020018280546116eb906140f4565b80156117385780601f1061170d57610100808354040283529160200191611738565b820191906000526020600020905b81548152906001019060200180831161171b57829003601f168201915b5050505050905090565b600e805461174f906140f4565b80601f016020809104026020016040519081016040528092919081815260200182805461177b906140f4565b80156117c85780601f1061179d576101008083540402835291602001916117c8565b820191906000526020600020905b8154815290600101906020018083116117ab57829003601f168201915b505050505081565b60125481565b6117e86117e1611d9b565b838361264f565b5050565b6117f4611cd2565b60005b815181101561196d57611823828281518110611816576118156148ad565b5b60200260200101516127bb565b15611863576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161185a90614afe565b60405180910390fd5b6118d760108054806020026020016040519081016040528092919081815260200182805480156118b257602002820191906000526020600020905b81548152602001906001019080831161189e575b50505050508383815181106118ca576118c96148ad565b5b6020026020010151612827565b15611917576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161190e90614b90565b60405180910390fd5b601082828151811061192c5761192b6148ad565b5b602002602001015190806001815401808255809150506001900390600052602060002001600090919091909150558080611965906144c3565b9150506117f7565b5050565b611979611cd2565b600067ffffffffffffffff81111561199457611993613806565b5b6040519080825280602002602001820160405280156119c25781602001602082028036833780820191505090505b50601090805190602001906119d892919061347a565b50565b6119ec6119e6611d9b565b83612270565b611a2b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a22906145a6565b60405180910390fd5b611a3784848484612882565b50505050565b611a45611cd2565b600f60009054906101000a900460ff1615611a95576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a8c90614c22565b60405180910390fd5b80600e9081611aa49190614de4565b5050565b60108181548110611ab857600080fd5b906000526020600020016000915090505481565b6060611ad782611d50565b6000611ae16128de565b90506000815111611b015760405180602001604052806000815250611b2c565b80611b0b84612970565b604051602001611b1c929190614ef2565b6040516020818303038152906040525b915050919050565b6000601080549050905090565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611bdd611cd2565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611c4c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c4390614f88565b60405180910390fd5b611c5581612589565b50565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611ccb5750611cca82612ad0565b5b9050919050565b611cda611d9b565b73ffffffffffffffffffffffffffffffffffffffff16611cf8611674565b73ffffffffffffffffffffffffffffffffffffffff1614611d4e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d4590614ff4565b60405180910390fd5b565b611d59816127bb565b611d98576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d8f90614928565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611e1683611353565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611e66612bb2565b90506000811115611ff35780600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b8152600401611ecd919061377e565b602060405180830381865afa158015611eea573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f0e9190614467565b1015611f4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f46906147d2565b60405180910390fd5b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330846040518463ffffffff1660e01b8152600401611fae93929190615014565b6020604051808303816000875af1158015611fcd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ff19190614098565b505b50565b6000601360008481526020019081526020016000209050600073ffffffffffffffffffffffffffffffffffffffff168160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415801561207357506000601080549050115b1561223d57600060108054905083600081518110612094576120936148ad565b5b60200260200101516120a6919061507a565b90506000601082815481106120be576120bd6148ad565b5b906000526020600020015490506120f98360000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168261256b565b6010600160108054905061210d91906150ab565b8154811061211e5761211d6148ad565b5b90600052602060002001546010838154811061213d5761213c6148ad565b5b9060005260206000200181905550601080548061215d5761215c6150df565b5b60019003818190600052602060002001600090559055847f583aef20a466b7d5ad245f91b0faea93bfd2918a3c98e11190c5a3e88c1ce9f68460000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16836040516121c992919061405a565b60405180910390a260136000868152602001908152602001600020600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905560018201600090556002820160009055505060146000815480929190612231906147f2565b9190505550505061226b565b827fe7c4620bbc88d6cac93691dc01508b3a39a28f3cb91595c8cd0187dc102fa3aa60405160405180910390a25b505050565b60008061227c83611353565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806122be57506122bd8185611b41565b5b806122fc57508373ffffffffffffffffffffffffffffffffffffffff166122e484610888565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661232582611353565b73ffffffffffffffffffffffffffffffffffffffff161461237b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161237290615180565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036123ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123e190615212565b60405180910390fd5b6123f5838383612c00565b612400600082611da3565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461245091906150ab565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546124a791906146c4565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612566838383612c10565b505050565b612585828260405180602001604052806000815250612c15565b5050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036126bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126b49061527e565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516127ae9190613598565b60405180910390a3505050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600080600090505b8351811015612876578284828151811061284c5761284b6148ad565b5b60200260200101510361286357600191505061287c565b808061286e906144c3565b91505061282f565b50600090505b92915050565b61288d848484612305565b61289984848484612c70565b6128d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128cf90615310565b60405180910390fd5b50505050565b6060600e80546128ed906140f4565b80601f0160208091040260200160405190810160405280929190818152602001828054612919906140f4565b80156129665780601f1061293b57610100808354040283529160200191612966565b820191906000526020600020905b81548152906001019060200180831161294957829003601f168201915b5050505050905090565b6060600082036129b7576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612acb565b600082905060005b600082146129e95780806129d2906144c3565b915050600a826129e29190615330565b91506129bf565b60008167ffffffffffffffff811115612a0557612a04613806565b5b6040519080825280601f01601f191660200182016040528015612a375781602001600182028036833780820191505090505b5090505b60008514612ac457600182612a5091906150ab565b9150600a85612a5f919061507a565b6030612a6b91906146c4565b60f81b818381518110612a8157612a806148ad565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612abd9190615330565b9450612a3b565b8093505050505b919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612b9b57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612bab5750612baa82612df7565b5b9050919050565b6000612bbc611674565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1603612bf75760009050612bfd565b60125490505b90565b612c0b838383612e61565b505050565b505050565b612c1f8383612f73565b612c2c6000848484612c70565b612c6b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c6290615310565b60405180910390fd5b505050565b6000612c918473ffffffffffffffffffffffffffffffffffffffff1661314c565b15612dea578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612cba611d9b565b8786866040518563ffffffff1660e01b8152600401612cdc94939291906153b6565b6020604051808303816000875af1925050508015612d1857506040513d601f19601f82011682018060405250810190612d159190615417565b60015b612d9a573d8060008114612d48576040519150601f19603f3d011682016040523d82523d6000602084013e612d4d565b606091505b506000815103612d92576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d8990615310565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612def565b600190505b949350505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b612e6c83838361316f565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612eae57612ea981613174565b612eed565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612eec57612eeb83826131bd565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612f2f57612f2a8161332a565b612f6e565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614612f6d57612f6c82826133fb565b5b5b505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612fe2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fd990615490565b60405180910390fd5b612feb816127bb565b1561302b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613022906154fc565b60405180910390fd5b61303760008383612c00565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461308791906146c4565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461314860008383612c10565b5050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b600060016131ca846114ea565b6131d491906150ab565b90506000600760008481526020019081526020016000205490508181146132b9576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b6000600160088054905061333e91906150ab565b905060006009600084815260200190815260200160002054905060006008838154811061336e5761336d6148ad565b5b9060005260206000200154905080600883815481106133905761338f6148ad565b5b9060005260206000200181905550816009600083815260200190815260200160002081905550600960008581526020019081526020016000206000905560088054806133df576133de6150df565b5b6001900381819060005260206000200160009055905550505050565b6000613406836114ea565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b8280548282559060005260206000209081019282156134b6579160200282015b828111156134b557825182559160200191906001019061349a565b5b5090506134c391906134c7565b5090565b5b808211156134e05760008160009055506001016134c8565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61352d816134f8565b811461353857600080fd5b50565b60008135905061354a81613524565b92915050565b600060208284031215613566576135656134ee565b5b60006135748482850161353b565b91505092915050565b60008115159050919050565b6135928161357d565b82525050565b60006020820190506135ad6000830184613589565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006135de826135b3565b9050919050565b6135ee816135d3565b81146135f957600080fd5b50565b60008135905061360b816135e5565b92915050565b6000819050919050565b61362481613611565b811461362f57600080fd5b50565b6000813590506136418161361b565b92915050565b6000806040838503121561365e5761365d6134ee565b5b600061366c858286016135fc565b925050602061367d85828601613632565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b60005b838110156136c15780820151818401526020810190506136a6565b838111156136d0576000848401525b50505050565b6000601f19601f8301169050919050565b60006136f282613687565b6136fc8185613692565b935061370c8185602086016136a3565b613715816136d6565b840191505092915050565b6000602082019050818103600083015261373a81846136e7565b905092915050565b600060208284031215613758576137576134ee565b5b600061376684828501613632565b91505092915050565b613778816135d3565b82525050565b6000602082019050613793600083018461376f565b92915050565b600067ffffffffffffffff82169050919050565b6137b681613799565b82525050565b60006020820190506137d160008301846137ad565b92915050565b6137e081613611565b82525050565b60006020820190506137fb60008301846137d7565b92915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61383e826136d6565b810181811067ffffffffffffffff8211171561385d5761385c613806565b5b80604052505050565b60006138706134e4565b905061387c8282613835565b919050565b600067ffffffffffffffff82111561389c5761389b613806565b5b602082029050602081019050919050565b600080fd5b60006138c56138c084613881565b613866565b905080838252602082019050602084028301858111156138e8576138e76138ad565b5b835b8181101561391157806138fd8882613632565b8452602084019350506020810190506138ea565b5050509392505050565b600082601f8301126139305761392f613801565b5b81356139408482602086016138b2565b91505092915050565b600080604083850312156139605761395f6134ee565b5b600061396e85828601613632565b925050602083013567ffffffffffffffff81111561398f5761398e6134f3565b5b61399b8582860161391b565b9150509250929050565b6000806000606084860312156139be576139bd6134ee565b5b60006139cc868287016135fc565b93505060206139dd868287016135fc565b92505060406139ee86828701613632565b9150509250925092565b613a018161357d565b8114613a0c57600080fd5b50565b600081359050613a1e816139f8565b92915050565b60008060408385031215613a3b57613a3a6134ee565b5b6000613a4985828601613632565b9250506020613a5a85828601613a0f565b9150509250929050565b613a6d81613799565b8114613a7857600080fd5b50565b600081359050613a8a81613a64565b92915050565b6000819050919050565b613aa381613a90565b8114613aae57600080fd5b50565b600081359050613ac081613a9a565b92915050565b600063ffffffff82169050919050565b613adf81613ac6565b8114613aea57600080fd5b50565b600081359050613afc81613ad6565b92915050565b600061ffff82169050919050565b613b1981613b02565b8114613b2457600080fd5b50565b600081359050613b3681613b10565b92915050565b60008060008060808587031215613b5657613b556134ee565b5b6000613b6487828801613a7b565b9450506020613b7587828801613ab1565b9350506040613b8687828801613aed565b9250506060613b9787828801613b27565b91505092959194509250565b600067ffffffffffffffff821115613bbe57613bbd613806565b5b602082029050602081019050919050565b6000613be2613bdd84613ba3565b613866565b90508083825260208201905060208402830185811115613c0557613c046138ad565b5b835b81811015613c2e5780613c1a88826135fc565b845260208401935050602081019050613c07565b5050509392505050565b600082601f830112613c4d57613c4c613801565b5b8135613c5d848260208601613bcf565b91505092915050565b60008060408385031215613c7d57613c7c6134ee565b5b600083013567ffffffffffffffff811115613c9b57613c9a6134f3565b5b613ca785828601613c38565b925050602083013567ffffffffffffffff811115613cc857613cc76134f3565b5b613cd48582860161391b565b9150509250929050565b600060208284031215613cf457613cf36134ee565b5b6000613d0284828501613a0f565b91505092915050565b600060208284031215613d2157613d206134ee565b5b6000613d2f848285016135fc565b91505092915050565b6000606082019050613d4d600083018661376f565b613d5a60208301856137d7565b613d6760408301846137d7565b949350505050565b60008060408385031215613d8657613d856134ee565b5b6000613d94858286016135fc565b9250506020613da585828601613a0f565b9150509250929050565b600060208284031215613dc557613dc46134ee565b5b600082013567ffffffffffffffff811115613de357613de26134f3565b5b613def8482850161391b565b91505092915050565b600080fd5b600067ffffffffffffffff821115613e1857613e17613806565b5b613e21826136d6565b9050602081019050919050565b82818337600083830152505050565b6000613e50613e4b84613dfd565b613866565b905082815260208101848484011115613e6c57613e6b613df8565b5b613e77848285613e2e565b509392505050565b600082601f830112613e9457613e93613801565b5b8135613ea4848260208601613e3d565b91505092915050565b60008060008060808587031215613ec757613ec66134ee565b5b6000613ed5878288016135fc565b9450506020613ee6878288016135fc565b9350506040613ef787828801613632565b925050606085013567ffffffffffffffff811115613f1857613f176134f3565b5b613f2487828801613e7f565b91505092959194509250565b600067ffffffffffffffff821115613f4b57613f4a613806565b5b613f54826136d6565b9050602081019050919050565b6000613f74613f6f84613f30565b613866565b905082815260208101848484011115613f9057613f8f613df8565b5b613f9b848285613e2e565b509392505050565b600082601f830112613fb857613fb7613801565b5b8135613fc8848260208601613f61565b91505092915050565b600060208284031215613fe757613fe66134ee565b5b600082013567ffffffffffffffff811115614005576140046134f3565b5b61401184828501613fa3565b91505092915050565b60008060408385031215614031576140306134ee565b5b600061403f858286016135fc565b9250506020614050858286016135fc565b9150509250929050565b600060408201905061406f600083018561376f565b61407c60208301846137d7565b9392505050565b600081519050614092816139f8565b92915050565b6000602082840312156140ae576140ad6134ee565b5b60006140bc84828501614083565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061410c57607f821691505b60208210810361411f5761411e6140c5565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b6000614181602183613692565b915061418c82614125565b604082019050919050565b600060208201905081810360008301526141b081614174565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015250565b6000614213603e83613692565b915061421e826141b7565b604082019050919050565b6000602082019050818103600083015261424281614206565b9050919050565b7f4d696e74206e6f7420656e61626c656400000000000000000000000000000000600082015250565b600061427f601083613692565b915061428a82614249565b602082019050919050565b600060208201905081810360008301526142ae81614272565b9050919050565b7f536f6c64206f7574000000000000000000000000000000000000000000000000600082015250565b60006142eb600883613692565b91506142f6826142b5565b602082019050919050565b6000602082019050818103600083015261431a816142de565b9050919050565b7f5365656d7320736f6c64206f7574000000000000000000000000000000000000600082015250565b6000614357600e83613692565b915061436282614321565b602082019050919050565b600060208201905081810360008301526143868161434a565b9050919050565b61439681613a90565b82525050565b6143a581613b02565b82525050565b6143b481613ac6565b82525050565b6000819050919050565b6000819050919050565b60006143e96143e46143df846143ba565b6143c4565b613ac6565b9050919050565b6143f9816143ce565b82525050565b600060a082019050614414600083018861438d565b61442160208301876137ad565b61442e604083018661439c565b61443b60608301856143ab565b61444860808301846143f0565b9695505050505050565b6000815190506144618161361b565b92915050565b60006020828403121561447d5761447c6134ee565b5b600061448b84828501614452565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006144ce82613611565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614500576144ff614494565b5b600182019050919050565b6000604082019050614520600083018561376f565b61452d602083018461376f565b9392505050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b6000614590602e83613692565b915061459b82614534565b604082019050919050565b600060208201905081810360008301526145bf81614583565b9050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b6000614622602b83613692565b915061462d826145c6565b604082019050919050565b6000602082019050818103600083015261465181614615565b9050919050565b7f5265717565737420697320696e76616c69640000000000000000000000000000600082015250565b600061468e601283613692565b915061469982614658565b602082019050919050565b600060208201905081810360008301526146bd81614681565b9050919050565b60006146cf82613611565b91506146da83613611565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561470f5761470e614494565b5b828201905092915050565b7f57616974206265666f72652072657175657374696e6720726566756e64000000600082015250565b6000614750601d83613692565b915061475b8261471a565b602082019050919050565b6000602082019050818103600083015261477f81614743565b9050919050565b7f4e6f7420656e6f7567682062616c616e63650000000000000000000000000000600082015250565b60006147bc601283613692565b91506147c782614786565b602082019050919050565b600060208201905081810360008301526147eb816147af565b9050919050565b60006147fd82613611565b9150600082036148105761480f614494565b5b600182039050919050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b6000614877602c83613692565b91506148828261481b565b604082019050919050565b600060208201905081810360008301526148a68161486a565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b6000614912601883613692565b915061491d826148dc565b602082019050919050565b6000602082019050818103600083015261494181614905565b9050919050565b7f417272617973206c656e677468206d757374206d617463680000000000000000600082015250565b600061497e601883613692565b915061498982614948565b602082019050919050565b600060208201905081810360008301526149ad81614971565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b6000614a10602983613692565b9150614a1b826149b4565b604082019050919050565b60006020820190508181036000830152614a3f81614a03565b9050919050565b7f416c7265616479206c6f636b6564000000000000000000000000000000000000600082015250565b6000614a7c600e83613692565b9150614a8782614a46565b602082019050919050565b60006020820190508181036000830152614aab81614a6f565b9050919050565b7f546f6b656e20696420616c7265616479206d696e746564000000000000000000600082015250565b6000614ae8601783613692565b9150614af382614ab2565b602082019050919050565b60006020820190508181036000830152614b1781614adb565b9050919050565b7f546f6b656e20696420616c726561647920616464656420617320617661696c6160008201527f626c650000000000000000000000000000000000000000000000000000000000602082015250565b6000614b7a602383613692565b9150614b8582614b1e565b604082019050919050565b60006020820190508181036000830152614ba981614b6d565b9050919050565b7f436f6e7472616374206973206c6f636b65642c205552492063616e6e6f74206260008201527f65206368616e6765640000000000000000000000000000000000000000000000602082015250565b6000614c0c602983613692565b9150614c1782614bb0565b604082019050919050565b60006020820190508181036000830152614c3b81614bff565b9050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302614ca47fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82614c67565b614cae8683614c67565b95508019841693508086168417925050509392505050565b6000614ce1614cdc614cd784613611565b6143c4565b613611565b9050919050565b6000819050919050565b614cfb83614cc6565b614d0f614d0782614ce8565b848454614c74565b825550505050565b600090565b614d24614d17565b614d2f818484614cf2565b505050565b5b81811015614d5357614d48600082614d1c565b600181019050614d35565b5050565b601f821115614d9857614d6981614c42565b614d7284614c57565b81016020851015614d81578190505b614d95614d8d85614c57565b830182614d34565b50505b505050565b600082821c905092915050565b6000614dbb60001984600802614d9d565b1980831691505092915050565b6000614dd48383614daa565b9150826002028217905092915050565b614ded82613687565b67ffffffffffffffff811115614e0657614e05613806565b5b614e1082546140f4565b614e1b828285614d57565b600060209050601f831160018114614e4e5760008415614e3c578287015190505b614e468582614dc8565b865550614eae565b601f198416614e5c86614c42565b60005b82811015614e8457848901518255600182019150602085019450602081019050614e5f565b86831015614ea15784890151614e9d601f891682614daa565b8355505b6001600288020188555050505b505050505050565b600081905092915050565b6000614ecc82613687565b614ed68185614eb6565b9350614ee68185602086016136a3565b80840191505092915050565b6000614efe8285614ec1565b9150614f0a8284614ec1565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614f72602683613692565b9150614f7d82614f16565b604082019050919050565b60006020820190508181036000830152614fa181614f65565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614fde602083613692565b9150614fe982614fa8565b602082019050919050565b6000602082019050818103600083015261500d81614fd1565b9050919050565b6000606082019050615029600083018661376f565b615036602083018561376f565b61504360408301846137d7565b949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061508582613611565b915061509083613611565b9250826150a05761509f61504b565b5b828206905092915050565b60006150b682613611565b91506150c183613611565b9250828210156150d4576150d3614494565b5b828203905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b600061516a602583613692565b91506151758261510e565b604082019050919050565b600060208201905081810360008301526151998161515d565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b60006151fc602483613692565b9150615207826151a0565b604082019050919050565b6000602082019050818103600083015261522b816151ef565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000615268601983613692565b915061527382615232565b602082019050919050565b600060208201905081810360008301526152978161525b565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b60006152fa603283613692565b91506153058261529e565b604082019050919050565b60006020820190508181036000830152615329816152ed565b9050919050565b600061533b82613611565b915061534683613611565b9250826153565761535561504b565b5b828204905092915050565b600081519050919050565b600082825260208201905092915050565b600061538882615361565b615392818561536c565b93506153a28185602086016136a3565b6153ab816136d6565b840191505092915050565b60006080820190506153cb600083018761376f565b6153d8602083018661376f565b6153e560408301856137d7565b81810360608301526153f7818461537d565b905095945050505050565b60008151905061541181613524565b92915050565b60006020828403121561542d5761542c6134ee565b5b600061543b84828501615402565b91505092915050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b600061547a602083613692565b915061548582615444565b602082019050919050565b600060208201905081810360008301526154a98161546d565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b60006154e6601c83613692565b91506154f1826154b0565b602082019050919050565b60006020820190508181036000830152615515816154d9565b905091905056fea2646970667358221220c266071141d6614d3e66e38cf84d71a704f03f915750cb882436730cdd46019564736f6c634300080f00330000000000000000000000000000000000000000000000000000000000000080000000000000000000000000ae975071be8f8ee67addbc1a82488f1c24858067cc294a196eeeb44da2888d17c0625cc88d70d9760a69d58d853ba6581a9ab0cd00000000000000000000000000000000000000000000000000000000000000d0000000000000000000000000000000000000000000000000000000000000005968747470733a2f2f626166796265696676616d73796f776a636c6369346474733461797074746961796d753767793566667562707435346863676464747068626576692e697066732e6e667473746f726167652e6c696e6b2f00000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102485760003560e01c80636defbf801161013b578063a22cb465116100b8578063c79f97d11161007c578063c79f97d11461068f578063c87b56dd146106bf578063d6a022b8146106ef578063e985e9c51461070d578063f2fde38b1461073d57610248565b8063a22cb46514610615578063a4c6f0f314610631578063aeab5fae1461064d578063b88d4fde14610657578063c46b0d841461067357610248565b80638da5cb5b116100ff5780638da5cb5b1461058157806391b7f5ed1461059f57806395d89b41146105bb5780639abc8320146105d9578063a035b1fe146105f757610248565b80636defbf80146104ed57806370a082311461050b578063715018a61461053b578063753868e31461054557806381d12c581461054f57610248565b80632f745c59116101c95780634f6ccce71161018d5780634f6ccce71461043957806359994bb6146104695780636352211e1461048557806367243482146104b55780636d1c0863146104d157610248565b80632f745c5914610395578063324cb3cb146103c557806342842e0e146103e357806349f034c1146103ff5780634a0aee291461041b57610248565b806309c1ba2e1161021057806309c1ba2e146103035780631249c58b1461032157806318160ddd1461033f5780631fe543e31461035d57806323b872dd1461037957610248565b806301ffc9a71461024d57806306b091f91461027d57806306fdde0314610299578063081812fc146102b7578063095ea7b3146102e7575b600080fd5b61026760048036038101906102629190613550565b610759565b6040516102749190613598565b60405180910390f35b61029760048036038101906102929190613647565b61076b565b005b6102a16107f6565b6040516102ae9190613720565b60405180910390f35b6102d160048036038101906102cc9190613742565b610888565b6040516102de919061377e565b60405180910390f35b61030160048036038101906102fc9190613647565b6108ce565b005b61030b6109e5565b60405161031891906137bc565b60405180910390f35b6103296109ff565b60405161033691906137e6565b60405180910390f35b610347610ccf565b60405161035491906137e6565b60405180910390f35b61037760048036038101906103729190613949565b610cdc565b005b610393600480360381019061038e91906139a5565b610d9c565b005b6103af60048036038101906103aa9190613647565b610dfc565b6040516103bc91906137e6565b60405180910390f35b6103cd610ea1565b6040516103da9190613598565b60405180910390f35b6103fd60048036038101906103f891906139a5565b610eb4565b005b61041960048036038101906104149190613a24565b610ed4565b005b610423611260565b60405161043091906137e6565b60405180910390f35b610453600480360381019061044e9190613742565b611266565b60405161046091906137e6565b60405180910390f35b610483600480360381019061047e9190613b3c565b6112d7565b005b61049f600480360381019061049a9190613742565b611353565b6040516104ac919061377e565b60405180910390f35b6104cf60048036038101906104ca9190613c66565b611404565b005b6104eb60048036038101906104e69190613cde565b6114b2565b005b6104f56114d7565b6040516105029190613598565b60405180910390f35b61052560048036038101906105209190613d0b565b6114ea565b60405161053291906137e6565b60405180910390f35b6105436115a1565b005b61054d6115b5565b005b61056960048036038101906105649190613742565b61162a565b60405161057893929190613d38565b60405180910390f35b610589611674565b604051610596919061377e565b60405180910390f35b6105b960048036038101906105b49190613742565b61169e565b005b6105c36116b0565b6040516105d09190613720565b60405180910390f35b6105e1611742565b6040516105ee9190613720565b60405180910390f35b6105ff6117d0565b60405161060c91906137e6565b60405180910390f35b61062f600480360381019061062a9190613d6f565b6117d6565b005b61064b60048036038101906106469190613daf565b6117ec565b005b610655611971565b005b610671600480360381019061066c9190613ead565b6119db565b005b61068d60048036038101906106889190613fd1565b611a3d565b005b6106a960048036038101906106a49190613742565b611aa8565b6040516106b691906137e6565b60405180910390f35b6106d960048036038101906106d49190613742565b611acc565b6040516106e69190613720565b60405180910390f35b6106f7611b34565b60405161070491906137e6565b60405180910390f35b6107276004803603810190610722919061401a565b611b41565b6040516107349190613598565b60405180910390f35b61075760048036038101906107529190613d0b565b611bd5565b005b600061076482611c58565b9050919050565b610773611cd2565b8173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b81526004016107ae92919061405a565b6020604051808303816000875af11580156107cd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107f19190614098565b505050565b606060008054610805906140f4565b80601f0160208091040260200160405190810160405280929190818152602001828054610831906140f4565b801561087e5780601f106108535761010080835404028352916020019161087e565b820191906000526020600020905b81548152906001019060200180831161086157829003601f168201915b5050505050905090565b600061089382611d50565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006108d982611353565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610949576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161094090614197565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610968611d9b565b73ffffffffffffffffffffffffffffffffffffffff161480610997575061099681610991611d9b565b611b41565b5b6109d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109cd90614229565b60405180910390fd5b6109e08383611da3565b505050565b601160009054906101000a900467ffffffffffffffff1681565b6000600f60019054906101000a900460ff16610a50576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a4790614295565b60405180910390fd5b6000610a5a611b34565b11610a9a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a9190614301565b60405180910390fd5b610aa2611b34565b60145410610ae5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610adc9061436d565b60405180910390fd5b610aed611e5c565b60007f000000000000000000000000ae975071be8f8ee67addbc1a82488f1c2485806773ffffffffffffffffffffffffffffffffffffffff16635d3b1d30600c54601160009054906101000a900467ffffffffffffffff16600d60049054906101000a900461ffff16600d60009054906101000a900463ffffffff1660016040518663ffffffff1660e01b8152600401610b8b9594939291906143ff565b6020604051808303816000875af1158015610baa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bce9190614467565b905060405180606001604052803373ffffffffffffffffffffffffffffffffffffffff1681526020016012548152602001438152506013600083815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550602082015181600101556040820151816002015590505060146000815480929190610c87906144c3565b9190505550807f32f62f6e38f01677299722b6f618d17026edcb8decf51f73dd4c6d8ffcebd74f33601254604051610cc092919061405a565b60405180910390a28091505090565b6000600880549050905090565b7f000000000000000000000000ae975071be8f8ee67addbc1a82488f1c2485806773ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610d8e57337f000000000000000000000000ae975071be8f8ee67addbc1a82488f1c248580676040517f1cf993f4000000000000000000000000000000000000000000000000000000008152600401610d8592919061450b565b60405180910390fd5b610d988282611ff6565b5050565b610dad610da7611d9b565b82612270565b610dec576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610de3906145a6565b60405180910390fd5b610df7838383612305565b505050565b6000610e07836114ea565b8210610e48576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e3f90614638565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b600f60009054906101000a900460ff1681565b610ecf838383604051806020016040528060008152506119db565b505050565b610edc611cd2565b6000601360008481526020019081526020016000209050600073ffffffffffffffffffffffffffffffffffffffff168160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1603610f86576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f7d906146a4565b60405180910390fd5b60148160020154610f9791906146c4565b4311610fd8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fcf90614766565b60405180910390fd5b818015610fe9575060008160010154115b1561119a578060010154600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161104e919061377e565b602060405180830381865afa15801561106b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061108f9190614467565b10156110d0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110c7906147d2565b60405180910390fd5b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb8260000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1683600101546040518363ffffffff1660e01b815260040161115592919061405a565b6020604051808303816000875af1158015611174573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111989190614098565b505b827f9bfcb7a12aa2e2312b55e871c0f37a082fafd1f6ff70c01a4f4e4d59fdff76ab8260000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040516111ee919061377e565b60405180910390a260136000848152602001908152602001600020600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905560018201600090556002820160009055505060146000815480929190611256906147f2565b9190505550505050565b60145481565b6000611270610ccf565b82106112b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112a89061488d565b60405180910390fd5b600882815481106112c5576112c46148ad565b5b90600052602060002001549050919050565b6112df611cd2565b83601160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555082600c8190555081600d60006101000a81548163ffffffff021916908363ffffffff16021790555080600d60046101000a81548161ffff021916908361ffff16021790555050505050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036113fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113f290614928565b60405180910390fd5b80915050919050565b61140c611cd2565b8051825114611450576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161144790614994565b60405180910390fd5b60005b81518110156114ad5761149a838281518110611472576114716148ad565b5b602002602001015183838151811061148d5761148c6148ad565b5b602002602001015161256b565b80806114a5906144c3565b915050611453565b505050565b6114ba611cd2565b80600f60016101000a81548160ff02191690831515021790555050565b600f60019054906101000a900460ff1681565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361155a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161155190614a26565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6115a9611cd2565b6115b36000612589565b565b6115bd611cd2565b600f60009054906101000a900460ff161561160d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161160490614a92565b60405180910390fd5b6001600f60006101000a81548160ff021916908315150217905550565b60136020528060005260406000206000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154908060020154905083565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6116a6611cd2565b8060128190555050565b6060600180546116bf906140f4565b80601f01602080910402602001604051908101604052809291908181526020018280546116eb906140f4565b80156117385780601f1061170d57610100808354040283529160200191611738565b820191906000526020600020905b81548152906001019060200180831161171b57829003601f168201915b5050505050905090565b600e805461174f906140f4565b80601f016020809104026020016040519081016040528092919081815260200182805461177b906140f4565b80156117c85780601f1061179d576101008083540402835291602001916117c8565b820191906000526020600020905b8154815290600101906020018083116117ab57829003601f168201915b505050505081565b60125481565b6117e86117e1611d9b565b838361264f565b5050565b6117f4611cd2565b60005b815181101561196d57611823828281518110611816576118156148ad565b5b60200260200101516127bb565b15611863576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161185a90614afe565b60405180910390fd5b6118d760108054806020026020016040519081016040528092919081815260200182805480156118b257602002820191906000526020600020905b81548152602001906001019080831161189e575b50505050508383815181106118ca576118c96148ad565b5b6020026020010151612827565b15611917576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161190e90614b90565b60405180910390fd5b601082828151811061192c5761192b6148ad565b5b602002602001015190806001815401808255809150506001900390600052602060002001600090919091909150558080611965906144c3565b9150506117f7565b5050565b611979611cd2565b600067ffffffffffffffff81111561199457611993613806565b5b6040519080825280602002602001820160405280156119c25781602001602082028036833780820191505090505b50601090805190602001906119d892919061347a565b50565b6119ec6119e6611d9b565b83612270565b611a2b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a22906145a6565b60405180910390fd5b611a3784848484612882565b50505050565b611a45611cd2565b600f60009054906101000a900460ff1615611a95576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a8c90614c22565b60405180910390fd5b80600e9081611aa49190614de4565b5050565b60108181548110611ab857600080fd5b906000526020600020016000915090505481565b6060611ad782611d50565b6000611ae16128de565b90506000815111611b015760405180602001604052806000815250611b2c565b80611b0b84612970565b604051602001611b1c929190614ef2565b6040516020818303038152906040525b915050919050565b6000601080549050905090565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611bdd611cd2565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611c4c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c4390614f88565b60405180910390fd5b611c5581612589565b50565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611ccb5750611cca82612ad0565b5b9050919050565b611cda611d9b565b73ffffffffffffffffffffffffffffffffffffffff16611cf8611674565b73ffffffffffffffffffffffffffffffffffffffff1614611d4e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d4590614ff4565b60405180910390fd5b565b611d59816127bb565b611d98576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d8f90614928565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611e1683611353565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611e66612bb2565b90506000811115611ff35780600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b8152600401611ecd919061377e565b602060405180830381865afa158015611eea573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f0e9190614467565b1015611f4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f46906147d2565b60405180910390fd5b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330846040518463ffffffff1660e01b8152600401611fae93929190615014565b6020604051808303816000875af1158015611fcd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ff19190614098565b505b50565b6000601360008481526020019081526020016000209050600073ffffffffffffffffffffffffffffffffffffffff168160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415801561207357506000601080549050115b1561223d57600060108054905083600081518110612094576120936148ad565b5b60200260200101516120a6919061507a565b90506000601082815481106120be576120bd6148ad565b5b906000526020600020015490506120f98360000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168261256b565b6010600160108054905061210d91906150ab565b8154811061211e5761211d6148ad565b5b90600052602060002001546010838154811061213d5761213c6148ad565b5b9060005260206000200181905550601080548061215d5761215c6150df565b5b60019003818190600052602060002001600090559055847f583aef20a466b7d5ad245f91b0faea93bfd2918a3c98e11190c5a3e88c1ce9f68460000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16836040516121c992919061405a565b60405180910390a260136000868152602001908152602001600020600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905560018201600090556002820160009055505060146000815480929190612231906147f2565b9190505550505061226b565b827fe7c4620bbc88d6cac93691dc01508b3a39a28f3cb91595c8cd0187dc102fa3aa60405160405180910390a25b505050565b60008061227c83611353565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806122be57506122bd8185611b41565b5b806122fc57508373ffffffffffffffffffffffffffffffffffffffff166122e484610888565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661232582611353565b73ffffffffffffffffffffffffffffffffffffffff161461237b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161237290615180565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036123ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123e190615212565b60405180910390fd5b6123f5838383612c00565b612400600082611da3565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461245091906150ab565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546124a791906146c4565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612566838383612c10565b505050565b612585828260405180602001604052806000815250612c15565b5050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036126bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126b49061527e565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516127ae9190613598565b60405180910390a3505050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600080600090505b8351811015612876578284828151811061284c5761284b6148ad565b5b60200260200101510361286357600191505061287c565b808061286e906144c3565b91505061282f565b50600090505b92915050565b61288d848484612305565b61289984848484612c70565b6128d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128cf90615310565b60405180910390fd5b50505050565b6060600e80546128ed906140f4565b80601f0160208091040260200160405190810160405280929190818152602001828054612919906140f4565b80156129665780601f1061293b57610100808354040283529160200191612966565b820191906000526020600020905b81548152906001019060200180831161294957829003601f168201915b5050505050905090565b6060600082036129b7576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612acb565b600082905060005b600082146129e95780806129d2906144c3565b915050600a826129e29190615330565b91506129bf565b60008167ffffffffffffffff811115612a0557612a04613806565b5b6040519080825280601f01601f191660200182016040528015612a375781602001600182028036833780820191505090505b5090505b60008514612ac457600182612a5091906150ab565b9150600a85612a5f919061507a565b6030612a6b91906146c4565b60f81b818381518110612a8157612a806148ad565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612abd9190615330565b9450612a3b565b8093505050505b919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612b9b57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612bab5750612baa82612df7565b5b9050919050565b6000612bbc611674565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1603612bf75760009050612bfd565b60125490505b90565b612c0b838383612e61565b505050565b505050565b612c1f8383612f73565b612c2c6000848484612c70565b612c6b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c6290615310565b60405180910390fd5b505050565b6000612c918473ffffffffffffffffffffffffffffffffffffffff1661314c565b15612dea578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612cba611d9b565b8786866040518563ffffffff1660e01b8152600401612cdc94939291906153b6565b6020604051808303816000875af1925050508015612d1857506040513d601f19601f82011682018060405250810190612d159190615417565b60015b612d9a573d8060008114612d48576040519150601f19603f3d011682016040523d82523d6000602084013e612d4d565b606091505b506000815103612d92576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d8990615310565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612def565b600190505b949350505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b612e6c83838361316f565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612eae57612ea981613174565b612eed565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612eec57612eeb83826131bd565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612f2f57612f2a8161332a565b612f6e565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614612f6d57612f6c82826133fb565b5b5b505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612fe2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fd990615490565b60405180910390fd5b612feb816127bb565b1561302b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613022906154fc565b60405180910390fd5b61303760008383612c00565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461308791906146c4565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461314860008383612c10565b5050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b600060016131ca846114ea565b6131d491906150ab565b90506000600760008481526020019081526020016000205490508181146132b9576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b6000600160088054905061333e91906150ab565b905060006009600084815260200190815260200160002054905060006008838154811061336e5761336d6148ad565b5b9060005260206000200154905080600883815481106133905761338f6148ad565b5b9060005260206000200181905550816009600083815260200190815260200160002081905550600960008581526020019081526020016000206000905560088054806133df576133de6150df565b5b6001900381819060005260206000200160009055905550505050565b6000613406836114ea565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b8280548282559060005260206000209081019282156134b6579160200282015b828111156134b557825182559160200191906001019061349a565b5b5090506134c391906134c7565b5090565b5b808211156134e05760008160009055506001016134c8565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61352d816134f8565b811461353857600080fd5b50565b60008135905061354a81613524565b92915050565b600060208284031215613566576135656134ee565b5b60006135748482850161353b565b91505092915050565b60008115159050919050565b6135928161357d565b82525050565b60006020820190506135ad6000830184613589565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006135de826135b3565b9050919050565b6135ee816135d3565b81146135f957600080fd5b50565b60008135905061360b816135e5565b92915050565b6000819050919050565b61362481613611565b811461362f57600080fd5b50565b6000813590506136418161361b565b92915050565b6000806040838503121561365e5761365d6134ee565b5b600061366c858286016135fc565b925050602061367d85828601613632565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b60005b838110156136c15780820151818401526020810190506136a6565b838111156136d0576000848401525b50505050565b6000601f19601f8301169050919050565b60006136f282613687565b6136fc8185613692565b935061370c8185602086016136a3565b613715816136d6565b840191505092915050565b6000602082019050818103600083015261373a81846136e7565b905092915050565b600060208284031215613758576137576134ee565b5b600061376684828501613632565b91505092915050565b613778816135d3565b82525050565b6000602082019050613793600083018461376f565b92915050565b600067ffffffffffffffff82169050919050565b6137b681613799565b82525050565b60006020820190506137d160008301846137ad565b92915050565b6137e081613611565b82525050565b60006020820190506137fb60008301846137d7565b92915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61383e826136d6565b810181811067ffffffffffffffff8211171561385d5761385c613806565b5b80604052505050565b60006138706134e4565b905061387c8282613835565b919050565b600067ffffffffffffffff82111561389c5761389b613806565b5b602082029050602081019050919050565b600080fd5b60006138c56138c084613881565b613866565b905080838252602082019050602084028301858111156138e8576138e76138ad565b5b835b8181101561391157806138fd8882613632565b8452602084019350506020810190506138ea565b5050509392505050565b600082601f8301126139305761392f613801565b5b81356139408482602086016138b2565b91505092915050565b600080604083850312156139605761395f6134ee565b5b600061396e85828601613632565b925050602083013567ffffffffffffffff81111561398f5761398e6134f3565b5b61399b8582860161391b565b9150509250929050565b6000806000606084860312156139be576139bd6134ee565b5b60006139cc868287016135fc565b93505060206139dd868287016135fc565b92505060406139ee86828701613632565b9150509250925092565b613a018161357d565b8114613a0c57600080fd5b50565b600081359050613a1e816139f8565b92915050565b60008060408385031215613a3b57613a3a6134ee565b5b6000613a4985828601613632565b9250506020613a5a85828601613a0f565b9150509250929050565b613a6d81613799565b8114613a7857600080fd5b50565b600081359050613a8a81613a64565b92915050565b6000819050919050565b613aa381613a90565b8114613aae57600080fd5b50565b600081359050613ac081613a9a565b92915050565b600063ffffffff82169050919050565b613adf81613ac6565b8114613aea57600080fd5b50565b600081359050613afc81613ad6565b92915050565b600061ffff82169050919050565b613b1981613b02565b8114613b2457600080fd5b50565b600081359050613b3681613b10565b92915050565b60008060008060808587031215613b5657613b556134ee565b5b6000613b6487828801613a7b565b9450506020613b7587828801613ab1565b9350506040613b8687828801613aed565b9250506060613b9787828801613b27565b91505092959194509250565b600067ffffffffffffffff821115613bbe57613bbd613806565b5b602082029050602081019050919050565b6000613be2613bdd84613ba3565b613866565b90508083825260208201905060208402830185811115613c0557613c046138ad565b5b835b81811015613c2e5780613c1a88826135fc565b845260208401935050602081019050613c07565b5050509392505050565b600082601f830112613c4d57613c4c613801565b5b8135613c5d848260208601613bcf565b91505092915050565b60008060408385031215613c7d57613c7c6134ee565b5b600083013567ffffffffffffffff811115613c9b57613c9a6134f3565b5b613ca785828601613c38565b925050602083013567ffffffffffffffff811115613cc857613cc76134f3565b5b613cd48582860161391b565b9150509250929050565b600060208284031215613cf457613cf36134ee565b5b6000613d0284828501613a0f565b91505092915050565b600060208284031215613d2157613d206134ee565b5b6000613d2f848285016135fc565b91505092915050565b6000606082019050613d4d600083018661376f565b613d5a60208301856137d7565b613d6760408301846137d7565b949350505050565b60008060408385031215613d8657613d856134ee565b5b6000613d94858286016135fc565b9250506020613da585828601613a0f565b9150509250929050565b600060208284031215613dc557613dc46134ee565b5b600082013567ffffffffffffffff811115613de357613de26134f3565b5b613def8482850161391b565b91505092915050565b600080fd5b600067ffffffffffffffff821115613e1857613e17613806565b5b613e21826136d6565b9050602081019050919050565b82818337600083830152505050565b6000613e50613e4b84613dfd565b613866565b905082815260208101848484011115613e6c57613e6b613df8565b5b613e77848285613e2e565b509392505050565b600082601f830112613e9457613e93613801565b5b8135613ea4848260208601613e3d565b91505092915050565b60008060008060808587031215613ec757613ec66134ee565b5b6000613ed5878288016135fc565b9450506020613ee6878288016135fc565b9350506040613ef787828801613632565b925050606085013567ffffffffffffffff811115613f1857613f176134f3565b5b613f2487828801613e7f565b91505092959194509250565b600067ffffffffffffffff821115613f4b57613f4a613806565b5b613f54826136d6565b9050602081019050919050565b6000613f74613f6f84613f30565b613866565b905082815260208101848484011115613f9057613f8f613df8565b5b613f9b848285613e2e565b509392505050565b600082601f830112613fb857613fb7613801565b5b8135613fc8848260208601613f61565b91505092915050565b600060208284031215613fe757613fe66134ee565b5b600082013567ffffffffffffffff811115614005576140046134f3565b5b61401184828501613fa3565b91505092915050565b60008060408385031215614031576140306134ee565b5b600061403f858286016135fc565b9250506020614050858286016135fc565b9150509250929050565b600060408201905061406f600083018561376f565b61407c60208301846137d7565b9392505050565b600081519050614092816139f8565b92915050565b6000602082840312156140ae576140ad6134ee565b5b60006140bc84828501614083565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061410c57607f821691505b60208210810361411f5761411e6140c5565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b6000614181602183613692565b915061418c82614125565b604082019050919050565b600060208201905081810360008301526141b081614174565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015250565b6000614213603e83613692565b915061421e826141b7565b604082019050919050565b6000602082019050818103600083015261424281614206565b9050919050565b7f4d696e74206e6f7420656e61626c656400000000000000000000000000000000600082015250565b600061427f601083613692565b915061428a82614249565b602082019050919050565b600060208201905081810360008301526142ae81614272565b9050919050565b7f536f6c64206f7574000000000000000000000000000000000000000000000000600082015250565b60006142eb600883613692565b91506142f6826142b5565b602082019050919050565b6000602082019050818103600083015261431a816142de565b9050919050565b7f5365656d7320736f6c64206f7574000000000000000000000000000000000000600082015250565b6000614357600e83613692565b915061436282614321565b602082019050919050565b600060208201905081810360008301526143868161434a565b9050919050565b61439681613a90565b82525050565b6143a581613b02565b82525050565b6143b481613ac6565b82525050565b6000819050919050565b6000819050919050565b60006143e96143e46143df846143ba565b6143c4565b613ac6565b9050919050565b6143f9816143ce565b82525050565b600060a082019050614414600083018861438d565b61442160208301876137ad565b61442e604083018661439c565b61443b60608301856143ab565b61444860808301846143f0565b9695505050505050565b6000815190506144618161361b565b92915050565b60006020828403121561447d5761447c6134ee565b5b600061448b84828501614452565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006144ce82613611565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614500576144ff614494565b5b600182019050919050565b6000604082019050614520600083018561376f565b61452d602083018461376f565b9392505050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b6000614590602e83613692565b915061459b82614534565b604082019050919050565b600060208201905081810360008301526145bf81614583565b9050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b6000614622602b83613692565b915061462d826145c6565b604082019050919050565b6000602082019050818103600083015261465181614615565b9050919050565b7f5265717565737420697320696e76616c69640000000000000000000000000000600082015250565b600061468e601283613692565b915061469982614658565b602082019050919050565b600060208201905081810360008301526146bd81614681565b9050919050565b60006146cf82613611565b91506146da83613611565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561470f5761470e614494565b5b828201905092915050565b7f57616974206265666f72652072657175657374696e6720726566756e64000000600082015250565b6000614750601d83613692565b915061475b8261471a565b602082019050919050565b6000602082019050818103600083015261477f81614743565b9050919050565b7f4e6f7420656e6f7567682062616c616e63650000000000000000000000000000600082015250565b60006147bc601283613692565b91506147c782614786565b602082019050919050565b600060208201905081810360008301526147eb816147af565b9050919050565b60006147fd82613611565b9150600082036148105761480f614494565b5b600182039050919050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b6000614877602c83613692565b91506148828261481b565b604082019050919050565b600060208201905081810360008301526148a68161486a565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b6000614912601883613692565b915061491d826148dc565b602082019050919050565b6000602082019050818103600083015261494181614905565b9050919050565b7f417272617973206c656e677468206d757374206d617463680000000000000000600082015250565b600061497e601883613692565b915061498982614948565b602082019050919050565b600060208201905081810360008301526149ad81614971565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b6000614a10602983613692565b9150614a1b826149b4565b604082019050919050565b60006020820190508181036000830152614a3f81614a03565b9050919050565b7f416c7265616479206c6f636b6564000000000000000000000000000000000000600082015250565b6000614a7c600e83613692565b9150614a8782614a46565b602082019050919050565b60006020820190508181036000830152614aab81614a6f565b9050919050565b7f546f6b656e20696420616c7265616479206d696e746564000000000000000000600082015250565b6000614ae8601783613692565b9150614af382614ab2565b602082019050919050565b60006020820190508181036000830152614b1781614adb565b9050919050565b7f546f6b656e20696420616c726561647920616464656420617320617661696c6160008201527f626c650000000000000000000000000000000000000000000000000000000000602082015250565b6000614b7a602383613692565b9150614b8582614b1e565b604082019050919050565b60006020820190508181036000830152614ba981614b6d565b9050919050565b7f436f6e7472616374206973206c6f636b65642c205552492063616e6e6f74206260008201527f65206368616e6765640000000000000000000000000000000000000000000000602082015250565b6000614c0c602983613692565b9150614c1782614bb0565b604082019050919050565b60006020820190508181036000830152614c3b81614bff565b9050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302614ca47fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82614c67565b614cae8683614c67565b95508019841693508086168417925050509392505050565b6000614ce1614cdc614cd784613611565b6143c4565b613611565b9050919050565b6000819050919050565b614cfb83614cc6565b614d0f614d0782614ce8565b848454614c74565b825550505050565b600090565b614d24614d17565b614d2f818484614cf2565b505050565b5b81811015614d5357614d48600082614d1c565b600181019050614d35565b5050565b601f821115614d9857614d6981614c42565b614d7284614c57565b81016020851015614d81578190505b614d95614d8d85614c57565b830182614d34565b50505b505050565b600082821c905092915050565b6000614dbb60001984600802614d9d565b1980831691505092915050565b6000614dd48383614daa565b9150826002028217905092915050565b614ded82613687565b67ffffffffffffffff811115614e0657614e05613806565b5b614e1082546140f4565b614e1b828285614d57565b600060209050601f831160018114614e4e5760008415614e3c578287015190505b614e468582614dc8565b865550614eae565b601f198416614e5c86614c42565b60005b82811015614e8457848901518255600182019150602085019450602081019050614e5f565b86831015614ea15784890151614e9d601f891682614daa565b8355505b6001600288020188555050505b505050505050565b600081905092915050565b6000614ecc82613687565b614ed68185614eb6565b9350614ee68185602086016136a3565b80840191505092915050565b6000614efe8285614ec1565b9150614f0a8284614ec1565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614f72602683613692565b9150614f7d82614f16565b604082019050919050565b60006020820190508181036000830152614fa181614f65565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614fde602083613692565b9150614fe982614fa8565b602082019050919050565b6000602082019050818103600083015261500d81614fd1565b9050919050565b6000606082019050615029600083018661376f565b615036602083018561376f565b61504360408301846137d7565b949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061508582613611565b915061509083613611565b9250826150a05761509f61504b565b5b828206905092915050565b60006150b682613611565b91506150c183613611565b9250828210156150d4576150d3614494565b5b828203905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b600061516a602583613692565b91506151758261510e565b604082019050919050565b600060208201905081810360008301526151998161515d565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b60006151fc602483613692565b9150615207826151a0565b604082019050919050565b6000602082019050818103600083015261522b816151ef565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000615268601983613692565b915061527382615232565b602082019050919050565b600060208201905081810360008301526152978161525b565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b60006152fa603283613692565b91506153058261529e565b604082019050919050565b60006020820190508181036000830152615329816152ed565b9050919050565b600061533b82613611565b915061534683613611565b9250826153565761535561504b565b5b828204905092915050565b600081519050919050565b600082825260208201905092915050565b600061538882615361565b615392818561536c565b93506153a28185602086016136a3565b6153ab816136d6565b840191505092915050565b60006080820190506153cb600083018761376f565b6153d8602083018661376f565b6153e560408301856137d7565b81810360608301526153f7818461537d565b905095945050505050565b60008151905061541181613524565b92915050565b60006020828403121561542d5761542c6134ee565b5b600061543b84828501615402565b91505092915050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b600061547a602083613692565b915061548582615444565b602082019050919050565b600060208201905081810360008301526154a98161546d565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b60006154e6601c83613692565b91506154f1826154b0565b602082019050919050565b60006020820190508181036000830152615515816154d9565b905091905056fea2646970667358221220c266071141d6614d3e66e38cf84d71a704f03f915750cb882436730cdd46019564736f6c634300080f0033

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

0000000000000000000000000000000000000000000000000000000000000080000000000000000000000000ae975071be8f8ee67addbc1a82488f1c24858067cc294a196eeeb44da2888d17c0625cc88d70d9760a69d58d853ba6581a9ab0cd00000000000000000000000000000000000000000000000000000000000000d0000000000000000000000000000000000000000000000000000000000000005968747470733a2f2f626166796265696676616d73796f776a636c6369346474733461797074746961796d753767793566667562707435346863676464747068626576692e697066732e6e667473746f726167652e6c696e6b2f00000000000000

-----Decoded View---------------
Arg [0] : _baseUri (string): https://bafybeifvamsyowjclci4dts4aypttiaymu7gy5ffubpt54hcgddtphbevi.ipfs.nftstorage.link/
Arg [1] : _vrfCoordinator (address): 0xAE975071Be8F8eE67addBC1A82488F1C24858067
Arg [2] : _keyHash (bytes32): 0xcc294a196eeeb44da2888d17c0625cc88d70d9760a69d58d853ba6581a9ab0cd
Arg [3] : _subscriptionId (uint64): 208

-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 000000000000000000000000ae975071be8f8ee67addbc1a82488f1c24858067
Arg [2] : cc294a196eeeb44da2888d17c0625cc88d70d9760a69d58d853ba6581a9ab0cd
Arg [3] : 00000000000000000000000000000000000000000000000000000000000000d0
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000059
Arg [5] : 68747470733a2f2f626166796265696676616d73796f776a636c636934647473
Arg [6] : 3461797074746961796d75376779356666756270743534686367646474706862
Arg [7] : 6576692e697066732e6e667473746f726167652e6c696e6b2f00000000000000


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.