Contract 0x27EAb8425541058669BDB8B52E75b600131505ED

 

Contract Overview

Balance:
15,391.8 MATIC

MATIC Value:
$11,847.07 (@ $0.77/MATIC)

Token:
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xd93e87033642704c46bd7eda21bfcc101d860c44bdec69f0bd6a885b5eb8b26dSet Approval For...335031902022-09-24 10:06:235 hrs 30 mins ago0x7f1b47c14d1458d724dc7a76c5123e3722df8f94 IN  0x27eab8425541058669bdb8b52e75b600131505ed0 MATIC0.00138558 30.000000013
0x59965e456191782fe1d2be2eabe1a1e9422c891f60379630aedb5af3c4599e49Set Approval For...330353642022-09-13 2:21:0611 days 13 hrs ago0x0c567f2eddbc1776395e9cd56796c0803046d864 IN  0x27eab8425541058669bdb8b52e75b600131505ed0 MATIC0.00138558 30.000000016
0x84234983f5b10ae6a133d3576046f82f8b2a846d0e29ecb522f010d48d9bf86cSet Approval For...328540712022-09-08 17:12:2015 days 22 hrs ago0x93d539899d8b39421268687fea7e1e51cf352469 IN  0x27eab8425541058669bdb8b52e75b600131505ed0 MATIC0.00177041404 38.332266055
0x7effa4973ae4b7ec24275155a9bb0b020fff6daaa4e41c529ce6b49b9283f727Withdraw325830572022-09-02 4:20:3022 days 11 hrs ago0x85e3fe276f3c9a9bea29217d59bd1926bb3b12e6 IN  0x27eab8425541058669bdb8b52e75b600131505ed0 MATIC0.003648904 46
0x884e15ba3d6099ee477babd8d5eb6027bcd550f98b113d70e8f203c373c6e6f4Set Approval For...324617762022-08-29 22:30:0225 days 17 hrs ago0x9915866af410975014f965b7bf83aed9b892fc63 IN  0x27eab8425541058669bdb8b52e75b600131505ed0 MATIC0.001474299802 31.862973911
0xa4ac1e2d0d02810865e0b7f5510e3dea47b7112bd95ed733cff2c63e68984328Safe Transfer Fr...324535242022-08-29 16:04:5025 days 23 hrs ago0xd11f6316f3a89a21ef718fa045469b5bd9709b40 IN  0x27eab8425541058669bdb8b52e75b600131505ed0 MATIC0.003073214315 59.000428416
0x369f563634ce7b5c85b387d49517c3f753c630f5ec4621f85a3db7b6c6299815Set Approval For...323918082022-08-27 22:16:4927 days 17 hrs ago0xd11f6316f3a89a21ef718fa045469b5bd9709b40 IN  0x27eab8425541058669bdb8b52e75b600131505ed0 MATIC0.00272993 59.00000001
0x4f38e6cf163acad4ad7df211e2dc6399bb3e1cf90c2ce1ee3ef2c46a0bf4f5a0Mint322341782022-08-23 15:34:0132 days 3 mins ago0x47b9f4807a94b9c259255496d2d372a25b8931fc IN  0x27eab8425541058669bdb8b52e75b600131505ed169 MATIC0.00264381127531.500193917
0xe391af8fa3ce446ef8111cdb387331eb4a26992d0db032705ce3278687f2a9d0Safe Transfer Fr...322210062022-08-23 7:27:5632 days 8 hrs ago0x24bf3ca118236361c41385834fc217aa73e246ae IN  0x27eab8425541058669bdb8b52e75b600131505ed0 MATIC0.001719840624 33.025589998
0x54e504e3cc997895d9149f9facfb5cb1354591103b1d2c1e66c1c91897e0d5b3Set Approval For...315827772022-08-06 9:48:2849 days 5 hrs ago0xbc6451c3494f04988d901443612c84fe5dfe3953 IN  0x27eab8425541058669bdb8b52e75b600131505ed0 MATIC0.001405682592 30.379999841
0x737ca48d173b9f7cac69006d546af937753198f657d164410b47ef1654ab68d2Mint313680642022-07-31 21:21:0954 days 18 hrs ago0xb087a38c7457d33e1e856726019b35fc0169e6ac IN  0x27eab8425541058669bdb8b52e75b600131505ed169 MATIC0.003077032 46
0x271aff5687436d4281168891073875b02386d2a1323cb17eb31c0073173e354dMint312589452022-07-29 2:18:5757 days 13 hrs ago0xb087a38c7457d33e1e856726019b35fc0169e6ac IN  0x27eab8425541058669bdb8b52e75b600131505ed169 MATIC0.004031616 48
0x60d290d4c99da5787d29ceed8b5ea57903a09584216a45e80711489fbeb944faSet Approval For...311280922022-07-25 16:39:4360 days 22 hrs ago0xca0c184bd9b89a3c4f983614918f30f04ae57667 IN  0x27eab8425541058669bdb8b52e75b600131505ed0 MATIC0.00138890322730.017359567
0xe66a47df9ba764cd23d3c2ca97ce71ca0f5d51b90ae24ace2e6dc02abacec09fSet Approval For...309118292022-07-19 21:32:4766 days 18 hrs ago0xf5da83126e82f9472688e6732ba2ba93c48cfa07 IN  0x27eab8425541058669bdb8b52e75b600131505ed0 MATIC0.001451480648 31.369800059
0xe9d73e90258d2aab4e4b39f84b03bdf9b694082a5979e71c99903d65d8d01a2dMint307329892022-07-15 0:38:2171 days 14 hrs ago0x943c626c757a308d1f0ff7e6fea1235ef1072c81 IN  0x27eab8425541058669bdb8b52e75b600131505ed169 MATIC0.00923912 110
0x18da87f86db360c9f4ad577586d9ce94610eae9870874d210d3683fa9ea0c52cMint307021512022-07-14 4:19:2172 days 11 hrs ago0xf309a36ebc6763438b9fe54962de4a9cedb0d424 IN  0x27eab8425541058669bdb8b52e75b600131505ed169 MATIC0.002400948682 48.219567043
0x28f0fc336a2d8c4b71ac54be727563ad0c872df039f7f6760181d7b92a67dfdfSafe Transfer Fr...306929832022-07-13 21:27:4572 days 18 hrs ago0xb0e225322b8e1088799fdfe8f6a7b2e40327eba7 IN  0x27eab8425541058669bdb8b52e75b600131505ed0 MATIC0.001923383285 33.810000093
0x2a4e12751d31e622947e60fa978a8e739662df059e2e6fe882fe13fb4de9752bMint305867982022-07-11 2:56:0575 days 12 hrs ago0x67938f7ec91d2623dc29e545e61c1ef7ec582d0e IN  0x27eab8425541058669bdb8b52e75b600131505ed169 MATIC0.00251798393130.001000016
0x9ec0b3ec7f3a3c6c3b0823a220728c20d881e40594245fdd809f30527a422726Mint303946362022-07-06 6:41:4580 days 8 hrs ago0xca0c184bd9b89a3c4f983614918f30f04ae57667 IN  0x27eab8425541058669bdb8b52e75b600131505ed169 MATIC0.00314037396937.388965255
0xcf5fac11ca081d013bda3774c34c4ad58d93df20e546388291e901f1a5cfdfb0Mint303777732022-07-05 19:45:0680 days 19 hrs ago0x4745caaa27c376a650e3b99e7da46cf0c06f0036 IN  0x27eab8425541058669bdb8b52e75b600131505ed169 MATIC0.011507815404 137.010851092
0xd4fa3752e7be531ce2da03ba4120f517002903d1a21d01bce145f82f9d784ce6Mint302933632022-07-03 14:44:2583 days 52 mins ago0x92be3c7f75d981335a6a0845b099a1b8755f075a IN  0x27eab8425541058669bdb8b52e75b600131505ed169 MATIC0.00303892034236.207796283
0xd403fff48c295f3b5c161ec4ad7616224ddcbebb8f9a506e83f18d5ff0a43b2fMint300284342022-06-26 17:48:2989 days 21 hrs ago0x24bf3ca118236361c41385834fc217aa73e246ae IN  0x27eab8425541058669bdb8b52e75b600131505ed169 MATIC0.00352506 42
0x58ee75c24da81aff176f43ac640bd47fc4e8ec56f7f5ee2f2a773e22ba3dfc8aSet Approval For...299471692022-06-24 14:01:0792 days 1 hr ago0xd7a4c39cc2546a59f5b049e18a200114412d95c5 IN  0x27eab8425541058669bdb8b52e75b600131505ed0 MATIC0.00157076384 33.947781304
0x9e9bd4538e3d0020ff38bf5f07e5b1af21e6782c1c3b4eca83e02900189a04e5Set Approval For...298677172022-06-22 12:51:3294 days 2 hrs ago0xa91e86472faf978fc064d401cee409bf4dd786f2 IN  0x27eab8425541058669bdb8b52e75b600131505ed0 MATIC0.001621667734 35.047930289
0x0b0722a19c201f45fb78d295ae7652e3ef3e03dc07cc20c685b9a78cb212075fMint297811072022-06-20 6:06:0296 days 9 hrs ago0x0077ad63750ad5c9fd4ff1b36c0a264600dd3e1b IN  0x27eab8425541058669bdb8b52e75b600131505ed169 MATIC0.0041965 50
[ Download CSV Export 
Latest 1 internal transaction
Parent Txn Hash Block From To Value
0x7effa4973ae4b7ec24275155a9bb0b020fff6daaa4e41c529ce6b49b9283f727325830572022-09-02 4:20:3022 days 11 hrs ago 0x27eab8425541058669bdb8b52e75b600131505ed0x85e3fe276f3c9a9bea29217d59bd1926bb3b12e62,716.2 MATIC
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
CloserToNicole

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 15 : CloserToNicole.sol
// SPDX-License-Identifier: Unlicense

pragma solidity ^0.8.9;

import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/finance/PaymentSplitter.sol";
import "./AllowList.sol";

/**
 * @dev {ERC1155} token
 */
contract CloserToNicole is ERC1155, Ownable, PaymentSplitter, AllowList {
    string public name = "Closer To Nicole";
    string public symbol = "CTN";

    //EIP-2981
    uint256 private _royaltyBps;
    address private _royaltyRecipient;
    bytes4 private constant _INTERFACE_ID_ROYALTIES_EIP2981 = 0x2a55205a;

    bytes32 private allowList; // merkle root of the allow list including each address and its token allowance
    address[] private payeeAddresses; // addresses which can withdraw from the contract funds
    string public contractURI; // contract level metadata for supporting platforms

    uint16 private constant MINT_ALLOWANCE = 10;

    uint16 private constant SERIES_NUM = 5; // Number of token series
    uint16[] private SERIES_SUPPLY = [1394, 1394, 1393, 1394, 1394]; // Array of the supply of tokens in each series

    mapping(uint256 => uint256) public seriesNumMinted; // Number of tokens each series has minted
    mapping(address => bool) public fanMinted; // Mapping of fans who have minted

    uint256 private mintPriceInWei = 169 ether;

    bool public fanMintingEnabled = false; // toggle to enable the fan presale
    bool public mintingEnabled = false; // toggle to enable the public mint

    mapping(address => uint256) public addressToMinted; // Number of tokens each address has minted from allow list

    /**
     * @param uri Token URI
     * @param _payeeAddresses Addresses which can withdraw funds from this contract
     * @param payeeShares Allotments of each address which can withdraw funds from the contract
     * @param _allowList Merkle proof of the allow list addresses and their allotment
     */
    constructor(
        string memory uri,
        address[] memory _payeeAddresses,
        uint256[] memory payeeShares,
        bytes32 _allowList
    ) ERC1155(uri) PaymentSplitter(_payeeAddresses, payeeShares) {
        allowList = _allowList;
        payeeAddresses = _payeeAddresses;
    }

    /*
     * Mint functions
     */

    /// Mint an AccessToken from the AllowList
    /// @notice Mint an AccessToken if you're in the fan snapshot. Must pay mint fee.
    /// @param merkleProof Merkle proof for your address in the snapshot
    /// @param _id Token series id
    /// @param _count Number of tokens within the series to mint
    /// @param allowance Total number of tokens this address is allowed to mint
    function fanMint(
        bytes32[] memory merkleProof,
        uint256 _id,
        uint256 _count,
        uint256 allowance
    ) external payable {
        require(fanMintingEnabled, "fanMintingEnabled");
        require(_id < SERIES_NUM, "SERIES_NUM");
        require(
            seriesNumMinted[_id] + _count <= SERIES_SUPPLY[_id],
            "SERIES_MAX"
        );
        require(mintPriceInWei * _count == msg.value, "mintPriceInWei");
        require(
            addressToMinted[_msgSender()] + _count <= allowance,
            "Exceeds allowList allowance"
        );
        require(
            isAllocationOnList(allowList, merkleProof, _msgSender(), allowance),
            "allowList"
        );

        seriesNumMinted[_id] += _count;
        addressToMinted[_msgSender()] += _count;
        _mint(_msgSender(), _id, _count, "");
    }

    /// Mint an AccessToken
    /// @notice Mint an AccessToken
    /// @param _id Token series id
    /// @param _count Number of tokens within the series to mint
    function mint(uint256 _id, uint256 _count) public payable {
        require(mintingEnabled, "mintingEnabled");
        require(_id < SERIES_NUM, "SERIES_NUM");
        require(
            seriesNumMinted[_id] + _count <= SERIES_SUPPLY[_id],
            "SERIES_MAX"
        );
        require(mintPriceInWei * _count == msg.value, "mintPriceInWei");
        require(
            addressToMinted[_msgSender()] + _count <= MINT_ALLOWANCE,
            "Exceeds minting allowance"
        );

        seriesNumMinted[_id] += _count;
        addressToMinted[_msgSender()] += _count;
        _mint(_msgSender(), _id, _count, "");
    }

    /// Mint an AccessToken without a mint fee
    /// @notice Mint an AccessToken without a mint fee for giveaways, treasury allocation, etc.
    /// @param _id Token series id
    /// @param _count Number of tokens within the series to mint
    /// @param to Address to send the tokens to
    function mintGiveaway(
        uint256 _id,
        uint256 _count,
        address to
    ) public onlyOwner {
        require(_id < SERIES_NUM, "SERIES_NUM");
        require(
            seriesNumMinted[_id] + _count <= SERIES_SUPPLY[_id],
            "SERIES_MAX"
        );

        seriesNumMinted[_id] += _count;
        _mint(to, _id, _count, "");
    }

    /*
     * View functions
     */

    /// Get the mint price
    /// @notice Gets the token mint price
    /// @return mintPriceInWei token mint price in WEI
    function getMintPriceInWei() public view returns (uint256) {
        return mintPriceInWei;
    }

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

    /// Get the EIP-2981 royalty data
    /// @notice Get the EIP-2981 royalty data
    /// @return _royaltyRecipient Royalty recipient address
    /// @return value value to send to recipient address
    function royaltyInfo(uint256, uint256 value)
        external
        view
        returns (address, uint256)
    {
        return (_royaltyRecipient, (value * _royaltyBps) / 10000);
    }

    /*
     * Owner functions
     */

    /// Set the allowlist merkle root
    /// @notice Set the allow list merkle root
    /// @param _allowList New merkleroot for allowlist use
    function setAllowList(bytes32 _allowList) external onlyOwner {
        allowList = _allowList;
    }

    /// Set the base URI
    /// @notice Set the contract base URI using ERC1155 _setURI
    /// @param _baseURI New base URI. ex: https://example.com/\{id\}.json
    function setBaseURI(string memory _baseURI) external onlyOwner {
        _setURI(_baseURI);
    }

    /// Set contract URI
    /// @notice Set contract URI for supporting platforms
    function setContractURI(string calldata _contractURI) external onlyOwner {
        contractURI = _contractURI;
    }

    /// Update the minting states
    /// @notice Change whether the fan mint or public mint is enabled
    /// @param _fanMintingEnabled Turn the fan mint on or off
    /// @param _mintingEnabled Turn the public mint on or off
    function setMintingStates(bool _fanMintingEnabled, bool _mintingEnabled)
        public
        onlyOwner
    {
        fanMintingEnabled = _fanMintingEnabled;
        mintingEnabled = _mintingEnabled;
    }

    /// Update the token mint price
    /// @notice Sets a new mint price for every token
    /// @param _mintPriceInWei Updated mint price in ETH
    function setMintPriceInWei(uint256 _mintPriceInWei) public onlyOwner {
        mintPriceInWei = _mintPriceInWei;
    }

    /// Update the EIP-2981 royalty data
    /// @notice Update the EIP-2981 royalty data
    /// @param recipient Royalty recipient address
    /// @param bps Royalty rate in basis points
    function setRoyalties(address payable recipient, uint256 bps)
        external
        onlyOwner
    {
        _royaltyRecipient = recipient;
        _royaltyBps = bps;
    }

    /// Withdraw funds
    /// @notice Withdraws using OpenZeppelin PaymentSplitter. Any address initialized on the splitter
    ///         can withdraw their allotment at any time.
    function withdraw() external {
        release(payable(_msgSender()));
    }
}

File 2 of 15 : ERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/ERC1155.sol)

