ETH Price: $3,045.70 (+2.19%)
Gas: 1 Gwei

Token

FuteraUnited (FU)
 

Overview

Max Total Supply

1,111 FU

Holders

382

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Balance
1 FU
0xf97c5df40558dbd9105e40d35ea2ac0fa314982b
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:
FuteraUnited

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 18 : FuteraUnited.sol
// SPDX-License-Identifier: MIT

/*
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@   @@@@@@@@@@@@@@@@@@@
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@.   @@@@@@     #@@@@@@@@@@@@@@@@@
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%   *     *#    @@@.  @   ,@@@@@@@@@@@@@@@@
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*          &@*  &@@@@@   @@(  @@@.   @@@@@@@@@@@@@@@
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@&.,        %   @@@@@@@@*  &@*    &@@&           @@@@@@@@@@@@@@
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@   @.&@   @@@@@         @@*    .%   &@@  /@@@@@@/  ,@@@@@@@@@@@@@
    @@@@@@@@@@@@@@@@@@@@        @@@@@@@   @@@@   @@@@@   @@@@@@@@,  &@@@@      ,@@@@@@@@@@@@@@@@@@@@@@@@
    @@@@@@@@@@@@@@*      %@@@   @@@@@@@   @@@@   @@@@@   @@@@*   *  &@@@@@@@@/        *@@@@@@@@@@@@@@@@@
    @@@@@@@@@@@@@@*  #@@@@@@@   @@@@@@@   @@@@   @@@@@        *@@@@&      @*  .@@@@@.   @@@@@@@@@@@@@@@@
    @@@@@@@@@@@@@@*  .     &@   @@@@@@   &@@@@   @@@@@@@@@(   @.     %@@@@@*  #@@@@@@&  .@@@@@@@@@@@@@@@
    @@@@@@@@@@@@@@*   #@@@@@@&          @@@@@@@@@@(        *@@@.  &@@@@*%@@*  #@@@@@@   @@@@@@@@@@@@@@@@
    @@@@@@@@@@@@@@*  #@@@@@@@@@@/..&@@@@@@   @.  &@@@@@   @@@@@.        @@@*  #@@@@,   @@@@@@@@@@@@@@@@@
    @@@@@@@@@@@@@@*  #@@@@@@@@.  ,  @@@@@@   @.  &@@@@@   @@@@@.  &@@@@@@@@*        (@@@@@@@@@@@@@@@@@@@
    @@@@@@@@@@@@@@@@%@@@@@@@   @      #@@@   @.  &@@@@@   @@@@@.  &(      %*  #@@@@@@@@@@@@@@@@@@@@@@@@@
    @@@@@@@@@@@@@@   @@@@@@@   @   @.   .@   @.  &@@@@@   @@@@@.    .@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    @@@@@@@@@@@@@@   @@@@@@@   @   @@@*      @.  &@@@@@   @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    @@@@@@@@@@@@@@   @@@@@@@   @   @@@@@#    @.  @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    @@@@@@@@@@@@@@   %@@@@@   @@   @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    @@@@@@@@@@@@@@@         @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

    Futera United in partnership with Top Dog Studios (https://topdogstudios.io) ⚽🐶🚀
*/

pragma solidity ^0.8.11;

import "@openzeppelin/contracts/interfaces/IERC2981.sol";
import "@openzeppelin/contracts/utils/cryptography/draft-EIP712.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/finance/PaymentSplitter.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/utils/Strings.sol";

contract OwnableDelegateProxy {}
contract ProxyRegistry {
    mapping(address => OwnableDelegateProxy) public proxies;
}

contract FuteraUnited is IERC2981, EIP712, ERC721, PaymentSplitter, Ownable {
    enum SaleState { CLOSED, PRESALE, PUBLIC }
    struct MintKey { uint16 amount; address wallet; }

    struct SaleConfig {
        SaleState SALE_STATUS;
        uint8 RESERVED;
        uint8 PUBLIC_SALE_MAX_PURCHASE;
        uint8 PRE_SALE_MAX_PURCHASE;
        uint16 MAX_SUPPLY;
        uint16 ROYALTY_BPS;
        uint128 MINT_PRICE;
    }

    bytes32 private constant MINTKEY_TYPE_HASH = keccak256("MintKey(uint16 amount,address wallet)");
    uint16 private _totalSupply;
    SaleConfig private _config;
    address private _signer;
    address private _treasury;
    string private _baseTokenURI;
    mapping(address => bool) private _claimedMintKeys;
    address private _openSeaProxyRegistryAddress;
    bool private _isOpenSeaProxyActive = true;

    string public FUTERA_UNITED_PROVENANCE;

    constructor (
        string memory name,
        string memory symbol,
        address[] memory payees,
        uint256[] memory shares,
        SaleConfig memory saleConfig,
        address signer,
        address treasury,
        address openSeaProxyRegistryAddress,
        string memory baseTokenURI
    )
        ERC721(name, symbol)
        EIP712(name, "1")
        PaymentSplitter(payees, shares)
    {
        _config = saleConfig;
        _signer = signer;
        _treasury = treasury;
        _openSeaProxyRegistryAddress = openSeaProxyRegistryAddress;
        _baseTokenURI = baseTokenURI;
    }
    
    function setProvenanceHash(string calldata provenanceHash) external onlyOwner {
        FUTERA_UNITED_PROVENANCE = provenanceHash;
    }

    function setBaseTokenURI(string calldata baseTokenURI) external onlyOwner {
        _baseTokenURI = baseTokenURI;
    }

     function setIsOpenSeaProxyActive(bool isOpenSeaProxyActive) external onlyOwner {
        _isOpenSeaProxyActive = isOpenSeaProxyActive;
    }

    function setSaleConfig(SaleConfig calldata config) external onlyOwner {
        _config = config;
    }

    function saleStatus() external view returns (SaleState) {
        return _config.SALE_STATUS;
    }

    function maxMintable() external view returns (uint8) {
        if (_config.SALE_STATUS == SaleState.CLOSED) return 0;

        return _config.SALE_STATUS == SaleState.PRESALE ? _config.PRE_SALE_MAX_PURCHASE : _config.PUBLIC_SALE_MAX_PURCHASE;
    }

    function isMintKeyClaimed(address mintKey) external view returns (bool) {
        return _claimedMintKeys[mintKey];
    }
    
    function mint(bytes calldata signature, MintKey calldata mintKey) external payable {
        require(_config.SALE_STATUS != SaleState.CLOSED, "SALE_CLOSED");
        require(msg.value == mintKey.amount * _config.MINT_PRICE, "INCORRECT_FUNDS");
        
        if (_config.SALE_STATUS == SaleState.PRESALE) {
            require(mintKey.amount > 0 && mintKey.amount <= _config.PRE_SALE_MAX_PURCHASE, "INCORRECT_QUANTITY");
            require(_claimedMintKeys[mintKey.wallet] == false, "ALREADY_MINTED");
            require(verify(signature, mintKey), "INVALID_SIGNATURE");

            _claimedMintKeys[mintKey.wallet] = true;
        }
        else if (_config.SALE_STATUS == SaleState.PUBLIC) {
            require(mintKey.amount > 0 && mintKey.amount <= _config.PUBLIC_SALE_MAX_PURCHASE, "INCORRECT_QUANTITY");
        }

        _mintMultiple(mintKey.wallet, mintKey.amount);
    }

    function reserve(address to, uint256 amount) external onlyOwner {
        require(amount > 0 && amount <= _config.RESERVED, "RESERVE_EXCEEDED");

        _mintMultiple(to, amount);
        _config.RESERVED -= uint8(amount);
    }

    function _mintMultiple(address to, uint256 amount) private {
        require(_totalSupply + amount <= _config.MAX_SUPPLY, "SUPPLY_EXCEEDED");

        for (uint256 i = 0; i < amount; i++) {
            uint256 tokenId = _totalSupply + 1;
            _safeMint(to, tokenId);
            _totalSupply++;
        }
    }

    function totalSupply() public view returns (uint16) {
        return _totalSupply;
    }

    function verify(bytes calldata signature, MintKey calldata mintKey) public view returns (bool) {
        bytes32 digest = _hashTypedDataV4(
            keccak256(
                abi.encode(
                    MINTKEY_TYPE_HASH,
                    mintKey.amount,
                    mintKey.wallet
                )
            )
        );

        return ECDSA.recover(digest, signature) == _signer;
    }

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

    function supportsInterface(bytes4 _interfaceId) public view virtual override(IERC165, ERC721) returns (bool) {
        return _interfaceId == type(IERC2981).interfaceId || super.supportsInterface(_interfaceId);
    }

    function isApprovedForAll(address owner, address operator) public view override returns (bool) {
        ProxyRegistry proxyRegistry = ProxyRegistry(_openSeaProxyRegistryAddress);
        if (_isOpenSeaProxyActive && address(proxyRegistry.proxies(owner)) == operator) return true;

        return super.isApprovedForAll(owner, operator);
    }

    function getChainId() external view returns (uint256) {
        return block.chainid;
    }

    function domainSeparator() external view returns (bytes32) {
        return _domainSeparatorV4();
    }

    function royaltyInfo(uint256 /* _tokenId */, uint256 _salePrice) external view override returns (address, uint256) {
        return (_treasury, (_salePrice * _config.ROYALTY_BPS / 10000));
    }

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

File 2 of 18 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Interface for the NFT Royalty Standard
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Called with the sale price to determine how much royalty is owed and to whom.
     * @param tokenId - the NFT asset queried for royalty information
     * @param salePrice - the sale price of the NFT asset specified by `tokenId`
     * @return receiver - address of who should be sent the royalty payment
     * @return royaltyAmount - the royalty payment amount for `salePrice`
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

File 3 of 18 : draft-EIP712.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/cryptography/draft-EIP712.sol)

