ETH Price: $3,393.87 (+1.37%)

Token

3Landers (3L)
 

Overview

Max Total Supply

10,000 3L

Holders

5,265

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 3L
0xe47db031f07d3f4aab5cb77cc891c0600498ef95
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

3Landers is a collectible NFT project centered around community, adventure, and collaboration. Each 3Lander resides on the Ethereum blockchain as a unique, non-fungible token (NFT) made up out of a unique combination of traits and underlying “DNAs”. Holding a 3Landers NFT make...

# Exchange Pair Price  24H Volume % Volume
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.

Contract Source Code Verified (Exact Match)

Contract Name:
OxStandard

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 24 : 0xStandard.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/finance/PaymentSplitter.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol";
import "./lib/BlockBasedSale.sol";
import "./lib/EIP712Whitelisting.sol";

contract OxStandard is
    Ownable,
    ERC721,
    ERC721Enumerable,
    EIP712Whitelisting,
    VRFConsumerBase,
    BlockBasedSale,
    ReentrancyGuard
{
    using Address for address;
    using SafeMath for uint256;

    event PermanentURI(string _value, uint256 indexed _id);
    event RandomseedRequested(uint256 timestamp);
    event RandomseedFulfilmentSuccess(
        uint256 timestamp,
        bytes32 requestId,
        uint256 seed
    );
    event RandomseedFulfilmentFail(uint256 timestamp, bytes32 requestId);
    event RandomseedFulfilmentManually(uint256 timestamp);

    enum SaleState {
        NotStarted,
        PrivateSaleBeforeWithoutBlock,
        PrivateSaleBeforeWithBlock,
        PrivateSaleDuring,
        PrivateSaleEnd,
        PrivateSaleEndSoldOut,
        PublicSaleBeforeWithoutBlock,
        PublicSaleBeforeWithBlock,
        PublicSaleDuring,
        PublicSaleEnd,
        PublicSaleEndSoldOut,
        PauseSale,
        AllSalesEnd
    }

    PaymentSplitter private _splitter;

    struct chainlinkParams {
        address coordinator;
        address linkToken;
        bytes32 keyHash;
    }

    struct revenueShareParams {
        address[] payees;
        uint256[] shares;
    }

    bool public randomseedRequested = false;
    bool public beneficiaryAssigned = false;

    bytes32 public keyHash;    

    
    uint256 public revealBlock = 0;
    uint256 public seed = 0;

    mapping(address => bool) private _airdropAllowed;
    mapping(address => uint256) private _privateSaleClaimed;

    string public _defaultURI;
    string public _tokenBaseURI;

    constructor(
        uint256 _privateSalePrice,
        uint256 _publicSalePrice,
        string memory name,
        string memory symbol,
        uint256 _maxSupply,
        chainlinkParams memory chainlink,
        revenueShareParams memory revenueShare
    )
        ERC721(name, symbol)
        VRFConsumerBase(chainlink.coordinator, chainlink.linkToken)
    {
        _splitter = new PaymentSplitter(
            revenueShare.payees,
            revenueShare.shares
        );
        keyHash = chainlink.keyHash;
        maxSupply = _maxSupply;
        publicSalePrice = _publicSalePrice;
        privateSalePrice = _privateSalePrice;
    }

    address private beneficiaryAddress;

    modifier airdropRoleOnly() {
        require(_airdropAllowed[msg.sender], "Only airdrop role allowed.");
        _;
    }
    
    modifier beneficiaryOnly() {
        require(
            beneficiaryAssigned && msg.sender == beneficiaryAddress,
            "Only beneficiary allowed."
        );
        _;
    }

    function airdrop(address[] memory addresses, uint256 amount)
        external
        airdropRoleOnly
    {
        require(
            totalSupply().add(addresses.length.mul(amount)) <= maxSupply,
            "Exceed max supply limit."
        );

        require(
            totalReserveMinted.add(addresses.length.mul(amount)) <= maxReserve,
            "Insufficient reserve."
        );

        for (uint256 i = 0; i < addresses.length; i++) {
            _mintToken(addresses[i], amount);
        }

        totalReserveMinted = totalReserveMinted.add(
            addresses.length.mul(amount)
        );
    }

    function setAirdropRole(address addr) external onlyOwner {
        _airdropAllowed[addr] = true;
    }

    function getMarketState() external pure returns (SaleState) {
        return SaleState.NotStarted;
    }

    function setRevealBlock(uint256 blockNumber) external onlyOwner {
        revealBlock = blockNumber;
    }

    function freeze(uint256[] memory ids) external onlyOwner {
        for (uint256 i = 0; i < ids.length; i += 1) {
            emit PermanentURI(tokenURI(ids[i]), ids[i]);
        }
    }

    function mintToken(uint256 amount, bytes calldata signature)
        external
        payable
        nonReentrant
        returns (bool)
    {
        require(!msg.sender.isContract(), "Contract is not allowed.");
        require(
            getState() == SaleState.PrivateSaleDuring ||
                getState() == SaleState.PublicSaleDuring,
            "Sale not available."
        );

        if (getState() == SaleState.PublicSaleDuring) {
            require(
                amount <= maxPublicSalePerTx,
                "Mint exceed transaction limits."
            );
            require(
                msg.value >= amount.mul(getPriceByMode()),
                "Insufficient funds."
            );
            require(
                totalSupply().add(amount).add(availableReserve()) <= maxSupply,
                "Purchase exceed max supply."
            );
        }

        if (getState() == SaleState.PrivateSaleDuring) {
            require(isEIP712WhiteListed(signature), "Not whitelisted.");
            require(
                amount <= maxPrivateSalePerTx,
                "Mint exceed transaction limits"
            );
            require(
                _privateSaleClaimed[msg.sender] + amount <=
                    maxWhitelistClaimPerWallet,
                "Mint limit per wallet exceeded."
            );
            require(
                totalPrivateSaleMinted.add(amount) <= privateSaleCapped,
                "Purchase exceed private sale capped."
            );

            require(
                msg.value >= amount.mul(getPriceByMode()),
                "Insufficient funds."
            );
        }

        if (
            getState() == SaleState.PrivateSaleDuring ||
            getState() == SaleState.PublicSaleDuring
        ) {
            _mintToken(msg.sender, amount);
            if (getState() == SaleState.PublicSaleDuring) {
                totalPublicMinted = totalPublicMinted + amount;
            }
            if (getState() == SaleState.PrivateSaleDuring) {
                _privateSaleClaimed[msg.sender] =
                    _privateSaleClaimed[msg.sender] +
                    amount;
                totalPrivateSaleMinted = totalPrivateSaleMinted + amount;
            }
            payable(_splitter).transfer(msg.value);
        }

        return true;
    }

    function setSeed(uint256 randomNumber) external onlyOwner {
        randomseedRequested = true;
        seed = randomNumber;
        emit RandomseedFulfilmentManually(block.timestamp);
    }

    function setBaseURI(string memory baseURI) external onlyOwner {
        _tokenBaseURI = baseURI;
    }

    function setDefaultURI(string memory defaultURI) external onlyOwner {
        _defaultURI = defaultURI;
    }

    function requestChainlinkVRF() external onlyOwner {
        require(!randomseedRequested, "Chainlink VRF already requested");
        require(
            LINK.balanceOf(address(this)) >= 2000000000000000000,
            "Insufficient LINK"
        );
        requestRandomness(keyHash, 2000000000000000000);
        randomseedRequested = true;
        emit RandomseedRequested(block.timestamp);
    }

    function getState() public view returns (SaleState) {
        uint256 supplyWithoutReserve = maxSupply - maxReserve;
        uint256 mintedWithoutReserve = totalPublicMinted +
            totalPrivateSaleMinted;

        if (
            salePhase != SalePhase.None &&
            overridedSaleState == OverrideSaleState.Close
        ) {
            return SaleState.AllSalesEnd;
        }

        if (
            salePhase != SalePhase.None &&
            overridedSaleState == OverrideSaleState.Pause
        ) {
            return SaleState.PauseSale;
        }

        if (
            salePhase == SalePhase.Public &&
            mintedWithoutReserve == supplyWithoutReserve
        ) {
            return SaleState.PublicSaleEndSoldOut;
        }

        if (salePhase == SalePhase.None) {
            return SaleState.NotStarted;
        }

        if (
            salePhase == SalePhase.Public &&
            publicSale.endBlock > 0 &&
            block.number > publicSale.endBlock
        ) {
            return SaleState.PublicSaleEnd;
        }

        if (
            salePhase == SalePhase.Public &&
            publicSale.beginBlock > 0 &&
            block.number >= publicSale.beginBlock
        ) {
            return SaleState.PublicSaleDuring;
        }

        if (
            salePhase == SalePhase.Public &&
            publicSale.beginBlock > 0 &&
            block.number < publicSale.beginBlock &&
            block.number > privateSale.endBlock
        ) {
            return SaleState.PublicSaleBeforeWithBlock;
        }

        if (
            salePhase == SalePhase.Public &&
            publicSale.beginBlock == 0 &&
            block.number > privateSale.endBlock
        ) {
            return SaleState.PublicSaleBeforeWithoutBlock;
        }

        if (
            salePhase == SalePhase.Private &&
            totalPrivateSaleMinted == privateSaleCapped
        ) {
            return SaleState.PrivateSaleEndSoldOut;
        }

        if (
            salePhase == SalePhase.Private &&
            privateSale.endBlock > 0 &&
            block.number > privateSale.endBlock
        ) {
            return SaleState.PrivateSaleEnd;
        }

        if (
            salePhase == SalePhase.Private &&
            privateSale.beginBlock > 0 &&
            block.number >= privateSale.beginBlock
        ) {
            return SaleState.PrivateSaleDuring;
        }
        
        if (
            salePhase == SalePhase.Private &&
            privateSale.beginBlock > 0 &&
            block.number < privateSale.beginBlock
        ) {
            return SaleState.PrivateSaleBeforeWithBlock;
        }

        if (salePhase == SalePhase.Private && privateSale.beginBlock == 0) {
            return SaleState.PrivateSaleBeforeWithoutBlock;
        }

        return SaleState.NotStarted;
    }

    function getStartSaleBlock() external view returns (uint256) {
        if (
            SaleState.PrivateSaleBeforeWithBlock == getState() ||
            SaleState.PrivateSaleDuring == getState()
        ) {
            return privateSale.beginBlock;
        }

        if (
            SaleState.PublicSaleBeforeWithBlock == getState() ||
            SaleState.PublicSaleDuring == getState()
        ) {
            return publicSale.beginBlock;
        }

        return 0;
    }

    function getEndSaleBlock() external view returns (uint256) {
        if (
            SaleState.PrivateSaleBeforeWithBlock == getState() ||
            SaleState.PrivateSaleDuring == getState()
        ) {
            return privateSale.endBlock;
        }

        if (
            SaleState.PublicSaleBeforeWithBlock == getState() ||
            SaleState.PublicSaleDuring == getState()
        ) {
            return publicSale.endBlock;
        }

        return 0;
    }

    function tokenBaseURI() external view returns (string memory) {
        return _tokenBaseURI;
    }

    function isRevealed() public view returns (bool) {
        return seed > 0 && revealBlock > 0 && block.number > revealBlock;
    }

    function getMetadata(uint256 tokenId) public view returns (string memory) {
        if (_msgSender() != owner()) {
            require(tokenId < totalSupply(), "Token not exists.");
        }

        if (!isRevealed()) return "default";

        uint256[] memory metadata = new uint256[](maxSupply+1);

        for (uint256 i = 1; i <= maxSupply; i += 1) {
            metadata[i] = i;
        }

        for (uint256 i = 2; i <= maxSupply; i += 1) {
            uint256 j = (uint256(keccak256(abi.encode(seed, i))) % (maxSupply)) + 1;

            if(j>=2 && j<= maxSupply) {
                (metadata[i], metadata[j]) = (metadata[j], metadata[i]);
            }
        }

        return Strings.toString(metadata[tokenId]);
    }

    function tokenURI(uint256 tokenId)
        public
        view
        override(ERC721)
        returns (string memory)
    {
        require(tokenId < totalSupply()+1, "Token not exist.");

        return
            isRevealed()
                ? string(
                    abi.encodePacked(
                        _tokenBaseURI,
                        getMetadata(tokenId),
                        ".json"
                    )
                )
                : _defaultURI;
    }

    function availableReserve() public view returns (uint256) {
        return maxReserve - totalReserveMinted;
    }

    function getMaxSupplyByMode() public view returns (uint256) {
        if (getState() == SaleState.PrivateSaleDuring) return privateSaleCapped;
        if (getState() == SaleState.PublicSaleDuring)
            return maxSupply - totalPrivateSaleMinted - maxReserve;
        return 0;
    }

    function getMintedByMode() external view returns (uint256) {
        if (getState() == SaleState.PrivateSaleDuring)
            return totalPrivateSaleMinted;
        if (getState() == SaleState.PublicSaleDuring) return totalPublicMinted;
        return 0;
    }

    function getTransactionCappedByMode() external view returns (uint256) {
        return
            getState() == SaleState.PrivateSaleDuring
                ? maxPrivateSalePerTx
                : maxPublicSalePerTx;
    }

    function availableForSale() external view returns (uint256) {
        return maxSupply - totalSupply();
    }

    function getPriceByMode() public view returns (uint256) {
        if (getState() == SaleState.PrivateSaleDuring) return privateSalePrice;

        if (getState() == SaleState.PublicSaleDuring) {
            uint256 passedBlock = block.number - publicSale.beginBlock;
            uint256 discountPrice = passedBlock.div(discountBlockSize).mul(
                priceFactor
            );

            if (discountPrice >= publicSalePrice.sub(lowerBoundPrice)) {
                return lowerBoundPrice;
            } else {
                return publicSalePrice.sub(discountPrice);
            }
        }

        return publicSalePrice;
    }

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

    function startPublicSaleBlock() external view returns (uint256) {
        return publicSale.beginBlock;
    }

    function endPublicSaleBlock() external view returns (uint256) {
        return publicSale.endBlock;
    }

    function startPrivateSaleBlock() external view returns (uint256) {
        return privateSale.beginBlock;
    }

    function endPrivateSaleBlock() external view returns (uint256) {
        return privateSale.endBlock;
    }

    function release(address payable account) public virtual onlyOwner {
        _splitter.release(account);
    }

    function withdraw() external beneficiaryOnly {
        uint256 balance = address(this).balance;
        payable(msg.sender).transfer(balance);
    }

    function _mintToken(address addr, uint256 amount) internal returns (bool) {
        for (uint256 i = 0; i < amount; i++) {
            uint256 tokenIndex = totalSupply();
            if (tokenIndex < maxSupply) _safeMint(addr, tokenIndex +1);
        }
        return true;
    }

    function fulfillRandomness(bytes32 requestId, uint256 randomNumber)
        internal
        override
    {
        if (randomNumber > 0) {
            seed = randomNumber;
            emit RandomseedFulfilmentSuccess(block.timestamp, requestId, seed);
        } else {
            seed = 1;
            emit RandomseedFulfilmentFail(block.timestamp, requestId);
        }
    }

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

File 2 of 24 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 3 of 24 : PaymentSplitter.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (finance/PaymentSplitter.sol)

pragma solidity ^0.8.0;

import "../token/ERC20/utils/SafeERC20.sol";
import "../utils/Address.sol";
import "../utils/Context.sol";

/**
 * @title PaymentSplitter
 * @dev This contract allows to split Ether payments among a group of accounts. The sender does not need to be aware
 * that the Ether will be split in this way, since it is handled transparently by the contract.
 *
 * The split can be in equal parts or in any other arbitrary proportion. The way this is specified is by assigning each
 * account to a number of shares. Of all the Ether that this contract receives, each account will then be able to claim
 * an amount proportional to the percentage of total shares they were assigned.
 *
 * `PaymentSplitter` follows a _pull payment_ model. This means that payments are not automatically forwarded to the
 * accounts but kept in this contract, and the actual transfer is triggered as a separate step by calling the {release}
 * function.
 *
 * NOTE: This contract assumes that ERC20 tokens will behave similarly to native tokens (Ether). Rebasing tokens, and
 * tokens that apply fees during transfers, are likely to not be supported as expected. If in doubt, we encourage you
 * to run tests before sending real value to this contract.
 */
contract PaymentSplitter is Context {
    event PayeeAdded(address account, uint256 shares);
    event PaymentReleased(address to, uint256 amount);
    event ERC20PaymentReleased(IERC20 indexed token, address to, uint256 amount);
    event PaymentReceived(address from, uint256 amount);

    uint256 private _totalShares;
    uint256 private _totalReleased;

    mapping(address => uint256) private _shares;
    mapping(address => uint256) private _released;
    address[] private _payees;

    mapping(IERC20 => uint256) private _erc20TotalReleased;
    mapping(IERC20 => mapping(address => uint256)) private _erc20Released;

    /**
     * @dev Creates an instance of `PaymentSplitter` where each account in `payees` is assigned the number of shares at
     * the matching position in the `shares` array.
     *
     * All addresses in `payees` must be non-zero. Both arrays must have the same non-zero length, and there must be no
     * duplicates in `payees`.
     */
    constructor(address[] memory payees, uint256[] memory shares_) payable {
        require(payees.length == shares_.length, "PaymentSplitter: payees and shares length mismatch");
        require(payees.length > 0, "PaymentSplitter: no payees");

        for (uint256 i = 0; i < payees.length; i++) {
            _addPayee(payees[i], shares_[i]);
        }
    }

    /**
     * @dev The Ether received will be logged with {PaymentReceived} events. Note that these events are not fully
     * reliable: it's possible for a contract to receive Ether without triggering this function. This only affects the
     * reliability of the events, and not the actual splitting of Ether.
     *
     * To learn more about this see the Solidity documentation for
     * https://solidity.readthedocs.io/en/latest/contracts.html#fallback-function[fallback
     * functions].
     */
    receive() external payable virtual {
        emit PaymentReceived(_msgSender(), msg.value);
    }

    /**
     * @dev Getter for the total shares held by payees.
     */
    function totalShares() public view returns (uint256) {
        return _totalShares;
    }

    /**
     * @dev Getter for the total amount of Ether already released.
     */
    function totalReleased() public view returns (uint256) {
        return _totalReleased;
    }

    /**
     * @dev Getter for the total amount of `token` already released. `token` should be the address of an IERC20
     * contract.
     */
    function totalReleased(IERC20 token) public view returns (uint256) {
        return _erc20TotalReleased[token];
    }

    /**
     * @dev Getter for the amount of shares held by an account.
     */
    function shares(address account) public view returns (uint256) {
        return _shares[account];
    }

    /**
     * @dev Getter for the amount of Ether already released to a payee.
     */
    function released(address account) public view returns (uint256) {
        return _released[account];
    }

    /**
     * @dev Getter for the amount of `token` tokens already released to a payee. `token` should be the address of an
     * IERC20 contract.
     */
    function released(IERC20 token, address account) public view returns (uint256) {
        return _erc20Released[token][account];
    }

    /**
     * @dev Getter for the address of the payee number `index`.
     */
    function payee(uint256 index) public view returns (address) {
        return _payees[index];
    }

    /**
     * @dev Triggers a transfer to `account` of the amount of Ether they are owed, according to their percentage of the
     * total shares and their previous withdrawals.
     */
    function release(address payable account) public virtual {
        require(_shares[account] > 0, "PaymentSplitter: account has no shares");

        uint256 totalReceived = address(this).balance + totalReleased();
        uint256 payment = _pendingPayment(account, totalReceived, released(account));

        require(payment != 0, "PaymentSplitter: account is not due payment");

        _released[account] += payment;
        _totalReleased += payment;

        Address.sendValue(account, payment);
        emit PaymentReleased(account, payment);
    }

    /**
     * @dev Triggers a transfer to `account` of the amount of `token` tokens they are owed, according to their
     * percentage of the total shares and their previous withdrawals. `token` must be the address of an IERC20
     * contract.
     */
    function release(IERC20 token, address account) public virtual {
        require(_shares[account] > 0, "PaymentSplitter: account has no shares");

        uint256 totalReceived = token.balanceOf(address(this)) + totalReleased(token);
        uint256 payment = _pendingPayment(account, totalReceived, released(token, account));

        require(payment != 0, "PaymentSplitter: account is not due payment");

        _erc20Released[token][account] += payment;
        _erc20TotalReleased[token] += payment;

        SafeERC20.safeTransfer(token, account, payment);
        emit ERC20PaymentReleased(token, account, payment);
    }

    /**
     * @dev internal logic for computing the pending payment of an `account` given the token historical balances and
     * already released amounts.
     */
    function _pendingPayment(
        address account,
        uint256 totalReceived,
        uint256 alreadyReleased
    ) private view returns (uint256) {
        return (totalReceived * _shares[account]) / _totalShares - alreadyReleased;
    }

    /**
     * @dev Add a new payee to the contract.
     * @param account The address of the payee to add.
     * @param shares_ The number of shares owned by the payee.
     */
    function _addPayee(address account, uint256 shares_) private {
        require(account != address(0), "PaymentSplitter: account is the zero address");
        require(shares_ > 0, "PaymentSplitter: shares are 0");
        require(_shares[account] == 0, "PaymentSplitter: account already has shares");

        _payees.push(account);
        _shares[account] = shares_;
        _totalShares = _totalShares + shares_;
        emit PayeeAdded(account, shares_);
    }
}

File 4 of 24 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

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

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

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

File 5 of 24 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 6 of 24 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 7 of 24 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 8 of 24 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

File 9 of 24 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

File 10 of 24 : VRFConsumerBase.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "./interfaces/LinkTokenInterface.sol";

import "./VRFRequestIDBase.sol";

/** ****************************************************************************
 * @notice Interface for contracts using VRF randomness
 * *****************************************************************************
 * @dev PURPOSE
 *
 * @dev Reggie the Random Oracle (not his real job) wants to provide randomness
 * @dev to Vera the verifier in such a way that Vera can be sure he's not
 * @dev making his output up to suit himself. Reggie provides Vera a public key
 * @dev to which he knows the secret key. Each time Vera provides a seed to
 * @dev Reggie, he gives back a value which is computed completely
 * @dev deterministically from the seed and the secret key.
 *
 * @dev Reggie provides a proof by which Vera can verify that the output was
 * @dev correctly computed once Reggie tells it to her, but without that proof,
 * @dev the output is indistinguishable to her from a uniform random sample
 * @dev from the output space.
 *
 * @dev The purpose of this contract is to make it easy for unrelated contracts
 * @dev to talk to Vera the verifier about the work Reggie is doing, to provide
 * @dev simple access to a verifiable source of randomness.
 * *****************************************************************************
 * @dev USAGE
 *
 * @dev Calling contracts must inherit from VRFConsumerBase, and can
 * @dev initialize VRFConsumerBase's attributes in their constructor as
 * @dev shown:
 *
 * @dev   contract VRFConsumer {
 * @dev     constuctor(<other arguments>, address _vrfCoordinator, address _link)
 * @dev       VRFConsumerBase(_vrfCoordinator, _link) public {
 * @dev         <initialization with other arguments goes here>
 * @dev       }
 * @dev   }
 *
 * @dev The oracle will have given you an ID for the VRF keypair they have
 * @dev committed to (let's call it keyHash), and have told you the minimum LINK
 * @dev price for VRF service. Make sure your contract has sufficient LINK, and
 * @dev call requestRandomness(keyHash, fee, seed), where seed is the input you
 * @dev want to generate randomness from.
 *
 * @dev Once the VRFCoordinator has received and validated the oracle's response
 * @dev to your request, it will call your contract's fulfillRandomness method.
 *
 * @dev The randomness argument to fulfillRandomness is the actual random value
 * @dev generated from your seed.
 *
 * @dev The requestId argument is generated from the keyHash and the seed by
 * @dev makeRequestId(keyHash, seed). If your contract could have concurrent
 * @dev requests open, you can use the requestId to track which seed is
 * @dev associated with which randomness. See VRFRequestIDBase.sol for more
 * @dev details. (See "SECURITY CONSIDERATIONS" for principles to keep in mind,
 * @dev if your contract could have multiple requests in flight simultaneously.)
 *
 * @dev Colliding `requestId`s are cryptographically impossible as long as seeds
 * @dev differ. (Which is critical to making unpredictable randomness! See the
 * @dev next section.)
 *
 * *****************************************************************************
 * @dev SECURITY CONSIDERATIONS
 *
 * @dev A method with the ability to call your fulfillRandomness method directly
 * @dev could spoof a VRF response with any random value, so it's critical that
 * @dev it cannot be directly called by anything other than this base contract
 * @dev (specifically, by the VRFConsumerBase.rawFulfillRandomness method).
 *
 * @dev For your users to trust that your contract's random behavior is free
 * @dev from malicious interference, it's best if you can write it so that all
 * @dev behaviors implied by a VRF response are executed *during* your
 * @dev fulfillRandomness method. If your contract must store the response (or
 * @dev anything derived from it) and use it later, you must ensure that any
 * @dev user-significant behavior which depends on that stored value cannot be
 * @dev manipulated by a subsequent VRF request.
 *
 * @dev Similarly, both miners and the VRF oracle itself have some influence
 * @dev over the order in which VRF responses appear on the blockchain, so if
 * @dev your contract could have multiple VRF requests in flight simultaneously,
 * @dev you must ensure that the order in which the VRF responses arrive cannot
 * @dev be used to manipulate your contract's user-significant behavior.
 *
 * @dev Since the ultimate input to the VRF is mixed with the block hash of the
 * @dev block in which the request is made, user-provided seeds have no impact
 * @dev on its economic security properties. They are only included for API
 * @dev compatability with previous versions of this contract.
 *
 * @dev Since the block hash of the block which contains the requestRandomness
 * @dev call is mixed into the input to the VRF *last*, a sufficiently powerful
 * @dev miner could, in principle, fork the blockchain to evict the block
 * @dev containing the request, forcing the request to be included in a
 * @dev different block with a different hash, and therefore a different input
 * @dev to the VRF. However, such an attack would incur a substantial economic
 * @dev cost. This cost scales with the number of blocks the VRF oracle waits
 * @dev until it calls responds to a request.
 */
abstract contract VRFConsumerBase is VRFRequestIDBase {
  /**
   * @notice fulfillRandomness handles the VRF response. Your contract must
   * @notice implement it. See "SECURITY CONSIDERATIONS" above for important
   * @notice principles to keep in mind when implementing your fulfillRandomness
   * @notice method.
   *
   * @dev VRFConsumerBase expects its subcontracts to have a method with this
   * @dev signature, and will call it once it has verified the proof
   * @dev associated with the randomness. (It is triggered via a call to
   * @dev rawFulfillRandomness, below.)
   *
   * @param requestId The Id initially returned by requestRandomness
   * @param randomness the VRF output
   */
  function fulfillRandomness(bytes32 requestId, uint256 randomness) internal virtual;

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

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

  LinkTokenInterface internal immutable LINK;
  address private immutable vrfCoordinator;

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

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

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

File 11 of 24 : BlockBasedSale.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";

contract BlockBasedSale is Ownable {
    using SafeMath for uint256;

    enum OverrideSaleState {
        None,
        Pause,
        Close
    }

    enum SalePhase {
        None,
        Private,
        Public
    }

    OverrideSaleState public overridedSaleState = OverrideSaleState.None;
    SalePhase public salePhase = SalePhase.None;

    uint256 public maxPrivateSalePerTx = 10;
    uint256 public maxPublicSalePerTx = 20;
    uint256 public maxWhitelistClaimPerWallet = 10;

    uint256 public privateSaleCapped = 690;
    uint256 public totalPrivateSaleMinted = 0;
    uint256 public privateSalePrice;

    uint256 public totalPublicMinted = 0;
    uint256 public totalReserveMinted = 0;
    uint256 public maxSupply = 6969;
    uint256 public maxReserve = 169;

    uint256 public discountBlockSize = 180;
    uint256 public lowerBoundPrice = 0;
    uint256 public publicSalePrice;
    uint256 public priceFactor = 1337500000000000;

    struct SaleConfig {
        uint256 beginBlock;
        uint256 endBlock;
    }

    SaleConfig public privateSale;
    SaleConfig public publicSale;

    function setDiscountBlockSize(uint256 blockNumber) external onlyOwner {
        discountBlockSize = blockNumber;
    }

    function setPriceDecayParams(uint256 _lowerBoundPrice, uint256 _priceFactor) external onlyOwner{
        require(_lowerBoundPrice >= 0);
        require(_priceFactor <= publicSalePrice);
        lowerBoundPrice = _lowerBoundPrice;
        priceFactor = _priceFactor;
    }

    function setTransactionLimit(uint256 privateSaleLimit,uint256 publicSaleLimit, uint256 maxWhitelist) external onlyOwner {
        require(privateSaleLimit > 0);
        require(publicSaleLimit > 0);
        require(maxWhitelist <= privateSaleLimit);
        maxPrivateSalePerTx = privateSaleLimit;
        maxPublicSalePerTx = publicSaleLimit;
        maxWhitelistClaimPerWallet = maxWhitelist;
    }

    function setPrivateSaleConfig(SaleConfig memory _privateSale)
        external
        onlyOwner
    {
        privateSale = _privateSale;
    }

    function setPublicSaleConfig(SaleConfig memory _publicSale) external onlyOwner {
        publicSale = _publicSale;
    }

    function setPublicSalePrice(uint256 _price) external onlyOwner {
        publicSalePrice = _price;
    }

    function setPrivateSalePrice(uint256 _price) external onlyOwner {
        privateSalePrice = _price;
    }

    function setCloseSale() external onlyOwner {
        overridedSaleState = OverrideSaleState.Close;
    }

    function setPauseSale() external onlyOwner {
        overridedSaleState = OverrideSaleState.Pause;
    }

    function resetOverridedSaleState() external onlyOwner {
        overridedSaleState = OverrideSaleState.None;
    }

    function setReserve(uint256 reserve) external onlyOwner {
        maxReserve = reserve;
    }

    function setPrivateSaleCap(uint256 cap) external onlyOwner {
        privateSaleCapped = cap;
    }

    function isPrivateSaleSoldOut() external view returns (bool) {
        return totalPrivateSaleMinted == privateSaleCapped;
    }

    function isPublicSaleSoldOut() external view returns (bool) {
        uint256 supplyWithoutReserve = maxSupply - maxReserve;
        uint256 mintedWithoutReserve = totalPublicMinted +
            totalPrivateSaleMinted;
        return supplyWithoutReserve == mintedWithoutReserve;
    }

    function enablePublicSale() external onlyOwner {
        salePhase = SalePhase.Public;
    }

    function enablePrivateSale() external onlyOwner {
        salePhase = SalePhase.Private;
    }
}

File 12 of 24 : EIP712Whitelisting.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

contract EIP712Whitelisting is Ownable {
    using ECDSA for bytes32;

    // The key used to sign whitelist signatures.
    // We will check to ensure that the key that signed the signature
    // is this one that we expect.
    address whitelistSigningKey = address(0);

    // Domain Separator is the EIP-712 defined structure that defines what contract
    // and chain these signatures can be used for.  This ensures people can't take
    // a signature used to mint on one contract and use it for another, or a signature
    // from testnet to replay on mainnet.
    // It has to be created in the constructor so we can dynamically grab the chainId.
    // https://github.com/ethereum/EIPs/blob/master/EIPS/eip-712.md#definition-of-domainseparator
    bytes32 public DOMAIN_SEPARATOR;

    // The typehash for the data type specified in the structured data
    // https://github.com/ethereum/EIPs/blob/master/EIPS/eip-712.md#rationale-for-typehash
    // This should match whats in the client side whitelist signing code
    bytes32 public constant MINTER_TYPEHASH =
        keccak256("Minter(address wallet)");

    constructor() {
        // This should match whats in the client side whitelist signing code
        DOMAIN_SEPARATOR = keccak256(
            abi.encode(
                keccak256(
                    "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"
                ),
                // This should match the domain you set in your client side signing.
                keccak256(bytes("WhitelistToken")),
                keccak256(bytes("1")),
                block.chainid,
                address(this)
            )
        );
    }

    function setWhitelistSigningAddress(address newSigningKey)
        public
        onlyOwner
    {
        whitelistSigningKey = newSigningKey;
    }

    modifier requiresWhitelist(bytes calldata signature) {
        require(whitelistSigningKey != address(0), "whitelist not enabled.");
        require(
            getEIP712RecoverAddress(signature) == whitelistSigningKey,
            "Not whitelisted."
        );
        _;
    }

    function isEIP712WhiteListed(bytes calldata signature)
        public
        view
        returns (bool)
    {
        require(whitelistSigningKey != address(0), "whitelist not enabled.");
        return getEIP712RecoverAddress(signature) == whitelistSigningKey;
    }

    function getEIP712RecoverAddress(bytes calldata signature)
        internal
        view
        returns (address)
    {
        // Verify EIP-712 signature by recreating the data structure
        // that we signed on the client side, and then using that to recover
        // the address that signed the signature for this data.
        // Signature begin with \x19\x01, see: https://eips.ethereum.org/EIPS/eip-712
        bytes32 digest = keccak256(
            abi.encodePacked(
                "\x19\x01",
                DOMAIN_SEPARATOR,
                keccak256(abi.encode(MINTER_TYPEHASH, msg.sender))
            )
        );

        // Use the recover method to see what address was used to create
        // the signature on this data.
        // Note that if the digest doesn't exactly match what was signed we'll
        // get a random recovered address.
        return digest.recover(signature);
    }
}

File 13 of 24 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

File 14 of 24 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../../../utils/Address.sol";

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

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

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

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

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

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

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

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

File 15 of 24 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 16 of 24 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 17 of 24 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 20 of 24 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

File 21 of 24 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 22 of 24 : LinkTokenInterface.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

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

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

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

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

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

  function increaseApproval(address spender, uint256 subtractedValue) external;

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

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

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

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

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

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

File 23 of 24 : VRFRequestIDBase.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

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

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

File 24 of 24 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

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

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

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

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

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

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

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

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

        return (signer, RecoverError.NoError);
    }

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"_privateSalePrice","type":"uint256"},{"internalType":"uint256","name":"_publicSalePrice","type":"uint256"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint256","name":"_maxSupply","type":"uint256"},{"components":[{"internalType":"address","name":"coordinator","type":"address"},{"internalType":"address","name":"linkToken","type":"address"},{"internalType":"bytes32","name":"keyHash","type":"bytes32"}],"internalType":"struct OxStandard.chainlinkParams","name":"chainlink","type":"tuple"},{"components":[{"internalType":"address[]","name":"payees","type":"address[]"},{"internalType":"uint256[]","name":"shares","type":"uint256[]"}],"internalType":"struct OxStandard.revenueShareParams","name":"revenueShare","type":"tuple"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"_value","type":"string"},{"indexed":true,"internalType":"uint256","name":"_id","type":"uint256"}],"name":"PermanentURI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"requestId","type":"bytes32"}],"name":"RandomseedFulfilmentFail","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"RandomseedFulfilmentManually","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"requestId","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"seed","type":"uint256"}],"name":"RandomseedFulfilmentSuccess","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"RandomseedRequested","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_defaultURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_tokenBaseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"availableForSale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"availableReserve","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"beneficiaryAssigned","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"discountBlockSize","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"enablePrivateSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"enablePublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"endPrivateSaleBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"endPublicSaleBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"freeze","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getEndSaleBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMarketState","outputs":[{"internalType":"enum OxStandard.SaleState","name":"","type":"uint8"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"getMaxSupplyByMode","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getMetadata","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMintedByMode","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPriceByMode","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getStartSaleBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getState","outputs":[{"internalType":"enum OxStandard.SaleState","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTransactionCappedByMode","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":"bytes","name":"signature","type":"bytes"}],"name":"isEIP712WhiteListed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPrivateSaleSoldOut","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPublicSaleSoldOut","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isRevealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"keyHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lowerBoundPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPrivateSalePerTx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPublicSalePerTx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxReserve","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxWhitelistClaimPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"mintToken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"overridedSaleState","outputs":[{"internalType":"enum BlockBasedSale.OverrideSaleState","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"priceFactor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"privateSale","outputs":[{"internalType":"uint256","name":"beginBlock","type":"uint256"},{"internalType":"uint256","name":"endBlock","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"privateSaleCapped","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"privateSalePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSale","outputs":[{"internalType":"uint256","name":"beginBlock","type":"uint256"},{"internalType":"uint256","name":"endBlock","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSalePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"randomseedRequested","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"requestId","type":"bytes32"},{"internalType":"uint256","name":"randomness","type":"uint256"}],"name":"rawFulfillRandomness","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"requestChainlinkVRF","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"resetOverridedSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealBlock","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":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"salePhase","outputs":[{"internalType":"enum BlockBasedSale.SalePhase","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"seed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"setAirdropRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setCloseSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"defaultURI","type":"string"}],"name":"setDefaultURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"blockNumber","type":"uint256"}],"name":"setDiscountBlockSize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setPauseSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_lowerBoundPrice","type":"uint256"},{"internalType":"uint256","name":"_priceFactor","type":"uint256"}],"name":"setPriceDecayParams","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"cap","type":"uint256"}],"name":"setPrivateSaleCap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"beginBlock","type":"uint256"},{"internalType":"uint256","name":"endBlock","type":"uint256"}],"internalType":"struct BlockBasedSale.SaleConfig","name":"_privateSale","type":"tuple"}],"name":"setPrivateSaleConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPrivateSalePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"beginBlock","type":"uint256"},{"internalType":"uint256","name":"endBlock","type":"uint256"}],"internalType":"struct BlockBasedSale.SaleConfig","name":"_publicSale","type":"tuple"}],"name":"setPublicSaleConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPublicSalePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"reserve","type":"uint256"}],"name":"setReserve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"blockNumber","type":"uint256"}],"name":"setRevealBlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"randomNumber","type":"uint256"}],"name":"setSeed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"privateSaleLimit","type":"uint256"},{"internalType":"uint256","name":"publicSaleLimit","type":"uint256"},{"internalType":"uint256","name":"maxWhitelist","type":"uint256"}],"name":"setTransactionLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newSigningKey","type":"address"}],"name":"setWhitelistSigningAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startPrivateSaleBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startPublicSaleBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenBaseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalPrivateSaleMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalPublicMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalReserveMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c0604052600b80546001600160a01b0319169055600e805461ffff19169055600a600f81905560146010556011556102b26012556000601381905560158190556016819055611b3960175560a960185560b4601955601a8190556604c072fc631800601c556022805461ffff60a01b1916905560248190556025553480156200008857600080fd5b506040516200699138038062006991833981016040819052620000ab916200056d565b815160208301518686620000bf3362000262565b8151620000d4906001906020850190620002b2565b508051620000ea906002906020840190620002b2565b5050604080518082018252600e81526d2bb434ba32b634b9ba2a37b5b2b760911b6020918201528151808301835260018152603160f81b9082015281517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f918101919091527fb31abde365a4931cba9a0ea66b4737a15e8eb9a0649f549f4857db08880a9049918101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260c001905060408051601f19818403018152908290528051602091820120600c556001600160601b0319606094851b811660a0529290931b909116608052600160215582519183015190620001fe9062000341565b6200020b92919062000685565b604051809103906000f08015801562000228573d6000803e3d6000fd5b50602280546001600160a01b0319166001600160a01b039290921691909117905550604001516023556017555050601b55601455620007d6565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b828054620002c09062000783565b90600052602060002090601f016020900481019282620002e457600085556200032f565b82601f10620002ff57805160ff19168380011785556200032f565b828001600101855582156200032f579182015b828111156200032f57825182559160200191906001019062000312565b506200033d9291506200034f565b5090565b611157806200583a83390190565b5b808211156200033d576000815560010162000350565b80516001600160a01b03811681146200037e57600080fd5b919050565b600082601f83011262000394578081fd5b81516020620003ad620003a7836200075d565b6200072a565b80838252828201915082860187848660051b8901011115620003cd578586fd5b855b85811015620003ed57815184529284019290840190600101620003cf565b5090979650505050505050565b600082601f8301126200040b578081fd5b81516001600160401b03811115620004275762000427620007c0565b60206200043d601f8301601f191682016200072a565b828152858284870101111562000451578384fd5b835b838110156200047057858101830151828201840152820162000453565b838111156200048157848385840101525b5095945050505050565b6000604082840312156200049d578081fd5b620004a7620006ff565b82519091506001600160401b0380821115620004c257600080fd5b818401915084601f830112620004d757600080fd5b81516020620004ea620003a7836200075d565b80838252828201915082860189848660051b89010111156200050b57600080fd5b600096505b848710156200053957620005248162000366565b83526001969096019591830191830162000510565b50865250858101519350828411156200055157600080fd5b6200055f8785880162000383565b818601525050505092915050565b60008060008060008060008789036101208112156200058a578384fd5b885160208a015160408b015191995097506001600160401b0380821115620005b0578586fd5b620005be8c838d01620003fa565b975060608b0151915080821115620005d4578586fd5b620005e28c838d01620003fa565b965060808b015195506060609f1984011215620005fd578485fd5b604051925060608301915082821081831117156200061f576200061f620007c0565b816040526200063160a08c0162000366565b83526200064160c08c0162000366565b602084015260e08b015160408401526101008b01519294508083111562000666578384fd5b5050620006768a828b016200048b565b91505092959891949750929550565b604080825283519082018190526000906020906060840190828701845b82811015620006c95781516001600160a01b031684529284019290840190600101620006a2565b50505083810382850152845180825285830191830190845b81811015620003ed57835183529284019291840191600101620006e1565b604080519081016001600160401b0381118282101715620007245762000724620007c0565b60405290565b604051601f8201601f191681016001600160401b0381118282101715620007555762000755620007c0565b604052919050565b60006001600160401b03821115620007795762000779620007c0565b5060051b60200190565b600181811c908216806200079857607f821691505b60208210811415620007ba57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b60805160601c60a05160601c61502a620008106000396000818161263d0152613b59015260008181612f310152613b2a015261502a6000f3fe6080604052600436106105025760003560e01c80637d94792a11610297578063c91621c211610165578063dfa3a2e3116100cc578063efc4bc7c11610085578063efc4bc7c14610e8d578063eff70c3814610ea3578063f2fde38b14610eb9578063f3b3a9fa14610ed9578063f560d41514610eef578063fa4d280c14610f0557600080fd5b8063dfa3a2e314610dba578063dfb2866d14610dda578063dfe363ef14610df0578063e4f2487a14610e05578063e5d1ea4114610e24578063e985e9c514610e4457600080fd5b8063d2c1f2061161011e578063d2c1f20614610d1b578063d5abeb0114610d30578063d816574314610d46578063da1b9e0814610d5a578063da324a3014610d7a578063dd7f40cc14610d9a57600080fd5b8063c91621c214610c8d578063c9a8d9f714610ca2578063ca997aa014610cb7578063ccc5d84714610ccd578063cd77083314610ce2578063d0b77ab414610d0257600080fd5b8063a734335b11610209578063ba1f879f116101c2578063ba1f879f14610be8578063bbc33aa514610c03578063be008ccb14610c18578063c204642c14610c2d578063c32a50f914610c4d578063c87b56dd14610c6d57600080fd5b8063a734335b14610b47578063b083bbbd14610b68578063b5154dae14610b7d578063b87ced4e14610b93578063b88d4fde14610bb3578063b8c672d714610bd357600080fd5b806394985ddd1161025b57806394985ddd14610a9557806395d89b4114610ab55780639b6860c814610aca578063a22cb46514610ae0578063a2fb7b5d14610b00578063a574cea414610b2757600080fd5b80637d94792a14610a0b578063839ed56c14610a215780638da5cb5b14610a415780639024fc9614610a5f57806392fb496714610a7557600080fd5b80634256dbe3116103d45780635e1626991161034657806370a08231116102ff57806370a082311461096c578063715018a61461098c57806373b19e8f146109a1578063776451b0146109b6578063791a2519146109cb5780637bc36e04146109eb57600080fd5b80635e162699146108df5780635e9f9613146108f557806361728f391461090a5780636352211e1461092057806363fea81c1461094057806366bb81c71461095657600080fd5b80634f6ccce7116103985780634f6ccce71461083557806354214f691461085557806355f804b31461086a5780635626e4041461088a57806356c4aedd146108aa57806358e39b90146108bf57600080fd5b80634256dbe3146107b657806342842e0e146107d657806344732180146107f657806347326dc21461080b5780634e99b8001461082057600080fd5b806319165587116104785780633644e515116104315780633644e5151461072b5780633828914a14610741578063398c0ec1146107575780633c5d1c081461076c5780633ca4fb761461078c5780633ccfd60b146107a157600080fd5b806319165587146106705780632316b4da1461069057806323b872dd146106a5578063266dab34146106c55780632f745c59146106db57806333bc1c5c146106fb57600080fd5b8063081812fc116104ca578063081812fc146105b7578063095ea7b3146105ef5780630960e71c146106115780630f30cde01461062657806318160ddd146106395780631865c57d1461064e57600080fd5b806301ffc9a71461050757806302410f471461053c578063031ab9f51461055d578063048e0aa01461058057806306fdde0314610595575b600080fd5b34801561051357600080fd5b506105276105223660046149e3565b610f39565b60405190151581526020015b60405180910390f35b34801561054857600080fd5b5060225461052790600160a01b900460ff1681565b34801561056957600080fd5b50610572610f4a565b604051908152602001610533565b34801561058c57600080fd5b50610527611020565b3480156105a157600080fd5b506105aa611051565b6040516105339190614d1d565b3480156105c357600080fd5b506105d76105d2366004614aec565b6110e3565b6040516001600160a01b039091168152602001610533565b3480156105fb57600080fd5b5061060f61060a366004614843565b61117d565b005b34801561061d57600080fd5b50602054610572565b610527610634366004614b1c565b611293565b34801561064557600080fd5b50600954610572565b34801561065a57600080fd5b50610663611871565b6040516105339190614d09565b34801561067c57600080fd5b5061060f61068b366004614706565b611cee565b34801561069c57600080fd5b5061060f611d7a565b3480156106b157600080fd5b5061060f6106c036600461475a565b611dbd565b3480156106d157600080fd5b5061057260165481565b3480156106e757600080fd5b506105726106f6366004614843565b611dee565b34801561070757600080fd5b50601f54602054610716919082565b60408051928352602083019190915201610533565b34801561073757600080fd5b50610572600c5481565b34801561074d57600080fd5b5061057260155481565b34801561076357600080fd5b50610572611e84565b34801561077857600080fd5b50610527610787366004614a1b565b611f64565b34801561079857600080fd5b506105aa611fdf565b3480156107ad57600080fd5b5061060f61206d565b3480156107c257600080fd5b5061060f6107d1366004614aec565b61210f565b3480156107e257600080fd5b5061060f6107f136600461475a565b61213e565b34801561080257600080fd5b5061060f612159565b34801561081757600080fd5b50601f54610572565b34801561082c57600080fd5b506105aa612197565b34801561084157600080fd5b50610572610850366004614aec565b6121a6565b34801561086157600080fd5b50610527612247565b34801561087657600080fd5b5061060f610885366004614a5a565b61226e565b34801561089657600080fd5b5061060f6108a5366004614aec565b6122ab565b3480156108b657600080fd5b506105aa6122da565b3480156108cb57600080fd5b5061060f6108da366004614706565b6122e7565b3480156108eb57600080fd5b5061057260195481565b34801561090157600080fd5b50610572612335565b34801561091657600080fd5b5061057260235481565b34801561092c57600080fd5b506105d761093b366004614aec565b612347565b34801561094c57600080fd5b50610572601a5481565b34801561096257600080fd5b5061057260245481565b34801561097857600080fd5b50610572610987366004614706565b6123be565b34801561099857600080fd5b5061060f612445565b3480156109ad57600080fd5b5061057261247b565b3480156109c257600080fd5b506105726124ff565b3480156109d757600080fd5b5061060f6109e6366004614aec565b61256d565b3480156109f757600080fd5b5061060f610a06366004614aec565b61259c565b348015610a1757600080fd5b5061057260255481565b348015610a2d57600080fd5b5061060f610a3c366004614aec565b6125cb565b348015610a4d57600080fd5b506000546001600160a01b03166105d7565b348015610a6b57600080fd5b5061057260135481565b348015610a8157600080fd5b5061060f610a90366004614a9f565b6125fa565b348015610aa157600080fd5b5061060f610ab03660046149c2565b612632565b348015610ac157600080fd5b506105aa6126b4565b348015610ad657600080fd5b50610572601b5481565b348015610aec57600080fd5b5061060f610afb366004614816565b6126c3565b348015610b0c57600080fd5b50600e54610b1a9060ff1681565b6040516105339190614cf6565b348015610b3357600080fd5b506105aa610b42366004614aec565b6126ce565b348015610b5357600080fd5b5060225461052790600160a81b900460ff1681565b348015610b7457600080fd5b50601d54610572565b348015610b8957600080fd5b5061057260105481565b348015610b9f57600080fd5b5061060f610bae366004614a9f565b612984565b348015610bbf57600080fd5b5061060f610bce36600461479a565b6129bd565b348015610bdf57600080fd5b50601e54610572565b348015610bf457600080fd5b50601d54601e54610716919082565b348015610c0f57600080fd5b506105726129f5565b348015610c2457600080fd5b5061060f612a0d565b348015610c3957600080fd5b5061060f610c4836600461486e565b612a4b565b348015610c5957600080fd5b5061060f610c68366004614aec565b612bdd565b348015610c7957600080fd5b506105aa610c88366004614aec565b612c5c565b348015610c9957600080fd5b50610572612d80565b348015610cae57600080fd5b50610572612dbe565b348015610cc357600080fd5b50610572600f5481565b348015610cd957600080fd5b5061060f612e8e565b348015610cee57600080fd5b5061060f610cfd366004614706565b613059565b348015610d0e57600080fd5b5060125460135414610527565b348015610d2757600080fd5b5061060f6130a5565b348015610d3c57600080fd5b5061057260175481565b348015610d5257600080fd5b506000610663565b348015610d6657600080fd5b5061060f610d75366004614a5a565b6130e5565b348015610d8657600080fd5b5061060f610d95366004614aec565b613122565b348015610da657600080fd5b5061060f610db53660046149c2565b613151565b348015610dc657600080fd5b5061060f610dd5366004614b65565b613195565b348015610de657600080fd5b50610572601c5481565b348015610dfc57600080fd5b5061060f6131f4565b348015610e1157600080fd5b50600e54610b1a90610100900460ff1681565b348015610e3057600080fd5b5061060f610e3f366004614914565b613231565b348015610e5057600080fd5b50610527610e5f366004614722565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b348015610e9957600080fd5b5061057260125481565b348015610eaf57600080fd5b5061057260115481565b348015610ec557600080fd5b5061060f610ed4366004614706565b613307565b348015610ee557600080fd5b5061057260185481565b348015610efb57600080fd5b5061057260145481565b348015610f1157600080fd5b506105727f68e83002b91b0fd96d4df3566b5122221117e3ec6c2468fda594f6491f89b1c981565b6000610f44826133a2565b92915050565b6000610f54611871565b600c811115610f7357634e487b7160e01b600052602160045260246000fd5b60021480610fa75750610f84611871565b600c811115610fa357634e487b7160e01b600052602160045260246000fd5b6003145b15610fb35750601e5490565b610fbb611871565b600c811115610fda57634e487b7160e01b600052602160045260246000fd5b6007148061100e5750610feb611871565b600c81111561100a57634e487b7160e01b600052602160045260246000fd5b6008145b1561101a575060205490565b50600090565b6000806018546017546110339190614ea6565b905060006013546015546110479190614e5b565b9190911492915050565b60606001805461106090614ee9565b80601f016020809104026020016040519081016040528092919081815260200182805461108c90614ee9565b80156110d95780601f106110ae576101008083540402835291602001916110d9565b820191906000526020600020905b8154815290600101906020018083116110bc57829003601f168201915b5050505050905090565b6000818152600360205260408120546001600160a01b03166111615760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b600061118882612347565b9050806001600160a01b0316836001600160a01b031614156111f65760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401611158565b336001600160a01b038216148061121257506112128133610e5f565b6112845760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401611158565b61128e83836133c7565b505050565b6000600260215414156112e85760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401611158565b6002602155333b1561133c5760405162461bcd60e51b815260206004820152601860248201527f436f6e7472616374206973206e6f7420616c6c6f7765642e00000000000000006044820152606401611158565b6003611346611871565b600c81111561136557634e487b7160e01b600052602160045260246000fd5b148061139757506008611376611871565b600c81111561139557634e487b7160e01b600052602160045260246000fd5b145b6113d95760405162461bcd60e51b815260206004820152601360248201527229b0b632903737ba1030bb30b4b630b136329760691b6044820152606401611158565b60086113e3611871565b600c81111561140257634e487b7160e01b600052602160045260246000fd5b14156115205760105484111561145a5760405162461bcd60e51b815260206004820152601f60248201527f4d696e7420657863656564207472616e73616374696f6e206c696d6974732e006044820152606401611158565b61146c611465611e84565b8590613435565b3410156114b15760405162461bcd60e51b815260206004820152601360248201527224b739bab33334b1b4b2b73a10333ab732399760691b6044820152606401611158565b6017546114d26114bf612335565b6114cc876114cc60095490565b90613441565b11156115205760405162461bcd60e51b815260206004820152601b60248201527f507572636861736520657863656564206d617820737570706c792e00000000006044820152606401611158565b600361152a611871565b600c81111561154957634e487b7160e01b600052602160045260246000fd5b1415611710576115598383611f64565b6115985760405162461bcd60e51b815260206004820152601060248201526f2737ba103bb434ba32b634b9ba32b21760811b6044820152606401611158565b600f548411156115ea5760405162461bcd60e51b815260206004820152601e60248201527f4d696e7420657863656564207472616e73616374696f6e206c696d69747300006044820152606401611158565b60115433600090815260276020526040902054611608908690614e5b565b11156116565760405162461bcd60e51b815260206004820152601f60248201527f4d696e74206c696d6974207065722077616c6c65742065786365656465642e006044820152606401611158565b6012546013546116669086613441565b11156116c05760405162461bcd60e51b8152602060048201526024808201527f50757263686173652065786365656420707269766174652073616c65206361706044820152633832b21760e11b6064820152608401611158565b6116cb611465611e84565b3410156117105760405162461bcd60e51b815260206004820152601360248201527224b739bab33334b1b4b2b73a10333ab732399760691b6044820152606401611158565b600361171a611871565b600c81111561173957634e487b7160e01b600052602160045260246000fd5b148061176b5750600861174a611871565b600c81111561176957634e487b7160e01b600052602160045260246000fd5b145b156118635761177a338561344d565b506008611785611871565b600c8111156117a457634e487b7160e01b600052602160045260246000fd5b14156117bc57836015546117b89190614e5b565b6015555b60036117c6611871565b600c8111156117e557634e487b7160e01b600052602160045260246000fd5b14156118285733600090815260276020526040902054611806908590614e5b565b33600090815260276020526040902055601354611824908590614e5b565b6013555b6022546040516001600160a01b03909116903480156108fc02916000818181858888f19350505050158015611861573d6000803e3d6000fd5b505b506001806021559392505050565b6000806018546017546118849190614ea6565b905060006013546015546118989190614e5b565b90506000600e54610100900460ff1660028111156118c657634e487b7160e01b600052602160045260246000fd5b141580156118f857506002600e5460ff1660028111156118f657634e487b7160e01b600052602160045260246000fd5b145b1561190657600c9250505090565b6000600e54610100900460ff16600281111561193257634e487b7160e01b600052602160045260246000fd5b1415801561196457506001600e5460ff16600281111561196257634e487b7160e01b600052602160045260246000fd5b145b1561197257600b9250505090565b6002600e54610100900460ff16600281111561199e57634e487b7160e01b600052602160045260246000fd5b1480156119aa57508181145b156119b857600a9250505090565b6000600e54610100900460ff1660028111156119e457634e487b7160e01b600052602160045260246000fd5b14156119f35760009250505090565b6002600e54610100900460ff166002811115611a1f57634e487b7160e01b600052602160045260246000fd5b148015611a2d575060205415155b8015611a3a575060205443115b15611a485760099250505090565b6002600e54610100900460ff166002811115611a7457634e487b7160e01b600052602160045260246000fd5b148015611a825750601f5415155b8015611a905750601f544310155b15611a9e5760089250505090565b6002600e54610100900460ff166002811115611aca57634e487b7160e01b600052602160045260246000fd5b148015611ad85750601f5415155b8015611ae55750601f5443105b8015611af25750601e5443115b15611b005760079250505090565b6002600e54610100900460ff166002811115611b2c57634e487b7160e01b600052602160045260246000fd5b148015611b395750601f54155b8015611b465750601e5443115b15611b545760069250505090565b6001600e54610100900460ff166002811115611b8057634e487b7160e01b600052602160045260246000fd5b148015611b905750601254601354145b15611b9e5760059250505090565b6001600e54610100900460ff166002811115611bca57634e487b7160e01b600052602160045260246000fd5b148015611bd85750601e5415155b8015611be55750601e5443115b15611bf35760049250505090565b6001600e54610100900460ff166002811115611c1f57634e487b7160e01b600052602160045260246000fd5b148015611c2d5750601d5415155b8015611c3b5750601d544310155b15611c495760039250505090565b6001600e54610100900460ff166002811115611c7557634e487b7160e01b600052602160045260246000fd5b148015611c835750601d5415155b8015611c905750601d5443105b15611c9e5760029250505090565b6001600e54610100900460ff166002811115611cca57634e487b7160e01b600052602160045260246000fd5b148015611cd75750601d54155b15611ce55760019250505090565b60009250505090565b6000546001600160a01b03163314611d185760405162461bcd60e51b815260040161115890614d82565b602254604051631916558760e01b81526001600160a01b03838116600483015290911690631916558790602401600060405180830381600087803b158015611d5f57600080fd5b505af1158015611d73573d6000803e3d6000fd5b5050505050565b6000546001600160a01b03163314611da45760405162461bcd60e51b815260040161115890614d82565b600e80546002919061ff001916610100835b0217905550565b611dc733826134a1565b611de35760405162461bcd60e51b815260040161115890614db7565b61128e838383613598565b6000611df9836123be565b8210611e5b5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401611158565b506001600160a01b03919091166000908152600760209081526040808320938352929052205490565b60006003611e90611871565b600c811115611eaf57634e487b7160e01b600052602160045260246000fd5b1415611ebc575060145490565b6008611ec6611871565b600c811115611ee557634e487b7160e01b600052602160045260246000fd5b1415611f5d57601f54600090611efb9043614ea6565b90506000611f20601c54611f1a6019548561374390919063ffffffff16565b90613435565b9050611f39601a54601b5461374f90919063ffffffff16565b8110611f4957601a549250505090565b601b54611f56908261374f565b9250505090565b50601b5490565b600b546000906001600160a01b0316611fb85760405162461bcd60e51b81526020600482015260166024820152753bb434ba32b634b9ba103737ba1032b730b13632b21760511b6044820152606401611158565b600b546001600160a01b0316611fce848461375b565b6001600160a01b0316149392505050565b60298054611fec90614ee9565b80601f016020809104026020016040519081016040528092919081815260200182805461201890614ee9565b80156120655780601f1061203a57610100808354040283529160200191612065565b820191906000526020600020905b81548152906001019060200180831161204857829003601f168201915b505050505081565b602254600160a81b900460ff1680156120905750602a546001600160a01b031633145b6120dc5760405162461bcd60e51b815260206004820152601960248201527f4f6e6c792062656e656669636961727920616c6c6f7765642e000000000000006044820152606401611158565b6040514790339082156108fc029083906000818181858888f1935050505015801561210b573d6000803e3d6000fd5b5050565b6000546001600160a01b031633146121395760405162461bcd60e51b815260040161115890614d82565b601855565b61128e838383604051806020016040528060008152506129bd565b6000546001600160a01b031633146121835760405162461bcd60e51b815260040161115890614d82565b600e80546000919060ff1916600183611db6565b60606029805461106090614ee9565b60006121b160095490565b82106122145760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401611158565b6009828154811061223557634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b60008060255411801561225c57506000602454115b8015612269575060245443115b905090565b6000546001600160a01b031633146122985760405162461bcd60e51b815260040161115890614d82565b805161210b9060299060208401906145d7565b6000546001600160a01b031633146122d55760405162461bcd60e51b815260040161115890614d82565b601255565b60288054611fec90614ee9565b6000546001600160a01b031633146123115760405162461bcd60e51b815260040161115890614d82565b6001600160a01b03166000908152602660205260409020805460ff19166001179055565b60006016546018546122699190614ea6565b6000818152600360205260408120546001600160a01b031680610f445760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401611158565b60006001600160a01b0382166124295760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401611158565b506001600160a01b031660009081526004602052604090205490565b6000546001600160a01b0316331461246f5760405162461bcd60e51b815260040161115890614d82565b612479600061382f565b565b60006003612487611871565b600c8111156124a657634e487b7160e01b600052602160045260246000fd5b14156124b3575060125490565b60086124bd611871565b600c8111156124dc57634e487b7160e01b600052602160045260246000fd5b141561101a576018546013546017546124f59190614ea6565b6122699190614ea6565b6000600361250b611871565b600c81111561252a57634e487b7160e01b600052602160045260246000fd5b1415612537575060135490565b6008612541611871565b600c81111561256057634e487b7160e01b600052602160045260246000fd5b141561101a575060155490565b6000546001600160a01b031633146125975760405162461bcd60e51b815260040161115890614d82565b601b55565b6000546001600160a01b031633146125c65760405162461bcd60e51b815260040161115890614d82565b601455565b6000546001600160a01b031633146125f55760405162461bcd60e51b815260040161115890614d82565b601955565b6000546001600160a01b031633146126245760405162461bcd60e51b815260040161115890614d82565b8051601d5560200151601e55565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146126aa5760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c006044820152606401611158565b61210b828261387f565b60606002805461106090614ee9565b61210b33838361390b565b60606126e26000546001600160a01b031690565b6001600160a01b0316336001600160a01b03161461273f57600954821061273f5760405162461bcd60e51b81526020600482015260116024820152702a37b5b2b7103737ba1032bc34b9ba399760791b6044820152606401611158565b612747612247565b61276e575050604080518082019091526007815266191959985d5b1d60ca1b602082015290565b6000601754600161277f9190614e5b565b6001600160401b038111156127a457634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156127cd578160200160208202803683370190505b50905060015b601754811161281a57808282815181106127fd57634e487b7160e01b600052603260045260246000fd5b6020908102919091010152612813600182614e5b565b90506127d3565b5060025b601754811161294c5760006017546025548360405160200161284a929190918252602082015260400190565b6040516020818303038152906040528051906020012060001c61286d9190614f3f565b612878906001614e5b565b90506002811015801561288d57506017548111155b15612939578281815181106128b257634e487b7160e01b600052603260045260246000fd5b60200260200101518383815181106128da57634e487b7160e01b600052603260045260246000fd5b602002602001015184848151811061290257634e487b7160e01b600052603260045260246000fd5b6020026020010185848151811061292957634e487b7160e01b600052603260045260246000fd5b6020908102919091010191909152525b50612945600182614e5b565b905061281e565b5061297d81848151811061297057634e487b7160e01b600052603260045260246000fd5b60200260200101516139da565b9392505050565b6000546001600160a01b031633146129ae5760405162461bcd60e51b815260040161115890614d82565b8051601f556020908101519055565b6129c733836134a1565b6129e35760405162461bcd60e51b815260040161115890614db7565b6129ef84848484613af3565b50505050565b6000612a0060095490565b6017546122699190614ea6565b6000546001600160a01b03163314612a375760405162461bcd60e51b815260040161115890614d82565b600e80546002919060ff1916600183611db6565b3360009081526026602052604090205460ff16612aaa5760405162461bcd60e51b815260206004820152601a60248201527f4f6e6c792061697264726f7020726f6c6520616c6c6f7765642e0000000000006044820152606401611158565b6017548251612ac590612abd9084613435565b6009546114cc565b1115612b135760405162461bcd60e51b815260206004820152601860248201527f457863656564206d617820737570706c79206c696d69742e00000000000000006044820152606401611158565b6018548251612b2f90612b269084613435565b60165490613441565b1115612b755760405162461bcd60e51b815260206004820152601560248201527424b739bab33334b1b4b2b73a103932b9b2b93b329760591b6044820152606401611158565b60005b8251811015612bc557612bb2838281518110612ba457634e487b7160e01b600052603260045260246000fd5b60200260200101518361344d565b5080612bbd81614f24565b915050612b78565b508151612bd690612b269083613435565b6016555050565b6000546001600160a01b03163314612c075760405162461bcd60e51b815260040161115890614d82565b6022805460ff60a01b1916600160a01b17905560258190556040517f2a0c75d184788ec5da6ff9a4518c4dfe7215f45a66470b32947f9b2617fc888490612c519042815260200190565b60405180910390a150565b6060612c6760095490565b612c72906001614e5b565b8210612cb35760405162461bcd60e51b815260206004820152601060248201526f2a37b5b2b7103737ba1032bc34b9ba1760811b6044820152606401611158565b612cbb612247565b612d4f5760288054612ccc90614ee9565b80601f0160208091040260200160405190810160405280929190818152602001828054612cf890614ee9565b8015612d455780601f10612d1a57610100808354040283529160200191612d45565b820191906000526020600020905b815481529060010190602001808311612d2857829003601f168201915b5050505050610f44565b6029612d5a836126ce565b604051602001612d6b929190614bd8565b60405160208183030381529060405292915050565b60006003612d8c611871565b600c811115612dab57634e487b7160e01b600052602160045260246000fd5b14612db7575060105490565b50600f5490565b6000612dc8611871565b600c811115612de757634e487b7160e01b600052602160045260246000fd5b60021480612e1b5750612df8611871565b600c811115612e1757634e487b7160e01b600052602160045260246000fd5b6003145b15612e275750601d5490565b612e2f611871565b600c811115612e4e57634e487b7160e01b600052602160045260246000fd5b60071480612e825750612e5f611871565b600c811115612e7e57634e487b7160e01b600052602160045260246000fd5b6008145b1561101a5750601f5490565b6000546001600160a01b03163314612eb85760405162461bcd60e51b815260040161115890614d82565b602254600160a01b900460ff1615612f125760405162461bcd60e51b815260206004820152601f60248201527f436861696e6c696e6b2056524620616c726561647920726571756573746564006044820152606401611158565b6040516370a0823160e01b8152306004820152671bc16d674ec80000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a082319060240160206040518083038186803b158015612f7b57600080fd5b505afa158015612f8f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612fb39190614b04565b1015612ff55760405162461bcd60e51b8152602060048201526011602482015270496e73756666696369656e74204c494e4b60781b6044820152606401611158565b613009602354671bc16d674ec80000613b26565b506022805460ff60a01b1916600160a01b1790556040517f8bcef1354992d6b49befbd8ce23b2578ce493191f74c32b543d2f177962a139f9061304f9042815260200190565b60405180910390a1565b6000546001600160a01b031633146130835760405162461bcd60e51b815260040161115890614d82565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146130cf5760405162461bcd60e51b815260040161115890614d82565b600e80546001919061ff00191661010083611db6565b6000546001600160a01b0316331461310f5760405162461bcd60e51b815260040161115890614d82565b805161210b9060289060208401906145d7565b6000546001600160a01b0316331461314c5760405162461bcd60e51b815260040161115890614d82565b602455565b6000546001600160a01b0316331461317b5760405162461bcd60e51b815260040161115890614d82565b601b5481111561318a57600080fd5b601a91909155601c55565b6000546001600160a01b031633146131bf5760405162461bcd60e51b815260040161115890614d82565b600083116131cc57600080fd5b600082116131d957600080fd5b828111156131e657600080fd5b600f92909255601055601155565b6000546001600160a01b0316331461321e5760405162461bcd60e51b815260040161115890614d82565b600e80546001919060ff19168280611db6565b6000546001600160a01b0316331461325b5760405162461bcd60e51b815260040161115890614d82565b60005b815181101561210b5781818151811061328757634e487b7160e01b600052603260045260246000fd5b60200260200101517fa109ba539900bf1b633f956d63c96fc89b814c7287f7aa50a9216d0b556572076132e08484815181106132d357634e487b7160e01b600052603260045260246000fd5b6020026020010151612c5c565b6040516132ed9190614d1d565b60405180910390a2613300600182614e5b565b905061325e565b6000546001600160a01b031633146133315760405162461bcd60e51b815260040161115890614d82565b6001600160a01b0381166133965760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401611158565b61339f8161382f565b50565b60006001600160e01b0319821663780e9d6360e01b1480610f445750610f4482613cb1565b600081815260056020526040902080546001600160a01b0319166001600160a01b03841690811790915581906133fc82612347565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061297d8284614e87565b600061297d8284614e5b565b6000805b8281101561349757600061346460095490565b9050601754811015613484576134848561347f836001614e5b565b613d01565b508061348f81614f24565b915050613451565b5060019392505050565b6000818152600360205260408120546001600160a01b031661351a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401611158565b600061352583612347565b9050806001600160a01b0316846001600160a01b031614806135605750836001600160a01b0316613555846110e3565b6001600160a01b0316145b8061359057506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166135ab82612347565b6001600160a01b0316146136135760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401611158565b6001600160a01b0382166136755760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401611158565b613680838383613d1b565b61368b6000826133c7565b6001600160a01b03831660009081526004602052604081208054600192906136b4908490614ea6565b90915550506001600160a01b03821660009081526004602052604081208054600192906136e2908490614e5b565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600061297d8284614e73565b600061297d8284614ea6565b600c54604080517f68e83002b91b0fd96d4df3566b5122221117e3ec6c2468fda594f6491f89b1c9602082015233918101919091526000918291606001604051602081830303815290604052805190602001206040516020016137d592919061190160f01b81526002810192909252602282015260420190565b60405160208183030381529060405280519060200120905061359084848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152508593925050613d269050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80156138d057602581905560408051428152602081018490529081018290527f59e4c9bb1559d5420398abdcb1a7eb97cc4a7e27b2ae810b8d7f44fbc2327ffa906060015b60405180910390a15050565b600160255560408051428152602081018490527fd9b030358bf0114e16959cea6c935e1cb862740b4d1056049f91711662fb3f9591016138c4565b816001600160a01b0316836001600160a01b0316141561396d5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401611158565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6060816139fe5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115613a285780613a1281614f24565b9150613a219050600a83614e73565b9150613a02565b6000816001600160401b03811115613a5057634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015613a7a576020820181803683370190505b5090505b841561359057613a8f600183614ea6565b9150613a9c600a86614f3f565b613aa7906030614e5b565b60f81b818381518110613aca57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350613aec600a86614e73565b9450613a7e565b613afe848484613598565b613b0a84848484613d4a565b6129ef5760405162461bcd60e51b815260040161115890614d30565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316634000aea07f000000000000000000000000000000000000000000000000000000000000000084866000604051602001613b96929190918252602082015260400190565b6040516020818303038152906040526040518463ffffffff1660e01b8152600401613bc393929190614ccf565b602060405180830381600087803b158015613bdd57600080fd5b505af1158015613bf1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613c1591906149a6565b506000838152600d6020818152604080842054815180840189905280830186905230606082015260808082018390528351808303909101815260a090910190925281519183019190912093879052919052613c71906001614e5b565b6000858152600d60205260409020556135908482604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b60006001600160e01b031982166380ac58cd60e01b1480613ce257506001600160e01b03198216635b5e139f60e01b145b80610f4457506301ffc9a760e01b6001600160e01b0319831614610f44565b61210b828260405180602001604052806000815250613e57565b61128e838383613e8a565b6000806000613d358585613f42565b91509150613d4281613fb2565b509392505050565b60006001600160a01b0384163b15613e4c57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613d8e903390899088908890600401614c92565b602060405180830381600087803b158015613da857600080fd5b505af1925050508015613dd8575060408051601f3d908101601f19168201909252613dd5918101906149ff565b60015b613e32573d808015613e06576040519150601f19603f3d011682016040523d82523d6000602084013e613e0b565b606091505b508051613e2a5760405162461bcd60e51b815260040161115890614d30565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050613590565b506001949350505050565b613e6183836141b3565b613e6e6000848484613d4a565b61128e5760405162461bcd60e51b815260040161115890614d30565b6001600160a01b038316613ee557613ee081600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b613f08565b816001600160a01b0316836001600160a01b031614613f0857613f088382614301565b6001600160a01b038216613f1f5761128e8161439e565b826001600160a01b0316826001600160a01b03161461128e5761128e8282614477565b600080825160411415613f795760208301516040840151606085015160001a613f6d878285856144bb565b94509450505050613fab565b825160401415613fa35760208301516040840151613f988683836145a8565b935093505050613fab565b506000905060025b9250929050565b6000816004811115613fd457634e487b7160e01b600052602160045260246000fd5b1415613fdd5750565b6001816004811115613fff57634e487b7160e01b600052602160045260246000fd5b141561404d5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401611158565b600281600481111561406f57634e487b7160e01b600052602160045260246000fd5b14156140bd5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401611158565b60038160048111156140df57634e487b7160e01b600052602160045260246000fd5b14156141385760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401611158565b600481600481111561415a57634e487b7160e01b600052602160045260246000fd5b141561339f5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401611158565b6001600160a01b0382166142095760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401611158565b6000818152600360205260409020546001600160a01b03161561426e5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401611158565b61427a60008383613d1b565b6001600160a01b03821660009081526004602052604081208054600192906142a3908490614e5b565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000600161430e846123be565b6143189190614ea6565b60008381526008602052604090205490915080821461436b576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b6009546000906143b090600190614ea6565b6000838152600a6020526040812054600980549394509092849081106143e657634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050806009838154811061441557634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600a9091526040808220849055858252812055600980548061445b57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000614482836123be565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156144f2575060009050600361459f565b8460ff16601b1415801561450a57508460ff16601c14155b1561451b575060009050600461459f565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa15801561456f573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166145985760006001925092505061459f565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b016145c9878288856144bb565b935093505050935093915050565b8280546145e390614ee9565b90600052602060002090601f016020900481019282614605576000855561464b565b82601f1061461e57805160ff191683800117855561464b565b8280016001018555821561464b579182015b8281111561464b578251825591602001919060010190614630565b5061465792915061465b565b5090565b5b80821115614657576000815560010161465c565b60006001600160401b0383111561468957614689614f95565b61469c601f8401601f1916602001614e08565b90508281528383830111156146b057600080fd5b828260208301376000602084830101529392505050565b60008083601f8401126146d8578182fd5b5081356001600160401b038111156146ee578182fd5b602083019150836020828501011115613fab57600080fd5b600060208284031215614717578081fd5b813561297d81614fbb565b60008060408385031215614734578081fd5b823561473f81614fbb565b9150602083013561474f81614fbb565b809150509250929050565b60008060006060848603121561476e578081fd5b833561477981614fbb565b9250602084013561478981614fbb565b929592945050506040919091013590565b600080600080608085870312156147af578081fd5b84356147ba81614fbb565b935060208501356147ca81614fbb565b92506040850135915060608501356001600160401b038111156147eb578182fd5b8501601f810187136147fb578182fd5b61480a87823560208401614670565b91505092959194509250565b60008060408385031215614828578182fd5b823561483381614fbb565b9150602083013561474f81614fd0565b60008060408385031215614855578182fd5b823561486081614fbb565b946020939093013593505050565b60008060408385031215614880578182fd5b82356001600160401b03811115614895578283fd5b8301601f810185136148a5578283fd5b803560206148ba6148b583614e38565b614e08565b80838252828201915082850189848660051b88010111156148d9578788fd5b8795505b848610156149045780356148f081614fbb565b8352600195909501949183019183016148dd565b5098969091013596505050505050565b60006020808385031215614926578182fd5b82356001600160401b0381111561493b578283fd5b8301601f8101851361494b578283fd5b80356149596148b582614e38565b80828252848201915084840188868560051b8701011115614978578687fd5b8694505b8385101561499a57803583526001949094019391850191850161497c565b50979650505050505050565b6000602082840312156149b7578081fd5b815161297d81614fd0565b600080604083850312156149d4578182fd5b50508035926020909101359150565b6000602082840312156149f4578081fd5b813561297d81614fde565b600060208284031215614a10578081fd5b815161297d81614fde565b60008060208385031215614a2d578182fd5b82356001600160401b03811115614a42578283fd5b614a4e858286016146c7565b90969095509350505050565b600060208284031215614a6b578081fd5b81356001600160401b03811115614a80578182fd5b8201601f81018413614a90578182fd5b61359084823560208401614670565b600060408284031215614ab0578081fd5b604051604081018181106001600160401b0382111715614ad257614ad2614f95565b604052823581526020928301359281019290925250919050565b600060208284031215614afd578081fd5b5035919050565b600060208284031215614b15578081fd5b5051919050565b600080600060408486031215614b30578081fd5b8335925060208401356001600160401b03811115614b4c578182fd5b614b58868287016146c7565b9497909650939450505050565b600080600060608486031215614b79578081fd5b505081359360208301359350604090920135919050565b60008151808452614ba8816020860160208601614ebd565b601f01601f19169290920160200192915050565b60008151614bce818560208601614ebd565b9290920192915050565b600080845482600182811c915080831680614bf457607f831692505b6020808410821415614c1457634e487b7160e01b87526022600452602487fd5b818015614c285760018114614c3957614c65565b60ff19861689528489019650614c65565b60008b815260209020885b86811015614c5d5781548b820152908501908301614c44565b505084890196505b505050505050614c89614c788286614bbc565b64173539b7b760d91b815260050190565b95945050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090614cc590830184614b90565b9695505050505050565b60018060a01b0384168152826020820152606060408201526000614c896060830184614b90565b60208101614d0383614fab565b91905290565b60208101600d8310614d0357614d03614f7f565b60208152600061297d6020830184614b90565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b604051601f8201601f191681016001600160401b0381118282101715614e3057614e30614f95565b604052919050565b60006001600160401b03821115614e5157614e51614f95565b5060051b60200190565b60008219821115614e6e57614e6e614f53565b500190565b600082614e8257614e82614f69565b500490565b6000816000190483118215151615614ea157614ea1614f53565b500290565b600082821015614eb857614eb8614f53565b500390565b60005b83811015614ed8578181015183820152602001614ec0565b838111156129ef5750506000910152565b600181811c90821680614efd57607f821691505b60208210811415614f1e57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415614f3857614f38614f53565b5060010190565b600082614f4e57614f4e614f69565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6003811061339f5761339f614f7f565b6001600160a01b038116811461339f57600080fd5b801515811461339f57600080fd5b6001600160e01b03198116811461339f57600080fdfea2646970667358221220ea8f806718b596960f4e226a3edee78345e814cab08c5af4e305f9a5d44b0a4d64736f6c63430008040033608060405260405162001157380380620011578339810160408190526200002691620003db565b8051825114620000985760405162461bcd60e51b815260206004820152603260248201527f5061796d656e7453706c69747465723a2070617965657320616e6420736861726044820152710cae640d8cadccee8d040dad2e6dac2e8c6d60731b60648201526084015b60405180910390fd5b6000825111620000eb5760405162461bcd60e51b815260206004820152601a60248201527f5061796d656e7453706c69747465723a206e6f2070617965657300000000000060448201526064016200008f565b60005b82518110156200016f576200015a8382815181106200011d57634e487b7160e01b600052603260045260246000fd5b60200260200101518383815181106200014657634e487b7160e01b600052603260045260246000fd5b60200260200101516200017860201b60201c565b8062000166816200052c565b915050620000ee565b50505062000576565b6001600160a01b038216620001e55760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b60648201526084016200008f565b60008111620002375760405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a2073686172657320617265203000000060448201526064016200008f565b6001600160a01b03821660009081526002602052604090205415620002b35760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b60648201526084016200008f565b60048054600181019091557f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0180546001600160a01b0319166001600160a01b0384169081179091556000908152600260205260408120829055546200031b90829062000511565b600055604080516001600160a01b0384168152602081018390527f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac910160405180910390a15050565b600082601f83011262000375578081fd5b815160206200038e6200038883620004eb565b620004b8565b80838252828201915082860187848660051b8901011115620003ae578586fd5b855b85811015620003ce57815184529284019290840190600101620003b0565b5090979650505050505050565b60008060408385031215620003ee578182fd5b82516001600160401b038082111562000405578384fd5b818501915085601f83011262000419578384fd5b815160206200042c6200038883620004eb565b8083825282820191508286018a848660051b89010111156200044c578889fd5b8896505b84871015620004855780516001600160a01b03811681146200047057898afd5b83526001969096019591830191830162000450565b50918801519196509093505050808211156200049f578283fd5b50620004ae8582860162000364565b9150509250929050565b604051601f8201601f191681016001600160401b0381118282101715620004e357620004e362000560565b604052919050565b60006001600160401b0382111562000507576200050762000560565b5060051b60200190565b600082198211156200052757620005276200054a565b500190565b60006000198214156200054357620005436200054a565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b610bd180620005866000396000f3fe60806040526004361061008a5760003560e01c80638b83209b116100595780638b83209b146101845780639852595c146101bc578063ce7c2ac2146101f2578063d79779b214610228578063e33b7de31461025e57600080fd5b806319165587146100d85780633a98ef39146100fa578063406072a91461011e57806348b750441461016457600080fd5b366100d3577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b3480156100e457600080fd5b506100f86100f336600461094b565b610273565b005b34801561010657600080fd5b506000545b6040519081526020015b60405180910390f35b34801561012a57600080fd5b5061010b610139366004610987565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205490565b34801561017057600080fd5b506100f861017f366004610987565b6103aa565b34801561019057600080fd5b506101a461019f3660046109bf565b610592565b6040516001600160a01b039091168152602001610115565b3480156101c857600080fd5b5061010b6101d736600461094b565b6001600160a01b031660009081526003602052604090205490565b3480156101fe57600080fd5b5061010b61020d36600461094b565b6001600160a01b031660009081526002602052604090205490565b34801561023457600080fd5b5061010b61024336600461094b565b6001600160a01b031660009081526005602052604090205490565b34801561026a57600080fd5b5060015461010b565b6001600160a01b0381166000908152600260205260409020546102b15760405162461bcd60e51b81526004016102a890610a3e565b60405180910390fd5b60006102bc60015490565b6102c69047610acf565b905060006102f383836102ee866001600160a01b031660009081526003602052604090205490565b6105d0565b9050806103125760405162461bcd60e51b81526004016102a890610a84565b6001600160a01b0383166000908152600360205260408120805483929061033a908490610acf565b9250508190555080600160008282546103539190610acf565b9091555061036390508382610615565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b6001600160a01b0381166000908152600260205260409020546103df5760405162461bcd60e51b81526004016102a890610a3e565b6001600160a01b0382166000908152600560205260408120546040516370a0823160e01b81523060048201526001600160a01b038516906370a082319060240160206040518083038186803b15801561043757600080fd5b505afa15801561044b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061046f91906109d7565b6104799190610acf565b905060006104b283836102ee87876001600160a01b03918216600090815260066020908152604080832093909416825291909152205490565b9050806104d15760405162461bcd60e51b81526004016102a890610a84565b6001600160a01b03808516600090815260066020908152604080832093871683529290529081208054839290610508908490610acf565b90915550506001600160a01b03841660009081526005602052604081208054839290610535908490610acf565b909155506105469050848483610733565b604080516001600160a01b038581168252602082018490528616917f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a910160405180910390a250505050565b6000600482815481106105b557634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031692915050565b600080546001600160a01b0385168252600260205260408220548391906105f79086610b07565b6106019190610ae7565b61060b9190610b26565b90505b9392505050565b804710156106655760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016102a8565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146106b2576040519150601f19603f3d011682016040523d82523d6000602084013e6106b7565b606091505b505090508061072e5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016102a8565b505050565b604080516001600160a01b03848116602483015260448083018590528351808403909101815260649092018352602080830180516001600160e01b031663a9059cbb60e01b17905283518085019094528084527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65649084015261072e928692916000916107c3918516908490610840565b80519091501561072e57808060200190518101906107e19190610967565b61072e5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016102a8565b606061060b848460008585843b6108995760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016102a8565b600080866001600160a01b031685876040516108b591906109ef565b60006040518083038185875af1925050503d80600081146108f2576040519150601f19603f3d011682016040523d82523d6000602084013e6108f7565b606091505b5091509150610907828286610912565b979650505050505050565b6060831561092157508161060e565b8251156109315782518084602001fd5b8160405162461bcd60e51b81526004016102a89190610a0b565b60006020828403121561095c578081fd5b813561060e81610b83565b600060208284031215610978578081fd5b8151801515811461060e578182fd5b60008060408385031215610999578081fd5b82356109a481610b83565b915060208301356109b481610b83565b809150509250929050565b6000602082840312156109d0578081fd5b5035919050565b6000602082840312156109e8578081fd5b5051919050565b60008251610a01818460208701610b3d565b9190910192915050565b6020815260008251806020840152610a2a816040850160208701610b3d565b601f01601f19169190910160400192915050565b60208082526026908201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060408201526573686172657360d01b606082015260800190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060408201526a191d59481c185e5b595b9d60aa1b606082015260800190565b60008219821115610ae257610ae2610b6d565b500190565b600082610b0257634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615610b2157610b21610b6d565b500290565b600082821015610b3857610b38610b6d565b500390565b60005b83811015610b58578181015183820152602001610b40565b83811115610b67576000848401525b50505050565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b0381168114610b9857600080fd5b5056fea2646970667358221220d810044e9bb1aef10f7bf5be2e4cbb6ac319c117db14756813555a42c6e6fa7c64736f6c634300080400330000000000000000000000000000000000000000000000000214e8348c4f00000000000000000000000000000000000000000000000000000a688906bd8b0000000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001600000000000000000000000000000000000000000000000000000000000002710000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952000000000000000000000000514910771af9ca656af840dff83e8264ecf986caaa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af44500000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000000000000000000000000000000000000000008334c616e646572730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002334c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000005000000000000000000000000b083d5deee59546d30b626c2203e2aed8c19484b000000000000000000000000ecf128006c70c240694ffa90ba5e4a08819b7f38000000000000000000000000679e4882bb9af8729348d103aa8a7e4d46205ca0000000000000000000000000160b9a4420d2760dcc5b371a4e2dd00f94b1923c000000000000000000000000e0a0262ac02312ba25d4b963e8375dac7bb173e20000000000000000000000000000000000000000000000000000000000000005000000000000000000000000000000000000000000000000000000000000001e00000000000000000000000000000000000000000000000000000000000000190000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000000f000000000000000000000000000000000000000000000000000000000000000a

