ETH Price: $3,114.60 (-1.73%)

Token

SURREAL (SURREAL)
 

Overview

Max Total Supply

383 SURREAL

Holders

264

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
heckboy.eth
Balance
1 SURREAL
0xB11CB1822Ca565FEfD3fd2D53eaa8784B2F5FA5d
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:
Surreal

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 10 runs

Other Settings:
default evmVersion
File 1 of 26 : Surreal.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/access/AccessControlEnumerable.sol";
import "@openzeppelin/contracts/finance/PaymentSplitter.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Strings.sol";

import "./SignedMinting.sol";

interface IERC1155Burnable is IERC1155 {
    function burn(
        address account,
        uint256 id,
        uint256 value
    ) external;
}

contract Surreal is
    AccessControlEnumerable,
    ERC721URIStorage,
    ERC721Enumerable,
    PaymentSplitter,
    Pausable,
    ReentrancyGuard,
    SignedMinting
{
    using Address for address;
    using Strings for string;

    event PermanentURI(string _value, uint256 indexed _id);
    event Claimed(uint256 indexed _id, address by);

    bytes32 public constant INTEGRATION_ROLE = keccak256("INTEGRATION_ROLE");

    mapping(uint256 => string) private mintPassTokenURIs;
    mapping(uint256 => uint256) private burnedMintPass;

    IERC1155Burnable private mintPassContract;

    constructor(
        address signer,
        address adminAddress,
        address[] memory payees,
        uint256[] memory shares_
    )
        ERC721("SURREAL", "SURREAL")
        PaymentSplitter(payees, shares_)
        ReentrancyGuard()
        SignedMinting(signer)
    {
        _pause();
        _grantRole(DEFAULT_ADMIN_ROLE, adminAddress);
    }

    /*
     * @note Approval for this contract gets hardcoded into the mintpass contract
     */
    function claim(bytes memory signature, uint256 mintPassTokenId)
        public
        whenNotPaused
        nonReentrant
        isValidSignature(signature)
    {
        require(
            mintPassContract.balanceOf(_msgSender(), mintPassTokenId) > 0,
            "Must own mintpass"
        );
        mintPassContract.burn(_msgSender(), mintPassTokenId, 1);
        uint256 tokenId = totalSupply();
        _mintPrivate(_msgSender(), 1, mintPassTokenId);

        emit Claimed(tokenId, _msgSender());
    }

    function tokenURI(uint256 tokenId)
        public
        view
        virtual
        override(ERC721, ERC721URIStorage)
        returns (string memory)
    {
        string memory tokenURI_ = super.tokenURI(tokenId);
        if (bytes(tokenURI_).length == 0) {
            return mintPassTokenURIs[burnedMintPass[tokenId]];
        }
        return tokenURI_;
    }

    /*
     * @dev Integrations can mint in case we want to change the mechanism
     */
    function mint(
        address to,
        uint256 amount,
        uint256 mintPassTokenId
    ) public onlyAuthorized {
        _mintPrivate(to, amount, mintPassTokenId);
    }

    /*
     * @note For OpenSea Integration
     */
    function owner() public view returns (address) {
        return getRoleMember(DEFAULT_ADMIN_ROLE, 0);
    }

    function setMintPassContract(address _address) public onlyAuthorized {
        mintPassContract = IERC1155Burnable(_address);
    }

    function setMintPassTokenURI(
        uint256 mintPassTokenId,
        string memory mintPassTokenURI
    ) public onlyAuthorized {
        mintPassTokenURIs[mintPassTokenId] = mintPassTokenURI;
    }

    function pauseClaiming() public onlyAuthorized {
        _pause();
    }

    function unpauseClaiming() public onlyAuthorized {
        _unpause();
    }

    function reveal(uint256 tokenId, string memory revealedTokenURI)
        public
        onlyAuthorized
    {
        require(
            bytes(super.tokenURI(tokenId)).length == 0,
            "Token already revealed"
        );
        _setTokenURI(tokenId, revealedTokenURI);

        // Freeze metadata
        emit PermanentURI(revealedTokenURI, tokenId);
    }

    /*
     * @dev Only admin can update the signer. No integrations.
     */
    function setMintingSigner(address _signer)
        public
        onlyRole(DEFAULT_ADMIN_ROLE)
    {
        _setMintingSigner(_signer);
    }

    /*
     * @dev Function access control handled by AccessControl contract
     * @dev Internal role admin check resolves to DEFAULT_ADMIN_ROLE at 0x00
     */
    function addIntegration(address account) public {
        grantRole(INTEGRATION_ROLE, account);
    }

    /*
     * @dev Function access control handled by AccessControl contract
     * @dev Internal role admin check resolves to DEFAULT_ADMIN_ROLE at 0x00
     */
    function removeIntegration(address account) public {
        require(account != _msgSender(), "Cannot remove yourself");
        revokeRole(INTEGRATION_ROLE, account);
    }

    /*
     * @dev Function access control handled by AccessControl contract
     * @dev Internal role admin check resolves to DEFAULT_ADMIN_ROLE at 0x00
     */
    function grantAdminRole(address account) public {
        grantRole(DEFAULT_ADMIN_ROLE, account);
    }

    /*
     * @dev Function access control handled by AccessControl contract
     * @dev Internal role admin check resolves to DEFAULT_ADMIN_ROLE at 0x00
     */
    function removeAdminRole(address account) public {
        require(account != _msgSender(), "Cannot revoke yourself");
        revokeRole(DEFAULT_ADMIN_ROLE, account);
    }

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

    function _burn(uint256 tokenId)
        internal
        virtual
        override(ERC721URIStorage, ERC721)
    {}

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

    function _grantRole(bytes32 role, address account)
        internal
        virtual
        override
    {
        require(
            role != INTEGRATION_ROLE || account.isContract(),
            "Integration must be a contract"
        );
        super._grantRole(role, account);
    }

    function _mintPrivate(
        address to,
        uint256 amount,
        uint256 mintPassTokenId
    ) private {
        for (uint256 i = 0; i < amount; i++) {
            uint256 tokenId = totalSupply();
            _safeMint(to, tokenId);
            burnedMintPass[tokenId] = mintPassTokenId;
        }
    }

    modifier onlyAuthorized() {
        require(
            hasRole(INTEGRATION_ROLE, _msgSender()) ||
                hasRole(DEFAULT_ADMIN_ROLE, _msgSender()),
            "Not authorized to perform that action"
        );
        _;
    }
}

File 2 of 26 : AccessControlEnumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (access/AccessControlEnumerable.sol)

pragma solidity ^0.8.0;

import "./IAccessControlEnumerable.sol";
import "./AccessControl.sol";
import "../utils/structs/EnumerableSet.sol";

/**
 * @dev Extension of {AccessControl} that allows enumerating the members of each role.
 */
abstract contract AccessControlEnumerable is IAccessControlEnumerable, AccessControl {
    using EnumerableSet for EnumerableSet.AddressSet;

    mapping(bytes32 => EnumerableSet.AddressSet) private _roleMembers;

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

    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index) public view override returns (address) {
        return _roleMembers[role].at(index);
    }

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) public view override returns (uint256) {
        return _roleMembers[role].length();
    }

    /**
     * @dev Overload {_grantRole} to track enumerable memberships
     */
    function _grantRole(bytes32 role, address account) internal virtual override {
        super._grantRole(role, account);
        _roleMembers[role].add(account);
    }

    /**
     * @dev Overload {_revokeRole} to track enumerable memberships
     */
    function _revokeRole(bytes32 role, address account) internal virtual override {
        super._revokeRole(role, account);
        _roleMembers[role].remove(account);
    }
}

File 3 of 26 : PaymentSplitter.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.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.
 *
 * `PaymentSplitter` follows a _pull payment_ model. This means that payments are not automatically forwarded to the
 * accounts but kept in this contract, and the actual transfer is triggered as a separate step by calling the {release}
 * function.
 *
 * NOTE: This contract assumes that ERC20 tokens will behave similarly to native tokens (Ether). Rebasing tokens, and
 * tokens that apply fees during transfers, are likely to not be supported as expected. If in doubt, we encourage you
 * to run tests before sending real value to this contract.
 */
contract PaymentSplitter is Context {
    event PayeeAdded(address account, uint256 shares);
    event PaymentReleased(address to, uint256 amount);
    event ERC20PaymentReleased(IERC20 indexed token, address to, uint256 amount);
    event PaymentReceived(address from, uint256 amount);

    uint256 private _totalShares;
    uint256 private _totalReleased;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 4 of 26 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (security/Pausable.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 5 of 26 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

File 6 of 26 : IERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC1155/IERC1155.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Required interface of an ERC1155 compliant contract, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1155[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155 is IERC165 {
    /**
     * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
     */
    event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);

    /**
     * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
     * transfers.
     */
    event TransferBatch(
        address indexed operator,
        address indexed from,
        address indexed to,
        uint256[] ids,
        uint256[] values
    );

    /**
     * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
     * `approved`.
     */
    event ApprovalForAll(address indexed account, address indexed operator, bool approved);

    /**
     * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
     *
     * If an {URI} event was emitted for `id`, the standard
     * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
     * returned by {IERC1155MetadataURI-uri}.
     */
    event URI(string value, uint256 indexed id);

    /**
     * @dev Returns the amount of tokens of token type `id` owned by `account`.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) external view returns (uint256);

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids)
        external
        view
        returns (uint256[] memory);

    /**
     * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
     *
     * Emits an {ApprovalForAll} event.
     *
     * Requirements:
     *
     * - `operator` cannot be the caller.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
     *
     * See {setApprovalForAll}.
     */
    function isApprovedForAll(address account, address operator) external view returns (bool);

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes calldata data
    ) external;

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes calldata data
    ) external;
}

File 7 of 26 : ERC721URIStorage.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/ERC721URIStorage.sol)

pragma solidity ^0.8.0;

import "../ERC721.sol";

/**
 * @dev ERC721 token with storage based token URI management.
 */
