ETH Price: $3,487.06 (+3.43%)
Gas: 4 Gwei

Token

SynergyPass (SP)
 

Overview

Max Total Supply

300 SP

Holders

250

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
0x56a284acbd7318380fc8a380cd5695bb14b5a0ce
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
Synergy

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 19 : Mainmint.sol
// SPDX-License-Identifier: Unlicensed


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


import './ERC1155RS.sol';
import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/utils/Strings.sol';
import '@openzeppelin/contracts/utils/math/Math.sol';
import '@openzeppelin/contracts/token/ERC1155/IERC1155.sol';
import '@openzeppelin/contracts/security/ReentrancyGuard.sol';
import 'operator-filter-registry/src/DefaultOperatorFilterer.sol';
import '@openzeppelin/contracts/utils/cryptography/MerkleProof.sol';

pragma solidity >=0.8.17 <0.9.0;

contract Synergy is ERC1155RS, Ownable, ReentrancyGuard, DefaultOperatorFilterer {

// ================== Variables Start =======================

    uint256 public GENERATION;
    uint256 public generationCount;
    mapping(uint256 => Generation) public generations;
    mapping(uint256 => mapping(address => uint256)) public mintedPerWallet;
    event Purchased(uint256 indexed index, address indexed account, uint256 amount);
    mapping(uint => string) public tokenURI;  

    struct Generation {
        uint256 id;
        uint256 maxSupply;
        uint256 whitelistPrice;
        bytes32 whitelistmerkleRoot;
        uint256 collabPrice;
        bytes32 collabmerkleRoot;
        uint256 waitlistPrice;
        bytes32 waitlistmerkleRoot;
        uint256 publicPrice;
        uint256 walletLimit;
        SaleStatus status;
    }

    enum SaleStatus {
        Closed, //0
        Whitelist, //1
        Collab, //2
        Waitlist, //3
        Public //4
    }    
    
// ================== Variables End =======================  

// ================== Constructor Start =======================

    constructor(
        string memory _name,
        string memory _symbol
        ) ERC1155("") {
        name_ = _name;
        symbol_ = _symbol;
    }

// ================== Constructor End =======================

// ================== Set Functions Start =======================

    function setGeneration(uint256 _id) public onlyOwner {
        require(_id > 0 && _id <= generationCount, "invalid generation id");
        GENERATION = _id;
    }

   function createNewGeneration(
        uint256 _maxSupply,
        uint256 _whitelistPrice,
        bytes32 _whitelistmerkleRoot,
        uint256 _collabPrice,
        bytes32 _collabmerkleRoot,
        uint256 _waitlistPrice,
        bytes32 _waitlistmerkleRoot,
        uint256 _publicPrice,
        uint256 _walletLimit
    ) public onlyOwner {
        generationCount++;
        editGeneration(
         generationCount,         
         _maxSupply,
         _whitelistPrice,
         _whitelistmerkleRoot,
         _collabPrice,
         _collabmerkleRoot,
         _waitlistPrice,
         _waitlistmerkleRoot,
         _publicPrice,
         _walletLimit);
        setGeneration(generationCount);
    }

    function editGeneration(
        uint256 _id,
        uint256 _maxSupply,
        uint256 _whitelistPrice,
        bytes32 _whitelistmerkleRoot,
        uint256 _collabPrice,
        bytes32 _collabmerkleRoot,
        uint256 _waitlistPrice,
        bytes32 _waitlistmerkleRoot,
        uint256 _publicPrice,
        uint256 _walletLimit
    ) public onlyOwner{
        require(_id > 0 && _id <= generationCount, "invalid generation id");      
        require(totalSupply(_id) <= _maxSupply, "invalid maxSupply");
        generations[_id] = Generation(
         _id,
         _maxSupply,
         _whitelistPrice,
         _whitelistmerkleRoot,
         _collabPrice,
         _collabmerkleRoot,
         _waitlistPrice,
         _waitlistmerkleRoot,
         _publicPrice,
         _walletLimit,
          generations[_id].status
        );
    }
    
    function editWhitelists(uint256 _id, uint256 _whitelistPrice, bytes32 _whitelistmerkleRoot) external onlyOwner{
        require(_id > 0 && _id <= generationCount, "invalid generation id");        
        generations[_id].whitelistPrice = _whitelistPrice;
        generations[_id].whitelistmerkleRoot = _whitelistmerkleRoot;
    }        

    function editCollabs(uint256 _id, uint256 _collabPrice, bytes32 _collabmerkleRoot) external onlyOwner{
        require(_id > 0 && _id <= generationCount, "invalid generation id");        
        generations[_id].collabPrice = _collabPrice;
        generations[_id].collabmerkleRoot = _collabmerkleRoot;
    } 

    function editWaitlists(uint256 _id, uint256 _waitlistPrice, bytes32 _waitlistmerkleRoot) external onlyOwner{
        require(_id > 0 && _id <= generationCount, "invalid generation id");        
        generations[_id].waitlistPrice = _waitlistPrice;
        generations[_id].waitlistmerkleRoot = _waitlistmerkleRoot;
    }

    function editSupply(uint256 _id, uint256 _maxSupply) external onlyOwner{
        require(_id > 0 && _id <= generationCount, "invalid generation id");        
        require(totalSupply(_id) <= _maxSupply, "invalid maxSupply");
        generations[_id].maxSupply = _maxSupply;
    }     

    function setURI(uint256 _id, string memory _uri) public onlyOwner {
        require(_id > 0 && _id <= generationCount, "invalid generation id");
        tokenURI[_id] = _uri;
        emit URI(_uri, _id);
    }

    function setStatus(uint256 _id, SaleStatus _status) external onlyOwner{
        require(_id > 0 && _id <= generationCount, "invalid generation id");        
        generations[_id].status = _status;
    }    


// ================== End Functions Start =======================

// ================== Mint Functions Start =======================

    function _contractMint(uint256 _amount) internal {
        // conditions
        require(totalSupply(GENERATION) + _amount <= generations[GENERATION].maxSupply, "cap for generation reached");

        // mapping update
        mintedPerWallet[GENERATION][msg.sender] += _amount;
        
        //mint 
        _mint(msg.sender, GENERATION, _amount, "");
        emit Purchased(GENERATION, msg.sender, _amount);
    }

    function whitelistMint(bytes32[] calldata _merkleProof, uint256 _amount) external payable{
        require(tx.origin == msg.sender, "only eoa");
        require(mintedPerWallet[GENERATION][msg.sender] + _amount <= generations[GENERATION].walletLimit, "wallet limit reached");
        require(msg.value >= generations[GENERATION].whitelistPrice  * _amount, "invalid value sent");
        
        require(generations[GENERATION].status == SaleStatus.Whitelist, "whitelist not started");

        bytes32 leaf = keccak256(abi.encodePacked(_msgSender()));
        require(MerkleProof.verify(_merkleProof, generations[GENERATION].whitelistmerkleRoot, leaf), 'Invalid proof!');

        _contractMint(_amount);
    }    

    function collabMint(bytes32[] calldata _merkleProof, uint256 _amount) external payable{
        require(tx.origin == msg.sender, "only eoa");
        require(mintedPerWallet[GENERATION][msg.sender] + _amount <= generations[GENERATION].walletLimit, "wallet limit reached");
        require(msg.value >= generations[GENERATION].collabPrice * _amount, "invalid value sent");
        
        require(generations[GENERATION].status == SaleStatus.Collab, "collab not started");

        bytes32 leaf = keccak256(abi.encodePacked(_msgSender()));
        require(MerkleProof.verify(_merkleProof, generations[GENERATION].collabmerkleRoot, leaf), 'Invalid proof!');

        _contractMint(_amount);
    }    

    function waitlistMint(bytes32[] calldata _merkleProof, uint256 _amount) external payable{
        require(tx.origin == msg.sender, "only eoa");
        require(mintedPerWallet[GENERATION][msg.sender] + _amount <= generations[GENERATION].walletLimit, "wallet limit reached");
        require(msg.value >= generations[GENERATION].waitlistPrice  * _amount, "invalid value sent");
        
        require(generations[GENERATION].status == SaleStatus.Waitlist, "waitlist not started");

        bytes32 leaf = keccak256(abi.encodePacked(_msgSender()));
        require(MerkleProof.verify(_merkleProof, generations[GENERATION].waitlistmerkleRoot, leaf), 'Invalid proof!');

        _contractMint(_amount);
    }

    function publicMint(uint256 _amount) external payable{
        require(tx.origin == msg.sender, "only eoa");
        require(mintedPerWallet[GENERATION][msg.sender] + _amount <= generations[GENERATION].walletLimit, "wallet limit reached");
        require(msg.value >= generations[GENERATION].publicPrice  * _amount, "invalid value sent");
        
        require(generations[GENERATION].status == SaleStatus.Public, "public not started");
        _contractMint(_amount);
    }         


    function teamMint(uint256 _amount, address _reciever) external onlyOwner {
        require(totalSupply(GENERATION) + _amount <= generations[GENERATION].maxSupply, "cap for generation reached");
        _mint(_reciever, GENERATION, _amount, "");
    }

// ================== Mint Functions End =======================

// ================== Read Functions Start =======================

    function uri(uint256 _id) public view override returns (string memory) {
        require(exists(_id), "URI: nonexistent token");
        return tokenURI[_id];
    }

   function maxSupply(uint256 _id) external view returns (uint256){
        require(_id > 0 && _id <= generationCount, "invalid generation id");        
        return generations[_id].maxSupply;
   }  

   function whitelistPrice(uint256 _id) external view returns (uint256){
        require(_id > 0 && _id <= generationCount, "invalid generation id");        
        return generations[_id].whitelistPrice;
   }

   function waitlistPrice(uint256 _id) external view returns (uint256){
        require(_id > 0 && _id <= generationCount, "invalid generation id");        
        return generations[_id].waitlistPrice;
   }

   function collabPrice(uint256 _id) external view returns (uint256){
        require(_id > 0 && _id <= generationCount, "invalid generation id");        
        return generations[_id].collabPrice;
   }

   function publicPrice(uint256 _id) external view returns (uint256){
        require(_id > 0 && _id <= generationCount, "invalid generation id");        
        return generations[_id].publicPrice;
   }   

   function whitelistmerkleRoot(uint256 _id) external view returns (bytes32){
        require(_id > 0 && _id <= generationCount, "invalid generation id");        
        return generations[_id].whitelistmerkleRoot;
   }

   function waitlistmerkleRoot(uint256 _id) external view returns (bytes32){
        require(_id > 0 && _id <= generationCount, "invalid generation id");        
        return generations[_id].waitlistmerkleRoot;
   }

   function collabmerkleRoot(uint256 _id) external view returns (bytes32){
        require(_id > 0 && _id <= generationCount, "invalid generation id");        
        return generations[_id].collabmerkleRoot;
   }

   function publicwalletLimit(uint256 _id) external view returns (uint256){
        require(_id > 0 && _id <= generationCount, "invalid generation id");        
        return generations[_id].walletLimit;
   }                 

// ================== Read Functions End =======================

// ================== Other Functions Start =======================

    function grab(uint256 _id, address _from, address _to, uint256 _amount) public onlyOwner {
        _safeTransferFrom(_from, _to, _id, _amount, "");
    }

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

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

    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) public virtual override onlyAllowedOperator(from) {
        super.safeBatchTransferFrom(from, to, ids, amounts, data);
    }

    event ethReceived(address, uint);
    receive() external payable {
        emit ethReceived(msg.sender, msg.value);
    }    