pragma solidity ^0.8.0;

import "./IERC1155.sol";
import "./IERC1155Receiver.sol";
import "./extensions/IERC1155MetadataURI.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of the basic standard multi-token.
 * See https://eips.ethereum.org/EIPS/eip-1155
 * Originally based on code by Enjin: https://github.com/enjin/erc-1155
 *
 * _Available since v3.1._
 */
contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
    using Address for address;

    // Mapping from token ID to account balances
    mapping(uint256 => mapping(address => uint256)) private _balances;

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

    // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json
    string private _uri;

    /**
     * @dev See {_setURI}.
     */
    constructor(string memory uri_) {
        _setURI(uri_);
    }

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

    /**
     * @dev See {IERC1155MetadataURI-uri}.
     *
     * This implementation returns the same URI for *all* token types. It relies
     * on the token type ID substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * Clients calling this function must replace the `\{id\}` substring with the
     * actual token type ID.
     */
    function uri(uint256) public view virtual override returns (string memory) {
        return _uri;
    }

    /**
     * @dev See {IERC1155-balanceOf}.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) public view virtual override returns (uint256) {
        require(account != address(0), "ERC1155: balance query for the zero address");
        return _balances[id][account];
    }

    /**
     * @dev See {IERC1155-balanceOfBatch}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] memory accounts, uint256[] memory ids)
        public
        view
        virtual
        override
        returns (uint256[] memory)
    {
        require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch");

        uint256[] memory batchBalances = new uint256[](accounts.length);

        for (uint256 i = 0; i < accounts.length; ++i) {
            batchBalances[i] = balanceOf(accounts[i], ids[i]);
        }

        return batchBalances;
    }

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

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

    /**
     * @dev See {IERC1155-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );
        _safeTransferFrom(from, to, id, amount, data);
    }

    /**
     * @dev See {IERC1155-safeBatchTransferFrom}.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: transfer caller is not owner nor approved"
        );
        _safeBatchTransferFrom(from, to, ids, amounts, data);
    }

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, to, _asSingletonArray(id), _asSingletonArray(amount), data);

        uint256 fromBalance = _balances[id][from];
        require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
        unchecked {
            _balances[id][from] = fromBalance - amount;
        }
        _balances[id][to] += amount;

        emit TransferSingle(operator, from, to, id, amount);

        _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; ++i) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 fromBalance = _balances[id][from];
            require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
            _balances[id][to] += amount;
        }

        emit TransferBatch(operator, from, to, ids, amounts);

        _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data);
    }

    /**
     * @dev Sets a new URI for all token types, by relying on the token type ID
     * substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * By this mechanism, any occurrence of the `\{id\}` substring in either the
     * URI or any of the amounts in the JSON file at said URI will be replaced by
     * clients with the token type ID.
     *
     * For example, the `https://token-cdn-domain/\{id\}.json` URI would be
     * interpreted by clients as
     * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json`
     * for token type ID 0x4cce0.
     *
     * See {uri}.
     *
     * Because these URIs cannot be meaningfully represented by the {URI} event,
     * this function emits no events.
     */
    function _setURI(string memory newuri) internal virtual {
        _uri = newuri;
    }

    /**
     * @dev Creates `amount` tokens of token type `id`, and assigns them to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _mint(
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, address(0), to, _asSingletonArray(id), _asSingletonArray(amount), data);

        _balances[id][to] += amount;
        emit TransferSingle(operator, address(0), to, id, amount);

        _doSafeTransferAcceptanceCheck(operator, address(0), to, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _mintBatch(
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, address(0), to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; i++) {
            _balances[ids[i]][to] += amounts[i];
        }

        emit TransferBatch(operator, address(0), to, ids, amounts);

        _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data);
    }

    /**
     * @dev Destroys `amount` tokens of token type `id` from `from`
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `from` must have at least `amount` tokens of token type `id`.
     */
    function _burn(
        address from,
        uint256 id,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC1155: burn from the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, address(0), _asSingletonArray(id), _asSingletonArray(amount), "");

        uint256 fromBalance = _balances[id][from];
        require(fromBalance >= amount, "ERC1155: burn amount exceeds balance");
        unchecked {
            _balances[id][from] = fromBalance - amount;
        }

        emit TransferSingle(operator, from, address(0), id, amount);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     */
    function _burnBatch(
        address from,
        uint256[] memory ids,
        uint256[] memory amounts
    ) internal virtual {
        require(from != address(0), "ERC1155: burn from the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, address(0), ids, amounts, "");

        for (uint256 i = 0; i < ids.length; i++) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 fromBalance = _balances[id][from];
            require(fromBalance >= amount, "ERC1155: burn amount exceeds balance");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
        }

        emit TransferBatch(operator, from, address(0), ids, amounts);
    }

    /**
     * @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, "ERC1155: setting approval status for self");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning, as well as batched variants.
     *
     * The same hook is called on both single and batched variants. For single
     * transfers, the length of the `id` and `amount` arrays will be 1.
     *
     * Calling conditions (for each `id` and `amount` pair):
     *
     * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * of token type `id` will be  transferred to `to`.
     * - When `from` is zero, `amount` tokens of token type `id` will be minted
     * for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens of token type `id`
     * will be burned.
     * - `from` and `to` are never both zero.
     * - `ids` and `amounts` have the same, non-zero length.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {}

    function _doSafeTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) {
                if (response != IERC1155Receiver.onERC1155Received.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non ERC1155Receiver implementer");
            }
        }
    }

    function _doSafeBatchTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns (
                bytes4 response
            ) {
                if (response != IERC1155Receiver.onERC1155BatchReceived.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non ERC1155Receiver implementer");
            }
        }
    }

    function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) {
        uint256[] memory array = new uint256[](1);
        array[0] = element;

        return array;
    }
}

File 3 of 15 : 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 4 of 15 : 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 5 of 15 : AllowList.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";

contract AllowList {
    function isAddressOnList(
        bytes32 merkleRoot,
        bytes32[] memory proof,
        address account
    ) public pure returns (bool) {
        bytes32 leaf = keccak256(abi.encodePacked(account));
        return MerkleProof.verify(proof, merkleRoot, leaf);
    }

    function isAllocationOnList(
        bytes32 merkleRoot,
        bytes32[] memory proof,
        address account,
        uint256 allocation
    ) public pure returns (bool) {
        bytes32 leaf = keccak256(
            abi.encodePacked(address(account), uint256(allocation))
        );
        return MerkleProof.verify(proof, merkleRoot, leaf);
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

File 7 of 15 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155Receiver.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev _Available since v3.1._
 */
