ETH Price: $3,875.91 (+7.40%)

Contract

0xD15DEbfb91714DE01De32BC0680Bb97dDB7C70eA
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To

There are no matching entries

Please try again later

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block From To
213281932024-12-04 9:18:5911 hrs ago1733303939  Contract Creation0 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ExpandedNFTSelectiveMint

Compiler Version
v0.8.25+commit.b61c2a91

Optimization Enabled:
Yes with 10000 runs

Other Settings:
shanghai EvmVersion
File 1 of 14 : ExpandedNFTSelectiveMint.sol
pragma solidity 0.8.25;

import { IERC721 } from "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import { ERC721 } from "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import { Strings } from "@openzeppelin/contracts/utils/Strings.sol";
import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol";
import { AggregatorV3Interface } from "@chainlink/contracts/src/v0.8/shared/interfaces/AggregatorV3Interface.sol";

error NotOnAllowlist();
error MintLimitExceeded();
error MintNotForSale();
error InvalidPrice();
error StalePrice();
error InvalidTokenIds();
error InvalidArrayLengths();
error InvalidPayment();
error NotOwnerOrTokenOwner();
error TokenAlreadyRedeemed();
error WithdrawalFailed();
error InvalidPricing();
error InvalidRecipient();

contract ExpandedNFTSelectiveMint is ERC721, Ownable {
    enum MintState {
        NOT_FOR_SALE,
        ALLOWLIST_SALE,
        PUBLIC_SALE
    }

    struct Pricing {
        uint256 publicMintPrice;
        // price of allowlist members will be same as lifetime pass holders
        uint256 allowlistMintPrice;
        // public redeem price is in USDT with 8 decimals
        uint256 publicRedeemPrice;
        // allowlist redeem price is in USDT with 8 decimals
        uint256 allowlistRedeemPrice;
    }

    struct MintLimit {
        uint256 publicMintLimit;
        uint256 allowlistMintLimit;
    }

    IERC721 public lifeTimePass;
    address public artistWallet;
    string public baseDir;
    uint256 public dropSize;
    uint256 public artistSplit; // 10000 means 100%
    MintState public mintState;
    mapping(address => bool) public allowlist;
    mapping(address => uint256) public mintCount;
    mapping(address => uint256) public overridenMintLimit;
    mapping(address => uint256) public overridenMintPrice;
    mapping(address => uint256) public overridenRedeemPrice;
    mapping(uint256 => bool) public isReedemed;
    Pricing public pricing;
    MintLimit public mintLimit;
    uint256 public totalMinted;
    uint256 public totalRedeemed;
    AggregatorV3Interface public ethUsdPriceFeed;

    constructor(
        address _owner,
        address _artistWallet,
        string memory _name,
        string memory _symbol,
        string memory _baseDir,
        uint256 _dropSize,
        IERC721 _lifeTimePass,
        uint256 _artistSplit,
        AggregatorV3Interface _ethUsdPriceFeed
    )
        ERC721(_name, _symbol)
        Ownable(_owner)
    {
        artistWallet = _artistWallet;
        baseDir = _baseDir;
        dropSize = _dropSize;
        mintState = MintState.NOT_FOR_SALE;
        lifeTimePass = _lifeTimePass;
        artistSplit = _artistSplit;
        ethUsdPriceFeed = _ethUsdPriceFeed;
    }

    function mintEntryPoint(uint256[] memory tokenIdsToMint, uint256[] memory tokenIdsToRedeem, address recipient) public payable {
        if (recipient == address(0)) revert InvalidRecipient();
        uint256 expectedPayment = tokenIdsToMint.length * priceForMint(recipient) + tokenIdsToRedeem.length * priceForRedeem(recipient);
        if (msg.value < expectedPayment) revert InvalidPayment();
        if (tokenIdsToMint.length > 0) mintTokenIds(tokenIdsToMint, recipient);
        if (tokenIdsToRedeem.length > 0) redeemTokenIds(tokenIdsToRedeem, recipient);
    }

    function mintTokenIds(
        uint256[] memory tokenIds,
        address recipient
    )
        public
        payable
        isMintStateValid(recipient)
        isMintLimitValid(recipient, tokenIds.length)
    {
        if (tokenIds.length == 0) revert InvalidTokenIds();
        if (totalMinted + tokenIds.length > dropSize) revert MintLimitExceeded();

        uint256 mintPrice = priceForMint(recipient);
        if (msg.value < mintPrice * tokenIds.length) revert InvalidPayment();

        totalMinted += tokenIds.length;
        mintCount[recipient] += tokenIds.length;

        for (uint256 i = 0; i < tokenIds.length; i++) {
            if (tokenIds[i] == 0 || tokenIds[i] > dropSize) revert InvalidTokenIds();
            _mint(recipient, tokenIds[i]);
        }
    }

    function redeemTokenIds(uint256[] memory tokenIds, address redeemer) public payable {
        if (tokenIds.length == 0) revert InvalidTokenIds();
        if (msg.value < priceForRedeem(redeemer) * tokenIds.length) revert InvalidPayment();
        address ownerOfContract = owner();
        for (uint256 i = 0; i < tokenIds.length; i++) {
            if (redeemer != ownerOfContract && redeemer != ownerOf(tokenIds[i])) revert NotOwnerOrTokenOwner();
            if (isReedemed[tokenIds[i]]) revert TokenAlreadyRedeemed();
            isReedemed[tokenIds[i]] = true;
        }
        totalRedeemed += tokenIds.length;
    }

    function mintAndRedeemTokenIds(
        uint256[] memory tokenIds,
        address recipient
    )
        public
        payable
        isMintStateValid(recipient)
        isMintLimitValid(recipient, tokenIds.length)
    {
        if (tokenIds.length == 0) revert InvalidTokenIds();
        if (totalMinted + tokenIds.length > dropSize) revert MintLimitExceeded();
        uint256 mintPrice = priceForMint(recipient);
        uint256 redeemPrice = priceForRedeem(recipient);
        if (msg.value < (mintPrice + redeemPrice) * tokenIds.length) revert InvalidPayment();

        totalMinted += tokenIds.length;
        mintCount[recipient] += tokenIds.length;
        totalRedeemed += tokenIds.length;
        for (uint256 i = 0; i < tokenIds.length; i++) {
            if (tokenIds[i] == 0 || tokenIds[i] > dropSize) revert InvalidTokenIds();
            _mint(recipient, tokenIds[i]);
            isReedemed[tokenIds[i]] = true;
        }
    }

    modifier isMintStateValid(address _minter) {
        if (msg.sender == owner() ||    _minter == owner()) {
            _;
        } else {
            if (mintState == MintState.NOT_FOR_SALE) revert MintNotForSale();
            if (mintState == MintState.ALLOWLIST_SALE && !allowlist[_minter]) revert NotOnAllowlist();
            _;
        }
    }

    modifier isMintLimitValid(address _minter, uint256 _mintAmount) {
        if (msg.sender == owner() || _minter == owner()) {
            _;
        } else {
            uint256 mintLimitCache = 0;
            if (overridenMintLimit[_minter] != 0) {
                mintLimitCache = overridenMintLimit[_minter];
            } else if (allowlist[_minter]) {
                mintLimitCache = mintLimit.allowlistMintLimit;
            } else {
                mintLimitCache = mintLimit.publicMintLimit;
            }
            if (mintCount[_minter] + _mintAmount > mintLimitCache) revert MintLimitExceeded();
            _;
        }
    }

    function numberCanMint(address _minter) public view returns (uint256) {
        if (_minter == owner()) return dropSize - totalMinted;
        if (overridenMintLimit[_minter] != 0) return overridenMintLimit[_minter] - mintCount[_minter];
        if (allowlist[_minter]) return mintLimit.allowlistMintLimit - mintCount[_minter];
        return mintLimit.publicMintLimit - mintCount[_minter];
    }

    function priceForMint(address _minter) public view returns (uint256) {
        if (overridenMintPrice[_minter] != 0) return overridenMintPrice[_minter];
        if (_minter == owner() || msg.sender == owner()) return 0;
        if (pricing.allowlistMintPrice == 0 && pricing.publicMintPrice == 0) revert InvalidPricing();
        if (allowlist[_minter] || lifeTimePass.balanceOf(_minter) > 0) return pricing.allowlistMintPrice;
        return pricing.publicMintPrice;
    }

    function priceForRedeem(address _redeemer) public view returns (uint256) {
        if (overridenRedeemPrice[_redeemer] != 0) return convertUsdToEth(overridenRedeemPrice[_redeemer]);
        if (_redeemer == owner() || msg.sender == owner()) return 0;
        if (pricing.allowlistRedeemPrice == 0 && pricing.publicRedeemPrice == 0) revert InvalidPricing();
        if (allowlist[_redeemer] || lifeTimePass.balanceOf(_redeemer) > 0) {
            return convertUsdToEth(pricing.allowlistRedeemPrice);
        }
        return convertUsdToEth(pricing.publicRedeemPrice);
    }

    function priceOfMintAndRedeem(address _minter) public view returns (uint256) {
        return priceForMint(_minter) + priceForRedeem(_minter);
    }

    function getLatestEthUsdPrice() public view returns (uint256) {
        (uint80 roundId, int256 price,, uint256 updatedAt, uint80 answeredInRound) = ethUsdPriceFeed.latestRoundData();

        // Price feed validation
        if (price <= 0) revert InvalidPrice();
        if (answeredInRound < roundId) revert StalePrice();
        if (block.timestamp - updatedAt > 2 hours) revert StalePrice();

        return uint256(price);
    }

    function convertUsdToEth(uint256 _usdAmount) public view returns (uint256) {
        // 8 decimals
        uint256 ethUsdPrice = getLatestEthUsdPrice();
        // return eth amount equivalent to _usdAmount in 18 decimals
        return _usdAmount * 10 ** 18 / ethUsdPrice;
    }

    function tokenURI(uint256 tokenId) public view override returns (string memory) {
        return string.concat(baseDir, "/", Strings.toString(tokenId), ".json");
    }

    function withdrawFunds() external onlyOwner {
        if (artistWallet == address(0)) {
            (bool success,) = payable(owner()).call{ value: address(this).balance }("");
            if (!success) revert WithdrawalFailed();
        } else {
            uint256 withdrawableByArtist = address(this).balance * artistSplit / 10_000;
            uint256 withdrawableByOwner = address(this).balance - withdrawableByArtist;
            (bool success,) = payable(artistWallet).call{ value: withdrawableByArtist }("");
            if (!success) revert WithdrawalFailed();
            (success,) = payable(owner()).call{ value: withdrawableByOwner }("");
            if (!success) revert WithdrawalFailed();
        }
    }

    function updateEthUsdPriceFeed(AggregatorV3Interface _ethUsdPriceFeed) external onlyOwner {
        ethUsdPriceFeed = _ethUsdPriceFeed;
    }

    function updatePricing(
        uint256 _publicMintPrice,
        uint256 _allowlistMintPrice,
        uint256 _publicRedeemPrice,
        uint256 _allowlistRedeemPrice
    )
        external
        onlyOwner
    {
        pricing = Pricing(_publicMintPrice, _allowlistMintPrice, _publicRedeemPrice, _allowlistRedeemPrice);
    }

    function overrideMintPrice(address _minter, uint256 _mintPrice) external onlyOwner {
        overridenMintPrice[_minter] = _mintPrice;
    }

    function overrideRedeemPrice(address _redeemer, uint256 _redeemPrice) external onlyOwner {
        overridenRedeemPrice[_redeemer] = _redeemPrice;
    }

    function overrideMintLimit(address _minter, uint256 _mintLimit) external onlyOwner {
        overridenMintLimit[_minter] = _mintLimit;
    }

    function updateArtistSplit(uint256 _artistSplit) external onlyOwner {
        artistSplit = _artistSplit;
    }

    function updateMintLimit(uint256 _publicMintLimit, uint256 _allowlistMintLimit) external onlyOwner {
        mintLimit = MintLimit(_publicMintLimit, _allowlistMintLimit);
    }

    function updateLifeTimePass(IERC721 _lifeTimePass) external onlyOwner {
        lifeTimePass = _lifeTimePass;
    }

    function updateMintState(MintState _mintState) external onlyOwner {
        mintState = _mintState;
    }

    function updateArtistWallet(address _artistWallet) external onlyOwner {
        artistWallet = _artistWallet;
    }

    function updateBaseDir(string memory _baseDir) external onlyOwner {
        baseDir = _baseDir;
    }

    function addToAllowlist(address[] memory _addresses) external onlyOwner {
        for (uint256 i = 0; i < _addresses.length; i++) {
            allowlist[_addresses[i]] = true;
        }
    }

    function removeFromAllowlist(address[] memory _addresses) external onlyOwner {
        for (uint256 i = 0; i < _addresses.length; i++) {
            allowlist[_addresses[i]] = false;
        }
    }
}