pragma solidity ^0.8.0;

import "./ECDSA.sol";

/**
 * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data.
 *
 * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible,
 * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding
 * they need in their contracts using a combination of `abi.encode` and `keccak256`.
 *
 * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding
 * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA
 * ({_hashTypedDataV4}).
 *
 * The implementation of the domain separator was designed to be as efficient as possible while still properly updating
 * the chain id to protect against replay attacks on an eventual fork of the chain.
 *
 * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method
 * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask].
 *
 * _Available since v3.4._
 */
abstract contract EIP712 {
    /* solhint-disable var-name-mixedcase */
    // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to
    // invalidate the cached domain separator if the chain id changes.
    bytes32 private immutable _CACHED_DOMAIN_SEPARATOR;
    uint256 private immutable _CACHED_CHAIN_ID;
    address private immutable _CACHED_THIS;

    bytes32 private immutable _HASHED_NAME;
    bytes32 private immutable _HASHED_VERSION;
    bytes32 private immutable _TYPE_HASH;

    /* solhint-enable var-name-mixedcase */

    /**
     * @dev Initializes the domain separator and parameter caches.
     *
     * The meaning of `name` and `version` is specified in
     * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]:
     *
     * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol.
     * - `version`: the current major version of the signing domain.
     *
     * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart
     * contract upgrade].
     */
    constructor(string memory name, string memory version) {
        bytes32 hashedName = keccak256(bytes(name));
        bytes32 hashedVersion = keccak256(bytes(version));
        bytes32 typeHash = keccak256(
            "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"
        );
        _HASHED_NAME = hashedName;
        _HASHED_VERSION = hashedVersion;
        _CACHED_CHAIN_ID = block.chainid;
        _CACHED_DOMAIN_SEPARATOR = _buildDomainSeparator(typeHash, hashedName, hashedVersion);
        _CACHED_THIS = address(this);
        _TYPE_HASH = typeHash;
    }

    /**
     * @dev Returns the domain separator for the current chain.
     */
    function _domainSeparatorV4() internal view returns (bytes32) {
        if (address(this) == _CACHED_THIS && block.chainid == _CACHED_CHAIN_ID) {
            return _CACHED_DOMAIN_SEPARATOR;
        } else {
            return _buildDomainSeparator(_TYPE_HASH, _HASHED_NAME, _HASHED_VERSION);
        }
    }

    function _buildDomainSeparator(
        bytes32 typeHash,
        bytes32 nameHash,
        bytes32 versionHash
    ) private view returns (bytes32) {
        return keccak256(abi.encode(typeHash, nameHash, versionHash, block.chainid, address(this)));
    }

    /**
     * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this
     * function returns the hash of the fully encoded EIP712 message for this domain.
     *
     * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example:
     *
     * ```solidity
     * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode(
     *     keccak256("Mail(address to,string contents)"),
     *     mailTo,
     *     keccak256(bytes(mailContents))
     * )));
     * address signer = ECDSA.recover(digest, signature);
     * ```
     */
    function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) {
        return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash);
    }
}

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

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

    uint256 private _totalShares;
    uint256 private _totalReleased;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "../Strings.sol";

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

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

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

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

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

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

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

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

        return (signer, RecoverError.NoError);
    }

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

File 9 of 18 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC165.sol)

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"address[]","name":"payees","type":"address[]"},{"internalType":"uint256[]","name":"shares","type":"uint256[]"},{"components":[{"internalType":"enum FuteraUnited.SaleState","name":"SALE_STATUS","type":"uint8"},{"internalType":"uint8","name":"RESERVED","type":"uint8"},{"internalType":"uint8","name":"PUBLIC_SALE_MAX_PURCHASE","type":"uint8"},{"internalType":"uint8","name":"PRE_SALE_MAX_PURCHASE","type":"uint8"},{"internalType":"uint16","name":"MAX_SUPPLY","type":"uint16"},{"internalType":"uint16","name":"ROYALTY_BPS","type":"uint16"},{"internalType":"uint128","name":"MINT_PRICE","type":"uint128"}],"internalType":"struct FuteraUnited.SaleConfig","name":"saleConfig","type":"tuple"},{"internalType":"address","name":"signer","type":"address"},{"internalType":"address","name":"treasury","type":"address"},{"internalType":"address","name":"openSeaProxyRegistryAddress","type":"address"},{"internalType":"string","name":"baseTokenURI","type":"string"}],"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":"contract IERC20","name":"token","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ERC20PaymentReleased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"PayeeAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReleased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"FUTERA_UNITED_PROVENANCE","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"domainSeparator","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":[],"name":"getChainId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"mintKey","type":"address"}],"name":"isMintKeyClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintable","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"signature","type":"bytes"},{"components":[{"internalType":"uint16","name":"amount","type":"uint16"},{"internalType":"address","name":"wallet","type":"address"}],"internalType":"struct FuteraUnited.MintKey","name":"mintKey","type":"tuple"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"payee","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"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":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"reserve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleStatus","outputs":[{"internalType":"enum FuteraUnited.SaleState","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseTokenURI","type":"string"}],"name":"setBaseTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"isOpenSeaProxyActive","type":"bool"}],"name":"setIsOpenSeaProxyActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"provenanceHash","type":"string"}],"name":"setProvenanceHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"enum FuteraUnited.SaleState","name":"SALE_STATUS","type":"uint8"},{"internalType":"uint8","name":"RESERVED","type":"uint8"},{"internalType":"uint8","name":"PUBLIC_SALE_MAX_PURCHASE","type":"uint8"},{"internalType":"uint8","name":"PRE_SALE_MAX_PURCHASE","type":"uint8"},{"internalType":"uint16","name":"MAX_SUPPLY","type":"uint16"},{"internalType":"uint16","name":"ROYALTY_BPS","type":"uint16"},{"internalType":"uint128","name":"MINT_PRICE","type":"uint128"}],"internalType":"struct FuteraUnited.SaleConfig","name":"config","type":"tuple"}],"name":"setSaleConfig","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":[{"internalType":"bytes4","name":"_interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"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":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"signature","type":"bytes"},{"components":[{"internalType":"uint16","name":"amount","type":"uint16"},{"internalType":"address","name":"wallet","type":"address"}],"internalType":"struct FuteraUnited.MintKey","name":"mintKey","type":"tuple"}],"name":"verify","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