interface IERC1155Receiver is IERC165 {
    /**
        @dev Handles the receipt of a single ERC1155 token type. This function is
        called at the end of a `safeTransferFrom` after the balance has been updated.
        To accept the transfer, this must return
        `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`
        (i.e. 0xf23a6e61, or its own function selector).
        @param operator The address which initiated the transfer (i.e. msg.sender)
        @param from The address which previously owned the token
        @param id The ID of the token being transferred
        @param value The amount of tokens being transferred
        @param data Additional data with no specified format
        @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed
    */
    function onERC1155Received(
        address operator,
        address from,
        uint256 id,
        uint256 value,
        bytes calldata data
    ) external returns (bytes4);

    /**
        @dev Handles the receipt of a multiple ERC1155 token types. This function
        is called at the end of a `safeBatchTransferFrom` after the balances have
        been updated. To accept the transfer(s), this must return
        `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))`
        (i.e. 0xbc197c81, or its own function selector).
        @param operator The address which initiated the batch transfer (i.e. msg.sender)
        @param from The address which previously owned the token
        @param ids An array containing ids of each token being transferred (order and length must match values array)
        @param values An array containing amounts of each token being transferred (order and length must match ids array)
        @param data Additional data with no specified format
        @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed
    */
    function onERC1155BatchReceived(
        address operator,
        address from,
        uint256[] calldata ids,
        uint256[] calldata values,
        bytes calldata data
    ) external returns (bytes4);
}