Deployed Bytecode

0x6080604052600436106105025760003560e01c80637d94792a11610297578063c91621c211610165578063dfa3a2e3116100cc578063efc4bc7c11610085578063efc4bc7c14610e8d578063eff70c3814610ea3578063f2fde38b14610eb9578063f3b3a9fa14610ed9578063f560d41514610eef578063fa4d280c14610f0557600080fd5b8063dfa3a2e314610dba578063dfb2866d14610dda578063dfe363ef14610df0578063e4f2487a14610e05578063e5d1ea4114610e24578063e985e9c514610e4457600080fd5b8063d2c1f2061161011e578063d2c1f20614610d1b578063d5abeb0114610d30578063d816574314610d46578063da1b9e0814610d5a578063da324a3014610d7a578063dd7f40cc14610d9a57600080fd5b8063c91621c214610c8d578063c9a8d9f714610ca2578063ca997aa014610cb7578063ccc5d84714610ccd578063cd77083314610ce2578063d0b77ab414610d0257600080fd5b8063a734335b11610209578063ba1f879f116101c2578063ba1f879f14610be8578063bbc33aa514610c03578063be008ccb14610c18578063c204642c14610c2d578063c32a50f914610c4d578063c87b56dd14610c6d57600080fd5b8063a734335b14610b47578063b083bbbd14610b68578063b5154dae14610b7d578063b87ced4e14610b93578063b88d4fde14610bb3578063b8c672d714610bd357600080fd5b806394985ddd1161025b57806394985ddd14610a9557806395d89b4114610ab55780639b6860c814610aca578063a22cb46514610ae0578063a2fb7b5d14610b00578063a574cea414610b2757600080fd5b80637d94792a14610a0b578063839ed56c14610a215780638da5cb5b14610a415780639024fc9614610a5f57806392fb496714610a7557600080fd5b80634256dbe3116103d45780635e1626991161034657806370a08231116102ff57806370a082311461096c578063715018a61461098c57806373b19e8f146109a1578063776451b0146109b6578063791a2519146109cb5780637bc36e04146109eb57600080fd5b80635e162699146108df5780635e9f9613146108f557806361728f391461090a5780636352211e1461092057806363fea81c1461094057806366bb81c71461095657600080fd5b80634f6ccce7116103985780634f6ccce71461083557806354214f691461085557806355f804b31461086a5780635626e4041461088a57806356c4aedd146108aa57806358e39b90146108bf57600080fd5b80634256dbe3146107b657806342842e0e146107d657806344732180146107f657806347326dc21461080b5780634e99b8001461082057600080fd5b806319165587116104785780633644e515116104315780633644e5151461072b5780633828914a14610741578063398c0ec1146107575780633c5d1c081461076c5780633ca4fb761461078c5780633ccfd60b146107a157600080fd5b806319165587146106705780632316b4da1461069057806323b872dd146106a5578063266dab34146106c55780632f745c59146106db57806333bc1c5c146106fb57600080fd5b8063081812fc116104ca578063081812fc146105b7578063095ea7b3146105ef5780630960e71c146106115780630f30cde01461062657806318160ddd146106395780631865c57d1461064e57600080fd5b806301ffc9a71461050757806302410f471461053c578063031ab9f51461055d578063048e0aa01461058057806306fdde0314610595575b600080fd5b34801561051357600080fd5b506105276105223660046149e3565b610f39565b60405190151581526020015b60405180910390f35b34801561054857600080fd5b5060225461052790600160a01b900460ff1681565b34801561056957600080fd5b50610572610f4a565b604051908152602001610533565b34801561058c57600080fd5b50610527611020565b3480156105a157600080fd5b506105aa611051565b6040516105339190614d1d565b3480156105c357600080fd5b506105d76105d2366004614aec565b6110e3565b6040516001600160a01b039091168152602001610533565b3480156105fb57600080fd5b5061060f61060a366004614843565b61117d565b005b34801561061d57600080fd5b50602054610572565b610527610634366004614b1c565b611293565b34801561064557600080fd5b50600954610572565b34801561065a57600080fd5b50610663611871565b6040516105339190614d09565b34801561067c57600080fd5b5061060f61068b366004614706565b611cee565b34801561069c57600080fd5b5061060f611d7a565b3480156106b157600080fd5b5061060f6106c036600461475a565b611dbd565b3480156106d157600080fd5b5061057260165481565b3480156106e757600080fd5b506105726106f6366004614843565b611dee565b34801561070757600080fd5b50601f54602054610716919082565b60408051928352602083019190915201610533565b34801561073757600080fd5b50610572600c5481565b34801561074d57600080fd5b5061057260155481565b34801561076357600080fd5b50610572611e84565b34801561077857600080fd5b50610527610787366004614a1b565b611f64565b34801561079857600080fd5b506105aa611fdf565b3480156107ad57600080fd5b5061060f61206d565b3480156107c257600080fd5b5061060f6107d1366004614aec565b61210f565b3480156107e257600080fd5b5061060f6107f136600461475a565b61213e565b34801561080257600080fd5b5061060f612159565b34801561081757600080fd5b50601f54610572565b34801561082c57600080fd5b506105aa612197565b34801561084157600080fd5b50610572610850366004614aec565b6121a6565b34801561086157600080fd5b50610527612247565b34801561087657600080fd5b5061060f610885366004614a5a565b61226e565b34801561089657600080fd5b5061060f6108a5366004614aec565b6122ab565b3480156108b657600080fd5b506105aa6122da565b3480156108cb57600080fd5b5061060f6108da366004614706565b6122e7565b3480156108eb57600080fd5b5061057260195481565b34801561090157600080fd5b50610572612335565b34801561091657600080fd5b5061057260235481565b34801561092c57600080fd5b506105d761093b366004614aec565b612347565b34801561094c57600080fd5b50610572601a5481565b34801561096257600080fd5b5061057260245481565b34801561097857600080fd5b50610572610987366004614706565b6123be565b34801561099857600080fd5b5061060f612445565b3480156109ad57600080fd5b5061057261247b565b3480156109c257600080fd5b506105726124ff565b3480156109d757600080fd5b5061060f6109e6366004614aec565b61256d565b3480156109f757600080fd5b5061060f610a06366004614aec565b61259c565b348015610a1757600080fd5b5061057260255481565b348015610a2d57600080fd5b5061060f610a3c366004614aec565b6125cb565b348015610a4d57600080fd5b506000546001600160a01b03166105d7565b348015610a6b57600080fd5b5061057260135481565b348015610a8157600080fd5b5061060f610a90366004614a9f565b6125fa565b348015610aa157600080fd5b5061060f610ab03660046149c2565b612632565b348015610ac157600080fd5b506105aa6126b4565b348015610ad657600080fd5b50610572601b5481565b348015610aec57600080fd5b5061060f610afb366004614816565b6126c3565b348015610b0c57600080fd5b50600e54610b1a9060ff1681565b6040516105339190614cf6565b348015610b3357600080fd5b506105aa610b42366004614aec565b6126ce565b348015610b5357600080fd5b5060225461052790600160a81b900460ff1681565b348015610b7457600080fd5b50601d54610572565b348015610b8957600080fd5b5061057260105481565b348015610b9f57600080fd5b5061060f610bae366004614a9f565b612984565b348015610bbf57600080fd5b5061060f610bce36600461479a565b6129bd565b348015610bdf57600080fd5b50601e54610572565b348015610bf457600080fd5b50601d54601e54610716919082565b348015610c0f57600080fd5b506105726129f5565b348015610c2457600080fd5b5061060f612a0d565b348015610c3957600080fd5b5061060f610c4836600461486e565b612a4b565b348015610c5957600080fd5b5061060f610c68366004614aec565b612bdd565b348015610c7957600080fd5b506105aa610c88366004614aec565b612c5c565b348015610c9957600080fd5b50610572612d80565b348015610cae57600080fd5b50610572612dbe565b348015610cc357600080fd5b50610572600f5481565b348015610cd957600080fd5b5061060f612e8e565b348015610cee57600080fd5b5061060f610cfd366004614706565b613059565b348015610d0e57600080fd5b5060125460135414610527565b348015610d2757600080fd5b5061060f6130a5565b348015610d3c57600080fd5b5061057260175481565b348015610d5257600080fd5b506000610663565b348015610d6657600080fd5b5061060f610d75366004614a5a565b6130e5565b348015610d8657600080fd5b5061060f610d95366004614aec565b613122565b348015610da657600080fd5b5061060f610db53660046149c2565b613151565b348015610dc657600080fd5b5061060f610dd5366004614b65565b613195565b348015610de657600080fd5b50610572601c5481565b348015610dfc57600080fd5b5061060f6131f4565b348015610e1157600080fd5b50600e54610b1a90610100900460ff1681565b348015610e3057600080fd5b5061060f610e3f366004614914565b613231565b348015610e5057600080fd5b50610527610e5f366004614722565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b348015610e9957600080fd5b5061057260125481565b348015610eaf57600080fd5b5061057260115481565b348015610ec557600080fd5b5061060f610ed4366004614706565b613307565b348015610ee557600080fd5b5061057260185481565b348015610efb57600080fd5b5061057260145481565b348015610f1157600080fd5b506105727f68e83002b91b0fd96d4df3566b5122221117e3ec6c2468fda594f6491f89b1c981565b6000610f44826133a2565b92915050565b6000610f54611871565b600c811115610f7357634e487b7160e01b600052602160045260246000fd5b60021480610fa75750610f84611871565b600c811115610fa357634e487b7160e01b600052602160045260246000fd5b6003145b15610fb35750601e5490565b610fbb611871565b600c811115610fda57634e487b7160e01b600052602160045260246000fd5b6007148061100e5750610feb611871565b600c81111561100a57634e487b7160e01b600052602160045260246000fd5b6008145b1561101a575060205490565b50600090565b6000806018546017546110339190614ea6565b905060006013546015546110479190614e5b565b9190911492915050565b60606001805461106090614ee9565b80601f016020809104026020016040519081016040528092919081815260200182805461108c90614ee9565b80156110d95780601f106110ae576101008083540402835291602001916110d9565b820191906000526020600020905b8154815290600101906020018083116110bc57829003601f168201915b5050505050905090565b6000818152600360205260408120546001600160a01b03166111615760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b600061118882612347565b9050806001600160a01b0316836001600160a01b031614156111f65760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401611158565b336001600160a01b038216148061121257506112128133610e5f565b6112845760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401611158565b61128e83836133c7565b505050565b6000600260215414156112e85760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401611158565b6002602155333b1561133c5760405162461bcd60e51b815260206004820152601860248201527f436f6e7472616374206973206e6f7420616c6c6f7765642e00000000000000006044820152606401611158565b6003611346611871565b600c81111561136557634e487b7160e01b600052602160045260246000fd5b148061139757506008611376611871565b600c81111561139557634e487b7160e01b600052602160045260246000fd5b145b6113d95760405162461bcd60e51b815260206004820152601360248201527229b0b632903737ba1030bb30b4b630b136329760691b6044820152606401611158565b60086113e3611871565b600c81111561140257634e487b7160e01b600052602160045260246000fd5b14156115205760105484111561145a5760405162461bcd60e51b815260206004820152601f60248201527f4d696e7420657863656564207472616e73616374696f6e206c696d6974732e006044820152606401611158565b61146c611465611e84565b8590613435565b3410156114b15760405162461bcd60e51b815260206004820152601360248201527224b739bab33334b1b4b2b73a10333ab732399760691b6044820152606401611158565b6017546114d26114bf612335565b6114cc876114cc60095490565b90613441565b11156115205760405162461bcd60e51b815260206004820152601b60248201527f507572636861736520657863656564206d617820737570706c792e00000000006044820152606401611158565b600361152a611871565b600c81111561154957634e487b7160e01b600052602160045260246000fd5b1415611710576115598383611f64565b6115985760405162461bcd60e51b815260206004820152601060248201526f2737ba103bb434ba32b634b9ba32b21760811b6044820152606401611158565b600f548411156115ea5760405162461bcd60e51b815260206004820152601e60248201527f4d696e7420657863656564207472616e73616374696f6e206c696d69747300006044820152606401611158565b60115433600090815260276020526040902054611608908690614e5b565b11156116565760405162461bcd60e51b815260206004820152601f60248201527f4d696e74206c696d6974207065722077616c6c65742065786365656465642e006044820152606401611158565b6012546013546116669086613441565b11156116c05760405162461bcd60e51b8152602060048201526024808201527f50757263686173652065786365656420707269766174652073616c65206361706044820152633832b21760e11b6064820152608401611158565b6116cb611465611e84565b3410156117105760405162461bcd60e51b815260206004820152601360248201527224b739bab33334b1b4b2b73a10333ab732399760691b6044820152606401611158565b600361171a611871565b600c81111561173957634e487b7160e01b600052602160045260246000fd5b148061176b5750600861174a611871565b600c81111561176957634e487b7160e01b600052602160045260246000fd5b145b156118635761177a338561344d565b506008611785611871565b600c8111156117a457634e487b7160e01b600052602160045260246000fd5b14156117bc57836015546117b89190614e5b565b6015555b60036117c6611871565b600c8111156117e557634e487b7160e01b600052602160045260246000fd5b14156118285733600090815260276020526040902054611806908590614e5b565b33600090815260276020526040902055601354611824908590614e5b565b6013555b6022546040516001600160a01b03909116903480156108fc02916000818181858888f19350505050158015611861573d6000803e3d6000fd5b505b506001806021559392505050565b6000806018546017546118849190614ea6565b905060006013546015546118989190614e5b565b90506000600e54610100900460ff1660028111156118c657634e487b7160e01b600052602160045260246000fd5b141580156118f857506002600e5460ff1660028111156118f657634e487b7160e01b600052602160045260246000fd5b145b1561190657600c9250505090565b6000600e54610100900460ff16600281111561193257634e487b7160e01b600052602160045260246000fd5b1415801561196457506001600e5460ff16600281111561196257634e487b7160e01b600052602160045260246000fd5b145b1561197257600b9250505090565b6002600e54610100900460ff16600281111561199e57634e487b7160e01b600052602160045260246000fd5b1480156119aa57508181145b156119b857600a9250505090565b6000600e54610100900460ff1660028111156119e457634e487b7160e01b600052602160045260246000fd5b14156119f35760009250505090565b6002600e54610100900460ff166002811115611a1f57634e487b7160e01b600052602160045260246000fd5b148015611a2d575060205415155b8015611a3a575060205443115b15611a485760099250505090565b6002600e54610100900460ff166002811115611a7457634e487b7160e01b600052602160045260246000fd5b148015611a825750601f5415155b8015611a905750601f544310155b15611a9e5760089250505090565b6002600e54610100900460ff166002811115611aca57634e487b7160e01b600052602160045260246000fd5b148015611ad85750601f5415155b8015611ae55750601f5443105b8015611af25750601e5443115b15611b005760079250505090565b6002600e54610100900460ff166002811115611b2c57634e487b7160e01b600052602160045260246000fd5b148015611b395750601f54155b8015611b465750601e5443115b15611b545760069250505090565b6001600e54610100900460ff166002811115611b8057634e487b7160e01b600052602160045260246000fd5b148015611b905750601254601354145b15611b9e5760059250505090565b6001600e54610100900460ff166002811115611bca57634e487b7160e01b600052602160045260246000fd5b148015611bd85750601e5415155b8015611be55750601e5443115b15611bf35760049250505090565b6001600e54610100900460ff166002811115611c1f57634e487b7160e01b600052602160045260246000fd5b148015611c2d5750601d5415155b8015611c3b5750601d544310155b15611c495760039250505090565b6001600e54610100900460ff166002811115611c7557634e487b7160e01b600052602160045260246000fd5b148015611c835750601d5415155b8015611c905750601d5443105b15611c9e5760029250505090565b6001600e54610100900460ff166002811115611cca57634e487b7160e01b600052602160045260246000fd5b148015611cd75750601d54155b15611ce55760019250505090565b60009250505090565b6000546001600160a01b03163314611d185760405162461bcd60e51b815260040161115890614d82565b602254604051631916558760e01b81526001600160a01b03838116600483015290911690631916558790602401600060405180830381600087803b158015611d5f57600080fd5b505af1158015611d73573d6000803e3d6000fd5b5050505050565b6000546001600160a01b03163314611da45760405162461bcd60e51b815260040161115890614d82565b600e80546002919061ff001916610100835b0217905550565b611dc733826134a1565b611de35760405162461bcd60e51b815260040161115890614db7565b61128e838383613598565b6000611df9836123be565b8210611e5b5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401611158565b506001600160a01b03919091166000908152600760209081526040808320938352929052205490565b60006003611e90611871565b600c811115611eaf57634e487b7160e01b600052602160045260246000fd5b1415611ebc575060145490565b6008611ec6611871565b600c811115611ee557634e487b7160e01b600052602160045260246000fd5b1415611f5d57601f54600090611efb9043614ea6565b90506000611f20601c54611f1a6019548561374390919063ffffffff16565b90613435565b9050611f39601a54601b5461374f90919063ffffffff16565b8110611f4957601a549250505090565b601b54611f56908261374f565b9250505090565b50601b5490565b600b546000906001600160a01b0316611fb85760405162461bcd60e51b81526020600482015260166024820152753bb434ba32b634b9ba103737ba1032b730b13632b21760511b6044820152606401611158565b600b546001600160a01b0316611fce848461375b565b6001600160a01b0316149392505050565b60298054611fec90614ee9565b80601f016020809104026020016040519081016040528092919081815260200182805461201890614ee9565b80156120655780601f1061203a57610100808354040283529160200191612065565b820191906000526020600020905b81548152906001019060200180831161204857829003601f168201915b505050505081565b602254600160a81b900460ff1680156120905750602a546001600160a01b031633145b6120dc5760405162461bcd60e51b815260206004820152601960248201527f4f6e6c792062656e656669636961727920616c6c6f7765642e000000000000006044820152606401611158565b6040514790339082156108fc029083906000818181858888f1935050505015801561210b573d6000803e3d6000fd5b5050565b6000546001600160a01b031633146121395760405162461bcd60e51b815260040161115890614d82565b601855565b61128e838383604051806020016040528060008152506129bd565b6000546001600160a01b031633146121835760405162461bcd60e51b815260040161115890614d82565b600e80546000919060ff1916600183611db6565b60606029805461106090614ee9565b60006121b160095490565b82106122145760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401611158565b6009828154811061223557634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b60008060255411801561225c57506000602454115b8015612269575060245443115b905090565b6000546001600160a01b031633146122985760405162461bcd60e51b815260040161115890614d82565b805161210b9060299060208401906145d7565b6000546001600160a01b031633146122d55760405162461bcd60e51b815260040161115890614d82565b601255565b60288054611fec90614ee9565b6000546001600160a01b031633146123115760405162461bcd60e51b815260040161115890614d82565b6001600160a01b03166000908152602660205260409020805460ff19166001179055565b60006016546018546122699190614ea6565b6000818152600360205260408120546001600160a01b031680610f445760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401611158565b60006001600160a01b0382166124295760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401611158565b506001600160a01b031660009081526004602052604090205490565b6000546001600160a01b0316331461246f5760405162461bcd60e51b815260040161115890614d82565b612479600061382f565b565b60006003612487611871565b600c8111156124a657634e487b7160e01b600052602160045260246000fd5b14156124b3575060125490565b60086124bd611871565b600c8111156124dc57634e487b7160e01b600052602160045260246000fd5b141561101a576018546013546017546124f59190614ea6565b6122699190614ea6565b6000600361250b611871565b600c81111561252a57634e487b7160e01b600052602160045260246000fd5b1415612537575060135490565b6008612541611871565b600c81111561256057634e487b7160e01b600052602160045260246000fd5b141561101a575060155490565b6000546001600160a01b031633146125975760405162461bcd60e51b815260040161115890614d82565b601b55565b6000546001600160a01b031633146125c65760405162461bcd60e51b815260040161115890614d82565b601455565b6000546001600160a01b031633146125f55760405162461bcd60e51b815260040161115890614d82565b601955565b6000546001600160a01b031633146126245760405162461bcd60e51b815260040161115890614d82565b8051601d5560200151601e55565b336001600160a01b037f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb795216146126aa5760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c006044820152606401611158565b61210b828261387f565b60606002805461106090614ee9565b61210b33838361390b565b60606126e26000546001600160a01b031690565b6001600160a01b0316336001600160a01b03161461273f57600954821061273f5760405162461bcd60e51b81526020600482015260116024820152702a37b5b2b7103737ba1032bc34b9ba399760791b6044820152606401611158565b612747612247565b61276e575050604080518082019091526007815266191959985d5b1d60ca1b602082015290565b6000601754600161277f9190614e5b565b6001600160401b038111156127a457634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156127cd578160200160208202803683370190505b50905060015b601754811161281a57808282815181106127fd57634e487b7160e01b600052603260045260246000fd5b6020908102919091010152612813600182614e5b565b90506127d3565b5060025b601754811161294c5760006017546025548360405160200161284a929190918252602082015260400190565b6040516020818303038152906040528051906020012060001c61286d9190614f3f565b612878906001614e5b565b90506002811015801561288d57506017548111155b15612939578281815181106128b257634e487b7160e01b600052603260045260246000fd5b60200260200101518383815181106128da57634e487b7160e01b600052603260045260246000fd5b602002602001015184848151811061290257634e487b7160e01b600052603260045260246000fd5b6020026020010185848151811061292957634e487b7160e01b600052603260045260246000fd5b6020908102919091010191909152525b50612945600182614e5b565b905061281e565b5061297d81848151811061297057634e487b7160e01b600052603260045260246000fd5b60200260200101516139da565b9392505050565b6000546001600160a01b031633146129ae5760405162461bcd60e51b815260040161115890614d82565b8051601f556020908101519055565b6129c733836134a1565b6129e35760405162461bcd60e51b815260040161115890614db7565b6129ef84848484613af3565b50505050565b6000612a0060095490565b6017546122699190614ea6565b6000546001600160a01b03163314612a375760405162461bcd60e51b815260040161115890614d82565b600e80546002919060ff1916600183611db6565b3360009081526026602052604090205460ff16612aaa5760405162461bcd60e51b815260206004820152601a60248201527f4f6e6c792061697264726f7020726f6c6520616c6c6f7765642e0000000000006044820152606401611158565b6017548251612ac590612abd9084613435565b6009546114cc565b1115612b135760405162461bcd60e51b815260206004820152601860248201527f457863656564206d617820737570706c79206c696d69742e00000000000000006044820152606401611158565b6018548251612b2f90612b269084613435565b60165490613441565b1115612b755760405162461bcd60e51b815260206004820152601560248201527424b739bab33334b1b4b2b73a103932b9b2b93b329760591b6044820152606401611158565b60005b8251811015612bc557612bb2838281518110612ba457634e487b7160e01b600052603260045260246000fd5b60200260200101518361344d565b5080612bbd81614f24565b915050612b78565b508151612bd690612b269083613435565b6016555050565b6000546001600160a01b03163314612c075760405162461bcd60e51b815260040161115890614d82565b6022805460ff60a01b1916600160a01b17905560258190556040517f2a0c75d184788ec5da6ff9a4518c4dfe7215f45a66470b32947f9b2617fc888490612c519042815260200190565b60405180910390a150565b6060612c6760095490565b612c72906001614e5b565b8210612cb35760405162461bcd60e51b815260206004820152601060248201526f2a37b5b2b7103737ba1032bc34b9ba1760811b6044820152606401611158565b612cbb612247565b612d4f5760288054612ccc90614ee9565b80601f0160208091040260200160405190810160405280929190818152602001828054612cf890614ee9565b8015612d455780601f10612d1a57610100808354040283529160200191612d45565b820191906000526020600020905b815481529060010190602001808311612d2857829003601f168201915b5050505050610f44565b6029612d5a836126ce565b604051602001612d6b929190614bd8565b60405160208183030381529060405292915050565b60006003612d8c611871565b600c811115612dab57634e487b7160e01b600052602160045260246000fd5b14612db7575060105490565b50600f5490565b6000612dc8611871565b600c811115612de757634e487b7160e01b600052602160045260246000fd5b60021480612e1b5750612df8611871565b600c811115612e1757634e487b7160e01b600052602160045260246000fd5b6003145b15612e275750601d5490565b612e2f611871565b600c811115612e4e57634e487b7160e01b600052602160045260246000fd5b60071480612e825750612e5f611871565b600c811115612e7e57634e487b7160e01b600052602160045260246000fd5b6008145b1561101a5750601f5490565b6000546001600160a01b03163314612eb85760405162461bcd60e51b815260040161115890614d82565b602254600160a01b900460ff1615612f125760405162461bcd60e51b815260206004820152601f60248201527f436861696e6c696e6b2056524620616c726561647920726571756573746564006044820152606401611158565b6040516370a0823160e01b8152306004820152671bc16d674ec80000907f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca6001600160a01b0316906370a082319060240160206040518083038186803b158015612f7b57600080fd5b505afa158015612f8f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612fb39190614b04565b1015612ff55760405162461bcd60e51b8152602060048201526011602482015270496e73756666696369656e74204c494e4b60781b6044820152606401611158565b613009602354671bc16d674ec80000613b26565b506022805460ff60a01b1916600160a01b1790556040517f8bcef1354992d6b49befbd8ce23b2578ce493191f74c32b543d2f177962a139f9061304f9042815260200190565b60405180910390a1565b6000546001600160a01b031633146130835760405162461bcd60e51b815260040161115890614d82565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146130cf5760405162461bcd60e51b815260040161115890614d82565b600e80546001919061ff00191661010083611db6565b6000546001600160a01b0316331461310f5760405162461bcd60e51b815260040161115890614d82565b805161210b9060289060208401906145d7565b6000546001600160a01b0316331461314c5760405162461bcd60e51b815260040161115890614d82565b602455565b6000546001600160a01b0316331461317b5760405162461bcd60e51b815260040161115890614d82565b601b5481111561318a57600080fd5b601a91909155601c55565b6000546001600160a01b031633146131bf5760405162461bcd60e51b815260040161115890614d82565b600083116131cc57600080fd5b600082116131d957600080fd5b828111156131e657600080fd5b600f92909255601055601155565b6000546001600160a01b0316331461321e5760405162461bcd60e51b815260040161115890614d82565b600e80546001919060ff19168280611db6565b6000546001600160a01b0316331461325b5760405162461bcd60e51b815260040161115890614d82565b60005b815181101561210b5781818151811061328757634e487b7160e01b600052603260045260246000fd5b60200260200101517fa109ba539900bf1b633f956d63c96fc89b814c7287f7aa50a9216d0b556572076132e08484815181106132d357634e487b7160e01b600052603260045260246000fd5b6020026020010151612c5c565b6040516132ed9190614d1d565b60405180910390a2613300600182614e5b565b905061325e565b6000546001600160a01b031633146133315760405162461bcd60e51b815260040161115890614d82565b6001600160a01b0381166133965760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401611158565b61339f8161382f565b50565b60006001600160e01b0319821663780e9d6360e01b1480610f445750610f4482613cb1565b600081815260056020526040902080546001600160a01b0319166001600160a01b03841690811790915581906133fc82612347565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061297d8284614e87565b600061297d8284614e5b565b6000805b8281101561349757600061346460095490565b9050601754811015613484576134848561347f836001614e5b565b613d01565b508061348f81614f24565b915050613451565b5060019392505050565b6000818152600360205260408120546001600160a01b031661351a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401611158565b600061352583612347565b9050806001600160a01b0316846001600160a01b031614806135605750836001600160a01b0316613555846110e3565b6001600160a01b0316145b8061359057506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166135ab82612347565b6001600160a01b0316146136135760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401611158565b6001600160a01b0382166136755760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401611158565b613680838383613d1b565b61368b6000826133c7565b6001600160a01b03831660009081526004602052604081208054600192906136b4908490614ea6565b90915550506001600160a01b03821660009081526004602052604081208054600192906136e2908490614e5b565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600061297d8284614e73565b600061297d8284614ea6565b600c54604080517f68e83002b91b0fd96d4df3566b5122221117e3ec6c2468fda594f6491f89b1c9602082015233918101919091526000918291606001604051602081830303815290604052805190602001206040516020016137d592919061190160f01b81526002810192909252602282015260420190565b60405160208183030381529060405280519060200120905061359084848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152508593925050613d269050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80156138d057602581905560408051428152602081018490529081018290527f59e4c9bb1559d5420398abdcb1a7eb97cc4a7e27b2ae810b8d7f44fbc2327ffa906060015b60405180910390a15050565b600160255560408051428152602081018490527fd9b030358bf0114e16959cea6c935e1cb862740b4d1056049f91711662fb3f9591016138c4565b816001600160a01b0316836001600160a01b0316141561396d5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401611158565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6060816139fe5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115613a285780613a1281614f24565b9150613a219050600a83614e73565b9150613a02565b6000816001600160401b03811115613a5057634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015613a7a576020820181803683370190505b5090505b841561359057613a8f600183614ea6565b9150613a9c600a86614f3f565b613aa7906030614e5b565b60f81b818381518110613aca57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350613aec600a86614e73565b9450613a7e565b613afe848484613598565b613b0a84848484613d4a565b6129ef5760405162461bcd60e51b815260040161115890614d30565b60007f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca6001600160a01b0316634000aea07f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb795284866000604051602001613b96929190918252602082015260400190565b6040516020818303038152906040526040518463ffffffff1660e01b8152600401613bc393929190614ccf565b602060405180830381600087803b158015613bdd57600080fd5b505af1158015613bf1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613c1591906149a6565b506000838152600d6020818152604080842054815180840189905280830186905230606082015260808082018390528351808303909101815260a090910190925281519183019190912093879052919052613c71906001614e5b565b6000858152600d60205260409020556135908482604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b60006001600160e01b031982166380ac58cd60e01b1480613ce257506001600160e01b03198216635b5e139f60e01b145b80610f4457506301ffc9a760e01b6001600160e01b0319831614610f44565b61210b828260405180602001604052806000815250613e57565b61128e838383613e8a565b6000806000613d358585613f42565b91509150613d4281613fb2565b509392505050565b60006001600160a01b0384163b15613e4c57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613d8e903390899088908890600401614c92565b602060405180830381600087803b158015613da857600080fd5b505af1925050508015613dd8575060408051601f3d908101601f19168201909252613dd5918101906149ff565b60015b613e32573d808015613e06576040519150601f19603f3d011682016040523d82523d6000602084013e613e0b565b606091505b508051613e2a5760405162461bcd60e51b815260040161115890614d30565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050613590565b506001949350505050565b613e6183836141b3565b613e6e6000848484613d4a565b61128e5760405162461bcd60e51b815260040161115890614d30565b6001600160a01b038316613ee557613ee081600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b613f08565b816001600160a01b0316836001600160a01b031614613f0857613f088382614301565b6001600160a01b038216613f1f5761128e8161439e565b826001600160a01b0316826001600160a01b03161461128e5761128e8282614477565b600080825160411415613f795760208301516040840151606085015160001a613f6d878285856144bb565b94509450505050613fab565b825160401415613fa35760208301516040840151613f988683836145a8565b935093505050613fab565b506000905060025b9250929050565b6000816004811115613fd457634e487b7160e01b600052602160045260246000fd5b1415613fdd5750565b6001816004811115613fff57634e487b7160e01b600052602160045260246000fd5b141561404d5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401611158565b600281600481111561406f57634e487b7160e01b600052602160045260246000fd5b14156140bd5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401611158565b60038160048111156140df57634e487b7160e01b600052602160045260246000fd5b14156141385760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401611158565b600481600481111561415a57634e487b7160e01b600052602160045260246000fd5b141561339f5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401611158565b6001600160a01b0382166142095760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401611158565b6000818152600360205260409020546001600160a01b03161561426e5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401611158565b61427a60008383613d1b565b6001600160a01b03821660009081526004602052604081208054600192906142a3908490614e5b565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000600161430e846123be565b6143189190614ea6565b60008381526008602052604090205490915080821461436b576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b6009546000906143b090600190614ea6565b6000838152600a6020526040812054600980549394509092849081106143e657634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050806009838154811061441557634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600a9091526040808220849055858252812055600980548061445b57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000614482836123be565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156144f2575060009050600361459f565b8460ff16601b1415801561450a57508460ff16601c14155b1561451b575060009050600461459f565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa15801561456f573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166145985760006001925092505061459f565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b016145c9878288856144bb565b935093505050935093915050565b8280546145e390614ee9565b90600052602060002090601f016020900481019282614605576000855561464b565b82601f1061461e57805160ff191683800117855561464b565b8280016001018555821561464b579182015b8281111561464b578251825591602001919060010190614630565b5061465792915061465b565b5090565b5b80821115614657576000815560010161465c565b60006001600160401b0383111561468957614689614f95565b61469c601f8401601f1916602001614e08565b90508281528383830111156146b057600080fd5b828260208301376000602084830101529392505050565b60008083601f8401126146d8578182fd5b5081356001600160401b038111156146ee578182fd5b602083019150836020828501011115613fab57600080fd5b600060208284031215614717578081fd5b813561297d81614fbb565b60008060408385031215614734578081fd5b823561473f81614fbb565b9150602083013561474f81614fbb565b809150509250929050565b60008060006060848603121561476e578081fd5b833561477981614fbb565b9250602084013561478981614fbb565b929592945050506040919091013590565b600080600080608085870312156147af578081fd5b84356147ba81614fbb565b935060208501356147ca81614fbb565b92506040850135915060608501356001600160401b038111156147eb578182fd5b8501601f810187136147fb578182fd5b61480a87823560208401614670565b91505092959194509250565b60008060408385031215614828578182fd5b823561483381614fbb565b9150602083013561474f81614fd0565b60008060408385031215614855578182fd5b823561486081614fbb565b946020939093013593505050565b60008060408385031215614880578182fd5b82356001600160401b03811115614895578283fd5b8301601f810185136148a5578283fd5b803560206148ba6148b583614e38565b614e08565b80838252828201915082850189848660051b88010111156148d9578788fd5b8795505b848610156149045780356148f081614fbb565b8352600195909501949183019183016148dd565b5098969091013596505050505050565b60006020808385031215614926578182fd5b82356001600160401b0381111561493b578283fd5b8301601f8101851361494b578283fd5b80356149596148b582614e38565b80828252848201915084840188868560051b8701011115614978578687fd5b8694505b8385101561499a57803583526001949094019391850191850161497c565b50979650505050505050565b6000602082840312156149b7578081fd5b815161297d81614fd0565b600080604083850312156149d4578182fd5b50508035926020909101359150565b6000602082840312156149f4578081fd5b813561297d81614fde565b600060208284031215614a10578081fd5b815161297d81614fde565b60008060208385031215614a2d578182fd5b82356001600160401b03811115614a42578283fd5b614a4e858286016146c7565b90969095509350505050565b600060208284031215614a6b578081fd5b81356001600160401b03811115614a80578182fd5b8201601f81018413614a90578182fd5b61359084823560208401614670565b600060408284031215614ab0578081fd5b604051604081018181106001600160401b0382111715614ad257614ad2614f95565b604052823581526020928301359281019290925250919050565b600060208284031215614afd578081fd5b5035919050565b600060208284031215614b15578081fd5b5051919050565b600080600060408486031215614b30578081fd5b8335925060208401356001600160401b03811115614b4c578182fd5b614b58868287016146c7565b9497909650939450505050565b600080600060608486031215614b79578081fd5b505081359360208301359350604090920135919050565b60008151808452614ba8816020860160208601614ebd565b601f01601f19169290920160200192915050565b60008151614bce818560208601614ebd565b9290920192915050565b600080845482600182811c915080831680614bf457607f831692505b6020808410821415614c1457634e487b7160e01b87526022600452602487fd5b818015614c285760018114614c3957614c65565b60ff19861689528489019650614c65565b60008b815260209020885b86811015614c5d5781548b820152908501908301614c44565b505084890196505b505050505050614c89614c788286614bbc565b64173539b7b760d91b815260050190565b95945050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090614cc590830184614b90565b9695505050505050565b60018060a01b0384168152826020820152606060408201526000614c896060830184614b90565b60208101614d0383614fab565b91905290565b60208101600d8310614d0357614d03614f7f565b60208152600061297d6020830184614b90565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b604051601f8201601f191681016001600160401b0381118282101715614e3057614e30614f95565b604052919050565b60006001600160401b03821115614e5157614e51614f95565b5060051b60200190565b60008219821115614e6e57614e6e614f53565b500190565b600082614e8257614e82614f69565b500490565b6000816000190483118215151615614ea157614ea1614f53565b500290565b600082821015614eb857614eb8614f53565b500390565b60005b83811015614ed8578181015183820152602001614ec0565b838111156129ef5750506000910152565b600181811c90821680614efd57607f821691505b60208210811415614f1e57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415614f3857614f38614f53565b5060010190565b600082614f4e57614f4e614f69565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6003811061339f5761339f614f7f565b6001600160a01b038116811461339f57600080fd5b801515811461339f57600080fd5b6001600160e01b03198116811461339f57600080fdfea2646970667358221220ea8f806718b596960f4e226a3edee78345e814cab08c5af4e305f9a5d44b0a4d64736f6c63430008040033

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

