ETH Price: $2,490.10 (-0.90%)
Gas: 5.42 Gwei

Contract

0xFb829A1b091045B9980548F8f18B6356bdD17C65
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw172458082023-05-12 18:38:47540 days ago1683916727IN
0xFb829A1b...6bdD17C65
0 ETH0.004657297.72543737
Mint166945792023-02-24 0:13:23617 days ago1677197603IN
0xFb829A1b...6bdD17C65
0.05 ETH0.0018395827.97851887
Set Approval For...164518042023-01-21 1:09:59651 days ago1674263399IN
0xFb829A1b...6bdD17C65
0 ETH0.0004487918.46363288
Set Approval For...158910492022-11-03 17:42:23730 days ago1667497343IN
0xFb829A1b...6bdD17C65
0 ETH0.001340629.00559941
Mint151277062022-07-12 12:03:54844 days ago1657627434IN
0xFb829A1b...6bdD17C65
0.1 ETH0.000663439.79765574
Transfer From150477462022-06-30 0:39:15856 days ago1656549555IN
0xFb829A1b...6bdD17C65
0 ETH0.0046019167.00320155
Set Approval For...150477452022-06-30 0:39:07856 days ago1656549547IN
0xFb829A1b...6bdD17C65
0 ETH0.0026500157.33600129
Mint149856312022-06-18 15:06:34868 days ago1655564794IN
0xFb829A1b...6bdD17C65
0.05 ETH0.0016893725.69394797
Mint149855352022-06-18 14:42:35868 days ago1655563355IN
0xFb829A1b...6bdD17C65
0.05 ETH0.0018294927.82507266
Mint149772212022-06-17 4:29:56869 days ago1655440196IN
0xFb829A1b...6bdD17C65
0.05 ETH0.001955129.73537833
Withdraw147905022022-05-17 4:47:53900 days ago1652762873IN
0xFb829A1b...6bdD17C65
0 ETH0.001031721.64895302
Mint147866262022-05-16 13:52:56901 days ago1652709176IN
0xFb829A1b...6bdD17C65
0.05 ETH0.0031470447.86376438
Mint147741332022-05-14 14:35:11903 days ago1652538911IN
0xFb829A1b...6bdD17C65
0.05 ETH0.0024472137.21992732
Transfer From147384872022-05-08 21:28:33908 days ago1652045313IN
0xFb829A1b...6bdD17C65
0 ETH0.0007757417.4469302
Transfer From147384812022-05-08 21:27:15908 days ago1652045235IN
0xFb829A1b...6bdD17C65
0 ETH0.0009300518.87937731
Mint147313272022-05-07 18:15:14910 days ago1651947314IN
0xFb829A1b...6bdD17C65
0.05 ETH0.0025948939.46610729
Safe Transfer Fr...147250862022-05-06 18:20:01911 days ago1651861201IN
0xFb829A1b...6bdD17C65
0 ETH0.0063583358.32854683
Mint147245592022-05-06 16:22:05911 days ago1651854125IN
0xFb829A1b...6bdD17C65
0.05 ETH0.004228951.04290651
Mint147145172022-05-05 2:04:23912 days ago1651716263IN
0xFb829A1b...6bdD17C65
0.05 ETH0.0039153247.2579711
Set Uri Prefix147078462022-05-04 0:32:45913 days ago1651624365IN
0xFb829A1b...6bdD17C65
0 ETH0.0016036342.20201374
Set Uri Prefix147077482022-05-04 0:09:30913 days ago1651622970IN
0xFb829A1b...6bdD17C65
0 ETH0.0022263758.5902667
Set Uri Prefix147076442022-05-03 23:47:13913 days ago1651621633IN
0xFb829A1b...6bdD17C65
0 ETH0.0016282342.84949624
Set Approval For...146853282022-04-30 11:25:35917 days ago1651317935IN
0xFb829A1b...6bdD17C65
0 ETH0.0012150426.28888854
Set Approval For...146791012022-04-29 12:07:50918 days ago1651234070IN
0xFb829A1b...6bdD17C65
0 ETH0.0014346231.0397003
Withdraw146769852022-04-29 4:04:44918 days ago1651205084IN
0xFb829A1b...6bdD17C65
0 ETH0.0022770247.7804032
View all transactions

Latest 4 internal transactions

Advanced mode:
Parent Transaction Hash Block From To
172458082023-05-12 18:38:47540 days ago1683916727
0xFb829A1b...6bdD17C65
0.3 ETH
147905022022-05-17 4:47:53900 days ago1652762873
0xFb829A1b...6bdD17C65
0.25 ETH
146769852022-04-29 4:04:44918 days ago1651205084
0xFb829A1b...6bdD17C65
0.05 ETH
144050022022-03-17 16:04:09961 days ago1647533049
0xFb829A1b...6bdD17C65
1.7 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
SeytaniCroon

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2022-03-08
*/

// Sources flattened with hardhat v2.9.1 https://hardhat.org

// File @openzeppelin/contracts/utils/introspection/[email protected]

// 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 @openzeppelin/contracts/token/ERC721/[email protected]


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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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


// File @openzeppelin/contracts/token/ERC721/[email protected]


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

pragma solidity ^0.8.0;

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


// File @openzeppelin/contracts/token/ERC721/extensions/[email protected]


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

pragma solidity ^0.8.0;

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

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

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


// File @openzeppelin/contracts/token/ERC721/extensions/[email protected]


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

pragma solidity ^0.8.0;

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


// File @openzeppelin/contracts/utils/[email protected]


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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


// File @openzeppelin/contracts/utils/[email protected]


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

pragma solidity ^0.8.0;

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

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


// File @openzeppelin/contracts/utils/[email protected]


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

pragma solidity ^0.8.0;

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

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

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

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

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


// File @openzeppelin/contracts/utils/introspection/[email protected]


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

pragma solidity ^0.8.0;

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


// File erc721a/contracts/[email protected]


// Creator: Chiru Labs

pragma solidity ^0.8.4;








error ApprovalCallerNotOwnerNorApproved();
error ApprovalQueryForNonexistentToken();
error ApproveToCaller();
error ApprovalToCurrentOwner();
error BalanceQueryForZeroAddress();
error MintedQueryForZeroAddress();
error BurnedQueryForZeroAddress();
error AuxQueryForZeroAddress();
error MintToZeroAddress();
error MintZeroQuantity();
error OwnerIndexOutOfBounds();
error OwnerQueryForNonexistentToken();
error TokenIndexOutOfBounds();
error TransferCallerNotOwnerNorApproved();
error TransferFromIncorrectOwner();
error TransferToNonERC721ReceiverImplementer();
error TransferToZeroAddress();
error URIQueryForNonexistentToken();

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

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

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

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId, owner);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr ||
            isApprovedForAll(prevOwnership.addr, _msgSender()) ||
            getApproved(tokenId) == _msgSender());

        if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        if (prevOwnership.addr != from) revert TransferFromIncorrectOwner();
        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

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

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

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

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

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

    /**
     * @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 {
        TokenOwnership memory prevOwnership = ownershipOf(tokenId);

        _beforeTokenTransfers(prevOwnership.addr, address(0), tokenId, 1);

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

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

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

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

        emit Transfer(prevOwnership.addr, address(0), tokenId);
        _afterTokenTransfers(prevOwnership.addr, address(0), tokenId, 1);

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

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

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

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

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


// File @openzeppelin/contracts/utils/math/[email protected]


// OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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


// File @openzeppelin/contracts/utils/cryptography/[email protected]


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

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            bytes32 proofElement = proof[i];
            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = _efficientHash(computedHash, proofElement);
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = _efficientHash(proofElement, computedHash);
            }
        }
        return computedHash;
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}


// File @openzeppelin/contracts/access/[email protected]


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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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


// File @chainlink/contracts/src/v0.8/interfaces/[email protected]


pragma solidity ^0.8.0;

interface LinkTokenInterface {

  function allowance(
    address owner,
    address spender
  )
    external
    view
    returns (
      uint256 remaining
    );

  function approve(
    address spender,
    uint256 value
  )
    external
    returns (
      bool success
    );

  function balanceOf(
    address owner
  )
    external
    view
    returns (
      uint256 balance
    );

  function decimals()
    external
    view
    returns (
      uint8 decimalPlaces
    );

  function decreaseApproval(
    address spender,
    uint256 addedValue
  )
    external
    returns (
      bool success
    );

  function increaseApproval(
    address spender,
    uint256 subtractedValue
  ) external;

  function name()
    external
    view
    returns (
      string memory tokenName
    );

  function symbol()
    external
    view
    returns (
      string memory tokenSymbol
    );

  function totalSupply()
    external
    view
    returns (
      uint256 totalTokensIssued
    );

  function transfer(
    address to,
    uint256 value
  )
    external
    returns (
      bool success
    );

  function transferAndCall(
    address to,
    uint256 value,
    bytes calldata data
  )
    external
    returns (
      bool success
    );

  function transferFrom(
    address from,
    address to,
    uint256 value
  )
    external
    returns (
      bool success
    );

}


// File @chainlink/contracts/src/v0.8/dev/[email protected]


pragma solidity ^0.8.0;

contract VRFRequestIDBase {

  /**
   * @notice returns the seed which is actually input to the VRF coordinator
   *
   * @dev To prevent repetition of VRF output due to repetition of the
   * @dev user-supplied seed, that seed is combined in a hash with the
   * @dev user-specific nonce, and the address of the consuming contract. The
   * @dev risk of repetition is mostly mitigated by inclusion of a blockhash in
   * @dev the final seed, but the nonce does protect against repetition in
   * @dev requests which are included in a single block.
   *
   * @param _userSeed VRF seed input provided by user
   * @param _requester Address of the requesting contract
   * @param _nonce User-specific nonce at the time of the request
   */
  function makeVRFInputSeed(
    bytes32 _keyHash,
    uint256 _userSeed,
    address _requester,
    uint256 _nonce
  )
    internal
    pure
    returns (
      uint256
    )
  {
    return uint256(keccak256(abi.encode(_keyHash, _userSeed, _requester, _nonce)));
  }

  /**
   * @notice Returns the id for this request
   * @param _keyHash The serviceAgreement ID to be used for this request
   * @param _vRFInputSeed The seed to be passed directly to the VRF
   * @return The id for this request
   *
   * @dev Note that _vRFInputSeed is not the seed passed by the consuming
   * @dev contract, but the one generated by makeVRFInputSeed
   */
  function makeRequestId(
    bytes32 _keyHash,
    uint256 _vRFInputSeed
  )
    internal
    pure
    returns (
      bytes32
    )
  {
    return keccak256(abi.encodePacked(_keyHash, _vRFInputSeed));
  }
}


// File @chainlink/contracts/src/v0.8/dev/[email protected]


pragma solidity ^0.8.0;

/** ****************************************************************************
 * @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.
 * *****************************************************************************
 * @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     constuctor(<other arguments>, address _vrfCoordinator, address _link)
 * @dev       VRFConsumerBase(_vrfCoordinator, _link) 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), and have told you the minimum LINK
 * @dev price for VRF service. Make sure your contract has sufficient LINK, and
 * @dev call requestRandomness(keyHash, fee, seed), where seed is the input you
 * @dev want to generate randomness from.
 *
 * @dev Once the VRFCoordinator has received and validated the oracle's response
 * @dev to your request, it will call your contract's fulfillRandomness method.
 *
 * @dev The randomness argument to fulfillRandomness is the actual random value
 * @dev generated from your seed.
 *
 * @dev The requestId argument is generated from the keyHash and the seed by
 * @dev makeRequestId(keyHash, seed). If your contract could have concurrent
 * @dev requests open, you can use the requestId to track which seed is
 * @dev associated with which randomness. See VRFRequestIDBase.sol for more
 * @dev details. (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. (Which is critical to making unpredictable randomness! See the
 * @dev next section.)
 *
 * *****************************************************************************
 * @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 ultimate input to the VRF is mixed with the block hash of the
 * @dev block in which the request is made, user-provided seeds have no impact
 * @dev on its economic security properties. They are only included for API
 * @dev compatability with previous versions of this contract.
 *
 * @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.
 */
abstract contract VRFConsumerBase is VRFRequestIDBase {

  /**
   * @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 VRFConsumerBase 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 randomness the VRF output
   */
  function fulfillRandomness(
    bytes32 requestId,
    uint256 randomness
  )
    internal
    virtual;

  /**
   * @dev In order to keep backwards compatibility we have kept the user
   * seed field around. We remove the use of it because given that the blockhash
   * enters later, it overrides whatever randomness the used seed provides.
   * Given that it adds no security, and can easily lead to misunderstandings,
   * we have removed it from usage and can now provide a simpler API.
   */
  uint256 constant private USER_SEED_PLACEHOLDER = 0;

  /**
   * @notice requestRandomness initiates a request for VRF output given _seed
   *
   * @dev The fulfillRandomness method receives the output, once it's provided
   * @dev by the Oracle, and verified by the vrfCoordinator.
   *
   * @dev The _keyHash must already be registered with the VRFCoordinator, and
   * @dev the _fee must exceed the fee specified during registration of the
   * @dev _keyHash.
   *
   * @dev The _seed parameter is vestigial, and is kept only for API
   * @dev compatibility with older versions. It can't *hurt* to mix in some of
   * @dev your own randomness, here, but it's not necessary because the VRF
   * @dev oracle will mix the hash of the block containing your request into the
   * @dev VRF seed it ultimately uses.
   *
   * @param _keyHash ID of public key against which randomness is generated
   * @param _fee The amount of LINK to send with the request
   *
   * @return requestId unique ID for this request
   *
   * @dev The returned requestId can be used to distinguish responses to
   * @dev concurrent requests. It is passed as the first argument to
   * @dev fulfillRandomness.
   */
  function requestRandomness(
    bytes32 _keyHash,
    uint256 _fee
  )
    internal
    returns (
      bytes32 requestId
    )
  {
    LINK.transferAndCall(vrfCoordinator, _fee, abi.encode(_keyHash, USER_SEED_PLACEHOLDER));
    // This is the seed passed to VRFCoordinator. The oracle will mix this with
    // the hash of the block containing this request to obtain the seed/input
    // which is finally passed to the VRF cryptographic machinery.
    uint256 vRFSeed  = makeVRFInputSeed(_keyHash, USER_SEED_PLACEHOLDER, address(this), nonces[_keyHash]);
    // nonces[_keyHash] must stay in sync with
    // VRFCoordinator.nonces[_keyHash][this], which was incremented by the above
    // successful LINK.transferAndCall (in VRFCoordinator.randomnessRequest).
    // This provides protection against the user repeating their input seed,
    // which would result in a predictable/duplicate output, if multiple such
    // requests appeared in the same block.
    nonces[_keyHash] = nonces[_keyHash] + 1;
    return makeRequestId(_keyHash, vRFSeed);
  }

  LinkTokenInterface immutable internal LINK;
  address immutable private vrfCoordinator;

  // Nonces for each VRF key from which randomness has been requested.
  //
  // Must stay in sync with VRFCoordinator[_keyHash][this]
  mapping(bytes32 /* keyHash */ => uint256 /* nonce */) private nonces;

  /**
   * @param _vrfCoordinator address of VRFCoordinator contract
   * @param _link address of LINK token contract
   *
   * @dev https://docs.chain.link/docs/link-token-contracts
   */
  constructor(
    address _vrfCoordinator,
    address _link
  ) {
    vrfCoordinator = _vrfCoordinator;
    LINK = LinkTokenInterface(_link);
  }

  // rawFulfillRandomness is called by VRFCoordinator when it receives a valid VRF
  // proof. rawFulfillRandomness then calls fulfillRandomness, after validating
  // the origin of the call
  function rawFulfillRandomness(
    bytes32 requestId,
    uint256 randomness
  )
    external
  {
    require(msg.sender == vrfCoordinator, "Only VRFCoordinator can fulfill");
    fulfillRandomness(requestId, randomness);
  }
}


// File @openzeppelin/contracts/token/ERC20/[email protected]


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