File 8 of 15 : IERC1155MetadataURI.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol)

pragma solidity ^0.8.0;

import "../IERC1155.sol";

/**
 * @dev Interface of the optional ERC1155MetadataExtension interface, as defined
 * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155MetadataURI is IERC1155 {
    /**
     * @dev Returns the URI for token type `id`.
     *
     * If the `\{id\}` substring is present in the URI, it must be replaced by
     * clients with the actual token type ID.
     */
    function uri(uint256 id) external view returns (string memory);
}

File 9 of 15 : 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 10 of 15 : 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 11 of 15 : 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 12 of 15 : 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 13 of 15 : 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 14 of 15 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            bytes32 proofElement = proof[i];
            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = keccak256(abi.encodePacked(computedHash, proofElement));
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = keccak256(abi.encodePacked(proofElement, computedHash));
            }
        }
        return computedHash;
    }
}

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":"uri","type":"string"},{"internalType":"address[]","name":"_payeeAddresses","type":"address[]"},{"internalType":"uint256[]","name":"payeeShares","type":"uint256[]"},{"internalType":"bytes32","name":"_allowList","type":"bytes32"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","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":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"addressToMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"},{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_count","type":"uint256"},{"internalType":"uint256","name":"allowance","type":"uint256"}],"name":"fanMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"fanMinted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fanMintingEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMintPriceInWei","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"},{"internalType":"address","name":"account","type":"address"}],"name":"isAddressOnList","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"},{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"allocation","type":"uint256"}],"name":"isAllocationOnList","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_count","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_count","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"mintGiveaway","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintingEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":"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":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"value","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":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"seriesNumMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_allowList","type":"bytes32"}],"name":"setAllowList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_contractURI","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintPriceInWei","type":"uint256"}],"name":"setMintPriceInWei","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_fanMintingEnabled","type":"bool"},{"internalType":"bool","name":"_mintingEnabled","type":"bool"}],"name":"setMintingStates","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"recipient","type":"address"},{"internalType":"uint256","name":"bps","type":"uint256"}],"name":"setRoyalties","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":"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":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60c0604052601060808190526f436c6f73657220546f204e69636f6c6560801b60a09081526200003391600b9190620004b6565b506040805180820190915260038082526221aa2760e91b60209092019182526200006091600c91620004b6565b506040805160a0810182526105728082526020820181905261057192820192909252606081018290526080810191909152620000a190601290600562000545565b50680929589c99810400006015556016805461ffff19169055348015620000c757600080fd5b5060405162003b9338038062003b93833981016040819052620000ea91620007ba565b828285620000f8816200025d565b50620001043362000276565b8051825114620001765760405162461bcd60e51b815260206004820152603260248201527f5061796d656e7453706c69747465723a2070617965657320616e6420736861726044820152710cae640d8cadccee8d040dad2e6dac2e8c6d60731b60648201526084015b60405180910390fd5b6000825111620001c95760405162461bcd60e51b815260206004820152601a60248201527f5061796d656e7453706c69747465723a206e6f2070617965657300000000000060448201526064016200016d565b60005b8251811015620002355762000220838281518110620001ef57620001ef620008ce565b60200260200101518383815181106200020c576200020c620008ce565b6020026020010151620002c860201b60201c565b806200022c81620008fa565b915050620001cc565b505050600f819055825162000252906010906020860190620005f0565b505050505062000970565b805162000272906002906020840190620004b6565b5050565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216620003355760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b60648201526084016200016d565b60008111620003875760405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a2073686172657320617265203000000060448201526064016200016d565b6001600160a01b03821660009081526006602052604090205415620004035760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b60648201526084016200016d565b60088054600181019091557ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30180546001600160a01b0319166001600160a01b03841690811790915560009081526006602052604090208190556004546200046d90829062000918565b600455604080516001600160a01b0384168152602081018390527f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac910160405180910390a15050565b828054620004c49062000933565b90600052602060002090601f016020900481019282620004e8576000855562000533565b82601f106200050357805160ff191683800117855562000533565b8280016001018555821562000533579182015b828111156200053357825182559160200191906001019062000516565b506200054192915062000648565b5090565b82805482825590600052602060002090600f01601090048101928215620005335791602002820160005b83821115620005b157835183826101000a81548161ffff021916908361ffff16021790555092602001926002016020816001010492830192600103026200056f565b8015620005e15782816101000a81549061ffff0219169055600201602081600101049283019260010302620005b1565b50506200054192915062000648565b82805482825590600052602060002090810192821562000533579160200282015b828111156200053357825182546001600160a01b0319166001600160a01b0390911617825560209092019160019091019062000611565b5b8082111562000541576000815560010162000649565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715620006a057620006a06200065f565b604052919050565b60006001600160401b03821115620006c457620006c46200065f565b5060051b60200190565b600082601f830112620006e057600080fd5b81516020620006f9620006f383620006a8565b62000675565b82815260059290921b840181019181810190868411156200071957600080fd5b8286015b848110156200074d5780516001600160a01b03811681146200073f5760008081fd5b83529183019183016200071d565b509695505050505050565b600082601f8301126200076a57600080fd5b815160206200077d620006f383620006a8565b82815260059290921b840181019181810190868411156200079d57600080fd5b8286015b848110156200074d5780518352918301918301620007a1565b60008060008060808587031215620007d157600080fd5b84516001600160401b0380821115620007e957600080fd5b818701915087601f830112620007fe57600080fd5b8151818111156200081357620008136200065f565b602062000829601f8301601f1916820162000675565b8281528a828487010111156200083e57600080fd5b60005b838110156200085e57858101830151828201840152820162000841565b83811115620008705760008385840101525b5090890151909750925050808211156200088957600080fd5b6200089788838901620006ce565b94506040870151915080821115620008ae57600080fd5b50620008bd8782880162000758565b606096909601519497939650505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600019821415620009115762000911620008e4565b5060010190565b600082198211156200092e576200092e620008e4565b500190565b600181811c908216806200094857607f821691505b602082108114156200096a57634e487b7160e01b600052602260045260246000fd5b50919050565b61321380620009806000396000f3fe6080604052600436106102545760003560e01c80638c7ea24b11610139578063cf4fe932116100b6578063e8a3d4851161007a578063e8a3d485146107aa578063e985e9c5146107bf578063f242432a14610808578063f2fde38b14610828578063fa10b5f914610848578063fd0cff181461087857600080fd5b8063cf4fe932146106f2578063d79779b21461071f578063d84d1a1c14610755578063deff438614610775578063e33b7de31461079557600080fd5b80639ec00c95116100fd5780639ec00c95146106305780639fd6db121461065d578063a22cb4651461067c578063a3e7c2211461069c578063ce7c2ac2146106bc57600080fd5b80638c7ea24b146105875780638da5cb5b146105a7578063938e3d7b146105c557806395d89b41146105e55780639852595c146105fa57600080fd5b80633ccfd60b116101d257806351c7e99d1161019657806351c7e99d146104c557806355f804b3146104da578063613ff6e4146104fa578063715018a61461051a57806384584d071461052f5780638b83209b1461054f57600080fd5b80633ccfd60b14610403578063406072a91461041857806348b750441461045e5780634e1273f41461047e5780634e4bdd6d146104ab57600080fd5b80631916558711610219578063191655871461035c5780631b2ef1ca1461037c5780632a55205a1461038f5780632eb2c2d6146103ce5780633a98ef39146103ee57600080fd5b8062fdd58e146102a257806301ffc9a7146102d5578063031395fd1461030557806306fdde031461031a5780630e89341c1461033c57600080fd5b3661029d577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b3480156102ae57600080fd5b506102c26102bd36600461260a565b610898565b6040519081526020015b60405180910390f35b3480156102e157600080fd5b506102f56102f036600461264c565b61092f565b60405190151581526020016102cc565b61031861031336600461273f565b61095b565b005b34801561032657600080fd5b5061032f610b9c565b6040516102cc91906127ea565b34801561034857600080fd5b5061032f6103573660046127fd565b610c2a565b34801561036857600080fd5b50610318610377366004612816565b610cbe565b61031861038a366004612833565b610dec565b34801561039b57600080fd5b506103af6103aa366004612833565b610fe2565b604080516001600160a01b0390931683526020830191909152016102cc565b3480156103da57600080fd5b506103186103e93660046128d2565b61101c565b3480156103fa57600080fd5b506004546102c2565b34801561040f57600080fd5b506103186110b3565b34801561042457600080fd5b506102c261043336600461297f565b6001600160a01b039182166000908152600a6020908152604080832093909416825291909152205490565b34801561046a57600080fd5b5061031861047936600461297f565b6110be565b34801561048a57600080fd5b5061049e6104993660046129b8565b6112a6565b6040516102cc9190612abf565b3480156104b757600080fd5b506016546102f59060ff1681565b3480156104d157600080fd5b506015546102c2565b3480156104e657600080fd5b506103186104f5366004612ad2565b6113cf565b34801561050657600080fd5b506102f5610515366004612b1a565b611405565b34801561052657600080fd5b50610318611457565b34801561053b57600080fd5b5061031861054a3660046127fd565b61148b565b34801561055b57600080fd5b5061056f61056a3660046127fd565b6114ba565b6040516001600160a01b0390911681526020016102cc565b34801561059357600080fd5b506103186105a236600461260a565b6114ea565b3480156105b357600080fd5b506003546001600160a01b031661056f565b3480156105d157600080fd5b506103186105e0366004612b74565b61153a565b3480156105f157600080fd5b5061032f611575565b34801561060657600080fd5b506102c2610615366004612816565b6001600160a01b031660009081526007602052604090205490565b34801561063c57600080fd5b506102c261064b366004612816565b60176020526000908152604090205481565b34801561066957600080fd5b506016546102f590610100900460ff1681565b34801561068857600080fd5b50610318610697366004612bf3565b611582565b3480156106a857600080fd5b506103186106b73660046127fd565b61158d565b3480156106c857600080fd5b506102c26106d7366004612816565b6001600160a01b031660009081526006602052604090205490565b3480156106fe57600080fd5b506102c261070d3660046127fd565b60136020526000908152604090205481565b34801561072b57600080fd5b506102c261073a366004612816565b6001600160a01b031660009081526009602052604090205490565b34801561076157600080fd5b50610318610770366004612c21565b6115bc565b34801561078157600080fd5b506102f5610790366004612c3f565b61160a565b3480156107a157600080fd5b506005546102c2565b3480156107b657600080fd5b5061032f611662565b3480156107cb57600080fd5b506102f56107da36600461297f565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b34801561081457600080fd5b50610318610823366004612c9f565b61166f565b34801561083457600080fd5b50610318610843366004612816565b6116f6565b34801561085457600080fd5b506102f5610863366004612816565b60146020526000908152604090205460ff1681565b34801561088457600080fd5b50610318610893366004612d07565b61178e565b60006001600160a01b0383166109095760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b600061093a82611886565b8061095557506001600160e01b0319821663152a902d60e11b145b92915050565b60165460ff166109a15760405162461bcd60e51b815260206004820152601160248201527019985b935a5b9d1a5b99d15b98589b1959607a1b6044820152606401610900565b600583106109c15760405162461bcd60e51b815260040161090090612d35565b601283815481106109d4576109d4612d59565b600091825260208083206010830401548684526013909152604090922054600f9091166002026101000a90910461ffff1690610a11908490612d85565b1115610a2f5760405162461bcd60e51b815260040161090090612d9d565b3482601554610a3e9190612dc1565b14610a7c5760405162461bcd60e51b815260206004820152600e60248201526d6d696e745072696365496e57656960901b6044820152606401610900565b336000908152601760205260409020548190610a99908490612d85565b1115610ae75760405162461bcd60e51b815260206004820152601b60248201527f4578636565647320616c6c6f774c69737420616c6c6f77616e636500000000006044820152606401610900565b610afb600f5485610af53390565b8461160a565b610b335760405162461bcd60e51b8152602060048201526009602482015268185b1b1bddd31a5cdd60ba1b6044820152606401610900565b60008381526013602052604081208054849290610b51908490612d85565b90915550503360009081526017602052604081208054849290610b75908490612d85565b90915550610b969050338484604051806020016040528060008152506118d6565b50505050565b600b8054610ba990612de0565b80601f0160208091040260200160405190810160405280929190818152602001828054610bd590612de0565b8015610c225780601f10610bf757610100808354040283529160200191610c22565b820191906000526020600020905b815481529060010190602001808311610c0557829003601f168201915b505050505081565b606060028054610c3990612de0565b80601f0160208091040260200160405190810160405280929190818152602001828054610c6590612de0565b8015610cb25780601f10610c8757610100808354040283529160200191610cb2565b820191906000526020600020905b815481529060010190602001808311610c9557829003601f168201915b50505050509050919050565b6001600160a01b038116600090815260066020526040902054610cf35760405162461bcd60e51b815260040161090090612e1b565b6000610cfe60055490565b610d089047612d85565b90506000610d358383610d30866001600160a01b031660009081526007602052604090205490565b6119e0565b905080610d545760405162461bcd60e51b815260040161090090612e61565b6001600160a01b03831660009081526007602052604081208054839290610d7c908490612d85565b925050819055508060056000828254610d959190612d85565b90915550610da590508382611a26565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b601654610100900460ff16610e345760405162461bcd60e51b815260206004820152600e60248201526d1b5a5b9d1a5b99d15b98589b195960921b6044820152606401610900565b60058210610e545760405162461bcd60e51b815260040161090090612d35565b60128281548110610e6757610e67612d59565b600091825260208083206010830401548584526013909152604090922054600f9091166002026101000a90910461ffff1690610ea4908390612d85565b1115610ec25760405162461bcd60e51b815260040161090090612d9d565b3481601554610ed19190612dc1565b14610f0f5760405162461bcd60e51b815260206004820152600e60248201526d6d696e745072696365496e57656960901b6044820152606401610900565b33600090815260176020526040902054600a90610f2d908390612d85565b1115610f7b5760405162461bcd60e51b815260206004820152601960248201527f45786365656473206d696e74696e6720616c6c6f77616e6365000000000000006044820152606401610900565b60008281526013602052604081208054839290610f99908490612d85565b90915550503360009081526017602052604081208054839290610fbd908490612d85565b90915550610fde9050338383604051806020016040528060008152506118d6565b5050565b600e54600d5460009182916001600160a01b0390911690612710906110079086612dc1565b6110119190612eac565b915091509250929050565b6001600160a01b038516331480611038575061103885336107da565b61109f5760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610900565b6110ac8585858585611b3f565b5050505050565b6110bc33610cbe565b565b6001600160a01b0381166000908152600660205260409020546110f35760405162461bcd60e51b815260040161090090612e1b565b6001600160a01b0382166000908152600960205260408120546040516370a0823160e01b81523060048201526001600160a01b038516906370a082319060240160206040518083038186803b15801561114b57600080fd5b505afa15801561115f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111839190612ece565b61118d9190612d85565b905060006111c68383610d3087876001600160a01b039182166000908152600a6020908152604080832093909416825291909152205490565b9050806111e55760405162461bcd60e51b815260040161090090612e61565b6001600160a01b038085166000908152600a602090815260408083209387168352929052908120805483929061121c908490612d85565b90915550506001600160a01b03841660009081526009602052604081208054839290611249908490612d85565b9091555061125a9050848483611d1c565b604080516001600160a01b038581168252602082018490528616917f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a910160405180910390a250505050565b6060815183511461130b5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610900565b600083516001600160401b0381111561132657611326612669565b60405190808252806020026020018201604052801561134f578160200160208202803683370190505b50905060005b84518110156113c75761139a85828151811061137357611373612d59565b602002602001015185838151811061138d5761138d612d59565b6020026020010151610898565b8282815181106113ac576113ac612d59565b60209081029190910101526113c081612ee7565b9050611355565b509392505050565b6003546001600160a01b031633146113f95760405162461bcd60e51b815260040161090090612f02565b61140281611d6e565b50565b6040516bffffffffffffffffffffffff19606083901b166020820152600090819060340160405160208183030381529060405280519060200120905061144c848683611d81565b9150505b9392505050565b6003546001600160a01b031633146114815760405162461bcd60e51b815260040161090090612f02565b6110bc6000611d97565b6003546001600160a01b031633146114b55760405162461bcd60e51b815260040161090090612f02565b600f55565b6000600882815481106114cf576114cf612d59565b6000918252602090912001546001600160a01b031692915050565b6003546001600160a01b031633146115145760405162461bcd60e51b815260040161090090612f02565b600e80546001600160a01b0319166001600160a01b039390931692909217909155600d55565b6003546001600160a01b031633146115645760405162461bcd60e51b815260040161090090612f02565b611570601183836124e8565b505050565b600c8054610ba990612de0565b610fde338383611de9565b6003546001600160a01b031633146115b75760405162461bcd60e51b815260040161090090612f02565b601555565b6003546001600160a01b031633146115e65760405162461bcd60e51b815260040161090090612f02565b6016805461ffff191692151561ff0019169290921761010091151591909102179055565b6040516bffffffffffffffffffffffff19606084901b166020820152603481018290526000908190605401604051602081830303815290604052805190602001209050611658858783611d81565b9695505050505050565b60118054610ba990612de0565b6001600160a01b03851633148061168b575061168b85336107da565b6116e95760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b6064820152608401610900565b6110ac8585858585611eca565b6003546001600160a01b031633146117205760405162461bcd60e51b815260040161090090612f02565b6001600160a01b0381166117855760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610900565b61140281611d97565b6003546001600160a01b031633146117b85760405162461bcd60e51b815260040161090090612f02565b600583106117d85760405162461bcd60e51b815260040161090090612d35565b601283815481106117eb576117eb612d59565b600091825260208083206010830401548684526013909152604090922054600f9091166002026101000a90910461ffff1690611828908490612d85565b11156118465760405162461bcd60e51b815260040161090090612d9d565b60008381526013602052604081208054849290611864908490612d85565b92505081905550611570818484604051806020016040528060008152506118d6565b60006001600160e01b03198216636cdb3d1360e11b14806118b757506001600160e01b031982166303a24d0760e21b145b8061095557506301ffc9a760e01b6001600160e01b0319831614610955565b6001600160a01b0384166119365760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610900565b336119508160008761194788611fe7565b6110ac88611fe7565b6000848152602081815260408083206001600160a01b038916845290915281208054859290611980908490612d85565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46110ac81600087878787612032565b6004546001600160a01b03841660009081526006602052604081205490918391611a0a9086612dc1565b611a149190612eac565b611a1e9190612f37565b949350505050565b80471015611a765760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610900565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611ac3576040519150601f19603f3d011682016040523d82523d6000602084013e611ac8565b606091505b50509050806115705760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610900565b8151835114611ba15760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608401610900565b6001600160a01b038416611bc75760405162461bcd60e51b815260040161090090612f4e565b3360005b8451811015611cae576000858281518110611be857611be8612d59565b602002602001015190506000858381518110611c0657611c06612d59565b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015611c565760405162461bcd60e51b815260040161090090612f93565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611c93908490612d85565b9250508190555050505080611ca790612ee7565b9050611bcb565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611cfe929190612fdd565b60405180910390a4611d1481878787878761219d565b505050505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611570908490612267565b8051610fde90600290602084019061256c565b600082611d8e8584612339565b14949350505050565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b03161415611e5d5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610900565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b038416611ef05760405162461bcd60e51b815260040161090090612f4e565b33611f0081878761194788611fe7565b6000848152602081815260408083206001600160a01b038a16845290915290205483811015611f415760405162461bcd60e51b815260040161090090612f93565b6000858152602081815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290611f7e908490612d85565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4611fde828888888888612032565b50505050505050565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061202157612021612d59565b602090810291909101015292915050565b6001600160a01b0384163b15611d145760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906120769089908990889088908890600401613002565b602060405180830381600087803b15801561209057600080fd5b505af19250505080156120c0575060408051601f3d908101601f191682019092526120bd9181019061303c565b60015b61216d576120cc613059565b806308c379a0141561210657506120e1613075565b806120ec5750612108565b8060405162461bcd60e51b815260040161090091906127ea565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610900565b6001600160e01b0319811663f23a6e6160e01b14611fde5760405162461bcd60e51b8152600401610900906130fe565b6001600160a01b0384163b15611d145760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906121e19089908990889088908890600401613146565b602060405180830381600087803b1580156121fb57600080fd5b505af192505050801561222b575060408051601f3d908101601f191682019092526122289181019061303c565b60015b612237576120cc613059565b6001600160e01b0319811663bc197c8160e01b14611fde5760405162461bcd60e51b8152600401610900906130fe565b60006122bc826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166123dd9092919063ffffffff16565b80519091501561157057808060200190518101906122da91906131a4565b6115705760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610900565b600081815b84518110156113c757600085828151811061235b5761235b612d59565b6020026020010151905080831161239d5760408051602081018590529081018290526060016040516020818303038152906040528051906020012092506123ca565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b50806123d581612ee7565b91505061233e565b6060611a1e848460008585843b6124365760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610900565b600080866001600160a01b0316858760405161245291906131c1565b60006040518083038185875af1925050503d806000811461248f576040519150601f19603f3d011682016040523d82523d6000602084013e612494565b606091505b50915091506124a48282866124af565b979650505050505050565b606083156124be575081611450565b8251156124ce5782518084602001fd5b8160405162461bcd60e51b815260040161090091906127ea565b8280546124f490612de0565b90600052602060002090601f016020900481019282612516576000855561255c565b82601f1061252f5782800160ff1982351617855561255c565b8280016001018555821561255c579182015b8281111561255c578235825591602001919060010190612541565b506125689291506125e0565b5090565b82805461257890612de0565b90600052602060002090601f01602090048101928261259a576000855561255c565b82601f106125b357805160ff191683800117855561255c565b8280016001018555821561255c579182015b8281111561255c5782518255916020019190600101906125c5565b5b8082111561256857600081556001016125e1565b6001600160a01b038116811461140257600080fd5b6000806040838503121561261d57600080fd5b8235612628816125f5565b946020939093013593505050565b6001600160e01b03198116811461140257600080fd5b60006020828403121561265e57600080fd5b813561145081612636565b634e487b7160e01b600052604160045260246000fd5b601f8201601f191681016001600160401b03811182821017156126a4576126a4612669565b6040525050565b60006001600160401b038211156126c4576126c4612669565b5060051b60200190565b600082601f8301126126df57600080fd5b813560206126ec826126ab565b6040516126f9828261267f565b83815260059390931b850182019282810191508684111561271957600080fd5b8286015b84811015612734578035835291830191830161271d565b509695505050505050565b6000806000806080858703121561275557600080fd5b84356001600160401b0381111561276b57600080fd5b612777878288016126ce565b97602087013597506040870135966060013595509350505050565b60005b838110156127ad578181015183820152602001612795565b83811115610b965750506000910152565b600081518084526127d6816020860160208601612792565b601f01601f19169290920160200192915050565b60208152600061145060208301846127be565b60006020828403121561280f57600080fd5b5035919050565b60006020828403121561282857600080fd5b8135611450816125f5565b6000806040838503121561284657600080fd5b50508035926020909101359150565b60006001600160401b0383111561286e5761286e612669565b604051612885601f8501601f19166020018261267f565b80915083815284848401111561289a57600080fd5b83836020830137600060208583010152509392505050565b600082601f8301126128c357600080fd5b61145083833560208501612855565b600080600080600060a086880312156128ea57600080fd5b85356128f5816125f5565b94506020860135612905816125f5565b935060408601356001600160401b038082111561292157600080fd5b61292d89838a016126ce565b9450606088013591508082111561294357600080fd5b61294f89838a016126ce565b9350608088013591508082111561296557600080fd5b50612972888289016128b2565b9150509295509295909350565b6000806040838503121561299257600080fd5b823561299d816125f5565b915060208301356129ad816125f5565b809150509250929050565b600080604083850312156129cb57600080fd5b82356001600160401b03808211156129e257600080fd5b818501915085601f8301126129f657600080fd5b81356020612a03826126ab565b604051612a10828261267f565b83815260059390931b8501820192828101915089841115612a3057600080fd5b948201945b83861015612a57578535612a48816125f5565b82529482019490820190612a35565b96505086013592505080821115612a6d57600080fd5b50612a7a858286016126ce565b9150509250929050565b600081518084526020808501945080840160005b83811015612ab457815187529582019590820190600101612a98565b509495945050505050565b6020815260006114506020830184612a84565b600060208284031215612ae457600080fd5b81356001600160401b03811115612afa57600080fd5b8201601f81018413612b0b57600080fd5b611a1e84823560208401612855565b600080600060608486031215612b2f57600080fd5b8335925060208401356001600160401b03811115612b4c57600080fd5b612b58868287016126ce565b9250506040840135612b69816125f5565b809150509250925092565b60008060208385031215612b8757600080fd5b82356001600160401b0380821115612b9e57600080fd5b818501915085601f830112612bb257600080fd5b813581811115612bc157600080fd5b866020828501011115612bd357600080fd5b60209290920196919550909350505050565b801515811461140257600080fd5b60008060408385031215612c0657600080fd5b8235612c11816125f5565b915060208301356129ad81612be5565b60008060408385031215612c3457600080fd5b8235612c1181612be5565b60008060008060808587031215612c5557600080fd5b8435935060208501356001600160401b03811115612c7257600080fd5b612c7e878288016126ce565b9350506040850135612c8f816125f5565b9396929550929360600135925050565b600080600080600060a08688031215612cb757600080fd5b8535612cc2816125f5565b94506020860135612cd2816125f5565b9350604086013592506060860135915060808601356001600160401b03811115612cfb57600080fd5b612972888289016128b2565b600080600060608486031215612d1c57600080fd5b83359250602084013591506040840135612b69816125f5565b6020808252600a90820152695345524945535f4e554d60b01b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60008219821115612d9857612d98612d6f565b500190565b6020808252600a90820152690a68aa4928aa6be9a82b60b31b604082015260600190565b6000816000190483118215151615612ddb57612ddb612d6f565b500290565b600181811c90821680612df457607f821691505b60208210811415612e1557634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526026908201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060408201526573686172657360d01b606082015260800190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060408201526a191d59481c185e5b595b9d60aa1b606082015260800190565b600082612ec957634e487b7160e01b600052601260045260246000fd5b500490565b600060208284031215612ee057600080fd5b5051919050565b6000600019821415612efb57612efb612d6f565b5060010190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600082821015612f4957612f49612d6f565b500390565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b604081526000612ff06040830185612a84565b828103602084015261144c8185612a84565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906124a4908301846127be565b60006020828403121561304e57600080fd5b815161145081612636565b600060033d11156130725760046000803e5060005160e01c5b90565b600060443d10156130835790565b6040516003193d81016004833e81513d6001600160401b0381602484011181841117156130b257505050505090565b82850191508151818111156130ca5750505050505090565b843d87010160208285010111156130e45750505050505090565b6130f36020828601018761267f565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b0386811682528516602082015260a06040820181905260009061317290830186612a84565b82810360608401526131848186612a84565b9050828103608084015261319881856127be565b98975050505050505050565b6000602082840312156131b657600080fd5b815161145081612be5565b600082516131d3818460208701612792565b919091019291505056fea264697066735822122036d6ed69b05c32fe0c77c96d349dcbf9bbe273d678d984754fba174a41dafc2864736f6c63430008090033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000180bd75aac5b8b4ea4383479c9066b30a345904f797bd1364052ac8c1130e84c063000000000000000000000000000000000000000000000000000000000000001c68747470733a2f2f6578616d706c652e636f6d2f666f6f2f6261722f000000000000000000000000000000000000000000000000000000000000000000000005000000000000000000000000dd895081643aaedc40542c31d28791754b2c332000000000000000000000000085e3fe276f3c9a9bea29217d59bd1926bb3b12e60000000000000000000000003e977d7a58208d533e01772139efb645d67b3d030000000000000000000000009944f72e3f3b7428fffa35a3fbb4583b8fa23d6d00000000000000000000000072f45097dabc916d25dca34b4b4ff5a77c217b50000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000001130000000000000000000000000000000000000000000000000000000000000096000000000000000000000000000000000000000000000000000000000000001e00000000000000000000000000000000000000000000000000000000000001900000000000000000000000000000000000000000000000000000000000000091

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