File 2 of 14 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.20;

import {IERC165} from "../../utils/introspection/IERC165.sol";

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

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

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

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

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

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

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

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address from, address to, uint256 tokenId) external;

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

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

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

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

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

pragma solidity ^0.8.20;

import {IERC721} from "./IERC721.sol";
import {IERC721Receiver} from "./IERC721Receiver.sol";
import {IERC721Metadata} from "./extensions/IERC721Metadata.sol";
import {Context} from "../../utils/Context.sol";
import {Strings} from "../../utils/Strings.sol";
import {IERC165, ERC165} from "../../utils/introspection/ERC165.sol";
import {IERC721Errors} from "../../interfaces/draft-IERC6093.sol";

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    mapping(uint256 tokenId => address) private _owners;

    mapping(address owner => uint256) private _balances;

    mapping(uint256 tokenId => address) private _tokenApprovals;

    mapping(address owner => mapping(address operator => bool)) private _operatorApprovals;

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

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

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

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

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

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

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual returns (string memory) {
        _requireOwned(tokenId);

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

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

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual {
        _approve(to, tokenId, _msgSender());
    }

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

        return _getApproved(tokenId);
    }

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

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

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(address from, address to, uint256 tokenId) public virtual {
        if (to == address(0)) {
            revert ERC721InvalidReceiver(address(0));
        }
        // Setting an "auth" arguments enables the `_isAuthorized` check which verifies that the token exists
        // (from != 0). Therefore, it is not needed to verify that the return value is not 0 here.
        address previousOwner = _update(to, tokenId, _msgSender());
        if (previousOwner != from) {
            revert ERC721IncorrectOwner(from, tokenId, previousOwner);
        }
    }

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

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public virtual {
        transferFrom(from, to, tokenId);
        _checkOnERC721Received(from, to, tokenId, data);
    }

    /**
     * @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist
     *
     * IMPORTANT: Any overrides to this function that add ownership of tokens not tracked by the
     * core ERC721 logic MUST be matched with the use of {_increaseBalance} to keep balances
     * consistent with ownership. The invariant to preserve is that for any address `a` the value returned by
     * `balanceOf(a)` must be equal to the number of tokens such that `_ownerOf(tokenId)` is `a`.
     */
    function _ownerOf(uint256 tokenId) internal view virtual returns (address) {
        return _owners[tokenId];
    }

    /**
     * @dev Returns the approved address for `tokenId`. Returns 0 if `tokenId` is not minted.
     */
    function _getApproved(uint256 tokenId) internal view virtual returns (address) {
        return _tokenApprovals[tokenId];
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `owner`'s tokens, or `tokenId` in
     * particular (ignoring whether it is owned by `owner`).
     *
     * WARNING: This function assumes that `owner` is the actual owner of `tokenId` and does not verify this
     * assumption.
     */
    function _isAuthorized(address owner, address spender, uint256 tokenId) internal view virtual returns (bool) {
        return
            spender != address(0) &&
            (owner == spender || isApprovedForAll(owner, spender) || _getApproved(tokenId) == spender);
    }

    /**
     * @dev Checks if `spender` can operate on `tokenId`, assuming the provided `owner` is the actual owner.
     * Reverts if `spender` does not have approval from the provided `owner` for the given token or for all its assets
     * the `spender` for the specific `tokenId`.
     *
     * WARNING: This function assumes that `owner` is the actual owner of `tokenId` and does not verify this
     * assumption.
     */
    function _checkAuthorized(address owner, address spender, uint256 tokenId) internal view virtual {
        if (!_isAuthorized(owner, spender, tokenId)) {
            if (owner == address(0)) {
                revert ERC721NonexistentToken(tokenId);
            } else {
                revert ERC721InsufficientApproval(spender, tokenId);
            }
        }
    }

    /**
     * @dev Unsafe write access to the balances, used by extensions that "mint" tokens using an {ownerOf} override.
     *
     * NOTE: the value is limited to type(uint128).max. This protect against _balance overflow. It is unrealistic that
     * a uint256 would ever overflow from increments when these increments are bounded to uint128 values.
     *
     * WARNING: Increasing an account's balance using this function tends to be paired with an override of the
     * {_ownerOf} function to resolve the ownership of the corresponding tokens so that balances and ownership
     * remain consistent with one another.
     */
    function _increaseBalance(address account, uint128 value) internal virtual {
        unchecked {
            _balances[account] += value;
        }
    }

    /**
     * @dev Transfers `tokenId` from its current owner to `to`, or alternatively mints (or burns) if the current owner
     * (or `to`) is the zero address. Returns the owner of the `tokenId` before the update.
     *
     * The `auth` argument is optional. If the value passed is non 0, then this function will check that
     * `auth` is either the owner of the token, or approved to operate on the token (by the owner).
     *
     * Emits a {Transfer} event.
     *
     * NOTE: If overriding this function in a way that tracks balances, see also {_increaseBalance}.
     */
    function _update(address to, uint256 tokenId, address auth) internal virtual returns (address) {
        address from = _ownerOf(tokenId);

        // Perform (optional) operator check
        if (auth != address(0)) {
            _checkAuthorized(from, auth, tokenId);
        }

        // Execute the update
        if (from != address(0)) {
            // Clear approval. No need to re-authorize or emit the Approval event
            _approve(address(0), tokenId, address(0), false);

            unchecked {
                _balances[from] -= 1;
            }
        }

        if (to != address(0)) {
            unchecked {
                _balances[to] += 1;
            }
        }

        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);

        return from;
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal {
        if (to == address(0)) {
            revert ERC721InvalidReceiver(address(0));
        }
        address previousOwner = _update(to, tokenId, address(0));
        if (previousOwner != address(0)) {
            revert ERC721InvalidSender(address(0));
        }
    }

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

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

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     * This is an internal function that does not check if the sender is authorized to operate on the token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal {
        address previousOwner = _update(address(0), tokenId, address(0));
        if (previousOwner == address(0)) {
            revert ERC721NonexistentToken(tokenId);
        }
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(address from, address to, uint256 tokenId) internal {
        if (to == address(0)) {
            revert ERC721InvalidReceiver(address(0));
        }
        address previousOwner = _update(to, tokenId, address(0));
        if (previousOwner == address(0)) {
            revert ERC721NonexistentToken(tokenId);
        } else if (previousOwner != from) {
            revert ERC721IncorrectOwner(from, tokenId, previousOwner);
        }
    }

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

    /**
     * @dev Same as {xref-ERC721-_safeTransfer-address-address-uint256-}[`_safeTransfer`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeTransfer(address from, address to, uint256 tokenId, bytes memory data) internal virtual {
        _transfer(from, to, tokenId);
        _checkOnERC721Received(from, to, tokenId, data);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * The `auth` argument is optional. If the value passed is non 0, then this function will check that `auth` is
     * either the owner of the token, or approved to operate on all tokens held by this owner.
     *
     * Emits an {Approval} event.
     *
     * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument.
     */
    function _approve(address to, uint256 tokenId, address auth) internal {
        _approve(to, tokenId, auth, true);
    }

    /**
     * @dev Variant of `_approve` with an optional flag to enable or disable the {Approval} event. The event is not
     * emitted in the context of transfers.
     */
    function _approve(address to, uint256 tokenId, address auth, bool emitEvent) internal virtual {
        // Avoid reading the owner unless necessary
        if (emitEvent || auth != address(0)) {
            address owner = _requireOwned(tokenId);

            // We do not use _isAuthorized because single-token approvals should not be able to call approve
            if (auth != address(0) && owner != auth && !isApprovedForAll(owner, auth)) {
                revert ERC721InvalidApprover(auth);
            }

            if (emitEvent) {
                emit Approval(owner, to, tokenId);
            }
        }

        _tokenApprovals[tokenId] = to;
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Requirements:
     * - operator can't be the address zero.
     *
     * Emits an {ApprovalForAll} event.
     */
    function _setApprovalForAll(address owner, address operator, bool approved) internal virtual {
        if (operator == address(0)) {
            revert ERC721InvalidOperator(operator);
        }
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Reverts if the `tokenId` doesn't have a current owner (it hasn't been minted, or it has been burned).
     * Returns the owner.
     *
     * Overrides to ownership logic should be done to {_ownerOf}.
     */
    function _requireOwned(uint256 tokenId) internal view returns (address) {
        address owner = _ownerOf(tokenId);
        if (owner == address(0)) {
            revert ERC721NonexistentToken(tokenId);
        }
        return owner;
    }

    /**
     * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target address. This will revert if the
     * recipient doesn't accept the token transfer. The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param data bytes optional data to send along with the call
     */
    function _checkOnERC721Received(address from, address to, uint256 tokenId, bytes memory data) private {
        if (to.code.length > 0) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) {
                if (retval != IERC721Receiver.onERC721Received.selector) {
                    revert ERC721InvalidReceiver(to);
                }
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert ERC721InvalidReceiver(to);
                } else {
                    /// @solidity memory-safe-assembly
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        }
    }
}

File 4 of 14 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Strings.sol)

pragma solidity ^0.8.20;

import {Math} from "./math/Math.sol";
import {SignedMath} from "./math/SignedMath.sol";

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

    /**
     * @dev The `value` string doesn't fit in the specified `length`.
     */
    error StringsInsufficientHexLength(uint256 value, uint256 length);

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), HEX_DIGITS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `int256` to its ASCII `string` decimal representation.
     */
    function toStringSigned(int256 value) internal pure returns (string memory) {
        return string.concat(value < 0 ? "-" : "", toString(SignedMath.abs(value)));
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        uint256 localValue = value;
        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_DIGITS[localValue & 0xf];
            localValue >>= 4;
        }
        if (localValue != 0) {
            revert StringsInsufficientHexLength(value, length);
        }
        return string(buffer);
    }

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

    /**
     * @dev Returns true if the two strings are equal.
     */
    function equal(string memory a, string memory b) internal pure returns (bool) {
        return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b));
    }
}

File 5 of 14 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)

pragma solidity ^0.8.20;

import {Context} from "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * The initial owner is set to the address provided by the deployer. 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;

    /**
     * @dev The caller account is not authorized to perform an operation.
     */
    error OwnableUnauthorizedAccount(address account);

    /**
     * @dev The owner is not a valid owner account. (eg. `address(0)`)
     */
    error OwnableInvalidOwner(address owner);

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

    /**
     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.
     */
    constructor(address initialOwner) {
        if (initialOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(initialOwner);
    }

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

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        if (owner() != _msgSender()) {
            revert OwnableUnauthorizedAccount(_msgSender());
        }
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling 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 {
        if (newOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(newOwner);
    }

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

File 6 of 14 : AggregatorV3Interface.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

// solhint-disable-next-line interface-starts-with-i
interface AggregatorV3Interface {
  function decimals() external view returns (uint8);

  function description() external view returns (string memory);

  function version() external view returns (uint256);

  function getRoundData(
    uint80 _roundId
  ) external view returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound);

  function latestRoundData()
    external
    view
    returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound);
}

File 7 of 14 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/IERC165.sol)

pragma solidity ^0.8.20;

/**
 * @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 8 of 14 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.20;

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

File 9 of 14 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.20;

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

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

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

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

File 10 of 14 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)

pragma solidity ^0.8.20;

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

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}

File 11 of 14 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/ERC165.sol)

pragma solidity ^0.8.20;

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

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

File 12 of 14 : draft-IERC6093.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol)
pragma solidity ^0.8.20;

/**
 * @dev Standard ERC20 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 tokens.
 */
interface IERC20Errors {
    /**
     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param balance Current balance for the interacting account.
     * @param needed Minimum amount required to perform a transfer.
     */
    error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC20InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC20InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers.
     * @param spender Address that may be allowed to operate on tokens without being their owner.
     * @param allowance Amount of tokens a `spender` is allowed to operate with.
     * @param needed Minimum amount required to perform a transfer.
     */
    error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC20InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `spender` to be approved. Used in approvals.
     * @param spender Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC20InvalidSpender(address spender);
}

/**
 * @dev Standard ERC721 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens.
 */
interface IERC721Errors {
    /**
     * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20.
     * Used in balance queries.
     * @param owner Address of the current owner of a token.
     */
    error ERC721InvalidOwner(address owner);

    /**
     * @dev Indicates a `tokenId` whose `owner` is the zero address.
     * @param tokenId Identifier number of a token.
     */
    error ERC721NonexistentToken(uint256 tokenId);

    /**
     * @dev Indicates an error related to the ownership over a particular token. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param tokenId Identifier number of a token.
     * @param owner Address of the current owner of a token.
     */
    error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC721InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC721InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     * @param tokenId Identifier number of a token.
     */
    error ERC721InsufficientApproval(address operator, uint256 tokenId);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC721InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC721InvalidOperator(address operator);
}