6101406040526013805460ff60a01b1916600160a01b1790553480156200002557600080fd5b5060405162004210380380620042108339810160408190526200004891620009e3565b6040805180820190915260018152603160f81b6020808301919091528a51908b012060e08190527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc66101008190524660a052899289928d928d92849290917f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f620001178184846040805160208101859052908101839052606081018290524660808201523060a082015260009060c0016040516020818303038152906040528051906020012090509392505050565b6080523060c05261012052505083516200013b925060009150602085019062000636565b5080516200015190600190602084019062000636565b5050508051825114620001c65760405162461bcd60e51b815260206004820152603260248201527f5061796d656e7453706c69747465723a2070617965657320616e6420736861726044820152710cae640d8cadccee8d040dad2e6dac2e8c6d60731b60648201526084015b60405180910390fd5b6000825111620002195760405162461bcd60e51b815260206004820152601a60248201527f5061796d656e7453706c69747465723a206e6f207061796565730000000000006044820152606401620001bd565b60005b82518110156200028557620002708382815181106200023f576200023f62000b13565b60200260200101518383815181106200025c576200025c62000b13565b6020026020010151620003f260201b60201c565b806200027c8162000b3f565b9150506200021c565b505050620002a26200029c620005e060201b60201c565b620005e4565b8451600e8054879290829060ff19166001836002811115620002c857620002c862000b5d565b0217905550602082810151825460408501516060860151608087015160a088015160c0909801516001600160801b03166801000000000000000002600160401b600160c01b031961ffff998a1666010000000000000216600160301b600160c01b0319999092166401000000000261ffff60201b1960ff9485166301000000021665ffffff00000019958516620100000262ff00001995909816610100029490941662ffff001990961695909517959095179290921617919091179490941693909317929092179055600f80546001600160a01b038088166001600160a01b0319928316179092556010805487841690831617905560138054928616929091169190911790558151620003e2916011919084019062000636565b5050505050505050505062000bcb565b6001600160a01b0382166200045f5760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b6064820152608401620001bd565b60008111620004b15760405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a207368617265732061726520300000006044820152606401620001bd565b6001600160a01b038216600090815260086020526040902054156200052d5760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b6064820152608401620001bd565b600a8054600181019091557fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a80180546001600160a01b0319166001600160a01b03841690811790915560009081526008602052604090208190556006546200059790829062000b73565b600655604080516001600160a01b0384168152602081018390527f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac910160405180910390a15050565b3390565b600d80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620006449062000b8e565b90600052602060002090601f016020900481019282620006685760008555620006b3565b82601f106200068357805160ff1916838001178555620006b3565b82800160010185558215620006b3579182015b82811115620006b357825182559160200191906001019062000696565b50620006c1929150620006c5565b5090565b5b80821115620006c15760008155600101620006c6565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b03811182821017156200071d576200071d620006dc565b604052919050565b600082601f8301126200073757600080fd5b81516001600160401b03811115620007535762000753620006dc565b602062000769601f8301601f19168201620006f2565b82815285828487010111156200077e57600080fd5b60005b838110156200079e57858101830151828201840152820162000781565b83811115620007b05760008385840101525b5095945050505050565b60006001600160401b03821115620007d657620007d6620006dc565b5060051b60200190565b80516001600160a01b0381168114620007f857600080fd5b919050565b600082601f8301126200080f57600080fd5b81516020620008286200082283620007ba565b620006f2565b82815260059290921b840181019181810190868411156200084857600080fd5b8286015b848110156200086e576200086081620007e0565b83529183019183016200084c565b509695505050505050565b600082601f8301126200088b57600080fd5b815160206200089e6200082283620007ba565b82815260059290921b84018101918181019086841115620008be57600080fd5b8286015b848110156200086e5780518352918301918301620008c2565b805160ff81168114620007f857600080fd5b805161ffff81168114620007f857600080fd5b80516001600160801b0381168114620007f857600080fd5b600060e082840312156200092b57600080fd5b60405160e081016001600160401b0381118282101715620009505762000950620006dc565b80604052508091508251600381106200096857600080fd5b81526200097860208401620008db565b60208201526200098b60408401620008db565b60408201526200099e60608401620008db565b6060820152620009b160808401620008ed565b6080820152620009c460a08401620008ed565b60a0820152620009d760c0840162000900565b60c08201525092915050565b60008060008060008060008060006101e08a8c03121562000a0357600080fd5b89516001600160401b038082111562000a1b57600080fd5b62000a298d838e0162000725565b9a5060208c015191508082111562000a4057600080fd5b62000a4e8d838e0162000725565b995060408c015191508082111562000a6557600080fd5b62000a738d838e01620007fd565b985060608c015191508082111562000a8a57600080fd5b62000a988d838e0162000879565b975062000aa98d60808e0162000918565b965062000aba6101608d01620007e0565b955062000acb6101808d01620007e0565b945062000adc6101a08d01620007e0565b93506101c08c015191508082111562000af457600080fd5b5062000b038c828d0162000725565b9150509295985092959850929598565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060001982141562000b565762000b5662000b29565b5060010190565b634e487b7160e01b600052602160045260246000fd5b6000821982111562000b895762000b8962000b29565b500190565b600181811c9082168062000ba357607f821691505b6020821081141562000bc557634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05160c05160e05161010051610120516135f562000c1b60003960006121ed0152600061223c01526000612217015260006121700152600061219a015260006121c401526135f56000f3fe60806040526004361061023f5760003560e01c806370a082311161012e578063c87b56dd116100ab578063e43082f71161006f578063e43082f71461078a578063e985e9c5146107aa578063f2fde38b146107ca578063f698da25146107ea578063f9020e33146107ff57600080fd5b8063c87b56dd146106c9578063cc47a40b146106e9578063ce7c2ac214610709578063d79779b21461073f578063e33b7de31461077557600080fd5b80639852595c116100f25780639852595c146105fa5780639e562a3214610630578063a22cb46514610650578063ab5d5ea214610670578063b88d4fde146106a957600080fd5b806370a0823114610572578063715018a6146105925780638b83209b146105a75780638da5cb5b146105c757806395d89b41146105e557600080fd5b80632a55205a116101bc5780633c5791c9116101805780633c5791c9146104b9578063406072a9146104cc57806342842e0e1461051257806348b75044146105325780636352211e1461055257600080fd5b80632a55205a1461041357806330176e131461045257806333b2d7bd146104725780633408e470146104875780633a98ef39146104a457600080fd5b806318160ddd1161020357806318160ddd1461035e578063191655871461038c5780632154dc39146103ac57806323b872dd146103d357806323f04950146103f357600080fd5b806301ffc9a71461028d57806306fdde03146102c2578063081812fc146102e4578063095ea7b31461031c578063109695231461033e57600080fd5b36610288577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b34801561029957600080fd5b506102ad6102a8366004612b4c565b61081f565b60405190151581526020015b60405180910390f35b3480156102ce57600080fd5b506102d761084a565b6040516102b99190612bc1565b3480156102f057600080fd5b506103046102ff366004612bd4565b6108dc565b6040516001600160a01b0390911681526020016102b9565b34801561032857600080fd5b5061033c610337366004612c02565b610976565b005b34801561034a57600080fd5b5061033c610359366004612c70565b610a8c565b34801561036a57600080fd5b50600d54600160a01b900461ffff1660405161ffff90911681526020016102b9565b34801561039857600080fd5b5061033c6103a7366004612cb2565b610ac2565b3480156103b857600080fd5b506103c1610bf0565b60405160ff90911681526020016102b9565b3480156103df57600080fd5b5061033c6103ee366004612ccf565b610c57565b3480156103ff57600080fd5b5061033c61040e366004612d10565b610c88565b34801561041f57600080fd5b5061043361042e366004612d28565b610cbf565b604080516001600160a01b0390931683526020830191909152016102b9565b34801561045e57600080fd5b5061033c61046d366004612c70565b610d08565b34801561047e57600080fd5b506102d7610d3e565b34801561049357600080fd5b50465b6040519081526020016102b9565b3480156104b057600080fd5b50600654610496565b61033c6104c7366004612d4a565b610dcc565b3480156104d857600080fd5b506104966104e7366004612da9565b6001600160a01b039182166000908152600c6020908152604080832093909416825291909152205490565b34801561051e57600080fd5b5061033c61052d366004612ccf565b6110fa565b34801561053e57600080fd5b5061033c61054d366004612da9565b611115565b34801561055e57600080fd5b5061030461056d366004612bd4565b6112ee565b34801561057e57600080fd5b5061049661058d366004612cb2565b611365565b34801561059e57600080fd5b5061033c6113ec565b3480156105b357600080fd5b506103046105c2366004612bd4565b611422565b3480156105d357600080fd5b50600d546001600160a01b0316610304565b3480156105f157600080fd5b506102d7611452565b34801561060657600080fd5b50610496610615366004612cb2565b6001600160a01b031660009081526009602052604090205490565b34801561063c57600080fd5b506102ad61064b366004612d4a565b611461565b34801561065c57600080fd5b5061033c61066b366004612df0565b611557565b34801561067c57600080fd5b506102ad61068b366004612cb2565b6001600160a01b031660009081526012602052604090205460ff1690565b3480156106b557600080fd5b5061033c6106c4366004612e34565b611566565b3480156106d557600080fd5b506102d76106e4366004612bd4565b61159e565b3480156106f557600080fd5b5061033c610704366004612c02565b61164f565b34801561071557600080fd5b50610496610724366004612cb2565b6001600160a01b031660009081526008602052604090205490565b34801561074b57600080fd5b5061049661075a366004612cb2565b6001600160a01b03166000908152600b602052604090205490565b34801561078157600080fd5b50600754610496565b34801561079657600080fd5b5061033c6107a5366004612f14565b611715565b3480156107b657600080fd5b506102ad6107c5366004612da9565b61175d565b3480156107d657600080fd5b5061033c6107e5366004612cb2565b61183a565b3480156107f657600080fd5b506104966118d5565b34801561080b57600080fd5b50600e5460ff166040516102b99190612f47565b60006001600160e01b0319821663152a902d60e11b14806108445750610844826118df565b92915050565b60606000805461085990612f6f565b80601f016020809104026020016040519081016040528092919081815260200182805461088590612f6f565b80156108d25780601f106108a7576101008083540402835291602001916108d2565b820191906000526020600020905b8154815290600101906020018083116108b557829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b031661095a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610981826112ee565b9050806001600160a01b0316836001600160a01b031614156109ef5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610951565b336001600160a01b0382161480610a0b5750610a0b813361175d565b610a7d5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610951565b610a87838361192f565b505050565b600d546001600160a01b03163314610ab65760405162461bcd60e51b815260040161095190612fa4565b610a8760148383612a9d565b6001600160a01b038116600090815260086020526040902054610af75760405162461bcd60e51b815260040161095190612fd9565b6000610b0260075490565b610b0c9047613035565b90506000610b398383610b34866001600160a01b031660009081526009602052604090205490565b61199d565b905080610b585760405162461bcd60e51b81526004016109519061304d565b6001600160a01b03831660009081526009602052604081208054839290610b80908490613035565b925050819055508060076000828254610b999190613035565b90915550610ba9905083826119db565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b600080600e5460ff166002811115610c0a57610c0a612f31565b1415610c165750600090565b6001600e5460ff166002811115610c2f57610c2f612f31565b14610c445750600e5462010000900460ff1690565b600e546301000000900460ff165b905090565b610c613382611af4565b610c7d5760405162461bcd60e51b815260040161095190613098565b610a87838383611bc3565b600d546001600160a01b03163314610cb25760405162461bcd60e51b815260040161095190612fa4565b80600e610a878282613132565b601054600e5460009182916001600160a01b039091169061271090610cf2906601000000000000900461ffff1686613271565b610cfc91906132a6565b915091505b9250929050565b600d546001600160a01b03163314610d325760405162461bcd60e51b815260040161095190612fa4565b610a8760118383612a9d565b60148054610d4b90612f6f565b80601f0160208091040260200160405190810160405280929190818152602001828054610d7790612f6f565b8015610dc45780601f10610d9957610100808354040283529160200191610dc4565b820191906000526020600020905b815481529060010190602001808311610da757829003601f168201915b505050505081565b6000600e5460ff166002811115610de557610de5612f31565b1415610e215760405162461bcd60e51b815260206004820152600b60248201526a14d0531157d0d313d4d15160aa1b6044820152606401610951565b600e546801000000000000000090046001600160801b0316610e4660208301836132ba565b61ffff16610e5491906132d7565b6001600160801b03163414610e9d5760405162461bcd60e51b815260206004820152600f60248201526e494e434f52524543545f46554e445360881b6044820152606401610951565b6001600e5460ff166002811115610eb657610eb6612f31565b1415611036576000610ecb60208301836132ba565b61ffff16118015610ef85750600e546301000000900460ff16610ef160208301836132ba565b61ffff1611155b610f395760405162461bcd60e51b8152602060048201526012602482015271494e434f52524543545f5155414e5449545960701b6044820152606401610951565b60126000610f4d6040840160208501612cb2565b6001600160a01b0316815260208101919091526040016000205460ff1615610fa85760405162461bcd60e51b815260206004820152600e60248201526d1053149150511657d3525395115160921b6044820152606401610951565b610fb3838383611461565b610ff35760405162461bcd60e51b8152602060048201526011602482015270494e56414c49445f5349474e415455524560781b6044820152606401610951565b6001601260006110096040850160208601612cb2565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790556110d1565b6002600e5460ff16600281111561104f5761104f612f31565b14156110d157600061106460208301836132ba565b61ffff161180156110905750600e5462010000900460ff1661108960208301836132ba565b61ffff1611155b6110d15760405162461bcd60e51b8152602060048201526012602482015271494e434f52524543545f5155414e5449545960701b6044820152606401610951565b610a876110e46040830160208401612cb2565b6110f160208401846132ba565b61ffff16611d63565b610a8783838360405180602001604052806000815250611566565b6001600160a01b03811660009081526008602052604090205461114a5760405162461bcd60e51b815260040161095190612fd9565b6001600160a01b0382166000908152600b60205260408120546040516370a0823160e01b81523060048201526001600160a01b038516906370a0823190602401602060405180830381865afa1580156111a7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111cb9190613306565b6111d59190613035565b9050600061120e8383610b3487876001600160a01b039182166000908152600c6020908152604080832093909416825291909152205490565b90508061122d5760405162461bcd60e51b81526004016109519061304d565b6001600160a01b038085166000908152600c6020908152604080832093871683529290529081208054839290611264908490613035565b90915550506001600160a01b0384166000908152600b602052604081208054839290611291908490613035565b909155506112a29050848483611e4d565b604080516001600160a01b038581168252602082018490528616917f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a910160405180910390a250505050565b6000818152600260205260408120546001600160a01b0316806108445760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610951565b60006001600160a01b0382166113d05760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610951565b506001600160a01b031660009081526003602052604090205490565b600d546001600160a01b031633146114165760405162461bcd60e51b815260040161095190612fa4565b6114206000611e9f565b565b6000600a82815481106114375761143761331f565b6000918252602090912001546001600160a01b031692915050565b60606001805461085990612f6f565b6000806114f07f7a89340be8690b1f7ba41c9dceb8ed2b256fdd7f15f599cca25941afe679e0db61149560208601866132ba565b6114a56040870160208801612cb2565b6040516020016114d59392919092835261ffff9190911660208301526001600160a01b0316604082015260600190565b60405160208183030381529060405280519060200120611ef1565b600f54604080516020601f89018190048102820181019092528781529293506001600160a01b0390911691611542918491908990899081908401838280828437600092019190915250611f3f92505050565b6001600160a01b0316149150505b9392505050565b611562338383611f63565b5050565b6115703383611af4565b61158c5760405162461bcd60e51b815260040161095190613098565b61159884848484612032565b50505050565b6000818152600260205260409020546060906001600160a01b031661161d5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610951565b601161162883612065565b604051602001611639929190613351565b6040516020818303038152906040529050919050565b600d546001600160a01b031633146116795760405162461bcd60e51b815260040161095190612fa4565b6000811180156116935750600e54610100900460ff168111155b6116d25760405162461bcd60e51b815260206004820152601060248201526f149154d154959157d15610d15151115160821b6044820152606401610951565b6116dc8282611d63565b600e80548291906001906116f9908490610100900460ff1661340c565b92506101000a81548160ff021916908360ff1602179055505050565b600d546001600160a01b0316331461173f5760405162461bcd60e51b815260040161095190612fa4565b60138054911515600160a01b0260ff60a01b19909216919091179055565b6013546000906001600160a01b03811690600160a01b900460ff1680156117f9575060405163c455279160e01b81526001600160a01b038581166004830152808516919083169063c455279190602401602060405180830381865afa1580156117ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117ee919061342f565b6001600160a01b0316145b15611808576001915050610844565b6001600160a01b0380851660009081526005602090815260408083209387168352929052205460ff165b949350505050565b600d546001600160a01b031633146118645760405162461bcd60e51b815260040161095190612fa4565b6001600160a01b0381166118c95760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610951565b6118d281611e9f565b50565b6000610c52612163565b60006001600160e01b031982166380ac58cd60e01b148061191057506001600160e01b03198216635b5e139f60e01b145b8061084457506301ffc9a760e01b6001600160e01b0319831614610844565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611964826112ee565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6006546001600160a01b038416600090815260086020526040812054909183916119c79086613271565b6119d191906132a6565b611832919061344c565b80471015611a2b5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610951565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611a78576040519150601f19603f3d011682016040523d82523d6000602084013e611a7d565b606091505b5050905080610a875760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610951565b6000818152600260205260408120546001600160a01b0316611b6d5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610951565b6000611b78836112ee565b9050806001600160a01b0316846001600160a01b03161480611bb35750836001600160a01b0316611ba8846108dc565b6001600160a01b0316145b806118325750611832818561175d565b826001600160a01b0316611bd6826112ee565b6001600160a01b031614611c3e5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610951565b6001600160a01b038216611ca05760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610951565b611cab60008261192f565b6001600160a01b0383166000908152600360205260408120805460019290611cd490849061344c565b90915550506001600160a01b0382166000908152600360205260408120805460019290611d02908490613035565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600e54600d5461ffff640100000000909204821691611d8c918491600160a01b90910416613035565b1115611dcc5760405162461bcd60e51b815260206004820152600f60248201526e14d55414131657d15610d151511151608a1b6044820152606401610951565b60005b81811015610a8757600d54600090611df390600160a01b900461ffff166001613463565b61ffff169050611e03848261228a565b600d8054600160a01b900461ffff16906014611e1e83613489565b91906101000a81548161ffff021916908361ffff16021790555050508080611e45906134ab565b915050611dcf565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610a879084906122a4565b600d80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000610844611efe612163565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b6000806000611f4e8585612376565b91509150611f5b816123e3565b509392505050565b816001600160a01b0316836001600160a01b03161415611fc55760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610951565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61203d848484611bc3565b6120498484848461259e565b6115985760405162461bcd60e51b8152600401610951906134c6565b6060816120895750506040805180820190915260018152600360fc1b602082015290565b8160005b81156120b3578061209d816134ab565b91506120ac9050600a836132a6565b915061208d565b60008167ffffffffffffffff8111156120ce576120ce612e1e565b6040519080825280601f01601f1916602001820160405280156120f8576020820181803683370190505b5090505b84156118325761210d60018361344c565b915061211a600a86613518565b612125906030613035565b60f81b81838151811061213a5761213a61331f565b60200101906001600160f81b031916908160001a90535061215c600a866132a6565b94506120fc565b6000306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480156121bc57507f000000000000000000000000000000000000000000000000000000000000000046145b156121e657507f000000000000000000000000000000000000000000000000000000000000000090565b50604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b61156282826040518060200160405280600081525061269c565b60006122f9826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166126cf9092919063ffffffff16565b805190915015610a875780806020019051810190612317919061352c565b610a875760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610951565b6000808251604114156123ad5760208301516040840151606085015160001a6123a1878285856126de565b94509450505050610d01565b8251604014156123d757602083015160408401516123cc8683836127cb565b935093505050610d01565b50600090506002610d01565b60008160048111156123f7576123f7612f31565b14156124005750565b600181600481111561241457612414612f31565b14156124625760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610951565b600281600481111561247657612476612f31565b14156124c45760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610951565b60038160048111156124d8576124d8612f31565b14156125315760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610951565b600481600481111561254557612545612f31565b14156118d25760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610951565b60006001600160a01b0384163b1561269157604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906125e2903390899088908890600401613549565b6020604051808303816000875af192505050801561261d575060408051601f3d908101601f1916820190925261261a91810190613586565b60015b612677573d80801561264b576040519150601f19603f3d011682016040523d82523d6000602084013e612650565b606091505b50805161266f5760405162461bcd60e51b8152600401610951906134c6565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611832565b506001949350505050565b6126a683836127fa565b6126b3600084848461259e565b610a875760405162461bcd60e51b8152600401610951906134c6565b6060611832848460008561293c565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561271557506000905060036127c2565b8460ff16601b1415801561272d57508460ff16601c14155b1561273e57506000905060046127c2565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612792573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166127bb576000600192509250506127c2565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b016127ec878288856126de565b935093505050935093915050565b6001600160a01b0382166128505760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610951565b6000818152600260205260409020546001600160a01b0316156128b55760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610951565b6001600160a01b03821660009081526003602052604081208054600192906128de908490613035565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60608247101561299d5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610951565b843b6129eb5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610951565b600080866001600160a01b03168587604051612a0791906135a3565b60006040518083038185875af1925050503d8060008114612a44576040519150601f19603f3d011682016040523d82523d6000602084013e612a49565b606091505b5091509150612a59828286612a64565b979650505050505050565b60608315612a73575081611550565b825115612a835782518084602001fd5b8160405162461bcd60e51b81526004016109519190612bc1565b828054612aa990612f6f565b90600052602060002090601f016020900481019282612acb5760008555612b11565b82601f10612ae45782800160ff19823516178555612b11565b82800160010185558215612b11579182015b82811115612b11578235825591602001919060010190612af6565b50612b1d929150612b21565b5090565b5b80821115612b1d5760008155600101612b22565b6001600160e01b0319811681146118d257600080fd5b600060208284031215612b5e57600080fd5b813561155081612b36565b60005b83811015612b84578181015183820152602001612b6c565b838111156115985750506000910152565b60008151808452612bad816020860160208601612b69565b601f01601f19169290920160200192915050565b6020815260006115506020830184612b95565b600060208284031215612be657600080fd5b5035919050565b6001600160a01b03811681146118d257600080fd5b60008060408385031215612c1557600080fd5b8235612c2081612bed565b946020939093013593505050565b60008083601f840112612c4057600080fd5b50813567ffffffffffffffff811115612c5857600080fd5b602083019150836020828501011115610d0157600080fd5b60008060208385031215612c8357600080fd5b823567ffffffffffffffff811115612c9a57600080fd5b612ca685828601612c2e565b90969095509350505050565b600060208284031215612cc457600080fd5b813561155081612bed565b600080600060608486031215612ce457600080fd5b8335612cef81612bed565b92506020840135612cff81612bed565b929592945050506040919091013590565b600060e08284031215612d2257600080fd5b50919050565b60008060408385031215612d3b57600080fd5b50508035926020909101359150565b60008060008385036060811215612d6057600080fd5b843567ffffffffffffffff811115612d7757600080fd5b612d8387828801612c2e565b9095509350506040601f1982011215612d9b57600080fd5b506020840190509250925092565b60008060408385031215612dbc57600080fd5b8235612dc781612bed565b91506020830135612dd781612bed565b809150509250929050565b80151581146118d257600080fd5b60008060408385031215612e0357600080fd5b8235612e0e81612bed565b91506020830135612dd781612de2565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215612e4a57600080fd5b8435612e5581612bed565b93506020850135612e6581612bed565b925060408501359150606085013567ffffffffffffffff80821115612e8957600080fd5b818701915087601f830112612e9d57600080fd5b813581811115612eaf57612eaf612e1e565b604051601f8201601f19908116603f01168101908382118183101715612ed757612ed7612e1e565b816040528281528a6020848701011115612ef057600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600060208284031215612f2657600080fd5b813561155081612de2565b634e487b7160e01b600052602160045260246000fd5b6020810160038310612f6957634e487b7160e01b600052602160045260246000fd5b91905290565b600181811c90821680612f8357607f821691505b60208210811415612d2257634e487b7160e01b600052602260045260246000fd5b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526026908201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060408201526573686172657360d01b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b600082198211156130485761304861301f565b500190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060408201526a191d59481c185e5b595b9d60aa1b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6000813560ff8116811461084457600080fd5b61ffff811681146118d257600080fd5b60008135610844816130fc565b600081356001600160801b038116811461084457600080fd5b81356003811061314157600080fd5b815460ff821691508160ff19821617835561ff00613161602086016130e9565b60081b168261ffff198316171783555050613199613181604084016130e9565b825462ff0000191660109190911b62ff000016178255565b6131c26131a8606084016130e9565b825463ff000000191660189190911b63ff00000016178255565b6131ef6131d16080840161310c565b825465ffff00000000191660209190911b65ffff0000000016178255565b6132206131fe60a0840161310c565b825467ffff000000000000191660309190911b67ffff00000000000016178255565b61156261322f60c08401613119565b825477ffffffffffffffffffffffffffffffff0000000000000000191660409190911b77ffffffffffffffffffffffffffffffff000000000000000016178255565b600081600019048311821515161561328b5761328b61301f565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826132b5576132b5613290565b500490565b6000602082840312156132cc57600080fd5b8135611550816130fc565b60006001600160801b03808316818516818304811182151516156132fd576132fd61301f565b02949350505050565b60006020828403121561331857600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b60008151613347818560208601612b69565b9290920192915050565b600080845481600182811c91508083168061336d57607f831692505b602080841082141561338d57634e487b7160e01b86526022600452602486fd5b8180156133a157600181146133b2576133df565b60ff198616895284890196506133df565b60008b81526020902060005b868110156133d75781548b8201529085019083016133be565b505084890196505b5050505050506134036133f28286613335565b64173539b7b760d91b815260050190565b95945050505050565b600060ff821660ff8416808210156134265761342661301f565b90039392505050565b60006020828403121561344157600080fd5b815161155081612bed565b60008282101561345e5761345e61301f565b500390565b600061ffff8083168185168083038211156134805761348061301f565b01949350505050565b600061ffff808316818114156134a1576134a161301f565b6001019392505050565b60006000198214156134bf576134bf61301f565b5060010190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60008261352757613527613290565b500690565b60006020828403121561353e57600080fd5b815161155081612de2565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061357c90830184612b95565b9695505050505050565b60006020828403121561359857600080fd5b815161155081612b36565b600082516135b5818460208701612b69565b919091019291505056fea26469706673582212203bcca89719b5f8505a39837ce48247c4750e8930811c772bc4afe2d32a87e01264736f6c634300080b003300000000000000000000000000000000000000000000000000000000000001e00000000000000000000000000000000000000000000000000000000000000220000000000000000000000000000000000000000000000000000000000000026000000000000000000000000000000000000000000000000000000000000002c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c8000000000000000000000000000000000000000000000000000000000000001600000000000000000000000000000000000000000000000000000000000000050000000000000000000000000000000000000000000000000000000000001e14000000000000000000000000000000000000000000000000000000000000025800000000000000000000000000000000000000000000000000f8b0a10e4700000000000000000000000000008cb97ac0413b9ade44cd663561ceed155c031db5000000000000000000000000045224aac34af63472e4d478aff91276c221f105000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c10000000000000000000000000000000000000000000000000000000000000320000000000000000000000000000000000000000000000000000000000000000c467574657261556e697465640000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000246550000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000435cd3902d1b4f4e842f2c0fd5028eee71dd099c000000000000000000000000045224aac34af63472e4d478aff91276c221f1050000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000f0000000000000000000000000000000000000000000000000000000000000055000000000000000000000000000000000000000000000000000000000000003068747470733a2f2f667574657261756e697465642e6170692e746f70646f6773747564696f732e696f2f746f6b656e2f00000000000000000000000000000000