0000000000000000000000000000000000000000000000000214e8348c4f00000000000000000000000000000000000000000000000000000a688906bd8b0000000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001600000000000000000000000000000000000000000000000000000000000002710000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952000000000000000000000000514910771af9ca656af840dff83e8264ecf986caaa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af44500000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000000000000000000000000000000000000000008334c616e646572730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002334c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000005000000000000000000000000b083d5deee59546d30b626c2203e2aed8c19484b000000000000000000000000ecf128006c70c240694ffa90ba5e4a08819b7f38000000000000000000000000679e4882bb9af8729348d103aa8a7e4d46205ca0000000000000000000000000160b9a4420d2760dcc5b371a4e2dd00f94b1923c000000000000000000000000e0a0262ac02312ba25d4b963e8375dac7bb173e20000000000000000000000000000000000000000000000000000000000000005000000000000000000000000000000000000000000000000000000000000001e00000000000000000000000000000000000000000000000000000000000000190000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000000f000000000000000000000000000000000000000000000000000000000000000a

-----Decoded View---------------
Arg [0] : _privateSalePrice (uint256): 150000000000000000
Arg [1] : _publicSalePrice (uint256): 750000000000000000
Arg [2] : name (string): 3Landers
Arg [3] : symbol (string): 3L
Arg [4] : _maxSupply (uint256): 10000
Arg [5] : chainlink (tuple): System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput]
Arg [6] : revenueShare (tuple): System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput]

