ETH Price: $3,448.24 (+4.06%)

Token

Ferrymen (Ferrymen)
 

Overview

Max Total Supply

138 Ferrymen

Holders

47

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Filtered by Token Holder
*我是大富婆.eth
Balance
5 Ferrymen
0x9c871e25b88d94bfe97b22223e7af01f4a85c15e
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
Ferrymen

Compiler Version
v0.8.16+commit.07a7930e

Optimization Enabled:
No with 1000 runs

Other Settings:
default evmVersion, MIT license
File 1 of 22 : Ferrymen.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import "./ERC721Enumerable.sol";
import "./DefaultOperatorFilterer.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/finance/PaymentSplitter.sol";
interface ISoulContract {
    function burnMultiple(uint256[] memory tokenIds) external;
}

contract Ferrymen is ERC721Enumerable, Ownable, DefaultOperatorFilterer, PaymentSplitter {
    using Strings for uint256;
    using ECDSA for bytes32;

    event Burned(uint256[] tokenIds, address account);

    string private _baseTokenURI;
    string private _tokenURISuffix;
    uint256 private teamLength;

    uint256 public maxSupply = 10000;

    uint256 public publicMintCost = 25000000000000000; // 0.025 ETH

    uint256 public maxPerTx = 25;
    
    uint256 public maxBurnPerTx = 25;

    address public signerAddress = 0x7d350fcf9b40fB38DFCb5dEF91AEE01573A23619;

    bool public isPublic;
    bool public isAllowList;

    address public soulContract = 0x4928c942D9334971afF7CCd4941A078bDCAC648D;

    mapping(bytes => bool) public usedSignatures;

    constructor(string memory newBaseURI, string memory newSuffix, address[] memory team, uint[] memory teamShares)
        ERC721("Ferrymen", "Ferrymen") PaymentSplitter(team, teamShares)
    {
        _baseTokenURI = newBaseURI;
        _tokenURISuffix = newSuffix;
        teamLength = team.length;
    }

    function mint(uint256 count) external payable {
        require(isPublic, "Public sale is not active");
        require(count <= maxPerTx, "Max per tx");
        require(msg.value >= publicMintCost * count, "Insufficient ETH sent");
        uint256 supply = _owners.length;
        require(supply + count < maxSupply, "Max supply reached");
        for (uint256 i = 0; i < count; i++) {
            _safeMint(msg.sender, supply++);
        }
    }

    function allowListMint(uint256[] calldata tokenIds, bytes memory signature)
        external
        payable
    {
        require(isAllowList, "Wait for allowlist mint");
        require(soulContract != address(0), "Soul contract not set");
        require(signerAddress != address(0), "Signer not set");
        require(!usedSignatures[signature], "Signature already used");
        bytes32 inputHash = keccak256(abi.encodePacked(msg.sender, tokenIds));
        bytes32 ethSignedMessageHash = inputHash.toEthSignedMessageHash();
        address recoveredAddress = ethSignedMessageHash.recover(signature);
        require(recoveredAddress == signerAddress, "Wrong signer");
        usedSignatures[signature] = true;
        uint256 supply = _owners.length;
        uint256 len = tokenIds.length;
        require(len <= maxBurnPerTx, "Max burn per tx");
        require(supply + len < maxSupply, "Max supply reached");
        ISoulContract(soulContract).burnMultiple(tokenIds);
        emit Burned(tokenIds, msg.sender);
        for (uint256 i = 0; i < len; i++) {
            _safeMint(msg.sender, supply++);
        }
    }

    function tokenURI(uint256 tokenId)
        external
        view
        virtual
        override
        returns (string memory)
    {
        require(
            _exists(tokenId),
            "ERC721Metadata: URI query for nonexistent token"
        );
        return
            string(
                abi.encodePacked(
                    _baseTokenURI,
                    tokenId.toString(),
                    _tokenURISuffix
                )
            );
    }

    function airdrop(uint256[] calldata quantity, address[] calldata recipient)
        external
        onlyOwner
    {
        require(
            quantity.length == recipient.length,
            "Quantity length is not equal to recipients"
        );

        uint256 totalQuantity;
        for (uint256 i = 0; i < quantity.length; ++i) {
            totalQuantity += quantity[i];
        }

        uint256 supply = _owners.length;
        require(supply + totalQuantity <= maxSupply, "Max supply reached");

        delete totalQuantity;

        for (uint256 i = 0; i < recipient.length; ++i) {
            for (uint256 j = 0; j < quantity[i]; ++j) {
                _safeMint(recipient[i], supply++);
            }
        }
    }

    function toggleAllowList() external onlyOwner {
        isAllowList = !isAllowList;
    }

    function setMaxSupply(uint256 newMax) external onlyOwner {
        require(newMax < maxSupply, "Must be less than current supply");
        maxSupply = newMax;
    }

    function toggleSales() external onlyOwner {
        isPublic = !isPublic;
        isAllowList = !isAllowList;
    }

    function togglePublicSale() external onlyOwner {
        isPublic = !isPublic;
    }

    function setSigner(address signer) external onlyOwner {
        signerAddress = signer;
    }

    function setPublicMintCost(uint256 cost) external onlyOwner {
        publicMintCost = cost;
    }

    function setMaxPerTx(uint256 newMax) external onlyOwner {
        maxPerTx = newMax;
    }
  
    function setMaxBurnPerTx(uint256 newMax) external onlyOwner {
        maxBurnPerTx = newMax;
    }

    function setBaseURI(string calldata newBaseURI, string calldata newSuffix)
        external
        onlyOwner
    {
        _baseTokenURI = newBaseURI;
        _tokenURISuffix = newSuffix;
    }

  function releaseAll() external onlyOwner {
        for(uint i = 0 ; i < teamLength ; i++) {
            release(payable(payee(i)));
        }
    }

    function setApprovalForAll(address operator, bool approved)
        public
        override(ERC721, IERC721)
        onlyAllowedOperatorApproval(operator)
    {
        super.setApprovalForAll(operator, approved);
    }

    function approve(address operator, uint256 tokenId)
        public
        override(ERC721, IERC721)
        onlyAllowedOperatorApproval(operator)
    {
        super.approve(operator, tokenId);
    }

    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public override(ERC721, IERC721) onlyAllowedOperator(from) {
        super.transferFrom(from, to, tokenId);
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public override(ERC721, IERC721) onlyAllowedOperator(from) {
        super.safeTransferFrom(from, to, tokenId);
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) public override(ERC721, IERC721) onlyAllowedOperator(from) {
        super.safeTransferFrom(from, to, tokenId, data);
    }
}

File 2 of 22 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

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

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

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

File 3 of 22 : PaymentSplitter.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (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. The distribution of shares is set at the
 * time of contract deployment and can't be updated thereafter.
 *
 * `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 Getter for the amount of payee's releasable Ether.
     */
    function releasable(address account) public view returns (uint256) {
        uint256 totalReceived = address(this).balance + totalReleased();
        return _pendingPayment(account, totalReceived, released(account));
    }

    /**
     * @dev Getter for the amount of payee's releasable `token` tokens. `token` should be the address of an
     * IERC20 contract.
     */
    function releasable(IERC20 token, address account) public view returns (uint256) {
        uint256 totalReceived = token.balanceOf(address(this)) + totalReleased(token);
        return _pendingPayment(account, totalReceived, released(token, account));
    }

    /**
     * @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 payment = releasable(account);

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

        // _totalReleased is the sum of all values in _released.
        // If "_totalReleased += payment" does not overflow, then "_released[account] += payment" cannot overflow.
        _totalReleased += payment;
        unchecked {
            _released[account] += 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 payment = releasable(token, account);

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

        // _erc20TotalReleased[token] is the sum of all values in _erc20Released[token].
        // If "_erc20TotalReleased[token] += payment" does not overflow, then "_erc20Released[token][account] += payment"
        // cannot overflow.
        _erc20TotalReleased[token] += payment;
        unchecked {
            _erc20Released[token][account] += 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 22 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 5 of 22 : draft-IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

File 6 of 22 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/draft-IERC20Permit.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));
        }
    }

    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

    /**
     * @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 7 of 22 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 8 of 22 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

File 9 of 22 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 11 of 22 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or 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 {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

File 13 of 22 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";

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

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

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

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        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] = _SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

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

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

pragma solidity ^0.8.0;

import "../Strings.sol";

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

    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");
        }
    }

    /**
     * @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) {
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            /// @solidity memory-safe-assembly
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

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

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

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

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

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

        return (signer, RecoverError.NoError);
    }

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

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

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

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

File 15 of 22 : 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 16 of 22 : 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 17 of 22 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

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

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

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

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

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

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1);

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

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

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

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

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 18 of 22 : DefaultOperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

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

/**
 * @title  DefaultOperatorFilterer
 * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription.
 */
abstract contract DefaultOperatorFilterer is OperatorFilterer {
    address constant DEFAULT_SUBSCRIPTION =
        address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6);

    constructor() OperatorFilterer(DEFAULT_SUBSCRIPTION, true) {}
}

File 19 of 22 : ERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.13;

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";
import "@openzeppelin/contracts/utils/Address.sol";

abstract contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;

    string private _name;
    string private _symbol;

    // Mapping from token ID to owner address
    address[] internal _owners;

    mapping(uint256 => address) private _tokenApprovals;
    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"
        );

        uint256 count;
        for (uint256 i; i < _owners.length; ++i) {
            if (owner == _owners[i]) ++count;
        }
        return count;
    }

    /**
     * @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 {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
    {
        require(operator != _msgSender(), "ERC721: approve to caller");

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

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

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //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 tokenId < _owners.length && _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);
        _owners.push(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);
        _owners[tokenId] = address(0);

        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);
        _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 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 20 of 22 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.13;

import "./ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";

abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    /**
     * @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-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _owners.length;
    }

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

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

        uint256 count;
        for (uint256 i; i < _owners.length; i++) {
            if (owner == _owners[i]) {
                if (count == index) return i;
                else count++;
            }
        }

        revert("ERC721Enumerable: owner index out of bounds");
    }
}

File 21 of 22 : IOperatorFilterRegistry.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

interface IOperatorFilterRegistry {
    function isOperatorAllowed(address registrant, address operator)
        external
        view
        returns (bool);

    function register(address registrant) external;

    function registerAndSubscribe(address registrant, address subscription)
        external;

    function registerAndCopyEntries(
        address registrant,
        address registrantToCopy
    ) external;

    function unregister(address addr) external;

    function updateOperator(
        address registrant,
        address operator,
        bool filtered
    ) external;

    function updateOperators(
        address registrant,
        address[] calldata operators,
        bool filtered
    ) external;

    function updateCodeHash(
        address registrant,
        bytes32 codehash,
        bool filtered
    ) external;

    function updateCodeHashes(
        address registrant,
        bytes32[] calldata codeHashes,
        bool filtered
    ) external;

    function subscribe(address registrant, address registrantToSubscribe)
        external;

    function unsubscribe(address registrant, bool copyExistingEntries) external;

    function subscriptionOf(address addr) external returns (address registrant);

    function subscribers(address registrant)
        external
        returns (address[] memory);

    function subscriberAt(address registrant, uint256 index)
        external
        returns (address);

    function copyEntriesOf(address registrant, address registrantToCopy)
        external;

    function isOperatorFiltered(address registrant, address operator)
        external
        returns (bool);

    function isCodeHashOfFiltered(address registrant, address operatorWithCode)
        external
        returns (bool);

    function isCodeHashFiltered(address registrant, bytes32 codeHash)
        external
        returns (bool);

    function filteredOperators(address addr)
        external
        returns (address[] memory);

    function filteredCodeHashes(address addr)
        external
        returns (bytes32[] memory);

    function filteredOperatorAt(address registrant, uint256 index)
        external
        returns (address);

    function filteredCodeHashAt(address registrant, uint256 index)
        external
        returns (bytes32);

    function isRegistered(address addr) external returns (bool);

    function codeHashOf(address addr) external returns (bytes32);
}

File 22 of 22 : OperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

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

/**
 * @title  OperatorFilterer
 * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another
 *         registrant's entries in the OperatorFilterRegistry.
 * @dev    This smart contract is meant to be inherited by token contracts so they can use the following:
 *         - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods.
 *         - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods.
 */
abstract contract OperatorFilterer {
    error OperatorNotAllowed(address operator);

    IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY =
        IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E);

    constructor(address subscriptionOrRegistrantToCopy, bool subscribe) {
        // If an inheriting token contract is deployed to a network without the registry deployed, the modifier
        // will not revert, but the contract will need to be registered with the registry once it is deployed in
        // order for the modifier to filter addresses.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            if (subscribe) {
                OPERATOR_FILTER_REGISTRY.registerAndSubscribe(
                    address(this),
                    subscriptionOrRegistrantToCopy
                );
            } else {
                if (subscriptionOrRegistrantToCopy != address(0)) {
                    OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(
                        address(this),
                        subscriptionOrRegistrantToCopy
                    );
                } else {
                    OPERATOR_FILTER_REGISTRY.register(address(this));
                }
            }
        }
    }

    modifier onlyAllowedOperator(address from) virtual {
        // Allow spending tokens from addresses with balance
        // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred
        // from an EOA.
        if (from != msg.sender) {
            _checkFilterOperator(msg.sender);
        }
        _;
    }

    modifier onlyAllowedOperatorApproval(address operator) virtual {
        _checkFilterOperator(operator);
        _;
    }

    function _checkFilterOperator(address operator) internal view virtual {
        // Check registry code length to facilitate testing in environments without a deployed registry.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            if (
                !OPERATOR_FILTER_REGISTRY.isOperatorAllowed(
                    address(this),
                    operator
                )
            ) {
                revert OperatorNotAllowed(operator);
            }
        }
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"newBaseURI","type":"string"},{"internalType":"string","name":"newSuffix","type":"string"},{"internalType":"address[]","name":"team","type":"address[]"},{"internalType":"uint256[]","name":"teamShares","type":"uint256[]"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Burned","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"contract IERC20","name":"token","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ERC20PaymentReleased","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":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"PayeeAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReleased","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":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"quantity","type":"uint256[]"},{"internalType":"address[]","name":"recipient","type":"address[]"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"allowListMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isAllowList","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPublic","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxBurnPerTx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerTx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"count","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"payee","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMintCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"releasable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"releasable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"releaseAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newBaseURI","type":"string"},{"internalType":"string","name":"newSuffix","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMax","type":"uint256"}],"name":"setMaxBurnPerTx","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMax","type":"uint256"}],"name":"setMaxPerTx","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMax","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"cost","type":"uint256"}],"name":"setPublicMintCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"signer","type":"address"}],"name":"setSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"shares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"signerAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"soulContract","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"toggleAllowList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"togglePublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleSales","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"tokenId","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":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"","type":"bytes"}],"name":"usedSignatures","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040526127106010556658d15e1762800060115560196012819055601355601480546001600160a01b0319908116737d350fcf9b40fb38dfcb5def91aee01573a236191790915560158054909116734928c942d9334971aff7ccd4941a078bdcac648d1790553480156200007457600080fd5b5060405162004d7e38038062004d7e833981016040819052620000979162000792565b8181733cc6cdda760b79bafa08df41ecfa224f810dceb66001604051806040016040528060088152602001672332b9393cb6b2b760c11b815250604051806040016040528060088152602001672332b9393cb6b2b760c11b81525081600090816200010391906200096c565b5060016200011282826200096c565b5050506200012f620001296200035860201b60201c565b6200035c565b6daaeb6d7670e522a718067333cd4e3b1562000268578015620001bb57604051633e9f1edf60e11b81526daaeb6d7670e522a718067333cd4e90637d3e3dbe9062000181903090869060040162000a4d565b600060405180830381600087803b1580156200019c57600080fd5b505af1158015620001b1573d6000803e3d6000fd5b5050505062000268565b6001600160a01b03821615620002005760405163a0af290360e01b81526daaeb6d7670e522a718067333cd4e9063a0af29039062000181903090869060040162000a4d565b604051632210724360e11b81526daaeb6d7670e522a718067333cd4e90634420e486906200023390309060040162000a73565b600060405180830381600087803b1580156200024e57600080fd5b505af115801562000263573d6000803e3d6000fd5b505050505b50508051825114620002975760405162461bcd60e51b81526004016200028e9062000ad5565b60405180910390fd5b6000825111620002bb5760405162461bcd60e51b81526004016200028e9062000b1e565b60005b8251811015620003275762000312838281518110620002e157620002e162000b30565b6020026020010151838381518110620002fe57620002fe62000b30565b6020026020010151620003ae60201b60201c565b806200031e8162000b5c565b915050620002be565b50600d91506200033a905085826200096c565b50600e6200034984826200096c565b505051600f555062000cb39050565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216620003d75760405162461bcd60e51b81526004016200028e9062000bc3565b60008111620003fa5760405162461bcd60e51b81526004016200028e9062000c0a565b6001600160a01b03821660009081526008602052604090205415620004335760405162461bcd60e51b81526004016200028e9062000c65565b600a8054600181019091557fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a80180546001600160a01b0319166001600160a01b03841690811790915560009081526008602052604090208190556006546200049d90829062000c77565b6006556040517f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac90620004d4908490849062000c94565b60405180910390a15050565b634e487b7160e01b600052604160045260246000fd5b601f19601f83011681018181106001600160401b03821117156200051e576200051e620004e0565b6040525050565b60006200053160405190565b90506200053f8282620004f6565b919050565b60006001600160401b03821115620005605762000560620004e0565b601f19601f83011660200192915050565b60005b838110156200058e57818101518382015260200162000574565b50506000910152565b6000620005ae620005a88462000544565b62000525565b905082815260208101848484011115620005cb57620005cb600080fd5b620005d884828562000571565b509392505050565b600082601f830112620005f657620005f6600080fd5b81516200060884826020860162000597565b949350505050565b60006001600160401b038211156200062c576200062c620004e0565b5060209081020190565b60006001600160a01b0382165b92915050565b620006548162000636565b81146200066057600080fd5b50565b8051620006438162000649565b600062000681620005a88462000610565b83815290506020808201908402830185811115620006a257620006a2600080fd5b835b81811015620006ca5780620006ba888262000663565b84525060209283019201620006a4565b5050509392505050565b600082601f830112620006ea57620006ea600080fd5b81516200060884826020860162000670565b8062000654565b80516200064381620006fc565b600062000721620005a88462000610565b83815290506020808201908402830185811115620007425762000742600080fd5b835b81811015620006ca57806200075a888262000703565b8452506020928301920162000744565b600082601f830112620007805762000780600080fd5b81516200060884826020860162000710565b60008060008060808587031215620007ad57620007ad600080fd5b84516001600160401b03811115620007c857620007c8600080fd5b620007d687828801620005e0565b94505060208501516001600160401b03811115620007f757620007f7600080fd5b6200080587828801620005e0565b93505060408501516001600160401b03811115620008265762000826600080fd5b6200083487828801620006d4565b92505060608501516001600160401b03811115620008555762000855600080fd5b62000863878288016200076a565b91505092959194509250565b634e487b7160e01b600052602260045260246000fd5b6002810460018216806200089a57607f821691505b602082108103620008af57620008af6200086f565b50919050565b600062000643620008c38381565b90565b620008d183620008b5565b81546008840282811b60001990911b908116901990911617825550505050565b600062000900818484620008c6565b505050565b8181101562000924576200091b600082620008f1565b60010162000905565b5050565b601f82111562000900576000818152602090206020601f85010481016020851015620009515750805b620009656020601f86010483018262000905565b5050505050565b81516001600160401b03811115620009885762000988620004e0565b62000994825462000885565b620009a182828562000928565b6020601f831160018114620009d85760008415620009bf5750858201515b600019600886021c198116600286021786555062000a34565b600085815260208120601f198616915b8281101562000a0a5788850151825560209485019460019092019101620009e8565b8683101562000a275784890151600019601f89166008021c191682555b6001600288020188555050505b505050505050565b62000a478162000636565b82525050565b6040810162000a5d828562000a3c565b62000a6c602083018462000a3c565b9392505050565b6020810162000643828462000a3c565b603281526000602082017f5061796d656e7453706c69747465723a2070617965657320616e6420736861728152710cae640d8cadccee8d040dad2e6dac2e8c6d60731b602082015291505b5060400190565b60208082528101620006438162000a83565b601a81526000602082017f5061796d656e7453706c69747465723a206e6f20706179656573000000000000815291505b5060200190565b60208082528101620006438162000ae7565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600019820362000b725762000b7262000b46565b5060010190565b602c81526000602082017f5061796d656e7453706c69747465723a206163636f756e74206973207468652081526b7a65726f206164647265737360a01b6020820152915062000ace565b60208082528101620006438162000b79565b601d81526000602082017f5061796d656e7453706c69747465723a207368617265732061726520300000008152915062000b17565b60208082528101620006438162000bd5565b602b81526000602082017f5061796d656e7453706c69747465723a206163636f756e7420616c726561647981526a206861732073686172657360a81b6020820152915062000ace565b60208082528101620006438162000c1c565b8082018082111562000643576200064362000b46565b8062000a47565b6040810162000ca4828562000a3c565b62000a6c602083018462000c8d565b6140bb8062000cc36000396000f3fe60806040526004361061034e5760003560e01c80638c770067116101bb578063ce7c2ac2116100f7578063e33b7de311610095578063e985e9c51161006f578063e985e9c5146109da578063f2fde38b14610a23578063f44cc73014610a43578063f968adbe14610a6357600080fd5b8063e33b7de314610977578063e559a13f1461098c578063e949580e1461099f57600080fd5b8063dbd30ae0116100d1578063dbd30ae01461090b578063dc4efe1014610920578063dc9a153514610941578063e222c7f91461096257600080fd5b8063ce7c2ac214610889578063d5abeb01146108bf578063d79779b2146108d557600080fd5b8063a22cb46511610164578063c45ac0501161013e578063c45ac05014610813578063c6f6f21614610833578063c87b56dd14610853578063cbc8320c1461087357600080fd5b8063a22cb465146107b3578063a3f8eace146107d3578063b88d4fde146107f357600080fd5b80639852595c116101955780639852595c14610755578063988934af1461078b578063a0712d68146107a057600080fd5b80638c7700671461070c5780638da5cb5b1461072257806395d89b411461074057600080fd5b80634f6ccce71161028a5780636c19e78311610233578063715018a61161020d578063715018a614610697578063796ff483146106ac57806380eae578146106cc5780638b83209b146106ec57600080fd5b80636c19e783146106375780636f8b44b01461065757806370a082311461067757600080fd5b80636352211e116102645780636352211e146105d75780636673c4c2146105f75780636790a9de1461061757600080fd5b80634f6ccce7146105825780635b7633d0146105a25780635be7fde8146105c257600080fd5b806323b872dd116102f7578063406072a9116102d1578063406072a9146104cd57806341f434341461051357806342842e0e1461054257806348b750441461056257600080fd5b806323b872dd146104785780632f745c59146104985780633a98ef39146104b857600080fd5b8063095ea7b311610328578063095ea7b31461041857806318160ddd1461043a578063191655871461045857600080fd5b806301ffc9a71461039357806306fdde03146103c9578063081812fc146103eb57600080fd5b3661038e577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033346040516103849291906126ba565b60405180910390a1005b600080fd5b34801561039f57600080fd5b506103b36103ae3660046126f7565b610a79565b6040516103c09190612720565b60405180910390f35b3480156103d557600080fd5b506103de610abd565b6040516103c09190612784565b3480156103f757600080fd5b5061040b6104063660046127a6565b610b4f565b6040516103c091906127c7565b34801561042457600080fd5b506104386104333660046127e9565b610b9b565b005b34801561044657600080fd5b506002545b6040516103c09190612826565b34801561046457600080fd5b50610438610473366004612834565b610bb4565b34801561048457600080fd5b50610438610493366004612855565b610c92565b3480156104a457600080fd5b5061044b6104b33660046127e9565b610cbd565b3480156104c457600080fd5b5060065461044b565b3480156104d957600080fd5b5061044b6104e83660046128c4565b6001600160a01b039182166000908152600c6020908152604080832093909416825291909152205490565b34801561051f57600080fd5b506105356daaeb6d7670e522a718067333cd4e81565b6040516103c09190612939565b34801561054e57600080fd5b5061043861055d366004612855565b610d6f565b34801561056e57600080fd5b5061043861057d3660046128c4565b610d94565b34801561058e57600080fd5b5061044b61059d3660046127a6565b610ea2565b3480156105ae57600080fd5b5060145461040b906001600160a01b031681565b3480156105ce57600080fd5b50610438610eca565b3480156105e357600080fd5b5061040b6105f23660046127a6565b610f00565b34801561060357600080fd5b50610438610612366004612992565b610f4a565b34801561062357600080fd5b50610438610632366004612a56565b611079565b34801561064357600080fd5b50610438610652366004612834565b6110a3565b34801561066357600080fd5b506104386106723660046127a6565b6110cd565b34801561068357600080fd5b5061044b610692366004612834565b6110fb565b3480156106a357600080fd5b50610438611186565b3480156106b857600080fd5b5060155461040b906001600160a01b031681565b3480156106d857600080fd5b506104386106e73660046127a6565b61119a565b3480156106f857600080fd5b5061040b6107073660046127a6565b6111a7565b34801561071857600080fd5b5061044b60115481565b34801561072e57600080fd5b506005546001600160a01b031661040b565b34801561074c57600080fd5b506103de6111d7565b34801561076157600080fd5b5061044b610770366004612834565b6001600160a01b031660009081526009602052604090205490565b34801561079757600080fd5b506104386111e6565b6104386107ae3660046127a6565b61120f565b3480156107bf57600080fd5b506104386107ce366004612ad6565b6112e6565b3480156107df57600080fd5b5061044b6107ee366004612834565b6112fa565b3480156107ff57600080fd5b5061043861080e366004612bfc565b611342565b34801561081f57600080fd5b5061044b61082e3660046128c4565b611368565b34801561083f57600080fd5b5061043861084e3660046127a6565b611448565b34801561085f57600080fd5b506103de61086e3660046127a6565b611455565b34801561087f57600080fd5b5061044b60135481565b34801561089557600080fd5b5061044b6108a4366004612834565b6001600160a01b031660009081526008602052604090205490565b3480156108cb57600080fd5b5061044b60105481565b3480156108e157600080fd5b5061044b6108f0366004612c7b565b6001600160a01b03166000908152600b602052604090205490565b34801561091757600080fd5b506104386114b1565b34801561092c57600080fd5b506014546103b390600160a81b900460ff1681565b34801561094d57600080fd5b506014546103b390600160a01b900460ff1681565b34801561096e57600080fd5b5061043861151a565b34801561098357600080fd5b5060075461044b565b61043861099a366004612c9c565b611543565b3480156109ab57600080fd5b506103b36109ba366004612d08565b805160208183018101805160168252928201919093012091525460ff1681565b3480156109e657600080fd5b506103b36109f5366004612d43565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205460ff1690565b348015610a2f57600080fd5b50610438610a3e366004612834565b6117e5565b348015610a4f57600080fd5b50610438610a5e3660046127a6565b61181c565b348015610a6f57600080fd5b5061044b60125481565b60006001600160e01b031982167f780e9d63000000000000000000000000000000000000000000000000000000001480610ab75750610ab782611829565b92915050565b606060008054610acc90612d7b565b80601f0160208091040260200160405190810160405280929190818152602001828054610af890612d7b565b8015610b455780601f10610b1a57610100808354040283529160200191610b45565b820191906000526020600020905b815481529060010190602001808311610b2857829003601f168201915b5050505050905090565b6000610b5a826118c4565b610b7f5760405162461bcd60e51b8152600401610b7690612df3565b60405180910390fd5b506000908152600360205260409020546001600160a01b031690565b81610ba58161190e565b610baf83836119e8565b505050565b6001600160a01b038116600090815260086020526040902054610be95760405162461bcd60e51b8152600401610b7690612e5d565b6000610bf4826112fa565b905080600003610c165760405162461bcd60e51b8152600401610b7690612ec7565b8060076000828254610c289190612eed565b90915550506001600160a01b0382166000908152600960205260409020805482019055610c558282611a68565b7fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b0568282604051610c86929190612f00565b60405180910390a15050565b826001600160a01b0381163314610cac57610cac3361190e565b610cb7848484611b04565b50505050565b6000610cc8836110fb565b8210610ce65760405162461bcd60e51b8152600401610b7690612f68565b6000805b600254811015610d565760028181548110610d0757610d07612f78565b6000918252602090912001546001600160a01b0390811690861603610d4457838203610d36579150610ab79050565b81610d4081612f8e565b9250505b80610d4e81612f8e565b915050610cea565b5060405162461bcd60e51b8152600401610b7690612f68565b826001600160a01b0381163314610d8957610d893361190e565b610cb7848484611b35565b6001600160a01b038116600090815260086020526040902054610dc95760405162461bcd60e51b8152600401610b7690612e5d565b6000610dd58383611368565b905080600003610df75760405162461bcd60e51b8152600401610b7690612ec7565b6001600160a01b0383166000908152600b602052604081208054839290610e1f908490612eed565b90915550506001600160a01b038084166000908152600c60209081526040808320938616835292905220805482019055610e5a838383611b50565b826001600160a01b03167f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a8383604051610e959291906126ba565b60405180910390a2505050565b6002546000908210610ec65760405162461bcd60e51b8152600401610b7690613002565b5090565b610ed2611bbb565b60005b600f54811015610efd57610eeb610473826111a7565b80610ef581612f8e565b915050610ed5565b50565b60008060028381548110610f1657610f16612f78565b6000918252602090912001546001600160a01b0316905080610ab75760405162461bcd60e51b8152600401610b769061306c565b610f52611bbb565b828114610f715760405162461bcd60e51b8152600401610b76906130d6565b6000805b84811015610fb357858582818110610f8f57610f8f612f78565b9050602002013582610fa19190612eed565b9150610fac81612f8e565b9050610f75565b50600254601054610fc48383612eed565b1115610fe25760405162461bcd60e51b8152600401610b769061311d565b6000915060005b838110156110705760005b87878381811061100657611006612f78565b9050602002013581101561105f5761104f86868481811061102957611029612f78565b905060200201602081019061103e9190612834565b8461104881612f8e565b9550611be5565b61105881612f8e565b9050610ff4565b5061106981612f8e565b9050610fe9565b50505050505050565b611081611bbb565b600d61108e8486836131c3565b50600e61109c8284836131c3565b5050505050565b6110ab611bbb565b601480546001600160a01b0319166001600160a01b0392909216919091179055565b6110d5611bbb565b60105481106110f65760405162461bcd60e51b8152600401610b76906132b8565b601055565b60006001600160a01b0382166111235760405162461bcd60e51b8152600401610b7690613322565b6000805b60025481101561117f576002818154811061114457611144612f78565b6000918252602090912001546001600160a01b039081169085160361116f5761116c82612f8e565b91505b61117881612f8e565b9050611127565b5092915050565b61118e611bbb565b6111986000611c03565b565b6111a2611bbb565b601155565b6000600a82815481106111bc576111bc612f78565b6000918252602090912001546001600160a01b031692915050565b606060018054610acc90612d7b565b6111ee611bbb565b6014805460ff60a81b198116600160a81b9182900460ff1615909102179055565b601454600160a01b900460ff166112385760405162461bcd60e51b8152600401610b7690613366565b60125481111561125a5760405162461bcd60e51b8152600401610b76906133aa565b8060115461126891906133ba565b3410156112875760405162461bcd60e51b8152600401610b769061340d565b6002546010546112978383612eed565b106112b45760405162461bcd60e51b8152600401610b769061311d565b60005b82811015610baf576112d433836112cd81612f8e565b9450611be5565b806112de81612f8e565b9150506112b7565b816112f08161190e565b610baf8383611c55565b60008061130660075490565b6113109047612eed565b905061133b8382611336866001600160a01b031660009081526009602052604090205490565b611cec565b9392505050565b836001600160a01b038116331461135c5761135c3361190e565b61109c85858585611d2a565b6001600160a01b0382166000818152600b60205260408082205490517f70a08231000000000000000000000000000000000000000000000000000000008152919283926370a08231906113bf9030906004016127c7565b602060405180830381865afa1580156113dc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114009190613428565b61140a9190612eed565b6001600160a01b038086166000908152600c60209081526040808320938816835292905220549091506114409084908390611cec565b949350505050565b611450611bbb565b601255565b6060611460826118c4565b61147c5760405162461bcd60e51b8152600401610b76906134a3565b600d61148783611d5c565b600e60405160200161149b93929190613547565b6040516020818303038152906040529050919050565b6114b9611bbb565b60148054600160a81b60ff600160a01b8084048216150260ff60a01b19841681178390049091161590910260ff60a81b199091167fffffffffffffffffffff0000ffffffffffffffffffffffffffffffffffffffff90921691909117179055565b611522611bbb565b6014805460ff60a01b198116600160a01b9182900460ff1615909102179055565b601454600160a81b900460ff1661156c5760405162461bcd60e51b8152600401610b76906135a8565b6015546001600160a01b03166115945760405162461bcd60e51b8152600401610b76906135ec565b6014546001600160a01b03166115bc5760405162461bcd60e51b8152600401610b7690613630565b6016816040516115cc9190613640565b9081526040519081900360200190205460ff16156115fc5760405162461bcd60e51b8152600401610b7690613680565b60003384846040516020016116139392919061370e565b604051602081830303815290604052805190602001209050600061163682611dfd565b905060006116448285611e2d565b6014549091506001600160a01b038083169116146116745760405162461bcd60e51b8152600401610b769061375f565b60016016856040516116869190613640565b908152604051908190036020019020805491151560ff1990921691909117905560025460135486908111156116cd5760405162461bcd60e51b8152600401610b76906137a3565b6010546116da8284612eed565b106116f75760405162461bcd60e51b8152600401610b769061311d565b6015546040517f6ab49a5b0000000000000000000000000000000000000000000000000000000081526001600160a01b0390911690636ab49a5b90611742908b908b906004016137c1565b600060405180830381600087803b15801561175c57600080fd5b505af1158015611770573d6000803e3d6000fd5b505050507f383a7e610d9db21be0560b28c23852759c0d7821fa683d15d72af37a100d57528888336040516117a7939291906137d3565b60405180910390a160005b818110156117da576117c8338461104881612f8e565b806117d281612f8e565b9150506117b2565b505050505050505050565b6117ed611bbb565b6001600160a01b0381166118135760405162461bcd60e51b8152600401610b769061384e565b610efd81611c03565b611824611bbb565b601355565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061188c57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610ab757507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610ab7565b60025460009082108015610ab7575060006001600160a01b0316600283815481106118f1576118f1612f78565b6000918252602090912001546001600160a01b0316141592915050565b6daaeb6d7670e522a718067333cd4e3b15610efd576040517fc61711340000000000000000000000000000000000000000000000000000000081526daaeb6d7670e522a718067333cd4e9063c61711349061196f903090859060040161385e565b602060405180830381865afa15801561198c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119b09190613884565b610efd57806040517fede71dcc000000000000000000000000000000000000000000000000000000008152600401610b7691906127c7565b60006119f382610f00565b9050806001600160a01b0316836001600160a01b031603611a265760405162461bcd60e51b8152600401610b76906138ff565b336001600160a01b0382161480611a425750611a4281336109f5565b611a5e5760405162461bcd60e51b8152600401610b7690613969565b610baf8383611e49565b80471015611a885760405162461bcd60e51b8152600401610b76906139ad565b6000826001600160a01b031682604051611aa1906139bd565b60006040518083038185875af1925050503d8060008114611ade576040519150601f19603f3d011682016040523d82523d6000602084013e611ae3565b606091505b5050905080610baf5760405162461bcd60e51b8152600401610b7690613a22565b611b0e3382611eb7565b611b2a5760405162461bcd60e51b8152600401610b7690613a8c565b610baf838383611f58565b610baf83838360405180602001604052806000815250611342565b610baf8363a9059cbb60e01b8484604051602401611b6f9291906126ba565b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b031990931692909217909152612030565b6005546001600160a01b031633146111985760405162461bcd60e51b8152600401610b7690613ace565b611bff8282604051806020016040528060008152506120bf565b5050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b336001600160a01b03831603611c7d5760405162461bcd60e51b8152600401610b7690613b12565b3360008181526004602090815260408083206001600160a01b038716808552925291829020805460ff191685151517905590519091907f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3190611ce0908590612720565b60405180910390a35050565b6006546001600160a01b03841660009081526008602052604081205490918391611d1690866133ba565b611d209190613b38565b6114409190613b4c565b611d343383611eb7565b611d505760405162461bcd60e51b8152600401610b7690613a8c565b610cb7848484846120f2565b60606000611d6983612125565b600101905060008167ffffffffffffffff811115611d8957611d89612b09565b6040519080825280601f01601f191660200182016040528015611db3576020820181803683370190505b5090508181016020015b600019017f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8504945084611dbd575b509392505050565b600081604051602001611e109190613b5f565b604051602081830303815290604052805190602001209050919050565b6000806000611e3c8585612207565b91509150611df58161224c565b600081815260036020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611e7e82610f00565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611ec2826118c4565b611ede5760405162461bcd60e51b8152600401610b7690613be3565b6000611ee983610f00565b9050806001600160a01b0316846001600160a01b03161480611f245750836001600160a01b0316611f1984610b4f565b6001600160a01b0316145b8061144057506001600160a01b0380821660009081526004602090815260408083209388168352929052205460ff16611440565b826001600160a01b0316611f6b82610f00565b6001600160a01b031614611f915760405162461bcd60e51b8152600401610b7690613c4d565b6001600160a01b038216611fb75760405162461bcd60e51b8152600401610b7690613cb7565b611fc2600082611e49565b8160028281548110611fd657611fd6612f78565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b6000612085826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166122fb9092919063ffffffff16565b805190915015610baf57808060200190518101906120a39190613884565b610baf5760405162461bcd60e51b8152600401610b7690613d21565b6120c9838361230a565b6120d660008484846123d2565b610baf5760405162461bcd60e51b8152600401610b7690613d8b565b6120fd848484611f58565b612109848484846123d2565b610cb75760405162461bcd60e51b8152600401610b7690613d8b565b6000807a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000831061216e577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000830492506040015b6d04ee2d6d415b85acef8100000000831061219a576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc1000083106121b857662386f26fc10000830492506010015b6305f5e10083106121d0576305f5e100830492506008015b61271083106121e457612710830492506004015b606483106121f6576064830492506002015b600a8310610ab75760010192915050565b600080825160410361223d5760208301516040840151606085015160001a612231878285856124d3565b94509450505050612245565b506000905060025b9250929050565b600081600481111561226057612260613d9b565b036122685750565b600181600481111561227c5761227c613d9b565b036122995760405162461bcd60e51b8152600401610b7690613de5565b60028160048111156122ad576122ad613d9b565b036122ca5760405162461bcd60e51b8152600401610b7690613e29565b60038160048111156122de576122de613d9b565b03610efd5760405162461bcd60e51b8152600401610b7690613e93565b6060611440848460008561258a565b6001600160a01b0382166123305760405162461bcd60e51b8152600401610b7690613ed5565b612339816118c4565b156123565760405162461bcd60e51b8152600401610b7690613f19565b6002805460018101825560009182527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180546001600160a01b0319166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b156124c857604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612416903390899088908890600401613f29565b6020604051808303816000875af1925050508015612451575060408051601f3d908101601f1916820190925261244e91810190613f78565b60015b6124ae573d80801561247f576040519150601f19603f3d011682016040523d82523d6000602084013e612484565b606091505b5080516000036124a65760405162461bcd60e51b8152600401610b7690613d8b565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611440565b506001949350505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561250a5750600090506003612581565b60006001878787876040516000815260200160405260405161252f9493929190613fa2565b6020604051602081039080840390855afa158015612551573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661257a57600060019250925050612581565b9150600090505b94509492505050565b6060824710156125ac5760405162461bcd60e51b8152600401610b7690614031565b600080866001600160a01b031685876040516125c89190613640565b60006040518083038185875af1925050503d8060008114612605576040519150601f19603f3d011682016040523d82523d6000602084013e61260a565b606091505b509150915061261b87838387612626565b979650505050505050565b6060831561266557825160000361265e576001600160a01b0385163b61265e5760405162461bcd60e51b8152600401610b7690614075565b5081611440565b611440838381511561267a5781518083602001fd5b8060405162461bcd60e51b8152600401610b769190612784565b60006001600160a01b038216610ab7565b6126ae81612694565b82525050565b806126ae565b604081016126c882856126a5565b61133b60208301846126b4565b6001600160e01b031981165b8114610efd57600080fd5b8035610ab7816126d5565b60006020828403121561270c5761270c600080fd5b600061144084846126ec565b8015156126ae565b60208101610ab78284612718565b60005b83811015612749578181015183820152602001612731565b50506000910152565b600061275c825190565b80845260208401935061277381856020860161272e565b601f01601f19169290920192915050565b6020808252810161133b8184612752565b806126e1565b8035610ab781612795565b6000602082840312156127bb576127bb600080fd5b6000611440848461279b565b60208101610ab782846126a5565b6126e181612694565b8035610ab7816127d5565b600080604083850312156127ff576127ff600080fd5b600061280b85856127de565b925050602061281c8582860161279b565b9150509250929050565b60208101610ab782846126b4565b60006020828403121561284957612849600080fd5b600061144084846127de565b60008060006060848603121561286d5761286d600080fd5b600061287986866127de565b935050602061288a868287016127de565b925050604061289b8682870161279b565b9150509250925092565b6000610ab782612694565b6126e1816128a5565b8035610ab7816128b0565b600080604083850312156128da576128da600080fd5b60006128e685856128b9565b925050602061281c858286016127de565b6000610ab76001600160a01b03831661290e565b90565b6001600160a01b031690565b6000610ab7826128f7565b6000610ab78261291a565b6126ae81612925565b60208101610ab78284612930565b60008083601f84011261295c5761295c600080fd5b50813567ffffffffffffffff81111561297757612977600080fd5b60208301915083602082028301111561224557612245600080fd5b600080600080604085870312156129ab576129ab600080fd5b843567ffffffffffffffff8111156129c5576129c5600080fd5b6129d187828801612947565b9450945050602085013567ffffffffffffffff8111156129f3576129f3600080fd5b6129ff87828801612947565b95989497509550505050565b60008083601f840112612a2057612a20600080fd5b50813567ffffffffffffffff811115612a3b57612a3b600080fd5b60208301915083600182028301111561224557612245600080fd5b60008060008060408587031215612a6f57612a6f600080fd5b843567ffffffffffffffff811115612a8957612a89600080fd5b612a9587828801612a0b565b9450945050602085013567ffffffffffffffff811115612ab757612ab7600080fd5b6129ff87828801612a0b565b8015156126e1565b8035610ab781612ac3565b60008060408385031215612aec57612aec600080fd5b6000612af885856127de565b925050602061281c85828601612acb565b634e487b7160e01b600052604160045260246000fd5b601f19601f830116810181811067ffffffffffffffff82111715612b4557612b45612b09565b6040525050565b6000612b5760405190565b9050612b638282612b1f565b919050565b600067ffffffffffffffff821115612b8257612b82612b09565b601f19601f83011660200192915050565b82818337506000910152565b6000612bb2612bad84612b68565b612b4c565b905082815260208101848484011115612bcd57612bcd600080fd5b611df5848285612b93565b600082601f830112612bec57612bec600080fd5b8135611440848260208601612b9f565b60008060008060808587031215612c1557612c15600080fd5b6000612c2187876127de565b9450506020612c32878288016127de565b9350506040612c438782880161279b565b925050606085013567ffffffffffffffff811115612c6357612c63600080fd5b612c6f87828801612bd8565b91505092959194509250565b600060208284031215612c9057612c90600080fd5b600061144084846128b9565b600080600060408486031215612cb457612cb4600080fd5b833567ffffffffffffffff811115612cce57612cce600080fd5b612cda86828701612947565b9350935050602084013567ffffffffffffffff811115612cfc57612cfc600080fd5b61289b86828701612bd8565b600060208284031215612d1d57612d1d600080fd5b813567ffffffffffffffff811115612d3757612d37600080fd5b61144084828501612bd8565b60008060408385031215612d5957612d59600080fd5b60006128e685856127de565b634e487b7160e01b600052602260045260246000fd5b600281046001821680612d8f57607f821691505b602082108103612da157612da1612d65565b50919050565b602c81526000602082017f4552433732313a20617070726f76656420717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b602082015291505b5060400190565b60208082528101610ab781612da7565b602681526000602082017f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2081527f736861726573000000000000000000000000000000000000000000000000000060208201529150612dec565b60208082528101610ab781612e03565b602b81526000602082017f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742081527f647565207061796d656e7400000000000000000000000000000000000000000060208201529150612dec565b60208082528101610ab781612e6d565b634e487b7160e01b600052601160045260246000fd5b80820180821115610ab757610ab7612ed7565b604081016126c88285612930565b602b81526000602082017f455243373231456e756d657261626c653a206f776e657220696e646578206f7581527f74206f6620626f756e647300000000000000000000000000000000000000000060208201529150612dec565b60208082528101610ab781612f0e565b634e487b7160e01b600052603260045260246000fd5b60006000198203612fa157612fa1612ed7565b5060010190565b602c81526000602082017f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f81527f7574206f6620626f756e6473000000000000000000000000000000000000000060208201529150612dec565b60208082528101610ab781612fa8565b602981526000602082017f4552433732313a206f776e657220717565727920666f72206e6f6e657869737481527f656e7420746f6b656e000000000000000000000000000000000000000000000060208201529150612dec565b60208082528101610ab781613012565b602a81526000602082017f5175616e74697479206c656e677468206973206e6f7420657175616c20746f2081527f726563697069656e74730000000000000000000000000000000000000000000060208201529150612dec565b60208082528101610ab78161307c565b601281526000602082017f4d617820737570706c7920726561636865640000000000000000000000000000815291505b5060200190565b60208082528101610ab7816130e6565b6000610ab761290b8381565b6131428361312d565b81546008840282811b60001990911b908116901990911617825550505050565b6000610baf818484613139565b81811015611bff57613182600082613162565b60010161316f565b601f821115610baf576000818152602090206020601f850104810160208510156131b15750805b61109c6020601f86010483018261316f565b8267ffffffffffffffff8111156131dc576131dc612b09565b6131e68254612d7b565b6131f182828561318a565b6000601f831160018114613225576000841561320d5750858201355b600019600886021c1981166002860217865550611070565b600085815260208120601f198616915b828110156132555788850135825560209485019460019092019101613235565b8683101561327157600019601f88166008021c19858a01351682555b60016002880201885550505050505050505050565b60208082527f4d757374206265206c657373207468616e2063757272656e7420737570706c7991019081526000613116565b60208082528101610ab781613286565b602a81526000602082017f4552433732313a2062616c616e636520717565727920666f7220746865207a6581527f726f20616464726573730000000000000000000000000000000000000000000060208201529150612dec565b60208082528101610ab7816132c8565b601981526000602082017f5075626c69632073616c65206973206e6f74206163746976650000000000000081529150613116565b60208082528101610ab781613332565b600a81526000602082017f4d6178207065722074780000000000000000000000000000000000000000000081529150613116565b60208082528101610ab781613376565b60008160001904831182151516156133d4576133d4612ed7565b500290565b601581526000602082017f496e73756666696369656e74204554482073656e74000000000000000000000081529150613116565b60208082528101610ab7816133d9565b8051610ab781612795565b60006020828403121561343d5761343d600080fd5b6000611440848461341d565b602f81526000602082017f4552433732314d657461646174613a2055524920717565727920666f72206e6f81527f6e6578697374656e7420746f6b656e000000000000000000000000000000000060208201529150612dec565b60208082528101610ab781613449565b600081546134c081612d7b565b6001821680156134d757600181146134ec5761351c565b60ff198316865281151582028601935061351c565b60008581526020902060005b83811015613514578154888201526001909101906020016134f8565b838801955050505b50505092915050565b600061352f825190565b61353d81856020860161272e565b9290920192915050565b600061355382866134b3565b915061355f8285613525565b915061356b82846134b3565b95945050505050565b601781526000602082017f5761697420666f7220616c6c6f776c697374206d696e7400000000000000000081529150613116565b60208082528101610ab781613574565b601581526000602082017f536f756c20636f6e7472616374206e6f7420736574000000000000000000000081529150613116565b60208082528101610ab7816135b8565b600e81526000602082017f5369676e6572206e6f742073657400000000000000000000000000000000000081529150613116565b60208082528101610ab7816135fc565b600061133b8284613525565b601681526000602082017f5369676e617475726520616c726561647920757365640000000000000000000081529150613116565b60208082528101610ab78161364c565b6000610ab78260601b90565b6000610ab782613690565b6126ae6136b382612694565b61369c565b82818337505050565b6000835b93507f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8311156136f7576136f7600080fd5b6020830292506137088385846136b8565b50500190565b600061371a82866136a7565b60148201915061356b8284866136c1565b600c81526000602082017f57726f6e67207369676e6572000000000000000000000000000000000000000081529150613116565b60208082528101610ab78161372b565b600f81526000602082017f4d6178206275726e20706572207478000000000000000000000000000000000081529150613116565b60208082528101610ab78161376f565b8183526000602084016136c5565b602080825281016114408184866137b3565b604080825281016137e58185876137b3565b905061144060208301846126a5565b602681526000602082017f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181527f646472657373000000000000000000000000000000000000000000000000000060208201529150612dec565b60208082528101610ab7816137f4565b6040810161386c82856126a5565b61133b60208301846126a5565b8051610ab781612ac3565b60006020828403121561389957613899600080fd5b60006114408484613879565b602181526000602082017f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6581527f720000000000000000000000000000000000000000000000000000000000000060208201529150612dec565b60208082528101610ab7816138a5565b603881526000602082017f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7781527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060208201529150612dec565b60208082528101610ab78161390f565b601d81526000602082017f416464726573733a20696e73756666696369656e742062616c616e636500000081529150613116565b60208082528101610ab781613979565b6000610ab78261290b565b603a81526000602082017f416464726573733a20756e61626c6520746f2073656e642076616c75652c207281527f6563697069656e74206d6179206861766520726576657274656400000000000060208201529150612dec565b60208082528101610ab7816139c8565b603181526000602082017f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f81527f776e6572206e6f7220617070726f76656400000000000000000000000000000060208201529150612dec565b60208082528101610ab781613a32565b60208082527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657291019081526000613116565b60208082528101610ab781613a9c565b601981526000602082017f4552433732313a20617070726f766520746f2063616c6c65720000000000000081529150613116565b60208082528101610ab781613ade565b634e487b7160e01b600052601260045260246000fd5b600082613b4757613b47613b22565b500490565b81810381811115610ab757610ab7612ed7565b7f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152601c016000613b9182846126b4565b50602001919050565b602c81526000602082017f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b60208201529150612dec565b60208082528101610ab781613b9a565b602981526000602082017f4552433732313a207472616e73666572206f6620746f6b656e2074686174206981527f73206e6f74206f776e000000000000000000000000000000000000000000000060208201529150612dec565b60208082528101610ab781613bf3565b602481526000602082017f4552433732313a207472616e7366657220746f20746865207a65726f2061646481527f726573730000000000000000000000000000000000000000000000000000000060208201529150612dec565b60208082528101610ab781613c5d565b602a81526000602082017f5361666545524332303a204552433230206f7065726174696f6e20646964206e81527f6f7420737563636565640000000000000000000000000000000000000000000060208201529150612dec565b60208082528101610ab781613cc7565b603281526000602082017f4552433732313a207472616e7366657220746f206e6f6e20455243373231526581527f63656976657220696d706c656d656e746572000000000000000000000000000060208201529150612dec565b60208082528101610ab781613d31565b634e487b7160e01b600052602160045260246000fd5b601881526000602082017f45434453413a20696e76616c6964207369676e6174757265000000000000000081529150613116565b60208082528101610ab781613db1565b601f81526000602082017f45434453413a20696e76616c6964207369676e6174757265206c656e6774680081529150613116565b60208082528101610ab781613df5565b602281526000602082017f45434453413a20696e76616c6964207369676e6174757265202773272076616c81527f756500000000000000000000000000000000000000000000000000000000000060208201529150612dec565b60208082528101610ab781613e39565b60208082527f4552433732313a206d696e7420746f20746865207a65726f206164647265737391019081526000613116565b60208082528101610ab781613ea3565b601c81526000602082017f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000081529150613116565b60208082528101610ab781613ee5565b60808101613f3782876126a5565b613f4460208301866126a5565b613f5160408301856126b4565b8181036060830152613f638184612752565b9695505050505050565b8051610ab7816126d5565b600060208284031215613f8d57613f8d600080fd5b60006114408484613f6d565b60ff81166126ae565b60808101613fb082876126b4565b613fbd6020830186613f99565b613fca60408301856126b4565b61356b60608301846126b4565b602681526000602082017f416464726573733a20696e73756666696369656e742062616c616e636520666f81527f722063616c6c000000000000000000000000000000000000000000000000000060208201529150612dec565b60208082528101610ab781613fd7565b601d81526000602082017f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000081529150613116565b60208082528101610ab78161404156fea2646970667358221220013e6d10f8e805a6b5d3b09d8d321fe9ef42932e50ebbfa330b2b682142f1e0c64736f6c63430008100033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000002368747470733a2f2f6e797878702e696f2f66657272796d656e2f6d657461646174612f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000052e6a736f6e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005000000000000000000000000f9e27b00d54c48f21888c155bbd5b594e2464fc9000000000000000000000000663e96651fa8f140c98b6a1dcdbbeac7a82007660000000000000000000000009c871e25b88d94bfe97b22223e7af01f4a85c15e0000000000000000000000008d46f065fec1c352907883a446b94a38a65c12ee000000000000000000000000d4850927a6e3f30e2e3c3b14d98131cf8e2d9634000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000046000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000008

Deployed Bytecode

0x60806040526004361061034e5760003560e01c80638c770067116101bb578063ce7c2ac2116100f7578063e33b7de311610095578063e985e9c51161006f578063e985e9c5146109da578063f2fde38b14610a23578063f44cc73014610a43578063f968adbe14610a6357600080fd5b8063e33b7de314610977578063e559a13f1461098c578063e949580e1461099f57600080fd5b8063dbd30ae0116100d1578063dbd30ae01461090b578063dc4efe1014610920578063dc9a153514610941578063e222c7f91461096257600080fd5b8063ce7c2ac214610889578063d5abeb01146108bf578063d79779b2146108d557600080fd5b8063a22cb46511610164578063c45ac0501161013e578063c45ac05014610813578063c6f6f21614610833578063c87b56dd14610853578063cbc8320c1461087357600080fd5b8063a22cb465146107b3578063a3f8eace146107d3578063b88d4fde146107f357600080fd5b80639852595c116101955780639852595c14610755578063988934af1461078b578063a0712d68146107a057600080fd5b80638c7700671461070c5780638da5cb5b1461072257806395d89b411461074057600080fd5b80634f6ccce71161028a5780636c19e78311610233578063715018a61161020d578063715018a614610697578063796ff483146106ac57806380eae578146106cc5780638b83209b146106ec57600080fd5b80636c19e783146106375780636f8b44b01461065757806370a082311461067757600080fd5b80636352211e116102645780636352211e146105d75780636673c4c2146105f75780636790a9de1461061757600080fd5b80634f6ccce7146105825780635b7633d0146105a25780635be7fde8146105c257600080fd5b806323b872dd116102f7578063406072a9116102d1578063406072a9146104cd57806341f434341461051357806342842e0e1461054257806348b750441461056257600080fd5b806323b872dd146104785780632f745c59146104985780633a98ef39146104b857600080fd5b8063095ea7b311610328578063095ea7b31461041857806318160ddd1461043a578063191655871461045857600080fd5b806301ffc9a71461039357806306fdde03146103c9578063081812fc146103eb57600080fd5b3661038e577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033346040516103849291906126ba565b60405180910390a1005b600080fd5b34801561039f57600080fd5b506103b36103ae3660046126f7565b610a79565b6040516103c09190612720565b60405180910390f35b3480156103d557600080fd5b506103de610abd565b6040516103c09190612784565b3480156103f757600080fd5b5061040b6104063660046127a6565b610b4f565b6040516103c091906127c7565b34801561042457600080fd5b506104386104333660046127e9565b610b9b565b005b34801561044657600080fd5b506002545b6040516103c09190612826565b34801561046457600080fd5b50610438610473366004612834565b610bb4565b34801561048457600080fd5b50610438610493366004612855565b610c92565b3480156104a457600080fd5b5061044b6104b33660046127e9565b610cbd565b3480156104c457600080fd5b5060065461044b565b3480156104d957600080fd5b5061044b6104e83660046128c4565b6001600160a01b039182166000908152600c6020908152604080832093909416825291909152205490565b34801561051f57600080fd5b506105356daaeb6d7670e522a718067333cd4e81565b6040516103c09190612939565b34801561054e57600080fd5b5061043861055d366004612855565b610d6f565b34801561056e57600080fd5b5061043861057d3660046128c4565b610d94565b34801561058e57600080fd5b5061044b61059d3660046127a6565b610ea2565b3480156105ae57600080fd5b5060145461040b906001600160a01b031681565b3480156105ce57600080fd5b50610438610eca565b3480156105e357600080fd5b5061040b6105f23660046127a6565b610f00565b34801561060357600080fd5b50610438610612366004612992565b610f4a565b34801561062357600080fd5b50610438610632366004612a56565b611079565b34801561064357600080fd5b50610438610652366004612834565b6110a3565b34801561066357600080fd5b506104386106723660046127a6565b6110cd565b34801561068357600080fd5b5061044b610692366004612834565b6110fb565b3480156106a357600080fd5b50610438611186565b3480156106b857600080fd5b5060155461040b906001600160a01b031681565b3480156106d857600080fd5b506104386106e73660046127a6565b61119a565b3480156106f857600080fd5b5061040b6107073660046127a6565b6111a7565b34801561071857600080fd5b5061044b60115481565b34801561072e57600080fd5b506005546001600160a01b031661040b565b34801561074c57600080fd5b506103de6111d7565b34801561076157600080fd5b5061044b610770366004612834565b6001600160a01b031660009081526009602052604090205490565b34801561079757600080fd5b506104386111e6565b6104386107ae3660046127a6565b61120f565b3480156107bf57600080fd5b506104386107ce366004612ad6565b6112e6565b3480156107df57600080fd5b5061044b6107ee366004612834565b6112fa565b3480156107ff57600080fd5b5061043861080e366004612bfc565b611342565b34801561081f57600080fd5b5061044b61082e3660046128c4565b611368565b34801561083f57600080fd5b5061043861084e3660046127a6565b611448565b34801561085f57600080fd5b506103de61086e3660046127a6565b611455565b34801561087f57600080fd5b5061044b60135481565b34801561089557600080fd5b5061044b6108a4366004612834565b6001600160a01b031660009081526008602052604090205490565b3480156108cb57600080fd5b5061044b60105481565b3480156108e157600080fd5b5061044b6108f0366004612c7b565b6001600160a01b03166000908152600b602052604090205490565b34801561091757600080fd5b506104386114b1565b34801561092c57600080fd5b506014546103b390600160a81b900460ff1681565b34801561094d57600080fd5b506014546103b390600160a01b900460ff1681565b34801561096e57600080fd5b5061043861151a565b34801561098357600080fd5b5060075461044b565b61043861099a366004612c9c565b611543565b3480156109ab57600080fd5b506103b36109ba366004612d08565b805160208183018101805160168252928201919093012091525460ff1681565b3480156109e657600080fd5b506103b36109f5366004612d43565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205460ff1690565b348015610a2f57600080fd5b50610438610a3e366004612834565b6117e5565b348015610a4f57600080fd5b50610438610a5e3660046127a6565b61181c565b348015610a6f57600080fd5b5061044b60125481565b60006001600160e01b031982167f780e9d63000000000000000000000000000000000000000000000000000000001480610ab75750610ab782611829565b92915050565b606060008054610acc90612d7b565b80601f0160208091040260200160405190810160405280929190818152602001828054610af890612d7b565b8015610b455780601f10610b1a57610100808354040283529160200191610b45565b820191906000526020600020905b815481529060010190602001808311610b2857829003601f168201915b5050505050905090565b6000610b5a826118c4565b610b7f5760405162461bcd60e51b8152600401610b7690612df3565b60405180910390fd5b506000908152600360205260409020546001600160a01b031690565b81610ba58161190e565b610baf83836119e8565b505050565b6001600160a01b038116600090815260086020526040902054610be95760405162461bcd60e51b8152600401610b7690612e5d565b6000610bf4826112fa565b905080600003610c165760405162461bcd60e51b8152600401610b7690612ec7565b8060076000828254610c289190612eed565b90915550506001600160a01b0382166000908152600960205260409020805482019055610c558282611a68565b7fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b0568282604051610c86929190612f00565b60405180910390a15050565b826001600160a01b0381163314610cac57610cac3361190e565b610cb7848484611b04565b50505050565b6000610cc8836110fb565b8210610ce65760405162461bcd60e51b8152600401610b7690612f68565b6000805b600254811015610d565760028181548110610d0757610d07612f78565b6000918252602090912001546001600160a01b0390811690861603610d4457838203610d36579150610ab79050565b81610d4081612f8e565b9250505b80610d4e81612f8e565b915050610cea565b5060405162461bcd60e51b8152600401610b7690612f68565b826001600160a01b0381163314610d8957610d893361190e565b610cb7848484611b35565b6001600160a01b038116600090815260086020526040902054610dc95760405162461bcd60e51b8152600401610b7690612e5d565b6000610dd58383611368565b905080600003610df75760405162461bcd60e51b8152600401610b7690612ec7565b6001600160a01b0383166000908152600b602052604081208054839290610e1f908490612eed565b90915550506001600160a01b038084166000908152600c60209081526040808320938616835292905220805482019055610e5a838383611b50565b826001600160a01b03167f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a8383604051610e959291906126ba565b60405180910390a2505050565b6002546000908210610ec65760405162461bcd60e51b8152600401610b7690613002565b5090565b610ed2611bbb565b60005b600f54811015610efd57610eeb610473826111a7565b80610ef581612f8e565b915050610ed5565b50565b60008060028381548110610f1657610f16612f78565b6000918252602090912001546001600160a01b0316905080610ab75760405162461bcd60e51b8152600401610b769061306c565b610f52611bbb565b828114610f715760405162461bcd60e51b8152600401610b76906130d6565b6000805b84811015610fb357858582818110610f8f57610f8f612f78565b9050602002013582610fa19190612eed565b9150610fac81612f8e565b9050610f75565b50600254601054610fc48383612eed565b1115610fe25760405162461bcd60e51b8152600401610b769061311d565b6000915060005b838110156110705760005b87878381811061100657611006612f78565b9050602002013581101561105f5761104f86868481811061102957611029612f78565b905060200201602081019061103e9190612834565b8461104881612f8e565b9550611be5565b61105881612f8e565b9050610ff4565b5061106981612f8e565b9050610fe9565b50505050505050565b611081611bbb565b600d61108e8486836131c3565b50600e61109c8284836131c3565b5050505050565b6110ab611bbb565b601480546001600160a01b0319166001600160a01b0392909216919091179055565b6110d5611bbb565b60105481106110f65760405162461bcd60e51b8152600401610b76906132b8565b601055565b60006001600160a01b0382166111235760405162461bcd60e51b8152600401610b7690613322565b6000805b60025481101561117f576002818154811061114457611144612f78565b6000918252602090912001546001600160a01b039081169085160361116f5761116c82612f8e565b91505b61117881612f8e565b9050611127565b5092915050565b61118e611bbb565b6111986000611c03565b565b6111a2611bbb565b601155565b6000600a82815481106111bc576111bc612f78565b6000918252602090912001546001600160a01b031692915050565b606060018054610acc90612d7b565b6111ee611bbb565b6014805460ff60a81b198116600160a81b9182900460ff1615909102179055565b601454600160a01b900460ff166112385760405162461bcd60e51b8152600401610b7690613366565b60125481111561125a5760405162461bcd60e51b8152600401610b76906133aa565b8060115461126891906133ba565b3410156112875760405162461bcd60e51b8152600401610b769061340d565b6002546010546112978383612eed565b106112b45760405162461bcd60e51b8152600401610b769061311d565b60005b82811015610baf576112d433836112cd81612f8e565b9450611be5565b806112de81612f8e565b9150506112b7565b816112f08161190e565b610baf8383611c55565b60008061130660075490565b6113109047612eed565b905061133b8382611336866001600160a01b031660009081526009602052604090205490565b611cec565b9392505050565b836001600160a01b038116331461135c5761135c3361190e565b61109c85858585611d2a565b6001600160a01b0382166000818152600b60205260408082205490517f70a08231000000000000000000000000000000000000000000000000000000008152919283926370a08231906113bf9030906004016127c7565b602060405180830381865afa1580156113dc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114009190613428565b61140a9190612eed565b6001600160a01b038086166000908152600c60209081526040808320938816835292905220549091506114409084908390611cec565b949350505050565b611450611bbb565b601255565b6060611460826118c4565b61147c5760405162461bcd60e51b8152600401610b76906134a3565b600d61148783611d5c565b600e60405160200161149b93929190613547565b6040516020818303038152906040529050919050565b6114b9611bbb565b60148054600160a81b60ff600160a01b8084048216150260ff60a01b19841681178390049091161590910260ff60a81b199091167fffffffffffffffffffff0000ffffffffffffffffffffffffffffffffffffffff90921691909117179055565b611522611bbb565b6014805460ff60a01b198116600160a01b9182900460ff1615909102179055565b601454600160a81b900460ff1661156c5760405162461bcd60e51b8152600401610b76906135a8565b6015546001600160a01b03166115945760405162461bcd60e51b8152600401610b76906135ec565b6014546001600160a01b03166115bc5760405162461bcd60e51b8152600401610b7690613630565b6016816040516115cc9190613640565b9081526040519081900360200190205460ff16156115fc5760405162461bcd60e51b8152600401610b7690613680565b60003384846040516020016116139392919061370e565b604051602081830303815290604052805190602001209050600061163682611dfd565b905060006116448285611e2d565b6014549091506001600160a01b038083169116146116745760405162461bcd60e51b8152600401610b769061375f565b60016016856040516116869190613640565b908152604051908190036020019020805491151560ff1990921691909117905560025460135486908111156116cd5760405162461bcd60e51b8152600401610b76906137a3565b6010546116da8284612eed565b106116f75760405162461bcd60e51b8152600401610b769061311d565b6015546040517f6ab49a5b0000000000000000000000000000000000000000000000000000000081526001600160a01b0390911690636ab49a5b90611742908b908b906004016137c1565b600060405180830381600087803b15801561175c57600080fd5b505af1158015611770573d6000803e3d6000fd5b505050507f383a7e610d9db21be0560b28c23852759c0d7821fa683d15d72af37a100d57528888336040516117a7939291906137d3565b60405180910390a160005b818110156117da576117c8338461104881612f8e565b806117d281612f8e565b9150506117b2565b505050505050505050565b6117ed611bbb565b6001600160a01b0381166118135760405162461bcd60e51b8152600401610b769061384e565b610efd81611c03565b611824611bbb565b601355565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061188c57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610ab757507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610ab7565b60025460009082108015610ab7575060006001600160a01b0316600283815481106118f1576118f1612f78565b6000918252602090912001546001600160a01b0316141592915050565b6daaeb6d7670e522a718067333cd4e3b15610efd576040517fc61711340000000000000000000000000000000000000000000000000000000081526daaeb6d7670e522a718067333cd4e9063c61711349061196f903090859060040161385e565b602060405180830381865afa15801561198c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119b09190613884565b610efd57806040517fede71dcc000000000000000000000000000000000000000000000000000000008152600401610b7691906127c7565b60006119f382610f00565b9050806001600160a01b0316836001600160a01b031603611a265760405162461bcd60e51b8152600401610b76906138ff565b336001600160a01b0382161480611a425750611a4281336109f5565b611a5e5760405162461bcd60e51b8152600401610b7690613969565b610baf8383611e49565b80471015611a885760405162461bcd60e51b8152600401610b76906139ad565b6000826001600160a01b031682604051611aa1906139bd565b60006040518083038185875af1925050503d8060008114611ade576040519150601f19603f3d011682016040523d82523d6000602084013e611ae3565b606091505b5050905080610baf5760405162461bcd60e51b8152600401610b7690613a22565b611b0e3382611eb7565b611b2a5760405162461bcd60e51b8152600401610b7690613a8c565b610baf838383611f58565b610baf83838360405180602001604052806000815250611342565b610baf8363a9059cbb60e01b8484604051602401611b6f9291906126ba565b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b031990931692909217909152612030565b6005546001600160a01b031633146111985760405162461bcd60e51b8152600401610b7690613ace565b611bff8282604051806020016040528060008152506120bf565b5050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b336001600160a01b03831603611c7d5760405162461bcd60e51b8152600401610b7690613b12565b3360008181526004602090815260408083206001600160a01b038716808552925291829020805460ff191685151517905590519091907f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3190611ce0908590612720565b60405180910390a35050565b6006546001600160a01b03841660009081526008602052604081205490918391611d1690866133ba565b611d209190613b38565b6114409190613b4c565b611d343383611eb7565b611d505760405162461bcd60e51b8152600401610b7690613a8c565b610cb7848484846120f2565b60606000611d6983612125565b600101905060008167ffffffffffffffff811115611d8957611d89612b09565b6040519080825280601f01601f191660200182016040528015611db3576020820181803683370190505b5090508181016020015b600019017f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8504945084611dbd575b509392505050565b600081604051602001611e109190613b5f565b604051602081830303815290604052805190602001209050919050565b6000806000611e3c8585612207565b91509150611df58161224c565b600081815260036020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611e7e82610f00565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611ec2826118c4565b611ede5760405162461bcd60e51b8152600401610b7690613be3565b6000611ee983610f00565b9050806001600160a01b0316846001600160a01b03161480611f245750836001600160a01b0316611f1984610b4f565b6001600160a01b0316145b8061144057506001600160a01b0380821660009081526004602090815260408083209388168352929052205460ff16611440565b826001600160a01b0316611f6b82610f00565b6001600160a01b031614611f915760405162461bcd60e51b8152600401610b7690613c4d565b6001600160a01b038216611fb75760405162461bcd60e51b8152600401610b7690613cb7565b611fc2600082611e49565b8160028281548110611fd657611fd6612f78565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b6000612085826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166122fb9092919063ffffffff16565b805190915015610baf57808060200190518101906120a39190613884565b610baf5760405162461bcd60e51b8152600401610b7690613d21565b6120c9838361230a565b6120d660008484846123d2565b610baf5760405162461bcd60e51b8152600401610b7690613d8b565b6120fd848484611f58565b612109848484846123d2565b610cb75760405162461bcd60e51b8152600401610b7690613d8b565b6000807a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000831061216e577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000830492506040015b6d04ee2d6d415b85acef8100000000831061219a576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc1000083106121b857662386f26fc10000830492506010015b6305f5e10083106121d0576305f5e100830492506008015b61271083106121e457612710830492506004015b606483106121f6576064830492506002015b600a8310610ab75760010192915050565b600080825160410361223d5760208301516040840151606085015160001a612231878285856124d3565b94509450505050612245565b506000905060025b9250929050565b600081600481111561226057612260613d9b565b036122685750565b600181600481111561227c5761227c613d9b565b036122995760405162461bcd60e51b8152600401610b7690613de5565b60028160048111156122ad576122ad613d9b565b036122ca5760405162461bcd60e51b8152600401610b7690613e29565b60038160048111156122de576122de613d9b565b03610efd5760405162461bcd60e51b8152600401610b7690613e93565b6060611440848460008561258a565b6001600160a01b0382166123305760405162461bcd60e51b8152600401610b7690613ed5565b612339816118c4565b156123565760405162461bcd60e51b8152600401610b7690613f19565b6002805460018101825560009182527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180546001600160a01b0319166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b156124c857604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612416903390899088908890600401613f29565b6020604051808303816000875af1925050508015612451575060408051601f3d908101601f1916820190925261244e91810190613f78565b60015b6124ae573d80801561247f576040519150601f19603f3d011682016040523d82523d6000602084013e612484565b606091505b5080516000036124a65760405162461bcd60e51b8152600401610b7690613d8b565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611440565b506001949350505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561250a5750600090506003612581565b60006001878787876040516000815260200160405260405161252f9493929190613fa2565b6020604051602081039080840390855afa158015612551573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661257a57600060019250925050612581565b9150600090505b94509492505050565b6060824710156125ac5760405162461bcd60e51b8152600401610b7690614031565b600080866001600160a01b031685876040516125c89190613640565b60006040518083038185875af1925050503d8060008114612605576040519150601f19603f3d011682016040523d82523d6000602084013e61260a565b606091505b509150915061261b87838387612626565b979650505050505050565b6060831561266557825160000361265e576001600160a01b0385163b61265e5760405162461bcd60e51b8152600401610b7690614075565b5081611440565b611440838381511561267a5781518083602001fd5b8060405162461bcd60e51b8152600401610b769190612784565b60006001600160a01b038216610ab7565b6126ae81612694565b82525050565b806126ae565b604081016126c882856126a5565b61133b60208301846126b4565b6001600160e01b031981165b8114610efd57600080fd5b8035610ab7816126d5565b60006020828403121561270c5761270c600080fd5b600061144084846126ec565b8015156126ae565b60208101610ab78284612718565b60005b83811015612749578181015183820152602001612731565b50506000910152565b600061275c825190565b80845260208401935061277381856020860161272e565b601f01601f19169290920192915050565b6020808252810161133b8184612752565b806126e1565b8035610ab781612795565b6000602082840312156127bb576127bb600080fd5b6000611440848461279b565b60208101610ab782846126a5565b6126e181612694565b8035610ab7816127d5565b600080604083850312156127ff576127ff600080fd5b600061280b85856127de565b925050602061281c8582860161279b565b9150509250929050565b60208101610ab782846126b4565b60006020828403121561284957612849600080fd5b600061144084846127de565b60008060006060848603121561286d5761286d600080fd5b600061287986866127de565b935050602061288a868287016127de565b925050604061289b8682870161279b565b9150509250925092565b6000610ab782612694565b6126e1816128a5565b8035610ab7816128b0565b600080604083850312156128da576128da600080fd5b60006128e685856128b9565b925050602061281c858286016127de565b6000610ab76001600160a01b03831661290e565b90565b6001600160a01b031690565b6000610ab7826128f7565b6000610ab78261291a565b6126ae81612925565b60208101610ab78284612930565b60008083601f84011261295c5761295c600080fd5b50813567ffffffffffffffff81111561297757612977600080fd5b60208301915083602082028301111561224557612245600080fd5b600080600080604085870312156129ab576129ab600080fd5b843567ffffffffffffffff8111156129c5576129c5600080fd5b6129d187828801612947565b9450945050602085013567ffffffffffffffff8111156129f3576129f3600080fd5b6129ff87828801612947565b95989497509550505050565b60008083601f840112612a2057612a20600080fd5b50813567ffffffffffffffff811115612a3b57612a3b600080fd5b60208301915083600182028301111561224557612245600080fd5b60008060008060408587031215612a6f57612a6f600080fd5b843567ffffffffffffffff811115612a8957612a89600080fd5b612a9587828801612a0b565b9450945050602085013567ffffffffffffffff811115612ab757612ab7600080fd5b6129ff87828801612a0b565b8015156126e1565b8035610ab781612ac3565b60008060408385031215612aec57612aec600080fd5b6000612af885856127de565b925050602061281c85828601612acb565b634e487b7160e01b600052604160045260246000fd5b601f19601f830116810181811067ffffffffffffffff82111715612b4557612b45612b09565b6040525050565b6000612b5760405190565b9050612b638282612b1f565b919050565b600067ffffffffffffffff821115612b8257612b82612b09565b601f19601f83011660200192915050565b82818337506000910152565b6000612bb2612bad84612b68565b612b4c565b905082815260208101848484011115612bcd57612bcd600080fd5b611df5848285612b93565b600082601f830112612bec57612bec600080fd5b8135611440848260208601612b9f565b60008060008060808587031215612c1557612c15600080fd5b6000612c2187876127de565b9450506020612c32878288016127de565b9350506040612c438782880161279b565b925050606085013567ffffffffffffffff811115612c6357612c63600080fd5b612c6f87828801612bd8565b91505092959194509250565b600060208284031215612c9057612c90600080fd5b600061144084846128b9565b600080600060408486031215612cb457612cb4600080fd5b833567ffffffffffffffff811115612cce57612cce600080fd5b612cda86828701612947565b9350935050602084013567ffffffffffffffff811115612cfc57612cfc600080fd5b61289b86828701612bd8565b600060208284031215612d1d57612d1d600080fd5b813567ffffffffffffffff811115612d3757612d37600080fd5b61144084828501612bd8565b60008060408385031215612d5957612d59600080fd5b60006128e685856127de565b634e487b7160e01b600052602260045260246000fd5b600281046001821680612d8f57607f821691505b602082108103612da157612da1612d65565b50919050565b602c81526000602082017f4552433732313a20617070726f76656420717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b602082015291505b5060400190565b60208082528101610ab781612da7565b602681526000602082017f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2081527f736861726573000000000000000000000000000000000000000000000000000060208201529150612dec565b60208082528101610ab781612e03565b602b81526000602082017f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742081527f647565207061796d656e7400000000000000000000000000000000000000000060208201529150612dec565b60208082528101610ab781612e6d565b634e487b7160e01b600052601160045260246000fd5b80820180821115610ab757610ab7612ed7565b604081016126c88285612930565b602b81526000602082017f455243373231456e756d657261626c653a206f776e657220696e646578206f7581527f74206f6620626f756e647300000000000000000000000000000000000000000060208201529150612dec565b60208082528101610ab781612f0e565b634e487b7160e01b600052603260045260246000fd5b60006000198203612fa157612fa1612ed7565b5060010190565b602c81526000602082017f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f81527f7574206f6620626f756e6473000000000000000000000000000000000000000060208201529150612dec565b60208082528101610ab781612fa8565b602981526000602082017f4552433732313a206f776e657220717565727920666f72206e6f6e657869737481527f656e7420746f6b656e000000000000000000000000000000000000000000000060208201529150612dec565b60208082528101610ab781613012565b602a81526000602082017f5175616e74697479206c656e677468206973206e6f7420657175616c20746f2081527f726563697069656e74730000000000000000000000000000000000000000000060208201529150612dec565b60208082528101610ab78161307c565b601281526000602082017f4d617820737570706c7920726561636865640000000000000000000000000000815291505b5060200190565b60208082528101610ab7816130e6565b6000610ab761290b8381565b6131428361312d565b81546008840282811b60001990911b908116901990911617825550505050565b6000610baf818484613139565b81811015611bff57613182600082613162565b60010161316f565b601f821115610baf576000818152602090206020601f850104810160208510156131b15750805b61109c6020601f86010483018261316f565b8267ffffffffffffffff8111156131dc576131dc612b09565b6131e68254612d7b565b6131f182828561318a565b6000601f831160018114613225576000841561320d5750858201355b600019600886021c1981166002860217865550611070565b600085815260208120601f198616915b828110156132555788850135825560209485019460019092019101613235565b8683101561327157600019601f88166008021c19858a01351682555b60016002880201885550505050505050505050565b60208082527f4d757374206265206c657373207468616e2063757272656e7420737570706c7991019081526000613116565b60208082528101610ab781613286565b602a81526000602082017f4552433732313a2062616c616e636520717565727920666f7220746865207a6581527f726f20616464726573730000000000000000000000000000000000000000000060208201529150612dec565b60208082528101610ab7816132c8565b601981526000602082017f5075626c69632073616c65206973206e6f74206163746976650000000000000081529150613116565b60208082528101610ab781613332565b600a81526000602082017f4d6178207065722074780000000000000000000000000000000000000000000081529150613116565b60208082528101610ab781613376565b60008160001904831182151516156133d4576133d4612ed7565b500290565b601581526000602082017f496e73756666696369656e74204554482073656e74000000000000000000000081529150613116565b60208082528101610ab7816133d9565b8051610ab781612795565b60006020828403121561343d5761343d600080fd5b6000611440848461341d565b602f81526000602082017f4552433732314d657461646174613a2055524920717565727920666f72206e6f81527f6e6578697374656e7420746f6b656e000000000000000000000000000000000060208201529150612dec565b60208082528101610ab781613449565b600081546134c081612d7b565b6001821680156134d757600181146134ec5761351c565b60ff198316865281151582028601935061351c565b60008581526020902060005b83811015613514578154888201526001909101906020016134f8565b838801955050505b50505092915050565b600061352f825190565b61353d81856020860161272e565b9290920192915050565b600061355382866134b3565b915061355f8285613525565b915061356b82846134b3565b95945050505050565b601781526000602082017f5761697420666f7220616c6c6f776c697374206d696e7400000000000000000081529150613116565b60208082528101610ab781613574565b601581526000602082017f536f756c20636f6e7472616374206e6f7420736574000000000000000000000081529150613116565b60208082528101610ab7816135b8565b600e81526000602082017f5369676e6572206e6f742073657400000000000000000000000000000000000081529150613116565b60208082528101610ab7816135fc565b600061133b8284613525565b601681526000602082017f5369676e617475726520616c726561647920757365640000000000000000000081529150613116565b60208082528101610ab78161364c565b6000610ab78260601b90565b6000610ab782613690565b6126ae6136b382612694565b61369c565b82818337505050565b6000835b93507f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8311156136f7576136f7600080fd5b6020830292506137088385846136b8565b50500190565b600061371a82866136a7565b60148201915061356b8284866136c1565b600c81526000602082017f57726f6e67207369676e6572000000000000000000000000000000000000000081529150613116565b60208082528101610ab78161372b565b600f81526000602082017f4d6178206275726e20706572207478000000000000000000000000000000000081529150613116565b60208082528101610ab78161376f565b8183526000602084016136c5565b602080825281016114408184866137b3565b604080825281016137e58185876137b3565b905061144060208301846126a5565b602681526000602082017f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181527f646472657373000000000000000000000000000000000000000000000000000060208201529150612dec565b60208082528101610ab7816137f4565b6040810161386c82856126a5565b61133b60208301846126a5565b8051610ab781612ac3565b60006020828403121561389957613899600080fd5b60006114408484613879565b602181526000602082017f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6581527f720000000000000000000000000000000000000000000000000000000000000060208201529150612dec565b60208082528101610ab7816138a5565b603881526000602082017f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7781527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060208201529150612dec565b60208082528101610ab78161390f565b601d81526000602082017f416464726573733a20696e73756666696369656e742062616c616e636500000081529150613116565b60208082528101610ab781613979565b6000610ab78261290b565b603a81526000602082017f416464726573733a20756e61626c6520746f2073656e642076616c75652c207281527f6563697069656e74206d6179206861766520726576657274656400000000000060208201529150612dec565b60208082528101610ab7816139c8565b603181526000602082017f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f81527f776e6572206e6f7220617070726f76656400000000000000000000000000000060208201529150612dec565b60208082528101610ab781613a32565b60208082527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657291019081526000613116565b60208082528101610ab781613a9c565b601981526000602082017f4552433732313a20617070726f766520746f2063616c6c65720000000000000081529150613116565b60208082528101610ab781613ade565b634e487b7160e01b600052601260045260246000fd5b600082613b4757613b47613b22565b500490565b81810381811115610ab757610ab7612ed7565b7f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152601c016000613b9182846126b4565b50602001919050565b602c81526000602082017f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b60208201529150612dec565b60208082528101610ab781613b9a565b602981526000602082017f4552433732313a207472616e73666572206f6620746f6b656e2074686174206981527f73206e6f74206f776e000000000000000000000000000000000000000000000060208201529150612dec565b60208082528101610ab781613bf3565b602481526000602082017f4552433732313a207472616e7366657220746f20746865207a65726f2061646481527f726573730000000000000000000000000000000000000000000000000000000060208201529150612dec565b60208082528101610ab781613c5d565b602a81526000602082017f5361666545524332303a204552433230206f7065726174696f6e20646964206e81527f6f7420737563636565640000000000000000000000000000000000000000000060208201529150612dec565b60208082528101610ab781613cc7565b603281526000602082017f4552433732313a207472616e7366657220746f206e6f6e20455243373231526581527f63656976657220696d706c656d656e746572000000000000000000000000000060208201529150612dec565b60208082528101610ab781613d31565b634e487b7160e01b600052602160045260246000fd5b601881526000602082017f45434453413a20696e76616c6964207369676e6174757265000000000000000081529150613116565b60208082528101610ab781613db1565b601f81526000602082017f45434453413a20696e76616c6964207369676e6174757265206c656e6774680081529150613116565b60208082528101610ab781613df5565b602281526000602082017f45434453413a20696e76616c6964207369676e6174757265202773272076616c81527f756500000000000000000000000000000000000000000000000000000000000060208201529150612dec565b60208082528101610ab781613e39565b60208082527f4552433732313a206d696e7420746f20746865207a65726f206164647265737391019081526000613116565b60208082528101610ab781613ea3565b601c81526000602082017f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000081529150613116565b60208082528101610ab781613ee5565b60808101613f3782876126a5565b613f4460208301866126a5565b613f5160408301856126b4565b8181036060830152613f638184612752565b9695505050505050565b8051610ab7816126d5565b600060208284031215613f8d57613f8d600080fd5b60006114408484613f6d565b60ff81166126ae565b60808101613fb082876126b4565b613fbd6020830186613f99565b613fca60408301856126b4565b61356b60608301846126b4565b602681526000602082017f416464726573733a20696e73756666696369656e742062616c616e636520666f81527f722063616c6c000000000000000000000000000000000000000000000000000060208201529150612dec565b60208082528101610ab781613fd7565b601d81526000602082017f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000081529150613116565b60208082528101610ab78161404156fea2646970667358221220013e6d10f8e805a6b5d3b09d8d321fe9ef42932e50ebbfa330b2b682142f1e0c64736f6c63430008100033

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

000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000002368747470733a2f2f6e797878702e696f2f66657272796d656e2f6d657461646174612f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000052e6a736f6e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005000000000000000000000000f9e27b00d54c48f21888c155bbd5b594e2464fc9000000000000000000000000663e96651fa8f140c98b6a1dcdbbeac7a82007660000000000000000000000009c871e25b88d94bfe97b22223e7af01f4a85c15e0000000000000000000000008d46f065fec1c352907883a446b94a38a65c12ee000000000000000000000000d4850927a6e3f30e2e3c3b14d98131cf8e2d9634000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000046000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000008

-----Decoded View---------------
Arg [0] : newBaseURI (string): https://nyxxp.io/ferrymen/metadata/
Arg [1] : newSuffix (string): .json
Arg [2] : team (address[]): 0xF9E27b00d54c48F21888C155bbd5b594E2464fc9,0x663E96651fa8f140C98B6a1dcDBbeAC7a8200766,0x9C871e25b88d94BFE97b22223e7aF01f4a85c15e,0x8d46f065fEC1c352907883a446b94A38A65c12ee,0xd4850927a6e3f30E2e3C3b14D98131Cf8e2D9634
Arg [3] : teamShares (uint256[]): 20,70,1,1,8

-----Encoded View---------------
21 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [3] : 00000000000000000000000000000000000000000000000000000000000001e0
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000023
Arg [5] : 68747470733a2f2f6e797878702e696f2f66657272796d656e2f6d6574616461
Arg [6] : 74612f0000000000000000000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [8] : 2e6a736f6e000000000000000000000000000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [10] : 000000000000000000000000f9e27b00d54c48f21888c155bbd5b594e2464fc9
Arg [11] : 000000000000000000000000663e96651fa8f140c98b6a1dcdbbeac7a8200766
Arg [12] : 0000000000000000000000009c871e25b88d94bfe97b22223e7af01f4a85c15e
Arg [13] : 0000000000000000000000008d46f065fec1c352907883a446b94a38a65c12ee
Arg [14] : 000000000000000000000000d4850927a6e3f30e2e3c3b14d98131cf8e2d9634
Arg [15] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [16] : 0000000000000000000000000000000000000000000000000000000000000014
Arg [17] : 0000000000000000000000000000000000000000000000000000000000000046
Arg [18] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [19] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [20] : 0000000000000000000000000000000000000000000000000000000000000008


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.