/**
 * @dev Standard ERC1155 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 tokens.
 */
interface IERC1155Errors {
    /**
     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param balance Current balance for the interacting account.
     * @param needed Minimum amount required to perform a transfer.
     * @param tokenId Identifier number of a token.
     */
    error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC1155InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC1155InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     * @param owner Address of the current owner of a token.
     */
    error ERC1155MissingApprovalForAll(address operator, address owner);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC1155InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC1155InvalidOperator(address operator);

    /**
     * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation.
     * Used in batch transfers.
     * @param idsLength Length of the array of token identifiers
     * @param valuesLength Length of the array of token amounts
     */
    error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength);
}

File 13 of 14 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/Math.sol)

pragma solidity ^0.8.20;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    /**
     * @dev Muldiv operation overflow.
     */
    error MathOverflowedMulDiv();

    enum Rounding {
        Floor, // Toward negative infinity
        Ceil, // Toward positive infinity
        Trunc, // Toward zero
        Expand // Away from zero
    }

    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     */
    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 subtraction of two unsigned integers, with an overflow flag.
     */
    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.
     */
    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.
     */
    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.
     */
    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 largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds towards infinity instead
     * of rounding towards zero.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        if (b == 0) {
            // Guarantee the same behavior as in a regular Solidity division.
            return a / b;
        }

        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or
     * denominator == 0.
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by
     * Uniswap Labs also under MIT license.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0 = x * y; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                // Solidity will revert if denominator == 0, unlike the div opcode on its own.
                // The surrounding unchecked block does not change this fact.
                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            if (denominator <= prod1) {
                revert MathOverflowedMulDiv();
            }

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator.
            // Always >= 1. See https://cs.stackexchange.com/q/138556/92363.

            uint256 twos = denominator & (0 - denominator);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also
            // works in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded
     * towards zero.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (unsignedRoundsUp(rounding) && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2 of a positive value rounded towards zero.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10 of a positive value rounded towards zero.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10 ** 64) {
                value /= 10 ** 64;
                result += 64;
            }
            if (value >= 10 ** 32) {
                value /= 10 ** 32;
                result += 32;
            }
            if (value >= 10 ** 16) {
                value /= 10 ** 16;
                result += 16;
            }
            if (value >= 10 ** 8) {
                value /= 10 ** 8;
                result += 8;
            }
            if (value >= 10 ** 4) {
                value /= 10 ** 4;
                result += 4;
            }
            if (value >= 10 ** 2) {
                value /= 10 ** 2;
                result += 2;
            }
            if (value >= 10 ** 1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (unsignedRoundsUp(rounding) && 10 ** result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256 of a positive value rounded towards zero.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 256, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (unsignedRoundsUp(rounding) && 1 << (result << 3) < value ? 1 : 0);
        }
    }

    /**
     * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.
     */
    function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {
        return uint8(rounding) % 2 == 1;
    }
}

File 14 of 14 : SignedMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SignedMath.sol)

pragma solidity ^0.8.20;

/**
 * @dev Standard signed math utilities missing in the Solidity language.
 */