000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000180bd75aac5b8b4ea4383479c9066b30a345904f797bd1364052ac8c1130e84c063000000000000000000000000000000000000000000000000000000000000001c68747470733a2f2f6578616d706c652e636f6d2f666f6f2f6261722f000000000000000000000000000000000000000000000000000000000000000000000005000000000000000000000000dd895081643aaedc40542c31d28791754b2c332000000000000000000000000085e3fe276f3c9a9bea29217d59bd1926bb3b12e60000000000000000000000003e977d7a58208d533e01772139efb645d67b3d030000000000000000000000009944f72e3f3b7428fffa35a3fbb4583b8fa23d6d00000000000000000000000072f45097dabc916d25dca34b4b4ff5a77c217b50000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000001130000000000000000000000000000000000000000000000000000000000000096000000000000000000000000000000000000000000000000000000000000001e00000000000000000000000000000000000000000000000000000000000001900000000000000000000000000000000000000000000000000000000000000091

-----Decoded View---------------
Arg [0] : uri (string): https://example.com/foo/bar/
Arg [1] : _payeeAddresses (address[]): 0xdd895081643aaedc40542c31d28791754b2c3320,0x85e3fe276f3c9a9bea29217d59bd1926bb3b12e6,0x3e977d7a58208d533e01772139efb645d67b3d03,0x9944f72e3f3b7428fffa35a3fbb4583b8fa23d6d,0x72f45097dabc916d25dca34b4b4ff5a77c217b50
Arg [2] : payeeShares (uint256[]): 275,150,30,400,145
Arg [3] : _allowList (bytes32): 0xbd75aac5b8b4ea4383479c9066b30a345904f797bd1364052ac8c1130e84c063

-----Encoded View---------------
18 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [3] : bd75aac5b8b4ea4383479c9066b30a345904f797bd1364052ac8c1130e84c063
Arg [4] : 000000000000000000000000000000000000000000000000000000000000001c
Arg [5] : 68747470733a2f2f6578616d706c652e636f6d2f666f6f2f6261722f00000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [7] : 000000000000000000000000dd895081643aaedc40542c31d28791754b2c3320
Arg [8] : 00000000000000000000000085e3fe276f3c9a9bea29217d59bd1926bb3b12e6
Arg [9] : 0000000000000000000000003e977d7a58208d533e01772139efb645d67b3d03
Arg [10] : 0000000000000000000000009944f72e3f3b7428fffa35a3fbb4583b8fa23d6d
Arg [11] : 00000000000000000000000072f45097dabc916d25dca34b4b4ff5a77c217b50
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000113
Arg [14] : 0000000000000000000000000000000000000000000000000000000000000096
Arg [15] : 000000000000000000000000000000000000000000000000000000000000001e
Arg [16] : 0000000000000000000000000000000000000000000000000000000000000190
Arg [17] : 0000000000000000000000000000000000000000000000000000000000000091


Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.