Deployed Bytecode

0x60806040526004361061023f5760003560e01c806370a082311161012e578063c87b56dd116100ab578063e43082f71161006f578063e43082f71461078a578063e985e9c5146107aa578063f2fde38b146107ca578063f698da25146107ea578063f9020e33146107ff57600080fd5b8063c87b56dd146106c9578063cc47a40b146106e9578063ce7c2ac214610709578063d79779b21461073f578063e33b7de31461077557600080fd5b80639852595c116100f25780639852595c146105fa5780639e562a3214610630578063a22cb46514610650578063ab5d5ea214610670578063b88d4fde146106a957600080fd5b806370a0823114610572578063715018a6146105925780638b83209b146105a75780638da5cb5b146105c757806395d89b41146105e557600080fd5b80632a55205a116101bc5780633c5791c9116101805780633c5791c9146104b9578063406072a9146104cc57806342842e0e1461051257806348b75044146105325780636352211e1461055257600080fd5b80632a55205a1461041357806330176e131461045257806333b2d7bd146104725780633408e470146104875780633a98ef39146104a457600080fd5b806318160ddd1161020357806318160ddd1461035e578063191655871461038c5780632154dc39146103ac57806323b872dd146103d357806323f04950146103f357600080fd5b806301ffc9a71461028d57806306fdde03146102c2578063081812fc146102e4578063095ea7b31461031c578063109695231461033e57600080fd5b36610288577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b34801561029957600080fd5b506102ad6102a8366004612b4c565b61081f565b60405190151581526020015b60405180910390f35b3480156102ce57600080fd5b506102d761084a565b6040516102b99190612bc1565b3480156102f057600080fd5b506103046102ff366004612bd4565b6108dc565b6040516001600160a01b0390911681526020016102b9565b34801561032857600080fd5b5061033c610337366004612c02565b610976565b005b34801561034a57600080fd5b5061033c610359366004612c70565b610a8c565b34801561036a57600080fd5b50600d54600160a01b900461ffff1660405161ffff90911681526020016102b9565b34801561039857600080fd5b5061033c6103a7366004612cb2565b610ac2565b3480156103b857600080fd5b506103c1610bf0565b60405160ff90911681526020016102b9565b3480156103df57600080fd5b5061033c6103ee366004612ccf565b610c57565b3480156103ff57600080fd5b5061033c61040e366004612d10565b610c88565b34801561041f57600080fd5b5061043361042e366004612d28565b610cbf565b604080516001600160a01b0390931683526020830191909152016102b9565b34801561045e57600080fd5b5061033c61046d366004612c70565b610d08565b34801561047e57600080fd5b506102d7610d3e565b34801561049357600080fd5b50465b6040519081526020016102b9565b3480156104b057600080fd5b50600654610496565b61033c6104c7366004612d4a565b610dcc565b3480156104d857600080fd5b506104966104e7366004612da9565b6001600160a01b039182166000908152600c6020908152604080832093909416825291909152205490565b34801561051e57600080fd5b5061033c61052d366004612ccf565b6110fa565b34801561053e57600080fd5b5061033c61054d366004612da9565b611115565b34801561055e57600080fd5b5061030461056d366004612bd4565b6112ee565b34801561057e57600080fd5b5061049661058d366004612cb2565b611365565b34801561059e57600080fd5b5061033c6113ec565b3480156105b357600080fd5b506103046105c2366004612bd4565b611422565b3480156105d357600080fd5b50600d546001600160a01b0316610304565b3480156105f157600080fd5b506102d7611452565b34801561060657600080fd5b50610496610615366004612cb2565b6001600160a01b031660009081526009602052604090205490565b34801561063c57600080fd5b506102ad61064b366004612d4a565b611461565b34801561065c57600080fd5b5061033c61066b366004612df0565b611557565b34801561067c57600080fd5b506102ad61068b366004612cb2565b6001600160a01b031660009081526012602052604090205460ff1690565b3480156106b557600080fd5b5061033c6106c4366004612e34565b611566565b3480156106d557600080fd5b506102d76106e4366004612bd4565b61159e565b3480156106f557600080fd5b5061033c610704366004612c02565b61164f565b34801561071557600080fd5b50610496610724366004612cb2565b6001600160a01b031660009081526008602052604090205490565b34801561074b57600080fd5b5061049661075a366004612cb2565b6001600160a01b03166000908152600b602052604090205490565b34801561078157600080fd5b50600754610496565b34801561079657600080fd5b5061033c6107a5366004612f14565b611715565b3480156107b657600080fd5b506102ad6107c5366004612da9565b61175d565b3480156107d657600080fd5b5061033c6107e5366004612cb2565b61183a565b3480156107f657600080fd5b506104966118d5565b34801561080b57600080fd5b50600e5460ff166040516102b99190612f47565b60006001600160e01b0319821663152a902d60e11b14806108445750610844826118df565b92915050565b60606000805461085990612f6f565b80601f016020809104026020016040519081016040528092919081815260200182805461088590612f6f565b80156108d25780601f106108a7576101008083540402835291602001916108d2565b820191906000526020600020905b8154815290600101906020018083116108b557829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b031661095a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610981826112ee565b9050806001600160a01b0316836001600160a01b031614156109ef5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610951565b336001600160a01b0382161480610a0b5750610a0b813361175d565b610a7d5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610951565b610a87838361192f565b505050565b600d546001600160a01b03163314610ab65760405162461bcd60e51b815260040161095190612fa4565b610a8760148383612a9d565b6001600160a01b038116600090815260086020526040902054610af75760405162461bcd60e51b815260040161095190612fd9565b6000610b0260075490565b610b0c9047613035565b90506000610b398383610b34866001600160a01b031660009081526009602052604090205490565b61199d565b905080610b585760405162461bcd60e51b81526004016109519061304d565b6001600160a01b03831660009081526009602052604081208054839290610b80908490613035565b925050819055508060076000828254610b999190613035565b90915550610ba9905083826119db565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b600080600e5460ff166002811115610c0a57610c0a612f31565b1415610c165750600090565b6001600e5460ff166002811115610c2f57610c2f612f31565b14610c445750600e5462010000900460ff1690565b600e546301000000900460ff165b905090565b610c613382611af4565b610c7d5760405162461bcd60e51b815260040161095190613098565b610a87838383611bc3565b600d546001600160a01b03163314610cb25760405162461bcd60e51b815260040161095190612fa4565b80600e610a878282613132565b601054600e5460009182916001600160a01b039091169061271090610cf2906601000000000000900461ffff1686613271565b610cfc91906132a6565b915091505b9250929050565b600d546001600160a01b03163314610d325760405162461bcd60e51b815260040161095190612fa4565b610a8760118383612a9d565b60148054610d4b90612f6f565b80601f0160208091040260200160405190810160405280929190818152602001828054610d7790612f6f565b8015610dc45780601f10610d9957610100808354040283529160200191610dc4565b820191906000526020600020905b815481529060010190602001808311610da757829003601f168201915b505050505081565b6000600e5460ff166002811115610de557610de5612f31565b1415610e215760405162461bcd60e51b815260206004820152600b60248201526a14d0531157d0d313d4d15160aa1b6044820152606401610951565b600e546801000000000000000090046001600160801b0316610e4660208301836132ba565b61ffff16610e5491906132d7565b6001600160801b03163414610e9d5760405162461bcd60e51b815260206004820152600f60248201526e494e434f52524543545f46554e445360881b6044820152606401610951565b6001600e5460ff166002811115610eb657610eb6612f31565b1415611036576000610ecb60208301836132ba565b61ffff16118015610ef85750600e546301000000900460ff16610ef160208301836132ba565b61ffff1611155b610f395760405162461bcd60e51b8152602060048201526012602482015271494e434f52524543545f5155414e5449545960701b6044820152606401610951565b60126000610f4d6040840160208501612cb2565b6001600160a01b0316815260208101919091526040016000205460ff1615610fa85760405162461bcd60e51b815260206004820152600e60248201526d1053149150511657d3525395115160921b6044820152606401610951565b610fb3838383611461565b610ff35760405162461bcd60e51b8152602060048201526011602482015270494e56414c49445f5349474e415455524560781b6044820152606401610951565b6001601260006110096040850160208601612cb2565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790556110d1565b6002600e5460ff16600281111561104f5761104f612f31565b14156110d157600061106460208301836132ba565b61ffff161180156110905750600e5462010000900460ff1661108960208301836132ba565b61ffff1611155b6110d15760405162461bcd60e51b8152602060048201526012602482015271494e434f52524543545f5155414e5449545960701b6044820152606401610951565b610a876110e46040830160208401612cb2565b6110f160208401846132ba565b61ffff16611d63565b610a8783838360405180602001604052806000815250611566565b6001600160a01b03811660009081526008602052604090205461114a5760405162461bcd60e51b815260040161095190612fd9565b6001600160a01b0382166000908152600b60205260408120546040516370a0823160e01b81523060048201526001600160a01b038516906370a0823190602401602060405180830381865afa1580156111a7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111cb9190613306565b6111d59190613035565b9050600061120e8383610b3487876001600160a01b039182166000908152600c6020908152604080832093909416825291909152205490565b90508061122d5760405162461bcd60e51b81526004016109519061304d565b6001600160a01b038085166000908152600c6020908152604080832093871683529290529081208054839290611264908490613035565b90915550506001600160a01b0384166000908152600b602052604081208054839290611291908490613035565b909155506112a29050848483611e4d565b604080516001600160a01b038581168252602082018490528616917f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a910160405180910390a250505050565b6000818152600260205260408120546001600160a01b0316806108445760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610951565b60006001600160a01b0382166113d05760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610951565b506001600160a01b031660009081526003602052604090205490565b600d546001600160a01b031633146114165760405162461bcd60e51b815260040161095190612fa4565b6114206000611e9f565b565b6000600a82815481106114375761143761331f565b6000918252602090912001546001600160a01b031692915050565b60606001805461085990612f6f565b6000806114f07f7a89340be8690b1f7ba41c9dceb8ed2b256fdd7f15f599cca25941afe679e0db61149560208601866132ba565b6114a56040870160208801612cb2565b6040516020016114d59392919092835261ffff9190911660208301526001600160a01b0316604082015260600190565b60405160208183030381529060405280519060200120611ef1565b600f54604080516020601f89018190048102820181019092528781529293506001600160a01b0390911691611542918491908990899081908401838280828437600092019190915250611f3f92505050565b6001600160a01b0316149150505b9392505050565b611562338383611f63565b5050565b6115703383611af4565b61158c5760405162461bcd60e51b815260040161095190613098565b61159884848484612032565b50505050565b6000818152600260205260409020546060906001600160a01b031661161d5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610951565b601161162883612065565b604051602001611639929190613351565b6040516020818303038152906040529050919050565b600d546001600160a01b031633146116795760405162461bcd60e51b815260040161095190612fa4565b6000811180156116935750600e54610100900460ff168111155b6116d25760405162461bcd60e51b815260206004820152601060248201526f149154d154959157d15610d15151115160821b6044820152606401610951565b6116dc8282611d63565b600e80548291906001906116f9908490610100900460ff1661340c565b92506101000a81548160ff021916908360ff1602179055505050565b600d546001600160a01b0316331461173f5760405162461bcd60e51b815260040161095190612fa4565b60138054911515600160a01b0260ff60a01b19909216919091179055565b6013546000906001600160a01b03811690600160a01b900460ff1680156117f9575060405163c455279160e01b81526001600160a01b038581166004830152808516919083169063c455279190602401602060405180830381865afa1580156117ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117ee919061342f565b6001600160a01b0316145b15611808576001915050610844565b6001600160a01b0380851660009081526005602090815260408083209387168352929052205460ff165b949350505050565b600d546001600160a01b031633146118645760405162461bcd60e51b815260040161095190612fa4565b6001600160a01b0381166118c95760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610951565b6118d281611e9f565b50565b6000610c52612163565b60006001600160e01b031982166380ac58cd60e01b148061191057506001600160e01b03198216635b5e139f60e01b145b8061084457506301ffc9a760e01b6001600160e01b0319831614610844565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611964826112ee565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6006546001600160a01b038416600090815260086020526040812054909183916119c79086613271565b6119d191906132a6565b611832919061344c565b80471015611a2b5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610951565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611a78576040519150601f19603f3d011682016040523d82523d6000602084013e611a7d565b606091505b5050905080610a875760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610951565b6000818152600260205260408120546001600160a01b0316611b6d5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610951565b6000611b78836112ee565b9050806001600160a01b0316846001600160a01b03161480611bb35750836001600160a01b0316611ba8846108dc565b6001600160a01b0316145b806118325750611832818561175d565b826001600160a01b0316611bd6826112ee565b6001600160a01b031614611c3e5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610951565b6001600160a01b038216611ca05760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610951565b611cab60008261192f565b6001600160a01b0383166000908152600360205260408120805460019290611cd490849061344c565b90915550506001600160a01b0382166000908152600360205260408120805460019290611d02908490613035565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600e54600d5461ffff640100000000909204821691611d8c918491600160a01b90910416613035565b1115611dcc5760405162461bcd60e51b815260206004820152600f60248201526e14d55414131657d15610d151511151608a1b6044820152606401610951565b60005b81811015610a8757600d54600090611df390600160a01b900461ffff166001613463565b61ffff169050611e03848261228a565b600d8054600160a01b900461ffff16906014611e1e83613489565b91906101000a81548161ffff021916908361ffff16021790555050508080611e45906134ab565b915050611dcf565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610a879084906122a4565b600d80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000610844611efe612163565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b6000806000611f4e8585612376565b91509150611f5b816123e3565b509392505050565b816001600160a01b0316836001600160a01b03161415611fc55760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610951565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61203d848484611bc3565b6120498484848461259e565b6115985760405162461bcd60e51b8152600401610951906134c6565b6060816120895750506040805180820190915260018152600360fc1b602082015290565b8160005b81156120b3578061209d816134ab565b91506120ac9050600a836132a6565b915061208d565b60008167ffffffffffffffff8111156120ce576120ce612e1e565b6040519080825280601f01601f1916602001820160405280156120f8576020820181803683370190505b5090505b84156118325761210d60018361344c565b915061211a600a86613518565b612125906030613035565b60f81b81838151811061213a5761213a61331f565b60200101906001600160f81b031916908160001a90535061215c600a866132a6565b94506120fc565b6000306001600160a01b037f000000000000000000000000a249ee2b3dca97019b4bfc4dbe0485a05c6dc156161480156121bc57507f000000000000000000000000000000000000000000000000000000000000000146145b156121e657507f803590944d1eb3e0f11ce422afea232ba4a961231d398a4fae6ae7089da6fb1b90565b50604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6020808301919091527fb30cf4b8884ebea235062229e6fc9c82e4dc60f97bf0762e5a15ab0a51be545e828401527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b61156282826040518060200160405280600081525061269c565b60006122f9826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166126cf9092919063ffffffff16565b805190915015610a875780806020019051810190612317919061352c565b610a875760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610951565b6000808251604114156123ad5760208301516040840151606085015160001a6123a1878285856126de565b94509450505050610d01565b8251604014156123d757602083015160408401516123cc8683836127cb565b935093505050610d01565b50600090506002610d01565b60008160048111156123f7576123f7612f31565b14156124005750565b600181600481111561241457612414612f31565b14156124625760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610951565b600281600481111561247657612476612f31565b14156124c45760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610951565b60038160048111156124d8576124d8612f31565b14156125315760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610951565b600481600481111561254557612545612f31565b14156118d25760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610951565b60006001600160a01b0384163b1561269157604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906125e2903390899088908890600401613549565b6020604051808303816000875af192505050801561261d575060408051601f3d908101601f1916820190925261261a91810190613586565b60015b612677573d80801561264b576040519150601f19603f3d011682016040523d82523d6000602084013e612650565b606091505b50805161266f5760405162461bcd60e51b8152600401610951906134c6565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611832565b506001949350505050565b6126a683836127fa565b6126b3600084848461259e565b610a875760405162461bcd60e51b8152600401610951906134c6565b6060611832848460008561293c565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561271557506000905060036127c2565b8460ff16601b1415801561272d57508460ff16601c14155b1561273e57506000905060046127c2565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612792573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166127bb576000600192509250506127c2565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b016127ec878288856126de565b935093505050935093915050565b6001600160a01b0382166128505760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610951565b6000818152600260205260409020546001600160a01b0316156128b55760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610951565b6001600160a01b03821660009081526003602052604081208054600192906128de908490613035565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60608247101561299d5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610951565b843b6129eb5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610951565b600080866001600160a01b03168587604051612a0791906135a3565b60006040518083038185875af1925050503d8060008114612a44576040519150601f19603f3d011682016040523d82523d6000602084013e612a49565b606091505b5091509150612a59828286612a64565b979650505050505050565b60608315612a73575081611550565b825115612a835782518084602001fd5b8160405162461bcd60e51b81526004016109519190612bc1565b828054612aa990612f6f565b90600052602060002090601f016020900481019282612acb5760008555612b11565b82601f10612ae45782800160ff19823516178555612b11565b82800160010185558215612b11579182015b82811115612b11578235825591602001919060010190612af6565b50612b1d929150612b21565b5090565b5b80821115612b1d5760008155600101612b22565b6001600160e01b0319811681146118d257600080fd5b600060208284031215612b5e57600080fd5b813561155081612b36565b60005b83811015612b84578181015183820152602001612b6c565b838111156115985750506000910152565b60008151808452612bad816020860160208601612b69565b601f01601f19169290920160200192915050565b6020815260006115506020830184612b95565b600060208284031215612be657600080fd5b5035919050565b6001600160a01b03811681146118d257600080fd5b60008060408385031215612c1557600080fd5b8235612c2081612bed565b946020939093013593505050565b60008083601f840112612c4057600080fd5b50813567ffffffffffffffff811115612c5857600080fd5b602083019150836020828501011115610d0157600080fd5b60008060208385031215612c8357600080fd5b823567ffffffffffffffff811115612c9a57600080fd5b612ca685828601612c2e565b90969095509350505050565b600060208284031215612cc457600080fd5b813561155081612bed565b600080600060608486031215612ce457600080fd5b8335612cef81612bed565b92506020840135612cff81612bed565b929592945050506040919091013590565b600060e08284031215612d2257600080fd5b50919050565b60008060408385031215612d3b57600080fd5b50508035926020909101359150565b60008060008385036060811215612d6057600080fd5b843567ffffffffffffffff811115612d7757600080fd5b612d8387828801612c2e565b9095509350506040601f1982011215612d9b57600080fd5b506020840190509250925092565b60008060408385031215612dbc57600080fd5b8235612dc781612bed565b91506020830135612dd781612bed565b809150509250929050565b80151581146118d257600080fd5b60008060408385031215612e0357600080fd5b8235612e0e81612bed565b91506020830135612dd781612de2565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215612e4a57600080fd5b8435612e5581612bed565b93506020850135612e6581612bed565b925060408501359150606085013567ffffffffffffffff80821115612e8957600080fd5b818701915087601f830112612e9d57600080fd5b813581811115612eaf57612eaf612e1e565b604051601f8201601f19908116603f01168101908382118183101715612ed757612ed7612e1e565b816040528281528a6020848701011115612ef057600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600060208284031215612f2657600080fd5b813561155081612de2565b634e487b7160e01b600052602160045260246000fd5b6020810160038310612f6957634e487b7160e01b600052602160045260246000fd5b91905290565b600181811c90821680612f8357607f821691505b60208210811415612d2257634e487b7160e01b600052602260045260246000fd5b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526026908201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060408201526573686172657360d01b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b600082198211156130485761304861301f565b500190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060408201526a191d59481c185e5b595b9d60aa1b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6000813560ff8116811461084457600080fd5b61ffff811681146118d257600080fd5b60008135610844816130fc565b600081356001600160801b038116811461084457600080fd5b81356003811061314157600080fd5b815460ff821691508160ff19821617835561ff00613161602086016130e9565b60081b168261ffff198316171783555050613199613181604084016130e9565b825462ff0000191660109190911b62ff000016178255565b6131c26131a8606084016130e9565b825463ff000000191660189190911b63ff00000016178255565b6131ef6131d16080840161310c565b825465ffff00000000191660209190911b65ffff0000000016178255565b6132206131fe60a0840161310c565b825467ffff000000000000191660309190911b67ffff00000000000016178255565b61156261322f60c08401613119565b825477ffffffffffffffffffffffffffffffff0000000000000000191660409190911b77ffffffffffffffffffffffffffffffff000000000000000016178255565b600081600019048311821515161561328b5761328b61301f565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826132b5576132b5613290565b500490565b6000602082840312156132cc57600080fd5b8135611550816130fc565b60006001600160801b03808316818516818304811182151516156132fd576132fd61301f565b02949350505050565b60006020828403121561331857600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b60008151613347818560208601612b69565b9290920192915050565b600080845481600182811c91508083168061336d57607f831692505b602080841082141561338d57634e487b7160e01b86526022600452602486fd5b8180156133a157600181146133b2576133df565b60ff198616895284890196506133df565b60008b81526020902060005b868110156133d75781548b8201529085019083016133be565b505084890196505b5050505050506134036133f28286613335565b64173539b7b760d91b815260050190565b95945050505050565b600060ff821660ff8416808210156134265761342661301f565b90039392505050565b60006020828403121561344157600080fd5b815161155081612bed565b60008282101561345e5761345e61301f565b500390565b600061ffff8083168185168083038211156134805761348061301f565b01949350505050565b600061ffff808316818114156134a1576134a161301f565b6001019392505050565b60006000198214156134bf576134bf61301f565b5060010190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60008261352757613527613290565b500690565b60006020828403121561353e57600080fd5b815161155081612de2565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061357c90830184612b95565b9695505050505050565b60006020828403121561359857600080fd5b815161155081612b36565b600082516135b5818460208701612b69565b919091019291505056fea26469706673582212203bcca89719b5f8505a39837ce48247c4750e8930811c772bc4afe2d32a87e01264736f6c634300080b0033

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