// ================== Other Functions End =======================

// ================== Withdraw Function Start =======================
  
  function withdraw() public onlyOwner nonReentrant {
    //owner withdraw
    (bool os, ) = payable(owner()).call{value: address(this).balance}('');
    require(os);
  }

// ================== Withdraw Function End======================= 



}

File 2 of 19 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Tree proofs.
 *
 * The tree and the proofs can be generated using our
 * https://github.com/OpenZeppelin/merkle-tree[JavaScript library].
 * You will find a quickstart guide in the readme.
 *
 * 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.
 * OpenZeppelin's JavaScript library generates merkle trees that are safe
 * against this attack out of the box.
 */
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 simultaneously proven to be a part of a merkle tree defined by
     * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _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}
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _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 sibling nodes in `proof`. The reconstruction
     * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another
     * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false
     * respectively.
     *
     * CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree
     * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the
     * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer).
     *
     * _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}.
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _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 3 of 19 : DefaultOperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

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

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

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

File 4 of 19 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be _NOT_ENTERED
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./math/Math.sol";

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

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

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

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

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

File 8 of 19 : 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 9 of 19 : ERC1155RS.sol
// SPDX-License-Identifier: MIT


pragma solidity ^0.8.9;

import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol";

abstract contract ERC1155RS is ERC1155Supply {

    string name_;
    string 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(ERC1155Supply) {
        super._beforeTokenTransfer(operator, from, to, ids, amounts, data);
    }  
}

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

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

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

    IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY =
        IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E);

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

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

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

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

File 11 of 19 : 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 12 of 19 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

File 13 of 19 : 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 19 : IOperatorFilterRegistry.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

interface IOperatorFilterRegistry {
    function isOperatorAllowed(address registrant, address operator) external view returns (bool);
    function register(address registrant) external;
    function registerAndSubscribe(address registrant, address subscription) external;
    function registerAndCopyEntries(address registrant, address registrantToCopy) external;
    function unregister(address addr) external;
    function updateOperator(address registrant, address operator, bool filtered) external;
    function updateOperators(address registrant, address[] calldata operators, bool filtered) external;
    function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external;
    function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external;
    function subscribe(address registrant, address registrantToSubscribe) external;
    function unsubscribe(address registrant, bool copyExistingEntries) external;
    function subscriptionOf(address addr) external returns (address registrant);
    function subscribers(address registrant) external returns (address[] memory);
    function subscriberAt(address registrant, uint256 index) external returns (address);
    function copyEntriesOf(address registrant, address registrantToCopy) external;
    function isOperatorFiltered(address registrant, address operator) external returns (bool);
    function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool);
    function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool);
    function filteredOperators(address addr) external returns (address[] memory);
    function filteredCodeHashes(address addr) external returns (bytes32[] memory);
    function filteredOperatorAt(address registrant, uint256 index) external returns (address);
    function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32);
    function isRegistered(address addr) external returns (bool);
    function codeHashOf(address addr) external returns (bytes32);
}

File 15 of 19 : ERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.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 or 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 or 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 16 of 19 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

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

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

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