library SignedMath {
    /**
     * @dev Returns the largest of two signed numbers.
     */
    function max(int256 a, int256 b) internal pure returns (int256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two signed numbers.
     */
    function min(int256 a, int256 b) internal pure returns (int256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two signed numbers without overflow.
     * The result is rounded towards zero.
     */
    function average(int256 a, int256 b) internal pure returns (int256) {
        // Formula from the book "Hacker's Delight"
        int256 x = (a & b) + ((a ^ b) >> 1);
        return x + (int256(uint256(x) >> 255) & (a ^ b));
    }

    /**
     * @dev Returns the absolute unsigned value of a signed value.
     */
    function abs(int256 n) internal pure returns (uint256) {
        unchecked {
            // must be unchecked in order to support `n = type(int256).min`
            return uint256(n >= 0 ? n : -n);
        }
    }
}

Settings
{
  "remappings": [
    "@openzeppelin/contracts/=node_modules/@openzeppelin/contracts/",
    "forge-std/=node_modules/forge-std/",
    "@chainlink/contracts/=node_modules/chainlink/contracts/",
    "@openzeppelin/contracts-upgradeable/=node_modules/openzeppelin-solidity/contracts/",
    "chainlink/=node_modules/chainlink/",
    "openzeppelin-solidity/=node_modules/openzeppelin-solidity/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 10000
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "none",
    "appendCBOR": true
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "shanghai",
  "viaIR": false,
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_artistWallet","type":"address"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"string","name":"_baseDir","type":"string"},{"internalType":"uint256","name":"_dropSize","type":"uint256"},{"internalType":"contract IERC721","name":"_lifeTimePass","type":"address"},{"internalType":"uint256","name":"_artistSplit","type":"uint256"},{"internalType":"contract AggregatorV3Interface","name":"_ethUsdPriceFeed","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"owner","type":"address"}],"name":"ERC721IncorrectOwner","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ERC721InsufficientApproval","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC721InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"ERC721InvalidOperator","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"ERC721InvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC721InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC721InvalidSender","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ERC721NonexistentToken","type":"error"},{"inputs":[],"name":"InvalidPayment","type":"error"},{"inputs":[],"name":"InvalidPrice","type":"error"},{"inputs":[],"name":"InvalidPricing","type":"error"},{"inputs":[],"name":"InvalidRecipient","type":"error"},{"inputs":[],"name":"InvalidTokenIds","type":"error"},{"inputs":[],"name":"MintLimitExceeded","type":"error"},{"inputs":[],"name":"MintNotForSale","type":"error"},{"inputs":[],"name":"NotOnAllowlist","type":"error"},{"inputs":[],"name":"NotOwnerOrTokenOwner","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"StalePrice","type":"error"},{"inputs":[],"name":"TokenAlreadyRedeemed","type":"error"},{"inputs":[],"name":"WithdrawalFailed","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":[{"internalType":"address[]","name":"_addresses","type":"address[]"}],"name":"addToAllowlist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"allowlist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":[],"name":"artistSplit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"artistWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseDir","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_usdAmount","type":"uint256"}],"name":"convertUsdToEth","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dropSize","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ethUsdPriceFeed","outputs":[{"internalType":"contract AggregatorV3Interface","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLatestEthUsdPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"isReedemed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lifeTimePass","outputs":[{"internalType":"contract IERC721","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"address","name":"recipient","type":"address"}],"name":"mintAndRedeemTokenIds","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"mintCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIdsToMint","type":"uint256[]"},{"internalType":"uint256[]","name":"tokenIdsToRedeem","type":"uint256[]"},{"internalType":"address","name":"recipient","type":"address"}],"name":"mintEntryPoint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintLimit","outputs":[{"internalType":"uint256","name":"publicMintLimit","type":"uint256"},{"internalType":"uint256","name":"allowlistMintLimit","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintState","outputs":[{"internalType":"enum ExpandedNFTSelectiveMint.MintState","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"address","name":"recipient","type":"address"}],"name":"mintTokenIds","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_minter","type":"address"}],"name":"numberCanMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_minter","type":"address"},{"internalType":"uint256","name":"_mintLimit","type":"uint256"}],"name":"overrideMintLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_minter","type":"address"},{"internalType":"uint256","name":"_mintPrice","type":"uint256"}],"name":"overrideMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_redeemer","type":"address"},{"internalType":"uint256","name":"_redeemPrice","type":"uint256"}],"name":"overrideRedeemPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"overridenMintLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"overridenMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"overridenRedeemPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_minter","type":"address"}],"name":"priceForMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_redeemer","type":"address"}],"name":"priceForRedeem","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_minter","type":"address"}],"name":"priceOfMintAndRedeem","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pricing","outputs":[{"internalType":"uint256","name":"publicMintPrice","type":"uint256"},{"internalType":"uint256","name":"allowlistMintPrice","type":"uint256"},{"internalType":"uint256","name":"publicRedeemPrice","type":"uint256"},{"internalType":"uint256","name":"allowlistRedeemPrice","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"address","name":"redeemer","type":"address"}],"name":"redeemTokenIds","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"}],"name":"removeFromAllowlist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalRedeemed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_artistSplit","type":"uint256"}],"name":"updateArtistSplit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_artistWallet","type":"address"}],"name":"updateArtistWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseDir","type":"string"}],"name":"updateBaseDir","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract AggregatorV3Interface","name":"_ethUsdPriceFeed","type":"address"}],"name":"updateEthUsdPriceFeed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC721","name":"_lifeTimePass","type":"address"}],"name":"updateLifeTimePass","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_publicMintLimit","type":"uint256"},{"internalType":"uint256","name":"_allowlistMintLimit","type":"uint256"}],"name":"updateMintLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum ExpandedNFTSelectiveMint.MintState","name":"_mintState","type":"uint8"}],"name":"updateMintState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_publicMintPrice","type":"uint256"},{"internalType":"uint256","name":"_allowlistMintPrice","type":"uint256"},{"internalType":"uint256","name":"_publicRedeemPrice","type":"uint256"},{"internalType":"uint256","name":"_allowlistRedeemPrice","type":"uint256"}],"name":"updatePricing","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawFunds","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561000f575f80fd5b5060405161484b38038061484b83398101604081905261002e9161021b565b8887875f61003c8382610375565b5060016100498282610375565b5050506001600160a01b03811661007957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b610082816100f8565b50600880546001600160a01b0319166001600160a01b038a1617905560096100aa8682610375565b50600a93909355600c805460ff19169055600780546001600160a01b039384166001600160a01b031991821617909155600b91909155601b8054929093169116179055506104349350505050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b80516001600160a01b038116811461015f575f80fd5b919050565b634e487b7160e01b5f52604160045260245ffd5b5f82601f830112610187575f80fd5b81516001600160401b03808211156101a1576101a1610164565b604051601f8301601f19908116603f011681019082821181831017156101c9576101c9610164565b81604052838152602092508660208588010111156101e5575f80fd5b5f91505b8382101561020657858201830151818301840152908201906101e9565b5f602085830101528094505050505092915050565b5f805f805f805f805f6101208a8c031215610234575f80fd5b61023d8a610149565b985061024b60208b01610149565b60408b01519098506001600160401b0380821115610267575f80fd5b6102738d838e01610178565b985060608c0151915080821115610288575f80fd5b6102948d838e01610178565b975060808c01519150808211156102a9575f80fd5b506102b68c828d01610178565b95505060a08a015193506102cc60c08b01610149565b925060e08a015191506102e26101008b01610149565b90509295985092959850929598565b600181811c9082168061030557607f821691505b60208210810361032357634e487b7160e01b5f52602260045260245ffd5b50919050565b601f82111561037057805f5260205f20601f840160051c8101602085101561034e5750805b601f840160051c820191505b8181101561036d575f815560010161035a565b50505b505050565b81516001600160401b0381111561038e5761038e610164565b6103a28161039c84546102f1565b84610329565b602080601f8311600181146103d5575f84156103be5750858301515b5f19600386901b1c1916600185901b17855561042c565b5f85815260208120601f198616915b82811015610403578886015182559484019460019091019084016103e4565b508582101561042057878501515f19600388901b60f8161c191681555b505060018460011b0185555b505050505050565b61440a806104415f395ff3fe608060405260043610610366575f3560e01c8063779545c0116101c8578063b88d4fde116100fd578063dea48c1a1161009d578063ed9ec8881161006d578063ed9ec88814610a22578063eec75cc214610a4d578063f2fde38b14610a7b578063f35dad4014610a9a575f80fd5b8063dea48c1a1461098a578063df01e4bf146109a9578063e0248bfd146109c8578063e985e9c5146109db575f80fd5b8063c7781604116100d8578063c77816041461090e578063c87b56dd1461092d578063c9434b4c1461094c578063dcce53f71461096b575f80fd5b8063b88d4fde146108b4578063bbe68cf0146108d3578063c051e38a146108e8575f80fd5b80639dd4caa211610168578063a3053e2a11610143578063a3053e2a14610829578063a3342fba14610848578063a7cd52cb14610867578063a7f5dba314610895575f80fd5b80639dd4caa2146107d6578063a22cb465146107f5578063a2309ff814610814575f80fd5b80638da5cb5b116101a35780638da5cb5b1461075757806395d89b4114610774578063996517cf146107885780639a3a0385146107b7575f80fd5b8063779545c0146106cb5780637ce91411146106f657806381be3f3214610738575f80fd5b806342842e0e1161029e57806355588c0f1161023e5780636a3e2297116102195780636a3e22971461066657806370a0823114610679578063715018a61461069857806375fd5289146106ac575f80fd5b806355588c0f146105fd5780635e1bff531461061c5780636352211e14610647575f80fd5b80634ab0503b116102795780634ab0503b14610581578063504aa280146105a05780635207c273146105bf57806352716828146105de575f80fd5b806342842e0e1461052f57806342f6fb291461054e578063458e7c801461056d575f80fd5b8063130fd4471161030957806324600fc3116102e457806324600fc3146104d357806326183c15146104e757806330214599146105065780633da165d41461051a575f80fd5b8063130fd4471461045c578063150f885e1461049557806323b872dd146104b4575f80fd5b8063095ea7b311610344578063095ea7b3146103f65780630e481019146104175780630feca98e1461042a578063104b6cb71461043d575f80fd5b806301ffc9a71461036a57806306fdde031461039e578063081812fc146103bf575b5f80fd5b348015610375575f80fd5b506103896103843660046139be565b610aaf565b60405190151581526020015b60405180910390f35b3480156103a9575f80fd5b506103b2610b93565b6040516103959190613a44565b3480156103ca575f80fd5b506103de6103d9366004613a56565b610c22565b6040516001600160a01b039091168152602001610395565b348015610401575f80fd5b50610415610410366004613a81565b610c49565b005b610415610425366004613bb6565b610c58565b610415610438366004613c05565b61177e565b348015610448575f80fd5b50610415610457366004613c78565b611857565b348015610467575f80fd5b50610487610476366004613d0d565b60116020525f908152604090205481565b604051908152602001610395565b3480156104a0575f80fd5b506104156104af366004613d28565b6118b9565b3480156104bf575f80fd5b506104156104ce366004613d48565b6118df565b3480156104de575f80fd5b50610415611999565b3480156104f2575f80fd5b50610415610501366004613a81565b611b94565b348015610511575f80fd5b50610487611bb7565b348015610525575f80fd5b50610487600a5481565b34801561053a575f80fd5b50610415610549366004613d48565b611d11565b348015610559575f80fd5b50601b546103de906001600160a01b031681565b348015610578575f80fd5b506103b2611d2b565b34801561058c575f80fd5b5061041561059b366004613df9565b611db7565b3480156105ab575f80fd5b506104156105ba366004613a56565b611dcb565b3480156105ca575f80fd5b506104156105d9366004613c78565b611dd8565b3480156105e9575f80fd5b506104876105f8366004613d0d565b611e3b565b348015610608575f80fd5b50610415610617366004613e3e565b611fa9565b348015610627575f80fd5b50610487610636366004613d0d565b600f6020525f908152604090205481565b348015610652575f80fd5b506103de610661366004613a56565b611fd8565b610415610674366004613bb6565b611fe2565b348015610684575f80fd5b50610487610693366004613d0d565b6121ca565b3480156106a3575f80fd5b50610415612228565b3480156106b7575f80fd5b506104156106c6366004613e5c565b612239565b3480156106d6575f80fd5b506104876106e5366004613d0d565b60106020525f908152604090205481565b348015610701575f80fd5b506013546014546015546016546107189392919084565b604080519485526020850193909352918301526060820152608001610395565b348015610743575f80fd5b50610415610752366004613d0d565b612275565b348015610762575f80fd5b506006546001600160a01b03166103de565b34801561077f575f80fd5b506103b26122b7565b348015610793575f80fd5b506017546018546107a2919082565b60408051928352602083019190915201610395565b3480156107c2575f80fd5b506104156107d1366004613a81565b6122c6565b3480156107e1575f80fd5b506104876107f0366004613d0d565b6122e9565b348015610800575f80fd5b5061041561080f366004613e8b565b6123d9565b34801561081f575f80fd5b5061048760195481565b348015610834575f80fd5b50610487610843366004613a56565b6123e4565b348015610853575f80fd5b506008546103de906001600160a01b031681565b348015610872575f80fd5b50610389610881366004613d0d565b600d6020525f908152604090205460ff1681565b3480156108a0575f80fd5b506104876108af366004613d0d565b612414565b3480156108bf575f80fd5b506104156108ce366004613ebb565b612590565b3480156108de575f80fd5b50610487600b5481565b3480156108f3575f80fd5b50600c546109019060ff1681565b6040516103959190613f63565b348015610919575f80fd5b50610487610928366004613d0d565b6125a7565b348015610938575f80fd5b506103b2610947366004613a56565b6125c4565b348015610957575f80fd5b50610415610966366004613d0d565b6125f8565b348015610976575f80fd5b506007546103de906001600160a01b031681565b348015610995575f80fd5b506104156109a4366004613a81565b61263a565b3480156109b4575f80fd5b506104156109c3366004613d0d565b61265d565b6104156109d6366004613bb6565b61269f565b3480156109e6575f80fd5b506103896109f5366004613fa2565b6001600160a01b039182165f90815260056020908152604080832093909416825291909152205460ff1690565b348015610a2d575f80fd5b50610487610a3c366004613d0d565b600e6020525f908152604090205481565b348015610a58575f80fd5b50610389610a67366004613a56565b60126020525f908152604090205460ff1681565b348015610a86575f80fd5b50610415610a95366004613d0d565b612ffc565b348015610aa5575f80fd5b50610487601a5481565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd000000000000000000000000000000000000000000000000000000001480610b4157507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610b8d57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b60605f8054610ba190613fce565b80601f0160208091040260200160405190810160405280929190818152602001828054610bcd90613fce565b8015610c185780601f10610bef57610100808354040283529160200191610c18565b820191905f5260205f20905b815481529060010190602001808311610bfb57829003601f168201915b5050505050905090565b5f610c2c8261304f565b505f828152600460205260409020546001600160a01b0316610b8d565b610c548282336130a0565b5050565b80610c6b6006546001600160a01b031690565b6001600160a01b0316336001600160a01b03161480610c9757506006546001600160a01b038281169116145b156111b957818351610cb16006546001600160a01b031690565b6001600160a01b0316336001600160a01b03161480610cdd57506006546001600160a01b038381169116145b15610eef5784515f03610d035760405163340bc4c960e01b815260040160405180910390fd5b600a548551601954610d15919061404c565b1115610d4d576040517fb643bfa600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f610d5785611e3b565b90505f610d6386612414565b8751909150610d72828461404c565b610d7c919061405f565b341015610db5576040517f3c6b4b2800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b865160195f828254610dc7919061404c565b909155505086516001600160a01b0387165f908152600e602052604081208054909190610df590849061404c565b90915550508651601a80545f90610e0d90849061404c565b909155505f90505b8751811015610ee757878181518110610e3057610e30614076565b60200260200101515f1480610e5f5750600a54888281518110610e5557610e55614076565b6020026020010151115b15610e7d5760405163340bc4c960e01b815260040160405180910390fd5b610ea087898381518110610e9357610e93614076565b60200260200101516130ad565b600160125f8a8481518110610eb757610eb7614076565b60209081029190910181015182528101919091526040015f20805460ff1916911515919091179055600101610e15565b5050506111b2565b6001600160a01b0382165f908152600f602052604081205415610f2a57506001600160a01b0382165f908152600f6020526040902054610f58565b6001600160a01b0383165f908152600d602052604090205460ff1615610f535750601854610f58565b506017545b6001600160a01b0383165f908152600e60205260409020548190610f7d90849061404c565b1115610fb5576040517fb643bfa600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b85515f03610fd65760405163340bc4c960e01b815260040160405180910390fd5b600a548651601954610fe8919061404c565b1115611020576040517fb643bfa600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f61102a86611e3b565b90505f61103687612414565b8851909150611045828461404c565b61104f919061405f565b341015611088576040517f3c6b4b2800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b875160195f82825461109a919061404c565b909155505087516001600160a01b0388165f908152600e6020526040812080549091906110c890849061404c565b90915550508751601a80545f906110e090849061404c565b909155505f90505b88518110156111ad5788818151811061110357611103614076565b60200260200101515f14806111325750600a5489828151811061112857611128614076565b6020026020010151115b156111505760405163340bc4c960e01b815260040160405180910390fd5b611166888a8381518110610e9357610e93614076565b600160125f8b848151811061117d5761117d614076565b60209081029190910181015182528101919091526040015f20805460ff19169115159190911790556001016110e8565b505050505b5050505050565b5f600c5460ff1660028111156111d1576111d1613f36565b03611208576040517f17bdf48000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600c5460ff16600281111561122157611221613f36565b14801561124657506001600160a01b0381165f908152600d602052604090205460ff16155b1561127d576040517f231e418300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8183516112926006546001600160a01b031690565b6001600160a01b0316336001600160a01b031614806112be57506006546001600160a01b038381169116145b156114bb5784515f036112e45760405163340bc4c960e01b815260040160405180910390fd5b600a5485516019546112f6919061404c565b111561132e576040517fb643bfa600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f61133885611e3b565b90505f61134486612414565b8751909150611353828461404c565b61135d919061405f565b341015611396576040517f3c6b4b2800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b865160195f8282546113a8919061404c565b909155505086516001600160a01b0387165f908152600e6020526040812080549091906113d690849061404c565b90915550508651601a80545f906113ee90849061404c565b909155505f90505b8751811015610ee75787818151811061141157611411614076565b60200260200101515f14806114405750600a5488828151811061143657611436614076565b6020026020010151115b1561145e5760405163340bc4c960e01b815260040160405180910390fd5b61147487898381518110610e9357610e93614076565b600160125f8a848151811061148b5761148b614076565b60209081029190910181015182528101919091526040015f20805460ff19169115159190911790556001016113f6565b6001600160a01b0382165f908152600f6020526040812054156114f657506001600160a01b0382165f908152600f6020526040902054611524565b6001600160a01b0383165f908152600d602052604090205460ff161561151f5750601854611524565b506017545b6001600160a01b0383165f908152600e6020526040902054819061154990849061404c565b1115611581576040517fb643bfa600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b85515f036115a25760405163340bc4c960e01b815260040160405180910390fd5b600a5486516019546115b4919061404c565b11156115ec576040517fb643bfa600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f6115f686611e3b565b90505f61160287612414565b8851909150611611828461404c565b61161b919061405f565b341015611654576040517f3c6b4b2800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b875160195f828254611666919061404c565b909155505087516001600160a01b0388165f908152600e60205260408120805490919061169490849061404c565b90915550508751601a80545f906116ac90849061404c565b909155505f90505b88518110156111ad578881815181106116cf576116cf614076565b60200260200101515f14806116fe5750600a548982815181106116f4576116f4614076565b6020026020010151115b1561171c5760405163340bc4c960e01b815260040160405180910390fd5b611732888a8381518110610e9357610e93614076565b600160125f8b848151811061174957611749614076565b60209081029190910181015182528101919091526040015f20805460ff19169115159190911790556001016116b4565b505050565b6001600160a01b0381166117be576040517f9c8d2cd200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f6117c882612414565b83516117d4919061405f565b6117dd83611e3b565b85516117e9919061405f565b6117f3919061404c565b90508034101561182f576040517f3c6b4b2800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b83511561184057611840848361269f565b825115611851576118518383611fe2565b50505050565b61185f613140565b5f5b8151811015610c54575f600d5f84848151811061188057611880614076565b6020908102919091018101516001600160a01b031682528101919091526040015f20805460ff1916911515919091179055600101611861565b6118c1613140565b60408051808201909152828152602001819052601791909155601855565b6001600160a01b038216611926576040517f64a0ae920000000000000000000000000000000000000000000000000000000081525f60048201526024015b60405180910390fd5b5f611932838333613186565b9050836001600160a01b0316816001600160a01b031614611851576040517f64283d7b0000000000000000000000000000000000000000000000000000000081526001600160a01b038086166004830152602482018490528216604482015260640161191d565b6119a1613140565b6008546001600160a01b0316611a4e575f6119c46006546001600160a01b031690565b6001600160a01b0316476040515f6040518083038185875af1925050503d805f8114611a0b576040519150601f19603f3d011682016040523d82523d5f602084013e611a10565b606091505b5050905080611a4b576040517f27fcd9d100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50565b5f612710600b5447611a60919061405f565b611a6a91906140a3565b90505f611a7782476140db565b6008546040519192505f916001600160a01b039091169084908381818185875af1925050503d805f8114611ac6576040519150601f19603f3d011682016040523d82523d5f602084013e611acb565b606091505b5050905080611b06576040517f27fcd9d100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006546040516001600160a01b039091169083905f81818185875af1925050503d805f8114611b50576040519150601f19603f3d011682016040523d82523d5f602084013e611b55565b606091505b50508091505080611779576040517f27fcd9d100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b611b9c613140565b6001600160a01b039091165f90815260116020526040902055565b5f805f805f601b5f9054906101000a90046001600160a01b03166001600160a01b031663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa158015611c0c573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611c30919061410c565b9450945050935093505f8313611c71576040517ebfc92100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8369ffffffffffffffffffff168169ffffffffffffffffffff161015611cc3576040517f19abf40e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611c20611cd083426140db565b1115611d08576040517f19abf40e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50909392505050565b61177983838360405180602001604052805f815250612590565b60098054611d3890613fce565b80601f0160208091040260200160405190810160405280929190818152602001828054611d6490613fce565b8015611daf5780601f10611d8657610100808354040283529160200191611daf565b820191905f5260205f20905b815481529060010190602001808311611d9257829003601f168201915b505050505081565b611dbf613140565b6009610c54828261419c565b611dd3613140565b600b55565b611de0613140565b5f5b8151811015610c54576001600d5f848481518110611e0257611e02614076565b6020908102919091018101516001600160a01b031682528101919091526040015f20805460ff1916911515919091179055600101611de2565b6001600160a01b0381165f9081526010602052604081205415611e7357506001600160a01b03165f9081526010602052604090205490565b6006546001600160a01b0383811691161480611e9957506006546001600160a01b031633145b15611ea557505f919050565b601454158015611eb55750601354155b15611eec576040517f02b87b6700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b0382165f908152600d602052604090205460ff1680611f9457506007546040517f70a082310000000000000000000000000000000000000000000000000000000081526001600160a01b0384811660048301525f9216906370a0823190602401602060405180830381865afa158015611f6e573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611f9291906142b8565b115b15611fa157505060145490565b505060135490565b611fb1613140565b600c805482919060ff19166001836002811115611fd057611fd0613f36565b021790555050565b5f610b8d8261304f565b81515f036120035760405163340bc4c960e01b815260040160405180910390fd5b815161200e82612414565b612018919061405f565b341015612051576040517f3c6b4b2800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f6120646006546001600160a01b031690565b90505f5b83518110156121ad57816001600160a01b0316836001600160a01b0316141580156120c657506120b08482815181106120a3576120a3614076565b6020026020010151611fd8565b6001600160a01b0316836001600160a01b031614155b156120fd576040517f6d3791c200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60125f85838151811061211257612112614076565b60209081029190910181015182528101919091526040015f205460ff1615612166576040517f1bd64ea500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600160125f86848151811061217d5761217d614076565b60209081029190910181015182528101919091526040015f20805460ff1916911515919091179055600101612068565b508251601a5f8282546121c0919061404c565b9091555050505050565b5f6001600160a01b03821661220d576040517f89c62b640000000000000000000000000000000000000000000000000000000081525f600482015260240161191d565b506001600160a01b03165f9081526003602052604090205490565b612230613140565b611b925f6132af565b612241613140565b6040805160808101825285815260208101859052908101839052606001819052601393909355601491909155601555601655565b61227d613140565b600780547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b606060018054610ba190613fce565b6122ce613140565b6001600160a01b039091165f90815260106020526040902055565b5f6122fc6006546001600160a01b031690565b6001600160a01b0316826001600160a01b03160361232457601954600a54610b8d91906140db565b6001600160a01b0382165f908152600f60205260409020541561236f576001600160a01b0382165f908152600e6020908152604080832054600f90925290912054610b8d91906140db565b6001600160a01b0382165f908152600d602052604090205460ff16156123b4576001600160a01b0382165f908152600e6020526040902054601854610b8d91906140db565b6001600160a01b0382165f908152600e6020526040902054601754610b8d91906140db565b610c54338383613318565b5f806123ee611bb7565b90508061240384670de0b6b3a764000061405f565b61240d91906140a3565b9392505050565b6001600160a01b0381165f9081526011602052604081205415612452576001600160a01b0382165f90815260116020526040902054610b8d906123e4565b6006546001600160a01b038381169116148061247857506006546001600160a01b031633145b1561248457505f919050565b6016541580156124945750601554155b156124cb576040517f02b87b6700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b0382165f908152600d602052604090205460ff168061257357506007546040517f70a082310000000000000000000000000000000000000000000000000000000081526001600160a01b0384811660048301525f9216906370a0823190602401602060405180830381865afa15801561254d573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061257191906142b8565b115b1561258457601654610b8d906123e4565b601554610b8d906123e4565b61259b8484846118df565b611851848484846133cf565b5f6125b182612414565b6125ba83611e3b565b610b8d919061404c565b606060096125d183613588565b6040516020016125e29291906142cf565b6040516020818303038152906040529050919050565b612600613140565b601b80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b612642613140565b6001600160a01b039091165f908152600f6020526040902055565b612665613140565b600880547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b806126b26006546001600160a01b031690565b6001600160a01b0316336001600160a01b031614806126de57506006546001600160a01b038281169116145b15612b16578183516126f86006546001600160a01b031690565b6001600160a01b0316336001600160a01b0316148061272457506006546001600160a01b038381169116145b156128bb5784515f0361274a5760405163340bc4c960e01b815260040160405180910390fd5b600a54855160195461275c919061404c565b1115612794576040517fb643bfa600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f61279e85611e3b565b90508551816127ad919061405f565b3410156127e6576040517f3c6b4b2800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b855160195f8282546127f8919061404c565b909155505085516001600160a01b0386165f908152600e60205260408120805490919061282690849061404c565b909155505f90505b86518110156128b45786818151811061284957612849614076565b60200260200101515f14806128785750600a5487828151811061286e5761286e614076565b6020026020010151115b156128965760405163340bc4c960e01b815260040160405180910390fd5b6128ac86888381518110610e9357610e93614076565b60010161282e565b50506111b2565b6001600160a01b0382165f908152600f6020526040812054156128f657506001600160a01b0382165f908152600f6020526040902054612924565b6001600160a01b0383165f908152600d602052604090205460ff161561291f5750601854612924565b506017545b6001600160a01b0383165f908152600e6020526040902054819061294990849061404c565b1115612981576040517fb643bfa600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b85515f036129a25760405163340bc4c960e01b815260040160405180910390fd5b600a5486516019546129b4919061404c565b11156129ec576040517fb643bfa600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f6129f686611e3b565b9050865181612a05919061405f565b341015612a3e576040517f3c6b4b2800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b865160195f828254612a50919061404c565b909155505086516001600160a01b0387165f908152600e602052604081208054909190612a7e90849061404c565b909155505f90505b8751811015612b0c57878181518110612aa157612aa1614076565b60200260200101515f1480612ad05750600a54888281518110612ac657612ac6614076565b6020026020010151115b15612aee5760405163340bc4c960e01b815260040160405180910390fd5b612b0487898381518110610e9357610e93614076565b600101612a86565b5050505050505050565b5f600c5460ff166002811115612b2e57612b2e613f36565b03612b65576040517f17bdf48000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600c5460ff166002811115612b7e57612b7e613f36565b148015612ba357506001600160a01b0381165f908152600d602052604090205460ff16155b15612bda576040517f231e418300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818351612bef6006546001600160a01b031690565b6001600160a01b0316336001600160a01b03161480612c1b57506006546001600160a01b038381169116145b15612dab5784515f03612c415760405163340bc4c960e01b815260040160405180910390fd5b600a548551601954612c53919061404c565b1115612c8b576040517fb643bfa600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f612c9585611e3b565b9050855181612ca4919061405f565b341015612cdd576040517f3c6b4b2800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b855160195f828254612cef919061404c565b909155505085516001600160a01b0386165f908152600e602052604081208054909190612d1d90849061404c565b909155505f90505b86518110156128b457868181518110612d4057612d40614076565b60200260200101515f1480612d6f5750600a54878281518110612d6557612d65614076565b6020026020010151115b15612d8d5760405163340bc4c960e01b815260040160405180910390fd5b612da386888381518110610e9357610e93614076565b600101612d25565b6001600160a01b0382165f908152600f602052604081205415612de657506001600160a01b0382165f908152600f6020526040902054612e14565b6001600160a01b0383165f908152600d602052604090205460ff1615612e0f5750601854612e14565b506017545b6001600160a01b0383165f908152600e60205260409020548190612e3990849061404c565b1115612e71576040517fb643bfa600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b85515f03612e925760405163340bc4c960e01b815260040160405180910390fd5b600a548651601954612ea4919061404c565b1115612edc576040517fb643bfa600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f612ee686611e3b565b9050865181612ef5919061405f565b341015612f2e576040517f3c6b4b2800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b865160195f828254612f40919061404c565b909155505086516001600160a01b0387165f908152600e602052604081208054909190612f6e90849061404c565b909155505f90505b8751811015612b0c57878181518110612f9157612f91614076565b60200260200101515f1480612fc05750600a54888281518110612fb657612fb6614076565b6020026020010151115b15612fde5760405163340bc4c960e01b815260040160405180910390fd5b612ff487898381518110610e9357610e93614076565b600101612f76565b613004613140565b6001600160a01b038116613046576040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081525f600482015260240161191d565b611a4b816132af565b5f818152600260205260408120546001600160a01b031680610b8d576040517f7e2732890000000000000000000000000000000000000000000000000000000081526004810184905260240161191d565b6117798383836001613644565b6001600160a01b0382166130ef576040517f64a0ae920000000000000000000000000000000000000000000000000000000081525f600482015260240161191d565b5f6130fb83835f613186565b90506001600160a01b03811615611779576040517f73c6ac6e0000000000000000000000000000000000000000000000000000000081525f600482015260240161191d565b6006546001600160a01b03163314611b92576040517f118cdaa700000000000000000000000000000000000000000000000000000000815233600482015260240161191d565b5f828152600260205260408120546001600160a01b03908116908316156131b2576131b2818486613797565b6001600160a01b0381161561320b576131cd5f855f80613644565b6001600160a01b0381165f90815260036020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190555b6001600160a01b03851615613239576001600160a01b0385165f908152600360205260409020805460010190555b5f8481526002602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0389811691821790925591518793918516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4949350505050565b600680546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6001600160a01b038216613363576040517f5b08ba180000000000000000000000000000000000000000000000000000000081526001600160a01b038316600482015260240161191d565b6001600160a01b038381165f81815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0383163b15611851576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0384169063150b7a029061342a9033908890879087906004016143a7565b6020604051808303815f875af1925050508015613482575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261347f918101906143e2565b60015b613502573d8080156134af576040519150601f19603f3d011682016040523d82523d5f602084013e6134b4565b606091505b5080515f036134fa576040517f64a0ae920000000000000000000000000000000000000000000000000000000081526001600160a01b038516600482015260240161191d565b805181602001fd5b7fffffffff0000000000000000000000000000000000000000000000000000000081167f150b7a0200000000000000000000000000000000000000000000000000000000146111b2576040517f64a0ae920000000000000000000000000000000000000000000000000000000081526001600160a01b038516600482015260240161191d565b60605f6135948361382d565b60010190505f8167ffffffffffffffff8111156135b3576135b3613aab565b6040519080825280601f01601f1916602001820160405280156135dd576020820181803683370190505b5090508181016020015b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff017f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a85049450846135e757509392505050565b808061365857506001600160a01b03821615155b15613750575f6136678461304f565b90506001600160a01b038316158015906136935750826001600160a01b0316816001600160a01b031614155b80156136c457506001600160a01b038082165f9081526005602090815260408083209387168352929052205460ff16155b15613706576040517fa9fbf51f0000000000000000000000000000000000000000000000000000000081526001600160a01b038416600482015260240161191d565b811561374e5783856001600160a01b0316826001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45b505b50505f90815260046020526040902080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6137a283838361390e565b611779576001600160a01b0383166137e9576040517f7e2732890000000000000000000000000000000000000000000000000000000081526004810182905260240161191d565b6040517f177e802f0000000000000000000000000000000000000000000000000000000081526001600160a01b03831660048201526024810182905260440161191d565b5f807a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310613875577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000830492506040015b6d04ee2d6d415b85acef810000000083106138a1576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc1000083106138bf57662386f26fc10000830492506010015b6305f5e10083106138d7576305f5e100830492506008015b61271083106138eb57612710830492506004015b606483106138fd576064830492506002015b600a8310610b8d5760010192915050565b5f6001600160a01b038316158015906139895750826001600160a01b0316846001600160a01b0316148061396657506001600160a01b038085165f9081526005602090815260408083209387168352929052205460ff165b8061398957505f828152600460205260409020546001600160a01b038481169116145b949350505050565b7fffffffff0000000000000000000000000000000000000000000000000000000081168114611a4b575f80fd5b5f602082840312156139ce575f80fd5b813561240d81613991565b5f5b838110156139f35781810151838201526020016139db565b50505f910152565b5f8151808452613a128160208601602086016139d9565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b602081525f61240d60208301846139fb565b5f60208284031215613a66575f80fd5b5035919050565b6001600160a01b0381168114611a4b575f80fd5b5f8060408385031215613a92575f80fd5b8235613a9d81613a6d565b946020939093013593505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715613b1f57613b1f613aab565b604052919050565b5f67ffffffffffffffff821115613b4057613b40613aab565b5060051b60200190565b5f82601f830112613b59575f80fd5b81356020613b6e613b6983613b27565b613ad8565b8083825260208201915060208460051b870101935086841115613b8f575f80fd5b602086015b84811015613bab5780358352918301918301613b94565b509695505050505050565b5f8060408385031215613bc7575f80fd5b823567ffffffffffffffff811115613bdd575f80fd5b613be985828601613b4a565b9250506020830135613bfa81613a6d565b809150509250929050565b5f805f60608486031215613c17575f80fd5b833567ffffffffffffffff80821115613c2e575f80fd5b613c3a87838801613b4a565b94506020860135915080821115613c4f575f80fd5b50613c5c86828701613b4a565b9250506040840135613c6d81613a6d565b809150509250925092565b5f6020808385031215613c89575f80fd5b823567ffffffffffffffff811115613c9f575f80fd5b8301601f81018513613caf575f80fd5b8035613cbd613b6982613b27565b81815260059190911b82018301908381019087831115613cdb575f80fd5b928401925b82841015613d02578335613cf381613a6d565b82529284019290840190613ce0565b979650505050505050565b5f60208284031215613d1d575f80fd5b813561240d81613a6d565b5f8060408385031215613d39575f80fd5b50508035926020909101359150565b5f805f60608486031215613d5a575f80fd5b8335613d6581613a6d565b92506020840135613d7581613a6d565b929592945050506040919091013590565b5f67ffffffffffffffff831115613d9f57613d9f613aab565b613dd060207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f86011601613ad8565b9050828152838383011115613de3575f80fd5b828260208301375f602084830101529392505050565b5f60208284031215613e09575f80fd5b813567ffffffffffffffff811115613e1f575f80fd5b8201601f81018413613e2f575f80fd5b61398984823560208401613d86565b5f60208284031215613e4e575f80fd5b81356003811061240d575f80fd5b5f805f8060808587031215613e6f575f80fd5b5050823594602084013594506040840135936060013592509050565b5f8060408385031215613e9c575f80fd5b8235613ea781613a6d565b915060208301358015158114613bfa575f80fd5b5f805f8060808587031215613ece575f80fd5b8435613ed981613a6d565b93506020850135613ee981613a6d565b925060408501359150606085013567ffffffffffffffff811115613f0b575f80fd5b8501601f81018713613f1b575f80fd5b613f2a87823560208401613d86565b91505092959194509250565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b6020810160038310613f9c577f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b91905290565b5f8060408385031215613fb3575f80fd5b8235613fbe81613a6d565b91506020830135613bfa81613a6d565b600181811c90821680613fe257607f821691505b602082108103614019577f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b50919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b80820180821115610b8d57610b8d61401f565b8082028115828204841417610b8d57610b8d61401f565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f826140d6577f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b500490565b81810381811115610b8d57610b8d61401f565b805169ffffffffffffffffffff81168114614107575f80fd5b919050565b5f805f805f60a08688031215614120575f80fd5b614129866140ee565b945060208601519350604086015192506060860151915061414c608087016140ee565b90509295509295909350565b601f82111561177957805f5260205f20601f840160051c8101602085101561417d5750805b601f840160051c820191505b818110156111b2575f8155600101614189565b815167ffffffffffffffff8111156141b6576141b6613aab565b6141ca816141c48454613fce565b84614158565b602080601f83116001811461421c575f84156141e65750858301515b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600386901b1c1916600185901b1785556142b0565b5f858152602081207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08616915b8281101561426857888601518255948401946001909101908401614249565b50858210156142a457878501517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600388901b60f8161c191681555b505060018460011b0185555b505050505050565b5f602082840312156142c8575f80fd5b5051919050565b5f8084546142dc81613fce565b600182811680156142f4576001811461430957614335565b60ff1984168752821515830287019450614335565b885f526020805f205f5b8581101561432c5781548a820152908401908201614313565b50505082870194505b505050507f2f000000000000000000000000000000000000000000000000000000000000008152835161436f8160018401602088016139d9565b0161439c600182017f2e6a736f6e0000000000000000000000000000000000000000000000000000009052565b600601949350505050565b5f6001600160a01b038087168352808616602084015250836040830152608060608301526143d860808301846139fb565b9695505050505050565b5f602082840312156143f2575f80fd5b815161240d8161399156fea164736f6c6343000819000a000000000000000000000000024287720c7260c5bcd06aa5c6c89975d27b5eb30000000000000000000000008c900b5ec84dfc8b8c0861c3596280c694790a160000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000000000000000000000000000000000000000064000000000000000000000000aa194affd02a0fb1fb31726e781558f3a67de92100000000000000000000000000000000000000000000000000000000000017700000000000000000000000005f4ec3df9cbd43714fe2740f5e3616155c5b84190000000000000000000000000000000000000000000000000000000000000017526f636b2048797068656e204f7263686964205761737000000000000000000000000000000000000000000000000000000000000000000000000000000000034f4c5a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405260043610610366575f3560e01c8063779545c0116101c8578063b88d4fde116100fd578063dea48c1a1161009d578063ed9ec8881161006d578063ed9ec88814610a22578063eec75cc214610a4d578063f2fde38b14610a7b578063f35dad4014610a9a575f80fd5b8063dea48c1a1461098a578063df01e4bf146109a9578063e0248bfd146109c8578063e985e9c5146109db575f80fd5b8063c7781604116100d8578063c77816041461090e578063c87b56dd1461092d578063c9434b4c1461094c578063dcce53f71461096b575f80fd5b8063b88d4fde146108b4578063bbe68cf0146108d3578063c051e38a146108e8575f80fd5b80639dd4caa211610168578063a3053e2a11610143578063a3053e2a14610829578063a3342fba14610848578063a7cd52cb14610867578063a7f5dba314610895575f80fd5b80639dd4caa2146107d6578063a22cb465146107f5578063a2309ff814610814575f80fd5b80638da5cb5b116101a35780638da5cb5b1461075757806395d89b4114610774578063996517cf146107885780639a3a0385146107b7575f80fd5b8063779545c0146106cb5780637ce91411146106f657806381be3f3214610738575f80fd5b806342842e0e1161029e57806355588c0f1161023e5780636a3e2297116102195780636a3e22971461066657806370a0823114610679578063715018a61461069857806375fd5289146106ac575f80fd5b806355588c0f146105fd5780635e1bff531461061c5780636352211e14610647575f80fd5b80634ab0503b116102795780634ab0503b14610581578063504aa280146105a05780635207c273146105bf57806352716828146105de575f80fd5b806342842e0e1461052f57806342f6fb291461054e578063458e7c801461056d575f80fd5b8063130fd4471161030957806324600fc3116102e457806324600fc3146104d357806326183c15146104e757806330214599146105065780633da165d41461051a575f80fd5b8063130fd4471461045c578063150f885e1461049557806323b872dd146104b4575f80fd5b8063095ea7b311610344578063095ea7b3146103f65780630e481019146104175780630feca98e1461042a578063104b6cb71461043d575f80fd5b806301ffc9a71461036a57806306fdde031461039e578063081812fc146103bf575b5f80fd5b348015610375575f80fd5b506103896103843660046139be565b610aaf565b60405190151581526020015b60405180910390f35b3480156103a9575f80fd5b506103b2610b93565b6040516103959190613a44565b3480156103ca575f80fd5b506103de6103d9366004613a56565b610c22565b6040516001600160a01b039091168152602001610395565b348015610401575f80fd5b50610415610410366004613a81565b610c49565b005b610415610425366004613bb6565b610c58565b610415610438366004613c05565b61177e565b348015610448575f80fd5b50610415610457366004613c78565b611857565b348015610467575f80fd5b50610487610476366004613d0d565b60116020525f908152604090205481565b604051908152602001610395565b3480156104a0575f80fd5b506104156104af366004613d28565b6118b9565b3480156104bf575f80fd5b506104156104ce366004613d48565b6118df565b3480156104de575f80fd5b50610415611999565b3480156104f2575f80fd5b50610415610501366004613a81565b611b94565b348015610511575f80fd5b50610487611bb7565b348015610525575f80fd5b50610487600a5481565b34801561053a575f80fd5b50610415610549366004613d48565b611d11565b348015610559575f80fd5b50601b546103de906001600160a01b031681565b348015610578575f80fd5b506103b2611d2b565b34801561058c575f80fd5b5061041561059b366004613df9565b611db7565b3480156105ab575f80fd5b506104156105ba366004613a56565b611dcb565b3480156105ca575f80fd5b506104156105d9366004613c78565b611dd8565b3480156105e9575f80fd5b506104876105f8366004613d0d565b611e3b565b348015610608575f80fd5b50610415610617366004613e3e565b611fa9565b348015610627575f80fd5b50610487610636366004613d0d565b600f6020525f908152604090205481565b348015610652575f80fd5b506103de610661366004613a56565b611fd8565b610415610674366004613bb6565b611fe2565b348015610684575f80fd5b50610487610693366004613d0d565b6121ca565b3480156106a3575f80fd5b50610415612228565b3480156106b7575f80fd5b506104156106c6366004613e5c565b612239565b3480156106d6575f80fd5b506104876106e5366004613d0d565b60106020525f908152604090205481565b348015610701575f80fd5b506013546014546015546016546107189392919084565b604080519485526020850193909352918301526060820152608001610395565b348015610743575f80fd5b50610415610752366004613d0d565b612275565b348015610762575f80fd5b506006546001600160a01b03166103de565b34801561077f575f80fd5b506103b26122b7565b348015610793575f80fd5b506017546018546107a2919082565b60408051928352602083019190915201610395565b3480156107c2575f80fd5b506104156107d1366004613a81565b6122c6565b3480156107e1575f80fd5b506104876107f0366004613d0d565b6122e9565b348015610800575f80fd5b5061041561080f366004613e8b565b6123d9565b34801561081f575f80fd5b5061048760195481565b348015610834575f80fd5b50610487610843366004613a56565b6123e4565b348015610853575f80fd5b506008546103de906001600160a01b031681565b348015610872575f80fd5b50610389610881366004613d0d565b600d6020525f908152604090205460ff1681565b3480156108a0575f80fd5b506104876108af366004613d0d565b612414565b3480156108bf575f80fd5b506104156108ce366004613ebb565b612590565b3480156108de575f80fd5b50610487600b5481565b3480156108f3575f80fd5b50600c546109019060ff1681565b6040516103959190613f63565b348015610919575f80fd5b50610487610928366004613d0d565b6125a7565b348015610938575f80fd5b506103b2610947366004613a56565b6125c4565b348015610957575f80fd5b50610415610966366004613d0d565b6125f8565b348015610976575f80fd5b506007546103de906001600160a01b031681565b348015610995575f80fd5b506104156109a4366004613a81565b61263a565b3480156109b4575f80fd5b506104156109c3366004613d0d565b61265d565b6104156109d6366004613bb6565b61269f565b3480156109e6575f80fd5b506103896109f5366004613fa2565b6001600160a01b039182165f90815260056020908152604080832093909416825291909152205460ff1690565b348015610a2d575f80fd5b50610487610a3c366004613d0d565b600e6020525f908152604090205481565b348015610a58575f80fd5b50610389610a67366004613a56565b60126020525f908152604090205460ff1681565b348015610a86575f80fd5b50610415610a95366004613d0d565b612ffc565b348015610aa5575f80fd5b50610487601a5481565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd000000000000000000000000000000000000000000000000000000001480610b4157507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610b8d57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b60605f8054610ba190613fce565b80601f0160208091040260200160405190810160405280929190818152602001828054610bcd90613fce565b8015610c185780601f10610bef57610100808354040283529160200191610c18565b820191905f5260205f20905b815481529060010190602001808311610bfb57829003601f168201915b5050505050905090565b5f610c2c8261304f565b505f828152600460205260409020546001600160a01b0316610b8d565b610c548282336130a0565b5050565b80610c6b6006546001600160a01b031690565b6001600160a01b0316336001600160a01b03161480610c9757506006546001600160a01b038281169116145b156111b957818351610cb16006546001600160a01b031690565b6001600160a01b0316336001600160a01b03161480610cdd57506006546001600160a01b038381169116145b15610eef5784515f03610d035760405163340bc4c960e01b815260040160405180910390fd5b600a548551601954610d15919061404c565b1115610d4d576040517fb643bfa600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f610d5785611e3b565b90505f610d6386612414565b8751909150610d72828461404c565b610d7c919061405f565b341015610db5576040517f3c6b4b2800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b865160195f828254610dc7919061404c565b909155505086516001600160a01b0387165f908152600e602052604081208054909190610df590849061404c565b90915550508651601a80545f90610e0d90849061404c565b909155505f90505b8751811015610ee757878181518110610e3057610e30614076565b60200260200101515f1480610e5f5750600a54888281518110610e5557610e55614076565b6020026020010151115b15610e7d5760405163340bc4c960e01b815260040160405180910390fd5b610ea087898381518110610e9357610e93614076565b60200260200101516130ad565b600160125f8a8481518110610eb757610eb7614076565b60209081029190910181015182528101919091526040015f20805460ff1916911515919091179055600101610e15565b5050506111b2565b6001600160a01b0382165f908152600f602052604081205415610f2a57506001600160a01b0382165f908152600f6020526040902054610f58565b6001600160a01b0383165f908152600d602052604090205460ff1615610f535750601854610f58565b506017545b6001600160a01b0383165f908152600e60205260409020548190610f7d90849061404c565b1115610fb5576040517fb643bfa600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b85515f03610fd65760405163340bc4c960e01b815260040160405180910390fd5b600a548651601954610fe8919061404c565b1115611020576040517fb643bfa600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f61102a86611e3b565b90505f61103687612414565b8851909150611045828461404c565b61104f919061405f565b341015611088576040517f3c6b4b2800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b875160195f82825461109a919061404c565b909155505087516001600160a01b0388165f908152600e6020526040812080549091906110c890849061404c565b90915550508751601a80545f906110e090849061404c565b909155505f90505b88518110156111ad5788818151811061110357611103614076565b60200260200101515f14806111325750600a5489828151811061112857611128614076565b6020026020010151115b156111505760405163340bc4c960e01b815260040160405180910390fd5b611166888a8381518110610e9357610e93614076565b600160125f8b848151811061117d5761117d614076565b60209081029190910181015182528101919091526040015f20805460ff19169115159190911790556001016110e8565b505050505b5050505050565b5f600c5460ff1660028111156111d1576111d1613f36565b03611208576040517f17bdf48000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600c5460ff16600281111561122157611221613f36565b14801561124657506001600160a01b0381165f908152600d602052604090205460ff16155b1561127d576040517f231e418300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8183516112926006546001600160a01b031690565b6001600160a01b0316336001600160a01b031614806112be57506006546001600160a01b038381169116145b156114bb5784515f036112e45760405163340bc4c960e01b815260040160405180910390fd5b600a5485516019546112f6919061404c565b111561132e576040517fb643bfa600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f61133885611e3b565b90505f61134486612414565b8751909150611353828461404c565b61135d919061405f565b341015611396576040517f3c6b4b2800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b865160195f8282546113a8919061404c565b909155505086516001600160a01b0387165f908152600e6020526040812080549091906113d690849061404c565b90915550508651601a80545f906113ee90849061404c565b909155505f90505b8751811015610ee75787818151811061141157611411614076565b60200260200101515f14806114405750600a5488828151811061143657611436614076565b6020026020010151115b1561145e5760405163340bc4c960e01b815260040160405180910390fd5b61147487898381518110610e9357610e93614076565b600160125f8a848151811061148b5761148b614076565b60209081029190910181015182528101919091526040015f20805460ff19169115159190911790556001016113f6565b6001600160a01b0382165f908152600f6020526040812054156114f657506001600160a01b0382165f908152600f6020526040902054611524565b6001600160a01b0383165f908152600d602052604090205460ff161561151f5750601854611524565b506017545b6001600160a01b0383165f908152600e6020526040902054819061154990849061404c565b1115611581576040517fb643bfa600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b85515f036115a25760405163340bc4c960e01b815260040160405180910390fd5b600a5486516019546115b4919061404c565b11156115ec576040517fb643bfa600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f6115f686611e3b565b90505f61160287612414565b8851909150611611828461404c565b61161b919061405f565b341015611654576040517f3c6b4b2800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b875160195f828254611666919061404c565b909155505087516001600160a01b0388165f908152600e60205260408120805490919061169490849061404c565b90915550508751601a80545f906116ac90849061404c565b909155505f90505b88518110156111ad578881815181106116cf576116cf614076565b60200260200101515f14806116fe5750600a548982815181106116f4576116f4614076565b6020026020010151115b1561171c5760405163340bc4c960e01b815260040160405180910390fd5b611732888a8381518110610e9357610e93614076565b600160125f8b848151811061174957611749614076565b60209081029190910181015182528101919091526040015f20805460ff19169115159190911790556001016116b4565b505050565b6001600160a01b0381166117be576040517f9c8d2cd200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f6117c882612414565b83516117d4919061405f565b6117dd83611e3b565b85516117e9919061405f565b6117f3919061404c565b90508034101561182f576040517f3c6b4b2800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b83511561184057611840848361269f565b825115611851576118518383611fe2565b50505050565b61185f613140565b5f5b8151811015610c54575f600d5f84848151811061188057611880614076565b6020908102919091018101516001600160a01b031682528101919091526040015f20805460ff1916911515919091179055600101611861565b6118c1613140565b60408051808201909152828152602001819052601791909155601855565b6001600160a01b038216611926576040517f64a0ae920000000000000000000000000000000000000000000000000000000081525f60048201526024015b60405180910390fd5b5f611932838333613186565b9050836001600160a01b0316816001600160a01b031614611851576040517f64283d7b0000000000000000000000000000000000000000000000000000000081526001600160a01b038086166004830152602482018490528216604482015260640161191d565b6119a1613140565b6008546001600160a01b0316611a4e575f6119c46006546001600160a01b031690565b6001600160a01b0316476040515f6040518083038185875af1925050503d805f8114611a0b576040519150601f19603f3d011682016040523d82523d5f602084013e611a10565b606091505b5050905080611a4b576040517f27fcd9d100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50565b5f612710600b5447611a60919061405f565b611a6a91906140a3565b90505f611a7782476140db565b6008546040519192505f916001600160a01b039091169084908381818185875af1925050503d805f8114611ac6576040519150601f19603f3d011682016040523d82523d5f602084013e611acb565b606091505b5050905080611b06576040517f27fcd9d100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006546040516001600160a01b039091169083905f81818185875af1925050503d805f8114611b50576040519150601f19603f3d011682016040523d82523d5f602084013e611b55565b606091505b50508091505080611779576040517f27fcd9d100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b611b9c613140565b6001600160a01b039091165f90815260116020526040902055565b5f805f805f601b5f9054906101000a90046001600160a01b03166001600160a01b031663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa158015611c0c573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611c30919061410c565b9450945050935093505f8313611c71576040517ebfc92100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8369ffffffffffffffffffff168169ffffffffffffffffffff161015611cc3576040517f19abf40e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611c20611cd083426140db565b1115611d08576040517f19abf40e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50909392505050565b61177983838360405180602001604052805f815250612590565b60098054611d3890613fce565b80601f0160208091040260200160405190810160405280929190818152602001828054611d6490613fce565b8015611daf5780601f10611d8657610100808354040283529160200191611daf565b820191905f5260205f20905b815481529060010190602001808311611d9257829003601f168201915b505050505081565b611dbf613140565b6009610c54828261419c565b611dd3613140565b600b55565b611de0613140565b5f5b8151811015610c54576001600d5f848481518110611e0257611e02614076565b6020908102919091018101516001600160a01b031682528101919091526040015f20805460ff1916911515919091179055600101611de2565b6001600160a01b0381165f9081526010602052604081205415611e7357506001600160a01b03165f9081526010602052604090205490565b6006546001600160a01b0383811691161480611e9957506006546001600160a01b031633145b15611ea557505f919050565b601454158015611eb55750601354155b15611eec576040517f02b87b6700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b0382165f908152600d602052604090205460ff1680611f9457506007546040517f70a082310000000000000000000000000000000000000000000000000000000081526001600160a01b0384811660048301525f9216906370a0823190602401602060405180830381865afa158015611f6e573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611f9291906142b8565b115b15611fa157505060145490565b505060135490565b611fb1613140565b600c805482919060ff19166001836002811115611fd057611fd0613f36565b021790555050565b5f610b8d8261304f565b81515f036120035760405163340bc4c960e01b815260040160405180910390fd5b815161200e82612414565b612018919061405f565b341015612051576040517f3c6b4b2800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f6120646006546001600160a01b031690565b90505f5b83518110156121ad57816001600160a01b0316836001600160a01b0316141580156120c657506120b08482815181106120a3576120a3614076565b6020026020010151611fd8565b6001600160a01b0316836001600160a01b031614155b156120fd576040517f6d3791c200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60125f85838151811061211257612112614076565b60209081029190910181015182528101919091526040015f205460ff1615612166576040517f1bd64ea500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600160125f86848151811061217d5761217d614076565b60209081029190910181015182528101919091526040015f20805460ff1916911515919091179055600101612068565b508251601a5f8282546121c0919061404c565b9091555050505050565b5f6001600160a01b03821661220d576040517f89c62b640000000000000000000000000000000000000000000000000000000081525f600482015260240161191d565b506001600160a01b03165f9081526003602052604090205490565b612230613140565b611b925f6132af565b612241613140565b6040805160808101825285815260208101859052908101839052606001819052601393909355601491909155601555601655565b61227d613140565b600780547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b606060018054610ba190613fce565b6122ce613140565b6001600160a01b039091165f90815260106020526040902055565b5f6122fc6006546001600160a01b031690565b6001600160a01b0316826001600160a01b03160361232457601954600a54610b8d91906140db565b6001600160a01b0382165f908152600f60205260409020541561236f576001600160a01b0382165f908152600e6020908152604080832054600f90925290912054610b8d91906140db565b6001600160a01b0382165f908152600d602052604090205460ff16156123b4576001600160a01b0382165f908152600e6020526040902054601854610b8d91906140db565b6001600160a01b0382165f908152600e6020526040902054601754610b8d91906140db565b610c54338383613318565b5f806123ee611bb7565b90508061240384670de0b6b3a764000061405f565b61240d91906140a3565b9392505050565b6001600160a01b0381165f9081526011602052604081205415612452576001600160a01b0382165f90815260116020526040902054610b8d906123e4565b6006546001600160a01b038381169116148061247857506006546001600160a01b031633145b1561248457505f919050565b6016541580156124945750601554155b156124cb576040517f02b87b6700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b0382165f908152600d602052604090205460ff168061257357506007546040517f70a082310000000000000000000000000000000000000000000000000000000081526001600160a01b0384811660048301525f9216906370a0823190602401602060405180830381865afa15801561254d573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061257191906142b8565b115b1561258457601654610b8d906123e4565b601554610b8d906123e4565b61259b8484846118df565b611851848484846133cf565b5f6125b182612414565b6125ba83611e3b565b610b8d919061404c565b606060096125d183613588565b6040516020016125e29291906142cf565b6040516020818303038152906040529050919050565b612600613140565b601b80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b612642613140565b6001600160a01b039091165f908152600f6020526040902055565b612665613140565b600880547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b806126b26006546001600160a01b031690565b6001600160a01b0316336001600160a01b031614806126de57506006546001600160a01b038281169116145b15612b16578183516126f86006546001600160a01b031690565b6001600160a01b0316336001600160a01b0316148061272457506006546001600160a01b038381169116145b156128bb5784515f0361274a5760405163340bc4c960e01b815260040160405180910390fd5b600a54855160195461275c919061404c565b1115612794576040517fb643bfa600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f61279e85611e3b565b90508551816127ad919061405f565b3410156127e6576040517f3c6b4b2800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b855160195f8282546127f8919061404c565b909155505085516001600160a01b0386165f908152600e60205260408120805490919061282690849061404c565b909155505f90505b86518110156128b45786818151811061284957612849614076565b60200260200101515f14806128785750600a5487828151811061286e5761286e614076565b6020026020010151115b156128965760405163340bc4c960e01b815260040160405180910390fd5b6128ac86888381518110610e9357610e93614076565b60010161282e565b50506111b2565b6001600160a01b0382165f908152600f6020526040812054156128f657506001600160a01b0382165f908152600f6020526040902054612924565b6001600160a01b0383165f908152600d602052604090205460ff161561291f5750601854612924565b506017545b6001600160a01b0383165f908152600e6020526040902054819061294990849061404c565b1115612981576040517fb643bfa600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b85515f036129a25760405163340bc4c960e01b815260040160405180910390fd5b600a5486516019546129b4919061404c565b11156129ec576040517fb643bfa600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f6129f686611e3b565b9050865181612a05919061405f565b341015612a3e576040517f3c6b4b2800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b865160195f828254612a50919061404c565b909155505086516001600160a01b0387165f908152600e602052604081208054909190612a7e90849061404c565b909155505f90505b8751811015612b0c57878181518110612aa157612aa1614076565b60200260200101515f1480612ad05750600a54888281518110612ac657612ac6614076565b6020026020010151115b15612aee5760405163340bc4c960e01b815260040160405180910390fd5b612b0487898381518110610e9357610e93614076565b600101612a86565b5050505050505050565b5f600c5460ff166002811115612b2e57612b2e613f36565b03612b65576040517f17bdf48000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600c5460ff166002811115612b7e57612b7e613f36565b148015612ba357506001600160a01b0381165f908152600d602052604090205460ff16155b15612bda576040517f231e418300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818351612bef6006546001600160a01b031690565b6001600160a01b0316336001600160a01b03161480612c1b57506006546001600160a01b038381169116145b15612dab5784515f03612c415760405163340bc4c960e01b815260040160405180910390fd5b600a548551601954612c53919061404c565b1115612c8b576040517fb643bfa600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f612c9585611e3b565b9050855181612ca4919061405f565b341015612cdd576040517f3c6b4b2800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b855160195f828254612cef919061404c565b909155505085516001600160a01b0386165f908152600e602052604081208054909190612d1d90849061404c565b909155505f90505b86518110156128b457868181518110612d4057612d40614076565b60200260200101515f1480612d6f5750600a54878281518110612d6557612d65614076565b6020026020010151115b15612d8d5760405163340bc4c960e01b815260040160405180910390fd5b612da386888381518110610e9357610e93614076565b600101612d25565b6001600160a01b0382165f908152600f602052604081205415612de657506001600160a01b0382165f908152600f6020526040902054612e14565b6001600160a01b0383165f908152600d602052604090205460ff1615612e0f5750601854612e14565b506017545b6001600160a01b0383165f908152600e60205260409020548190612e3990849061404c565b1115612e71576040517fb643bfa600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b85515f03612e925760405163340bc4c960e01b815260040160405180910390fd5b600a548651601954612ea4919061404c565b1115612edc576040517fb643bfa600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f612ee686611e3b565b9050865181612ef5919061405f565b341015612f2e576040517f3c6b4b2800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b865160195f828254612f40919061404c565b909155505086516001600160a01b0387165f908152600e602052604081208054909190612f6e90849061404c565b909155505f90505b8751811015612b0c57878181518110612f9157612f91614076565b60200260200101515f1480612fc05750600a54888281518110612fb657612fb6614076565b6020026020010151115b15612fde5760405163340bc4c960e01b815260040160405180910390fd5b612ff487898381518110610e9357610e93614076565b600101612f76565b613004613140565b6001600160a01b038116613046576040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081525f600482015260240161191d565b611a4b816132af565b5f818152600260205260408120546001600160a01b031680610b8d576040517f7e2732890000000000000000000000000000000000000000000000000000000081526004810184905260240161191d565b6117798383836001613644565b6001600160a01b0382166130ef576040517f64a0ae920000000000000000000000000000000000000000000000000000000081525f600482015260240161191d565b5f6130fb83835f613186565b90506001600160a01b03811615611779576040517f73c6ac6e0000000000000000000000000000000000000000000000000000000081525f600482015260240161191d565b6006546001600160a01b03163314611b92576040517f118cdaa700000000000000000000000000000000000000000000000000000000815233600482015260240161191d565b5f828152600260205260408120546001600160a01b03908116908316156131b2576131b2818486613797565b6001600160a01b0381161561320b576131cd5f855f80613644565b6001600160a01b0381165f90815260036020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190555b6001600160a01b03851615613239576001600160a01b0385165f908152600360205260409020805460010190555b5f8481526002602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0389811691821790925591518793918516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4949350505050565b600680546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6001600160a01b038216613363576040517f5b08ba180000000000000000000000000000000000000000000000000000000081526001600160a01b038316600482015260240161191d565b6001600160a01b038381165f81815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0383163b15611851576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0384169063150b7a029061342a9033908890879087906004016143a7565b6020604051808303815f875af1925050508015613482575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261347f918101906143e2565b60015b613502573d8080156134af576040519150601f19603f3d011682016040523d82523d5f602084013e6134b4565b606091505b5080515f036134fa576040517f64a0ae920000000000000000000000000000000000000000000000000000000081526001600160a01b038516600482015260240161191d565b805181602001fd5b7fffffffff0000000000000000000000000000000000000000000000000000000081167f150b7a0200000000000000000000000000000000000000000000000000000000146111b2576040517f64a0ae920000000000000000000000000000000000000000000000000000000081526001600160a01b038516600482015260240161191d565b60605f6135948361382d565b60010190505f8167ffffffffffffffff8111156135b3576135b3613aab565b6040519080825280601f01601f1916602001820160405280156135dd576020820181803683370190505b5090508181016020015b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff017f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a85049450846135e757509392505050565b808061365857506001600160a01b03821615155b15613750575f6136678461304f565b90506001600160a01b038316158015906136935750826001600160a01b0316816001600160a01b031614155b80156136c457506001600160a01b038082165f9081526005602090815260408083209387168352929052205460ff16155b15613706576040517fa9fbf51f0000000000000000000000000000000000000000000000000000000081526001600160a01b038416600482015260240161191d565b811561374e5783856001600160a01b0316826001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45b505b50505f90815260046020526040902080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6137a283838361390e565b611779576001600160a01b0383166137e9576040517f7e2732890000000000000000000000000000000000000000000000000000000081526004810182905260240161191d565b6040517f177e802f0000000000000000000000000000000000000000000000000000000081526001600160a01b03831660048201526024810182905260440161191d565b5f807a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310613875577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000830492506040015b6d04ee2d6d415b85acef810000000083106138a1576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc1000083106138bf57662386f26fc10000830492506010015b6305f5e10083106138d7576305f5e100830492506008015b61271083106138eb57612710830492506004015b606483106138fd576064830492506002015b600a8310610b8d5760010192915050565b5f6001600160a01b038316158015906139895750826001600160a01b0316846001600160a01b0316148061396657506001600160a01b038085165f9081526005602090815260408083209387168352929052205460ff165b8061398957505f828152600460205260409020546001600160a01b038481169116145b949350505050565b7fffffffff0000000000000000000000000000000000000000000000000000000081168114611a4b575f80fd5b5f602082840312156139ce575f80fd5b813561240d81613991565b5f5b838110156139f35781810151838201526020016139db565b50505f910152565b5f8151808452613a128160208601602086016139d9565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b602081525f61240d60208301846139fb565b5f60208284031215613a66575f80fd5b5035919050565b6001600160a01b0381168114611a4b575f80fd5b5f8060408385031215613a92575f80fd5b8235613a9d81613a6d565b946020939093013593505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715613b1f57613b1f613aab565b604052919050565b5f67ffffffffffffffff821115613b4057613b40613aab565b5060051b60200190565b5f82601f830112613b59575f80fd5b81356020613b6e613b6983613b27565b613ad8565b8083825260208201915060208460051b870101935086841115613b8f575f80fd5b602086015b84811015613bab5780358352918301918301613b94565b509695505050505050565b5f8060408385031215613bc7575f80fd5b823567ffffffffffffffff811115613bdd575f80fd5b613be985828601613b4a565b9250506020830135613bfa81613a6d565b809150509250929050565b5f805f60608486031215613c17575f80fd5b833567ffffffffffffffff80821115613c2e575f80fd5b613c3a87838801613b4a565b94506020860135915080821115613c4f575f80fd5b50613c5c86828701613b4a565b9250506040840135613c6d81613a6d565b809150509250925092565b5f6020808385031215613c89575f80fd5b823567ffffffffffffffff811115613c9f575f80fd5b8301601f81018513613caf575f80fd5b8035613cbd613b6982613b27565b81815260059190911b82018301908381019087831115613cdb575f80fd5b928401925b82841015613d02578335613cf381613a6d565b82529284019290840190613ce0565b979650505050505050565b5f60208284031215613d1d575f80fd5b813561240d81613a6d565b5f8060408385031215613d39575f80fd5b50508035926020909101359150565b5f805f60608486031215613d5a575f80fd5b8335613d6581613a6d565b92506020840135613d7581613a6d565b929592945050506040919091013590565b5f67ffffffffffffffff831115613d9f57613d9f613aab565b613dd060207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f86011601613ad8565b9050828152838383011115613de3575f80fd5b828260208301375f602084830101529392505050565b5f60208284031215613e09575f80fd5b813567ffffffffffffffff811115613e1f575f80fd5b8201601f81018413613e2f575f80fd5b61398984823560208401613d86565b5f60208284031215613e4e575f80fd5b81356003811061240d575f80fd5b5f805f8060808587031215613e6f575f80fd5b5050823594602084013594506040840135936060013592509050565b5f8060408385031215613e9c575f80fd5b8235613ea781613a6d565b915060208301358015158114613bfa575f80fd5b5f805f8060808587031215613ece575f80fd5b8435613ed981613a6d565b93506020850135613ee981613a6d565b925060408501359150606085013567ffffffffffffffff811115613f0b575f80fd5b8501601f81018713613f1b575f80fd5b613f2a87823560208401613d86565b91505092959194509250565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b6020810160038310613f9c577f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b91905290565b5f8060408385031215613fb3575f80fd5b8235613fbe81613a6d565b91506020830135613bfa81613a6d565b600181811c90821680613fe257607f821691505b602082108103614019577f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b50919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b80820180821115610b8d57610b8d61401f565b8082028115828204841417610b8d57610b8d61401f565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f826140d6577f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b500490565b81810381811115610b8d57610b8d61401f565b805169ffffffffffffffffffff81168114614107575f80fd5b919050565b5f805f805f60a08688031215614120575f80fd5b614129866140ee565b945060208601519350604086015192506060860151915061414c608087016140ee565b90509295509295909350565b601f82111561177957805f5260205f20601f840160051c8101602085101561417d5750805b601f840160051c820191505b818110156111b2575f8155600101614189565b815167ffffffffffffffff8111156141b6576141b6613aab565b6141ca816141c48454613fce565b84614158565b602080601f83116001811461421c575f84156141e65750858301515b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600386901b1c1916600185901b1785556142b0565b5f858152602081207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08616915b8281101561426857888601518255948401946001909101908401614249565b50858210156142a457878501517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600388901b60f8161c191681555b505060018460011b0185555b505050505050565b5f602082840312156142c8575f80fd5b5051919050565b5f8084546142dc81613fce565b600182811680156142f4576001811461430957614335565b60ff1984168752821515830287019450614335565b885f526020805f205f5b8581101561432c5781548a820152908401908201614313565b50505082870194505b505050507f2f000000000000000000000000000000000000000000000000000000000000008152835161436f8160018401602088016139d9565b0161439c600182017f2e6a736f6e0000000000000000000000000000000000000000000000000000009052565b600601949350505050565b5f6001600160a01b038087168352808616602084015250836040830152608060608301526143d860808301846139fb565b9695505050505050565b5f602082840312156143f2575f80fd5b815161240d8161399156fea164736f6c6343000819000a

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

000000000000000000000000024287720c7260c5bcd06aa5c6c89975d27b5eb30000000000000000000000008c900b5ec84dfc8b8c0861c3596280c694790a160000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000000000000000000000000000000000000000064000000000000000000000000aa194affd02a0fb1fb31726e781558f3a67de92100000000000000000000000000000000000000000000000000000000000017700000000000000000000000005f4ec3df9cbd43714fe2740f5e3616155c5b84190000000000000000000000000000000000000000000000000000000000000017526f636b2048797068656e204f7263686964205761737000000000000000000000000000000000000000000000000000000000000000000000000000000000034f4c5a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _owner (address): 0x024287720C7260c5BcD06Aa5C6C89975d27b5eb3
Arg [1] : _artistWallet (address): 0x8c900b5EC84dfC8b8C0861c3596280c694790a16
Arg [2] : _name (string): Rock Hyphen Orchid Wasp
Arg [3] : _symbol (string): OLZ
Arg [4] : _baseDir (string):
Arg [5] : _dropSize (uint256): 100
Arg [6] : _lifeTimePass (address): 0xaa194afFd02A0fB1Fb31726E781558F3a67DE921
Arg [7] : _artistSplit (uint256): 6000
Arg [8] : _ethUsdPriceFeed (address): 0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419

-----Encoded View---------------
14 Constructor Arguments found :
Arg [0] : 000000000000000000000000024287720c7260c5bcd06aa5c6c89975d27b5eb3
Arg [1] : 0000000000000000000000008c900b5ec84dfc8b8c0861c3596280c694790a16
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [4] : 00000000000000000000000000000000000000000000000000000000000001a0
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000064
Arg [6] : 000000000000000000000000aa194affd02a0fb1fb31726e781558f3a67de921
Arg [7] : 0000000000000000000000000000000000000000000000000000000000001770
Arg [8] : 0000000000000000000000005f4ec3df9cbd43714fe2740f5e3616155c5b8419
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000017
Arg [10] : 526f636b2048797068656e204f72636869642057617370000000000000000000
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [12] : 4f4c5a0000000000000000000000000000000000000000000000000000000000
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000000


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  ]

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.