00000000000000000000000000000000000000000000000000000000000001e00000000000000000000000000000000000000000000000000000000000000220000000000000000000000000000000000000000000000000000000000000026000000000000000000000000000000000000000000000000000000000000002c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c8000000000000000000000000000000000000000000000000000000000000001600000000000000000000000000000000000000000000000000000000000000050000000000000000000000000000000000000000000000000000000000001e14000000000000000000000000000000000000000000000000000000000000025800000000000000000000000000000000000000000000000000f8b0a10e4700000000000000000000000000008cb97ac0413b9ade44cd663561ceed155c031db5000000000000000000000000045224aac34af63472e4d478aff91276c221f105000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c10000000000000000000000000000000000000000000000000000000000000320000000000000000000000000000000000000000000000000000000000000000c467574657261556e697465640000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000246550000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000435cd3902d1b4f4e842f2c0fd5028eee71dd099c000000000000000000000000045224aac34af63472e4d478aff91276c221f1050000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000f0000000000000000000000000000000000000000000000000000000000000055000000000000000000000000000000000000000000000000000000000000003068747470733a2f2f667574657261756e697465642e6170692e746f70646f6773747564696f732e696f2f746f6b656e2f00000000000000000000000000000000

-----Decoded View---------------
Arg [0] : name (string): FuteraUnited
Arg [1] : symbol (string): FU
Arg [2] : payees (address[]): 0x435Cd3902d1b4f4E842F2C0fd5028EEE71dd099C,0x045224aaC34aF63472E4d478AFf91276C221F105
Arg [3] : shares (uint256[]): 15,85
Arg [4] : saleConfig (tuple): System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput]
Arg [5] : signer (address): 0x8cB97AC0413b9ADE44cd663561ceeD155c031DB5
Arg [6] : treasury (address): 0x045224aaC34aF63472E4d478AFf91276C221F105
Arg [7] : openSeaProxyRegistryAddress (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1
Arg [8] : baseTokenURI (string): https://futeraunited.api.topdogstudios.io/token/

-----Encoded View---------------
28 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000001e0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000220
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000260
Arg [3] : 00000000000000000000000000000000000000000000000000000000000002c0
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [5] : 00000000000000000000000000000000000000000000000000000000000000c8
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000016
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [8] : 0000000000000000000000000000000000000000000000000000000000001e14
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000258
Arg [10] : 00000000000000000000000000000000000000000000000000f8b0a10e470000
Arg [11] : 0000000000000000000000008cb97ac0413b9ade44cd663561ceed155c031db5
Arg [12] : 000000000000000000000000045224aac34af63472e4d478aff91276c221f105
Arg [13] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Arg [14] : 0000000000000000000000000000000000000000000000000000000000000320
Arg [15] : 000000000000000000000000000000000000000000000000000000000000000c
Arg [16] : 467574657261556e697465640000000000000000000000000000000000000000
Arg [17] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [18] : 4655000000000000000000000000000000000000000000000000000000000000
Arg [19] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [20] : 000000000000000000000000435cd3902d1b4f4e842f2c0fd5028eee71dd099c
Arg [21] : 000000000000000000000000045224aac34af63472e4d478aff91276c221f105
Arg [22] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [23] : 000000000000000000000000000000000000000000000000000000000000000f
Arg [24] : 0000000000000000000000000000000000000000000000000000000000000055
Arg [25] : 0000000000000000000000000000000000000000000000000000000000000030
Arg [26] : 68747470733a2f2f667574657261756e697465642e6170692e746f70646f6773
Arg [27] : 747564696f732e696f2f746f6b656e2f00000000000000000000000000000000


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.