ETH Price: $3,400.10 (+1.65%)

Token

WagmiUnited (WAGMI)
 

Overview

Max Total Supply

0 WAGMI

Holders

1,466

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
0x6565514ebb8685073a50a4b99dc550b459538bd3
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

WAGMI United is dedicated to bringing Web3's most innovative ideas and passionate communities to the world of sports. In early 2022, we bought Crawley Town FC, an English Football League 2 club. Together, we're taking Crawley Town FC to the Premier League. https://wagmiunited.com/terms-and-conditions

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
WagmiUnited

Compiler Version
v0.8.15+commit.e14f2714

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 22 : WagmiUnited.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.15;

import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/finance/PaymentSplitter.sol";

import "./PVAllowlist.sol";
import "./PvERC1155.sol";

/*
* @title ERC1155 token for WAGMI
*/
contract WagmiUnited is PvERC1155, PVAllowlist, PaymentSplitter  {

    uint256 public constant maxSupply = 12000;
    uint256 public constant mintPrice = 0.35 ether;

    uint256 public maxPerTx = 5;
    uint256 public tokenIdToMint = 2;

    uint256 public publicWindowOpens;
    uint256 public mintingWindowCloses;
    uint256 public burnWindowOpens;
    uint256 public burnWindowCloses;

    mapping(address => uint256) public purchased;

    uint256[] public stageWindows;  
    bytes32[] public merkleRoots;

    event Redeemed(uint256 indexed idToRedeem, uint256 indexed idToMint, address indexed account, uint256 amount);

    constructor(
        string memory _name, 
        string memory _symbol,  
        string memory _uri,
        bytes32[] memory _merkleRoots,
        uint256[] memory _stageWindows,
        uint256 _mintingWindowCloses,
        address[] memory payees,
        uint256[] memory shares_
    ) PvERC1155(_name, _symbol, _uri) PaymentSplitter(payees, shares_) {
        require(_stageWindows.length == _merkleRoots.length, "same length required");

        mintingWindowCloses = _mintingWindowCloses;

        merkleRoots = _merkleRoots;
        stageWindows = _stageWindows;

        _mint(msg.sender, 1, 158, "");
    } 

    modifier whenStageExists(uint256 stage) {
        require(
            stage < stageWindows.length, "stage does not exist"
        );
        _;
    }

    /**
    * @notice set card id that can be minted by burning previous cards
    */
    function startNextPhase() external onlyOwner {
        tokenIdToMint += 1;    
    }    

    /**
    * @notice emergency function to return to previous stage
    */
    function returnToPreviousPhase() external onlyOwner {
        require(tokenIdToMint > 2, "Cannot go below phase 1");

        tokenIdToMint -= 1;    
    }  

    /**
    * @notice set merkle roots for each stage
    * 
    * @param _stage the index of the stage to change
    * @param _merkleRoot array containing all merkle roots
    */
    function editMerkleRoot(
        uint256 _stage,
        bytes32 _merkleRoot
    ) external onlyOwner whenStageExists(_stage) {
        merkleRoots[_stage] = _merkleRoot;
    }                       

    /**
    * @notice edit windows
    * 
    * @param _stage the index of the stage to change
    * @param _windowOpens UNIX timestamp for window opening time
    */
    function editStageWindows(
        uint256 _stage,
        uint256 _windowOpens     
    ) external onlyOwner whenStageExists(_stage) {   
        stageWindows[_stage] = _windowOpens;
    }                  

    /**
    * @notice edit minting window
    * 
    * @param _mintingWindowCloses UNIX timestamp for minting window closing time
    */
    function editMintingWindow(
        uint256 _mintingWindowCloses       
    ) external onlyOwner {         
        mintingWindowCloses = _mintingWindowCloses;  
    }

    /**
    * @notice edit mint price
    * 
    * @param _maxPerTx max mint amount per tx
    */
    function editMaxPerTx(
        uint256 _maxPerTx    
    ) external onlyOwner {         
        maxPerTx = _maxPerTx;  
    }

    /**
    * @notice edit public window
    * 
    * @param _publicWindowOpens UNIX timestamp for public window opening time
    */
    function editPublicWindow(
        uint256 _publicWindowOpens       
    ) external onlyOwner {         
        publicWindowOpens = _publicWindowOpens;  
    }

    /**
    * @notice edit burn windows
    * 
    * @param _burnWindowOpens UNIX timestamp for burn window opening time
    * @param _burnWindowCloses UNIX timestamp for burn window closing time
    */
    function editBurnWindow(
        uint256 _burnWindowOpens,
        uint256 _burnWindowCloses        
    ) external onlyOwner {         
        burnWindowOpens = _burnWindowOpens;
        burnWindowCloses = _burnWindowCloses;        
    }

    /**
    * @notice allowlisted mint function
    * 
    * @param stage the stage to mint in 
    * @param amount the amount of tokens to purchase
    * @param amount max amount of tokens wallet is eligible to purchase
    * @param index the index of the merkle proof
    * @param merkleProof the valid merkle proof of sender
    */
    function mint(
        uint256 stage,
        uint256 amount,
        uint256 maxAmount,
        uint256 index,
        bytes32[] calldata merkleProof
    ) external payable whenStageExists(stage) whenInAllowlist(index, maxAmount, merkleProof, merkleRoots[stage]) {
        require(purchased[msg.sender] + amount <= maxAmount && amount > 0, "max amount exceeded");
        require(block.timestamp > stageWindows[stage] && block.timestamp < mintingWindowCloses, "minting closed"); 
        require(totalSupply(1) + amount <= maxSupply, "Purchase: Max supply reached");
        require(msg.value == amount * mintPrice, "Purchase: Incorrect payment"); 

        unchecked {
            purchased[msg.sender] += amount;
        }

        _mint(msg.sender, 1, amount, "");
    }     

    /**
    * @notice purchase during public sale
    * 
    * @param amount the amount of tokens to purchase
    */
    function publicMint(uint256 amount) external payable {
        require(amount > 0 && amount <= maxPerTx, "max amount exceeded");
        require(msg.value == amount * mintPrice, "Purchase: Incorrect payment"); 
        require(totalSupply(1) + amount <= maxSupply, "Purchase: Max supply reached");

        require(block.timestamp > publicWindowOpens && block.timestamp < mintingWindowCloses, "Purchase: window closed");

        _mint(msg.sender, 1, amount, "");
    }

    /**
    * @notice redeem tokens for future phase
    * 
    * @param tokenIdToRedeem the token id to redeem
    * @param amount the amount of tokens to redeem
    */
    function redeem(uint256 tokenIdToRedeem, uint256 amount) external {
        require(amount > 0, "Redeem: amount not allowed");
        require(block.timestamp > burnWindowOpens && block.timestamp < burnWindowCloses, "Redeem: window closed");
        require(tokenIdToRedeem < tokenIdToMint, "Redeem: cannot be redeemed");

        _burn(msg.sender, tokenIdToRedeem, amount);
        _mint(msg.sender, tokenIdToMint, amount, "");

        emit Redeemed(tokenIdToRedeem, tokenIdToMint, msg.sender, amount);       
    }

    /**
     * @notice 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.
     * 
     * @param account the payee to release funds for
     */
    function release(address payable account) public override {
        require(msg.sender == account || msg.sender == owner(), "Release: no permission");

        super.release(account);
    }   

    /**
     * @notice Mints the given amount of token id 0 to specified receiver address
     * 
     * @param _receiver the receiving wallet
     * @param _amount the amount of tokens to mint
     */
    function ownerMint(address _receiver, uint256 _amount) external onlyOwner {
        require(totalSupply(1) + _amount <= maxSupply, "Purchase: Max supply reached");

        _mint(_receiver, 1, _amount, "");        
    }     

    function setURI(string memory baseURI) external onlyOwner {
        _setURI(baseURI);
    }      

    /**
    * @notice returns the metadata uri for a given id
    * 
    * @param _id the card id to return metadata for
    */
    function uri(uint256 _id) public view override returns (string memory) {
            require(exists(_id), "URI: nonexistent token");
            
            return string(abi.encodePacked(super.uri(_id), Strings.toString(_id)));
    }    
}

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

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