File 18 of 19 : 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 19 of 19 : 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);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"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":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"index","type":"uint256"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Purchased","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"","type":"address"},{"indexed":false,"internalType":"uint256","name":"","type":"uint256"}],"name":"ethReceived","type":"event"},{"inputs":[],"name":"GENERATION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"collabMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"collabPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"collabmerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxSupply","type":"uint256"},{"internalType":"uint256","name":"_whitelistPrice","type":"uint256"},{"internalType":"bytes32","name":"_whitelistmerkleRoot","type":"bytes32"},{"internalType":"uint256","name":"_collabPrice","type":"uint256"},{"internalType":"bytes32","name":"_collabmerkleRoot","type":"bytes32"},{"internalType":"uint256","name":"_waitlistPrice","type":"uint256"},{"internalType":"bytes32","name":"_waitlistmerkleRoot","type":"bytes32"},{"internalType":"uint256","name":"_publicPrice","type":"uint256"},{"internalType":"uint256","name":"_walletLimit","type":"uint256"}],"name":"createNewGeneration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_collabPrice","type":"uint256"},{"internalType":"bytes32","name":"_collabmerkleRoot","type":"bytes32"}],"name":"editCollabs","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_maxSupply","type":"uint256"},{"internalType":"uint256","name":"_whitelistPrice","type":"uint256"},{"internalType":"bytes32","name":"_whitelistmerkleRoot","type":"bytes32"},{"internalType":"uint256","name":"_collabPrice","type":"uint256"},{"internalType":"bytes32","name":"_collabmerkleRoot","type":"bytes32"},{"internalType":"uint256","name":"_waitlistPrice","type":"uint256"},{"internalType":"bytes32","name":"_waitlistmerkleRoot","type":"bytes32"},{"internalType":"uint256","name":"_publicPrice","type":"uint256"},{"internalType":"uint256","name":"_walletLimit","type":"uint256"}],"name":"editGeneration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_maxSupply","type":"uint256"}],"name":"editSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_waitlistPrice","type":"uint256"},{"internalType":"bytes32","name":"_waitlistmerkleRoot","type":"bytes32"}],"name":"editWaitlists","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_whitelistPrice","type":"uint256"},{"internalType":"bytes32","name":"_whitelistmerkleRoot","type":"bytes32"}],"name":"editWhitelists","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":[],"name":"generationCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"generations","outputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"maxSupply","type":"uint256"},{"internalType":"uint256","name":"whitelistPrice","type":"uint256"},{"internalType":"bytes32","name":"whitelistmerkleRoot","type":"bytes32"},{"internalType":"uint256","name":"collabPrice","type":"uint256"},{"internalType":"bytes32","name":"collabmerkleRoot","type":"bytes32"},{"internalType":"uint256","name":"waitlistPrice","type":"uint256"},{"internalType":"bytes32","name":"waitlistmerkleRoot","type":"bytes32"},{"internalType":"uint256","name":"publicPrice","type":"uint256"},{"internalType":"uint256","name":"walletLimit","type":"uint256"},{"internalType":"enum Synergy.SaleStatus","name":"status","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"grab","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"mintedPerWallet","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":"owner","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":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"publicPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"publicwalletLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"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":"tokenId","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":"uint256","name":"_id","type":"uint256"}],"name":"setGeneration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"enum Synergy.SaleStatus","name":"_status","type":"uint8"}],"name":"setStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"string","name":"_uri","type":"string"}],"name":"setURI","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":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_reciever","type":"address"}],"name":"teamMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"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"},{"inputs":[{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"waitlistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"waitlistPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"waitlistmerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"whitelistPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"whitelistmerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040523480156200001157600080fd5b5060405162003c9238038062003c92833981016040819052620000349162000314565b733cc6cdda760b79bafa08df41ecfa224f810dceb66001604051806020016040528060008152506200006c81620001eb60201b60201c565b506200007833620001fd565b60016007556daaeb6d7670e522a718067333cd4e3b15620001c25780156200011057604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b158015620000f157600080fd5b505af115801562000106573d6000803e3d6000fd5b50505050620001c2565b6001600160a01b03821615620001615760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af290390604401620000d6565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b158015620001a857600080fd5b505af1158015620001bd573d6000803e3d6000fd5b505050505b5060049050620001d383826200040d565b506005620001e282826200040d565b505050620004d9565b6002620001f982826200040d565b5050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200027757600080fd5b81516001600160401b03808211156200029457620002946200024f565b604051601f8301601f19908116603f01168101908282118183101715620002bf57620002bf6200024f565b81604052838152602092508683858801011115620002dc57600080fd5b600091505b83821015620003005785820183015181830184015290820190620002e1565b600093810190920192909252949350505050565b600080604083850312156200032857600080fd5b82516001600160401b03808211156200034057600080fd5b6200034e8683870162000265565b935060208501519150808211156200036557600080fd5b50620003748582860162000265565b9150509250929050565b600181811c908216806200039357607f821691505b602082108103620003b457634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200040857600081815260208120601f850160051c81016020861015620003e35750805b601f850160051c820191505b818110156200040457828155600101620003ef565b5050505b505050565b81516001600160401b038111156200042957620004296200024f565b62000441816200043a84546200037e565b84620003ba565b602080601f831160018114620004795760008415620004605750858301515b600019600386901b1c1916600185901b17855562000404565b600085815260208120601f198616915b82811015620004aa5788860151825594840194600190910190840162000489565b5085821015620004c95787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6137a980620004e96000396000f3fe6080604052600436106102805760003560e01c8063869f75941161014f578063bfa457bc116100c1578063e7f3c0381161007a578063e7f3c0381461084a578063e985e9c51461086a578063ed13117d146108b3578063f242432a146108d3578063f2fde38b146108f3578063f57312171461091357600080fd5b8063bfa457bc1461078a578063c87b56dd146107aa578063c9a141c6146107ca578063d597ff81146107ea578063d896dd641461080a578063e32dc7c41461082a57600080fd5b8063a22cb46511610113578063a22cb4651461064e578063a28afb1a1461066e578063a4562e8f1461068e578063ad8b0e94146106ae578063b20100721461073d578063bd85b0391461075d57600080fd5b8063869f7594146105bb5780638da5cb5b146105db5780638fc3045c146105f957806395d89b41146106195780639af61f881461062e57600080fd5b806338aa80e1116101f35780634e1273f4116101ac5780634e1273f4146104ea5780634f558e7914610517578063715018a6146105465780637e36cfd01461055b578063819905991461057b578063862440e21461059b57600080fd5b806338aa80e1146104285780633ccfd60b1461044857806341f434341461045d57806345c2b01e14610497578063471ae247146104b757806348cd46c9146104ca57600080fd5b806317edaba01161024557806317edaba01461037f5780632904e6d9146103955780632b541237146103aa5780632b64aa5c146103e25780632db11544146103f55780632eb2c2d61461040857600080fd5b8062fdd58e146102c457806301ffc9a7146102f757806306fdde03146103275780630e89341c1461034957806317b67acc1461036957600080fd5b366102bf57604080513381523460208201527ffe2d73074d233633e644a6fb7186458fbf422add1c18d996efd14ffbece6f2b2910160405180910390a1005b600080fd5b3480156102d057600080fd5b506102e46102df366004612a63565b610933565b6040519081526020015b60405180910390f35b34801561030357600080fd5b50610317610312366004612aa3565b6109cc565b60405190151581526020016102ee565b34801561033357600080fd5b5061033c610a1c565b6040516102ee9190612b06565b34801561035557600080fd5b5061033c610364366004612b19565b610aae565b34801561037557600080fd5b506102e460095481565b34801561038b57600080fd5b506102e460085481565b6103a86103a3366004612b32565b610ba3565b005b3480156103b657600080fd5b506102e46103c5366004612bad565b600b60209081526000928352604080842090915290825290205481565b6103a86103f0366004612b32565b610d94565b6103a8610403366004612b19565b610f38565b34801561041457600080fd5b506103a8610423366004612d2f565b611061565b34801561043457600080fd5b506103a8610443366004612dd9565b611090565b34801561045457600080fd5b506103a86110e3565b34801561046957600080fd5b5061047f6daaeb6d7670e522a718067333cd4e81565b6040516001600160a01b0390911681526020016102ee565b3480156104a357600080fd5b506102e46104b2366004612b19565b611171565b6103a86104c5366004612b32565b6111b6565b3480156104d657600080fd5b506103a86104e5366004612e05565b611358565b3480156104f657600080fd5b5061050a610505366004612e6d565b611517565b6040516102ee9190612f73565b34801561052357600080fd5b50610317610532366004612b19565b600090815260036020526040902054151590565b34801561055257600080fd5b506103a8611641565b34801561056757600080fd5b506103a8610576366004612f86565b611653565b34801561058757600080fd5b506103a8610596366004612fa8565b6116f0565b3480156105a757600080fd5b506103a86105b6366004613007565b611737565b3480156105c757600080fd5b506102e46105d6366004612b19565b6117c2565b3480156105e757600080fd5b506006546001600160a01b031661047f565b34801561060557600080fd5b506103a8610614366004613058565b611807565b34801561062557600080fd5b5061033c61182b565b34801561063a57600080fd5b506102e4610649366004612b19565b61183a565b34801561065a57600080fd5b506103a86106693660046130aa565b61187f565b34801561067a57600080fd5b506102e4610689366004612b19565b611898565b34801561069a57600080fd5b506102e46106a9366004612b19565b6118dd565b3480156106ba57600080fd5b506107266106c9366004612b19565b600a60208190526000918252604090912080546001820154600283015460038401546004850154600586015460068701546007880154600889015460098a015499909a015497999698959794969395929491939092909160ff168b565b6040516102ee9b9a999897969594939291906130f7565b34801561074957600080fd5b506102e4610758366004612b19565b611922565b34801561076957600080fd5b506102e4610778366004612b19565b60009081526003602052604090205490565b34801561079657600080fd5b506103a86107a5366004612bad565b611967565b3480156107b657600080fd5b5061033c6107c5366004612b19565b611a0a565b3480156107d657600080fd5b506102e46107e5366004612b19565b611aa4565b3480156107f657600080fd5b506102e4610805366004612b19565b611ae9565b34801561081657600080fd5b506103a8610825366004613170565b611b2e565b34801561083657600080fd5b506103a8610845366004612dd9565b611b9c565b34801561085657600080fd5b506102e4610865366004612b19565b611bef565b34801561087657600080fd5b50610317610885366004613199565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b3480156108bf57600080fd5b506103a86108ce366004612dd9565b611c34565b3480156108df57600080fd5b506103a86108ee3660046131c3565b611c87565b3480156108ff57600080fd5b506103a861090e366004613228565b611cae565b34801561091f57600080fd5b506103a861092e366004612b19565b611d24565b60006001600160a01b0383166109a35760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201526930b634b21037bbb732b960b11b60648201526084015b60405180910390fd5b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b03198216636cdb3d1360e11b14806109fd57506001600160e01b031982166303a24d0760e21b145b806109c657506301ffc9a760e01b6001600160e01b03198316146109c6565b606060048054610a2b90613243565b80601f0160208091040260200160405190810160405280929190818152602001828054610a5790613243565b8015610aa45780601f10610a7957610100808354040283529160200191610aa4565b820191906000526020600020905b815481529060010190602001808311610a8757829003601f168201915b5050505050905090565b600081815260036020526040902054606090610b055760405162461bcd60e51b81526020600482015260166024820152752aa9249d103737b732bc34b9ba32b73a103a37b5b2b760511b604482015260640161099a565b6000828152600c602052604090208054610b1e90613243565b80601f0160208091040260200160405190810160405280929190818152602001828054610b4a90613243565b8015610b975780601f10610b6c57610100808354040283529160200191610b97565b820191906000526020600020905b815481529060010190602001808311610b7a57829003601f168201915b50505050509050919050565b323314610bc25760405162461bcd60e51b815260040161099a9061327d565b6008546000908152600a6020908152604080832060090154600b835281842033855290925290912054610bf69083906132b5565b1115610c145760405162461bcd60e51b815260040161099a906132c8565b6008546000908152600a6020526040902060020154610c349082906132f6565b341015610c535760405162461bcd60e51b815260040161099a9061330d565b60016008546000908152600a60208190526040909120015460ff166004811115610c7f57610c7f6130e1565b14610cc45760405162461bcd60e51b81526020600482015260156024820152741dda1a5d195b1a5cdd081b9bdd081cdd185c9d1959605a1b604482015260640161099a565b6040516001600160601b03193360601b166020820152600090603401604051602081830303815290604052805190602001209050610d4884848080602002602001604051908101604052809392919081815260200183836020028082843760009201829052506008548152600a60205260409020600301549250859150611d5f9050565b610d855760405162461bcd60e51b815260206004820152600e60248201526d496e76616c69642070726f6f662160901b604482015260640161099a565b610d8e82611d75565b50505050565b323314610db35760405162461bcd60e51b815260040161099a9061327d565b6008546000908152600a6020908152604080832060090154600b835281842033855290925290912054610de79083906132b5565b1115610e055760405162461bcd60e51b815260040161099a906132c8565b6008546000908152600a6020526040902060060154610e259082906132f6565b341015610e445760405162461bcd60e51b815260040161099a9061330d565b60036008546000908152600a60208190526040909120015460ff166004811115610e7057610e706130e1565b14610eb45760405162461bcd60e51b81526020600482015260146024820152731dd85a5d1b1a5cdd081b9bdd081cdd185c9d195960621b604482015260640161099a565b6040516001600160601b03193360601b166020820152600090603401604051602081830303815290604052805190602001209050610d4884848080602002602001604051908101604052809392919081815260200183836020028082843760009201829052506008548152600a60205260409020600701549250859150611d5f9050565b323314610f575760405162461bcd60e51b815260040161099a9061327d565b6008546000908152600a6020908152604080832060090154600b835281842033855290925290912054610f8b9083906132b5565b1115610fa95760405162461bcd60e51b815260040161099a906132c8565b600880546000908152600a602052604090200154610fc89082906132f6565b341015610fe75760405162461bcd60e51b815260040161099a9061330d565b60046008546000908152600a60208190526040909120015460ff166004811115611013576110136130e1565b146110555760405162461bcd60e51b81526020600482015260126024820152711c1d589b1a58c81b9bdd081cdd185c9d195960721b604482015260640161099a565b61105e81611d75565b50565b846001600160a01b038116331461107b5761107b33611e7b565b6110888686868686611f34565b505050505050565b611098611f80565b6000831180156110aa57506009548311155b6110c65760405162461bcd60e51b815260040161099a90613339565b6000928352600a6020526040909220600681019190915560070155565b6110eb611f80565b6110f3611fda565b60006111076006546001600160a01b031690565b6001600160a01b03164760405160006040518083038185875af1925050503d8060008114611151576040519150601f19603f3d011682016040523d82523d6000602084013e611156565b606091505b505090508061116457600080fd5b5061116f6001600755565b565b6000808211801561118457506009548211155b6111a05760405162461bcd60e51b815260040161099a90613339565b506000908152600a602052604090206007015490565b3233146111d55760405162461bcd60e51b815260040161099a9061327d565b6008546000908152600a6020908152604080832060090154600b8352818420338552909252909120546112099083906132b5565b11156112275760405162461bcd60e51b815260040161099a906132c8565b6008546000908152600a60205260409020600401546112479082906132f6565b3410156112665760405162461bcd60e51b815260040161099a9061330d565b60026008546000908152600a60208190526040909120015460ff166004811115611292576112926130e1565b146112d45760405162461bcd60e51b815260206004820152601260248201527118dbdb1b1858881b9bdd081cdd185c9d195960721b604482015260640161099a565b6040516001600160601b03193360601b166020820152600090603401604051602081830303815290604052805190602001209050610d4884848080602002602001604051908101604052809392919081815260200183836020028082843760009201829052506008548152600a60205260409020600501549250859150611d5f9050565b611360611f80565b60008a11801561137257506009548a11155b61138e5760405162461bcd60e51b815260040161099a90613339565b60008a8152600360205260409020548910156113e05760405162461bcd60e51b8152602060048201526011602482015270696e76616c6964206d6178537570706c7960781b604482015260640161099a565b6040518061016001604052808b81526020018a8152602001898152602001888152602001878152602001868152602001858152602001848152602001838152602001828152602001600a60008d8152602001908152602001600020600a0160009054906101000a900460ff16600481111561145d5761145d6130e1565b815250600a60008c8152602001908152602001600020600082015181600001556020820151816001015560408201518160020155606082015181600301556080820151816004015560a0820151816005015560c0820151816006015560e082015181600701556101008201518160080155610120820151816009015561014082015181600a0160006101000a81548160ff02191690836004811115611504576115046130e1565b0217905550505050505050505050505050565b6060815183511461157c5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b606482015260840161099a565b6000835167ffffffffffffffff81111561159857611598612bd9565b6040519080825280602002602001820160405280156115c1578160200160208202803683370190505b50905060005b84518110156116395761160c8582815181106115e5576115e5613368565b60200260200101518583815181106115ff576115ff613368565b6020026020010151610933565b82828151811061161e5761161e613368565b60209081029190910101526116328161337e565b90506115c7565b509392505050565b611649611f80565b61116f6000612033565b61165b611f80565b60008211801561166d57506009548211155b6116895760405162461bcd60e51b815260040161099a90613339565b6000828152600360205260409020548110156116db5760405162461bcd60e51b8152602060048201526011602482015270696e76616c6964206d6178537570706c7960781b604482015260640161099a565b6000918252600a602052604090912060010155565b6116f8611f80565b600980549060006117088361337e565b91905055506117216009548a8a8a8a8a8a8a8a8a611358565b61172c600954611d24565b505050505050505050565b61173f611f80565b60008211801561175157506009548211155b61176d5760405162461bcd60e51b815260040161099a90613339565b6000828152600c6020526040902061178582826133dd565b50817f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b826040516117b69190612b06565b60405180910390a25050565b600080821180156117d557506009548211155b6117f15760405162461bcd60e51b815260040161099a90613339565b506000908152600a602052604090206001015490565b61180f611f80565b610d8e8383868460405180602001604052806000815250612085565b606060058054610a2b90613243565b6000808211801561184d57506009548211155b6118695760405162461bcd60e51b815260040161099a90613339565b506000908152600a602052604090206009015490565b8161188981611e7b565b61189383836121b2565b505050565b600080821180156118ab57506009548211155b6118c75760405162461bcd60e51b815260040161099a90613339565b506000908152600a602052604090206003015490565b600080821180156118f057506009548211155b61190c5760405162461bcd60e51b815260040161099a90613339565b506000908152600a602052604090206005015490565b6000808211801561193557506009548211155b6119515760405162461bcd60e51b815260040161099a90613339565b506000908152600a602052604090206004015490565b61196f611f80565b6008546000908152600a602090815260408083206001015460039092529091205461199b9084906132b5565b11156119e95760405162461bcd60e51b815260206004820152601a60248201527f63617020666f722067656e65726174696f6e2072656163686564000000000000604482015260640161099a565b611a068160085484604051806020016040528060008152506121bd565b5050565b600c6020526000908152604090208054611a2390613243565b80601f0160208091040260200160405190810160405280929190818152602001828054611a4f90613243565b8015611a9c5780601f10611a7157610100808354040283529160200191611a9c565b820191906000526020600020905b815481529060010190602001808311611a7f57829003601f168201915b505050505081565b60008082118015611ab757506009548211155b611ad35760405162461bcd60e51b815260040161099a90613339565b506000908152600a602052604090206008015490565b60008082118015611afc57506009548211155b611b185760405162461bcd60e51b815260040161099a90613339565b506000908152600a602052604090206002015490565b611b36611f80565b600082118015611b4857506009548211155b611b645760405162461bcd60e51b815260040161099a90613339565b6000828152600a6020819052604090912001805482919060ff19166001836004811115611b9357611b936130e1565b02179055505050565b611ba4611f80565b600083118015611bb657506009548311155b611bd25760405162461bcd60e51b815260040161099a90613339565b6000928352600a6020526040909220600481019190915560050155565b60008082118015611c0257506009548211155b611c1e5760405162461bcd60e51b815260040161099a90613339565b506000908152600a602052604090206006015490565b611c3c611f80565b600083118015611c4e57506009548311155b611c6a5760405162461bcd60e51b815260040161099a90613339565b6000928352600a6020526040909220600281019190915560030155565b846001600160a01b0381163314611ca157611ca133611e7b565b61108886868686866122e0565b611cb6611f80565b6001600160a01b038116611d1b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161099a565b61105e81612033565b611d2c611f80565b600081118015611d3e57506009548111155b611d5a5760405162461bcd60e51b815260040161099a90613339565b600855565b600082611d6c8584612325565b14949350505050565b6008546000908152600a6020908152604080832060010154600390925290912054611da19083906132b5565b1115611def5760405162461bcd60e51b815260206004820152601a60248201527f63617020666f722067656e65726174696f6e2072656163686564000000000000604482015260640161099a565b6008546000908152600b6020908152604080832033845290915281208054839290611e1b9084906132b5565b92505081905550611e3f3360085483604051806020016040528060008152506121bd565b6008546040518281523391907ffd51b2c9f55c42d2b72ac683526519563be02fc0107f034ff430c05185ff1b669060200160405180910390a350565b6daaeb6d7670e522a718067333cd4e3b1561105e57604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611ee8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f0c919061349d565b61105e57604051633b79c77360e21b81526001600160a01b038216600482015260240161099a565b6001600160a01b038516331480611f505750611f508533610885565b611f6c5760405162461bcd60e51b815260040161099a906134ba565b611f79858585858561236a565b5050505050565b6006546001600160a01b0316331461116f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161099a565b60026007540361202c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161099a565b6002600755565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0384166120ab5760405162461bcd60e51b815260040161099a90613508565b3360006120b78561254d565b905060006120c48561254d565b90506120d4838989858589612598565b6000868152602081815260408083206001600160a01b038c168452909152902054858110156121155760405162461bcd60e51b815260040161099a9061354d565b6000878152602081815260408083206001600160a01b038d8116855292528083208985039055908a168252812080548892906121529084906132b5565b909155505060408051888152602081018890526001600160a01b03808b16928c821692918816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461172c848a8a8a8a8a6125a6565b611a06338383612701565b6001600160a01b03841661221d5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b606482015260840161099a565b3360006122298561254d565b905060006122368561254d565b905061224783600089858589612598565b6000868152602081815260408083206001600160a01b038b168452909152812080548792906122779084906132b5565b909155505060408051878152602081018790526001600160a01b03808a1692600092918716917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46122d7836000898989896125a6565b50505050505050565b6001600160a01b0385163314806122fc57506122fc8533610885565b6123185760405162461bcd60e51b815260040161099a906134ba565b611f798585858585612085565b600081815b8451811015611639576123568286838151811061234957612349613368565b60200260200101516127e1565b9150806123628161337e565b91505061232a565b81518351146123cc5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b606482015260840161099a565b6001600160a01b0384166123f25760405162461bcd60e51b815260040161099a90613508565b33612401818787878787612598565b60005b84518110156124e757600085828151811061242157612421613368565b60200260200101519050600085838151811061243f5761243f613368565b602090810291909101810151600084815280835260408082206001600160a01b038e16835290935291909120549091508181101561248f5760405162461bcd60e51b815260040161099a9061354d565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b168252812080548492906124cc9084906132b5565b92505081905550505050806124e09061337e565b9050612404565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612537929190613597565b60405180910390a4611088818787878787612813565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061258757612587613368565b602090810291909101015292915050565b6110888686868686866128ce565b6001600160a01b0384163b156110885760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906125ea90899089908890889088906004016135c5565b6020604051808303816000875af1925050508015612625575060408051601f3d908101601f191682019092526126229181019061360a565b60015b6126d157612631613627565b806308c379a00361266a5750612645613643565b80612650575061266c565b8060405162461bcd60e51b815260040161099a9190612b06565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e2d455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b606482015260840161099a565b6001600160e01b0319811663f23a6e6160e01b146122d75760405162461bcd60e51b815260040161099a906136cd565b816001600160a01b0316836001600160a01b0316036127745760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b606482015260840161099a565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b60008183106127fd57600082815260208490526040902061280c565b60008381526020839052604090205b9392505050565b6001600160a01b0384163b156110885760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906128579089908990889088908890600401613715565b6020604051808303816000875af1925050508015612892575060408051601f3d908101601f1916820190925261288f9181019061360a565b60015b61289e57612631613627565b6001600160e01b0319811663bc197c8160e01b146122d75760405162461bcd60e51b815260040161099a906136cd565b6001600160a01b0385166129555760005b8351811015612953578281815181106128fa576128fa613368565b60200260200101516003600086848151811061291857612918613368565b60200260200101518152602001908152602001600020600082825461293d91906132b5565b9091555061294c90508161337e565b90506128df565b505b6001600160a01b0384166110885760005b83518110156122d757600084828151811061298357612983613368565b6020026020010151905060008483815181106129a1576129a1613368565b6020026020010151905060006003600084815260200190815260200160002054905081811015612a245760405162461bcd60e51b815260206004820152602860248201527f455243313135353a206275726e20616d6f756e74206578636565647320746f74604482015267616c537570706c7960c01b606482015260840161099a565b60009283526003602052604090922091039055612a408161337e565b9050612966565b80356001600160a01b0381168114612a5e57600080fd5b919050565b60008060408385031215612a7657600080fd5b612a7f83612a47565b946020939093013593505050565b6001600160e01b03198116811461105e57600080fd5b600060208284031215612ab557600080fd5b813561280c81612a8d565b6000815180845260005b81811015612ae657602081850181015186830182015201612aca565b506000602082860101526020601f19601f83011685010191505092915050565b60208152600061280c6020830184612ac0565b600060208284031215612b2b57600080fd5b5035919050565b600080600060408486031215612b4757600080fd5b833567ffffffffffffffff80821115612b5f57600080fd5b818601915086601f830112612b7357600080fd5b813581811115612b8257600080fd5b8760208260051b8501011115612b9757600080fd5b6020928301989097509590910135949350505050565b60008060408385031215612bc057600080fd5b82359150612bd060208401612a47565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b601f8201601f1916810167ffffffffffffffff81118282101715612c1557612c15612bd9565b6040525050565b600067ffffffffffffffff821115612c3657612c36612bd9565b5060051b60200190565b600082601f830112612c5157600080fd5b81356020612c5e82612c1c565b604051612c6b8282612bef565b83815260059390931b8501820192828101915086841115612c8b57600080fd5b8286015b84811015612ca65780358352918301918301612c8f565b509695505050505050565b600067ffffffffffffffff831115612ccb57612ccb612bd9565b604051612ce2601f8501601f191660200182612bef565b809150838152848484011115612cf757600080fd5b83836020830137600060208583010152509392505050565b600082601f830112612d2057600080fd5b61280c83833560208501612cb1565b600080600080600060a08688031215612d4757600080fd5b612d5086612a47565b9450612d5e60208701612a47565b9350604086013567ffffffffffffffff80821115612d7b57600080fd5b612d8789838a01612c40565b94506060880135915080821115612d9d57600080fd5b612da989838a01612c40565b93506080880135915080821115612dbf57600080fd5b50612dcc88828901612d0f565b9150509295509295909350565b600080600060608486031215612dee57600080fd5b505081359360208301359350604090920135919050565b6000806000806000806000806000806101408b8d031215612e2557600080fd5b505088359a60208a01359a5060408a013599606081013599506080810135985060a0810135975060c0810135965060e081013595506101008101359450610120013592509050565b60008060408385031215612e8057600080fd5b823567ffffffffffffffff80821115612e9857600080fd5b818501915085601f830112612eac57600080fd5b81356020612eb982612c1c565b604051612ec68282612bef565b83815260059390931b8501820192828101915089841115612ee657600080fd5b948201945b83861015612f0b57612efc86612a47565b82529482019490820190612eeb565b96505086013592505080821115612f2157600080fd5b50612f2e85828601612c40565b9150509250929050565b600081518084526020808501945080840160005b83811015612f6857815187529582019590820190600101612f4c565b509495945050505050565b60208152600061280c6020830184612f38565b60008060408385031215612f9957600080fd5b50508035926020909101359150565b60008060008060008060008060006101208a8c031215612fc757600080fd5b505087359960208901359950604089013598606081013598506080810135975060a0810135965060c0810135955060e08101359450610100013592509050565b6000806040838503121561301a57600080fd5b82359150602083013567ffffffffffffffff81111561303857600080fd5b8301601f8101851361304957600080fd5b612f2e85823560208401612cb1565b6000806000806080858703121561306e57600080fd5b8435935061307e60208601612a47565b925061308c60408601612a47565b9396929550929360600135925050565b801515811461105e57600080fd5b600080604083850312156130bd57600080fd5b6130c683612a47565b915060208301356130d68161309c565b809150509250929050565b634e487b7160e01b600052602160045260246000fd5b6000610160820190508c82528b60208301528a60408301528960608301528860808301528760a08301528660c08301528560e083015284610100830152836101208301526005831061315957634e487b7160e01b600052602160045260246000fd5b826101408301529c9b505050505050505050505050565b6000806040838503121561318357600080fd5b823591506020830135600581106130d657600080fd5b600080604083850312156131ac57600080fd5b6131b583612a47565b9150612bd060208401612a47565b600080600080600060a086880312156131db57600080fd5b6131e486612a47565b94506131f260208701612a47565b93506040860135925060608601359150608086013567ffffffffffffffff81111561321c57600080fd5b612dcc88828901612d0f565b60006020828403121561323a57600080fd5b61280c82612a47565b600181811c9082168061325757607f821691505b60208210810361327757634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252600890820152676f6e6c7920656f6160c01b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b808201808211156109c6576109c661329f565b6020808252601490820152731dd85b1b195d081b1a5b5a5d081c995858da195960621b604082015260600190565b80820281158282048414176109c6576109c661329f565b6020808252601290820152711a5b9d985b1a59081d985b1d59481cd95b9d60721b604082015260600190565b6020808252601590820152741a5b9d985b1a590819d95b995c985d1a5bdb881a59605a1b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b6000600182016133905761339061329f565b5060010190565b601f82111561189357600081815260208120601f850160051c810160208610156133be5750805b601f850160051c820191505b81811015611088578281556001016133ca565b815167ffffffffffffffff8111156133f7576133f7612bd9565b61340b816134058454613243565b84613397565b602080601f83116001811461344057600084156134285750858301515b600019600386901b1c1916600185901b178555611088565b600085815260208120601f198616915b8281101561346f57888601518255948401946001909101908401613450565b508582101561348d5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000602082840312156134af57600080fd5b815161280c8161309c565b6020808252602e908201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60408201526d195c881bdc88185c1c1c9bdd995960921b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6040815260006135aa6040830185612f38565b82810360208401526135bc8185612f38565b95945050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906135ff90830184612ac0565b979650505050505050565b60006020828403121561361c57600080fd5b815161280c81612a8d565b600060033d11156136405760046000803e5060005160e01c5b90565b600060443d10156136515790565b6040516003193d81016004833e81513d67ffffffffffffffff816024840111818411171561368157505050505090565b82850191508151818111156136995750505050505090565b843d87010160208285010111156136b35750505050505090565b6136c260208286010187612bef565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b0386811682528516602082015260a06040820181905260009061374190830186612f38565b82810360608401526137538186612f38565b905082810360808401526137678185612ac0565b9897505050505050505056fea26469706673582212202ac0c33d79feee3577b4fd4d676bfb54382575e8d52ae3806efa12c9d7119cdb64736f6c6343000811003300000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000b53796e657267795061737300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000025350000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106102805760003560e01c8063869f75941161014f578063bfa457bc116100c1578063e7f3c0381161007a578063e7f3c0381461084a578063e985e9c51461086a578063ed13117d146108b3578063f242432a146108d3578063f2fde38b146108f3578063f57312171461091357600080fd5b8063bfa457bc1461078a578063c87b56dd146107aa578063c9a141c6146107ca578063d597ff81146107ea578063d896dd641461080a578063e32dc7c41461082a57600080fd5b8063a22cb46511610113578063a22cb4651461064e578063a28afb1a1461066e578063a4562e8f1461068e578063ad8b0e94146106ae578063b20100721461073d578063bd85b0391461075d57600080fd5b8063869f7594146105bb5780638da5cb5b146105db5780638fc3045c146105f957806395d89b41146106195780639af61f881461062e57600080fd5b806338aa80e1116101f35780634e1273f4116101ac5780634e1273f4146104ea5780634f558e7914610517578063715018a6146105465780637e36cfd01461055b578063819905991461057b578063862440e21461059b57600080fd5b806338aa80e1146104285780633ccfd60b1461044857806341f434341461045d57806345c2b01e14610497578063471ae247146104b757806348cd46c9146104ca57600080fd5b806317edaba01161024557806317edaba01461037f5780632904e6d9146103955780632b541237146103aa5780632b64aa5c146103e25780632db11544146103f55780632eb2c2d61461040857600080fd5b8062fdd58e146102c457806301ffc9a7146102f757806306fdde03146103275780630e89341c1461034957806317b67acc1461036957600080fd5b366102bf57604080513381523460208201527ffe2d73074d233633e644a6fb7186458fbf422add1c18d996efd14ffbece6f2b2910160405180910390a1005b600080fd5b3480156102d057600080fd5b506102e46102df366004612a63565b610933565b6040519081526020015b60405180910390f35b34801561030357600080fd5b50610317610312366004612aa3565b6109cc565b60405190151581526020016102ee565b34801561033357600080fd5b5061033c610a1c565b6040516102ee9190612b06565b34801561035557600080fd5b5061033c610364366004612b19565b610aae565b34801561037557600080fd5b506102e460095481565b34801561038b57600080fd5b506102e460085481565b6103a86103a3366004612b32565b610ba3565b005b3480156103b657600080fd5b506102e46103c5366004612bad565b600b60209081526000928352604080842090915290825290205481565b6103a86103f0366004612b32565b610d94565b6103a8610403366004612b19565b610f38565b34801561041457600080fd5b506103a8610423366004612d2f565b611061565b34801561043457600080fd5b506103a8610443366004612dd9565b611090565b34801561045457600080fd5b506103a86110e3565b34801561046957600080fd5b5061047f6daaeb6d7670e522a718067333cd4e81565b6040516001600160a01b0390911681526020016102ee565b3480156104a357600080fd5b506102e46104b2366004612b19565b611171565b6103a86104c5366004612b32565b6111b6565b3480156104d657600080fd5b506103a86104e5366004612e05565b611358565b3480156104f657600080fd5b5061050a610505366004612e6d565b611517565b6040516102ee9190612f73565b34801561052357600080fd5b50610317610532366004612b19565b600090815260036020526040902054151590565b34801561055257600080fd5b506103a8611641565b34801561056757600080fd5b506103a8610576366004612f86565b611653565b34801561058757600080fd5b506103a8610596366004612fa8565b6116f0565b3480156105a757600080fd5b506103a86105b6366004613007565b611737565b3480156105c757600080fd5b506102e46105d6366004612b19565b6117c2565b3480156105e757600080fd5b506006546001600160a01b031661047f565b34801561060557600080fd5b506103a8610614366004613058565b611807565b34801561062557600080fd5b5061033c61182b565b34801561063a57600080fd5b506102e4610649366004612b19565b61183a565b34801561065a57600080fd5b506103a86106693660046130aa565b61187f565b34801561067a57600080fd5b506102e4610689366004612b19565b611898565b34801561069a57600080fd5b506102e46106a9366004612b19565b6118dd565b3480156106ba57600080fd5b506107266106c9366004612b19565b600a60208190526000918252604090912080546001820154600283015460038401546004850154600586015460068701546007880154600889015460098a015499909a015497999698959794969395929491939092909160ff168b565b6040516102ee9b9a999897969594939291906130f7565b34801561074957600080fd5b506102e4610758366004612b19565b611922565b34801561076957600080fd5b506102e4610778366004612b19565b60009081526003602052604090205490565b34801561079657600080fd5b506103a86107a5366004612bad565b611967565b3480156107b657600080fd5b5061033c6107c5366004612b19565b611a0a565b3480156107d657600080fd5b506102e46107e5366004612b19565b611aa4565b3480156107f657600080fd5b506102e4610805366004612b19565b611ae9565b34801561081657600080fd5b506103a8610825366004613170565b611b2e565b34801561083657600080fd5b506103a8610845366004612dd9565b611b9c565b34801561085657600080fd5b506102e4610865366004612b19565b611bef565b34801561087657600080fd5b50610317610885366004613199565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b3480156108bf57600080fd5b506103a86108ce366004612dd9565b611c34565b3480156108df57600080fd5b506103a86108ee3660046131c3565b611c87565b3480156108ff57600080fd5b506103a861090e366004613228565b611cae565b34801561091f57600080fd5b506103a861092e366004612b19565b611d24565b60006001600160a01b0383166109a35760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201526930b634b21037bbb732b960b11b60648201526084015b60405180910390fd5b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b03198216636cdb3d1360e11b14806109fd57506001600160e01b031982166303a24d0760e21b145b806109c657506301ffc9a760e01b6001600160e01b03198316146109c6565b606060048054610a2b90613243565b80601f0160208091040260200160405190810160405280929190818152602001828054610a5790613243565b8015610aa45780601f10610a7957610100808354040283529160200191610aa4565b820191906000526020600020905b815481529060010190602001808311610a8757829003601f168201915b5050505050905090565b600081815260036020526040902054606090610b055760405162461bcd60e51b81526020600482015260166024820152752aa9249d103737b732bc34b9ba32b73a103a37b5b2b760511b604482015260640161099a565b6000828152600c602052604090208054610b1e90613243565b80601f0160208091040260200160405190810160405280929190818152602001828054610b4a90613243565b8015610b975780601f10610b6c57610100808354040283529160200191610b97565b820191906000526020600020905b815481529060010190602001808311610b7a57829003601f168201915b50505050509050919050565b323314610bc25760405162461bcd60e51b815260040161099a9061327d565b6008546000908152600a6020908152604080832060090154600b835281842033855290925290912054610bf69083906132b5565b1115610c145760405162461bcd60e51b815260040161099a906132c8565b6008546000908152600a6020526040902060020154610c349082906132f6565b341015610c535760405162461bcd60e51b815260040161099a9061330d565b60016008546000908152600a60208190526040909120015460ff166004811115610c7f57610c7f6130e1565b14610cc45760405162461bcd60e51b81526020600482015260156024820152741dda1a5d195b1a5cdd081b9bdd081cdd185c9d1959605a1b604482015260640161099a565b6040516001600160601b03193360601b166020820152600090603401604051602081830303815290604052805190602001209050610d4884848080602002602001604051908101604052809392919081815260200183836020028082843760009201829052506008548152600a60205260409020600301549250859150611d5f9050565b610d855760405162461bcd60e51b815260206004820152600e60248201526d496e76616c69642070726f6f662160901b604482015260640161099a565b610d8e82611d75565b50505050565b323314610db35760405162461bcd60e51b815260040161099a9061327d565b6008546000908152600a6020908152604080832060090154600b835281842033855290925290912054610de79083906132b5565b1115610e055760405162461bcd60e51b815260040161099a906132c8565b6008546000908152600a6020526040902060060154610e259082906132f6565b341015610e445760405162461bcd60e51b815260040161099a9061330d565b60036008546000908152600a60208190526040909120015460ff166004811115610e7057610e706130e1565b14610eb45760405162461bcd60e51b81526020600482015260146024820152731dd85a5d1b1a5cdd081b9bdd081cdd185c9d195960621b604482015260640161099a565b6040516001600160601b03193360601b166020820152600090603401604051602081830303815290604052805190602001209050610d4884848080602002602001604051908101604052809392919081815260200183836020028082843760009201829052506008548152600a60205260409020600701549250859150611d5f9050565b323314610f575760405162461bcd60e51b815260040161099a9061327d565b6008546000908152600a6020908152604080832060090154600b835281842033855290925290912054610f8b9083906132b5565b1115610fa95760405162461bcd60e51b815260040161099a906132c8565b600880546000908152600a602052604090200154610fc89082906132f6565b341015610fe75760405162461bcd60e51b815260040161099a9061330d565b60046008546000908152600a60208190526040909120015460ff166004811115611013576110136130e1565b146110555760405162461bcd60e51b81526020600482015260126024820152711c1d589b1a58c81b9bdd081cdd185c9d195960721b604482015260640161099a565b61105e81611d75565b50565b846001600160a01b038116331461107b5761107b33611e7b565b6110888686868686611f34565b505050505050565b611098611f80565b6000831180156110aa57506009548311155b6110c65760405162461bcd60e51b815260040161099a90613339565b6000928352600a6020526040909220600681019190915560070155565b6110eb611f80565b6110f3611fda565b60006111076006546001600160a01b031690565b6001600160a01b03164760405160006040518083038185875af1925050503d8060008114611151576040519150601f19603f3d011682016040523d82523d6000602084013e611156565b606091505b505090508061116457600080fd5b5061116f6001600755565b565b6000808211801561118457506009548211155b6111a05760405162461bcd60e51b815260040161099a90613339565b506000908152600a602052604090206007015490565b3233146111d55760405162461bcd60e51b815260040161099a9061327d565b6008546000908152600a6020908152604080832060090154600b8352818420338552909252909120546112099083906132b5565b11156112275760405162461bcd60e51b815260040161099a906132c8565b6008546000908152600a60205260409020600401546112479082906132f6565b3410156112665760405162461bcd60e51b815260040161099a9061330d565b60026008546000908152600a60208190526040909120015460ff166004811115611292576112926130e1565b146112d45760405162461bcd60e51b815260206004820152601260248201527118dbdb1b1858881b9bdd081cdd185c9d195960721b604482015260640161099a565b6040516001600160601b03193360601b166020820152600090603401604051602081830303815290604052805190602001209050610d4884848080602002602001604051908101604052809392919081815260200183836020028082843760009201829052506008548152600a60205260409020600501549250859150611d5f9050565b611360611f80565b60008a11801561137257506009548a11155b61138e5760405162461bcd60e51b815260040161099a90613339565b60008a8152600360205260409020548910156113e05760405162461bcd60e51b8152602060048201526011602482015270696e76616c6964206d6178537570706c7960781b604482015260640161099a565b6040518061016001604052808b81526020018a8152602001898152602001888152602001878152602001868152602001858152602001848152602001838152602001828152602001600a60008d8152602001908152602001600020600a0160009054906101000a900460ff16600481111561145d5761145d6130e1565b815250600a60008c8152602001908152602001600020600082015181600001556020820151816001015560408201518160020155606082015181600301556080820151816004015560a0820151816005015560c0820151816006015560e082015181600701556101008201518160080155610120820151816009015561014082015181600a0160006101000a81548160ff02191690836004811115611504576115046130e1565b0217905550505050505050505050505050565b6060815183511461157c5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b606482015260840161099a565b6000835167ffffffffffffffff81111561159857611598612bd9565b6040519080825280602002602001820160405280156115c1578160200160208202803683370190505b50905060005b84518110156116395761160c8582815181106115e5576115e5613368565b60200260200101518583815181106115ff576115ff613368565b6020026020010151610933565b82828151811061161e5761161e613368565b60209081029190910101526116328161337e565b90506115c7565b509392505050565b611649611f80565b61116f6000612033565b61165b611f80565b60008211801561166d57506009548211155b6116895760405162461bcd60e51b815260040161099a90613339565b6000828152600360205260409020548110156116db5760405162461bcd60e51b8152602060048201526011602482015270696e76616c6964206d6178537570706c7960781b604482015260640161099a565b6000918252600a602052604090912060010155565b6116f8611f80565b600980549060006117088361337e565b91905055506117216009548a8a8a8a8a8a8a8a8a611358565b61172c600954611d24565b505050505050505050565b61173f611f80565b60008211801561175157506009548211155b61176d5760405162461bcd60e51b815260040161099a90613339565b6000828152600c6020526040902061178582826133dd565b50817f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b826040516117b69190612b06565b60405180910390a25050565b600080821180156117d557506009548211155b6117f15760405162461bcd60e51b815260040161099a90613339565b506000908152600a602052604090206001015490565b61180f611f80565b610d8e8383868460405180602001604052806000815250612085565b606060058054610a2b90613243565b6000808211801561184d57506009548211155b6118695760405162461bcd60e51b815260040161099a90613339565b506000908152600a602052604090206009015490565b8161188981611e7b565b61189383836121b2565b505050565b600080821180156118ab57506009548211155b6118c75760405162461bcd60e51b815260040161099a90613339565b506000908152600a602052604090206003015490565b600080821180156118f057506009548211155b61190c5760405162461bcd60e51b815260040161099a90613339565b506000908152600a602052604090206005015490565b6000808211801561193557506009548211155b6119515760405162461bcd60e51b815260040161099a90613339565b506000908152600a602052604090206004015490565b61196f611f80565b6008546000908152600a602090815260408083206001015460039092529091205461199b9084906132b5565b11156119e95760405162461bcd60e51b815260206004820152601a60248201527f63617020666f722067656e65726174696f6e2072656163686564000000000000604482015260640161099a565b611a068160085484604051806020016040528060008152506121bd565b5050565b600c6020526000908152604090208054611a2390613243565b80601f0160208091040260200160405190810160405280929190818152602001828054611a4f90613243565b8015611a9c5780601f10611a7157610100808354040283529160200191611a9c565b820191906000526020600020905b815481529060010190602001808311611a7f57829003601f168201915b505050505081565b60008082118015611ab757506009548211155b611ad35760405162461bcd60e51b815260040161099a90613339565b506000908152600a602052604090206008015490565b60008082118015611afc57506009548211155b611b185760405162461bcd60e51b815260040161099a90613339565b506000908152600a602052604090206002015490565b611b36611f80565b600082118015611b4857506009548211155b611b645760405162461bcd60e51b815260040161099a90613339565b6000828152600a6020819052604090912001805482919060ff19166001836004811115611b9357611b936130e1565b02179055505050565b611ba4611f80565b600083118015611bb657506009548311155b611bd25760405162461bcd60e51b815260040161099a90613339565b6000928352600a6020526040909220600481019190915560050155565b60008082118015611c0257506009548211155b611c1e5760405162461bcd60e51b815260040161099a90613339565b506000908152600a602052604090206006015490565b611c3c611f80565b600083118015611c4e57506009548311155b611c6a5760405162461bcd60e51b815260040161099a90613339565b6000928352600a6020526040909220600281019190915560030155565b846001600160a01b0381163314611ca157611ca133611e7b565b61108886868686866122e0565b611cb6611f80565b6001600160a01b038116611d1b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161099a565b61105e81612033565b611d2c611f80565b600081118015611d3e57506009548111155b611d5a5760405162461bcd60e51b815260040161099a90613339565b600855565b600082611d6c8584612325565b14949350505050565b6008546000908152600a6020908152604080832060010154600390925290912054611da19083906132b5565b1115611def5760405162461bcd60e51b815260206004820152601a60248201527f63617020666f722067656e65726174696f6e2072656163686564000000000000604482015260640161099a565b6008546000908152600b6020908152604080832033845290915281208054839290611e1b9084906132b5565b92505081905550611e3f3360085483604051806020016040528060008152506121bd565b6008546040518281523391907ffd51b2c9f55c42d2b72ac683526519563be02fc0107f034ff430c05185ff1b669060200160405180910390a350565b6daaeb6d7670e522a718067333cd4e3b1561105e57604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611ee8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f0c919061349d565b61105e57604051633b79c77360e21b81526001600160a01b038216600482015260240161099a565b6001600160a01b038516331480611f505750611f508533610885565b611f6c5760405162461bcd60e51b815260040161099a906134ba565b611f79858585858561236a565b5050505050565b6006546001600160a01b0316331461116f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161099a565b60026007540361202c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161099a565b6002600755565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0384166120ab5760405162461bcd60e51b815260040161099a90613508565b3360006120b78561254d565b905060006120c48561254d565b90506120d4838989858589612598565b6000868152602081815260408083206001600160a01b038c168452909152902054858110156121155760405162461bcd60e51b815260040161099a9061354d565b6000878152602081815260408083206001600160a01b038d8116855292528083208985039055908a168252812080548892906121529084906132b5565b909155505060408051888152602081018890526001600160a01b03808b16928c821692918816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461172c848a8a8a8a8a6125a6565b611a06338383612701565b6001600160a01b03841661221d5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b606482015260840161099a565b3360006122298561254d565b905060006122368561254d565b905061224783600089858589612598565b6000868152602081815260408083206001600160a01b038b168452909152812080548792906122779084906132b5565b909155505060408051878152602081018790526001600160a01b03808a1692600092918716917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46122d7836000898989896125a6565b50505050505050565b6001600160a01b0385163314806122fc57506122fc8533610885565b6123185760405162461bcd60e51b815260040161099a906134ba565b611f798585858585612085565b600081815b8451811015611639576123568286838151811061234957612349613368565b60200260200101516127e1565b9150806123628161337e565b91505061232a565b81518351146123cc5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b606482015260840161099a565b6001600160a01b0384166123f25760405162461bcd60e51b815260040161099a90613508565b33612401818787878787612598565b60005b84518110156124e757600085828151811061242157612421613368565b60200260200101519050600085838151811061243f5761243f613368565b602090810291909101810151600084815280835260408082206001600160a01b038e16835290935291909120549091508181101561248f5760405162461bcd60e51b815260040161099a9061354d565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b168252812080548492906124cc9084906132b5565b92505081905550505050806124e09061337e565b9050612404565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612537929190613597565b60405180910390a4611088818787878787612813565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061258757612587613368565b602090810291909101015292915050565b6110888686868686866128ce565b6001600160a01b0384163b156110885760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906125ea90899089908890889088906004016135c5565b6020604051808303816000875af1925050508015612625575060408051601f3d908101601f191682019092526126229181019061360a565b60015b6126d157612631613627565b806308c379a00361266a5750612645613643565b80612650575061266c565b8060405162461bcd60e51b815260040161099a9190612b06565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e2d455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b606482015260840161099a565b6001600160e01b0319811663f23a6e6160e01b146122d75760405162461bcd60e51b815260040161099a906136cd565b816001600160a01b0316836001600160a01b0316036127745760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b606482015260840161099a565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b60008183106127fd57600082815260208490526040902061280c565b60008381526020839052604090205b9392505050565b6001600160a01b0384163b156110885760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906128579089908990889088908890600401613715565b6020604051808303816000875af1925050508015612892575060408051601f3d908101601f1916820190925261288f9181019061360a565b60015b61289e57612631613627565b6001600160e01b0319811663bc197c8160e01b146122d75760405162461bcd60e51b815260040161099a906136cd565b6001600160a01b0385166129555760005b8351811015612953578281815181106128fa576128fa613368565b60200260200101516003600086848151811061291857612918613368565b60200260200101518152602001908152602001600020600082825461293d91906132b5565b9091555061294c90508161337e565b90506128df565b505b6001600160a01b0384166110885760005b83518110156122d757600084828151811061298357612983613368565b6020026020010151905060008483815181106129a1576129a1613368565b6020026020010151905060006003600084815260200190815260200160002054905081811015612a245760405162461bcd60e51b815260206004820152602860248201527f455243313135353a206275726e20616d6f756e74206578636565647320746f74604482015267616c537570706c7960c01b606482015260840161099a565b60009283526003602052604090922091039055612a408161337e565b9050612966565b80356001600160a01b0381168114612a5e57600080fd5b919050565b60008060408385031215612a7657600080fd5b612a7f83612a47565b946020939093013593505050565b6001600160e01b03198116811461105e57600080fd5b600060208284031215612ab557600080fd5b813561280c81612a8d565b6000815180845260005b81811015612ae657602081850181015186830182015201612aca565b506000602082860101526020601f19601f83011685010191505092915050565b60208152600061280c6020830184612ac0565b600060208284031215612b2b57600080fd5b5035919050565b600080600060408486031215612b4757600080fd5b833567ffffffffffffffff80821115612b5f57600080fd5b818601915086601f830112612b7357600080fd5b813581811115612b8257600080fd5b8760208260051b8501011115612b9757600080fd5b6020928301989097509590910135949350505050565b60008060408385031215612bc057600080fd5b82359150612bd060208401612a47565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b601f8201601f1916810167ffffffffffffffff81118282101715612c1557612c15612bd9565b6040525050565b600067ffffffffffffffff821115612c3657612c36612bd9565b5060051b60200190565b600082601f830112612c5157600080fd5b81356020612c5e82612c1c565b604051612c6b8282612bef565b83815260059390931b8501820192828101915086841115612c8b57600080fd5b8286015b84811015612ca65780358352918301918301612c8f565b509695505050505050565b600067ffffffffffffffff831115612ccb57612ccb612bd9565b604051612ce2601f8501601f191660200182612bef565b809150838152848484011115612cf757600080fd5b83836020830137600060208583010152509392505050565b600082601f830112612d2057600080fd5b61280c83833560208501612cb1565b600080600080600060a08688031215612d4757600080fd5b612d5086612a47565b9450612d5e60208701612a47565b9350604086013567ffffffffffffffff80821115612d7b57600080fd5b612d8789838a01612c40565b94506060880135915080821115612d9d57600080fd5b612da989838a01612c40565b93506080880135915080821115612dbf57600080fd5b50612dcc88828901612d0f565b9150509295509295909350565b600080600060608486031215612dee57600080fd5b505081359360208301359350604090920135919050565b6000806000806000806000806000806101408b8d031215612e2557600080fd5b505088359a60208a01359a5060408a013599606081013599506080810135985060a0810135975060c0810135965060e081013595506101008101359450610120013592509050565b60008060408385031215612e8057600080fd5b823567ffffffffffffffff80821115612e9857600080fd5b818501915085601f830112612eac57600080fd5b81356020612eb982612c1c565b604051612ec68282612bef565b83815260059390931b8501820192828101915089841115612ee657600080fd5b948201945b83861015612f0b57612efc86612a47565b82529482019490820190612eeb565b96505086013592505080821115612f2157600080fd5b50612f2e85828601612c40565b9150509250929050565b600081518084526020808501945080840160005b83811015612f6857815187529582019590820190600101612f4c565b509495945050505050565b60208152600061280c6020830184612f38565b60008060408385031215612f9957600080fd5b50508035926020909101359150565b60008060008060008060008060006101208a8c031215612fc757600080fd5b505087359960208901359950604089013598606081013598506080810135975060a0810135965060c0810135955060e08101359450610100013592509050565b6000806040838503121561301a57600080fd5b82359150602083013567ffffffffffffffff81111561303857600080fd5b8301601f8101851361304957600080fd5b612f2e85823560208401612cb1565b6000806000806080858703121561306e57600080fd5b8435935061307e60208601612a47565b925061308c60408601612a47565b9396929550929360600135925050565b801515811461105e57600080fd5b600080604083850312156130bd57600080fd5b6130c683612a47565b915060208301356130d68161309c565b809150509250929050565b634e487b7160e01b600052602160045260246000fd5b6000610160820190508c82528b60208301528a60408301528960608301528860808301528760a08301528660c08301528560e083015284610100830152836101208301526005831061315957634e487b7160e01b600052602160045260246000fd5b826101408301529c9b505050505050505050505050565b6000806040838503121561318357600080fd5b823591506020830135600581106130d657600080fd5b600080604083850312156131ac57600080fd5b6131b583612a47565b9150612bd060208401612a47565b600080600080600060a086880312156131db57600080fd5b6131e486612a47565b94506131f260208701612a47565b93506040860135925060608601359150608086013567ffffffffffffffff81111561321c57600080fd5b612dcc88828901612d0f565b60006020828403121561323a57600080fd5b61280c82612a47565b600181811c9082168061325757607f821691505b60208210810361327757634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252600890820152676f6e6c7920656f6160c01b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b808201808211156109c6576109c661329f565b6020808252601490820152731dd85b1b195d081b1a5b5a5d081c995858da195960621b604082015260600190565b80820281158282048414176109c6576109c661329f565b6020808252601290820152711a5b9d985b1a59081d985b1d59481cd95b9d60721b604082015260600190565b6020808252601590820152741a5b9d985b1a590819d95b995c985d1a5bdb881a59605a1b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b6000600182016133905761339061329f565b5060010190565b601f82111561189357600081815260208120601f850160051c810160208610156133be5750805b601f850160051c820191505b81811015611088578281556001016133ca565b815167ffffffffffffffff8111156133f7576133f7612bd9565b61340b816134058454613243565b84613397565b602080601f83116001811461344057600084156134285750858301515b600019600386901b1c1916600185901b178555611088565b600085815260208120601f198616915b8281101561346f57888601518255948401946001909101908401613450565b508582101561348d5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000602082840312156134af57600080fd5b815161280c8161309c565b6020808252602e908201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60408201526d195c881bdc88185c1c1c9bdd995960921b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6040815260006135aa6040830185612f38565b82810360208401526135bc8185612f38565b95945050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906135ff90830184612ac0565b979650505050505050565b60006020828403121561361c57600080fd5b815161280c81612a8d565b600060033d11156136405760046000803e5060005160e01c5b90565b600060443d10156136515790565b6040516003193d81016004833e81513d67ffffffffffffffff816024840111818411171561368157505050505090565b82850191508151818111156136995750505050505090565b843d87010160208285010111156136b35750505050505090565b6136c260208286010187612bef565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b0386811682528516602082015260a06040820181905260009061374190830186612f38565b82810360608401526137538186612f38565b905082810360808401526137678185612ac0565b9897505050505050505056fea26469706673582212202ac0c33d79feee3577b4fd4d676bfb54382575e8d52ae3806efa12c9d7119cdb64736f6c63430008110033

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

00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000b53796e657267795061737300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000025350000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _name (string): SynergyPass
Arg [1] : _symbol (string): SP

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 000000000000000000000000000000000000000000000000000000000000000b
Arg [3] : 53796e6572677950617373000000000000000000000000000000000000000000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [5] : 5350000000000000000000000000000000000000000000000000000000000000


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.