-----Encoded View---------------
27 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000214e8348c4f0000
Arg [1] : 0000000000000000000000000000000000000000000000000a688906bd8b0000
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [4] : 0000000000000000000000000000000000000000000000000000000000002710
Arg [5] : 000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952
Arg [6] : 000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca
Arg [7] : aa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af445
Arg [8] : 00000000000000000000000000000000000000000000000000000000000001a0
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [10] : 334c616e64657273000000000000000000000000000000000000000000000000
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [12] : 334c000000000000000000000000000000000000000000000000000000000000
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [14] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [15] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [16] : 000000000000000000000000b083d5deee59546d30b626c2203e2aed8c19484b
Arg [17] : 000000000000000000000000ecf128006c70c240694ffa90ba5e4a08819b7f38
Arg [18] : 000000000000000000000000679e4882bb9af8729348d103aa8a7e4d46205ca0
Arg [19] : 000000000000000000000000160b9a4420d2760dcc5b371a4e2dd00f94b1923c
Arg [20] : 000000000000000000000000e0a0262ac02312ba25d4b963e8375dac7bb173e2
Arg [21] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [22] : 000000000000000000000000000000000000000000000000000000000000001e
Arg [23] : 0000000000000000000000000000000000000000000000000000000000000019
Arg [24] : 0000000000000000000000000000000000000000000000000000000000000014
Arg [25] : 000000000000000000000000000000000000000000000000000000000000000f
Arg [26] : 000000000000000000000000000000000000000000000000000000000000000a


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.