File 3 of 22 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 4 of 22 : IERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC1155/IERC1155.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If the caller is not `from`, it must 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 5 of 22 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Tree 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.
 *
 * WARNING: You should avoid using leaf values that are 64 bytes long prior to
 * hashing, or use a hash function other than keccak256 for hashing leaves.
 * This is because the concatenation of a sorted pair of internal nodes in
 * the merkle tree could be reinterpreted as a leaf value.
 */
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 Calldata version of {verify}
     *
     * _Available since v4.7._
     */
    function verifyCalldata(
        bytes32[] calldata proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProofCalldata(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merkle 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++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Calldata version of {processProof}
     *
     * _Available since v4.7._
     */
    function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by
     * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
     *
     * _Available since v4.7._
     */
    function multiProofVerify(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProof(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Calldata version of {multiProofVerify}
     *
     * _Available since v4.7._
     */
    function multiProofVerifyCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProofCalldata(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`,
     * consuming from one or the other at each step according to the instructions given by
     * `proofFlags`.
     *
     * _Available since v4.7._
     */
    function processMultiProof(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    /**
     * @dev Calldata version of {processMultiProof}
     *
     * _Available since v4.7._
     */
    function processMultiProofCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {
        return a < b ? _efficientHash(a, b) : _efficientHash(b, a);
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

File 7 of 22 : PaymentSplitter.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (finance/PaymentSplitter.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _totalShares;
    uint256 private _totalReleased;

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev Getter for the amount of payee's releasable Ether.
     */
    function releasable(address account) public view returns (uint256) {
        uint256 totalReceived = address(this).balance + totalReleased();
        return _pendingPayment(account, totalReceived, released(account));
    }

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

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

        uint256 payment = releasable(account);

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

        _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 payment = releasable(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 8 of 22 : PVAllowlist.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.15;

import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";

contract PVAllowlist {

    modifier whenInAllowlist(uint256 index, uint256 maxAmount, bytes32[] calldata merkleProof, bytes32 merkleRoot) {
        bytes32 node = keccak256(abi.encodePacked(index, msg.sender, maxAmount));

        require(
            MerkleProof.verify(merkleProof, merkleRoot, node),
            "MerkleDistributor: Invalid proof."
        );
        _;
    }
}

File 9 of 22 : PvERC1155.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.15;

import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Burnable.sol';
import '@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol';

contract PvERC1155 is ERC1155Supply, ERC1155Burnable, Ownable {
    
    string public name_;
    string public symbol_;   
 
    constructor(string memory _name, string memory _symbol, string memory _uri) ERC1155(_uri) {
        name_ = _name;
        symbol_ = _symbol;
    }

    function name() public view returns (string memory) {
        return name_;
    }

    function symbol() public view returns (string memory) {
        return symbol_;
    }          

    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual override(ERC1155, ERC1155Supply) {
        super._beforeTokenTransfer(operator, from, to, ids, amounts, data);
    } 
}

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/draft-IERC20Permit.sol";
import "../../../utils/Address.sol";

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

pragma solidity ^0.8.0;

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

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

File 14 of 22 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

File 17 of 22 : ERC1155Burnable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC1155/extensions/ERC1155Burnable.sol)

pragma solidity ^0.8.0;

import "../ERC1155.sol";

/**
 * @dev Extension of {ERC1155} that allows token holders to destroy both their
 * own tokens and those that they have been approved to use.
 *
 * _Available since v3.1._
 */
abstract contract ERC1155Burnable is ERC1155 {
    function burn(
        address account,
        uint256 id,
        uint256 value
    ) public virtual {
        require(
            account == _msgSender() || isApprovedForAll(account, _msgSender()),
            "ERC1155: caller is not token owner nor approved"
        );

        _burn(account, id, value);
    }

    function burnBatch(
        address account,
        uint256[] memory ids,
        uint256[] memory values
    ) public virtual {
        require(
            account == _msgSender() || isApprovedForAll(account, _msgSender()),
            "ERC1155: caller is not token owner nor approved"
        );

        _burnBatch(account, ids, values);
    }
}

File 18 of 22 : ERC1155Supply.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC1155/extensions/ERC1155Supply.sol)

pragma solidity ^0.8.0;

import "../ERC1155.sol";

/**
 * @dev Extension of ERC1155 that adds tracking of total supply per id.
 *
 * Useful for scenarios where Fungible and Non-fungible tokens have to be
 * clearly identified. Note: While a totalSupply of 1 might mean the
 * corresponding is an NFT, there is no guarantees that no other token with the
 * same id are not going to be minted.
 */
abstract contract ERC1155Supply is ERC1155 {
    mapping(uint256 => uint256) private _totalSupply;

    /**
     * @dev Total amount of tokens in with a given id.
     */
    function totalSupply(uint256 id) public view virtual returns (uint256) {
        return _totalSupply[id];
    }

    /**
     * @dev Indicates whether any token exist with a given id, or not.
     */
    function exists(uint256 id) public view virtual returns (bool) {
        return ERC1155Supply.totalSupply(id) > 0;
    }

    /**
     * @dev See {ERC1155-_beforeTokenTransfer}.
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual override {
        super._beforeTokenTransfer(operator, from, to, ids, amounts, data);

        if (from == address(0)) {
            for (uint256 i = 0; i < ids.length; ++i) {
                _totalSupply[ids[i]] += amounts[i];
            }
        }

        if (to == address(0)) {
            for (uint256 i = 0; i < ids.length; ++i) {
                uint256 id = ids[i];
                uint256 amount = amounts[i];
                uint256 supply = _totalSupply[id];
                require(supply >= amount, "ERC1155: burn amount exceeds totalSupply");
                unchecked {
                    _totalSupply[id] = supply - amount;
                }
            }
        }
    }
}

File 19 of 22 : ERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (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: address zero is not a valid owner");
        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 token 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: caller is not token 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();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

        _beforeTokenTransfer(operator, from, to, ids, amounts, 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);

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

        _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);

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

        _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();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

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

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

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

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

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}.
     *
     * 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 _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);

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

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

    /**
     * @dev Destroys `amount` tokens of token type `id` from `from`
     *
     * Emits a {TransferSingle} event.
     *
     * 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();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

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

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

        _afterTokenTransfer(operator, from, address(0), ids, amounts, "");
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}.
     *
     * Emits a {TransferBatch} event.
     *
     * 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);

        _afterTokenTransfer(operator, from, address(0), ids, amounts, "");
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits an {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 `ids` and `amounts` 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 {}

    /**
     * @dev Hook that is called after 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 _afterTokenTransfer(
        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 20 of 22 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (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.
     *
     * NOTE: 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.
     *
     * NOTE: 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 21 of 22 : 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 22 of 22 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"string","name":"_uri","type":"string"},{"internalType":"bytes32[]","name":"_merkleRoots","type":"bytes32[]"},{"internalType":"uint256[]","name":"_stageWindows","type":"uint256[]"},{"internalType":"uint256","name":"_mintingWindowCloses","type":"uint256"},{"internalType":"address[]","name":"payees","type":"address[]"},{"internalType":"uint256[]","name":"shares_","type":"uint256[]"}],"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":"uint256","name":"idToRedeem","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"idToMint","type":"uint256"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Redeemed","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":"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":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"burnBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"burnWindowCloses","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"burnWindowOpens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_burnWindowOpens","type":"uint256"},{"internalType":"uint256","name":"_burnWindowCloses","type":"uint256"}],"name":"editBurnWindow","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxPerTx","type":"uint256"}],"name":"editMaxPerTx","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_stage","type":"uint256"},{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"editMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintingWindowCloses","type":"uint256"}],"name":"editMintingWindow","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_publicWindowOpens","type":"uint256"}],"name":"editPublicWindow","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_stage","type":"uint256"},{"internalType":"uint256","name":"_windowOpens","type":"uint256"}],"name":"editStageWindows","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":[],"name":"maxPerTx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"merkleRoots","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"stage","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"maxAmount","type":"uint256"},{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintingWindowCloses","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"address","name":"_receiver","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"payee","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"publicWindowOpens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"purchased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenIdToRedeem","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"redeem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"releasable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"releasable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"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":[],"name":"returnToPreviousPhase","outputs":[],"stateMutability":"nonpayable","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":"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":"setURI","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":"uint256","name":"","type":"uint256"}],"name":"stageWindows","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startNextPhase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol_","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenIdToMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"uint256","name":"id","type":"uint256"}],"name":"totalSupply","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":"_id","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040526005600e556002600f553480156200001b57600080fd5b5060405162004cb538038062004cb58339810160408190526200003e9162000c5d565b8181898989806200004f8162000267565b506200005b3362000279565b600562000069848262000e22565b50600662000078838262000e22565b505050508051825114620000ee5760405162461bcd60e51b815260206004820152603260248201527f5061796d656e7453706c69747465723a2070617965657320616e6420736861726044820152710cae640d8cadccee8d040dad2e6dac2e8c6d60731b60648201526084015b60405180910390fd5b6000825111620001415760405162461bcd60e51b815260206004820152601a60248201527f5061796d656e7453706c69747465723a206e6f207061796565730000000000006044820152606401620000e5565b60005b8251811015620001ad576200019883828151811062000167576200016762000eee565b602002602001015183838151811062000184576200018462000eee565b6020026020010151620002cb60201b60201c565b80620001a48162000f1a565b91505062000144565b5050508451845114620002035760405162461bcd60e51b815260206004820152601460248201527f73616d65206c656e6774682072657175697265640000000000000000000000006044820152606401620000e5565b601183905584516200021d906016906020880190620009e2565b50835162000233906015906020870190620009e2565b5062000259336001609e60405180602001604052806000815250620004b960201b60201c565b5050505050505050620010ba565b600262000275828262000e22565b5050565b600480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216620003385760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b6064820152608401620000e5565b600081116200038a5760405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a207368617265732061726520300000006044820152606401620000e5565b6001600160a01b03821660009081526009602052604090205415620004065760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b6064820152608401620000e5565b600b8054600181019091557f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db90180546001600160a01b0319166001600160a01b03841690811790915560009081526009602052604090208190556007546200047090829062000f36565b600755604080516001600160a01b0384168152602081018390527f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac910160405180910390a15050565b6001600160a01b0384166200051b5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401620000e5565b3360006200052985620005e8565b905060006200053885620005e8565b90506200054b8360008985858962000636565b6000868152602081815260408083206001600160a01b038b168452909152812080548792906200057d90849062000f36565b909155505060408051878152602081018790526001600160a01b03808a1692600092918716917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4620005df8360008989898962000659565b50505050505050565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811062000625576200062562000eee565b602090810291909101015292915050565b620006518686868686866200082560201b62001b111760201c565b505050505050565b62000678846001600160a01b0316620009d360201b62001c941760201c565b15620006515760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190620006b4908990899088908890889060040162000f7f565b6020604051808303816000875af1925050508015620006f2575060408051601f3d908101601f19168201909252620006ef9181019062000fc6565b60015b620007b2576200070162000ff9565b806308c379a0036200074157506200071862001016565b8062000725575062000743565b8060405162461bcd60e51b8152600401620000e59190620010a5565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560448201527f526563656976657220696d706c656d656e7465720000000000000000000000006064820152608401620000e5565b6001600160e01b0319811663f23a6e6160e01b14620005df5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b6064820152608401620000e5565b620008408686868686866200065160201b62001c8c1760201c565b6001600160a01b038516620008d45760005b8351811015620008d25782818151811062000871576200087162000eee565b60200260200101516003600086848151811062000892576200089262000eee565b602002602001015181526020019081526020016000206000828254620008b9919062000f36565b90915550620008ca90508162000f1a565b905062000852565b505b6001600160a01b038416620006515760005b8351811015620005df57600084828151811062000907576200090762000eee565b60200260200101519050600084838151811062000928576200092862000eee565b6020026020010151905060006003600084815260200190815260200160002054905081811015620009ad5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a206275726e20616d6f756e74206578636565647320746f74604482015267616c537570706c7960c01b6064820152608401620000e5565b60009283526003602052604090922091039055620009cb8162000f1a565b9050620008e6565b6001600160a01b03163b151590565b82805482825590600052602060002090810192821562000a20579160200282015b8281111562000a2057825182559160200191906001019062000a03565b5062000a2e92915062000a32565b5090565b5b8082111562000a2e576000815560010162000a33565b634e487b7160e01b600052604160045260246000fd5b601f8201601f191681016001600160401b038111828210171562000a875762000a8762000a49565b6040525050565b60005b8381101562000aab57818101518382015260200162000a91565b8381111562000abb576000848401525b50505050565b600082601f83011262000ad357600080fd5b81516001600160401b0381111562000aef5762000aef62000a49565b60405162000b08601f8301601f19166020018262000a5f565b81815284602083860101111562000b1e57600080fd5b62000b3182602083016020870162000a8e565b949350505050565b60006001600160401b0382111562000b555762000b5562000a49565b5060051b60200190565b600082601f83011262000b7157600080fd5b8151602062000b808262000b39565b60405162000b8f828262000a5f565b83815260059390931b850182019282810191508684111562000bb057600080fd5b8286015b8481101562000bcd578051835291830191830162000bb4565b509695505050505050565b600082601f83011262000bea57600080fd5b8151602062000bf98262000b39565b60405162000c08828262000a5f565b83815260059390931b850182019282810191508684111562000c2957600080fd5b8286015b8481101562000bcd5780516001600160a01b038116811462000c4f5760008081fd5b835291830191830162000c2d565b600080600080600080600080610100898b03121562000c7b57600080fd5b88516001600160401b038082111562000c9357600080fd5b62000ca18c838d0162000ac1565b995060208b015191508082111562000cb857600080fd5b62000cc68c838d0162000ac1565b985060408b015191508082111562000cdd57600080fd5b62000ceb8c838d0162000ac1565b975060608b015191508082111562000d0257600080fd5b62000d108c838d0162000b5f565b965060808b015191508082111562000d2757600080fd5b62000d358c838d0162000b5f565b955060a08b0151945060c08b015191508082111562000d5357600080fd5b62000d618c838d0162000bd8565b935060e08b015191508082111562000d7857600080fd5b5062000d878b828c0162000b5f565b9150509295985092959890939650565b600181811c9082168062000dac57607f821691505b60208210810362000dcd57634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111562000e1d57600081815260208120601f850160051c8101602086101562000dfc5750805b601f850160051c820191505b81811015620006515782815560010162000e08565b505050565b81516001600160401b0381111562000e3e5762000e3e62000a49565b62000e568162000e4f845462000d97565b8462000dd3565b602080601f83116001811462000e8e576000841562000e755750858301515b600019600386901b1c1916600185901b17855562000651565b600085815260208120601f198616915b8281101562000ebf5788860151825594840194600190910190840162000e9e565b508582101562000ede5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006001820162000f2f5762000f2f62000f04565b5060010190565b6000821982111562000f4c5762000f4c62000f04565b500190565b6000815180845262000f6b81602086016020860162000a8e565b601f01601f19169290920160200192915050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009062000fbb9083018462000f51565b979650505050505050565b60006020828403121562000fd957600080fd5b81516001600160e01b03198116811462000ff257600080fd5b9392505050565b600060033d1115620010135760046000803e5060005160e01c5b90565b600060443d1015620010255790565b6040516003193d81016004833e81513d6001600160401b0380831160248401831017156200105557505050505090565b82850191508151818111156200106e5750505050505090565b843d8701016020828501011115620010895750505050505090565b6200109a6020828601018762000a5f565b509095945050505050565b60208152600062000ff2602083018462000f51565b613beb80620010ca6000396000f3fe6080604052600436106103385760003560e01c80637b1a4b0e116101ab578063bd85b039116100f7578063e33b7de311610095578063f2fde38b1161006f578063f2fde38b14610a18578063f39cfcd914610a38578063f5298aca14610a58578063f968adbe14610a7857600080fd5b8063e33b7de31461099a578063e985e9c5146109af578063f242432a146109f857600080fd5b8063d5abeb01116100d1578063d5abeb0114610919578063d79779b21461092f578063da5f945f14610965578063e2b9e1861461098557600080fd5b8063bd85b03914610896578063c45ac050146108c3578063ce7c2ac2146108e357600080fd5b80639852595c11610164578063a3f8eace1161013e578063a3f8eace14610836578063af17dea614610856578063b186c88b1461086b578063ba61810c1461088157600080fd5b80639852595c146107c0578063a1b1bd22146107f6578063a22cb4651461081657600080fd5b80637b1a4b0e146107095780637b58de8b1461071f5780637cbc2373146107355780638b83209b146107555780638da5cb5b1461078d57806395d89b41146107ab57600080fd5b80633a98ef39116102855780634f558e79116102235780636817c76c116101fd5780636817c76c146106985780636b20c454146106b4578063715018a6146106d457806371c5ecb1146106e957600080fd5b80634f558e791461061c578063522fe98e1461064b578063654d78491461067857600080fd5b8063406072a91161025f578063406072a914610569578063484b973c146105af57806348b75044146105cf5780634e1273f4146105ef57600080fd5b80633a98ef391461052c5780633ac3d7c0146105415780633ddf9c7f1461055457600080fd5b806306fdde03116102f25780632afd6505116102cc5780632afd6505146104b95780632db11544146104d95780632eb2c2d6146104ec57806330c6f09b1461050c57600080fd5b806306fdde03146104575780630e89341c14610479578063191655871461049957600080fd5b8062fdd58e14610386578063019863c3146103b957806301ffc9a7146103cf57806302fe5305146103ff578063035664fb1461042157806303cca00d1461044157600080fd5b36610381577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b34801561039257600080fd5b506103a66103a1366004612e0c565b610a8e565b6040519081526020015b60405180910390f35b3480156103c557600080fd5b506103a660135481565b3480156103db57600080fd5b506103ef6103ea366004612e4e565b610b24565b60405190151581526020016103b0565b34801561040b57600080fd5b5061041f61041a366004612f0a565b610b76565b005b34801561042d57600080fd5b5061041f61043c366004612f52565b610b8a565b34801561044d57600080fd5b506103a660115481565b34801561046357600080fd5b5061046c610b97565b6040516103b09190612fc3565b34801561048557600080fd5b5061046c610494366004612f52565b610c29565b3480156104a557600080fd5b5061041f6104b4366004612fd6565b610cb9565b3480156104c557600080fd5b5061041f6104d4366004612ff3565b610d28565b61041f6104e7366004612f52565b610d78565b3480156104f857600080fd5b5061041f6105073660046130c9565b610eff565b34801561051857600080fd5b506103a6610527366004612f52565b610f4b565b34801561053857600080fd5b506007546103a6565b61041f61054f366004613176565b610f6c565b34801561056057600080fd5b5061041f61127d565b34801561057557600080fd5b506103a6610584366004613210565b6001600160a01b039182166000908152600d6020908152604080832093909416825291909152205490565b3480156105bb57600080fd5b5061041f6105ca366004612e0c565b6112f1565b3480156105db57600080fd5b5061041f6105ea366004613210565b611372565b3480156105fb57600080fd5b5061060f61060a366004613249565b611495565b6040516103b09190613350565b34801561062857600080fd5b506103ef610637366004612f52565b600090815260036020526040902054151590565b34801561065757600080fd5b506103a6610666366004612fd6565b60146020526000908152604090205481565b34801561068457600080fd5b5061041f610693366004612f52565b6115be565b3480156106a457600080fd5b506103a66704db73254763000081565b3480156106c057600080fd5b5061041f6106cf366004613363565b6115cb565b3480156106e057600080fd5b5061041f611613565b3480156106f557600080fd5b506103a6610704366004612f52565b611627565b34801561071557600080fd5b506103a660105481565b34801561072b57600080fd5b506103a660125481565b34801561074157600080fd5b5061041f610750366004612ff3565b611637565b34801561076157600080fd5b50610775610770366004612f52565b6117a1565b6040516001600160a01b0390911681526020016103b0565b34801561079957600080fd5b506004546001600160a01b0316610775565b3480156107b757600080fd5b5061046c6117d1565b3480156107cc57600080fd5b506103a66107db366004612fd6565b6001600160a01b03166000908152600a602052604090205490565b34801561080257600080fd5b5061041f610811366004612ff3565b6117e0565b34801561082257600080fd5b5061041f6108313660046133e6565b61181f565b34801561084257600080fd5b506103a6610851366004612fd6565b61182a565b34801561086257600080fd5b5061046c611872565b34801561087757600080fd5b506103a6600f5481565b34801561088d57600080fd5b5061041f611900565b3480156108a257600080fd5b506103a66108b1366004612f52565b60009081526003602052604090205490565b3480156108cf57600080fd5b506103a66108de366004613210565b61191b565b3480156108ef57600080fd5b506103a66108fe366004612fd6565b6001600160a01b031660009081526009602052604090205490565b34801561092557600080fd5b506103a6612ee081565b34801561093b57600080fd5b506103a661094a366004612fd6565b6001600160a01b03166000908152600c602052604090205490565b34801561097157600080fd5b5061041f610980366004612ff3565b6119e6565b34801561099157600080fd5b5061046c6119f9565b3480156109a657600080fd5b506008546103a6565b3480156109bb57600080fd5b506103ef6109ca366004613210565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b348015610a0457600080fd5b5061041f610a13366004613414565b611a06565b348015610a2457600080fd5b5061041f610a33366004612fd6565b611a4b565b348015610a4457600080fd5b5061041f610a53366004612f52565b611ac1565b348015610a6457600080fd5b5061041f610a7336600461347c565b611ace565b348015610a8457600080fd5b506103a6600e5481565b60006001600160a01b038316610afe5760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201526930b634b21037bbb732b960b11b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b1480610b5557506001600160e01b031982166303a24d0760e21b145b80610b7057506301ffc9a760e01b6001600160e01b03198316145b92915050565b610b7e611ca3565b610b8781611cfd565b50565b610b92611ca3565b601055565b606060058054610ba6906134b1565b80601f0160208091040260200160405190810160405280929190818152602001828054610bd2906134b1565b8015610c1f5780601f10610bf457610100808354040283529160200191610c1f565b820191906000526020600020905b815481529060010190602001808311610c0257829003601f168201915b5050505050905090565b600081815260036020526040902054606090610c805760405162461bcd60e51b81526020600482015260166024820152752aa9249d103737b732bc34b9ba32b73a103a37b5b2b760511b6044820152606401610af5565b610c8982611d09565b610c9283611d9d565b604051602001610ca39291906134eb565b6040516020818303038152906040529050919050565b336001600160a01b0382161480610cda57506004546001600160a01b031633145b610d1f5760405162461bcd60e51b81526020600482015260166024820152752932b632b0b9b29d103737903832b936b4b9b9b4b7b760511b6044820152606401610af5565b610b8781611e9d565b610d30611ca3565b60155482908110610d535760405162461bcd60e51b8152600401610af59061351a565b8160158481548110610d6757610d67613548565b600091825260209091200155505050565b600081118015610d8a5750600e548111155b610dcc5760405162461bcd60e51b81526020600482015260136024820152721b585e08185b5bdd5b9d08195e18d959591959606a1b6044820152606401610af5565b610dde6704db73254763000082613574565b3414610e2c5760405162461bcd60e51b815260206004820152601b60248201527f50757263686173653a20496e636f7272656374207061796d656e7400000000006044820152606401610af5565b600160005260036020527fa15bc60c955c405d20d9149c709e2460f1c2d9a497496a7f46004d1772c3054c54612ee090610e67908390613593565b1115610e855760405162461bcd60e51b8152600401610af5906135ab565b60105442118015610e97575060115442105b610ee35760405162461bcd60e51b815260206004820152601760248201527f50757263686173653a2077696e646f7720636c6f7365640000000000000000006044820152606401610af5565b610b873360018360405180602001604052806000815250611f96565b6001600160a01b038516331480610f1b5750610f1b85336109ca565b610f375760405162461bcd60e51b8152600401610af5906135e2565b610f4485858585856120b0565b5050505050565b60158181548110610f5b57600080fd5b600091825260209091200154905081565b60155486908110610f8f5760405162461bcd60e51b8152600401610af59061351a565b8385848460168b81548110610fa657610fa6613548565b6000918252602080832090910154604080519283018890526bffffffffffffffffffffffff193360601b16908301526054820186905291906074016040516020818303038152906040528051906020012090506110398484808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152508692508591506122529050565b61108f5760405162461bcd60e51b815260206004820152602160248201527f4d65726b6c654469737472696275746f723a20496e76616c69642070726f6f666044820152601760f91b6064820152608401610af5565b336000908152601460205260409020548b906110ac908e90613593565b111580156110ba575060008c115b6110fc5760405162461bcd60e51b81526020600482015260136024820152721b585e08185b5bdd5b9d08195e18d959591959606a1b6044820152606401610af5565b60158d8154811061110f5761110f613548565b906000526020600020015442118015611129575060115442105b6111665760405162461bcd60e51b815260206004820152600e60248201526d1b5a5b9d1a5b99c818db1bdcd95960921b6044820152606401610af5565b600160005260036020527fa15bc60c955c405d20d9149c709e2460f1c2d9a497496a7f46004d1772c3054c54612ee0906111a1908e90613593565b11156111bf5760405162461bcd60e51b8152600401610af5906135ab565b6111d16704db7325476300008d613574565b341461121f5760405162461bcd60e51b815260206004820152601b60248201527f50757263686173653a20496e636f7272656374207061796d656e7400000000006044820152606401610af5565b8b60146000336001600160a01b03166001600160a01b031681526020019081526020016000206000828254019250508190555061126e3360018e60405180602001604052806000815250611f96565b50505050505050505050505050565b611285611ca3565b6002600f54116112d75760405162461bcd60e51b815260206004820152601760248201527f43616e6e6f7420676f2062656c6f7720706861736520310000000000000000006044820152606401610af5565b6001600f60008282546112ea9190613631565b9091555050565b6112f9611ca3565b600160005260036020527fa15bc60c955c405d20d9149c709e2460f1c2d9a497496a7f46004d1772c3054c54612ee090611334908390613593565b11156113525760405162461bcd60e51b8152600401610af5906135ab565b61136e8260018360405180602001604052806000815250611f96565b5050565b6001600160a01b0381166000908152600960205260409020546113a75760405162461bcd60e51b8152600401610af590613648565b60006113b3838361191b565b9050806000036113d55760405162461bcd60e51b8152600401610af59061368e565b6001600160a01b038084166000908152600d602090815260408083209386168352929052908120805483929061140c908490613593565b90915550506001600160a01b0383166000908152600c602052604081208054839290611439908490613593565b9091555061144a9050838383612268565b604080516001600160a01b038481168252602082018490528516917f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a910160405180910390a2505050565b606081518351146114fa5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610af5565b600083516001600160401b0381111561151557611515612e6b565b60405190808252806020026020018201604052801561153e578160200160208202803683370190505b50905060005b84518110156115b65761158985828151811061156257611562613548565b602002602001015185838151811061157c5761157c613548565b6020026020010151610a8e565b82828151811061159b5761159b613548565b60209081029190910101526115af816136d9565b9050611544565b509392505050565b6115c6611ca3565b600e55565b6001600160a01b0383163314806115e757506115e783336109ca565b6116035760405162461bcd60e51b8152600401610af5906135e2565b61160e8383836122ba565b505050565b61161b611ca3565b6116256000612458565b565b60168181548110610f5b57600080fd5b600081116116875760405162461bcd60e51b815260206004820152601a60248201527f52656465656d3a20616d6f756e74206e6f7420616c6c6f7765640000000000006044820152606401610af5565b60125442118015611699575060135442105b6116dd5760405162461bcd60e51b815260206004820152601560248201527414995919595b4e881dda5b991bddc818db1bdcd959605a1b6044820152606401610af5565b600f54821061172e5760405162461bcd60e51b815260206004820152601a60248201527f52656465656d3a2063616e6e6f742062652072656465656d65640000000000006044820152606401610af5565b6117393383836124aa565b61175633600f548360405180602001604052806000815250611f96565b336001600160a01b0316600f54837f5f4b9f370c6d4d401bfd2c43a9a8f9e67302f6cfcd10b74da419715f4076e8c78460405161179591815260200190565b60405180910390a45050565b6000600b82815481106117b6576117b6613548565b6000918252602090912001546001600160a01b031692915050565b606060068054610ba6906134b1565b6117e8611ca3565b6015548290811061180b5760405162461bcd60e51b8152600401610af59061351a565b8160168481548110610d6757610d67613548565b61136e3383836125c2565b60008061183660085490565b6118409047613593565b905061186b8382611866866001600160a01b03166000908152600a602052604090205490565b6126a2565b9392505050565b6006805461187f906134b1565b80601f01602080910402602001604051908101604052809291908181526020018280546118ab906134b1565b80156118f85780601f106118cd576101008083540402835291602001916118f8565b820191906000526020600020905b8154815290600101906020018083116118db57829003601f168201915b505050505081565b611908611ca3565b6001600f60008282546112ea9190613593565b6001600160a01b0382166000908152600c602052604081205481906040516370a0823160e01b81523060048201526001600160a01b038616906370a0823190602401602060405180830381865afa15801561197a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061199e91906136f2565b6119a89190613593565b6001600160a01b038086166000908152600d60209081526040808320938816835292905220549091506119de90849083906126a2565b949350505050565b6119ee611ca3565b601291909155601355565b6005805461187f906134b1565b6001600160a01b038516331480611a225750611a2285336109ca565b611a3e5760405162461bcd60e51b8152600401610af5906135e2565b610f4485858585856126e0565b611a53611ca3565b6001600160a01b038116611ab85760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610af5565b610b8781612458565b611ac9611ca3565b601155565b6001600160a01b038316331480611aea5750611aea83336109ca565b611b065760405162461bcd60e51b8152600401610af5906135e2565b61160e8383836124aa565b6001600160a01b038516611b985760005b8351811015611b9657828181518110611b3d57611b3d613548565b602002602001015160036000868481518110611b5b57611b5b613548565b602002602001015181526020019081526020016000206000828254611b809190613593565b90915550611b8f9050816136d9565b9050611b22565b505b6001600160a01b038416611c8c5760005b8351811015611c8a576000848281518110611bc657611bc6613548565b602002602001015190506000848381518110611be457611be4613548565b6020026020010151905060006003600084815260200190815260200160002054905081811015611c675760405162461bcd60e51b815260206004820152602860248201527f455243313135353a206275726e20616d6f756e74206578636565647320746f74604482015267616c537570706c7960c01b6064820152608401610af5565b60009283526003602052604090922091039055611c83816136d9565b9050611ba9565b505b505050505050565b6001600160a01b03163b151590565b6004546001600160a01b031633146116255760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610af5565b600261136e8282613751565b606060028054611d18906134b1565b80601f0160208091040260200160405190810160405280929190818152602001828054611d44906134b1565b8015611d915780601f10611d6657610100808354040283529160200191611d91565b820191906000526020600020905b815481529060010190602001808311611d7457829003601f168201915b50505050509050919050565b606081600003611dc45750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611dee5780611dd8816136d9565b9150611de79050600a83613826565b9150611dc8565b6000816001600160401b03811115611e0857611e08612e6b565b6040519080825280601f01601f191660200182016040528015611e32576020820181803683370190505b5090505b84156119de57611e47600183613631565b9150611e54600a8661383a565b611e5f906030613593565b60f81b818381518110611e7457611e74613548565b60200101906001600160f81b031916908160001a905350611e96600a86613826565b9450611e36565b6001600160a01b038116600090815260096020526040902054611ed25760405162461bcd60e51b8152600401610af590613648565b6000611edd8261182a565b905080600003611eff5760405162461bcd60e51b8152600401610af59061368e565b6001600160a01b0382166000908152600a602052604081208054839290611f27908490613593565b925050819055508060086000828254611f409190613593565b90915550611f5090508282612818565b604080516001600160a01b0384168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a15050565b6001600160a01b038416611ff65760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610af5565b33600061200285612931565b9050600061200f85612931565b90506120208360008985858961297c565b6000868152602081815260408083206001600160a01b038b16845290915281208054879290612050908490613593565b909155505060408051878152602081018790526001600160a01b03808a1692600092918716917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4611c8a8360008989898961298a565b81518351146120d15760405162461bcd60e51b8152600401610af59061384e565b6001600160a01b0384166120f75760405162461bcd60e51b8152600401610af590613896565b3361210681878787878761297c565b60005b84518110156121ec57600085828151811061212657612126613548565b60200260200101519050600085838151811061214457612144613548565b602090810291909101810151600084815280835260408082206001600160a01b038e1683529093529190912054909150818110156121945760405162461bcd60e51b8152600401610af5906138db565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b168252812080548492906121d1908490613593565b92505081905550505050806121e5906136d9565b9050612109565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161223c929190613925565b60405180910390a4611c8c818787878787612ae5565b60008261225f8584612ba0565b14949350505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261160e908490612be5565b6001600160a01b0383166122e05760405162461bcd60e51b8152600401610af590613953565b80518251146123015760405162461bcd60e51b8152600401610af59061384e565b60003390506123248185600086866040518060200160405280600081525061297c565b60005b83518110156123e957600084828151811061234457612344613548565b60200260200101519050600084838151811061236257612362613548565b602090810291909101810151600084815280835260408082206001600160a01b038c1683529093529190912054909150818110156123b25760405162461bcd60e51b8152600401610af590613996565b6000928352602083815260408085206001600160a01b038b16865290915290922091039055806123e1816136d9565b915050612327565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb868660405161243a929190613925565b60405180910390a46040805160208101909152600090525b50505050565b600480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0383166124d05760405162461bcd60e51b8152600401610af590613953565b3360006124dc84612931565b905060006124e984612931565b90506125098387600085856040518060200160405280600081525061297c565b6000858152602081815260408083206001600160a01b038a1684529091529020548481101561254a5760405162461bcd60e51b8152600401610af590613996565b6000868152602081815260408083206001600160a01b038b81168086529184528285208a8703905582518b81529384018a90529092908816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4604080516020810190915260009052611c8a565b816001600160a01b0316836001600160a01b0316036126355760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610af5565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6007546001600160a01b038416600090815260096020526040812054909183916126cc9086613574565b6126d69190613826565b6119de9190613631565b6001600160a01b0384166127065760405162461bcd60e51b8152600401610af590613896565b33600061271285612931565b9050600061271f85612931565b905061272f83898985858961297c565b6000868152602081815260408083206001600160a01b038c168452909152902054858110156127705760405162461bcd60e51b8152600401610af5906138db565b6000878152602081815260408083206001600160a01b038d8116855292528083208985039055908a168252812080548892906127ad908490613593565b909155505060408051888152602081018890526001600160a01b03808b16928c821692918816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461280d848a8a8a8a8a61298a565b505050505050505050565b804710156128685760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610af5565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146128b5576040519150601f19603f3d011682016040523d82523d6000602084013e6128ba565b606091505b505090508061160e5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610af5565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061296b5761296b613548565b602090810291909101015292915050565b611c8c868686868686611b11565b6001600160a01b0384163b15611c8c5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906129ce90899089908890889088906004016139da565b6020604051808303816000875af1925050508015612a09575060408051601f3d908101601f19168201909252612a0691810190613a14565b60015b612ab557612a15613a31565b806308c379a003612a4e5750612a29613a4d565b80612a345750612a50565b8060405162461bcd60e51b8152600401610af59190612fc3565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610af5565b6001600160e01b0319811663f23a6e6160e01b14611c8a5760405162461bcd60e51b8152600401610af590613ad6565b6001600160a01b0384163b15611c8c5760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190612b299089908990889088908890600401613b1e565b6020604051808303816000875af1925050508015612b64575060408051601f3d908101601f19168201909252612b6191810190613a14565b60015b612b7057612a15613a31565b6001600160e01b0319811663bc197c8160e01b14611c8a5760405162461bcd60e51b8152600401610af590613ad6565b600081815b84518110156115b657612bd182868381518110612bc457612bc4613548565b6020026020010151612cb7565b915080612bdd816136d9565b915050612ba5565b6000612c3a826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316612ce39092919063ffffffff16565b80519091501561160e5780806020019051810190612c589190613b7c565b61160e5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610af5565b6000818310612cd357600082815260208490526040902061186b565b5060009182526020526040902090565b60606119de8484600085856001600160a01b0385163b612d455760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610af5565b600080866001600160a01b03168587604051612d619190613b99565b60006040518083038185875af1925050503d8060008114612d9e576040519150601f19603f3d011682016040523d82523d6000602084013e612da3565b606091505b5091509150612db3828286612dbe565b979650505050505050565b60608315612dcd57508161186b565b825115612ddd5782518084602001fd5b8160405162461bcd60e51b8152600401610af59190612fc3565b6001600160a01b0381168114610b8757600080fd5b60008060408385031215612e1f57600080fd5b8235612e2a81612df7565b946020939093013593505050565b6001600160e01b031981168114610b8757600080fd5b600060208284031215612e6057600080fd5b813561186b81612e38565b634e487b7160e01b600052604160045260246000fd5b601f8201601f191681016001600160401b0381118282101715612ea657612ea6612e6b565b6040525050565b60006001600160401b03831115612ec657612ec6612e6b565b604051612edd601f8501601f191660200182612e81565b809150838152848484011115612ef257600080fd5b83836020830137600060208583010152509392505050565b600060208284031215612f1c57600080fd5b81356001600160401b03811115612f3257600080fd5b8201601f81018413612f4357600080fd5b6119de84823560208401612ead565b600060208284031215612f6457600080fd5b5035919050565b60005b83811015612f86578181015183820152602001612f6e565b838111156124525750506000910152565b60008151808452612faf816020860160208601612f6b565b601f01601f19169290920160200192915050565b60208152600061186b6020830184612f97565b600060208284031215612fe857600080fd5b813561186b81612df7565b6000806040838503121561300657600080fd5b50508035926020909101359150565b60006001600160401b0382111561302e5761302e612e6b565b5060051b60200190565b600082601f83011261304957600080fd5b8135602061305682613015565b6040516130638282612e81565b83815260059390931b850182019282810191508684111561308357600080fd5b8286015b8481101561309e5780358352918301918301613087565b509695505050505050565b600082601f8301126130ba57600080fd5b61186b83833560208501612ead565b600080600080600060a086880312156130e157600080fd5b85356130ec81612df7565b945060208601356130fc81612df7565b935060408601356001600160401b038082111561311857600080fd5b61312489838a01613038565b9450606088013591508082111561313a57600080fd5b61314689838a01613038565b9350608088013591508082111561315c57600080fd5b50613169888289016130a9565b9150509295509295909350565b60008060008060008060a0878903121561318f57600080fd5b8635955060208701359450604087013593506060870135925060808701356001600160401b03808211156131c257600080fd5b818901915089601f8301126131d657600080fd5b8135818111156131e557600080fd5b8a60208260051b85010111156131fa57600080fd5b6020830194508093505050509295509295509295565b6000806040838503121561322357600080fd5b823561322e81612df7565b9150602083013561323e81612df7565b809150509250929050565b6000806040838503121561325c57600080fd5b82356001600160401b038082111561327357600080fd5b818501915085601f83011261328757600080fd5b8135602061329482613015565b6040516132a18282612e81565b83815260059390931b85018201928281019150898411156132c157600080fd5b948201945b838610156132e85785356132d981612df7565b825294820194908201906132c6565b965050860135925050808211156132fe57600080fd5b5061330b85828601613038565b9150509250929050565b600081518084526020808501945080840160005b8381101561334557815187529582019590820190600101613329565b509495945050505050565b60208152600061186b6020830184613315565b60008060006060848603121561337857600080fd5b833561338381612df7565b925060208401356001600160401b038082111561339f57600080fd5b6133ab87838801613038565b935060408601359150808211156133c157600080fd5b506133ce86828701613038565b9150509250925092565b8015158114610b8757600080fd5b600080604083850312156133f957600080fd5b823561340481612df7565b9150602083013561323e816133d8565b600080600080600060a0868803121561342c57600080fd5b853561343781612df7565b9450602086013561344781612df7565b9350604086013592506060860135915060808601356001600160401b0381111561347057600080fd5b613169888289016130a9565b60008060006060848603121561349157600080fd5b833561349c81612df7565b95602085013595506040909401359392505050565b600181811c908216806134c557607f821691505b6020821081036134e557634e487b7160e01b600052602260045260246000fd5b50919050565b600083516134fd818460208801612f6b565b835190830190613511818360208801612f6b565b01949350505050565b6020808252601490820152731cdd1859d948191bd95cc81b9bdd08195e1a5cdd60621b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561358e5761358e61355e565b500290565b600082198211156135a6576135a661355e565b500190565b6020808252601c908201527f50757263686173653a204d617820737570706c79207265616368656400000000604082015260600190565b6020808252602f908201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60408201526e195c881b9bdc88185c1c1c9bdd9959608a1b606082015260800190565b6000828210156136435761364361355e565b500390565b60208082526026908201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060408201526573686172657360d01b606082015260800190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060408201526a191d59481c185e5b595b9d60aa1b606082015260800190565b6000600182016136eb576136eb61355e565b5060010190565b60006020828403121561370457600080fd5b5051919050565b601f82111561160e57600081815260208120601f850160051c810160208610156137325750805b601f850160051c820191505b81811015611c8c5782815560010161373e565b81516001600160401b0381111561376a5761376a612e6b565b61377e8161377884546134b1565b8461370b565b602080601f8311600181146137b3576000841561379b5750858301515b600019600386901b1c1916600185901b178555611c8c565b600085815260208120601f198616915b828110156137e2578886015182559484019460019091019084016137c3565b50858210156138005787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601260045260246000fd5b60008261383557613835613810565b500490565b60008261384957613849613810565b500690565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6040815260006139386040830185613315565b828103602084015261394a8185613315565b95945050505050565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b606082015260800190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090612db390830184612f97565b600060208284031215613a2657600080fd5b815161186b81612e38565b600060033d1115613a4a5760046000803e5060005160e01c5b90565b600060443d1015613a5b5790565b6040516003193d81016004833e81513d6001600160401b038160248401118184111715613a8a57505050505090565b8285019150815181811115613aa25750505050505090565b843d8701016020828501011115613abc5750505050505090565b613acb60208286010187612e81565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b0386811682528516602082015260a060408201819052600090613b4a90830186613315565b8281036060840152613b5c8186613315565b90508281036080840152613b708185612f97565b98975050505050505050565b600060208284031215613b8e57600080fd5b815161186b816133d8565b60008251613bab818460208701612f6b565b919091019291505056fea26469706673582212209c3e75ca3ca185d267ffd5d86fe436561885907e6c475405a6edc5c7e0d96e4d64736f6c634300080f003300000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001e00000000000000000000000000000000000000000000000000000000000000240000000000000000000000000000000000000000000000000000000007779a9b000000000000000000000000000000000000000000000000000000000000002a00000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000000b5761676d69556e6974656400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000055741474d490000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000037697066733a2f2f516d61387a6863366b75527979386336764147587462544c3958377a3478654c45557977414e4d32724d3436724e2f200000000000000000000000000000000000000000000000000000000000000000000000000000000002935c2b63c6ed1e121186dd2966cbd1c137c80ff3a4ee341a4fb1526d5b61ed9c65a7c59ff689568a52e07799ae561f313ae47a298847352c6e5b99ae33f818ff000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000062c87eb000000000000000000000000000000000000000000000000000000000000000020000000000000000000000003f2bbb97f2047867a45b631113ee1efe08748a09000000000000000000000000dfb8f70a6d4e407f3af1fea508b7013f52964e35000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000001940000000000000000000000000000000000000000000000000000000000000254

Deployed Bytecode

0x6080604052600436106103385760003560e01c80637b1a4b0e116101ab578063bd85b039116100f7578063e33b7de311610095578063f2fde38b1161006f578063f2fde38b14610a18578063f39cfcd914610a38578063f5298aca14610a58578063f968adbe14610a7857600080fd5b8063e33b7de31461099a578063e985e9c5146109af578063f242432a146109f857600080fd5b8063d5abeb01116100d1578063d5abeb0114610919578063d79779b21461092f578063da5f945f14610965578063e2b9e1861461098557600080fd5b8063bd85b03914610896578063c45ac050146108c3578063ce7c2ac2146108e357600080fd5b80639852595c11610164578063a3f8eace1161013e578063a3f8eace14610836578063af17dea614610856578063b186c88b1461086b578063ba61810c1461088157600080fd5b80639852595c146107c0578063a1b1bd22146107f6578063a22cb4651461081657600080fd5b80637b1a4b0e146107095780637b58de8b1461071f5780637cbc2373146107355780638b83209b146107555780638da5cb5b1461078d57806395d89b41146107ab57600080fd5b80633a98ef39116102855780634f558e79116102235780636817c76c116101fd5780636817c76c146106985780636b20c454146106b4578063715018a6146106d457806371c5ecb1146106e957600080fd5b80634f558e791461061c578063522fe98e1461064b578063654d78491461067857600080fd5b8063406072a91161025f578063406072a914610569578063484b973c146105af57806348b75044146105cf5780634e1273f4146105ef57600080fd5b80633a98ef391461052c5780633ac3d7c0146105415780633ddf9c7f1461055457600080fd5b806306fdde03116102f25780632afd6505116102cc5780632afd6505146104b95780632db11544146104d95780632eb2c2d6146104ec57806330c6f09b1461050c57600080fd5b806306fdde03146104575780630e89341c14610479578063191655871461049957600080fd5b8062fdd58e14610386578063019863c3146103b957806301ffc9a7146103cf57806302fe5305146103ff578063035664fb1461042157806303cca00d1461044157600080fd5b36610381577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b34801561039257600080fd5b506103a66103a1366004612e0c565b610a8e565b6040519081526020015b60405180910390f35b3480156103c557600080fd5b506103a660135481565b3480156103db57600080fd5b506103ef6103ea366004612e4e565b610b24565b60405190151581526020016103b0565b34801561040b57600080fd5b5061041f61041a366004612f0a565b610b76565b005b34801561042d57600080fd5b5061041f61043c366004612f52565b610b8a565b34801561044d57600080fd5b506103a660115481565b34801561046357600080fd5b5061046c610b97565b6040516103b09190612fc3565b34801561048557600080fd5b5061046c610494366004612f52565b610c29565b3480156104a557600080fd5b5061041f6104b4366004612fd6565b610cb9565b3480156104c557600080fd5b5061041f6104d4366004612ff3565b610d28565b61041f6104e7366004612f52565b610d78565b3480156104f857600080fd5b5061041f6105073660046130c9565b610eff565b34801561051857600080fd5b506103a6610527366004612f52565b610f4b565b34801561053857600080fd5b506007546103a6565b61041f61054f366004613176565b610f6c565b34801561056057600080fd5b5061041f61127d565b34801561057557600080fd5b506103a6610584366004613210565b6001600160a01b039182166000908152600d6020908152604080832093909416825291909152205490565b3480156105bb57600080fd5b5061041f6105ca366004612e0c565b6112f1565b3480156105db57600080fd5b5061041f6105ea366004613210565b611372565b3480156105fb57600080fd5b5061060f61060a366004613249565b611495565b6040516103b09190613350565b34801561062857600080fd5b506103ef610637366004612f52565b600090815260036020526040902054151590565b34801561065757600080fd5b506103a6610666366004612fd6565b60146020526000908152604090205481565b34801561068457600080fd5b5061041f610693366004612f52565b6115be565b3480156106a457600080fd5b506103a66704db73254763000081565b3480156106c057600080fd5b5061041f6106cf366004613363565b6115cb565b3480156106e057600080fd5b5061041f611613565b3480156106f557600080fd5b506103a6610704366004612f52565b611627565b34801561071557600080fd5b506103a660105481565b34801561072b57600080fd5b506103a660125481565b34801561074157600080fd5b5061041f610750366004612ff3565b611637565b34801561076157600080fd5b50610775610770366004612f52565b6117a1565b6040516001600160a01b0390911681526020016103b0565b34801561079957600080fd5b506004546001600160a01b0316610775565b3480156107b757600080fd5b5061046c6117d1565b3480156107cc57600080fd5b506103a66107db366004612fd6565b6001600160a01b03166000908152600a602052604090205490565b34801561080257600080fd5b5061041f610811366004612ff3565b6117e0565b34801561082257600080fd5b5061041f6108313660046133e6565b61181f565b34801561084257600080fd5b506103a6610851366004612fd6565b61182a565b34801561086257600080fd5b5061046c611872565b34801561087757600080fd5b506103a6600f5481565b34801561088d57600080fd5b5061041f611900565b3480156108a257600080fd5b506103a66108b1366004612f52565b60009081526003602052604090205490565b3480156108cf57600080fd5b506103a66108de366004613210565b61191b565b3480156108ef57600080fd5b506103a66108fe366004612fd6565b6001600160a01b031660009081526009602052604090205490565b34801561092557600080fd5b506103a6612ee081565b34801561093b57600080fd5b506103a661094a366004612fd6565b6001600160a01b03166000908152600c602052604090205490565b34801561097157600080fd5b5061041f610980366004612ff3565b6119e6565b34801561099157600080fd5b5061046c6119f9565b3480156109a657600080fd5b506008546103a6565b3480156109bb57600080fd5b506103ef6109ca366004613210565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b348015610a0457600080fd5b5061041f610a13366004613414565b611a06565b348015610a2457600080fd5b5061041f610a33366004612fd6565b611a4b565b348015610a4457600080fd5b5061041f610a53366004612f52565b611ac1565b348015610a6457600080fd5b5061041f610a7336600461347c565b611ace565b348015610a8457600080fd5b506103a6600e5481565b60006001600160a01b038316610afe5760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201526930b634b21037bbb732b960b11b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b1480610b5557506001600160e01b031982166303a24d0760e21b145b80610b7057506301ffc9a760e01b6001600160e01b03198316145b92915050565b610b7e611ca3565b610b8781611cfd565b50565b610b92611ca3565b601055565b606060058054610ba6906134b1565b80601f0160208091040260200160405190810160405280929190818152602001828054610bd2906134b1565b8015610c1f5780601f10610bf457610100808354040283529160200191610c1f565b820191906000526020600020905b815481529060010190602001808311610c0257829003601f168201915b5050505050905090565b600081815260036020526040902054606090610c805760405162461bcd60e51b81526020600482015260166024820152752aa9249d103737b732bc34b9ba32b73a103a37b5b2b760511b6044820152606401610af5565b610c8982611d09565b610c9283611d9d565b604051602001610ca39291906134eb565b6040516020818303038152906040529050919050565b336001600160a01b0382161480610cda57506004546001600160a01b031633145b610d1f5760405162461bcd60e51b81526020600482015260166024820152752932b632b0b9b29d103737903832b936b4b9b9b4b7b760511b6044820152606401610af5565b610b8781611e9d565b610d30611ca3565b60155482908110610d535760405162461bcd60e51b8152600401610af59061351a565b8160158481548110610d6757610d67613548565b600091825260209091200155505050565b600081118015610d8a5750600e548111155b610dcc5760405162461bcd60e51b81526020600482015260136024820152721b585e08185b5bdd5b9d08195e18d959591959606a1b6044820152606401610af5565b610dde6704db73254763000082613574565b3414610e2c5760405162461bcd60e51b815260206004820152601b60248201527f50757263686173653a20496e636f7272656374207061796d656e7400000000006044820152606401610af5565b600160005260036020527fa15bc60c955c405d20d9149c709e2460f1c2d9a497496a7f46004d1772c3054c54612ee090610e67908390613593565b1115610e855760405162461bcd60e51b8152600401610af5906135ab565b60105442118015610e97575060115442105b610ee35760405162461bcd60e51b815260206004820152601760248201527f50757263686173653a2077696e646f7720636c6f7365640000000000000000006044820152606401610af5565b610b873360018360405180602001604052806000815250611f96565b6001600160a01b038516331480610f1b5750610f1b85336109ca565b610f375760405162461bcd60e51b8152600401610af5906135e2565b610f4485858585856120b0565b5050505050565b60158181548110610f5b57600080fd5b600091825260209091200154905081565b60155486908110610f8f5760405162461bcd60e51b8152600401610af59061351a565b8385848460168b81548110610fa657610fa6613548565b6000918252602080832090910154604080519283018890526bffffffffffffffffffffffff193360601b16908301526054820186905291906074016040516020818303038152906040528051906020012090506110398484808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152508692508591506122529050565b61108f5760405162461bcd60e51b815260206004820152602160248201527f4d65726b6c654469737472696275746f723a20496e76616c69642070726f6f666044820152601760f91b6064820152608401610af5565b336000908152601460205260409020548b906110ac908e90613593565b111580156110ba575060008c115b6110fc5760405162461bcd60e51b81526020600482015260136024820152721b585e08185b5bdd5b9d08195e18d959591959606a1b6044820152606401610af5565b60158d8154811061110f5761110f613548565b906000526020600020015442118015611129575060115442105b6111665760405162461bcd60e51b815260206004820152600e60248201526d1b5a5b9d1a5b99c818db1bdcd95960921b6044820152606401610af5565b600160005260036020527fa15bc60c955c405d20d9149c709e2460f1c2d9a497496a7f46004d1772c3054c54612ee0906111a1908e90613593565b11156111bf5760405162461bcd60e51b8152600401610af5906135ab565b6111d16704db7325476300008d613574565b341461121f5760405162461bcd60e51b815260206004820152601b60248201527f50757263686173653a20496e636f7272656374207061796d656e7400000000006044820152606401610af5565b8b60146000336001600160a01b03166001600160a01b031681526020019081526020016000206000828254019250508190555061126e3360018e60405180602001604052806000815250611f96565b50505050505050505050505050565b611285611ca3565b6002600f54116112d75760405162461bcd60e51b815260206004820152601760248201527f43616e6e6f7420676f2062656c6f7720706861736520310000000000000000006044820152606401610af5565b6001600f60008282546112ea9190613631565b9091555050565b6112f9611ca3565b600160005260036020527fa15bc60c955c405d20d9149c709e2460f1c2d9a497496a7f46004d1772c3054c54612ee090611334908390613593565b11156113525760405162461bcd60e51b8152600401610af5906135ab565b61136e8260018360405180602001604052806000815250611f96565b5050565b6001600160a01b0381166000908152600960205260409020546113a75760405162461bcd60e51b8152600401610af590613648565b60006113b3838361191b565b9050806000036113d55760405162461bcd60e51b8152600401610af59061368e565b6001600160a01b038084166000908152600d602090815260408083209386168352929052908120805483929061140c908490613593565b90915550506001600160a01b0383166000908152600c602052604081208054839290611439908490613593565b9091555061144a9050838383612268565b604080516001600160a01b038481168252602082018490528516917f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a910160405180910390a2505050565b606081518351146114fa5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610af5565b600083516001600160401b0381111561151557611515612e6b565b60405190808252806020026020018201604052801561153e578160200160208202803683370190505b50905060005b84518110156115b65761158985828151811061156257611562613548565b602002602001015185838151811061157c5761157c613548565b6020026020010151610a8e565b82828151811061159b5761159b613548565b60209081029190910101526115af816136d9565b9050611544565b509392505050565b6115c6611ca3565b600e55565b6001600160a01b0383163314806115e757506115e783336109ca565b6116035760405162461bcd60e51b8152600401610af5906135e2565b61160e8383836122ba565b505050565b61161b611ca3565b6116256000612458565b565b60168181548110610f5b57600080fd5b600081116116875760405162461bcd60e51b815260206004820152601a60248201527f52656465656d3a20616d6f756e74206e6f7420616c6c6f7765640000000000006044820152606401610af5565b60125442118015611699575060135442105b6116dd5760405162461bcd60e51b815260206004820152601560248201527414995919595b4e881dda5b991bddc818db1bdcd959605a1b6044820152606401610af5565b600f54821061172e5760405162461bcd60e51b815260206004820152601a60248201527f52656465656d3a2063616e6e6f742062652072656465656d65640000000000006044820152606401610af5565b6117393383836124aa565b61175633600f548360405180602001604052806000815250611f96565b336001600160a01b0316600f54837f5f4b9f370c6d4d401bfd2c43a9a8f9e67302f6cfcd10b74da419715f4076e8c78460405161179591815260200190565b60405180910390a45050565b6000600b82815481106117b6576117b6613548565b6000918252602090912001546001600160a01b031692915050565b606060068054610ba6906134b1565b6117e8611ca3565b6015548290811061180b5760405162461bcd60e51b8152600401610af59061351a565b8160168481548110610d6757610d67613548565b61136e3383836125c2565b60008061183660085490565b6118409047613593565b905061186b8382611866866001600160a01b03166000908152600a602052604090205490565b6126a2565b9392505050565b6006805461187f906134b1565b80601f01602080910402602001604051908101604052809291908181526020018280546118ab906134b1565b80156118f85780601f106118cd576101008083540402835291602001916118f8565b820191906000526020600020905b8154815290600101906020018083116118db57829003601f168201915b505050505081565b611908611ca3565b6001600f60008282546112ea9190613593565b6001600160a01b0382166000908152600c602052604081205481906040516370a0823160e01b81523060048201526001600160a01b038616906370a0823190602401602060405180830381865afa15801561197a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061199e91906136f2565b6119a89190613593565b6001600160a01b038086166000908152600d60209081526040808320938816835292905220549091506119de90849083906126a2565b949350505050565b6119ee611ca3565b601291909155601355565b6005805461187f906134b1565b6001600160a01b038516331480611a225750611a2285336109ca565b611a3e5760405162461bcd60e51b8152600401610af5906135e2565b610f4485858585856126e0565b611a53611ca3565b6001600160a01b038116611ab85760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610af5565b610b8781612458565b611ac9611ca3565b601155565b6001600160a01b038316331480611aea5750611aea83336109ca565b611b065760405162461bcd60e51b8152600401610af5906135e2565b61160e8383836124aa565b6001600160a01b038516611b985760005b8351811015611b9657828181518110611b3d57611b3d613548565b602002602001015160036000868481518110611b5b57611b5b613548565b602002602001015181526020019081526020016000206000828254611b809190613593565b90915550611b8f9050816136d9565b9050611b22565b505b6001600160a01b038416611c8c5760005b8351811015611c8a576000848281518110611bc657611bc6613548565b602002602001015190506000848381518110611be457611be4613548565b6020026020010151905060006003600084815260200190815260200160002054905081811015611c675760405162461bcd60e51b815260206004820152602860248201527f455243313135353a206275726e20616d6f756e74206578636565647320746f74604482015267616c537570706c7960c01b6064820152608401610af5565b60009283526003602052604090922091039055611c83816136d9565b9050611ba9565b505b505050505050565b6001600160a01b03163b151590565b6004546001600160a01b031633146116255760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610af5565b600261136e8282613751565b606060028054611d18906134b1565b80601f0160208091040260200160405190810160405280929190818152602001828054611d44906134b1565b8015611d915780601f10611d6657610100808354040283529160200191611d91565b820191906000526020600020905b815481529060010190602001808311611d7457829003601f168201915b50505050509050919050565b606081600003611dc45750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611dee5780611dd8816136d9565b9150611de79050600a83613826565b9150611dc8565b6000816001600160401b03811115611e0857611e08612e6b565b6040519080825280601f01601f191660200182016040528015611e32576020820181803683370190505b5090505b84156119de57611e47600183613631565b9150611e54600a8661383a565b611e5f906030613593565b60f81b818381518110611e7457611e74613548565b60200101906001600160f81b031916908160001a905350611e96600a86613826565b9450611e36565b6001600160a01b038116600090815260096020526040902054611ed25760405162461bcd60e51b8152600401610af590613648565b6000611edd8261182a565b905080600003611eff5760405162461bcd60e51b8152600401610af59061368e565b6001600160a01b0382166000908152600a602052604081208054839290611f27908490613593565b925050819055508060086000828254611f409190613593565b90915550611f5090508282612818565b604080516001600160a01b0384168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a15050565b6001600160a01b038416611ff65760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610af5565b33600061200285612931565b9050600061200f85612931565b90506120208360008985858961297c565b6000868152602081815260408083206001600160a01b038b16845290915281208054879290612050908490613593565b909155505060408051878152602081018790526001600160a01b03808a1692600092918716917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4611c8a8360008989898961298a565b81518351146120d15760405162461bcd60e51b8152600401610af59061384e565b6001600160a01b0384166120f75760405162461bcd60e51b8152600401610af590613896565b3361210681878787878761297c565b60005b84518110156121ec57600085828151811061212657612126613548565b60200260200101519050600085838151811061214457612144613548565b602090810291909101810151600084815280835260408082206001600160a01b038e1683529093529190912054909150818110156121945760405162461bcd60e51b8152600401610af5906138db565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b168252812080548492906121d1908490613593565b92505081905550505050806121e5906136d9565b9050612109565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161223c929190613925565b60405180910390a4611c8c818787878787612ae5565b60008261225f8584612ba0565b14949350505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261160e908490612be5565b6001600160a01b0383166122e05760405162461bcd60e51b8152600401610af590613953565b80518251146123015760405162461bcd60e51b8152600401610af59061384e565b60003390506123248185600086866040518060200160405280600081525061297c565b60005b83518110156123e957600084828151811061234457612344613548565b60200260200101519050600084838151811061236257612362613548565b602090810291909101810151600084815280835260408082206001600160a01b038c1683529093529190912054909150818110156123b25760405162461bcd60e51b8152600401610af590613996565b6000928352602083815260408085206001600160a01b038b16865290915290922091039055806123e1816136d9565b915050612327565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb868660405161243a929190613925565b60405180910390a46040805160208101909152600090525b50505050565b600480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0383166124d05760405162461bcd60e51b8152600401610af590613953565b3360006124dc84612931565b905060006124e984612931565b90506125098387600085856040518060200160405280600081525061297c565b6000858152602081815260408083206001600160a01b038a1684529091529020548481101561254a5760405162461bcd60e51b8152600401610af590613996565b6000868152602081815260408083206001600160a01b038b81168086529184528285208a8703905582518b81529384018a90529092908816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4604080516020810190915260009052611c8a565b816001600160a01b0316836001600160a01b0316036126355760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610af5565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6007546001600160a01b038416600090815260096020526040812054909183916126cc9086613574565b6126d69190613826565b6119de9190613631565b6001600160a01b0384166127065760405162461bcd60e51b8152600401610af590613896565b33600061271285612931565b9050600061271f85612931565b905061272f83898985858961297c565b6000868152602081815260408083206001600160a01b038c168452909152902054858110156127705760405162461bcd60e51b8152600401610af5906138db565b6000878152602081815260408083206001600160a01b038d8116855292528083208985039055908a168252812080548892906127ad908490613593565b909155505060408051888152602081018890526001600160a01b03808b16928c821692918816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461280d848a8a8a8a8a61298a565b505050505050505050565b804710156128685760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610af5565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146128b5576040519150601f19603f3d011682016040523d82523d6000602084013e6128ba565b606091505b505090508061160e5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610af5565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061296b5761296b613548565b602090810291909101015292915050565b611c8c868686868686611b11565b6001600160a01b0384163b15611c8c5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906129ce90899089908890889088906004016139da565b6020604051808303816000875af1925050508015612a09575060408051601f3d908101601f19168201909252612a0691810190613a14565b60015b612ab557612a15613a31565b806308c379a003612a4e5750612a29613a4d565b80612a345750612a50565b8060405162461bcd60e51b8152600401610af59190612fc3565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610af5565b6001600160e01b0319811663f23a6e6160e01b14611c8a5760405162461bcd60e51b8152600401610af590613ad6565b6001600160a01b0384163b15611c8c5760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190612b299089908990889088908890600401613b1e565b6020604051808303816000875af1925050508015612b64575060408051601f3d908101601f19168201909252612b6191810190613a14565b60015b612b7057612a15613a31565b6001600160e01b0319811663bc197c8160e01b14611c8a5760405162461bcd60e51b8152600401610af590613ad6565b600081815b84518110156115b657612bd182868381518110612bc457612bc4613548565b6020026020010151612cb7565b915080612bdd816136d9565b915050612ba5565b6000612c3a826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316612ce39092919063ffffffff16565b80519091501561160e5780806020019051810190612c589190613b7c565b61160e5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610af5565b6000818310612cd357600082815260208490526040902061186b565b5060009182526020526040902090565b60606119de8484600085856001600160a01b0385163b612d455760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610af5565b600080866001600160a01b03168587604051612d619190613b99565b60006040518083038185875af1925050503d8060008114612d9e576040519150601f19603f3d011682016040523d82523d6000602084013e612da3565b606091505b5091509150612db3828286612dbe565b979650505050505050565b60608315612dcd57508161186b565b825115612ddd5782518084602001fd5b8160405162461bcd60e51b8152600401610af59190612fc3565b6001600160a01b0381168114610b8757600080fd5b60008060408385031215612e1f57600080fd5b8235612e2a81612df7565b946020939093013593505050565b6001600160e01b031981168114610b8757600080fd5b600060208284031215612e6057600080fd5b813561186b81612e38565b634e487b7160e01b600052604160045260246000fd5b601f8201601f191681016001600160401b0381118282101715612ea657612ea6612e6b565b6040525050565b60006001600160401b03831115612ec657612ec6612e6b565b604051612edd601f8501601f191660200182612e81565b809150838152848484011115612ef257600080fd5b83836020830137600060208583010152509392505050565b600060208284031215612f1c57600080fd5b81356001600160401b03811115612f3257600080fd5b8201601f81018413612f4357600080fd5b6119de84823560208401612ead565b600060208284031215612f6457600080fd5b5035919050565b60005b83811015612f86578181015183820152602001612f6e565b838111156124525750506000910152565b60008151808452612faf816020860160208601612f6b565b601f01601f19169290920160200192915050565b60208152600061186b6020830184612f97565b600060208284031215612fe857600080fd5b813561186b81612df7565b6000806040838503121561300657600080fd5b50508035926020909101359150565b60006001600160401b0382111561302e5761302e612e6b565b5060051b60200190565b600082601f83011261304957600080fd5b8135602061305682613015565b6040516130638282612e81565b83815260059390931b850182019282810191508684111561308357600080fd5b8286015b8481101561309e5780358352918301918301613087565b509695505050505050565b600082601f8301126130ba57600080fd5b61186b83833560208501612ead565b600080600080600060a086880312156130e157600080fd5b85356130ec81612df7565b945060208601356130fc81612df7565b935060408601356001600160401b038082111561311857600080fd5b61312489838a01613038565b9450606088013591508082111561313a57600080fd5b61314689838a01613038565b9350608088013591508082111561315c57600080fd5b50613169888289016130a9565b9150509295509295909350565b60008060008060008060a0878903121561318f57600080fd5b8635955060208701359450604087013593506060870135925060808701356001600160401b03808211156131c257600080fd5b818901915089601f8301126131d657600080fd5b8135818111156131e557600080fd5b8a60208260051b85010111156131fa57600080fd5b6020830194508093505050509295509295509295565b6000806040838503121561322357600080fd5b823561322e81612df7565b9150602083013561323e81612df7565b809150509250929050565b6000806040838503121561325c57600080fd5b82356001600160401b038082111561327357600080fd5b818501915085601f83011261328757600080fd5b8135602061329482613015565b6040516132a18282612e81565b83815260059390931b85018201928281019150898411156132c157600080fd5b948201945b838610156132e85785356132d981612df7565b825294820194908201906132c6565b965050860135925050808211156132fe57600080fd5b5061330b85828601613038565b9150509250929050565b600081518084526020808501945080840160005b8381101561334557815187529582019590820190600101613329565b509495945050505050565b60208152600061186b6020830184613315565b60008060006060848603121561337857600080fd5b833561338381612df7565b925060208401356001600160401b038082111561339f57600080fd5b6133ab87838801613038565b935060408601359150808211156133c157600080fd5b506133ce86828701613038565b9150509250925092565b8015158114610b8757600080fd5b600080604083850312156133f957600080fd5b823561340481612df7565b9150602083013561323e816133d8565b600080600080600060a0868803121561342c57600080fd5b853561343781612df7565b9450602086013561344781612df7565b9350604086013592506060860135915060808601356001600160401b0381111561347057600080fd5b613169888289016130a9565b60008060006060848603121561349157600080fd5b833561349c81612df7565b95602085013595506040909401359392505050565b600181811c908216806134c557607f821691505b6020821081036134e557634e487b7160e01b600052602260045260246000fd5b50919050565b600083516134fd818460208801612f6b565b835190830190613511818360208801612f6b565b01949350505050565b6020808252601490820152731cdd1859d948191bd95cc81b9bdd08195e1a5cdd60621b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561358e5761358e61355e565b500290565b600082198211156135a6576135a661355e565b500190565b6020808252601c908201527f50757263686173653a204d617820737570706c79207265616368656400000000604082015260600190565b6020808252602f908201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60408201526e195c881b9bdc88185c1c1c9bdd9959608a1b606082015260800190565b6000828210156136435761364361355e565b500390565b60208082526026908201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060408201526573686172657360d01b606082015260800190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060408201526a191d59481c185e5b595b9d60aa1b606082015260800190565b6000600182016136eb576136eb61355e565b5060010190565b60006020828403121561370457600080fd5b5051919050565b601f82111561160e57600081815260208120601f850160051c810160208610156137325750805b601f850160051c820191505b81811015611c8c5782815560010161373e565b81516001600160401b0381111561376a5761376a612e6b565b61377e8161377884546134b1565b8461370b565b602080601f8311600181146137b3576000841561379b5750858301515b600019600386901b1c1916600185901b178555611c8c565b600085815260208120601f198616915b828110156137e2578886015182559484019460019091019084016137c3565b50858210156138005787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601260045260246000fd5b60008261383557613835613810565b500490565b60008261384957613849613810565b500690565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6040815260006139386040830185613315565b828103602084015261394a8185613315565b95945050505050565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b606082015260800190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090612db390830184612f97565b600060208284031215613a2657600080fd5b815161186b81612e38565b600060033d1115613a4a5760046000803e5060005160e01c5b90565b600060443d1015613a5b5790565b6040516003193d81016004833e81513d6001600160401b038160248401118184111715613a8a57505050505090565b8285019150815181811115613aa25750505050505090565b843d8701016020828501011115613abc5750505050505090565b613acb60208286010187612e81565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b0386811682528516602082015260a060408201819052600090613b4a90830186613315565b8281036060840152613b5c8186613315565b90508281036080840152613b708185612f97565b98975050505050505050565b600060208284031215613b8e57600080fd5b815161186b816133d8565b60008251613bab818460208701612f6b565b919091019291505056fea26469706673582212209c3e75ca3ca185d267ffd5d86fe436561885907e6c475405a6edc5c7e0d96e4d64736f6c634300080f0033

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

00000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001e00000000000000000000000000000000000000000000000000000000000000240000000000000000000000000000000000000000000000000000000007779a9b000000000000000000000000000000000000000000000000000000000000002a00000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000000b5761676d69556e6974656400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000055741474d490000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000037697066733a2f2f516d61387a6863366b75527979386336764147587462544c3958377a3478654c45557977414e4d32724d3436724e2f200000000000000000000000000000000000000000000000000000000000000000000000000000000002935c2b63c6ed1e121186dd2966cbd1c137c80ff3a4ee341a4fb1526d5b61ed9c65a7c59ff689568a52e07799ae561f313ae47a298847352c6e5b99ae33f818ff000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000062c87eb000000000000000000000000000000000000000000000000000000000000000020000000000000000000000003f2bbb97f2047867a45b631113ee1efe08748a09000000000000000000000000dfb8f70a6d4e407f3af1fea508b7013f52964e35000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000001940000000000000000000000000000000000000000000000000000000000000254

-----Decoded View---------------
Arg [0] : _name (string): WagmiUnited
Arg [1] : _symbol (string): WAGMI
Arg [2] : _uri (string): ipfs://Qma8zhc6kuRyy8c6vAGXtbTL9X7z4xeLEUywANM2rM46rN/
Arg [3] : _merkleRoots (bytes32[]): System.Byte[],System.Byte[]
Arg [4] : _stageWindows (uint256[]): 0,1657306800
Arg [5] : _mintingWindowCloses (uint256): 2004462000
Arg [6] : payees (address[]): 0x3f2BBB97f2047867a45B631113eE1eFE08748A09,0xdFB8f70A6d4e407F3AF1Fea508b7013F52964E35
Arg [7] : shares_ (uint256[]): 404,596

-----Encoded View---------------
27 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [3] : 00000000000000000000000000000000000000000000000000000000000001e0
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000240
Arg [5] : 000000000000000000000000000000000000000000000000000000007779a9b0
Arg [6] : 00000000000000000000000000000000000000000000000000000000000002a0
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000300
Arg [8] : 000000000000000000000000000000000000000000000000000000000000000b
Arg [9] : 5761676d69556e69746564000000000000000000000000000000000000000000
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [11] : 5741474d49000000000000000000000000000000000000000000000000000000
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000037
Arg [13] : 697066733a2f2f516d61387a6863366b75527979386336764147587462544c39
Arg [14] : 58377a3478654c45557977414e4d32724d3436724e2f20000000000000000000
Arg [15] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [16] : 935c2b63c6ed1e121186dd2966cbd1c137c80ff3a4ee341a4fb1526d5b61ed9c
Arg [17] : 65a7c59ff689568a52e07799ae561f313ae47a298847352c6e5b99ae33f818ff
Arg [18] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [19] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [20] : 0000000000000000000000000000000000000000000000000000000062c87eb0
Arg [21] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [22] : 0000000000000000000000003f2bbb97f2047867a45b631113ee1efe08748a09
Arg [23] : 000000000000000000000000dfb8f70a6d4e407f3af1fea508b7013f52964e35
Arg [24] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [25] : 0000000000000000000000000000000000000000000000000000000000000194
Arg [26] : 0000000000000000000000000000000000000000000000000000000000000254


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

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