abstract contract ERC721URIStorage is ERC721 {
    using Strings for uint256;

    // Optional mapping for token URIs
    mapping(uint256 => string) private _tokenURIs;

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

        string memory _tokenURI = _tokenURIs[tokenId];
        string memory base = _baseURI();

        // If there is no base URI, return the token URI.
        if (bytes(base).length == 0) {
            return _tokenURI;
        }
        // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked).
        if (bytes(_tokenURI).length > 0) {
            return string(abi.encodePacked(base, _tokenURI));
        }

        return super.tokenURI(tokenId);
    }

    /**
     * @dev Sets `_tokenURI` as the tokenURI of `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual {
        require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token");
        _tokenURIs[tokenId] = _tokenURI;
    }

    /**
     * @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 override {
        super._burn(tokenId);

        if (bytes(_tokenURIs[tokenId]).length != 0) {
            delete _tokenURIs[tokenId];
        }
    }
}

File 8 of 26 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/ERC721Enumerable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 9 of 26 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Address.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 10 of 26 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

File 11 of 26 : SignedMinting.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/Address.sol";

//🎩🐭 fancyrats.eth

contract SignedMinting {
    using ECDSA for bytes32;
    using Address for address;

    address public signer;

    constructor(address _signer) {
        signer = _signer;
    }

    function _setMintingSigner(address _signer) internal {
        signer = _signer;
    }

    // Assumes the signed message was human-readable msg.sender address (lowercase, without the '0x')
    function validateSignature(bytes memory signature)
        internal
        view
        returns (bool)
    {
        bytes32 messageHash = toEthSignedMessageHash(asciiSender());
        address _signer = messageHash.recover(signature);
        return signer == _signer;
    }

    modifier isValidSignature(bytes memory signature) {
        require(validateSignature(signature), "Invalid whitelist signature");
        _;
    }

    function recoveredAddress(bytes memory signature)
        public
        view
        returns (bytes memory)
    {
        address recoveredSigner = recover(signature);
        return abi.encodePacked(recoveredSigner);
    }

    function recover(bytes memory signature) public view returns (address) {
        bytes32 messageHash = toEthSignedMessageHash(asciiSender());
        address recoveredSigner = messageHash.recover(signature);
        return recoveredSigner;
    }

    function generateSenderHash() public view returns (bytes32) {
        return toEthSignedMessageHash(asciiSender());
    }

    // Because at time of writing, 5b28259dacf47fc208e03611eb3ba8eeaed63cc0 hasn't made it into
    // OpenZepplin ECDSA release yet.
    // https://github.com/OpenZeppelin/openzeppelin-contracts/commit/5b28259dacf47fc208e03611eb3ba8eeaed63cc0#diff-ff09871806bcccfd38e43de481f3e7e2fb92134c58e1a1f97b054e2d0d727458R209
    function toEthSignedMessageHash(string memory s)
        public
        pure
        returns (bytes32)
    {
        bytes memory b = bytes(s);
        return
            keccak256(
                abi.encodePacked(
                    "\x19Ethereum Signed Message:\n",
                    Strings.toString(b.length),
                    b
                )
            );
    }

    function asciiSender() public view returns (string memory) {
        return toAsciiString(msg.sender);
    }

    function toAsciiString(address x) internal pure returns (string memory) {
        bytes memory s = new bytes(40);
        for (uint256 i = 0; i < 20; i++) {
            bytes1 b = bytes1(uint8(uint256(uint160(x)) / (2**(8 * (19 - i)))));
            bytes1 hi = bytes1(uint8(b) / 16);
            bytes1 lo = bytes1(uint8(b) - 16 * uint8(hi));
            s[2 * i] = char(hi);
            s[2 * i + 1] = char(lo);
        }
        return string(s);
    }

    function char(bytes1 b) internal pure returns (bytes1 c) {
        if (uint8(b) < 10) return bytes1(uint8(b) + 0x30);
        else return bytes1(uint8(b) + 0x57);
    }
}

File 12 of 26 : IAccessControlEnumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (access/IAccessControlEnumerable.sol)

pragma solidity ^0.8.0;

import "./IAccessControl.sol";

/**
 * @dev External interface of AccessControlEnumerable declared to support ERC165 detection.
 */
interface IAccessControlEnumerable is IAccessControl {
    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index) external view returns (address);

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) external view returns (uint256);
}

File 13 of 26 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (access/AccessControl.sol)

pragma solidity ^0.8.0;

import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role, _msgSender());
        _;
    }

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

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(uint160(account), 20),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been revoked `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     *
     * NOTE: This function is deprecated in favor of {_grantRole}.
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * Internal function without access restriction.
     */
    function _grantRole(bytes32 role, address account) internal virtual {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * Internal function without access restriction.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

File 14 of 26 : EnumerableSet.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/structs/EnumerableSet.sol)

pragma solidity ^0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;
        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping(bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) {
            // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            if (lastIndex != toDeleteIndex) {
                bytes32 lastvalue = set._values[lastIndex];

                // Move the last value to the index where the value to delete is
                set._values[toDeleteIndex] = lastvalue;
                // Update the index for the moved value
                set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex
            }

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        return set._values[index];
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function _values(Set storage set) private view returns (bytes32[] memory) {
        return set._values;
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
        return _values(set._inner);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(AddressSet storage set) internal view returns (address[] memory) {
        bytes32[] memory store = _values(set._inner);
        address[] memory result;

        assembly {
            result := store
        }

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(UintSet storage set) internal view returns (uint256[] memory) {
        bytes32[] memory store = _values(set._inner);
        uint256[] memory result;

        assembly {
            result := store
        }

        return result;
    }
}

File 15 of 26 : IAccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}

File 16 of 26 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 17 of 26 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 18 of 26 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 19 of 26 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 20 of 26 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 21 of 26 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

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

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

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

File 22 of 26 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.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`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

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

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

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

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

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

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