pragma solidity ^0.8.0;

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

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

    /**
     * @dev Moves `amount` tokens from the caller's account to `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);

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

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


// File @openzeppelin/contracts/token/ERC20/utils/[email protected]


// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;


/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}


// File contracts/SeytaniCroon.sol



pragma solidity ^0.8.4;







contract SeytaniCroon is VRFConsumerBase, ERC721A, Ownable {
  using SafeMath for uint256;
  using Strings for uint256;
  using SafeERC20 for IERC20;

  IERC20 stars;

  uint256 public ethPrice;
  uint256 public starsPrice;

  uint256 public constant MAX_NFT_PURCHASE_PRESALE = 10;
  uint256 public constant MAX_MINT_PER_TX = 10;
  uint256 public constant MAX_SUPPLY = 7777;

  bool public ethAllowed;
  bool public starsAllowed;

  bool public saleIsActive = false;
  bool public presaleIsActive = false;

  bool public revealed = false;
  bool public isMetadataLocked = false;

  uint256 public reserve = 20;
  uint256 public startingIndex;

  mapping(address => uint256) public allowListNumClaimed;
  bytes32 public allowListMerkleRoot;
  bytes32 public startingIndexRequestId;

  string public uriPrefix = "";
  string public uriSuffix = ".json";
  string public hiddenMetadataUri = "";
  string public provenance;

  string private _baseURIExtended;

  modifier mintCompliance(uint256 _numberOfTokens, bool isStarsPurchase) {
    require(
      0 < _numberOfTokens && _numberOfTokens <= MAX_MINT_PER_TX,
      "Invalid mint amount"
    );

    if (isStarsPurchase) {
      require(starsAllowed, "STARS purchases not allowed");

      stars.safeTransferFrom(
        msg.sender,
        address(this),
        starsPrice * _numberOfTokens
      );
    } else {
      require(ethAllowed, "ETH purchases not allowed");

      require(
        msg.value == ethPrice * _numberOfTokens,
        "Sent ether value is incorrect"
      );
    }

    _;
  }

  constructor(
    IERC20 _stars,
    address _vrfCoordinator,
    address _link,
    address _owner,
    bool _ethAllowed,
    bool _starsAllowed,
    uint256 _ethPrice,
    uint256 _starsPrice
  ) ERC721A("SeytaniCroon", "STRN") VRFConsumerBase(_vrfCoordinator, _link) {
    require(_ethAllowed || _starsAllowed, "STARS or ETH must be allowed");

    transferOwnership(_owner);
    stars = _stars;

    ethAllowed = _ethAllowed;
    starsAllowed = _starsAllowed;

    ethPrice = _ethPrice;
    starsPrice = _starsPrice;
  }

  function setEthPrice(uint256 _ethPrice) external onlyOwner {
    ethPrice = _ethPrice;
  }

  function setStarsPrice(uint256 _starsPrice) external onlyOwner {
    starsPrice = _starsPrice;
  }

  function toggleEthPrice() external onlyOwner {
    ethAllowed = !ethAllowed;
  }

  function toggleStarsPrice() external onlyOwner {
    starsAllowed = !starsAllowed;
  }

  function requestStartingIndex(bytes32 _keyHash, uint256 _fee)
    external
    onlyOwner
    returns (bytes32 requestId)
  {
    require(startingIndex == 0, "startingIndex has already been set");
    bytes32 _requestId = requestRandomness(_keyHash, _fee);
    startingIndexRequestId = _requestId;
    return _requestId;
  }

  function fulfillRandomness(bytes32 _requestId, uint256 _randomness)
    internal
    override
  {
    if (startingIndexRequestId == _requestId) {
      startingIndex = _randomness % MAX_SUPPLY;
    }
  }

  function claimRemaining(address _to, uint256 _numberOfTokens)
    external
    onlyOwner
  {
    require(
      totalSupply().add(_numberOfTokens) <= MAX_SUPPLY.sub(reserve),
      "Purchase would exceed max supply"
    );

    for (uint256 i = 0; i < (_numberOfTokens / MAX_MINT_PER_TX); i++) {
      _safeMint(_to, MAX_MINT_PER_TX);
    }

    if (_numberOfTokens % MAX_MINT_PER_TX > 0) {
      _safeMint(_to, _numberOfTokens % MAX_MINT_PER_TX);
    }
  }

  function claimReserve(address _to, uint256 _reserveAmount)
    external
    onlyOwner
  {
    require(
      _reserveAmount > 0 && _reserveAmount <= reserve,
      "Not enough reserve left for team"
    );

    reserve = reserve.sub(_reserveAmount);

    for (uint256 i = 0; i < (_reserveAmount / MAX_MINT_PER_TX); i++) {
      _safeMint(_to, MAX_MINT_PER_TX);
    }

    if (_reserveAmount % MAX_MINT_PER_TX > 0) {
      _safeMint(_to, _reserveAmount % MAX_MINT_PER_TX);
    }
  }

  function flipSaleState() external onlyOwner {
    saleIsActive = !saleIsActive;
  }

  function flipPresaleState() external onlyOwner {
    presaleIsActive = !presaleIsActive;
  }

  function isAllowListed(bytes32[] memory _proof, address _address)
    public
    view
    returns (bool)
  {
    require(_address != address(0), "Zero address not on Allow List");

    bytes32 leaf = keccak256(abi.encodePacked(_address));
    return MerkleProof.verify(_proof, allowListMerkleRoot, leaf);
  }

  function setAllowListMerkleRoot(bytes32 _allowListMerkleRoot)
    external
    onlyOwner
  {
    allowListMerkleRoot = _allowListMerkleRoot;
  }

  function mintPresale(
    bytes32[] memory _proof,
    uint256 _numberOfTokens,
    bool _isStarsPurchase
  ) external payable mintCompliance(_numberOfTokens, _isStarsPurchase) {
    require(presaleIsActive, "Presale is not active at the moment");
    require(
      isAllowListed(_proof, msg.sender),
      "This address is not allow listed for the presale"
    );
    require(
      allowListNumClaimed[msg.sender] + _numberOfTokens <=
        MAX_NFT_PURCHASE_PRESALE,
      "Exceeds allowed presale you can mint"
    );
    require(
      totalSupply().add(_numberOfTokens) <= MAX_SUPPLY.sub(reserve),
      "Purchase would exceed max supply"
    );

    _safeMint(msg.sender, _numberOfTokens);

    allowListNumClaimed[msg.sender] += _numberOfTokens;
  }

  function mint(uint256 _numberOfTokens, bool _isStarsPurchase)
    external
    payable
    mintCompliance(_numberOfTokens, _isStarsPurchase)
  {
    require(saleIsActive, "Sale is not active at the moment");
    require(
      totalSupply().add(_numberOfTokens) <= MAX_SUPPLY.sub(reserve),
      "Purchase would exceed max supply"
    );

    _safeMint(msg.sender, _numberOfTokens);
  }

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

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

      if (currentTokenOwner == _owner) {
        ownedTokenIds[ownedTokenIndex] = currentTokenId;

        ownedTokenIndex++;
      }

      currentTokenId++;
    }

    return ownedTokenIds;
  }

  function tokenURI(uint256 _tokenId)
    public
    view
    virtual
    override
    returns (string memory)
  {
    require(
      _exists(_tokenId),
      "ERC721Metadata: URI query for nonexistent token"
    );

    if (revealed == false) {
      return hiddenMetadataUri;
    }

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

  function setHiddenMetadataUri(string memory _hiddenMetadataUri)
    external
    onlyOwner
  {
    hiddenMetadataUri = _hiddenMetadataUri;
  }

  function setUriPrefix(string memory _uriPrefix) external onlyOwner {
    uriPrefix = _uriPrefix;
  }

  function setUriSuffix(string memory _uriSuffix) external onlyOwner {
    uriSuffix = _uriSuffix;
  }

  function setRevealed(bool _state) external onlyOwner {
    revealed = _state;
  }

  function setProvenance(string calldata _provenance) external onlyOwner {
    provenance = _provenance;
  }

  function withdraw() external onlyOwner {
    (bool os, ) = payable(owner()).call{ value: address(this).balance }("");
    require(os, "withdraw: transfer failed");

    stars.safeTransfer(owner(), stars.balanceOf(address(this)));
  }

  function _baseURI() internal view virtual override returns (string memory) {
    return uriPrefix;
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract IERC20","name":"_stars","type":"address"},{"internalType":"address","name":"_vrfCoordinator","type":"address"},{"internalType":"address","name":"_link","type":"address"},{"internalType":"address","name":"_owner","type":"address"},{"internalType":"bool","name":"_ethAllowed","type":"bool"},{"internalType":"bool","name":"_starsAllowed","type":"bool"},{"internalType":"uint256","name":"_ethPrice","type":"uint256"},{"internalType":"uint256","name":"_starsPrice","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_MINT_PER_TX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_NFT_PURCHASE_PRESALE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"allowListMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"allowListNumClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_numberOfTokens","type":"uint256"}],"name":"claimRemaining","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_reserveAmount","type":"uint256"}],"name":"claimReserve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"ethAllowed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ethPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"flipPresaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hiddenMetadataUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"},{"internalType":"address","name":"_address","type":"address"}],"name":"isAllowListed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isMetadataLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_numberOfTokens","type":"uint256"},{"internalType":"bool","name":"_isStarsPurchase","type":"bool"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"},{"internalType":"uint256","name":"_numberOfTokens","type":"uint256"},{"internalType":"bool","name":"_isStarsPurchase","type":"bool"}],"name":"mintPresale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"provenance","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"requestId","type":"bytes32"},{"internalType":"uint256","name":"randomness","type":"uint256"}],"name":"rawFulfillRandomness","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_keyHash","type":"bytes32"},{"internalType":"uint256","name":"_fee","type":"uint256"}],"name":"requestStartingIndex","outputs":[{"internalType":"bytes32","name":"requestId","type":"bytes32"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reserve","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_allowListMerkleRoot","type":"bytes32"}],"name":"setAllowListMerkleRoot","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":"_ethPrice","type":"uint256"}],"name":"setEthPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_hiddenMetadataUri","type":"string"}],"name":"setHiddenMetadataUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_provenance","type":"string"}],"name":"setProvenance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setRevealed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_starsPrice","type":"uint256"}],"name":"setStarsPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uriPrefix","type":"string"}],"name":"setUriPrefix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uriSuffix","type":"string"}],"name":"setUriSuffix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"starsAllowed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"starsPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startingIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startingIndexRequestId","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"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":[],"name":"toggleEthPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleStarsPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uriPrefix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uriSuffix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

600d805465ffffffff0000191690556014600e5560e06040819052600060c08190526200002f9160139162000323565b5060408051808201909152600580825264173539b7b760d91b60209092019182526200005e9160149162000323565b506040805160208101918290526000908190526200007f9160159162000323565b503480156200008d57600080fd5b5060405162003a0538038062003a05833981016040819052620000b091620003df565b604080518082018252600c81526b29b2bcba30b734a1b937b7b760a11b60208083019182528351808501909452600484526329aa292760e11b908401526001600160601b031960608b811b821660a0528a901b1660805281519192916200011a9160039162000323565b5080516200013090600490602084019062000323565b5050600060015550620001433362000200565b83806200014d5750825b6200019f5760405162461bcd60e51b815260206004820152601c60248201527f5354415253206f7220455448206d75737420626520616c6c6f7765640000000060448201526064015b60405180910390fd5b620001aa8562000252565b600a80546001600160a01b0319166001600160a01b039990991698909817909755600d805461ffff191693151561ff001916939093176101009215159290920291909117909155600b55505050600c55620004d1565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6009546001600160a01b03163314620002ae5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640162000196565b6001600160a01b038116620003155760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840162000196565b620003208162000200565b50565b82805462000331906200047e565b90600052602060002090601f016020900481019282620003555760008555620003a0565b82601f106200037057805160ff1916838001178555620003a0565b82800160010185558215620003a0579182015b82811115620003a057825182559160200191906001019062000383565b50620003ae929150620003b2565b5090565b5b80821115620003ae5760008155600101620003b3565b80518015158114620003da57600080fd5b919050565b600080600080600080600080610100898b031215620003fc578384fd5b88516200040981620004bb565b60208a01519098506200041c81620004bb565b60408a01519097506200042f81620004bb565b60608a01519096506200044281620004bb565b94506200045260808a01620003c9565b93506200046260a08a01620003c9565b60c08a015160e0909a0151989b979a5095989497939692505050565b600181811c908216806200049357607f821691505b60208210811415620004b557634e487b7160e01b600052602260045260246000fd5b50919050565b6001600160a01b03811681146200032057600080fd5b60805160601c60a05160601c613501620005046000396000818161177401526123a80152600061237901526135016000f3fe6080604052600436106103805760003560e01c80638477b073116101d1578063c87b56dd11610102578063e985e9c5116100a0578063f3b674a41161006f578063f3b674a4146109ca578063f81227d4146109ea578063ff186b2e146109ff578063ffe630b514610a1557600080fd5b8063e985e9c514610921578063ea7a42e41461096a578063eb8d24441461098a578063f2fde38b146109aa57600080fd5b8063d5a5e4c7116100dc578063d5a5e4c7146108a9578063d63ce739146108c9578063d7e45cd7146108de578063e0a808531461090157600080fd5b8063c87b56dd1461085d578063cb774d471461087d578063cd3293de1461089357600080fd5b8063a06a513f1161016f578063a45ba8e711610149578063a45ba8e7146107e9578063a9196d5c146107fe578063b806d11c1461081d578063b88d4fde1461083d57600080fd5b8063a06a513f14610734578063a22cb465146107a9578063a2f17587146107c957600080fd5b806394985ddd116101ab57806394985ddd1461074957806395d89b41146107695780639a1bb5b51461077e5780639bb906e01461079357600080fd5b80638477b073146107035780638da5cb5b146107165780638ecad7211461073457600080fd5b80633f6697fb116102b65780635d6477f71161025457806370a082311161022357806370a0823114610698578063715018a6146106b85780637ec4a659146106cd5780637f20ca46146106ed57600080fd5b80635d6477f71461062357806362b99ad4146106505780636352211e1461066557806367f68fac1461068557600080fd5b8063438b630011610290578063438b63001461059f5780634fdd43cb146105cc57806351830227146105ec5780635503a0e81461060e57600080fd5b80633f6697fb1461054f578063415013661461056957806342842e0e1461057f57600080fd5b806316ba10e01161032357806330f72cd4116102fd57806330f72cd4146104ee57806332cb6b0c1461050f57806334918dfd146105255780633ccfd60b1461053a57600080fd5b806316ba10e01461048b57806318160ddd146104ab57806323b872dd146104ce57600080fd5b8063081812fc1161035f578063081812fc146103fe578063095ea7b31461043657806309e62b91146104565780630f7309e81461047657600080fd5b80629f92621461038557806301ffc9a7146103a757806306fdde03146103dc575b600080fd5b34801561039157600080fd5b506103a56103a0366004612fa7565b610a35565b005b3480156103b357600080fd5b506103c76103c2366004612fe0565b610a6d565b60405190151581526020015b60405180910390f35b3480156103e857600080fd5b506103f1610abf565b6040516103d391906132c0565b34801561040a57600080fd5b5061041e610419366004612fa7565b610b51565b6040516001600160a01b0390911681526020016103d3565b34801561044257600080fd5b506103a5610451366004612eac565b610b95565b34801561046257600080fd5b506103a5610471366004612eac565b610c23565b34801561048257600080fd5b506103f1610d19565b34801561049757600080fd5b506103a56104a6366004613084565b610da7565b3480156104b757600080fd5b50600254600154035b6040519081526020016103d3565b3480156104da57600080fd5b506103a56104e9366004612dc3565b610de4565b3480156104fa57600080fd5b50600d546103c7906301000000900460ff1681565b34801561051b57600080fd5b506104c0611e6181565b34801561053157600080fd5b506103a5610def565b34801561054657600080fd5b506103a5610e38565b34801561055b57600080fd5b50600d546103c79060ff1681565b34801561057557600080fd5b506104c060125481565b34801561058b57600080fd5b506103a561059a366004612dc3565b610fbc565b3480156105ab57600080fd5b506105bf6105ba366004612d77565b610fd7565b6040516103d3919061327c565b3480156105d857600080fd5b506103a56105e7366004613084565b6110d6565b3480156105f857600080fd5b50600d546103c790640100000000900460ff1681565b34801561061a57600080fd5b506103f1611113565b34801561062f57600080fd5b506104c061063e366004612d77565b60106020526000908152604090205481565b34801561065c57600080fd5b506103f1611120565b34801561067157600080fd5b5061041e610680366004612fa7565b61112d565b6103a56106933660046130e1565b61113f565b3480156106a457600080fd5b506104c06106b3366004612d77565b611374565b3480156106c457600080fd5b506103a56113c2565b3480156106d957600080fd5b506103a56106e8366004613084565b6113f8565b3480156106f957600080fd5b506104c0600c5481565b6103a5610711366004612f17565b611435565b34801561072257600080fd5b506009546001600160a01b031661041e565b34801561074057600080fd5b506104c0600a81565b34801561075557600080fd5b506103a5610764366004612fbf565b611769565b34801561077557600080fd5b506103f16117eb565b34801561078a57600080fd5b506103a56117fa565b34801561079f57600080fd5b506104c060115481565b3480156107b557600080fd5b506103a56107c4366004612e76565b611838565b3480156107d557600080fd5b506103a56107e4366004612fa7565b6118ce565b3480156107f557600080fd5b506103f16118fd565b34801561080a57600080fd5b50600d546103c790610100900460ff1681565b34801561082957600080fd5b506104c0610838366004612fbf565b61190a565b34801561084957600080fd5b506103a5610858366004612dfe565b6119ab565b34801561086957600080fd5b506103f1610878366004612fa7565b6119f6565b34801561088957600080fd5b506104c0600f5481565b34801561089f57600080fd5b506104c0600e5481565b3480156108b557600080fd5b506103a56108c4366004612eac565b611b68565b3480156108d557600080fd5b506103a5611c03565b3480156108ea57600080fd5b50600d546103c79065010000000000900460ff1681565b34801561090d57600080fd5b506103a561091c366004612f6f565b611c4a565b34801561092d57600080fd5b506103c761093c366004612d91565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b34801561097657600080fd5b506103a5610985366004612fa7565b611c94565b34801561099657600080fd5b50600d546103c79062010000900460ff1681565b3480156109b657600080fd5b506103a56109c5366004612d77565b611cc3565b3480156109d657600080fd5b506103c76109e5366004612ed5565b611d5b565b3480156109f657600080fd5b506103a5611e02565b348015610a0b57600080fd5b506104c0600b5481565b348015610a2157600080fd5b506103a5610a30366004613018565b611e4d565b6009546001600160a01b03163314610a685760405162461bcd60e51b8152600401610a5f90613308565b60405180910390fd5b600b55565b60006001600160e01b031982166380ac58cd60e01b1480610a9e57506001600160e01b03198216635b5e139f60e01b145b80610ab957506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060038054610ace906133fb565b80601f0160208091040260200160405190810160405280929190818152602001828054610afa906133fb565b8015610b475780601f10610b1c57610100808354040283529160200191610b47565b820191906000526020600020905b815481529060010190602001808311610b2a57829003601f168201915b5050505050905090565b6000610b5c82611e83565b610b79576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b6000610ba08261112d565b9050806001600160a01b0316836001600160a01b03161415610bd55760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610bf55750610bf3813361093c565b155b15610c13576040516367d9dca160e11b815260040160405180910390fd5b610c1e838383611eaf565b505050565b6009546001600160a01b03163314610c4d5760405162461bcd60e51b8152600401610a5f90613308565b600081118015610c5f5750600e548111155b610cab5760405162461bcd60e51b815260206004820181905260248201527f4e6f7420656e6f7567682072657365727665206c65667420666f72207465616d6044820152606401610a5f565b600e54610cb89082611f0b565b600e5560005b610cc9600a83613385565b811015610ced57610cdb83600a611f17565b80610ce581613436565b915050610cbe565b506000610cfb600a83613451565b1115610d1557610d1582610d10600a84613451565b611f17565b5050565b60168054610d26906133fb565b80601f0160208091040260200160405190810160405280929190818152602001828054610d52906133fb565b8015610d9f5780601f10610d7457610100808354040283529160200191610d9f565b820191906000526020600020905b815481529060010190602001808311610d8257829003601f168201915b505050505081565b6009546001600160a01b03163314610dd15760405162461bcd60e51b8152600401610a5f90613308565b8051610d15906014906020840190612b75565b610c1e838383611f31565b6009546001600160a01b03163314610e195760405162461bcd60e51b8152600401610a5f90613308565b600d805462ff0000198116620100009182900460ff1615909102179055565b6009546001600160a01b03163314610e625760405162461bcd60e51b8152600401610a5f90613308565b6000610e766009546001600160a01b031690565b6001600160a01b03164760405160006040518083038185875af1925050503d8060008114610ec0576040519150601f19603f3d011682016040523d82523d6000602084013e610ec5565b606091505b5050905080610f165760405162461bcd60e51b815260206004820152601960248201527f77697468647261773a207472616e73666572206661696c6564000000000000006044820152606401610a5f565b610fb9610f2b6009546001600160a01b031690565b600a546040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b158015610f6e57600080fd5b505afa158015610f82573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fa691906130c9565b600a546001600160a01b03169190612145565b50565b610c1e838383604051806020016040528060008152506119ab565b60606000610fe483611374565b90506000816001600160401b0381111561100e57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611037578160200160208202803683370190505b5090506000805b83811080156110535750600254600154038211155b156110cc5760006110638361112d565b9050866001600160a01b0316816001600160a01b031614156110b957828483815181106110a057634e487b7160e01b600052603260045260246000fd5b6020908102919091010152816110b581613436565b9250505b826110c381613436565b9350505061103e565b5090949350505050565b6009546001600160a01b031633146111005760405162461bcd60e51b8152600401610a5f90613308565b8051610d15906015906020840190612b75565b60148054610d26906133fb565b60138054610d26906133fb565b6000611138826121a8565b5192915050565b81818160001080156111525750600a8211155b6111945760405162461bcd60e51b8152602060048201526013602482015272125b9d985b1a59081b5a5b9d08185b5bdd5b9d606a1b6044820152606401610a5f565b801561121d57600d54610100900460ff166111f15760405162461bcd60e51b815260206004820152601b60248201527f535441525320707572636861736573206e6f7420616c6c6f77656400000000006044820152606401610a5f565b611218333084600c546112049190613399565b600a546001600160a01b03169291906122c2565b6112c7565b600d5460ff1661126b5760405162461bcd60e51b8152602060048201526019602482015278115512081c1d5c98da185cd95cc81b9bdd08185b1b1bddd959603a1b6044820152606401610a5f565b81600b546112799190613399565b34146112c75760405162461bcd60e51b815260206004820152601d60248201527f53656e742065746865722076616c756520697320696e636f72726563740000006044820152606401610a5f565b600d5462010000900460ff1661131f5760405162461bcd60e51b815260206004820181905260248201527f53616c65206973206e6f742061637469766520617420746865206d6f6d656e746044820152606401610a5f565b600e5461132f90611e6190611f0b565b611346856113406002546001540390565b906122fa565b11156113645760405162461bcd60e51b8152600401610a5f906132d3565b61136e3385611f17565b50505050565b60006001600160a01b03821661139d576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600660205260409020546001600160401b031690565b6009546001600160a01b031633146113ec5760405162461bcd60e51b8152600401610a5f90613308565b6113f66000612306565b565b6009546001600160a01b031633146114225760405162461bcd60e51b8152600401610a5f90613308565b8051610d15906013906020840190612b75565b81818160001080156114485750600a8211155b61148a5760405162461bcd60e51b8152602060048201526013602482015272125b9d985b1a59081b5a5b9d08185b5bdd5b9d606a1b6044820152606401610a5f565b80156114ff57600d54610100900460ff166114e75760405162461bcd60e51b815260206004820152601b60248201527f535441525320707572636861736573206e6f7420616c6c6f77656400000000006044820152606401610a5f565b6114fa333084600c546112049190613399565b6115a9565b600d5460ff1661154d5760405162461bcd60e51b8152602060048201526019602482015278115512081c1d5c98da185cd95cc81b9bdd08185b1b1bddd959603a1b6044820152606401610a5f565b81600b5461155b9190613399565b34146115a95760405162461bcd60e51b815260206004820152601d60248201527f53656e742065746865722076616c756520697320696e636f72726563740000006044820152606401610a5f565b600d546301000000900460ff1661160e5760405162461bcd60e51b815260206004820152602360248201527f50726573616c65206973206e6f742061637469766520617420746865206d6f6d604482015262195b9d60ea1b6064820152608401610a5f565b6116188533611d5b565b61167d5760405162461bcd60e51b815260206004820152603060248201527f546869732061646472657373206973206e6f7420616c6c6f77206c697374656460448201526f20666f72207468652070726573616c6560801b6064820152608401610a5f565b33600090815260106020526040902054600a9061169b90869061336d565b11156116f55760405162461bcd60e51b8152602060048201526024808201527f4578636565647320616c6c6f7765642070726573616c6520796f752063616e206044820152631b5a5b9d60e21b6064820152608401610a5f565b600e5461170590611e6190611f0b565b611716856113406002546001540390565b11156117345760405162461bcd60e51b8152600401610a5f906132d3565b61173e3385611f17565b336000908152601060205260408120805486929061175d90849061336d565b90915550505050505050565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146117e15760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c006044820152606401610a5f565b610d158282612358565b606060048054610ace906133fb565b6009546001600160a01b031633146118245760405162461bcd60e51b8152600401610a5f90613308565b600d805460ff19811660ff90911615179055565b6001600160a01b0382163314156118625760405163b06307db60e01b815260040160405180910390fd5b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6009546001600160a01b031633146118f85760405162461bcd60e51b8152600401610a5f90613308565b600c55565b60158054610d26906133fb565b6009546000906001600160a01b031633146119375760405162461bcd60e51b8152600401610a5f90613308565b600f54156119925760405162461bcd60e51b815260206004820152602260248201527f7374617274696e67496e6465782068617320616c7265616479206265656e2073604482015261195d60f21b6064820152608401610a5f565b600061199e8484612375565b6012819055949350505050565b6119b6848484611f31565b6001600160a01b0383163b151580156119d857506119d6848484846124fb565b155b1561136e576040516368d2bf6b60e11b815260040160405180910390fd5b6060611a0182611e83565b611a655760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610a5f565b600d54640100000000900460ff16611b095760158054611a84906133fb565b80601f0160208091040260200160405190810160405280929190818152602001828054611ab0906133fb565b8015611afd5780601f10611ad257610100808354040283529160200191611afd565b820191906000526020600020905b815481529060010190602001808311611ae057829003601f168201915b50505050509050919050565b6000611b136125f2565b90506000815111611b335760405180602001604052806000815250611b61565b80611b3d84612601565b6014604051602001611b519392919061314d565b6040516020818303038152906040525b9392505050565b6009546001600160a01b03163314611b925760405162461bcd60e51b8152600401610a5f90613308565b600e54611ba290611e6190611f0b565b611bb3826113406002546001540390565b1115611bd15760405162461bcd60e51b8152600401610a5f906132d3565b60005b611bdf600a83613385565b811015610ced57611bf183600a611f17565b80611bfb81613436565b915050611bd4565b6009546001600160a01b03163314611c2d5760405162461bcd60e51b8152600401610a5f90613308565b600d805461ff001981166101009182900460ff1615909102179055565b6009546001600160a01b03163314611c745760405162461bcd60e51b8152600401610a5f90613308565b600d80549115156401000000000264ff0000000019909216919091179055565b6009546001600160a01b03163314611cbe5760405162461bcd60e51b8152600401610a5f90613308565b601155565b6009546001600160a01b03163314611ced5760405162461bcd60e51b8152600401610a5f90613308565b6001600160a01b038116611d525760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a5f565b610fb981612306565b60006001600160a01b038216611db35760405162461bcd60e51b815260206004820152601e60248201527f5a65726f2061646472657373206e6f74206f6e20416c6c6f77204c69737400006044820152606401610a5f565b6040516bffffffffffffffffffffffff19606084901b166020820152600090603401604051602081830303815290604052805190602001209050611dfa846011548361271a565b949350505050565b6009546001600160a01b03163314611e2c5760405162461bcd60e51b8152600401610a5f90613308565b600d805463ff00000019811663010000009182900460ff1615909102179055565b6009546001600160a01b03163314611e775760405162461bcd60e51b8152600401610a5f90613308565b610c1e60168383612bf9565b600060015482108015610ab9575050600090815260056020526040902054600160e01b900460ff161590565b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000611b6182846133b8565b610d15828260405180602001604052806000815250612730565b6000611f3c826121a8565b80519091506000906001600160a01b0316336001600160a01b03161480611f6a57508151611f6a903361093c565b80611f85575033611f7a84610b51565b6001600160a01b0316145b905080611fa557604051632ce44b5f60e11b815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b031614611fda5760405162a1148160e81b815260040160405180910390fd5b6001600160a01b03841661200157604051633a954ecd60e21b815260040160405180910390fd5b6120116000848460000151611eaf565b6001600160a01b038581166000908152600660209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600590945282852080546001600160e01b031916909417600160a01b4290921691909102179092559086018083529120549091166120fb576001548110156120fb57825160008281526005602090815260409091208054918601516001600160401b0316600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b6040516001600160a01b038316602482015260448101829052610c1e90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915261273d565b6040805160608101825260008082526020820181905291810191909152816001548110156122a957600081815260056020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161515918101829052906122a75780516001600160a01b03161561223e579392505050565b5060001901600081815260056020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff16151592810192909252156122a2579392505050565b61223e565b505b604051636f96cda160e11b815260040160405180910390fd5b6040516001600160a01b038085166024830152831660448201526064810182905261136e9085906323b872dd60e01b90608401612171565b6000611b61828461336d565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816012541415610d155761236e611e6182613451565b600f555050565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316634000aea07f0000000000000000000000000000000000000000000000000000000000000000848660006040516020016123e5929190918252602082015260400190565b6040516020818303038152906040526040518463ffffffff1660e01b81526004016124129392919061324c565b602060405180830381600087803b15801561242c57600080fd5b505af1158015612440573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124649190612f8b565b5060008381526020818152604080832054815180840188905280830185905230606082015260808082018390528351808303909101815260a0909101909252815191830191909120868452929091526124be90600161336d565b6000858152602081815260409182902092909255805180830187905280820184905281518082038301815260609091019091528051910120611dfa565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061253090339089908890889060040161320f565b602060405180830381600087803b15801561254a57600080fd5b505af192505050801561257a575060408051601f3d908101601f1916820190925261257791810190612ffc565b60015b6125d5573d8080156125a8576040519150601f19603f3d011682016040523d82523d6000602084013e6125ad565b606091505b5080516125cd576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b606060138054610ace906133fb565b6060816126255750506040805180820190915260018152600360fc1b602082015290565b8160005b811561264f578061263981613436565b91506126489050600a83613385565b9150612629565b6000816001600160401b0381111561267757634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156126a1576020820181803683370190505b5090505b8415611dfa576126b66001836133b8565b91506126c3600a86613451565b6126ce90603061336d565b60f81b8183815181106126f157634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612713600a86613385565b94506126a5565b600082612727858461280f565b14949350505050565b610c1e8383836001612891565b6000612792826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316612a619092919063ffffffff16565b805190915015610c1e57808060200190518101906127b09190612f8b565b610c1e5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610a5f565b600081815b845181101561288957600085828151811061283f57634e487b7160e01b600052603260045260246000fd5b602002602001015190508083116128655760008381526020829052604090209250612876565b600081815260208490526040902092505b508061288181613436565b915050612814565b509392505050565b6001546001600160a01b0385166128ba57604051622e076360e81b815260040160405180910390fd5b836128d85760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260066020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c01811690920217909155858452600590925290912080546001600160e01b031916909217600160a01b42909216919091021790558080850183801561298957506001600160a01b0387163b15155b15612a12575b60405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46129da60008884806001019550886124fb565b6129f7576040516368d2bf6b60e11b815260040160405180910390fd5b8082141561298f578260015414612a0d57600080fd5b612a58565b5b6040516001830192906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480821415612a13575b5060015561213e565b6060611dfa8484600085856001600160a01b0385163b612ac35760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610a5f565b600080866001600160a01b03168587604051612adf9190613131565b60006040518083038185875af1925050503d8060008114612b1c576040519150601f19603f3d011682016040523d82523d6000602084013e612b21565b606091505b5091509150612b31828286612b3c565b979650505050505050565b60608315612b4b575081611b61565b825115612b5b5782518084602001fd5b8160405162461bcd60e51b8152600401610a5f91906132c0565b828054612b81906133fb565b90600052602060002090601f016020900481019282612ba35760008555612be9565b82601f10612bbc57805160ff1916838001178555612be9565b82800160010185558215612be9579182015b82811115612be9578251825591602001919060010190612bce565b50612bf5929150612c6d565b5090565b828054612c05906133fb565b90600052602060002090601f016020900481019282612c275760008555612be9565b82601f10612c405782800160ff19823516178555612be9565b82800160010185558215612be9579182015b82811115612be9578235825591602001919060010190612c52565b5b80821115612bf55760008155600101612c6e565b60006001600160401b03831115612c9b57612c9b613491565b612cae601f8401601f191660200161333d565b9050828152838383011115612cc257600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b0381168114612cf057600080fd5b919050565b600082601f830112612d05578081fd5b813560206001600160401b03821115612d2057612d20613491565b8160051b612d2f82820161333d565b838152828101908684018388018501891015612d49578687fd5b8693505b85841015612d6b578035835260019390930192918401918401612d4d565b50979650505050505050565b600060208284031215612d88578081fd5b611b6182612cd9565b60008060408385031215612da3578081fd5b612dac83612cd9565b9150612dba60208401612cd9565b90509250929050565b600080600060608486031215612dd7578081fd5b612de084612cd9565b9250612dee60208501612cd9565b9150604084013590509250925092565b60008060008060808587031215612e13578081fd5b612e1c85612cd9565b9350612e2a60208601612cd9565b92506040850135915060608501356001600160401b03811115612e4b578182fd5b8501601f81018713612e5b578182fd5b612e6a87823560208401612c82565b91505092959194509250565b60008060408385031215612e88578182fd5b612e9183612cd9565b91506020830135612ea1816134a7565b809150509250929050565b60008060408385031215612ebe578182fd5b612ec783612cd9565b946020939093013593505050565b60008060408385031215612ee7578182fd5b82356001600160401b03811115612efc578283fd5b612f0885828601612cf5565b925050612dba60208401612cd9565b600080600060608486031215612f2b578283fd5b83356001600160401b03811115612f40578384fd5b612f4c86828701612cf5565b935050602084013591506040840135612f64816134a7565b809150509250925092565b600060208284031215612f80578081fd5b8135611b61816134a7565b600060208284031215612f9c578081fd5b8151611b61816134a7565b600060208284031215612fb8578081fd5b5035919050565b60008060408385031215612fd1578182fd5b50508035926020909101359150565b600060208284031215612ff1578081fd5b8135611b61816134b5565b60006020828403121561300d578081fd5b8151611b61816134b5565b6000806020838503121561302a578182fd5b82356001600160401b0380821115613040578384fd5b818501915085601f830112613053578384fd5b813581811115613061578485fd5b866020828501011115613072578485fd5b60209290920196919550909350505050565b600060208284031215613095578081fd5b81356001600160401b038111156130aa578182fd5b8201601f810184136130ba578182fd5b611dfa84823560208401612c82565b6000602082840312156130da578081fd5b5051919050565b600080604083850312156130f3578182fd5b823591506020830135612ea1816134a7565b6000815180845261311d8160208601602086016133cf565b601f01601f19169290920160200192915050565b600082516131438184602087016133cf565b9190910192915050565b6000845160206131608285838a016133cf565b8551918401916131738184848a016133cf565b85549201918390600181811c908083168061318f57607f831692505b8583108114156131ad57634e487b7160e01b88526022600452602488fd5b8080156131c157600181146131d2576131fe565b60ff198516885283880195506131fe565b60008b815260209020895b858110156131f65781548a8201529084019088016131dd565b505083880195505b50939b9a5050505050505050505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061324290830184613105565b9695505050505050565b60018060a01b03841681528260208201526060604082015260006132736060830184613105565b95945050505050565b6020808252825182820181905260009190848201906040850190845b818110156132b457835183529284019291840191600101613298565b50909695505050505050565b602081526000611b616020830184613105565b6020808252818101527f507572636861736520776f756c6420657863656564206d617820737570706c79604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b604051601f8201601f191681016001600160401b038111828210171561336557613365613491565b604052919050565b6000821982111561338057613380613465565b500190565b6000826133945761339461347b565b500490565b60008160001904831182151516156133b3576133b3613465565b500290565b6000828210156133ca576133ca613465565b500390565b60005b838110156133ea5781810151838201526020016133d2565b8381111561136e5750506000910152565b600181811c9082168061340f57607f821691505b6020821081141561343057634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561344a5761344a613465565b5060010190565b6000826134605761346061347b565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b8015158114610fb957600080fd5b6001600160e01b031981168114610fb957600080fdfea26469706673582212205cc65f11b9bad865ad482883c4551c3745c6fee0f6ba712c3fcb48519cbf860e64736f6c63430008040033000000000000000000000000c55c2175e90a46602fd42e931f62b3acc1a013ca000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca000000000000000000000000e6a451b2b47e054c8cd37cddaab65aceea61f0cc0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000b1a2bc2ec500000000000000000000000000000000000000000000000000c893d09c8f51500000

Deployed Bytecode

0x6080604052600436106103805760003560e01c80638477b073116101d1578063c87b56dd11610102578063e985e9c5116100a0578063f3b674a41161006f578063f3b674a4146109ca578063f81227d4146109ea578063ff186b2e146109ff578063ffe630b514610a1557600080fd5b8063e985e9c514610921578063ea7a42e41461096a578063eb8d24441461098a578063f2fde38b146109aa57600080fd5b8063d5a5e4c7116100dc578063d5a5e4c7146108a9578063d63ce739146108c9578063d7e45cd7146108de578063e0a808531461090157600080fd5b8063c87b56dd1461085d578063cb774d471461087d578063cd3293de1461089357600080fd5b8063a06a513f1161016f578063a45ba8e711610149578063a45ba8e7146107e9578063a9196d5c146107fe578063b806d11c1461081d578063b88d4fde1461083d57600080fd5b8063a06a513f14610734578063a22cb465146107a9578063a2f17587146107c957600080fd5b806394985ddd116101ab57806394985ddd1461074957806395d89b41146107695780639a1bb5b51461077e5780639bb906e01461079357600080fd5b80638477b073146107035780638da5cb5b146107165780638ecad7211461073457600080fd5b80633f6697fb116102b65780635d6477f71161025457806370a082311161022357806370a0823114610698578063715018a6146106b85780637ec4a659146106cd5780637f20ca46146106ed57600080fd5b80635d6477f71461062357806362b99ad4146106505780636352211e1461066557806367f68fac1461068557600080fd5b8063438b630011610290578063438b63001461059f5780634fdd43cb146105cc57806351830227146105ec5780635503a0e81461060e57600080fd5b80633f6697fb1461054f578063415013661461056957806342842e0e1461057f57600080fd5b806316ba10e01161032357806330f72cd4116102fd57806330f72cd4146104ee57806332cb6b0c1461050f57806334918dfd146105255780633ccfd60b1461053a57600080fd5b806316ba10e01461048b57806318160ddd146104ab57806323b872dd146104ce57600080fd5b8063081812fc1161035f578063081812fc146103fe578063095ea7b31461043657806309e62b91146104565780630f7309e81461047657600080fd5b80629f92621461038557806301ffc9a7146103a757806306fdde03146103dc575b600080fd5b34801561039157600080fd5b506103a56103a0366004612fa7565b610a35565b005b3480156103b357600080fd5b506103c76103c2366004612fe0565b610a6d565b60405190151581526020015b60405180910390f35b3480156103e857600080fd5b506103f1610abf565b6040516103d391906132c0565b34801561040a57600080fd5b5061041e610419366004612fa7565b610b51565b6040516001600160a01b0390911681526020016103d3565b34801561044257600080fd5b506103a5610451366004612eac565b610b95565b34801561046257600080fd5b506103a5610471366004612eac565b610c23565b34801561048257600080fd5b506103f1610d19565b34801561049757600080fd5b506103a56104a6366004613084565b610da7565b3480156104b757600080fd5b50600254600154035b6040519081526020016103d3565b3480156104da57600080fd5b506103a56104e9366004612dc3565b610de4565b3480156104fa57600080fd5b50600d546103c7906301000000900460ff1681565b34801561051b57600080fd5b506104c0611e6181565b34801561053157600080fd5b506103a5610def565b34801561054657600080fd5b506103a5610e38565b34801561055b57600080fd5b50600d546103c79060ff1681565b34801561057557600080fd5b506104c060125481565b34801561058b57600080fd5b506103a561059a366004612dc3565b610fbc565b3480156105ab57600080fd5b506105bf6105ba366004612d77565b610fd7565b6040516103d3919061327c565b3480156105d857600080fd5b506103a56105e7366004613084565b6110d6565b3480156105f857600080fd5b50600d546103c790640100000000900460ff1681565b34801561061a57600080fd5b506103f1611113565b34801561062f57600080fd5b506104c061063e366004612d77565b60106020526000908152604090205481565b34801561065c57600080fd5b506103f1611120565b34801561067157600080fd5b5061041e610680366004612fa7565b61112d565b6103a56106933660046130e1565b61113f565b3480156106a457600080fd5b506104c06106b3366004612d77565b611374565b3480156106c457600080fd5b506103a56113c2565b3480156106d957600080fd5b506103a56106e8366004613084565b6113f8565b3480156106f957600080fd5b506104c0600c5481565b6103a5610711366004612f17565b611435565b34801561072257600080fd5b506009546001600160a01b031661041e565b34801561074057600080fd5b506104c0600a81565b34801561075557600080fd5b506103a5610764366004612fbf565b611769565b34801561077557600080fd5b506103f16117eb565b34801561078a57600080fd5b506103a56117fa565b34801561079f57600080fd5b506104c060115481565b3480156107b557600080fd5b506103a56107c4366004612e76565b611838565b3480156107d557600080fd5b506103a56107e4366004612fa7565b6118ce565b3480156107f557600080fd5b506103f16118fd565b34801561080a57600080fd5b50600d546103c790610100900460ff1681565b34801561082957600080fd5b506104c0610838366004612fbf565b61190a565b34801561084957600080fd5b506103a5610858366004612dfe565b6119ab565b34801561086957600080fd5b506103f1610878366004612fa7565b6119f6565b34801561088957600080fd5b506104c0600f5481565b34801561089f57600080fd5b506104c0600e5481565b3480156108b557600080fd5b506103a56108c4366004612eac565b611b68565b3480156108d557600080fd5b506103a5611c03565b3480156108ea57600080fd5b50600d546103c79065010000000000900460ff1681565b34801561090d57600080fd5b506103a561091c366004612f6f565b611c4a565b34801561092d57600080fd5b506103c761093c366004612d91565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b34801561097657600080fd5b506103a5610985366004612fa7565b611c94565b34801561099657600080fd5b50600d546103c79062010000900460ff1681565b3480156109b657600080fd5b506103a56109c5366004612d77565b611cc3565b3480156109d657600080fd5b506103c76109e5366004612ed5565b611d5b565b3480156109f657600080fd5b506103a5611e02565b348015610a0b57600080fd5b506104c0600b5481565b348015610a2157600080fd5b506103a5610a30366004613018565b611e4d565b6009546001600160a01b03163314610a685760405162461bcd60e51b8152600401610a5f90613308565b60405180910390fd5b600b55565b60006001600160e01b031982166380ac58cd60e01b1480610a9e57506001600160e01b03198216635b5e139f60e01b145b80610ab957506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060038054610ace906133fb565b80601f0160208091040260200160405190810160405280929190818152602001828054610afa906133fb565b8015610b475780601f10610b1c57610100808354040283529160200191610b47565b820191906000526020600020905b815481529060010190602001808311610b2a57829003601f168201915b5050505050905090565b6000610b5c82611e83565b610b79576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b6000610ba08261112d565b9050806001600160a01b0316836001600160a01b03161415610bd55760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610bf55750610bf3813361093c565b155b15610c13576040516367d9dca160e11b815260040160405180910390fd5b610c1e838383611eaf565b505050565b6009546001600160a01b03163314610c4d5760405162461bcd60e51b8152600401610a5f90613308565b600081118015610c5f5750600e548111155b610cab5760405162461bcd60e51b815260206004820181905260248201527f4e6f7420656e6f7567682072657365727665206c65667420666f72207465616d6044820152606401610a5f565b600e54610cb89082611f0b565b600e5560005b610cc9600a83613385565b811015610ced57610cdb83600a611f17565b80610ce581613436565b915050610cbe565b506000610cfb600a83613451565b1115610d1557610d1582610d10600a84613451565b611f17565b5050565b60168054610d26906133fb565b80601f0160208091040260200160405190810160405280929190818152602001828054610d52906133fb565b8015610d9f5780601f10610d7457610100808354040283529160200191610d9f565b820191906000526020600020905b815481529060010190602001808311610d8257829003601f168201915b505050505081565b6009546001600160a01b03163314610dd15760405162461bcd60e51b8152600401610a5f90613308565b8051610d15906014906020840190612b75565b610c1e838383611f31565b6009546001600160a01b03163314610e195760405162461bcd60e51b8152600401610a5f90613308565b600d805462ff0000198116620100009182900460ff1615909102179055565b6009546001600160a01b03163314610e625760405162461bcd60e51b8152600401610a5f90613308565b6000610e766009546001600160a01b031690565b6001600160a01b03164760405160006040518083038185875af1925050503d8060008114610ec0576040519150601f19603f3d011682016040523d82523d6000602084013e610ec5565b606091505b5050905080610f165760405162461bcd60e51b815260206004820152601960248201527f77697468647261773a207472616e73666572206661696c6564000000000000006044820152606401610a5f565b610fb9610f2b6009546001600160a01b031690565b600a546040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b158015610f6e57600080fd5b505afa158015610f82573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fa691906130c9565b600a546001600160a01b03169190612145565b50565b610c1e838383604051806020016040528060008152506119ab565b60606000610fe483611374565b90506000816001600160401b0381111561100e57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611037578160200160208202803683370190505b5090506000805b83811080156110535750600254600154038211155b156110cc5760006110638361112d565b9050866001600160a01b0316816001600160a01b031614156110b957828483815181106110a057634e487b7160e01b600052603260045260246000fd5b6020908102919091010152816110b581613436565b9250505b826110c381613436565b9350505061103e565b5090949350505050565b6009546001600160a01b031633146111005760405162461bcd60e51b8152600401610a5f90613308565b8051610d15906015906020840190612b75565b60148054610d26906133fb565b60138054610d26906133fb565b6000611138826121a8565b5192915050565b81818160001080156111525750600a8211155b6111945760405162461bcd60e51b8152602060048201526013602482015272125b9d985b1a59081b5a5b9d08185b5bdd5b9d606a1b6044820152606401610a5f565b801561121d57600d54610100900460ff166111f15760405162461bcd60e51b815260206004820152601b60248201527f535441525320707572636861736573206e6f7420616c6c6f77656400000000006044820152606401610a5f565b611218333084600c546112049190613399565b600a546001600160a01b03169291906122c2565b6112c7565b600d5460ff1661126b5760405162461bcd60e51b8152602060048201526019602482015278115512081c1d5c98da185cd95cc81b9bdd08185b1b1bddd959603a1b6044820152606401610a5f565b81600b546112799190613399565b34146112c75760405162461bcd60e51b815260206004820152601d60248201527f53656e742065746865722076616c756520697320696e636f72726563740000006044820152606401610a5f565b600d5462010000900460ff1661131f5760405162461bcd60e51b815260206004820181905260248201527f53616c65206973206e6f742061637469766520617420746865206d6f6d656e746044820152606401610a5f565b600e5461132f90611e6190611f0b565b611346856113406002546001540390565b906122fa565b11156113645760405162461bcd60e51b8152600401610a5f906132d3565b61136e3385611f17565b50505050565b60006001600160a01b03821661139d576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600660205260409020546001600160401b031690565b6009546001600160a01b031633146113ec5760405162461bcd60e51b8152600401610a5f90613308565b6113f66000612306565b565b6009546001600160a01b031633146114225760405162461bcd60e51b8152600401610a5f90613308565b8051610d15906013906020840190612b75565b81818160001080156114485750600a8211155b61148a5760405162461bcd60e51b8152602060048201526013602482015272125b9d985b1a59081b5a5b9d08185b5bdd5b9d606a1b6044820152606401610a5f565b80156114ff57600d54610100900460ff166114e75760405162461bcd60e51b815260206004820152601b60248201527f535441525320707572636861736573206e6f7420616c6c6f77656400000000006044820152606401610a5f565b6114fa333084600c546112049190613399565b6115a9565b600d5460ff1661154d5760405162461bcd60e51b8152602060048201526019602482015278115512081c1d5c98da185cd95cc81b9bdd08185b1b1bddd959603a1b6044820152606401610a5f565b81600b5461155b9190613399565b34146115a95760405162461bcd60e51b815260206004820152601d60248201527f53656e742065746865722076616c756520697320696e636f72726563740000006044820152606401610a5f565b600d546301000000900460ff1661160e5760405162461bcd60e51b815260206004820152602360248201527f50726573616c65206973206e6f742061637469766520617420746865206d6f6d604482015262195b9d60ea1b6064820152608401610a5f565b6116188533611d5b565b61167d5760405162461bcd60e51b815260206004820152603060248201527f546869732061646472657373206973206e6f7420616c6c6f77206c697374656460448201526f20666f72207468652070726573616c6560801b6064820152608401610a5f565b33600090815260106020526040902054600a9061169b90869061336d565b11156116f55760405162461bcd60e51b8152602060048201526024808201527f4578636565647320616c6c6f7765642070726573616c6520796f752063616e206044820152631b5a5b9d60e21b6064820152608401610a5f565b600e5461170590611e6190611f0b565b611716856113406002546001540390565b11156117345760405162461bcd60e51b8152600401610a5f906132d3565b61173e3385611f17565b336000908152601060205260408120805486929061175d90849061336d565b90915550505050505050565b336001600160a01b037f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb795216146117e15760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c006044820152606401610a5f565b610d158282612358565b606060048054610ace906133fb565b6009546001600160a01b031633146118245760405162461bcd60e51b8152600401610a5f90613308565b600d805460ff19811660ff90911615179055565b6001600160a01b0382163314156118625760405163b06307db60e01b815260040160405180910390fd5b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6009546001600160a01b031633146118f85760405162461bcd60e51b8152600401610a5f90613308565b600c55565b60158054610d26906133fb565b6009546000906001600160a01b031633146119375760405162461bcd60e51b8152600401610a5f90613308565b600f54156119925760405162461bcd60e51b815260206004820152602260248201527f7374617274696e67496e6465782068617320616c7265616479206265656e2073604482015261195d60f21b6064820152608401610a5f565b600061199e8484612375565b6012819055949350505050565b6119b6848484611f31565b6001600160a01b0383163b151580156119d857506119d6848484846124fb565b155b1561136e576040516368d2bf6b60e11b815260040160405180910390fd5b6060611a0182611e83565b611a655760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610a5f565b600d54640100000000900460ff16611b095760158054611a84906133fb565b80601f0160208091040260200160405190810160405280929190818152602001828054611ab0906133fb565b8015611afd5780601f10611ad257610100808354040283529160200191611afd565b820191906000526020600020905b815481529060010190602001808311611ae057829003601f168201915b50505050509050919050565b6000611b136125f2565b90506000815111611b335760405180602001604052806000815250611b61565b80611b3d84612601565b6014604051602001611b519392919061314d565b6040516020818303038152906040525b9392505050565b6009546001600160a01b03163314611b925760405162461bcd60e51b8152600401610a5f90613308565b600e54611ba290611e6190611f0b565b611bb3826113406002546001540390565b1115611bd15760405162461bcd60e51b8152600401610a5f906132d3565b60005b611bdf600a83613385565b811015610ced57611bf183600a611f17565b80611bfb81613436565b915050611bd4565b6009546001600160a01b03163314611c2d5760405162461bcd60e51b8152600401610a5f90613308565b600d805461ff001981166101009182900460ff1615909102179055565b6009546001600160a01b03163314611c745760405162461bcd60e51b8152600401610a5f90613308565b600d80549115156401000000000264ff0000000019909216919091179055565b6009546001600160a01b03163314611cbe5760405162461bcd60e51b8152600401610a5f90613308565b601155565b6009546001600160a01b03163314611ced5760405162461bcd60e51b8152600401610a5f90613308565b6001600160a01b038116611d525760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a5f565b610fb981612306565b60006001600160a01b038216611db35760405162461bcd60e51b815260206004820152601e60248201527f5a65726f2061646472657373206e6f74206f6e20416c6c6f77204c69737400006044820152606401610a5f565b6040516bffffffffffffffffffffffff19606084901b166020820152600090603401604051602081830303815290604052805190602001209050611dfa846011548361271a565b949350505050565b6009546001600160a01b03163314611e2c5760405162461bcd60e51b8152600401610a5f90613308565b600d805463ff00000019811663010000009182900460ff1615909102179055565b6009546001600160a01b03163314611e775760405162461bcd60e51b8152600401610a5f90613308565b610c1e60168383612bf9565b600060015482108015610ab9575050600090815260056020526040902054600160e01b900460ff161590565b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000611b6182846133b8565b610d15828260405180602001604052806000815250612730565b6000611f3c826121a8565b80519091506000906001600160a01b0316336001600160a01b03161480611f6a57508151611f6a903361093c565b80611f85575033611f7a84610b51565b6001600160a01b0316145b905080611fa557604051632ce44b5f60e11b815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b031614611fda5760405162a1148160e81b815260040160405180910390fd5b6001600160a01b03841661200157604051633a954ecd60e21b815260040160405180910390fd5b6120116000848460000151611eaf565b6001600160a01b038581166000908152600660209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600590945282852080546001600160e01b031916909417600160a01b4290921691909102179092559086018083529120549091166120fb576001548110156120fb57825160008281526005602090815260409091208054918601516001600160401b0316600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b6040516001600160a01b038316602482015260448101829052610c1e90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915261273d565b6040805160608101825260008082526020820181905291810191909152816001548110156122a957600081815260056020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161515918101829052906122a75780516001600160a01b03161561223e579392505050565b5060001901600081815260056020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff16151592810192909252156122a2579392505050565b61223e565b505b604051636f96cda160e11b815260040160405180910390fd5b6040516001600160a01b038085166024830152831660448201526064810182905261136e9085906323b872dd60e01b90608401612171565b6000611b61828461336d565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816012541415610d155761236e611e6182613451565b600f555050565b60007f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca6001600160a01b0316634000aea07f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952848660006040516020016123e5929190918252602082015260400190565b6040516020818303038152906040526040518463ffffffff1660e01b81526004016124129392919061324c565b602060405180830381600087803b15801561242c57600080fd5b505af1158015612440573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124649190612f8b565b5060008381526020818152604080832054815180840188905280830185905230606082015260808082018390528351808303909101815260a0909101909252815191830191909120868452929091526124be90600161336d565b6000858152602081815260409182902092909255805180830187905280820184905281518082038301815260609091019091528051910120611dfa565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061253090339089908890889060040161320f565b602060405180830381600087803b15801561254a57600080fd5b505af192505050801561257a575060408051601f3d908101601f1916820190925261257791810190612ffc565b60015b6125d5573d8080156125a8576040519150601f19603f3d011682016040523d82523d6000602084013e6125ad565b606091505b5080516125cd576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b606060138054610ace906133fb565b6060816126255750506040805180820190915260018152600360fc1b602082015290565b8160005b811561264f578061263981613436565b91506126489050600a83613385565b9150612629565b6000816001600160401b0381111561267757634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156126a1576020820181803683370190505b5090505b8415611dfa576126b66001836133b8565b91506126c3600a86613451565b6126ce90603061336d565b60f81b8183815181106126f157634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612713600a86613385565b94506126a5565b600082612727858461280f565b14949350505050565b610c1e8383836001612891565b6000612792826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316612a619092919063ffffffff16565b805190915015610c1e57808060200190518101906127b09190612f8b565b610c1e5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610a5f565b600081815b845181101561288957600085828151811061283f57634e487b7160e01b600052603260045260246000fd5b602002602001015190508083116128655760008381526020829052604090209250612876565b600081815260208490526040902092505b508061288181613436565b915050612814565b509392505050565b6001546001600160a01b0385166128ba57604051622e076360e81b815260040160405180910390fd5b836128d85760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260066020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c01811690920217909155858452600590925290912080546001600160e01b031916909217600160a01b42909216919091021790558080850183801561298957506001600160a01b0387163b15155b15612a12575b60405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46129da60008884806001019550886124fb565b6129f7576040516368d2bf6b60e11b815260040160405180910390fd5b8082141561298f578260015414612a0d57600080fd5b612a58565b5b6040516001830192906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480821415612a13575b5060015561213e565b6060611dfa8484600085856001600160a01b0385163b612ac35760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610a5f565b600080866001600160a01b03168587604051612adf9190613131565b60006040518083038185875af1925050503d8060008114612b1c576040519150601f19603f3d011682016040523d82523d6000602084013e612b21565b606091505b5091509150612b31828286612b3c565b979650505050505050565b60608315612b4b575081611b61565b825115612b5b5782518084602001fd5b8160405162461bcd60e51b8152600401610a5f91906132c0565b828054612b81906133fb565b90600052602060002090601f016020900481019282612ba35760008555612be9565b82601f10612bbc57805160ff1916838001178555612be9565b82800160010185558215612be9579182015b82811115612be9578251825591602001919060010190612bce565b50612bf5929150612c6d565b5090565b828054612c05906133fb565b90600052602060002090601f016020900481019282612c275760008555612be9565b82601f10612c405782800160ff19823516178555612be9565b82800160010185558215612be9579182015b82811115612be9578235825591602001919060010190612c52565b5b80821115612bf55760008155600101612c6e565b60006001600160401b03831115612c9b57612c9b613491565b612cae601f8401601f191660200161333d565b9050828152838383011115612cc257600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b0381168114612cf057600080fd5b919050565b600082601f830112612d05578081fd5b813560206001600160401b03821115612d2057612d20613491565b8160051b612d2f82820161333d565b838152828101908684018388018501891015612d49578687fd5b8693505b85841015612d6b578035835260019390930192918401918401612d4d565b50979650505050505050565b600060208284031215612d88578081fd5b611b6182612cd9565b60008060408385031215612da3578081fd5b612dac83612cd9565b9150612dba60208401612cd9565b90509250929050565b600080600060608486031215612dd7578081fd5b612de084612cd9565b9250612dee60208501612cd9565b9150604084013590509250925092565b60008060008060808587031215612e13578081fd5b612e1c85612cd9565b9350612e2a60208601612cd9565b92506040850135915060608501356001600160401b03811115612e4b578182fd5b8501601f81018713612e5b578182fd5b612e6a87823560208401612c82565b91505092959194509250565b60008060408385031215612e88578182fd5b612e9183612cd9565b91506020830135612ea1816134a7565b809150509250929050565b60008060408385031215612ebe578182fd5b612ec783612cd9565b946020939093013593505050565b60008060408385031215612ee7578182fd5b82356001600160401b03811115612efc578283fd5b612f0885828601612cf5565b925050612dba60208401612cd9565b600080600060608486031215612f2b578283fd5b83356001600160401b03811115612f40578384fd5b612f4c86828701612cf5565b935050602084013591506040840135612f64816134a7565b809150509250925092565b600060208284031215612f80578081fd5b8135611b61816134a7565b600060208284031215612f9c578081fd5b8151611b61816134a7565b600060208284031215612fb8578081fd5b5035919050565b60008060408385031215612fd1578182fd5b50508035926020909101359150565b600060208284031215612ff1578081fd5b8135611b61816134b5565b60006020828403121561300d578081fd5b8151611b61816134b5565b6000806020838503121561302a578182fd5b82356001600160401b0380821115613040578384fd5b818501915085601f830112613053578384fd5b813581811115613061578485fd5b866020828501011115613072578485fd5b60209290920196919550909350505050565b600060208284031215613095578081fd5b81356001600160401b038111156130aa578182fd5b8201601f810184136130ba578182fd5b611dfa84823560208401612c82565b6000602082840312156130da578081fd5b5051919050565b600080604083850312156130f3578182fd5b823591506020830135612ea1816134a7565b6000815180845261311d8160208601602086016133cf565b601f01601f19169290920160200192915050565b600082516131438184602087016133cf565b9190910192915050565b6000845160206131608285838a016133cf565b8551918401916131738184848a016133cf565b85549201918390600181811c908083168061318f57607f831692505b8583108114156131ad57634e487b7160e01b88526022600452602488fd5b8080156131c157600181146131d2576131fe565b60ff198516885283880195506131fe565b60008b815260209020895b858110156131f65781548a8201529084019088016131dd565b505083880195505b50939b9a5050505050505050505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061324290830184613105565b9695505050505050565b60018060a01b03841681528260208201526060604082015260006132736060830184613105565b95945050505050565b6020808252825182820181905260009190848201906040850190845b818110156132b457835183529284019291840191600101613298565b50909695505050505050565b602081526000611b616020830184613105565b6020808252818101527f507572636861736520776f756c6420657863656564206d617820737570706c79604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b604051601f8201601f191681016001600160401b038111828210171561336557613365613491565b604052919050565b6000821982111561338057613380613465565b500190565b6000826133945761339461347b565b500490565b60008160001904831182151516156133b3576133b3613465565b500290565b6000828210156133ca576133ca613465565b500390565b60005b838110156133ea5781810151838201526020016133d2565b8381111561136e5750506000910152565b600181811c9082168061340f57607f821691505b6020821081141561343057634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561344a5761344a613465565b5060010190565b6000826134605761346061347b565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b8015158114610fb957600080fd5b6001600160e01b031981168114610fb957600080fdfea26469706673582212205cc65f11b9bad865ad482883c4551c3745c6fee0f6ba712c3fcb48519cbf860e64736f6c63430008040033

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

000000000000000000000000c55c2175e90a46602fd42e931f62b3acc1a013ca000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca000000000000000000000000e6a451b2b47e054c8cd37cddaab65aceea61f0cc0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000b1a2bc2ec500000000000000000000000000000000000000000000000000c893d09c8f51500000

-----Decoded View---------------
Arg [0] : _stars (address): 0xc55c2175E90A46602fD42e931f62B3Acc1A013Ca
Arg [1] : _vrfCoordinator (address): 0xf0d54349aDdcf704F77AE15b96510dEA15cb7952
Arg [2] : _link (address): 0x514910771AF9Ca656af840dff83E8264EcF986CA
Arg [3] : _owner (address): 0xE6a451b2b47E054C8Cd37cDdaAB65acEea61F0cc
Arg [4] : _ethAllowed (bool): True
Arg [5] : _starsAllowed (bool): True
Arg [6] : _ethPrice (uint256): 50000000000000000
Arg [7] : _starsPrice (uint256): 3700000000000000000000

-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 000000000000000000000000c55c2175e90a46602fd42e931f62b3acc1a013ca
Arg [1] : 000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952
Arg [2] : 000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca
Arg [3] : 000000000000000000000000e6a451b2b47e054c8cd37cddaab65aceea61f0cc
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [6] : 00000000000000000000000000000000000000000000000000b1a2bc2ec50000
Arg [7] : 0000000000000000000000000000000000000000000000c893d09c8f51500000


Deployed Bytecode Sourcemap

75709:8066:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;77877:92;;;;;;;;;;-1:-1:-1;77877:92:0;;;;;:::i;:::-;;:::i;:::-;;25905:305;;;;;;;;;;-1:-1:-1;25905:305:0;;;;;:::i;:::-;;:::i;:::-;;;13163:14:1;;13156:22;13138:41;;13126:2;13111:18;25905:305:0;;;;;;;;29290:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;30793:204::-;;;;;;;;;;-1:-1:-1;30793:204:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;10772:32:1;;;10754:51;;10742:2;10727:18;30793:204:0;10709:102:1;30356:371:0;;;;;;;;;;-1:-1:-1;30356:371:0;;;;;:::i;:::-;;:::i;79296:499::-;;;;;;;;;;-1:-1:-1;79296:499:0;;;;;:::i;:::-;;:::i;76635:24::-;;;;;;;;;;;;;:::i;83113:102::-;;;;;;;;;;-1:-1:-1;83113:102:0;;;;;:::i;:::-;;:::i;25154:303::-;;;;;;;;;;-1:-1:-1;25408:12:0;;25392:13;;:28;25154:303;;;13336:25:1;;;13324:2;13309:18;25154:303:0;13291:76:1;31650:170:0;;;;;;;;;;-1:-1:-1;31650:170:0;;;;;:::i;:::-;;:::i;76196:35::-;;;;;;;;;;-1:-1:-1;76196:35:0;;;;;;;;;;;76053:41;;;;;;;;;;;;76090:4;76053:41;;79801:85;;;;;;;;;;;;;:::i;83424:238::-;;;;;;;;;;;;;:::i;76101:22::-;;;;;;;;;;-1:-1:-1;76101:22:0;;;;;;;;76479:37;;;;;;;;;;;;;;;;31891:185;;;;;;;;;;-1:-1:-1;31891:185:0;;;;;:::i;:::-;;:::i;81662:655::-;;;;;;;;;;-1:-1:-1;81662:655:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;82852:147::-;;;;;;;;;;-1:-1:-1;82852:147:0;;;;;:::i;:::-;;:::i;76238:28::-;;;;;;;;;;-1:-1:-1;76238:28:0;;;;;;;;;;;76556:33;;;;;;;;;;;;;:::i;76381:54::-;;;;;;;;;;-1:-1:-1;76381:54:0;;;;;:::i;:::-;;;;;;;;;;;;;;76523:28;;;;;;;;;;;;;:::i;29099:124::-;;;;;;;;;;-1:-1:-1;29099:124:0;;;;;:::i;:::-;;:::i;81258:398::-;;;;;;:::i;:::-;;:::i;26274:206::-;;;;;;;;;;-1:-1:-1;26274:206:0;;;;;:::i;:::-;;:::i;54519:103::-;;;;;;;;;;;;;:::i;83005:102::-;;;;;;;;;;-1:-1:-1;83005:102:0;;;;;:::i;:::-;;:::i;75914:25::-;;;;;;;;;;;;;;;;80470:782;;;;;;:::i;:::-;;:::i;53868:87::-;;;;;;;;;;-1:-1:-1;53941:6:0;;-1:-1:-1;;;;;53941:6:0;53868:87;;76004:44;;;;;;;;;;;;76046:2;76004:44;;68500:233;;;;;;;;;;-1:-1:-1;68500:233:0;;;;;:::i;:::-;;:::i;29459:104::-;;;;;;;;;;;;;:::i;78081:82::-;;;;;;;;;;;;;:::i;76440:34::-;;;;;;;;;;;;;;;;31069:279;;;;;;;;;;-1:-1:-1;31069:279:0;;;;;:::i;:::-;;:::i;77975:100::-;;;;;;;;;;-1:-1:-1;77975:100:0;;;;;:::i;:::-;;:::i;76594:36::-;;;;;;;;;;;;;:::i;76128:24::-;;;;;;;;;;-1:-1:-1;76128:24:0;;;;;;;;;;;78263:332;;;;;;;;;;-1:-1:-1;78263:332:0;;;;;:::i;:::-;;:::i;32147:369::-;;;;;;;;;;-1:-1:-1;32147:369:0;;;;;:::i;:::-;;:::i;82323:523::-;;;;;;;;;;-1:-1:-1;82323:523:0;;;;;:::i;:::-;;:::i;76346:28::-;;;;;;;;;;;;;;;;76314:27;;;;;;;;;;;;;;;;78817:473;;;;;;;;;;-1:-1:-1;78817:473:0;;;;;:::i;:::-;;:::i;78169:88::-;;;;;;;;;;;;;:::i;76271:36::-;;;;;;;;;;-1:-1:-1;76271:36:0;;;;;;;;;;;83221:83;;;;;;;;;;-1:-1:-1;83221:83:0;;;;;:::i;:::-;;:::i;31419:164::-;;;;;;;;;;-1:-1:-1;31419:164:0;;;;;:::i;:::-;-1:-1:-1;;;;;31540:25:0;;;31516:4;31540:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;31419:164;80315:149;;;;;;;;;;-1:-1:-1;80315:149:0;;;;;:::i;:::-;;:::i;76159:32::-;;;;;;;;;;-1:-1:-1;76159:32:0;;;;;;;;;;;54777:201;;;;;;;;;;-1:-1:-1;54777:201:0;;;;;:::i;:::-;;:::i;79992:317::-;;;;;;;;;;-1:-1:-1;79992:317:0;;;;;:::i;:::-;;:::i;79892:94::-;;;;;;;;;;;;;:::i;75886:23::-;;;;;;;;;;;;;;;;83310:108;;;;;;;;;;-1:-1:-1;83310:108:0;;;;;:::i;:::-;;:::i;77877:92::-;53941:6;;-1:-1:-1;;;;;53941:6:0;18108:10;54088:23;54080:68;;;;-1:-1:-1;;;54080:68:0;;;;;;;:::i;:::-;;;;;;;;;77943:8:::1;:20:::0;77877:92::o;25905:305::-;26007:4;-1:-1:-1;;;;;;26044:40:0;;-1:-1:-1;;;26044:40:0;;:105;;-1:-1:-1;;;;;;;26101:48:0;;-1:-1:-1;;;26101:48:0;26044:105;:158;;;-1:-1:-1;;;;;;;;;;21354:40:0;;;26166:36;26024:178;25905:305;-1:-1:-1;;25905:305:0:o;29290:100::-;29344:13;29377:5;29370:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29290:100;:::o;30793:204::-;30861:7;30886:16;30894:7;30886;:16::i;:::-;30881:64;;30911:34;;-1:-1:-1;;;30911:34:0;;;;;;;;;;;30881:64;-1:-1:-1;30965:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;30965:24:0;;30793:204::o;30356:371::-;30429:13;30445:24;30461:7;30445:15;:24::i;:::-;30429:40;;30490:5;-1:-1:-1;;;;;30484:11:0;:2;-1:-1:-1;;;;;30484:11:0;;30480:48;;;30504:24;;-1:-1:-1;;;30504:24:0;;;;;;;;;;;30480:48;18108:10;-1:-1:-1;;;;;30545:21:0;;;;;;:63;;-1:-1:-1;30571:37:0;30588:5;18108:10;31419:164;:::i;30571:37::-;30570:38;30545:63;30541:138;;;30632:35;;-1:-1:-1;;;30632:35:0;;;;;;;;;;;30541:138;30691:28;30700:2;30704:7;30713:5;30691:8;:28::i;:::-;30356:371;;;:::o;79296:499::-;53941:6;;-1:-1:-1;;;;;53941:6:0;18108:10;54088:23;54080:68;;;;-1:-1:-1;;;54080:68:0;;;;;;;:::i;:::-;79427:1:::1;79410:14;:18;:47;;;;;79450:7;;79432:14;:25;;79410:47;79394:113;;;::::0;-1:-1:-1;;;79394:113:0;;15992:2:1;79394:113:0::1;::::0;::::1;15974:21:1::0;;;16011:18;;;16004:30;16070:34;16050:18;;;16043:62;16122:18;;79394:113:0::1;15964:182:1::0;79394:113:0::1;79526:7;::::0;:27:::1;::::0;79538:14;79526:11:::1;:27::i;:::-;79516:7;:37:::0;79567:9:::1;79562:113;79587:32;76046:2;79587:14:::0;:32:::1;:::i;:::-;79582:1;:38;79562:113;;;79636:31;79646:3;76046:2;79636:9;:31::i;:::-;79622:3:::0;::::1;::::0;::::1;:::i;:::-;;;;79562:113;;;-1:-1:-1::0;79722:1:0::1;79687:32;76046:2;79687:14:::0;:32:::1;:::i;:::-;:36;79683:107;;;79734:48;79744:3:::0;79749:32:::1;76046:2;79749:14:::0;:32:::1;:::i;:::-;79734:9;:48::i;:::-;79296:499:::0;;:::o;76635:24::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;83113:102::-;53941:6;;-1:-1:-1;;;;;53941:6:0;18108:10;54088:23;54080:68;;;;-1:-1:-1;;;54080:68:0;;;;;;;:::i;:::-;83187:22;;::::1;::::0;:9:::1;::::0;:22:::1;::::0;::::1;::::0;::::1;:::i;31650:170::-:0;31784:28;31794:4;31800:2;31804:7;31784:9;:28::i;79801:85::-;53941:6;;-1:-1:-1;;;;;53941:6:0;18108:10;54088:23;54080:68;;;;-1:-1:-1;;;54080:68:0;;;;;;;:::i;:::-;79868:12:::1;::::0;;-1:-1:-1;;79852:28:0;::::1;79868:12:::0;;;;::::1;;;79867:13;79852:28:::0;;::::1;;::::0;;79801:85::o;83424:238::-;53941:6;;-1:-1:-1;;;;;53941:6:0;18108:10;54088:23;54080:68;;;;-1:-1:-1;;;54080:68:0;;;;;;;:::i;:::-;83471:7:::1;83492;53941:6:::0;;-1:-1:-1;;;;;53941:6:0;;53868:87;83492:7:::1;-1:-1:-1::0;;;;;83484:21:0::1;83514;83484:57;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;83470:71;;;83556:2;83548:40;;;::::0;-1:-1:-1;;;83548:40:0;;15231:2:1;83548:40:0::1;::::0;::::1;15213:21:1::0;15270:2;15250:18;;;15243:30;15309:27;15289:18;;;15282:55;15354:18;;83548:40:0::1;15203:175:1::0;83548:40:0::1;83597:59;83616:7;53941:6:::0;;-1:-1:-1;;;;;53941:6:0;;53868:87;83616:7:::1;83625:5;::::0;:30:::1;::::0;-1:-1:-1;;;83625:30:0;;83649:4:::1;83625:30;::::0;::::1;10754:51:1::0;-1:-1:-1;;;;;83625:5:0;;::::1;::::0;:15:::1;::::0;10727:18:1;;83625:30:0::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;83597:5;::::0;-1:-1:-1;;;;;83597:5:0::1;::::0;:59;:18:::1;:59::i;:::-;54159:1;83424:238::o:0;31891:185::-;32029:39;32046:4;32052:2;32056:7;32029:39;;;;;;;;;;;;:16;:39::i;81662:655::-;81739:16;81767:23;81793:17;81803:6;81793:9;:17::i;:::-;81767:43;;81817:30;81864:15;-1:-1:-1;;;;;81850:30:0;;;;;-1:-1:-1;;;81850:30:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;81850:30:0;;81817:63;;81887:22;81920:23;81956:327;81989:15;81971;:33;:68;;;;-1:-1:-1;25408:12:0;;25392:13;;:28;82008:14;:31;;81971:68;81956:327;;;82056:25;82084:23;82092:14;82084:7;:23::i;:::-;82056:51;;82143:6;-1:-1:-1;;;;;82122:27:0;:17;-1:-1:-1;;;;;82122:27:0;;82118:131;;;82195:14;82162:13;82176:15;82162:30;;;;;;-1:-1:-1;;;82162:30:0;;;;;;;;;;;;;;;;;;:47;82222:17;;;;:::i;:::-;;;;82118:131;82259:16;;;;:::i;:::-;;;;81956:327;;;;-1:-1:-1;82298:13:0;;81662:655;-1:-1:-1;;;;81662:655:0:o;82852:147::-;53941:6;;-1:-1:-1;;;;;53941:6:0;18108:10;54088:23;54080:68;;;;-1:-1:-1;;;54080:68:0;;;;;;;:::i;:::-;82955:38;;::::1;::::0;:17:::1;::::0;:38:::1;::::0;::::1;::::0;::::1;:::i;76556:33::-:0;;;;;;;:::i;76523:28::-;;;;;;;:::i;29099:124::-;29163:7;29190:20;29202:7;29190:11;:20::i;:::-;:25;;29099:124;-1:-1:-1;;29099:124:0:o;81258:398::-;81367:15;81384:16;76802:15;76798:1;:19;:57;;;;;76046:2;76821:15;:34;;76798:57;76782:110;;;;-1:-1:-1;;;76782:110:0;;20509:2:1;76782:110:0;;;20491:21:1;20548:2;20528:18;;;20521:30;-1:-1:-1;;;20567:18:1;;;20560:49;20626:18;;76782:110:0;20481:169:1;76782:110:0;76905:15;76901:406;;;76939:12;;;;;;;76931:52;;;;-1:-1:-1;;;76931:52:0;;19795:2:1;76931:52:0;;;19777:21:1;19834:2;19814:18;;;19807:30;19873:29;19853:18;;;19846:57;19920:18;;76931:52:0;19767:177:1;76931:52:0;76994:115;77027:10;77056:4;77085:15;77072:10;;:28;;;;:::i;:::-;76994:5;;-1:-1:-1;;;;;76994:5:0;;:115;;:22;:115::i;:::-;76901:406;;;77140:10;;;;77132:48;;;;-1:-1:-1;;;77132:48:0;;14473:2:1;77132:48:0;;;14455:21:1;14512:2;14492:18;;;14485:30;-1:-1:-1;;;14531:18:1;;;14524:55;14596:18;;77132:48:0;14445:175:1;77132:48:0;77233:15;77222:8;;:26;;;;:::i;:::-;77209:9;:39;77191:108;;;;-1:-1:-1;;;77191:108:0;;17163:2:1;77191:108:0;;;17145:21:1;17202:2;17182:18;;;17175:30;17241:31;17221:18;;;17214:59;17290:18;;77191:108:0;17135:179:1;77191:108:0;81420:12:::1;::::0;;;::::1;;;81412:57;;;::::0;-1:-1:-1;;;81412:57:0;;21673:2:1;81412:57:0::1;::::0;::::1;21655:21:1::0;;;21692:18;;;21685:30;21751:34;21731:18;;;21724:62;21803:18;;81412:57:0::1;21645:182:1::0;81412:57:0::1;81545:7;::::0;81530:23:::1;::::0;76090:4:::1;::::0;81530:14:::1;:23::i;:::-;81492:34;81510:15;81492:13;25408:12:::0;;25392:13;;:28;;25154:303;81492:13:::1;:17:::0;::::1;:34::i;:::-;:61;;81476:127;;;;-1:-1:-1::0;;;81476:127:0::1;;;;;;;:::i;:::-;81612:38;81622:10;81634:15;81612:9;:38::i;:::-;81258:398:::0;;;;:::o;26274:206::-;26338:7;-1:-1:-1;;;;;26362:19:0;;26358:60;;26390:28;;-1:-1:-1;;;26390:28:0;;;;;;;;;;;26358:60;-1:-1:-1;;;;;;26444:19:0;;;;;:12;:19;;;;;:27;-1:-1:-1;;;;;26444:27:0;;26274:206::o;54519:103::-;53941:6;;-1:-1:-1;;;;;53941:6:0;18108:10;54088:23;54080:68;;;;-1:-1:-1;;;54080:68:0;;;;;;;:::i;:::-;54584:30:::1;54611:1;54584:18;:30::i;:::-;54519:103::o:0;83005:102::-;53941:6;;-1:-1:-1;;;;;53941:6:0;18108:10;54088:23;54080:68;;;;-1:-1:-1;;;54080:68:0;;;;;;;:::i;:::-;83079:22;;::::1;::::0;:9:::1;::::0;:22:::1;::::0;::::1;::::0;::::1;:::i;80470:782::-:0;80616:15;80633:16;76802:15;76798:1;:19;:57;;;;;76046:2;76821:15;:34;;76798:57;76782:110;;;;-1:-1:-1;;;76782:110:0;;20509:2:1;76782:110:0;;;20491:21:1;20548:2;20528:18;;;20521:30;-1:-1:-1;;;20567:18:1;;;20560:49;20626:18;;76782:110:0;20481:169:1;76782:110:0;76905:15;76901:406;;;76939:12;;;;;;;76931:52;;;;-1:-1:-1;;;76931:52:0;;19795:2:1;76931:52:0;;;19777:21:1;19834:2;19814:18;;;19807:30;19873:29;19853:18;;;19846:57;19920:18;;76931:52:0;19767:177:1;76931:52:0;76994:115;77027:10;77056:4;77085:15;77072:10;;:28;;;;:::i;76994:115::-;76901:406;;;77140:10;;;;77132:48;;;;-1:-1:-1;;;77132:48:0;;14473:2:1;77132:48:0;;;14455:21:1;14512:2;14492:18;;;14485:30;-1:-1:-1;;;14531:18:1;;;14524:55;14596:18;;77132:48:0;14445:175:1;77132:48:0;77233:15;77222:8;;:26;;;;:::i;:::-;77209:9;:39;77191:108;;;;-1:-1:-1;;;77191:108:0;;17163:2:1;77191:108:0;;;17145:21:1;17202:2;17182:18;;;17175:30;17241:31;17221:18;;;17214:59;17290:18;;77191:108:0;17135:179:1;77191:108:0;80666:15:::1;::::0;;;::::1;;;80658:63;;;::::0;-1:-1:-1;;;80658:63:0;;14827:2:1;80658:63:0::1;::::0;::::1;14809:21:1::0;14866:2;14846:18;;;14839:30;14905:34;14885:18;;;14878:62;-1:-1:-1;;;14956:18:1;;;14949:33;14999:19;;80658:63:0::1;14799:225:1::0;80658:63:0::1;80744:33;80758:6;80766:10;80744:13;:33::i;:::-;80728:115;;;::::0;-1:-1:-1;;;80728:115:0;;17521:2:1;80728:115:0::1;::::0;::::1;17503:21:1::0;17560:2;17540:18;;;17533:30;17599:34;17579:18;;;17572:62;-1:-1:-1;;;17650:18:1;;;17643:46;17706:19;;80728:115:0::1;17493:238:1::0;80728:115:0::1;80886:10;80866:31;::::0;;;:19:::1;:31;::::0;;;;;75997:2:::1;::::0;80866:49:::1;::::0;80900:15;;80866:49:::1;:::i;:::-;:86;;80850:156;;;::::0;-1:-1:-1;;;80850:156:0;;21268:2:1;80850:156:0::1;::::0;::::1;21250:21:1::0;21307:2;21287:18;;;21280:30;21346:34;21326:18;;;21319:62;-1:-1:-1;;;21397:18:1;;;21390:34;21441:19;;80850:156:0::1;21240:226:1::0;80850:156:0::1;81082:7;::::0;81067:23:::1;::::0;76090:4:::1;::::0;81067:14:::1;:23::i;:::-;81029:34;81047:15;81029:13;25408:12:::0;;25392:13;;:28;;25154:303;81029:34:::1;:61;;81013:127;;;;-1:-1:-1::0;;;81013:127:0::1;;;;;;;:::i;:::-;81149:38;81159:10;81171:15;81149:9;:38::i;:::-;81216:10;81196:31;::::0;;;:19:::1;:31;::::0;;;;:50;;81231:15;;81196:31;:50:::1;::::0;81231:15;;81196:50:::1;:::i;:::-;::::0;;;-1:-1:-1;;;;;;;80470:782:0:o;68500:233::-;68616:10;-1:-1:-1;;;;;68630:14:0;68616:28;;68608:72;;;;-1:-1:-1;;;68608:72:0;;19435:2:1;68608:72:0;;;19417:21:1;19474:2;19454:18;;;19447:30;19513:33;19493:18;;;19486:61;19564:18;;68608:72:0;19407:181:1;68608:72:0;68687:40;68705:9;68716:10;68687:17;:40::i;29459:104::-;29515:13;29548:7;29541:14;;;;;:::i;78081:82::-;53941:6;;-1:-1:-1;;;;;53941:6:0;18108:10;54088:23;54080:68;;;;-1:-1:-1;;;54080:68:0;;;;;;;:::i;:::-;78147:10:::1;::::0;;-1:-1:-1;;78133:24:0;::::1;78147:10;::::0;;::::1;78146:11;78133:24;::::0;;78081:82::o;31069:279::-;-1:-1:-1;;;;;31160:24:0;;18108:10;31160:24;31156:54;;;31193:17;;-1:-1:-1;;;31193:17:0;;;;;;;;;;;31156:54;18108:10;31223:32;;;;:18;:32;;;;;;;;-1:-1:-1;;;;;31223:42:0;;;;;;;;;;;;:53;;-1:-1:-1;;31223:53:0;;;;;;;;;;31292:48;;13138:41:1;;;31223:42:0;;18108:10;31292:48;;13111:18:1;31292:48:0;;;;;;;31069:279;;:::o;77975:100::-;53941:6;;-1:-1:-1;;;;;53941:6:0;18108:10;54088:23;54080:68;;;;-1:-1:-1;;;54080:68:0;;;;;;;:::i;:::-;78045:10:::1;:24:::0;77975:100::o;76594:36::-;;;;;;;:::i;78263:332::-;53941:6;;78368:17;;-1:-1:-1;;;;;53941:6:0;18108:10;54088:23;54080:68;;;;-1:-1:-1;;;54080:68:0;;;;;;;:::i;:::-;78405:13:::1;::::0;:18;78397:65:::1;;;::::0;-1:-1:-1;;;78397:65:0;;16760:2:1;78397:65:0::1;::::0;::::1;16742:21:1::0;16799:2;16779:18;;;16772:30;16838:34;16818:18;;;16811:62;-1:-1:-1;;;16889:18:1;;;16882:32;16931:19;;78397:65:0::1;16732:224:1::0;78397:65:0::1;78469:18;78490:33;78508:8;78518:4;78490:17;:33::i;:::-;78530:22;:35:::0;;;;78263:332;-1:-1:-1;;;;78263:332:0:o;32147:369::-;32314:28;32324:4;32330:2;32334:7;32314:9;:28::i;:::-;-1:-1:-1;;;;;32357:13:0;;10366:19;:23;;32357:76;;;;;32377:56;32408:4;32414:2;32418:7;32427:5;32377:30;:56::i;:::-;32376:57;32357:76;32353:156;;;32457:40;;-1:-1:-1;;;32457:40:0;;;;;;;;;;;82323:523;82422:13;82463:17;82471:8;82463:7;:17::i;:::-;82447:98;;;;-1:-1:-1;;;82447:98:0;;19019:2:1;82447:98:0;;;19001:21:1;19058:2;19038:18;;;19031:30;19097:34;19077:18;;;19070:62;-1:-1:-1;;;19148:18:1;;;19141:45;19203:19;;82447:98:0;18991:237:1;82447:98:0;82558:8;;;;;;;82554:64;;82593:17;82586:24;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;82323:523;;;:::o;82554:64::-;82626:28;82657:10;:8;:10::i;:::-;82626:41;;82719:1;82694:14;82688:28;:32;:152;;;;;;;;;;;;;;;;;82768:14;82784:19;:8;:17;:19::i;:::-;82805:9;82751:64;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;82688:152;82674:166;82323:523;-1:-1:-1;;;82323:523:0:o;78817:473::-;53941:6;;-1:-1:-1;;;;;53941:6:0;18108:10;54088:23;54080:68;;;;-1:-1:-1;;;54080:68:0;;;;;;;:::i;:::-;78987:7:::1;::::0;78972:23:::1;::::0;76090:4:::1;::::0;78972:14:::1;:23::i;:::-;78934:34;78952:15;78934:13;25408:12:::0;;25392:13;;:28;;25154:303;78934:34:::1;:61;;78918:127;;;;-1:-1:-1::0;;;78918:127:0::1;;;;;;;:::i;:::-;79059:9;79054:114;79079:33;76046:2;79079:15:::0;:33:::1;:::i;:::-;79074:1;:39;79054:114;;;79129:31;79139:3;76046:2;79129:9;:31::i;:::-;79115:3:::0;::::1;::::0;::::1;:::i;:::-;;;;79054:114;;78169:88:::0;53941:6;;-1:-1:-1;;;;;53941:6:0;18108:10;54088:23;54080:68;;;;-1:-1:-1;;;54080:68:0;;;;;;;:::i;:::-;78239:12:::1;::::0;;-1:-1:-1;;78223:28:0;::::1;78239:12;::::0;;;::::1;;;78238:13;78223:28:::0;;::::1;;::::0;;78169:88::o;83221:83::-;53941:6;;-1:-1:-1;;;;;53941:6:0;18108:10;54088:23;54080:68;;;;-1:-1:-1;;;54080:68:0;;;;;;;:::i;:::-;83281:8:::1;:17:::0;;;::::1;;::::0;::::1;-1:-1:-1::0;;83281:17:0;;::::1;::::0;;;::::1;::::0;;83221:83::o;80315:149::-;53941:6;;-1:-1:-1;;;;;53941:6:0;18108:10;54088:23;54080:68;;;;-1:-1:-1;;;54080:68:0;;;;;;;:::i;:::-;80416:19:::1;:42:::0;80315:149::o;54777:201::-;53941:6;;-1:-1:-1;;;;;53941:6:0;18108:10;54088:23;54080:68;;;;-1:-1:-1;;;54080:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;54866:22:0;::::1;54858:73;;;::::0;-1:-1:-1;;;54858:73:0;;15585:2:1;54858:73:0::1;::::0;::::1;15567:21:1::0;15624:2;15604:18;;;15597:30;15663:34;15643:18;;;15636:62;-1:-1:-1;;;15714:18:1;;;15707:36;15760:19;;54858:73:0::1;15557:228:1::0;54858:73:0::1;54942:28;54961:8;54942:18;:28::i;79992:317::-:0;80094:4;-1:-1:-1;;;;;80118:22:0;;80110:65;;;;-1:-1:-1;;;80110:65:0;;18660:2:1;80110:65:0;;;18642:21:1;18699:2;18679:18;;;18672:30;18738:32;18718:18;;;18711:60;18788:18;;80110:65:0;18632:180:1;80110:65:0;80209:26;;-1:-1:-1;;8246:2:1;8242:15;;;8238:53;80209:26:0;;;8226:66:1;80184:12:0;;8308::1;;80209:26:0;;;;;;;;;;;;80199:37;;;;;;80184:52;;80250:53;80269:6;80277:19;;80298:4;80250:18;:53::i;:::-;80243:60;79992:317;-1:-1:-1;;;;79992:317:0:o;79892:94::-;53941:6;;-1:-1:-1;;;;;53941:6:0;18108:10;54088:23;54080:68;;;;-1:-1:-1;;;54080:68:0;;;;;;;:::i;:::-;79965:15:::1;::::0;;-1:-1:-1;;79946:34:0;::::1;79965:15:::0;;;;::::1;;;79964:16;79946:34:::0;;::::1;;::::0;;79892:94::o;83310:108::-;53941:6;;-1:-1:-1;;;;;53941:6:0;18108:10;54088:23;54080:68;;;;-1:-1:-1;;;54080:68:0;;;;;;;:::i;:::-;83388:24:::1;:10;83401:11:::0;;83388:24:::1;:::i;32771:187::-:0;32828:4;32892:13;;32882:7;:23;32852:98;;;;-1:-1:-1;;32923:20:0;;;;:11;:20;;;;;:27;-1:-1:-1;;;32923:27:0;;;;32922:28;;32771:187::o;40382:196::-;40497:24;;;;:15;:24;;;;;;:29;;-1:-1:-1;;;;;;40497:29:0;-1:-1:-1;;;;;40497:29:0;;;;;;;;;40542:28;;40497:24;;40542:28;;;;;;;40382:196;;;:::o;46619:98::-;46677:7;46704:5;46708:1;46704;:5;:::i;32966:104::-;33035:27;33045:2;33049:8;33035:27;;;;;;;;;;;;:9;:27::i;35884:2112::-;35999:35;36037:20;36049:7;36037:11;:20::i;:::-;36112:18;;35999:58;;-1:-1:-1;36070:22:0;;-1:-1:-1;;;;;36096:34:0;18108:10;-1:-1:-1;;;;;36096:34:0;;:101;;;-1:-1:-1;36164:18:0;;36147:50;;18108:10;31419:164;:::i;36147:50::-;36096:154;;;-1:-1:-1;18108:10:0;36214:20;36226:7;36214:11;:20::i;:::-;-1:-1:-1;;;;;36214:36:0;;36096:154;36070:181;;36269:17;36264:66;;36295:35;;-1:-1:-1;;;36295:35:0;;;;;;;;;;;36264:66;36367:4;-1:-1:-1;;;;;36345:26:0;:13;:18;;;-1:-1:-1;;;;;36345:26:0;;36341:67;;36380:28;;-1:-1:-1;;;36380:28:0;;;;;;;;;;;36341:67;-1:-1:-1;;;;;36423:16:0;;36419:52;;36448:23;;-1:-1:-1;;;36448:23:0;;;;;;;;;;;36419:52;36592:49;36609:1;36613:7;36622:13;:18;;;36592:8;:49::i;:::-;-1:-1:-1;;;;;36937:18:0;;;;;;;:12;:18;;;;;;;;:31;;-1:-1:-1;;36937:31:0;;;-1:-1:-1;;;;;36937:31:0;;;-1:-1:-1;;36937:31:0;;;;;;;36983:16;;;;;;;;;:29;;;;;;;;-1:-1:-1;36983:29:0;;;;;;;;;;;37029:20;;;:11;:20;;;;;;:30;;-1:-1:-1;;;;;;37074:61:0;;;;-1:-1:-1;;;37119:15:0;37074:61;;;;;;;;;;;37409:11;;;37439:24;;;;;:29;37409:11;;37439:29;37435:445;;37664:13;;37650:11;:27;37646:219;;;37734:18;;;37702:24;;;:11;:24;;;;;;;;:50;;37817:28;;;;-1:-1:-1;;;;;37775:70:0;-1:-1:-1;;;37775:70:0;-1:-1:-1;;;;;;37775:70:0;;;-1:-1:-1;;;;;37702:50:0;;;37775:70;;;;;;;37646:219;35884:2112;37927:7;37923:2;-1:-1:-1;;;;;37908:27:0;37917:4;-1:-1:-1;;;;;37908:27:0;;;;;;;;;;;37946:42;35884:2112;;;;;:::o;72330:211::-;72474:58;;-1:-1:-1;;;;;11881:32:1;;72474:58:0;;;11863:51:1;11930:18;;;11923:34;;;72447:86:0;;72467:5;;-1:-1:-1;;;72497:23:0;11836:18:1;;72474:58:0;;;;-1:-1:-1;;72474:58:0;;;;;;;;;;;;;;-1:-1:-1;;;;;72474:58:0;-1:-1:-1;;;;;;72474:58:0;;;;;;;;;;72447:19;:86::i;27929:1108::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;28039:7:0;28122:13;;28115:4;:20;28084:886;;;28156:31;28190:17;;;:11;:17;;;;;;;;;28156:51;;;;;;;;;-1:-1:-1;;;;;28156:51:0;;;;-1:-1:-1;;;28156:51:0;;-1:-1:-1;;;;;28156:51:0;;;;;;;;-1:-1:-1;;;28156:51:0;;;;;;;;;;;;;;28226:729;;28276:14;;-1:-1:-1;;;;;28276:28:0;;28272:101;;28340:9;27929:1108;-1:-1:-1;;;27929:1108:0:o;28272:101::-;-1:-1:-1;;;28715:6:0;28760:17;;;;:11;:17;;;;;;;;;28748:29;;;;;;;;;-1:-1:-1;;;;;28748:29:0;;;;;-1:-1:-1;;;28748:29:0;;-1:-1:-1;;;;;28748:29:0;;;;;;;;-1:-1:-1;;;28748:29:0;;;;;;;;;;;;;28808:28;28804:109;;28876:9;27929:1108;-1:-1:-1;;;27929:1108:0:o;28804:109::-;28675:261;;;28084:886;;28998:31;;-1:-1:-1;;;28998:31:0;;;;;;;;;;;72549:248;72720:68;;-1:-1:-1;;;;;11074:15:1;;;72720:68:0;;;11056:34:1;11126:15;;11106:18;;;11099:43;11158:18;;;11151:34;;;72693:96:0;;72713:5;;-1:-1:-1;;;72743:27:0;10991:18:1;;72720:68:0;10973:218:1;46238:98:0;46296:7;46323:5;46327:1;46323;:5;:::i;55138:191::-;55231:6;;;-1:-1:-1;;;;;55248:17:0;;;-1:-1:-1;;;;;;55248:17:0;;;;;;;55281:40;;55231:6;;;55248:17;55231:6;;55281:40;;55212:16;;55281:40;55138:191;;:::o;78601:210::-;78737:10;78711:22;;:36;78707:99;;;78774:24;76090:4;78774:11;:24;:::i;:::-;78758:13;:40;78601:210;;:::o;66564:1077::-;66674:17;66709:4;-1:-1:-1;;;;;66709:20:0;;66730:14;66746:4;66763:8;65394:1;66752:43;;;;;;;;13546:25:1;;;13602:2;13587:18;;13580:34;13534:2;13519:18;;13501:119;66752:43:0;;;;;;;;;;;;;66709:87;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;67031:15:0;67115:16;;;;;;;;;;;;58025:51;;;;;13856:25:1;;;13897:18;;;13890:34;;;67108:4:0;13940:18:1;;;13933:60;14009:18;;;;14002:34;;;58025:51:0;;;;;;;;;;13828:19:1;;;;58025:51:0;;;58015:62;;;;;;;;;67569:16;;;;;;;:20;;67588:1;67569:20;:::i;:::-;67550:6;:16;;;;;;;;;;;;:39;;;;58642:41;;;;;8488:19:1;;;8523:12;;;8516:28;;;58642:41:0;;;;;;;;;8560:12:1;;;;58642:41:0;;;58632:52;;;;;67603:32;58475:215;41070:667;41254:72;;-1:-1:-1;;;41254:72:0;;41233:4;;-1:-1:-1;;;;;41254:36:0;;;;;:72;;18108:10;;41305:4;;41311:7;;41320:5;;41254:72;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;41254:72:0;;;;;;;;-1:-1:-1;;41254:72:0;;;;;;;;;;;;:::i;:::-;;;41250:480;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;41488:13:0;;41484:235;;41534:40;;-1:-1:-1;;;41534:40:0;;;;;;;;;;;41484:235;41677:6;41671:13;41662:6;41658:2;41654:15;41647:38;41250:480;-1:-1:-1;;;;;;41373:55:0;-1:-1:-1;;;41373:55:0;;-1:-1:-1;41070:667:0;;;;;;:::o;83668:104::-;83728:13;83757:9;83750:16;;;;;:::i;18615:723::-;18671:13;18892:10;18888:53;;-1:-1:-1;;18919:10:0;;;;;;;;;;;;-1:-1:-1;;;18919:10:0;;;;;18615:723::o;18888:53::-;18966:5;18951:12;19007:78;19014:9;;19007:78;;19040:8;;;;:::i;:::-;;-1:-1:-1;19063:10:0;;-1:-1:-1;19071:2:0;19063:10;;:::i;:::-;;;19007:78;;;19095:19;19127:6;-1:-1:-1;;;;;19117:17:0;;;;;-1:-1:-1;;;19117:17:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;19117:17:0;;19095:39;;19145:154;19152:10;;19145:154;;19179:11;19189:1;19179:11;;:::i;:::-;;-1:-1:-1;19248:10:0;19256:2;19248:5;:10;:::i;:::-;19235:24;;:2;:24;:::i;:::-;19222:39;;19205:6;19212;19205:14;;;;;;-1:-1:-1;;;19205:14:0;;;;;;;;;;;;:56;-1:-1:-1;;;;;19205:56:0;;;;;;;;-1:-1:-1;19276:11:0;19285:2;19276:11;;:::i;:::-;;;19145:154;;51334:190;51459:4;51512;51483:25;51496:5;51503:4;51483:12;:25::i;:::-;:33;;51334:190;-1:-1:-1;;;;51334:190:0:o;33433:163::-;33556:32;33562:2;33566:8;33576:5;33583:4;33556:5;:32::i;74903:716::-;75327:23;75353:69;75381:4;75353:69;;;;;;;;;;;;;;;;;75361:5;-1:-1:-1;;;;;75353:27:0;;;:69;;;;;:::i;:::-;75437:17;;75327:95;;-1:-1:-1;75437:21:0;75433:179;;75534:10;75523:30;;;;;;;;;;;;:::i;:::-;75515:85;;;;-1:-1:-1;;;75515:85:0;;20857:2:1;75515:85:0;;;20839:21:1;20896:2;20876:18;;;20869:30;20935:34;20915:18;;;20908:62;-1:-1:-1;;;20986:18:1;;;20979:40;21036:19;;75515:85:0;20829:232:1;51886:675:0;51969:7;52012:4;51969:7;52027:497;52051:5;:12;52047:1;:16;52027:497;;;52085:20;52108:5;52114:1;52108:8;;;;;;-1:-1:-1;;;52108:8:0;;;;;;;;;;;;;;;52085:31;;52151:12;52135;:28;52131:382;;52637:13;52687:15;;;52723:4;52716:15;;;52770:4;52754:21;;52263:57;;52131:382;;;52637:13;52687:15;;;52723:4;52716:15;;;52770:4;52754:21;;52440:57;;52131:382;-1:-1:-1;52065:3:0;;;;:::i;:::-;;;;52027:497;;;-1:-1:-1;52541:12:0;51886:675;-1:-1:-1;;;51886:675:0:o;33855:1775::-;34017:13;;-1:-1:-1;;;;;34045:16:0;;34041:48;;34070:19;;-1:-1:-1;;;34070:19:0;;;;;;;;;;;34041:48;34104:13;34100:44;;34126:18;;-1:-1:-1;;;34126:18:0;;;;;;;;;;;34100:44;-1:-1:-1;;;;;34495:16:0;;;;;;:12;:16;;;;;;;;:44;;-1:-1:-1;;34554:49:0;;-1:-1:-1;;;;;34495:44:0;;;;;;;34554:49;;;;-1:-1:-1;;34495:44:0;;;;;;34554:49;;;;;;;;;;;;;;;;34620:25;;;:11;:25;;;;;;:35;;-1:-1:-1;;;;;;34670:66:0;;;;-1:-1:-1;;;34720:15:0;34670:66;;;;;;;;;;34620:25;34817:23;;;34861:4;:23;;;;-1:-1:-1;;;;;;34869:13:0;;10366:19;:23;;34869:15;34857:641;;;34905:314;34936:38;;34961:12;;-1:-1:-1;;;;;34936:38:0;;;34953:1;;34936:38;;34953:1;;34936:38;35002:69;35041:1;35045:2;35049:14;;;;;;35065:5;35002:30;:69::i;:::-;34997:174;;35107:40;;-1:-1:-1;;;35107:40:0;;;;;;;;;;;34997:174;35214:3;35198:12;:19;;34905:314;;35300:12;35283:13;;:29;35279:43;;35314:8;;;35279:43;34857:641;;;35363:120;35394:40;;35419:14;;;;;-1:-1:-1;;;;;35394:40:0;;;35411:1;;35394:40;;35411:1;;35394:40;35478:3;35462:12;:19;;35363:120;;34857:641;-1:-1:-1;35512:13:0;:28;35562:60;81258:398;12816:229;12953:12;12985:52;13007:6;13015:4;13021:1;13024:12;12953;-1:-1:-1;;;;;10366:19:0;;;14223:60;;;;-1:-1:-1;;;14223:60:0;;20151:2:1;14223:60:0;;;20133:21:1;20190:2;20170:18;;;20163:30;20229:31;20209:18;;;20202:59;20278:18;;14223:60:0;20123:179:1;14223:60:0;14297:12;14311:23;14338:6;-1:-1:-1;;;;;14338:11:0;14357:5;14364:4;14338:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14296:73;;;;14387:51;14404:7;14413:10;14425:12;14387:16;:51::i;:::-;14380:58;13936:510;-1:-1:-1;;;;;;;13936:510:0:o;16622:712::-;16772:12;16801:7;16797:530;;;-1:-1:-1;16832:10:0;16825:17;;16797:530;16946:17;;:21;16942:374;;17144:10;17138:17;17205:15;17192:10;17188:2;17184:19;17177:44;17092:148;17287:12;17280:20;;-1:-1:-1;;;17280:20:0;;;;;;;;:::i;-1:-1:-1:-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14:406:1;78:5;-1:-1:-1;;;;;104:6:1;101:30;98:2;;;134:18;;:::i;:::-;172:57;217:2;196:15;;-1:-1:-1;;192:29:1;223:4;188:40;172:57;:::i;:::-;163:66;;252:6;245:5;238:21;292:3;283:6;278:3;274:16;271:25;268:2;;;309:1;306;299:12;268:2;358:6;353:3;346:4;339:5;335:16;322:43;412:1;405:4;396:6;389:5;385:18;381:29;374:40;88:332;;;;;:::o;425:173::-;493:20;;-1:-1:-1;;;;;542:31:1;;532:42;;522:2;;588:1;585;578:12;522:2;474:124;;;:::o;603:743::-;657:5;710:3;703:4;695:6;691:17;687:27;677:2;;732:5;725;718:20;677:2;772:6;759:20;798:4;-1:-1:-1;;;;;817:2:1;814:26;811:2;;;843:18;;:::i;:::-;889:2;886:1;882:10;912:28;936:2;932;928:11;912:28;:::i;:::-;974:15;;;1005:12;;;;1037:15;;;1071;;;1067:24;;1064:33;-1:-1:-1;1061:2:1;;;1114:5;1107;1100:20;1061:2;1140:5;1131:14;;1154:163;1168:2;1165:1;1162:9;1154:163;;;1225:17;;1213:30;;1186:1;1179:9;;;;;1263:12;;;;1295;;1154:163;;;-1:-1:-1;1335:5:1;667:679;-1:-1:-1;;;;;;;667:679:1:o;1351:196::-;1410:6;1463:2;1451:9;1442:7;1438:23;1434:32;1431:2;;;1484:6;1476;1469:22;1431:2;1512:29;1531:9;1512:29;:::i;1552:270::-;1620:6;1628;1681:2;1669:9;1660:7;1656:23;1652:32;1649:2;;;1702:6;1694;1687:22;1649:2;1730:29;1749:9;1730:29;:::i;:::-;1720:39;;1778:38;1812:2;1801:9;1797:18;1778:38;:::i;:::-;1768:48;;1639:183;;;;;:::o;1827:338::-;1904:6;1912;1920;1973:2;1961:9;1952:7;1948:23;1944:32;1941:2;;;1994:6;1986;1979:22;1941:2;2022:29;2041:9;2022:29;:::i;:::-;2012:39;;2070:38;2104:2;2093:9;2089:18;2070:38;:::i;:::-;2060:48;;2155:2;2144:9;2140:18;2127:32;2117:42;;1931:234;;;;;:::o;2170:696::-;2265:6;2273;2281;2289;2342:3;2330:9;2321:7;2317:23;2313:33;2310:2;;;2364:6;2356;2349:22;2310:2;2392:29;2411:9;2392:29;:::i;:::-;2382:39;;2440:38;2474:2;2463:9;2459:18;2440:38;:::i;:::-;2430:48;;2525:2;2514:9;2510:18;2497:32;2487:42;;2580:2;2569:9;2565:18;2552:32;-1:-1:-1;;;;;2599:6:1;2596:30;2593:2;;;2644:6;2636;2629:22;2593:2;2672:22;;2725:4;2717:13;;2713:27;-1:-1:-1;2703:2:1;;2759:6;2751;2744:22;2703:2;2787:73;2852:7;2847:2;2834:16;2829:2;2825;2821:11;2787:73;:::i;:::-;2777:83;;;2300:566;;;;;;;:::o;2871:325::-;2936:6;2944;2997:2;2985:9;2976:7;2972:23;2968:32;2965:2;;;3018:6;3010;3003:22;2965:2;3046:29;3065:9;3046:29;:::i;:::-;3036:39;;3125:2;3114:9;3110:18;3097:32;3138:28;3160:5;3138:28;:::i;:::-;3185:5;3175:15;;;2955:241;;;;;:::o;3201:264::-;3269:6;3277;3330:2;3318:9;3309:7;3305:23;3301:32;3298:2;;;3351:6;3343;3336:22;3298:2;3379:29;3398:9;3379:29;:::i;:::-;3369:39;3455:2;3440:18;;;;3427:32;;-1:-1:-1;;;3288:177:1:o;3470:442::-;3563:6;3571;3624:2;3612:9;3603:7;3599:23;3595:32;3592:2;;;3645:6;3637;3630:22;3592:2;3690:9;3677:23;-1:-1:-1;;;;;3715:6:1;3712:30;3709:2;;;3760:6;3752;3745:22;3709:2;3788:61;3841:7;3832:6;3821:9;3817:22;3788:61;:::i;:::-;3778:71;;;3868:38;3902:2;3891:9;3887:18;3868:38;:::i;3917:565::-;4016:6;4024;4032;4085:2;4073:9;4064:7;4060:23;4056:32;4053:2;;;4106:6;4098;4091:22;4053:2;4151:9;4138:23;-1:-1:-1;;;;;4176:6:1;4173:30;4170:2;;;4221:6;4213;4206:22;4170:2;4249:61;4302:7;4293:6;4282:9;4278:22;4249:61;:::i;:::-;4239:71;;;4357:2;4346:9;4342:18;4329:32;4319:42;;4411:2;4400:9;4396:18;4383:32;4424:28;4446:5;4424:28;:::i;:::-;4471:5;4461:15;;;4043:439;;;;;:::o;4487:251::-;4543:6;4596:2;4584:9;4575:7;4571:23;4567:32;4564:2;;;4617:6;4609;4602:22;4564:2;4661:9;4648:23;4680:28;4702:5;4680:28;:::i;4743:255::-;4810:6;4863:2;4851:9;4842:7;4838:23;4834:32;4831:2;;;4884:6;4876;4869:22;4831:2;4921:9;4915:16;4940:28;4962:5;4940:28;:::i;5003:190::-;5062:6;5115:2;5103:9;5094:7;5090:23;5086:32;5083:2;;;5136:6;5128;5121:22;5083:2;-1:-1:-1;5164:23:1;;5073:120;-1:-1:-1;5073:120:1:o;5198:258::-;5266:6;5274;5327:2;5315:9;5306:7;5302:23;5298:32;5295:2;;;5348:6;5340;5333:22;5295:2;-1:-1:-1;;5376:23:1;;;5446:2;5431:18;;;5418:32;;-1:-1:-1;5285:171:1:o;5461:255::-;5519:6;5572:2;5560:9;5551:7;5547:23;5543:32;5540:2;;;5593:6;5585;5578:22;5540:2;5637:9;5624:23;5656:30;5680:5;5656:30;:::i;5721:259::-;5790:6;5843:2;5831:9;5822:7;5818:23;5814:32;5811:2;;;5864:6;5856;5849:22;5811:2;5901:9;5895:16;5920:30;5944:5;5920:30;:::i;5985:642::-;6056:6;6064;6117:2;6105:9;6096:7;6092:23;6088:32;6085:2;;;6138:6;6130;6123:22;6085:2;6183:9;6170:23;-1:-1:-1;;;;;6253:2:1;6245:6;6242:14;6239:2;;;6274:6;6266;6259:22;6239:2;6317:6;6306:9;6302:22;6292:32;;6362:7;6355:4;6351:2;6347:13;6343:27;6333:2;;6389:6;6381;6374:22;6333:2;6434;6421:16;6460:2;6452:6;6449:14;6446:2;;;6481:6;6473;6466:22;6446:2;6531:7;6526:2;6517:6;6513:2;6509:15;6505:24;6502:37;6499:2;;;6557:6;6549;6542:22;6499:2;6593;6585:11;;;;;6615:6;;-1:-1:-1;6075:552:1;;-1:-1:-1;;;;6075:552:1:o;6632:480::-;6701:6;6754:2;6742:9;6733:7;6729:23;6725:32;6722:2;;;6775:6;6767;6760:22;6722:2;6820:9;6807:23;-1:-1:-1;;;;;6845:6:1;6842:30;6839:2;;;6890:6;6882;6875:22;6839:2;6918:22;;6971:4;6963:13;;6959:27;-1:-1:-1;6949:2:1;;7005:6;6997;6990:22;6949:2;7033:73;7098:7;7093:2;7080:16;7075:2;7071;7067:11;7033:73;:::i;7312:194::-;7382:6;7435:2;7423:9;7414:7;7410:23;7406:32;7403:2;;;7456:6;7448;7441:22;7403:2;-1:-1:-1;7484:16:1;;7393:113;-1:-1:-1;7393:113:1:o;7511:319::-;7576:6;7584;7637:2;7625:9;7616:7;7612:23;7608:32;7605:2;;;7658:6;7650;7643:22;7605:2;7699:9;7686:23;7676:33;;7759:2;7748:9;7744:18;7731:32;7772:28;7794:5;7772:28;:::i;7835:257::-;7876:3;7914:5;7908:12;7941:6;7936:3;7929:19;7957:63;8013:6;8006:4;8001:3;7997:14;7990:4;7983:5;7979:16;7957:63;:::i;:::-;8074:2;8053:15;-1:-1:-1;;8049:29:1;8040:39;;;;8081:4;8036:50;;7884:208;-1:-1:-1;;7884:208:1:o;8583:274::-;8712:3;8750:6;8744:13;8766:53;8812:6;8807:3;8800:4;8792:6;8788:17;8766:53;:::i;:::-;8835:16;;;;;8720:137;-1:-1:-1;;8720:137:1:o;8862:1531::-;9086:3;9124:6;9118:13;9150:4;9163:51;9207:6;9202:3;9197:2;9189:6;9185:15;9163:51;:::i;:::-;9277:13;;9236:16;;;;9299:55;9277:13;9236:16;9321:15;;;9299:55;:::i;:::-;9445:13;;9376:20;;;9416:3;;9505:1;9527:18;;;;9580;;;;9607:2;;9685:4;9675:8;9671:19;9659:31;;9607:2;9748;9738:8;9735:16;9715:18;9712:40;9709:2;;;-1:-1:-1;;;9775:33:1;;9831:4;9828:1;9821:15;9861:4;9782:3;9849:17;9709:2;9892:18;9919:110;;;;10043:1;10038:330;;;;9885:483;;9919:110;-1:-1:-1;;9954:24:1;;9940:39;;9999:20;;;;-1:-1:-1;9919:110:1;;10038:330;22341:4;22360:17;;;22410:4;22394:21;;10133:3;10149:169;10163:8;10160:1;10157:15;10149:169;;;10245:14;;10230:13;;;10223:37;10288:16;;;;10180:10;;10149:169;;;10153:3;;10349:8;10342:5;10338:20;10331:27;;9885:483;-1:-1:-1;10384:3:1;;9094:1299;-1:-1:-1;;;;;;;;;;;9094:1299:1:o;11196:488::-;-1:-1:-1;;;;;11465:15:1;;;11447:34;;11517:15;;11512:2;11497:18;;11490:43;11564:2;11549:18;;11542:34;;;11612:3;11607:2;11592:18;;11585:31;;;11390:4;;11633:45;;11658:19;;11650:6;11633:45;:::i;:::-;11625:53;11399:285;-1:-1:-1;;;;;;11399:285:1:o;11968:385::-;12200:1;12196;12191:3;12187:11;12183:19;12175:6;12171:32;12160:9;12153:51;12240:6;12235:2;12224:9;12220:18;12213:34;12283:2;12278;12267:9;12263:18;12256:30;12134:4;12303:44;12343:2;12332:9;12328:18;12320:6;12303:44;:::i;:::-;12295:52;12143:210;-1:-1:-1;;;;;12143:210:1:o;12358:635::-;12529:2;12581:21;;;12651:13;;12554:18;;;12673:22;;;12500:4;;12529:2;12752:15;;;;12726:2;12711:18;;;12500:4;12798:169;12812:6;12809:1;12806:13;12798:169;;;12873:13;;12861:26;;12942:15;;;;12907:12;;;;12834:1;12827:9;12798:169;;;-1:-1:-1;12984:3:1;;12509:484;-1:-1:-1;;;;;;12509:484:1:o;14047:219::-;14196:2;14185:9;14178:21;14159:4;14216:44;14256:2;14245:9;14241:18;14233:6;14216:44;:::i;17736:356::-;17938:2;17920:21;;;17957:18;;;17950:30;18016:34;18011:2;17996:18;;17989:62;18083:2;18068:18;;17910:182::o;18097:356::-;18299:2;18281:21;;;18318:18;;;18311:30;18377:34;18372:2;18357:18;;18350:62;18444:2;18429:18;;18271:182::o;22014:275::-;22085:2;22079:9;22150:2;22131:13;;-1:-1:-1;;22127:27:1;22115:40;;-1:-1:-1;;;;;22170:34:1;;22206:22;;;22167:62;22164:2;;;22232:18;;:::i;:::-;22268:2;22261:22;22059:230;;-1:-1:-1;22059:230:1:o;22426:128::-;22466:3;22497:1;22493:6;22490:1;22487:13;22484:2;;;22503:18;;:::i;:::-;-1:-1:-1;22539:9:1;;22474:80::o;22559:120::-;22599:1;22625;22615:2;;22630:18;;:::i;:::-;-1:-1:-1;22664:9:1;;22605:74::o;22684:168::-;22724:7;22790:1;22786;22782:6;22778:14;22775:1;22772:21;22767:1;22760:9;22753:17;22749:45;22746:2;;;22797:18;;:::i;:::-;-1:-1:-1;22837:9:1;;22736:116::o;22857:125::-;22897:4;22925:1;22922;22919:8;22916:2;;;22930:18;;:::i;:::-;-1:-1:-1;22967:9:1;;22906:76::o;22987:258::-;23059:1;23069:113;23083:6;23080:1;23077:13;23069:113;;;23159:11;;;23153:18;23140:11;;;23133:39;23105:2;23098:10;23069:113;;;23200:6;23197:1;23194:13;23191:2;;;-1:-1:-1;;23235:1:1;23217:16;;23210:27;23040:205::o;23250:380::-;23329:1;23325:12;;;;23372;;;23393:2;;23447:4;23439:6;23435:17;23425:27;;23393:2;23500;23492:6;23489:14;23469:18;23466:38;23463:2;;;23546:10;23541:3;23537:20;23534:1;23527:31;23581:4;23578:1;23571:15;23609:4;23606:1;23599:15;23463:2;;23305:325;;;:::o;23635:135::-;23674:3;-1:-1:-1;;23695:17:1;;23692:2;;;23715:18;;:::i;:::-;-1:-1:-1;23762:1:1;23751:13;;23682:88::o;23775:112::-;23807:1;23833;23823:2;;23838:18;;:::i;:::-;-1:-1:-1;23872:9:1;;23813:74::o;23892:127::-;23953:10;23948:3;23944:20;23941:1;23934:31;23984:4;23981:1;23974:15;24008:4;24005:1;23998:15;24024:127;24085:10;24080:3;24076:20;24073:1;24066:31;24116:4;24113:1;24106:15;24140:4;24137:1;24130:15;24156:127;24217:10;24212:3;24208:20;24205:1;24198:31;24248:4;24245:1;24238:15;24272:4;24269:1;24262:15;24288:118;24374:5;24367:13;24360:21;24353:5;24350:32;24340:2;;24396:1;24393;24386:12;24411:131;-1:-1:-1;;;;;;24485:32:1;;24475:43;;24465:2;;24532:1;24529;24522:12

Swarm Source

ipfs://5cc65f11b9bad865ad482883c4551c3745c6fee0f6ba712c3fcb48519cbf860e

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.