File 23 of 26 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.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 `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 24 of 26 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 25 of 26 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.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 tokenId);

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

File 26 of 26 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.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
    }

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

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

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

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

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

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

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

        return (signer, RecoverError.NoError);
    }

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"signer","type":"address"},{"internalType":"address","name":"adminAddress","type":"address"},{"internalType":"address[]","name":"payees","type":"address[]"},{"internalType":"uint256[]","name":"shares_","type":"uint256[]"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_id","type":"uint256"},{"indexed":false,"internalType":"address","name":"by","type":"address"}],"name":"Claimed","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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","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":false,"internalType":"string","name":"_value","type":"string"},{"indexed":true,"internalType":"uint256","name":"_id","type":"uint256"}],"name":"PermanentURI","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"INTEGRATION_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"addIntegration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"asciiSender","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"uint256","name":"mintPassTokenId","type":"uint256"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"generateSenderHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"grantAdminRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","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":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"mintPassTokenId","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pauseClaiming","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"payee","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"recover","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"recoveredAddress","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"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":[{"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":[{"internalType":"address","name":"account","type":"address"}],"name":"removeAdminRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"removeIntegration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"revealedTokenURI","type":"string"}],"name":"reveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","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":"address","name":"_address","type":"address"}],"name":"setMintPassContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"mintPassTokenId","type":"uint256"},{"internalType":"string","name":"mintPassTokenURI","type":"string"}],"name":"setMintPassTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signer","type":"address"}],"name":"setMintingSigner","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":"signer","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":[{"internalType":"string","name":"s","type":"string"}],"name":"toEthSignedMessageHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"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":[],"name":"unpauseClaiming","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040523480156200001157600080fd5b5060405162004dbb38038062004dbb833981016040819052620000349162000801565b60408051808201825260078082526614d5549491505360ca1b60208084018281528551808701909652928552840152815187938693869390926200007b91600291620006c7565b50805162000091906003906020840190620006c7565b5050508051825114620001065760405162461bcd60e51b815260206004820152603260248201527f5061796d656e7453706c69747465723a2070617965657320616e6420736861726044820152710cae640d8cadccee8d040dad2e6dac2e8c6d60731b60648201526084015b60405180910390fd5b6000825111620001595760405162461bcd60e51b815260206004820152601a60248201527f5061796d656e7453706c69747465723a206e6f207061796565730000000000006044820152606401620000fd565b60005b8251811015620001dd57620001c88382815181106200018b57634e487b7160e01b600052603260045260246000fd5b6020026020010151838381518110620001b457634e487b7160e01b600052603260045260246000fd5b60200260200101516200023060201b60201c565b80620001d481620009a9565b9150506200015c565b50506014805460ff19169055506001601555601680546001600160a01b0319166001600160a01b0392909216919091179055620002196200041e565b62000226600084620004b9565b50505050620009f3565b6001600160a01b0382166200029d5760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b6064820152608401620000fd565b60008111620002ef5760405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a207368617265732061726520300000006044820152606401620000fd565b6001600160a01b0382166000908152600f6020526040902054156200036b5760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b6064820152608401620000fd565b60118054600181019091557f31ecc21a745e3968a04e9570e4425bc18fa8019c68028196b546d1669c200c680180546001600160a01b0319166001600160a01b0384169081179091556000908152600f60205260409020819055600d54620003d590829062000951565b600d55604080516001600160a01b0384168152602081018390527f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac910160405180910390a15050565b60145460ff1615620004665760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401620000fd565b6014805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586200049c3390565b6040516001600160a01b03909116815260200160405180910390a1565b7f5f924c6b1faae42f36fa6b66af882e9a987aefb9164fceeea420ca4168959c668214158062000503575062000503816001600160a01b03166200056c60201b62001ad01760201c565b620005515760405162461bcd60e51b815260206004820152601e60248201527f496e746567726174696f6e206d757374206265206120636f6e747261637400006044820152606401620000fd565b6200056882826200057260201b62001ad61760201c565b5050565b3b151590565b620005898282620005b560201b62001af81760201c565b6000828152600160209081526040909120620005b091839062001b7c62000655821b17901c565b505050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1662000568576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055620006113390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60006200066c836001600160a01b03841662000675565b90505b92915050565b6000818152600183016020526040812054620006be575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556200066f565b5060006200066f565b828054620006d5906200096c565b90600052602060002090601f016020900481019282620006f9576000855562000744565b82601f106200071457805160ff191683800117855562000744565b8280016001018555821562000744579182015b828111156200074457825182559160200191906001019062000727565b506200075292915062000756565b5090565b5b8082111562000752576000815560010162000757565b80516001600160a01b03811681146200078557600080fd5b919050565b600082601f8301126200079b578081fd5b81516020620007b4620007ae836200092b565b620008f8565b80838252828201915082860187848660051b8901011115620007d4578586fd5b855b85811015620007f457815184529284019290840190600101620007d6565b5090979650505050505050565b6000806000806080858703121562000817578384fd5b62000822856200076d565b93506020620008338187016200076d565b60408701519094506001600160401b038082111562000850578485fd5b818801915088601f83011262000864578485fd5b815162000875620007ae826200092b565b8082825285820191508585018c878560051b880101111562000895578889fd5b8895505b83861015620008c257620008ad816200076d565b83526001959095019491860191860162000899565b5060608b01519097509450505080831115620008dc578384fd5b5050620008ec878288016200078a565b91505092959194509250565b604051601f8201601f191681016001600160401b0381118282101715620009235762000923620009dd565b604052919050565b60006001600160401b03821115620009475762000947620009dd565b5060051b60200190565b60008219821115620009675762000967620009c7565b500190565b600181811c908216806200098157607f821691505b60208210811415620009a357634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415620009c057620009c0620009c7565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6143b88062000a036000396000f3fe6080604052600436106102695760003560e01c806301ffc9a7146102ae57806306fdde03146102e3578063081812fc14610305578063095ea7b314610332578063156e29f61461035457806318160ddd14610374578063191655871461039357806322cdbe6a146103b3578063238ac933146103d557806323b872dd146103f5578063248a9ca3146104155780632f2ff15d146104355780632f745c59146104555780632fa4548b14610475578063346d14ae1461049557806336568abe146104aa5780633a33f3e0146104ca5780633a98ef39146104ea5780633ff8035b146104ff578063406072a91461051457806340838f741461053457806342842e0e1461054957806348b75044146105695780634f6ccce7146105895780635c975abb146105a95780636352211e146105c157806370a08231146105e157806372fc363614610601578063735d2a27146106215780638b83209b146106415780638da5cb5b146106615780639010d07c1461067657806391d148541461069657806395d89b41146106b65780639852595c146106cb5780639c6add8e146106eb578063a217fddf1461070b578063a22cb46514610720578063a4a1edb114610740578063a5f6029014610760578063aad2816e14610780578063b88d4fde14610795578063bc56641b146107b5578063beb4018c146107d5578063c634b78e146107f5578063c87b56dd14610815578063ca15c87314610835578063ce7c2ac214610855578063d547741f1461088b578063d720f9da146108ab578063d79779b2146108cb578063dccfe310146108eb578063e33b7de31461090b578063e985e9c51461092057600080fd5b366102a9577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be770333460405161029f929190613e36565b60405180910390a1005b600080fd5b3480156102ba57600080fd5b506102ce6102c9366004613bc9565b610940565b60405190151581526020015b60405180910390f35b3480156102ef57600080fd5b506102f861096f565b6040516102da9190613e8c565b34801561031157600080fd5b50610325610320366004613b6c565b610a01565b6040516102da9190613e22565b34801561033e57600080fd5b5061035261034d366004613af1565b610a8e565b005b34801561036057600080fd5b5061035261036f366004613b1c565b610b9f565b34801561038057600080fd5b50600b545b6040519081526020016102da565b34801561039f57600080fd5b506103526103ae3660046139c7565b610bef565b3480156103bf57600080fd5b5061038560008051602061436383398151915281565b3480156103e157600080fd5b50601654610325906001600160a01b031681565b34801561040157600080fd5b50610352610410366004613a1b565b610cfe565b34801561042157600080fd5b50610385610430366004613b6c565b610d2f565b34801561044157600080fd5b50610352610450366004613b84565b610d44565b34801561046157600080fd5b50610385610470366004613af1565b610d61565b34801561048157600080fd5b50610352610490366004613c9f565b610df7565b3480156104a157600080fd5b506102f8610ed2565b3480156104b657600080fd5b506103526104c5366004613b84565b610ee2565b3480156104d657600080fd5b506103526104e5366004613c33565b610f60565b3480156104f657600080fd5b50600d54610385565b34801561050b57600080fd5b506103526111c6565b34801561052057600080fd5b5061038561052f366004613c75565b611215565b34801561054057600080fd5b50610385611240565b34801561055557600080fd5b50610352610564366004613a1b565b61124d565b34801561057557600080fd5b50610352610584366004613c75565b611268565b34801561059557600080fd5b506103856105a4366004613b6c565b61141e565b3480156105b557600080fd5b5060145460ff166102ce565b3480156105cd57600080fd5b506103256105dc366004613b6c565b6114bf565b3480156105ed57600080fd5b506103856105fc3660046139c7565b611536565b34801561060d57600080fd5b5061035261061c366004613c9f565b6115bd565b34801561062d57600080fd5b5061035261063c3660046139c7565b611621565b34801561064d57600080fd5b5061032561065c366004613b6c565b611688565b34801561066d57600080fd5b506103256116c6565b34801561068257600080fd5b50610325610691366004613ba8565b6116ce565b3480156106a257600080fd5b506102ce6106b1366004613b84565b6116ed565b3480156106c257600080fd5b506102f8611716565b3480156106d757600080fd5b506103856106e63660046139c7565b611725565b3480156106f757600080fd5b506102f8610706366004613c01565b611740565b34801561071757600080fd5b50610385600081565b34801561072c57600080fd5b5061035261073b366004613ac4565b611782565b34801561074c57600080fd5b5061032561075b366004613c01565b61178d565b34801561076c57600080fd5b5061035261077b3660046139c7565b6117b1565b34801561078c57600080fd5b506103526117dc565b3480156107a157600080fd5b506103526107b0366004613a5b565b611829565b3480156107c157600080fd5b506103526107d03660046139c7565b611861565b3480156107e157600080fd5b506103526107f03660046139c7565b6118ce565b34801561080157600080fd5b506103526108103660046139c7565b6118e6565b34801561082157600080fd5b506102f8610830366004613b6c565b6118f1565b34801561084157600080fd5b50610385610850366004613b6c565b6119b6565b34801561086157600080fd5b506103856108703660046139c7565b6001600160a01b03166000908152600f602052604090205490565b34801561089757600080fd5b506103526108a6366004613b84565b6119cd565b3480156108b757600080fd5b506103856108c6366004613c01565b6119ea565b3480156108d757600080fd5b506103856108e63660046139c7565b611a2a565b3480156108f757600080fd5b506103526109063660046139c7565b611a45565b34801561091757600080fd5b50600e54610385565b34801561092c57600080fd5b506102ce61093b3660046139e3565b611aa2565b600061094b82611b91565b8061095a575061095a82611bb6565b80610969575061096982611bf6565b92915050565b60606002805461097e9061425d565b80601f01602080910402602001604051908101604052809291908181526020018280546109aa9061425d565b80156109f75780601f106109cc576101008083540402835291602001916109f7565b820191906000526020600020905b8154815290600101906020018083116109da57829003601f168201915b5050505050905090565b6000610a0c82611c1b565b610a725760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610a99826114bf565b9050806001600160a01b0316836001600160a01b03161415610b075760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610a69565b336001600160a01b0382161480610b235750610b238133611aa2565b610b905760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776044820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b6064820152608401610a69565b610b9a8383611c38565b505050565b610bb7600080516020614363833981519152336116ed565b80610bc85750610bc86000336116ed565b610be45760405162461bcd60e51b8152600401610a6990613fac565b610b9a838383611ca6565b6001600160a01b0381166000908152600f6020526040902054610c245760405162461bcd60e51b8152600401610a6990613ef1565b6000610c2f600e5490565b610c399047614042565b90506000610c508383610c4b86611725565b611ceb565b905080610c6f5760405162461bcd60e51b8152600401610a6990613f37565b6001600160a01b03831660009081526010602052604081208054839290610c97908490614042565b9250508190555080600e6000828254610cb09190614042565b90915550610cc090508382611d29565b7fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b0568382604051610cf1929190613e36565b60405180910390a1505050565b610d083382611e3f565b610d245760405162461bcd60e51b8152600401610a6990613ff1565b610b9a838383611f01565b60009081526020819052604090206001015490565b610d4d82610d2f565b610d57813361209a565b610b9a83836120fe565b6000610d6c83611536565b8210610dce5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610a69565b506001600160a01b03919091166000908152600960209081526040808320938352929052205490565b610e0f600080516020614363833981519152336116ed565b80610e205750610e206000336116ed565b610e3c5760405162461bcd60e51b8152600401610a6990613fac565b610e458261217a565b5115610e8c5760405162461bcd60e51b8152602060048201526016602482015275151bdad95b88185b1c9958591e481c995d99585b195960521b6044820152606401610a69565b610e9682826122e9565b817fa109ba539900bf1b633f956d63c96fc89b814c7287f7aa50a9216d0b5565720782604051610ec69190613e8c565b60405180910390a25050565b6060610edd33612374565b905090565b6001600160a01b0381163314610f525760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610a69565b610f5c82826124d7565b5050565b60145460ff1615610f835760405162461bcd60e51b8152600401610a6990613f82565b60026015541415610fd65760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a69565b600260155581610fe5816124f9565b61102f5760405162461bcd60e51b815260206004820152601b60248201527a496e76616c69642077686974656c697374207369676e617475726560281b6044820152606401610a69565b601954604051627eeac760e11b81526000916001600160a01b03169062fdd58e906110609033908790600401613e36565b60206040518083038186803b15801561107857600080fd5b505afa15801561108c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110b09190613c87565b116110f15760405162461bcd60e51b81526020600482015260116024820152704d757374206f776e206d696e747061737360781b6044820152606401610a69565b6019546001600160a01b031663f5298aca336040516001600160e01b031960e084901b1681526001600160a01b0390911660048201526024810185905260016044820152606401600060405180830381600087803b15801561115257600080fd5b505af1158015611166573d6000803e3d6000fd5b505050506000611175600b5490565b905061118333600185611ca6565b807f6aa3eac93d079e5e100b1029be716caa33586c96aa4baac390669fb5c2a21212336040516111b39190613e22565b60405180910390a2505060016015555050565b6111de600080516020614363833981519152336116ed565b806111ef57506111ef6000336116ed565b61120b5760405162461bcd60e51b8152600401610a6990613fac565b61121361252e565b565b6001600160a01b03918216600090815260136020908152604080832093909416825291909152205490565b6000610edd6108c6610ed2565b610b9a83838360405180602001604052806000815250611829565b6001600160a01b0381166000908152600f602052604090205461129d5760405162461bcd60e51b8152600401610a6990613ef1565b60006112a883611a2a565b6040516370a0823160e01b81526001600160a01b038516906370a08231906112d4903090600401613e22565b60206040518083038186803b1580156112ec57600080fd5b505afa158015611300573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113249190613c87565b61132e9190614042565b905060006113418383610c4b8787611215565b9050806113605760405162461bcd60e51b8152600401610a6990613f37565b6001600160a01b03808516600090815260136020908152604080832093871683529290529081208054839290611397908490614042565b90915550506001600160a01b038416600090815260126020526040812080548392906113c4908490614042565b909155506113d590508484836125bb565b836001600160a01b03167f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a8483604051611410929190613e36565b60405180910390a250505050565b6000611429600b5490565b821061148c5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610a69565b600b82815481106114ad57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6000818152600460205260408120546001600160a01b0316806109695760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610a69565b60006001600160a01b0382166115a15760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610a69565b506001600160a01b031660009081526005602052604090205490565b6115d5600080516020614363833981519152336116ed565b806115e657506115e66000336116ed565b6116025760405162461bcd60e51b8152600401610a6990613fac565b60008281526017602090815260409091208251610b9a928401906138a8565b611639600080516020614363833981519152336116ed565b8061164a575061164a6000336116ed565b6116665760405162461bcd60e51b8152600401610a6990613fac565b601980546001600160a01b0319166001600160a01b0392909216919091179055565b6000601182815481106116ab57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031692915050565b6000610edd81805b60008281526001602052604081206116e69083612611565b9392505050565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b60606003805461097e9061425d565b6001600160a01b031660009081526010602052604090205490565b6060600061174d8361178d565b6040516001600160601b0319606083901b1660208201529091506034015b604051602081830303815290604052915050919050565b610f5c33838361261d565b60008061179b6108c6610ed2565b905060006117a982856126e8565b949350505050565b60006117bd813361209a565b601680546001600160a01b0319166001600160a01b0384161790555050565b6117f4600080516020614363833981519152336116ed565b8061180557506118056000336116ed565b6118215760405162461bcd60e51b8152600401610a6990613fac565b61121361270c565b6118333383611e3f565b61184f5760405162461bcd60e51b8152600401610a6990613ff1565b61185b84848484612764565b50505050565b6001600160a01b0381163314156118b35760405162461bcd60e51b815260206004820152601660248201527521b0b73737ba103932b6b7bb32903cb7bab939b2b63360511b6044820152606401610a69565b6118cb600080516020614363833981519152826119cd565b50565b6118cb60008051602061436383398151915282610d44565b6118cb600082610d44565b606060006118fe8361217a565b90508051600014156109695760008381526018602090815260408083205483526017909152902080546119309061425d565b80601f016020809104026020016040519081016040528092919081815260200182805461195c9061425d565b80156119a95780601f1061197e576101008083540402835291602001916119a9565b820191906000526020600020905b81548152906001019060200180831161198c57829003601f168201915b5050505050915050919050565b600081815260016020526040812061096990612797565b6119d682610d2f565b6119e0813361209a565b610b9a83836124d7565b6000808290506119fa81516127a1565b81604051602001611a0c929190613d5a565b60405160208183030381529060405280519060200120915050919050565b6001600160a01b031660009081526012602052604090205490565b6001600160a01b038116331415611a975760405162461bcd60e51b815260206004820152601660248201527521b0b73737ba103932bb37b5b2903cb7bab939b2b63360511b6044820152606401610a69565b6118cb6000826119cd565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b3b151590565b611ae08282611af8565b6000828152600160205260409020610b9a9082611b7c565b611b0282826116ed565b610f5c576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055611b383390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60006116e6836001600160a01b0384166128ba565b60006001600160e01b03198216635a05180f60e01b1480610969575061096982612909565b60006001600160e01b031982166380ac58cd60e01b1480611be757506001600160e01b03198216635b5e139f60e01b145b80610969575061096982611b91565b60006001600160e01b0319821663780e9d6360e01b1480610969575061096982611bb6565b6000908152600460205260409020546001600160a01b0316151590565b600081815260066020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611c6d826114bf565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60005b8281101561185b576000611cbc600b5490565b9050611cc8858261293e565b600090815260186020526040902082905580611ce381614298565b915050611ca9565b600d546001600160a01b0384166000908152600f602052604081205490918391611d1590866141a0565b611d1f919061407f565b6117a991906141e0565b80471015611d795760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610a69565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611dc6576040519150601f19603f3d011682016040523d82523d6000602084013e611dcb565b606091505b5050905080610b9a5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c20726044820152791958da5c1a595b9d081b585e481a185d99481c995d995c9d195960321b6064820152608401610a69565b6000611e4a82611c1b565b611eab5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a69565b6000611eb6836114bf565b9050806001600160a01b0316846001600160a01b03161480611ef15750836001600160a01b0316611ee684610a01565b6001600160a01b0316145b806117a957506117a98185611aa2565b826001600160a01b0316611f14826114bf565b6001600160a01b031614611f7c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610a69565b6001600160a01b038216611fde5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610a69565b611fe9838383612958565b611ff4600082611c38565b6001600160a01b038316600090815260056020526040812080546001929061201d9084906141e0565b90915550506001600160a01b038216600090815260056020526040812080546001929061204b908490614042565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b03868116918217909255915184939187169160008051602061434383398151915291a4505050565b6120a482826116ed565b610f5c576120bc816001600160a01b03166014612963565b6120c7836020612963565b6040516020016120d8929190613db3565b60408051601f198184030181529082905262461bcd60e51b8252610a6991600401613e8c565b6000805160206143638339815191528214158061212457506001600160a01b0381163b15155b6121705760405162461bcd60e51b815260206004820152601e60248201527f496e746567726174696f6e206d757374206265206120636f6e747261637400006044820152606401610a69565b610f5c8282611ad6565b606061218582611c1b565b6121eb5760405162461bcd60e51b815260206004820152603160248201527f45524337323155524953746f726167653a2055524920717565727920666f72206044820152703737b732bc34b9ba32b73a103a37b5b2b760791b6064820152608401610a69565b600082815260086020526040812080546122049061425d565b80601f01602080910402602001604051908101604052809291908181526020018280546122309061425d565b801561227d5780601f106122525761010080835404028352916020019161227d565b820191906000526020600020905b81548152906001019060200180831161226057829003601f168201915b50505050509050600061229b60408051602081019091526000815290565b90508051600014156122ae575092915050565b8151156122e05780826040516020016122c8929190613d2b565b60405160208183030381529060405292505050919050565b6117a984612b44565b6122f282611c1b565b6123555760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b6064820152608401610a69565b60008281526008602090815260409091208251610b9a928401906138a8565b60408051602880825260608281019093526000919060208201818036833701905050905060005b60148110156124d05760006123b18260136141e0565b6123bc9060086141a0565b6123c79060026140f8565b6123da906001600160a01b03871661407f565b60f81b9050600060108260f81c6123f19190614093565b60f81b905060008160f81c601061240891906141bf565b8360f81c61241691906141f7565b60f81b905061242482612c05565b856124308660026141a0565b8151811061244e57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535061246e81612c05565b8561247a8660026141a0565b612485906001614042565b815181106124a357634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535050505080806124c890614298565b91505061239b565b5092915050565b6124e18282612c3b565b6000828152600160205260409020610b9a9082612ca0565b6000806125076108c6610ed2565b9050600061251582856126e8565b6016546001600160a01b03908116911614949350505050565b60145460ff166125775760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610a69565b6014805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516125b19190613e22565b60405180910390a1565b610b9a8363a9059cbb60e01b84846040516024016125da929190613e36565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152612cb5565b60006116e68383612d87565b816001600160a01b0316836001600160a01b0316141561267b5760405162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b6044820152606401610a69565b6001600160a01b03838116600081815260076020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b60008060006126f78585612dbf565b9150915061270481612e2f565b509392505050565b60145460ff161561272f5760405162461bcd60e51b8152600401610a6990613f82565b6014805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586125a43390565b61276f848484611f01565b61277b8484848461302b565b61185b5760405162461bcd60e51b8152600401610a6990613e9f565b6000610969825490565b6060816127c55750506040805180820190915260018152600360fc1b602082015290565b8160005b81156127ef57806127d981614298565b91506127e89050600a8361407f565b91506127c9565b6000816001600160401b0381111561281757634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612841576020820181803683370190505b5090505b84156117a9576128566001836141e0565b9150612863600a866142b3565b61286e906030614042565b60f81b81838151811061289157634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506128b3600a8661407f565b9450612845565b600081815260018301602052604081205461290157508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610969565b506000610969565b60006001600160e01b03198216637965db0b60e01b148061096957506301ffc9a760e01b6001600160e01b0319831614610969565b610f5c828260405180602001604052806000815250613138565b610b9a83838361316b565b606060006129728360026141a0565b61297d906002614042565b6001600160401b038111156129a257634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156129cc576020820181803683370190505b509050600360fc1b816000815181106129f557634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110612a3257634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506000612a568460026141a0565b612a61906001614042565b90505b6001811115612af5576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110612aa357634e487b7160e01b600052603260045260246000fd5b1a60f81b828281518110612ac757634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c93612aee81614246565b9050612a64565b5083156116e65760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610a69565b6060612b4f82611c1b565b612bb35760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610a69565b6000612bca60408051602081019091526000815290565b90506000815111612bea57604051806020016040528060008152506116e6565b80612bf4846127a1565b60405160200161176b929190613d2b565b6000600a60f883901c1015612c2c57612c2360f883901c603061405a565b60f81b92915050565b612c2360f883901c605761405a565b612c4582826116ed565b15610f5c576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60006116e6836001600160a01b038416613223565b6000612d0a826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166133409092919063ffffffff16565b805190915015610b9a5780806020019051810190612d289190613b50565b610b9a5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610a69565b6000826000018281548110612dac57634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905092915050565b600080825160411415612df65760208301516040840151606085015160001a612dea8782858561334f565b94509450505050612e28565b825160401415612e205760208301516040840151612e15868383613432565b935093505050612e28565b506000905060025b9250929050565b6000816004811115612e5157634e487b7160e01b600052602160045260246000fd5b1415612e5a5750565b6001816004811115612e7c57634e487b7160e01b600052602160045260246000fd5b1415612ec55760405162461bcd60e51b815260206004820152601860248201527745434453413a20696e76616c6964207369676e617475726560401b6044820152606401610a69565b6002816004811115612ee757634e487b7160e01b600052602160045260246000fd5b1415612f355760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610a69565b6003816004811115612f5757634e487b7160e01b600052602160045260246000fd5b1415612fb05760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610a69565b6004816004811115612fd257634e487b7160e01b600052602160045260246000fd5b14156118cb5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610a69565b60006001600160a01b0384163b1561312d57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061306f903390899088908890600401613e4f565b602060405180830381600087803b15801561308957600080fd5b505af19250505080156130b9575060408051601f3d908101601f191682019092526130b691810190613be5565b60015b613113573d8080156130e7576040519150601f19603f3d011682016040523d82523d6000602084013e6130ec565b606091505b50805161310b5760405162461bcd60e51b8152600401610a6990613e9f565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506117a9565b506001949350505050565b6131428383613461565b61314f600084848461302b565b610b9a5760405162461bcd60e51b8152600401610a6990613e9f565b6001600160a01b0383166131c6576131c181600b80546000838152600c60205260408120829055600182018355919091527f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db90155565b6131e9565b816001600160a01b0316836001600160a01b0316146131e9576131e9838261358d565b6001600160a01b03821661320057610b9a8161362a565b826001600160a01b0316826001600160a01b031614610b9a57610b9a8282613703565b600081815260018301602052604081205480156133365760006132476001836141e0565b855490915060009061325b906001906141e0565b90508181146132dc57600086600001828154811061328957634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050808760000184815481106132ba57634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255918252600188019052604090208390555b85548690806132fb57634e487b7160e01b600052603160045260246000fd5b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610969565b6000915050610969565b60606117a98484600085613747565b6000806fa2a8918ca85bafe22016d0b997e4df60600160ff1b0383111561337c5750600090506003613429565b8460ff16601b1415801561339457508460ff16601c14155b156133a55750600090506004613429565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156133f9573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661342257600060019250925050613429565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b016134538782888561334f565b935093505050935093915050565b6001600160a01b0382166134b75760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610a69565b6134c081611c1b565b1561350c5760405162461bcd60e51b815260206004820152601c60248201527b115490cdcc8c4e881d1bdad95b88185b1c9958591e481b5a5b9d195960221b6044820152606401610a69565b61351860008383612958565b6001600160a01b0382166000908152600560205260408120805460019290613541908490614042565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b0386169081179091559051839290600080516020614343833981519152908290a45050565b6000600161359a84611536565b6135a491906141e0565b6000838152600a60205260409020549091508082146135f7576001600160a01b03841660009081526009602090815260408083208584528252808320548484528184208190558352600a90915290208190555b506000918252600a602090815260408084208490556001600160a01b039094168352600981528383209183525290812055565b600b5460009061363c906001906141e0565b6000838152600c6020526040812054600b805493945090928490811061367257634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905080600b83815481106136a157634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600c9091526040808220849055858252812055600b8054806136e757634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061370e83611536565b6001600160a01b0390931660009081526009602090815260408083208684528252808320859055938252600a9052919091209190915550565b6060824710156137a85760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610a69565b843b6137f65760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610a69565b600080866001600160a01b031685876040516138129190613d0f565b60006040518083038185875af1925050503d806000811461384f576040519150601f19603f3d011682016040523d82523d6000602084013e613854565b606091505b509150915061386482828661386f565b979650505050505050565b6060831561387e5750816116e6565b82511561388e5782518084602001fd5b8160405162461bcd60e51b8152600401610a699190613e8c565b8280546138b49061425d565b90600052602060002090601f0160209004810192826138d6576000855561391c565b82601f106138ef57805160ff191683800117855561391c565b8280016001018555821561391c579182015b8281111561391c578251825591602001919060010190613901565b5061392892915061392c565b5090565b5b80821115613928576000815560010161392d565b600082601f830112613951578081fd5b81356001600160401b038082111561396b5761396b6142f3565b604051601f8301601f19908116603f01168101908282118183101715613993576139936142f3565b816040528381528660208588010111156139ab578485fd5b8360208701602083013792830160200193909352509392505050565b6000602082840312156139d8578081fd5b81356116e681614309565b600080604083850312156139f5578081fd5b8235613a0081614309565b91506020830135613a1081614309565b809150509250929050565b600080600060608486031215613a2f578081fd5b8335613a3a81614309565b92506020840135613a4a81614309565b929592945050506040919091013590565b60008060008060808587031215613a70578081fd5b8435613a7b81614309565b93506020850135613a8b81614309565b92506040850135915060608501356001600160401b03811115613aac578182fd5b613ab887828801613941565b91505092959194509250565b60008060408385031215613ad6578182fd5b8235613ae181614309565b91506020830135613a108161431e565b60008060408385031215613b03578182fd5b8235613b0e81614309565b946020939093013593505050565b600080600060608486031215613b30578283fd5b8335613b3b81614309565b95602085013595506040909401359392505050565b600060208284031215613b61578081fd5b81516116e68161431e565b600060208284031215613b7d578081fd5b5035919050565b60008060408385031215613b96578182fd5b823591506020830135613a1081614309565b60008060408385031215613bba578182fd5b50508035926020909101359150565b600060208284031215613bda578081fd5b81356116e68161432c565b600060208284031215613bf6578081fd5b81516116e68161432c565b600060208284031215613c12578081fd5b81356001600160401b03811115613c27578182fd5b6117a984828501613941565b60008060408385031215613c45578182fd5b82356001600160401b03811115613c5a578283fd5b613c6685828601613941565b95602094909401359450505050565b600080604083850312156139f5578182fd5b600060208284031215613c98578081fd5b5051919050565b60008060408385031215613cb1578182fd5b8235915060208301356001600160401b03811115613ccd578182fd5b613cd985828601613941565b9150509250929050565b60008151808452613cfb81602086016020860161421a565b601f01601f19169290920160200192915050565b60008251613d2181846020870161421a565b9190910192915050565b60008351613d3d81846020880161421a565b835190830190613d5181836020880161421a565b01949350505050565b790ca2ba3432b932bab69029b4b3b732b21026b2b9b9b0b3b29d0560311b81528251600090613d9081601a85016020880161421a565b835190830190613da781601a84016020880161421a565b01601a01949350505050565b76020b1b1b2b9b9a1b7b73a3937b61d1030b1b1b7bab73a1604d1b815260008351613de581601785016020880161421a565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351613e1681602884016020880161421a565b01602801949350505050565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613e8290830184613ce3565b9695505050505050565b6020815260006116e66020830184613ce3565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526026908201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060408201526573686172657360d01b606082015260800190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060408201526a191d59481c185e5b595b9d60aa1b606082015260800190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b60208082526025908201527f4e6f7420617574686f72697a656420746f20706572666f726d2074686174206160408201526431ba34b7b760d91b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60008219821115614055576140556142c7565b500190565b600060ff821660ff84168060ff03821115614077576140776142c7565b019392505050565b60008261408e5761408e6142dd565b500490565b600060ff8316806140a6576140a66142dd565b8060ff84160491505092915050565b600181815b808511156140f05781600019048211156140d6576140d66142c7565b808516156140e357918102915b93841c93908002906140ba565b509250929050565b60006116e6838360008261410e57506001610969565b8161411b57506000610969565b8160018114614131576002811461413b57614157565b6001915050610969565b60ff84111561414c5761414c6142c7565b50506001821b610969565b5060208310610133831016604e8410600b841016171561417a575081810a610969565b61418483836140b5565b8060001904821115614198576141986142c7565b029392505050565b60008160001904831182151516156141ba576141ba6142c7565b500290565b600060ff821660ff84168160ff0481118215151615614198576141986142c7565b6000828210156141f2576141f26142c7565b500390565b600060ff821660ff841680821015614211576142116142c7565b90039392505050565b60005b8381101561423557818101518382015260200161421d565b8381111561185b5750506000910152565b600081614255576142556142c7565b506000190190565b600181811c9082168061427157607f821691505b6020821081141561429257634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156142ac576142ac6142c7565b5060010190565b6000826142c2576142c26142dd565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146118cb57600080fd5b80151581146118cb57600080fd5b6001600160e01b0319811681146118cb57600080fdfeddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f924c6b1faae42f36fa6b66af882e9a987aefb9164fceeea420ca4168959c66a2646970667358221220edb6db8b214057ee9289246c7ab4d2e6d255def1f6be1643de03397ba8c500aa64736f6c634300080400330000000000000000000000006560c8df05a0823faaebf40e52adcad1e8a5371a00000000000000000000000037c6e1d755112213d5e7d5e2aca2b83192f7cf35000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000000200000000000000000000000037c6e1d755112213d5e7d5e2aca2b83192f7cf35000000000000000000000000fad0fec24047f510d110fb03b73e57a72e91f33d0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004b0000000000000000000000000000000000000000000000000000000000000019

Deployed Bytecode

0x6080604052600436106102695760003560e01c806301ffc9a7146102ae57806306fdde03146102e3578063081812fc14610305578063095ea7b314610332578063156e29f61461035457806318160ddd14610374578063191655871461039357806322cdbe6a146103b3578063238ac933146103d557806323b872dd146103f5578063248a9ca3146104155780632f2ff15d146104355780632f745c59146104555780632fa4548b14610475578063346d14ae1461049557806336568abe146104aa5780633a33f3e0146104ca5780633a98ef39146104ea5780633ff8035b146104ff578063406072a91461051457806340838f741461053457806342842e0e1461054957806348b75044146105695780634f6ccce7146105895780635c975abb146105a95780636352211e146105c157806370a08231146105e157806372fc363614610601578063735d2a27146106215780638b83209b146106415780638da5cb5b146106615780639010d07c1461067657806391d148541461069657806395d89b41146106b65780639852595c146106cb5780639c6add8e146106eb578063a217fddf1461070b578063a22cb46514610720578063a4a1edb114610740578063a5f6029014610760578063aad2816e14610780578063b88d4fde14610795578063bc56641b146107b5578063beb4018c146107d5578063c634b78e146107f5578063c87b56dd14610815578063ca15c87314610835578063ce7c2ac214610855578063d547741f1461088b578063d720f9da146108ab578063d79779b2146108cb578063dccfe310146108eb578063e33b7de31461090b578063e985e9c51461092057600080fd5b366102a9577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be770333460405161029f929190613e36565b60405180910390a1005b600080fd5b3480156102ba57600080fd5b506102ce6102c9366004613bc9565b610940565b60405190151581526020015b60405180910390f35b3480156102ef57600080fd5b506102f861096f565b6040516102da9190613e8c565b34801561031157600080fd5b50610325610320366004613b6c565b610a01565b6040516102da9190613e22565b34801561033e57600080fd5b5061035261034d366004613af1565b610a8e565b005b34801561036057600080fd5b5061035261036f366004613b1c565b610b9f565b34801561038057600080fd5b50600b545b6040519081526020016102da565b34801561039f57600080fd5b506103526103ae3660046139c7565b610bef565b3480156103bf57600080fd5b5061038560008051602061436383398151915281565b3480156103e157600080fd5b50601654610325906001600160a01b031681565b34801561040157600080fd5b50610352610410366004613a1b565b610cfe565b34801561042157600080fd5b50610385610430366004613b6c565b610d2f565b34801561044157600080fd5b50610352610450366004613b84565b610d44565b34801561046157600080fd5b50610385610470366004613af1565b610d61565b34801561048157600080fd5b50610352610490366004613c9f565b610df7565b3480156104a157600080fd5b506102f8610ed2565b3480156104b657600080fd5b506103526104c5366004613b84565b610ee2565b3480156104d657600080fd5b506103526104e5366004613c33565b610f60565b3480156104f657600080fd5b50600d54610385565b34801561050b57600080fd5b506103526111c6565b34801561052057600080fd5b5061038561052f366004613c75565b611215565b34801561054057600080fd5b50610385611240565b34801561055557600080fd5b50610352610564366004613a1b565b61124d565b34801561057557600080fd5b50610352610584366004613c75565b611268565b34801561059557600080fd5b506103856105a4366004613b6c565b61141e565b3480156105b557600080fd5b5060145460ff166102ce565b3480156105cd57600080fd5b506103256105dc366004613b6c565b6114bf565b3480156105ed57600080fd5b506103856105fc3660046139c7565b611536565b34801561060d57600080fd5b5061035261061c366004613c9f565b6115bd565b34801561062d57600080fd5b5061035261063c3660046139c7565b611621565b34801561064d57600080fd5b5061032561065c366004613b6c565b611688565b34801561066d57600080fd5b506103256116c6565b34801561068257600080fd5b50610325610691366004613ba8565b6116ce565b3480156106a257600080fd5b506102ce6106b1366004613b84565b6116ed565b3480156106c257600080fd5b506102f8611716565b3480156106d757600080fd5b506103856106e63660046139c7565b611725565b3480156106f757600080fd5b506102f8610706366004613c01565b611740565b34801561071757600080fd5b50610385600081565b34801561072c57600080fd5b5061035261073b366004613ac4565b611782565b34801561074c57600080fd5b5061032561075b366004613c01565b61178d565b34801561076c57600080fd5b5061035261077b3660046139c7565b6117b1565b34801561078c57600080fd5b506103526117dc565b3480156107a157600080fd5b506103526107b0366004613a5b565b611829565b3480156107c157600080fd5b506103526107d03660046139c7565b611861565b3480156107e157600080fd5b506103526107f03660046139c7565b6118ce565b34801561080157600080fd5b506103526108103660046139c7565b6118e6565b34801561082157600080fd5b506102f8610830366004613b6c565b6118f1565b34801561084157600080fd5b50610385610850366004613b6c565b6119b6565b34801561086157600080fd5b506103856108703660046139c7565b6001600160a01b03166000908152600f602052604090205490565b34801561089757600080fd5b506103526108a6366004613b84565b6119cd565b3480156108b757600080fd5b506103856108c6366004613c01565b6119ea565b3480156108d757600080fd5b506103856108e63660046139c7565b611a2a565b3480156108f757600080fd5b506103526109063660046139c7565b611a45565b34801561091757600080fd5b50600e54610385565b34801561092c57600080fd5b506102ce61093b3660046139e3565b611aa2565b600061094b82611b91565b8061095a575061095a82611bb6565b80610969575061096982611bf6565b92915050565b60606002805461097e9061425d565b80601f01602080910402602001604051908101604052809291908181526020018280546109aa9061425d565b80156109f75780601f106109cc576101008083540402835291602001916109f7565b820191906000526020600020905b8154815290600101906020018083116109da57829003601f168201915b5050505050905090565b6000610a0c82611c1b565b610a725760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610a99826114bf565b9050806001600160a01b0316836001600160a01b03161415610b075760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610a69565b336001600160a01b0382161480610b235750610b238133611aa2565b610b905760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776044820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b6064820152608401610a69565b610b9a8383611c38565b505050565b610bb7600080516020614363833981519152336116ed565b80610bc85750610bc86000336116ed565b610be45760405162461bcd60e51b8152600401610a6990613fac565b610b9a838383611ca6565b6001600160a01b0381166000908152600f6020526040902054610c245760405162461bcd60e51b8152600401610a6990613ef1565b6000610c2f600e5490565b610c399047614042565b90506000610c508383610c4b86611725565b611ceb565b905080610c6f5760405162461bcd60e51b8152600401610a6990613f37565b6001600160a01b03831660009081526010602052604081208054839290610c97908490614042565b9250508190555080600e6000828254610cb09190614042565b90915550610cc090508382611d29565b7fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b0568382604051610cf1929190613e36565b60405180910390a1505050565b610d083382611e3f565b610d245760405162461bcd60e51b8152600401610a6990613ff1565b610b9a838383611f01565b60009081526020819052604090206001015490565b610d4d82610d2f565b610d57813361209a565b610b9a83836120fe565b6000610d6c83611536565b8210610dce5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610a69565b506001600160a01b03919091166000908152600960209081526040808320938352929052205490565b610e0f600080516020614363833981519152336116ed565b80610e205750610e206000336116ed565b610e3c5760405162461bcd60e51b8152600401610a6990613fac565b610e458261217a565b5115610e8c5760405162461bcd60e51b8152602060048201526016602482015275151bdad95b88185b1c9958591e481c995d99585b195960521b6044820152606401610a69565b610e9682826122e9565b817fa109ba539900bf1b633f956d63c96fc89b814c7287f7aa50a9216d0b5565720782604051610ec69190613e8c565b60405180910390a25050565b6060610edd33612374565b905090565b6001600160a01b0381163314610f525760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610a69565b610f5c82826124d7565b5050565b60145460ff1615610f835760405162461bcd60e51b8152600401610a6990613f82565b60026015541415610fd65760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a69565b600260155581610fe5816124f9565b61102f5760405162461bcd60e51b815260206004820152601b60248201527a496e76616c69642077686974656c697374207369676e617475726560281b6044820152606401610a69565b601954604051627eeac760e11b81526000916001600160a01b03169062fdd58e906110609033908790600401613e36565b60206040518083038186803b15801561107857600080fd5b505afa15801561108c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110b09190613c87565b116110f15760405162461bcd60e51b81526020600482015260116024820152704d757374206f776e206d696e747061737360781b6044820152606401610a69565b6019546001600160a01b031663f5298aca336040516001600160e01b031960e084901b1681526001600160a01b0390911660048201526024810185905260016044820152606401600060405180830381600087803b15801561115257600080fd5b505af1158015611166573d6000803e3d6000fd5b505050506000611175600b5490565b905061118333600185611ca6565b807f6aa3eac93d079e5e100b1029be716caa33586c96aa4baac390669fb5c2a21212336040516111b39190613e22565b60405180910390a2505060016015555050565b6111de600080516020614363833981519152336116ed565b806111ef57506111ef6000336116ed565b61120b5760405162461bcd60e51b8152600401610a6990613fac565b61121361252e565b565b6001600160a01b03918216600090815260136020908152604080832093909416825291909152205490565b6000610edd6108c6610ed2565b610b9a83838360405180602001604052806000815250611829565b6001600160a01b0381166000908152600f602052604090205461129d5760405162461bcd60e51b8152600401610a6990613ef1565b60006112a883611a2a565b6040516370a0823160e01b81526001600160a01b038516906370a08231906112d4903090600401613e22565b60206040518083038186803b1580156112ec57600080fd5b505afa158015611300573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113249190613c87565b61132e9190614042565b905060006113418383610c4b8787611215565b9050806113605760405162461bcd60e51b8152600401610a6990613f37565b6001600160a01b03808516600090815260136020908152604080832093871683529290529081208054839290611397908490614042565b90915550506001600160a01b038416600090815260126020526040812080548392906113c4908490614042565b909155506113d590508484836125bb565b836001600160a01b03167f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a8483604051611410929190613e36565b60405180910390a250505050565b6000611429600b5490565b821061148c5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610a69565b600b82815481106114ad57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6000818152600460205260408120546001600160a01b0316806109695760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610a69565b60006001600160a01b0382166115a15760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610a69565b506001600160a01b031660009081526005602052604090205490565b6115d5600080516020614363833981519152336116ed565b806115e657506115e66000336116ed565b6116025760405162461bcd60e51b8152600401610a6990613fac565b60008281526017602090815260409091208251610b9a928401906138a8565b611639600080516020614363833981519152336116ed565b8061164a575061164a6000336116ed565b6116665760405162461bcd60e51b8152600401610a6990613fac565b601980546001600160a01b0319166001600160a01b0392909216919091179055565b6000601182815481106116ab57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031692915050565b6000610edd81805b60008281526001602052604081206116e69083612611565b9392505050565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b60606003805461097e9061425d565b6001600160a01b031660009081526010602052604090205490565b6060600061174d8361178d565b6040516001600160601b0319606083901b1660208201529091506034015b604051602081830303815290604052915050919050565b610f5c33838361261d565b60008061179b6108c6610ed2565b905060006117a982856126e8565b949350505050565b60006117bd813361209a565b601680546001600160a01b0319166001600160a01b0384161790555050565b6117f4600080516020614363833981519152336116ed565b8061180557506118056000336116ed565b6118215760405162461bcd60e51b8152600401610a6990613fac565b61121361270c565b6118333383611e3f565b61184f5760405162461bcd60e51b8152600401610a6990613ff1565b61185b84848484612764565b50505050565b6001600160a01b0381163314156118b35760405162461bcd60e51b815260206004820152601660248201527521b0b73737ba103932b6b7bb32903cb7bab939b2b63360511b6044820152606401610a69565b6118cb600080516020614363833981519152826119cd565b50565b6118cb60008051602061436383398151915282610d44565b6118cb600082610d44565b606060006118fe8361217a565b90508051600014156109695760008381526018602090815260408083205483526017909152902080546119309061425d565b80601f016020809104026020016040519081016040528092919081815260200182805461195c9061425d565b80156119a95780601f1061197e576101008083540402835291602001916119a9565b820191906000526020600020905b81548152906001019060200180831161198c57829003601f168201915b5050505050915050919050565b600081815260016020526040812061096990612797565b6119d682610d2f565b6119e0813361209a565b610b9a83836124d7565b6000808290506119fa81516127a1565b81604051602001611a0c929190613d5a565b60405160208183030381529060405280519060200120915050919050565b6001600160a01b031660009081526012602052604090205490565b6001600160a01b038116331415611a975760405162461bcd60e51b815260206004820152601660248201527521b0b73737ba103932bb37b5b2903cb7bab939b2b63360511b6044820152606401610a69565b6118cb6000826119cd565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b3b151590565b611ae08282611af8565b6000828152600160205260409020610b9a9082611b7c565b611b0282826116ed565b610f5c576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055611b383390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60006116e6836001600160a01b0384166128ba565b60006001600160e01b03198216635a05180f60e01b1480610969575061096982612909565b60006001600160e01b031982166380ac58cd60e01b1480611be757506001600160e01b03198216635b5e139f60e01b145b80610969575061096982611b91565b60006001600160e01b0319821663780e9d6360e01b1480610969575061096982611bb6565b6000908152600460205260409020546001600160a01b0316151590565b600081815260066020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611c6d826114bf565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60005b8281101561185b576000611cbc600b5490565b9050611cc8858261293e565b600090815260186020526040902082905580611ce381614298565b915050611ca9565b600d546001600160a01b0384166000908152600f602052604081205490918391611d1590866141a0565b611d1f919061407f565b6117a991906141e0565b80471015611d795760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610a69565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611dc6576040519150601f19603f3d011682016040523d82523d6000602084013e611dcb565b606091505b5050905080610b9a5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c20726044820152791958da5c1a595b9d081b585e481a185d99481c995d995c9d195960321b6064820152608401610a69565b6000611e4a82611c1b565b611eab5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a69565b6000611eb6836114bf565b9050806001600160a01b0316846001600160a01b03161480611ef15750836001600160a01b0316611ee684610a01565b6001600160a01b0316145b806117a957506117a98185611aa2565b826001600160a01b0316611f14826114bf565b6001600160a01b031614611f7c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610a69565b6001600160a01b038216611fde5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610a69565b611fe9838383612958565b611ff4600082611c38565b6001600160a01b038316600090815260056020526040812080546001929061201d9084906141e0565b90915550506001600160a01b038216600090815260056020526040812080546001929061204b908490614042565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b03868116918217909255915184939187169160008051602061434383398151915291a4505050565b6120a482826116ed565b610f5c576120bc816001600160a01b03166014612963565b6120c7836020612963565b6040516020016120d8929190613db3565b60408051601f198184030181529082905262461bcd60e51b8252610a6991600401613e8c565b6000805160206143638339815191528214158061212457506001600160a01b0381163b15155b6121705760405162461bcd60e51b815260206004820152601e60248201527f496e746567726174696f6e206d757374206265206120636f6e747261637400006044820152606401610a69565b610f5c8282611ad6565b606061218582611c1b565b6121eb5760405162461bcd60e51b815260206004820152603160248201527f45524337323155524953746f726167653a2055524920717565727920666f72206044820152703737b732bc34b9ba32b73a103a37b5b2b760791b6064820152608401610a69565b600082815260086020526040812080546122049061425d565b80601f01602080910402602001604051908101604052809291908181526020018280546122309061425d565b801561227d5780601f106122525761010080835404028352916020019161227d565b820191906000526020600020905b81548152906001019060200180831161226057829003601f168201915b50505050509050600061229b60408051602081019091526000815290565b90508051600014156122ae575092915050565b8151156122e05780826040516020016122c8929190613d2b565b60405160208183030381529060405292505050919050565b6117a984612b44565b6122f282611c1b565b6123555760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b6064820152608401610a69565b60008281526008602090815260409091208251610b9a928401906138a8565b60408051602880825260608281019093526000919060208201818036833701905050905060005b60148110156124d05760006123b18260136141e0565b6123bc9060086141a0565b6123c79060026140f8565b6123da906001600160a01b03871661407f565b60f81b9050600060108260f81c6123f19190614093565b60f81b905060008160f81c601061240891906141bf565b8360f81c61241691906141f7565b60f81b905061242482612c05565b856124308660026141a0565b8151811061244e57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535061246e81612c05565b8561247a8660026141a0565b612485906001614042565b815181106124a357634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535050505080806124c890614298565b91505061239b565b5092915050565b6124e18282612c3b565b6000828152600160205260409020610b9a9082612ca0565b6000806125076108c6610ed2565b9050600061251582856126e8565b6016546001600160a01b03908116911614949350505050565b60145460ff166125775760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610a69565b6014805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516125b19190613e22565b60405180910390a1565b610b9a8363a9059cbb60e01b84846040516024016125da929190613e36565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152612cb5565b60006116e68383612d87565b816001600160a01b0316836001600160a01b0316141561267b5760405162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b6044820152606401610a69565b6001600160a01b03838116600081815260076020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b60008060006126f78585612dbf565b9150915061270481612e2f565b509392505050565b60145460ff161561272f5760405162461bcd60e51b8152600401610a6990613f82565b6014805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586125a43390565b61276f848484611f01565b61277b8484848461302b565b61185b5760405162461bcd60e51b8152600401610a6990613e9f565b6000610969825490565b6060816127c55750506040805180820190915260018152600360fc1b602082015290565b8160005b81156127ef57806127d981614298565b91506127e89050600a8361407f565b91506127c9565b6000816001600160401b0381111561281757634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612841576020820181803683370190505b5090505b84156117a9576128566001836141e0565b9150612863600a866142b3565b61286e906030614042565b60f81b81838151811061289157634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506128b3600a8661407f565b9450612845565b600081815260018301602052604081205461290157508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610969565b506000610969565b60006001600160e01b03198216637965db0b60e01b148061096957506301ffc9a760e01b6001600160e01b0319831614610969565b610f5c828260405180602001604052806000815250613138565b610b9a83838361316b565b606060006129728360026141a0565b61297d906002614042565b6001600160401b038111156129a257634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156129cc576020820181803683370190505b509050600360fc1b816000815181106129f557634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110612a3257634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506000612a568460026141a0565b612a61906001614042565b90505b6001811115612af5576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110612aa357634e487b7160e01b600052603260045260246000fd5b1a60f81b828281518110612ac757634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c93612aee81614246565b9050612a64565b5083156116e65760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610a69565b6060612b4f82611c1b565b612bb35760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610a69565b6000612bca60408051602081019091526000815290565b90506000815111612bea57604051806020016040528060008152506116e6565b80612bf4846127a1565b60405160200161176b929190613d2b565b6000600a60f883901c1015612c2c57612c2360f883901c603061405a565b60f81b92915050565b612c2360f883901c605761405a565b612c4582826116ed565b15610f5c576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60006116e6836001600160a01b038416613223565b6000612d0a826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166133409092919063ffffffff16565b805190915015610b9a5780806020019051810190612d289190613b50565b610b9a5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610a69565b6000826000018281548110612dac57634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905092915050565b600080825160411415612df65760208301516040840151606085015160001a612dea8782858561334f565b94509450505050612e28565b825160401415612e205760208301516040840151612e15868383613432565b935093505050612e28565b506000905060025b9250929050565b6000816004811115612e5157634e487b7160e01b600052602160045260246000fd5b1415612e5a5750565b6001816004811115612e7c57634e487b7160e01b600052602160045260246000fd5b1415612ec55760405162461bcd60e51b815260206004820152601860248201527745434453413a20696e76616c6964207369676e617475726560401b6044820152606401610a69565b6002816004811115612ee757634e487b7160e01b600052602160045260246000fd5b1415612f355760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610a69565b6003816004811115612f5757634e487b7160e01b600052602160045260246000fd5b1415612fb05760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610a69565b6004816004811115612fd257634e487b7160e01b600052602160045260246000fd5b14156118cb5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610a69565b60006001600160a01b0384163b1561312d57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061306f903390899088908890600401613e4f565b602060405180830381600087803b15801561308957600080fd5b505af19250505080156130b9575060408051601f3d908101601f191682019092526130b691810190613be5565b60015b613113573d8080156130e7576040519150601f19603f3d011682016040523d82523d6000602084013e6130ec565b606091505b50805161310b5760405162461bcd60e51b8152600401610a6990613e9f565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506117a9565b506001949350505050565b6131428383613461565b61314f600084848461302b565b610b9a5760405162461bcd60e51b8152600401610a6990613e9f565b6001600160a01b0383166131c6576131c181600b80546000838152600c60205260408120829055600182018355919091527f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db90155565b6131e9565b816001600160a01b0316836001600160a01b0316146131e9576131e9838261358d565b6001600160a01b03821661320057610b9a8161362a565b826001600160a01b0316826001600160a01b031614610b9a57610b9a8282613703565b600081815260018301602052604081205480156133365760006132476001836141e0565b855490915060009061325b906001906141e0565b90508181146132dc57600086600001828154811061328957634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050808760000184815481106132ba57634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255918252600188019052604090208390555b85548690806132fb57634e487b7160e01b600052603160045260246000fd5b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610969565b6000915050610969565b60606117a98484600085613747565b6000806fa2a8918ca85bafe22016d0b997e4df60600160ff1b0383111561337c5750600090506003613429565b8460ff16601b1415801561339457508460ff16601c14155b156133a55750600090506004613429565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156133f9573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661342257600060019250925050613429565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b016134538782888561334f565b935093505050935093915050565b6001600160a01b0382166134b75760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610a69565b6134c081611c1b565b1561350c5760405162461bcd60e51b815260206004820152601c60248201527b115490cdcc8c4e881d1bdad95b88185b1c9958591e481b5a5b9d195960221b6044820152606401610a69565b61351860008383612958565b6001600160a01b0382166000908152600560205260408120805460019290613541908490614042565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b0386169081179091559051839290600080516020614343833981519152908290a45050565b6000600161359a84611536565b6135a491906141e0565b6000838152600a60205260409020549091508082146135f7576001600160a01b03841660009081526009602090815260408083208584528252808320548484528184208190558352600a90915290208190555b506000918252600a602090815260408084208490556001600160a01b039094168352600981528383209183525290812055565b600b5460009061363c906001906141e0565b6000838152600c6020526040812054600b805493945090928490811061367257634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905080600b83815481106136a157634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600c9091526040808220849055858252812055600b8054806136e757634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061370e83611536565b6001600160a01b0390931660009081526009602090815260408083208684528252808320859055938252600a9052919091209190915550565b6060824710156137a85760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610a69565b843b6137f65760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610a69565b600080866001600160a01b031685876040516138129190613d0f565b60006040518083038185875af1925050503d806000811461384f576040519150601f19603f3d011682016040523d82523d6000602084013e613854565b606091505b509150915061386482828661386f565b979650505050505050565b6060831561387e5750816116e6565b82511561388e5782518084602001fd5b8160405162461bcd60e51b8152600401610a699190613e8c565b8280546138b49061425d565b90600052602060002090601f0160209004810192826138d6576000855561391c565b82601f106138ef57805160ff191683800117855561391c565b8280016001018555821561391c579182015b8281111561391c578251825591602001919060010190613901565b5061392892915061392c565b5090565b5b80821115613928576000815560010161392d565b600082601f830112613951578081fd5b81356001600160401b038082111561396b5761396b6142f3565b604051601f8301601f19908116603f01168101908282118183101715613993576139936142f3565b816040528381528660208588010111156139ab578485fd5b8360208701602083013792830160200193909352509392505050565b6000602082840312156139d8578081fd5b81356116e681614309565b600080604083850312156139f5578081fd5b8235613a0081614309565b91506020830135613a1081614309565b809150509250929050565b600080600060608486031215613a2f578081fd5b8335613a3a81614309565b92506020840135613a4a81614309565b929592945050506040919091013590565b60008060008060808587031215613a70578081fd5b8435613a7b81614309565b93506020850135613a8b81614309565b92506040850135915060608501356001600160401b03811115613aac578182fd5b613ab887828801613941565b91505092959194509250565b60008060408385031215613ad6578182fd5b8235613ae181614309565b91506020830135613a108161431e565b60008060408385031215613b03578182fd5b8235613b0e81614309565b946020939093013593505050565b600080600060608486031215613b30578283fd5b8335613b3b81614309565b95602085013595506040909401359392505050565b600060208284031215613b61578081fd5b81516116e68161431e565b600060208284031215613b7d578081fd5b5035919050565b60008060408385031215613b96578182fd5b823591506020830135613a1081614309565b60008060408385031215613bba578182fd5b50508035926020909101359150565b600060208284031215613bda578081fd5b81356116e68161432c565b600060208284031215613bf6578081fd5b81516116e68161432c565b600060208284031215613c12578081fd5b81356001600160401b03811115613c27578182fd5b6117a984828501613941565b60008060408385031215613c45578182fd5b82356001600160401b03811115613c5a578283fd5b613c6685828601613941565b95602094909401359450505050565b600080604083850312156139f5578182fd5b600060208284031215613c98578081fd5b5051919050565b60008060408385031215613cb1578182fd5b8235915060208301356001600160401b03811115613ccd578182fd5b613cd985828601613941565b9150509250929050565b60008151808452613cfb81602086016020860161421a565b601f01601f19169290920160200192915050565b60008251613d2181846020870161421a565b9190910192915050565b60008351613d3d81846020880161421a565b835190830190613d5181836020880161421a565b01949350505050565b790ca2ba3432b932bab69029b4b3b732b21026b2b9b9b0b3b29d0560311b81528251600090613d9081601a85016020880161421a565b835190830190613da781601a84016020880161421a565b01601a01949350505050565b76020b1b1b2b9b9a1b7b73a3937b61d1030b1b1b7bab73a1604d1b815260008351613de581601785016020880161421a565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351613e1681602884016020880161421a565b01602801949350505050565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613e8290830184613ce3565b9695505050505050565b6020815260006116e66020830184613ce3565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526026908201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060408201526573686172657360d01b606082015260800190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060408201526a191d59481c185e5b595b9d60aa1b606082015260800190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b60208082526025908201527f4e6f7420617574686f72697a656420746f20706572666f726d2074686174206160408201526431ba34b7b760d91b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60008219821115614055576140556142c7565b500190565b600060ff821660ff84168060ff03821115614077576140776142c7565b019392505050565b60008261408e5761408e6142dd565b500490565b600060ff8316806140a6576140a66142dd565b8060ff84160491505092915050565b600181815b808511156140f05781600019048211156140d6576140d66142c7565b808516156140e357918102915b93841c93908002906140ba565b509250929050565b60006116e6838360008261410e57506001610969565b8161411b57506000610969565b8160018114614131576002811461413b57614157565b6001915050610969565b60ff84111561414c5761414c6142c7565b50506001821b610969565b5060208310610133831016604e8410600b841016171561417a575081810a610969565b61418483836140b5565b8060001904821115614198576141986142c7565b029392505050565b60008160001904831182151516156141ba576141ba6142c7565b500290565b600060ff821660ff84168160ff0481118215151615614198576141986142c7565b6000828210156141f2576141f26142c7565b500390565b600060ff821660ff841680821015614211576142116142c7565b90039392505050565b60005b8381101561423557818101518382015260200161421d565b8381111561185b5750506000910152565b600081614255576142556142c7565b506000190190565b600181811c9082168061427157607f821691505b6020821081141561429257634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156142ac576142ac6142c7565b5060010190565b6000826142c2576142c26142dd565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146118cb57600080fd5b80151581146118cb57600080fd5b6001600160e01b0319811681146118cb57600080fdfeddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f924c6b1faae42f36fa6b66af882e9a987aefb9164fceeea420ca4168959c66a2646970667358221220edb6db8b214057ee9289246c7ab4d2e6d255def1f6be1643de03397ba8c500aa64736f6c63430008040033

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

0000000000000000000000006560c8df05a0823faaebf40e52adcad1e8a5371a00000000000000000000000037c6e1d755112213d5e7d5e2aca2b83192f7cf35000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000000200000000000000000000000037c6e1d755112213d5e7d5e2aca2b83192f7cf35000000000000000000000000fad0fec24047f510d110fb03b73e57a72e91f33d0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004b0000000000000000000000000000000000000000000000000000000000000019

-----Decoded View---------------
Arg [0] : signer (address): 0x6560c8dF05a0823FAaEBF40E52Adcad1e8A5371A
Arg [1] : adminAddress (address): 0x37C6E1D755112213d5E7D5e2Aca2b83192f7cF35
Arg [2] : payees (address[]): 0x37C6E1D755112213d5E7D5e2Aca2b83192f7cF35,0xfAd0feC24047f510D110fB03b73e57a72e91f33D
Arg [3] : shares_ (uint256[]): 75,25

-----Encoded View---------------
10 Constructor Arguments found :
Arg [0] : 0000000000000000000000006560c8df05a0823faaebf40e52adcad1e8a5371a
Arg [1] : 00000000000000000000000037c6e1d755112213d5e7d5e2aca2b83192f7cf35
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [3] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [5] : 00000000000000000000000037c6e1d755112213d5e7d5e2aca2b83192f7cf35
Arg [6] : 000000000000000000000000fad0fec24047f510d110fb03b73e57a72e91f33d
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [8] : 000000000000000000000000000000000000000000000000000000000000004b
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000019


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.