ETH Price: $2,419.81 (-2.45%)

Contract

0xcff8b97bd9c075D93822285ecD4A56a536926b6d
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Public Mint146058432022-04-17 23:51:47904 days ago1650239507IN
0xcff8b97b...536926b6d
0.1 ETH0.0011615826.5924307
Public Mint146058432022-04-17 23:51:47904 days ago1650239507IN
0xcff8b97b...536926b6d
0.1 ETH0.0011637626.6424307
Public Mint144465242022-03-24 3:15:28929 days ago1648091728IN
0xcff8b97b...536926b6d
0.1 ETH0.002029146.452706
Public Mint144132832022-03-18 23:13:01934 days ago1647645181IN
0xcff8b97b...536926b6d
0.1 ETH0.001827141.82847735
Public Mint144132832022-03-18 23:13:01934 days ago1647645181IN
0xcff8b97b...536926b6d
0.1 ETH0.0018344641.99679485
Public Mint144129002022-03-18 21:41:42934 days ago1647639702IN
0xcff8b97b...536926b6d
0.1 ETH0.001725739.51795681
Public Mint144129002022-03-18 21:41:42934 days ago1647639702IN
0xcff8b97b...536926b6d
0.1 ETH0.001725739.51795681
Withdraw All Via...144128602022-03-18 21:33:36934 days ago1647639216IN
0xcff8b97b...536926b6d
0 ETH0.002673166.77430373
Set Sale To Clos...144128442022-03-18 21:29:23934 days ago1647638963IN
0xcff8b97b...536926b6d
0 ETH0.002004669.92255112
Public Mint144128432022-03-18 21:28:50934 days ago1647638930IN
0xcff8b97b...536926b6d
0.1 ETH0.0027420162.77365927
Public Mint144128412022-03-18 21:27:56934 days ago1647638876IN
0xcff8b97b...536926b6d
0.1 ETH0.0027054861.9373521
Public Mint144128412022-03-18 21:27:56934 days ago1647638876IN
0xcff8b97b...536926b6d
0.1 ETH0.0027054861.9373521
Public Mint144128412022-03-18 21:27:56934 days ago1647638876IN
0xcff8b97b...536926b6d
0.1 ETH0.0027054861.9373521
Public Mint144128412022-03-18 21:27:56934 days ago1647638876IN
0xcff8b97b...536926b6d
0.1 ETH0.0027054861.9373521
Public Mint144128412022-03-18 21:27:56934 days ago1647638876IN
0xcff8b97b...536926b6d
0.1 ETH0.0027120362.0873521
Public Mint144128402022-03-18 21:27:00934 days ago1647638820IN
0xcff8b97b...536926b6d
0.1 ETH0.002412555.22997914
Public Mint144128402022-03-18 21:27:00934 days ago1647638820IN
0xcff8b97b...536926b6d
0.1 ETH0.0092024155.22997914
Public Mint144128402022-03-18 21:27:00934 days ago1647638820IN
0xcff8b97b...536926b6d
0.1 ETH0.0078632955.37997914
Public Mint144128372022-03-18 21:26:34934 days ago1647638794IN
0xcff8b97b...536926b6d
0.1 ETH0.0083957359.12157697
Public Mint144128372022-03-18 21:26:34934 days ago1647638794IN
0xcff8b97b...536926b6d
0.1 ETH0.0083952659.12157697
Public Mint144128352022-03-18 21:26:32934 days ago1647638792IN
0xcff8b97b...536926b6d
0.1 ETH0.0104649873.68671984
Public Mint144128352022-03-18 21:26:32934 days ago1647638792IN
0xcff8b97b...536926b6d
0.1 ETH0.0104626273.68671984
Public Mint144128342022-03-18 21:26:28934 days ago1647638788IN
0xcff8b97b...536926b6d
0.1 ETH0.0133308375.65738448
Public Mint144128342022-03-18 21:26:28934 days ago1647638788IN
0xcff8b97b...536926b6d
0.1 ETH0.0107448675.65738448
Public Mint144128342022-03-18 21:26:28934 days ago1647638788IN
0xcff8b97b...536926b6d
0.1 ETH0.0139450175.65738448
View all transactions

Latest 4 internal transactions

Advanced mode:
Parent Transaction Hash Block From To
144128602022-03-18 21:33:36934 days ago1647639216
0xcff8b97b...536926b6d
65.2 ETH
144058182022-03-17 19:15:08935 days ago1647544508
0xcff8b97b...536926b6d
0.2 ETH
142717102022-02-24 23:08:42956 days ago1645744122
0xcff8b97b...536926b6d
80 ETH
142704642022-02-24 18:38:34956 days ago1645727914
0xcff8b97b...536926b6d
0.2 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
FLUFDynamicMarketplace

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 20 runs

Other Settings:
default evmVersion
File 1 of 14 : FLUFDynamicMarketplace.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.4;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/token/ERC1155/utils/ERC1155Holder.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";

contract FLUFDynamicMarketplace is ERC1155Holder, ReentrancyGuard, Ownable {
  using ECDSA for bytes32;
  using MerkleProof for bytes32[];
  using Address for address;

  address public flufAddress;
  address public partybearsAddress;
  address public thingiesAddress;

  struct Sales {
    address contractAddress; // The contractAddresses
    uint256[] ids; // The tokenIds
    uint256[] amounts; // The quantity of each token to transfer
    uint256 price;
  }

  mapping(uint256 => Sales) public availableSales;
  uint256 public saleNonce = 0; // The nonce of the current sale, starts with 0;
  bytes32 private root; // Root of Merkle
  mapping(uint256 => mapping(bytes => bool)) public usedToken; // Whether the SALT Token has been consumed
  mapping(uint256 => mapping(address => bool)) public addressMinted; // Whether this address has already minted during this sale
  mapping(uint256 => mapping(address => bool)) private _mintedInBlock;

  enum State {
    Closed,
    PrivateSale,
    PublicSale
  }

  State private _state;
  address private _signer;

  constructor(
    address signer,
    bytes32 _newRoot,
    address _flufAddress,
    address _partybearsAddress,
    address _thingiesAddress
  ) {
    _signer = signer;
    root = _newRoot;
    flufAddress = _flufAddress;
    partybearsAddress = _partybearsAddress;
    thingiesAddress = _thingiesAddress;
  }

  function setSaleToClosed() public onlyOwner {
    _state = State.Closed;
  }

  function setSaleToPrivate() public onlyOwner {
    _state = State.PrivateSale;
  }

  function setSaleToPublic() public onlyOwner {
    _state = State.PublicSale;
  }

  function listNewSale(
    address _contractAddress,
    uint256[] memory _ids,
    uint256[] memory _amounts,
    uint256 _price
  ) public onlyOwner {
    saleNonce = saleNonce + 1;
    availableSales[saleNonce].contractAddress = _contractAddress;
    availableSales[saleNonce].ids = _ids;
    availableSales[saleNonce].amounts = _amounts;
    availableSales[saleNonce].price = _price;
  }

  function updateSaleNonce(uint256 _nonce) public onlyOwner {
    saleNonce = _nonce;
  }

  function updateSigner(address __signer) public onlyOwner {
    _signer = __signer;
  }

  function _hash(string calldata salt, address _address)
    public
    view
    returns (bytes32)
  {
    return keccak256(abi.encode(salt, address(this), _address));
  }

  function _verify(bytes32 hash, bytes memory token)
    public
    view
    returns (bool)
  {
    return (_recover(hash, token) == _signer);
  }

  function _recover(bytes32 hash, bytes memory token)
    public
    pure
    returns (address)
  {
    return hash.toEthSignedMessageHash().recover(token);
  }

  function setRoot(bytes32 _newRoot) public onlyOwner {
    root = _newRoot;
  }

  function grantTokens(address _to) internal {
    uint256[] memory ids = availableSales[saleNonce].ids;
    uint256[] memory amounts = availableSales[saleNonce].amounts;
    address contractAddress = availableSales[saleNonce].contractAddress;
    IERC1155(contractAddress).safeBatchTransferFrom(
      address(this),
      _to,
      ids,
      amounts,
      "0x0"
    );
  }

  function setFlufAddress(address _flufAddress) public onlyOwner {
    flufAddress = _flufAddress;
  }

  function setPartybearsAddress(address _partybearsAddress) public onlyOwner {
    partybearsAddress = _partybearsAddress;
  }

  function setThingiesAddress(address _thingiesAddress) public onlyOwner {
    thingiesAddress = _thingiesAddress;
  }

  function isEcosystemOwner(address _address) public view returns (bool) {
    uint256 fluf = IERC721(flufAddress).balanceOf(_address);
    if (fluf > 0) {
      return true;
    }
    uint256 pb = IERC721(partybearsAddress).balanceOf(_address);
    if (pb > 0) {
      return true;
    }
    uint256 thingies = IERC721(thingiesAddress).balanceOf(_address);
    if (thingies > 0) {
      return true;
    }
    return false;
  }

  function hasStock(uint256 _saleNonce) public view returns (bool) {
    uint256 bal = IERC1155(availableSales[_saleNonce].contractAddress)
      .balanceOf(address(this), availableSales[_saleNonce].ids[0]);
    if (bal > 0) {
      return true;
    } else {
      return false;
    }
  }

  function publicMint(string calldata salt, bytes calldata token)
    external
    payable
    nonReentrant
  {
    require(hasStock(saleNonce) == true, "Out of stock");
    require(_state == State.PublicSale, "Publicsale is not active");
    require(
      isEcosystemOwner(msg.sender) == true,
      "You dont own any of the ecosystem tokens"
    );
    require(msg.sender == tx.origin, "Mint from contract not allowed");
    require(
      !Address.isContract(msg.sender),
      "Contracts are not allowed to mint."
    );
    uint256 price = availableSales[saleNonce].price;
    require(msg.value >= price, "Ether value sent is incorrect.");
    require(!usedToken[saleNonce][token], "The token has been used.");
    require(_verify(_hash(salt, msg.sender), token), "Invalid token.");
    require(
      _mintedInBlock[block.number][msg.sender] == false,
      "already minted in this block"
    );
    usedToken[saleNonce][token] = true;
    _mintedInBlock[block.number][msg.sender] = true;
    grantTokens(msg.sender);
  }

  function privateMint(bytes32[] memory _proof) external payable nonReentrant {
    require(hasStock(saleNonce) == true, "Out of stock");
    require(_state == State.PrivateSale, "Private Sale is not active.");
    require(msg.sender == tx.origin, "Mint from contract not allowed");
    require(
      !Address.isContract(msg.sender),
      "Contracts are not allowed to mint."
    );
    uint256 price = availableSales[saleNonce].price;
    require(msg.value >= price, "Ether value sent is incorrect.");
    require(
      !addressMinted[saleNonce][msg.sender],
      "This address has already minted during private sale."
    );

    bytes32 leaf = keccak256(abi.encodePacked(msg.sender));
    require(_proof.verify(root, leaf), "invalid proof");

    addressMinted[saleNonce][msg.sender] = true;

    grantTokens(msg.sender);
  }

  function withdrawAll(address recipient) public onlyOwner {
    uint256 balance = address(this).balance;
    payable(recipient).transfer(balance);
  }

  function withdrawAllViaCall(address payable _to) public onlyOwner {
    uint256 balance = address(this).balance;
    (bool sent, bytes memory data) = _to.call{value: balance}("");
    require(sent, "Failed to send Ether");
  }

  function emergencyWithdrawTokens(
    address _to,
    uint256[] memory ids,
    uint256[] memory amounts,
    address contractAddress
  ) public onlyOwner {
    IERC1155(contractAddress).safeBatchTransferFrom(
      address(this),
      _to,
      ids,
      amounts,
      "0x0"
    );
  }
}

File 2 of 14 : IERC165.sol
// SPDX-License-Identifier: MIT

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 3 of 14 : ERC165.sol
// SPDX-License-Identifier: MIT

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 4 of 14 : MerkleProof.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

        for (uint256 i = 0; i < proof.length; i++) {
            bytes32 proofElement = proof[i];

            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = keccak256(abi.encodePacked(computedHash, proofElement));
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = keccak256(abi.encodePacked(proofElement, computedHash));
            }
        }

        // Check if the computed hash (root) is equal to the provided root
        return computedHash == root;
    }
}

File 5 of 14 : ECDSA.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

        return (signer, RecoverError.NoError);
    }

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

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

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

File 6 of 14 : Context.sol
// SPDX-License-Identifier: MIT

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 7 of 14 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 8 of 14 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 9 of 14 : ERC1155Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC1155Receiver.sol";
import "../../../utils/introspection/ERC165.sol";

/**
 * @dev _Available since v3.1._
 */
abstract contract ERC1155Receiver is ERC165, IERC1155Receiver {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
        return interfaceId == type(IERC1155Receiver).interfaceId || super.supportsInterface(interfaceId);
    }
}

File 10 of 14 : ERC1155Holder.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./ERC1155Receiver.sol";

/**
 * @dev _Available since v3.1._
 */
contract ERC1155Holder is ERC1155Receiver {
    function onERC1155Received(
        address,
        address,
        uint256,
        uint256,
        bytes memory
    ) public virtual override returns (bytes4) {
        return this.onERC1155Received.selector;
    }

    function onERC1155BatchReceived(
        address,
        address,
        uint256[] memory,
        uint256[] memory,
        bytes memory
    ) public virtual override returns (bytes4) {
        return this.onERC1155BatchReceived.selector;
    }
}

File 11 of 14 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

File 12 of 14 : IERC1155.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

File 13 of 14 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

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 make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

        _;

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

File 14 of 14 : Ownable.sol
// SPDX-License-Identifier: MIT

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() {
        _setOwner(_msgSender());
    }

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

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

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _setOwner(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");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"signer","type":"address"},{"internalType":"bytes32","name":"_newRoot","type":"bytes32"},{"internalType":"address","name":"_flufAddress","type":"address"},{"internalType":"address","name":"_partybearsAddress","type":"address"},{"internalType":"address","name":"_thingiesAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"string","name":"salt","type":"string"},{"internalType":"address","name":"_address","type":"address"}],"name":"_hash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"hash","type":"bytes32"},{"internalType":"bytes","name":"token","type":"bytes"}],"name":"_recover","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"bytes32","name":"hash","type":"bytes32"},{"internalType":"bytes","name":"token","type":"bytes"}],"name":"_verify","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"addressMinted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"availableSales","outputs":[{"internalType":"address","name":"contractAddress","type":"address"},{"internalType":"uint256","name":"price","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"address","name":"contractAddress","type":"address"}],"name":"emergencyWithdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flufAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_saleNonce","type":"uint256"}],"name":"hasStock","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"isEcosystemOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_contractAddress","type":"address"},{"internalType":"uint256[]","name":"_ids","type":"uint256[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"},{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"listNewSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155BatchReceived","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"partybearsAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"}],"name":"privateMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"string","name":"salt","type":"string"},{"internalType":"bytes","name":"token","type":"bytes"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleNonce","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_flufAddress","type":"address"}],"name":"setFlufAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_partybearsAddress","type":"address"}],"name":"setPartybearsAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_newRoot","type":"bytes32"}],"name":"setRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setSaleToClosed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setSaleToPrivate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setSaleToPublic","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_thingiesAddress","type":"address"}],"name":"setThingiesAddress","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":"thingiesAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_nonce","type":"uint256"}],"name":"updateSaleNonce","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"__signer","type":"address"}],"name":"updateSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"usedToken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"}],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_to","type":"address"}],"name":"withdrawAllViaCall","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405260006006553480156200001657600080fd5b50604051620026723803806200267283398101604081905262000039916200011a565b60016000556200004933620000ab565b600b80546001600160a01b0396871661010002610100600160a81b0319909116179055600793909355600280549285166001600160a01b0319938416179055600380549185169183169190911790556004805492909316911617905562000180565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b80516001600160a01b03811681146200011557600080fd5b919050565b600080600080600060a0868803121562000132578081fd5b6200013d86620000fd565b9450602086015193506200015460408701620000fd565b92506200016460608701620000fd565b91506200017460808701620000fd565b90509295509295909350565b6124e280620001906000396000f3fe60806040526004361061018e5760003560e01c8063a9c5f188116100dd578063a9c5f188146103c0578063aacd6f94146103e4578063aad310ae14610404578063bc197c8114610424578063c2669e3b14610469578063cdd366b114610489578063cfa8ba4f146104a9578063da211e39146104c9578063dab5f340146104e9578063ec8ba2d914610509578063ed7ba4bc14610529578063f23a6e6114610549578063f2fde38b14610575578063f4a6680814610595578063f7a7d35e146105d0578063fa09e630146105f0578063fbe2525f1461061057600080fd5b806301ffc9a7146101935780630bb3de85146101c8578063265d3e97146101df578063399853dd1461020c57806342f5d95d14610258578063450500ec1461026b5780634833be10146102b957806350582344146102d95780636edc457b146102f9578063715018a6146103195780638983de571461032e5780638da5cb5b14610343578063a4ca884914610358578063a7ecd37e1461036b578063a83ae1721461038b578063a905821a146103a0575b600080fd5b34801561019f57600080fd5b506101b36101ae366004612053565b610630565b60405190151581526020015b60405180910390f35b3480156101d457600080fd5b506101dd610667565b005b3480156101eb57600080fd5b506101ff6101fa36600461200f565b6106b5565b6040516101bf91906121c8565b34801561021857600080fd5b506101b361022736600461200f565b6008602090815260009283526040909220815180830184018051928152908401929093019190912091525460ff1681565b6101dd6102663660046120cf565b61071e565b34801561027757600080fd5b506102ab610286366004611ff7565b600560205260009081526040902080546003909101546001600160a01b039091169082565b6040516101bf929190612243565b3480156102c557600080fd5b506003546101ff906001600160a01b031681565b3480156102e557600080fd5b506101dd6102f4366004611d3b565b610aaa565b34801561030557600080fd5b506002546101ff906001600160a01b031681565b34801561032557600080fd5b506101dd610afb565b34801561033a57600080fd5b506101dd610b36565b34801561034f57600080fd5b506101ff610b79565b6101dd610366366004611f65565b610b88565b34801561037757600080fd5b506101dd610386366004611d3b565b610e0e565b34801561039757600080fd5b506101dd610e65565b3480156103ac57600080fd5b506101dd6103bb366004611d3b565b610ea8565b3480156103cc57600080fd5b506103d660065481565b6040519081526020016101bf565b3480156103f057600080fd5b506101dd6103ff366004611e66565b610f7a565b34801561041057600080fd5b506004546101ff906001600160a01b031681565b34801561043057600080fd5b5061045061043f366004611d57565b63bc197c8160e01b95945050505050565b6040516001600160e01b031990911681526020016101bf565b34801561047557600080fd5b506101dd610484366004611d3b565b611013565b34801561049557600080fd5b506101dd6104a4366004611d3b565b611064565b3480156104b557600080fd5b506101b36104c436600461200f565b6110b5565b3480156104d557600080fd5b506101b36104e4366004611d3b565b6110e4565b3480156104f557600080fd5b506101dd610504366004611ff7565b6112ad565b34801561051557600080fd5b506103d661052436600461207b565b6112e1565b34801561053557600080fd5b506101dd610544366004611eeb565b611319565b34801561055557600080fd5b50610450610564366004611e00565b63f23a6e6160e01b95945050505050565b34801561058157600080fd5b506101dd610590366004611d3b565b6113e4565b3480156105a157600080fd5b506101b36105b036600461214f565b600960209081526000928352604080842090915290825290205460ff1681565b3480156105dc57600080fd5b506101dd6105eb366004611ff7565b611484565b3480156105fc57600080fd5b506101dd61060b366004611d3b565b6114b8565b34801561061c57600080fd5b506101b361062b366004611ff7565b611524565b60006001600160e01b03198216630271189760e51b148061066157506301ffc9a760e01b6001600160e01b03198316145b92915050565b33610670610b79565b6001600160a01b03161461069f5760405162461bcd60e51b815260040161069690612300565b60405180910390fd5b600b80546001919060ff191682805b0217905550565b600061071782610711856040517b0ca2ba3432b932bab69029b4b3b732b21026b2b9b9b0b3b29d05199960211b6020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b906115fd565b9392505050565b600260005414156107415760405162461bcd60e51b8152600401610696906123ae565b600260005560065461075290611524565b15156001146107735760405162461bcd60e51b8152600401610696906122da565b6002600b5460ff16600281111561079a57634e487b7160e01b600052602160045260246000fd5b146107e25760405162461bcd60e51b81526020600482015260186024820152775075626c696373616c65206973206e6f742061637469766560401b6044820152606401610696565b6107eb336110e4565b151560011461084d5760405162461bcd60e51b815260206004820152602860248201527f596f7520646f6e74206f776e20616e79206f66207468652065636f73797374656044820152676d20746f6b656e7360c01b6064820152608401610696565b33321461086c5760405162461bcd60e51b8152600401610696906122a3565b333b1561088b5760405162461bcd60e51b81526004016106969061236c565b600654600090815260056020526040902060030154348111156108c05760405162461bcd60e51b815260040161069690612335565b6006546000908152600860205260409081902090516108e290859085906121b8565b9081526040519081900360200190205460ff161561093d5760405162461bcd60e51b81526020600482015260186024820152772a3432903a37b5b2b7103430b9903132b2b7103ab9b2b21760411b6044820152606401610696565b61098761094b8686336112e1565b84848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506110b592505050565b6109c45760405162461bcd60e51b815260206004820152600e60248201526d24b73b30b634b2103a37b5b2b71760911b6044820152606401610696565b436000908152600a6020908152604080832033845290915290205460ff1615610a2e5760405162461bcd60e51b815260206004820152601c60248201527b616c7265616479206d696e74656420696e207468697320626c6f636b60201b6044820152606401610696565b60016008600060065481526020019081526020016000208484604051610a559291906121b8565b90815260408051918290036020908101909220805493151560ff19948516179055436000908152600a8352818120338083529352208054909216600117909155610a9e90611621565b50506001600055505050565b33610ab3610b79565b6001600160a01b031614610ad95760405162461bcd60e51b815260040161069690612300565b600480546001600160a01b0319166001600160a01b0392909216919091179055565b33610b04610b79565b6001600160a01b031614610b2a5760405162461bcd60e51b815260040161069690612300565b610b346000611736565b565b33610b3f610b79565b6001600160a01b031614610b655760405162461bcd60e51b815260040161069690612300565b600b80546000919060ff19166001836106ae565b6001546001600160a01b031690565b60026000541415610bab5760405162461bcd60e51b8152600401610696906123ae565b6002600055600654610bbc90611524565b1515600114610bdd5760405162461bcd60e51b8152600401610696906122da565b6001600b5460ff166002811115610c0457634e487b7160e01b600052602160045260246000fd5b14610c4f5760405162461bcd60e51b815260206004820152601b60248201527a283934bb30ba329029b0b6329034b9903737ba1030b1ba34bb329760291b6044820152606401610696565b333214610c6e5760405162461bcd60e51b8152600401610696906122a3565b333b15610c8d5760405162461bcd60e51b81526004016106969061236c565b60065460009081526005602052604090206003015434811115610cc25760405162461bcd60e51b815260040161069690612335565b600654600090815260096020908152604080832033845290915290205460ff1615610d4c5760405162461bcd60e51b815260206004820152603460248201527f5468697320616464726573732068617320616c7265616479206d696e74656420604482015273323ab934b73390383934bb30ba329039b0b6329760611b6064820152608401610696565b6040516001600160601b03193360601b166020820152600090603401604051602081830303815290604052805190602001209050610d9760075482856117889092919063ffffffff16565b610dd35760405162461bcd60e51b815260206004820152600d60248201526c34b73b30b634b210383937b7b360991b6044820152606401610696565b6006546000908152600960209081526040808320338085529252909120805460ff19166001179055610e0490611621565b5050600160005550565b33610e17610b79565b6001600160a01b031614610e3d5760405162461bcd60e51b815260040161069690612300565b600b80546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b33610e6e610b79565b6001600160a01b031614610e945760405162461bcd60e51b815260040161069690612300565b600b80546002919060ff19166001836106ae565b33610eb1610b79565b6001600160a01b031614610ed75760405162461bcd60e51b815260040161069690612300565b604051479060009081906001600160a01b0385169084908381818185875af1925050503d8060008114610f26576040519150601f19603f3d011682016040523d82523d6000602084013e610f2b565b606091505b509150915081610f745760405162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b7321022ba3432b960611b6044820152606401610696565b50505050565b33610f83610b79565b6001600160a01b031614610fa95760405162461bcd60e51b815260040161069690612300565b604051631759616b60e11b81526001600160a01b03821690632eb2c2d690610fdb9030908890889088906004016121dc565b600060405180830381600087803b158015610ff557600080fd5b505af1158015611009573d6000803e3d6000fd5b5050505050505050565b3361101c610b79565b6001600160a01b0316146110425760405162461bcd60e51b815260040161069690612300565b600380546001600160a01b0319166001600160a01b0392909216919091179055565b3361106d610b79565b6001600160a01b0316146110935760405162461bcd60e51b815260040161069690612300565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b600b5460009061010090046001600160a01b03166110d384846106b5565b6001600160a01b0316149392505050565b6002546040516370a0823160e01b815260009182916001600160a01b03909116906370a08231906111199086906004016121c8565b60206040518083038186803b15801561113157600080fd5b505afa158015611145573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111699190612137565b9050801561117a5750600192915050565b6003546040516370a0823160e01b81526000916001600160a01b0316906370a08231906111ab9087906004016121c8565b60206040518083038186803b1580156111c357600080fd5b505afa1580156111d7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111fb9190612137565b9050801561120d575060019392505050565b600480546040516370a0823160e01b81526000926001600160a01b03909216916370a082319161123f918991016121c8565b60206040518083038186803b15801561125757600080fd5b505afa15801561126b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061128f9190612137565b905080156112a257506001949350505050565b506000949350505050565b336112b6610b79565b6001600160a01b0316146112dc5760405162461bcd60e51b815260040161069690612300565b600755565b6000838330846040516020016112fa949392919061225c565b6040516020818303038152906040528051906020012090509392505050565b33611322610b79565b6001600160a01b0316146113485760405162461bcd60e51b815260040161069690612300565b600654611356906001612438565b6006818155600091825260056020908152604080842080546001600160a01b0319166001600160a01b038a1617905591548352912084516113a09260019290920191860190611bc3565b50600654600090815260056020908152604090912083516113c992600290920191850190611bc3565b50600654600090815260056020526040902060030155505050565b336113ed610b79565b6001600160a01b0316146114135760405162461bcd60e51b815260040161069690612300565b6001600160a01b0381166114785760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610696565b61148181611736565b50565b3361148d610b79565b6001600160a01b0316146114b35760405162461bcd60e51b815260040161069690612300565b600655565b336114c1610b79565b6001600160a01b0316146114e75760405162461bcd60e51b815260040161069690612300565b60405147906001600160a01b0383169082156108fc029083906000818181858888f1935050505015801561151f573d6000803e3d6000fd5b505050565b600081815260056020526040812080546001909101805483926001600160a01b03169162fdd58e91309190859061156b57634e487b7160e01b600052603260045260246000fd5b90600052602060002001546040518363ffffffff1660e01b8152600401611593929190612243565b60206040518083038186803b1580156115ab57600080fd5b505afa1580156115bf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115e39190612137565b905080156115f45750600192915050565b50600092915050565b600080600061160c8585611845565b91509150611619816118b5565b509392505050565b60065460009081526005602090815260408083206001018054825181850281018501909352808352919290919083018282801561167d57602002820191906000526020600020905b815481526020019060010190808311611669575b5050505050905060006005600060065481526020019081526020016000206002018054806020026020016040519081016040528092919081815260200182805480156116e857602002820191906000526020600020905b8154815260200190600101908083116116d4575b505060065460009081526005602052604090819020549051631759616b60e11b81529495506001600160a01b031693849350632eb2c2d69250610fdb915030908890889088906004016121dc565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600081815b855181101561183a5760008682815181106117b857634e487b7160e01b600052603260045260246000fd5b602002602001015190508083116117fa576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250611827565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b508061183281612450565b91505061178d565b509092149392505050565b60008082516041141561187c5760208301516040840151606085015160001a61187087828585611ab1565b945094505050506118ae565b8251604014156118a6576020830151604084015161189b868383611b94565b9350935050506118ae565b506000905060025b9250929050565b60008160048111156118d757634e487b7160e01b600052602160045260246000fd5b14156118e05750565b600181600481111561190257634e487b7160e01b600052602160045260246000fd5b141561194b5760405162461bcd60e51b815260206004820152601860248201527745434453413a20696e76616c6964207369676e617475726560401b6044820152606401610696565b600281600481111561196d57634e487b7160e01b600052602160045260246000fd5b14156119bb5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610696565b60038160048111156119dd57634e487b7160e01b600052602160045260246000fd5b1415611a365760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610696565b6004816004811115611a5857634e487b7160e01b600052602160045260246000fd5b14156114815760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610696565b6000806fa2a8918ca85bafe22016d0b997e4df60600160ff1b03831115611ade5750600090506003611b8b565b8460ff16601b14158015611af657508460ff16601c14155b15611b075750600090506004611b8b565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015611b5b573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116611b8457600060019250925050611b8b565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b01611bb587828885611ab1565b935093505050935093915050565b828054828255906000526020600020908101928215611bfe579160200282015b82811115611bfe578251825591602001919060010190611be3565b50611c0a929150611c0e565b5090565b5b80821115611c0a5760008155600101611c0f565b600082601f830112611c33578081fd5b81356020611c48611c4383612415565b6123e5565b80838252828201915082860187848660051b8901011115611c67578586fd5b855b85811015611c8557813584529284019290840190600101611c69565b5090979650505050505050565b60008083601f840112611ca3578182fd5b5081356001600160401b03811115611cb9578182fd5b6020830191508360208285010111156118ae57600080fd5b600082601f830112611ce1578081fd5b81356001600160401b03811115611cfa57611cfa612481565b611d0d601f8201601f19166020016123e5565b818152846020838601011115611d21578283fd5b816020850160208301379081016020019190915292915050565b600060208284031215611d4c578081fd5b813561071781612497565b600080600080600060a08688031215611d6e578081fd5b8535611d7981612497565b94506020860135611d8981612497565b935060408601356001600160401b0380821115611da4578283fd5b611db089838a01611c23565b94506060880135915080821115611dc5578283fd5b611dd189838a01611c23565b93506080880135915080821115611de6578283fd5b50611df388828901611cd1565b9150509295509295909350565b600080600080600060a08688031215611e17578081fd5b8535611e2281612497565b94506020860135611e3281612497565b9350604086013592506060860135915060808601356001600160401b03811115611e5a578182fd5b611df388828901611cd1565b60008060008060808587031215611e7b578384fd5b8435611e8681612497565b935060208501356001600160401b0380821115611ea1578485fd5b611ead88838901611c23565b94506040870135915080821115611ec2578384fd5b50611ecf87828801611c23565b9250506060850135611ee081612497565b939692955090935050565b60008060008060808587031215611f00578384fd5b8435611f0b81612497565b935060208501356001600160401b0380821115611f26578485fd5b611f3288838901611c23565b94506040870135915080821115611f47578384fd5b50611f5487828801611c23565b949793965093946060013593505050565b60006020808385031215611f77578182fd5b82356001600160401b03811115611f8c578283fd5b8301601f81018513611f9c578283fd5b8035611faa611c4382612415565b80828252848201915084840188868560051b8701011115611fc9578687fd5b8694505b83851015611feb578035835260019490940193918501918501611fcd565b50979650505050505050565b600060208284031215612008578081fd5b5035919050565b60008060408385031215612021578182fd5b8235915060208301356001600160401b0381111561203d578182fd5b61204985828601611cd1565b9150509250929050565b600060208284031215612064578081fd5b81356001600160e01b031981168114610717578182fd5b60008060006040848603121561208f578081fd5b83356001600160401b038111156120a4578182fd5b6120b086828701611c92565b90945092505060208401356120c481612497565b809150509250925092565b600080600080604085870312156120e4578182fd5b84356001600160401b03808211156120fa578384fd5b61210688838901611c92565b9096509450602087013591508082111561211e578384fd5b5061212b87828801611c92565b95989497509550505050565b600060208284031215612148578081fd5b5051919050565b60008060408385031215612161578182fd5b82359150602083013561217381612497565b809150509250929050565b6000815180845260208085019450808401835b838110156121ad57815187529582019590820190600101612191565b509495945050505050565b8183823760009101908152919050565b6001600160a01b0391909116815260200190565b6001600160a01b0385811682528416602082015260a0604082018190526000906122089083018561217e565b828103606084015261221a818561217e565b8381036080909401939093525050600381526203078360ec1b6020820152604001949350505050565b6001600160a01b03929092168252602082015260400190565b6060815283606082015283856080830137600060808583018101919091526001600160a01b039384166020830152919092166040830152601f909201601f19160101919050565b6020808252601e908201527f4d696e742066726f6d20636f6e7472616374206e6f7420616c6c6f7765640000604082015260600190565b6020808252600c908201526b4f7574206f662073746f636b60a01b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601e908201527f45746865722076616c75652073656e7420697320696e636f72726563742e0000604082015260600190565b60208082526022908201527f436f6e74726163747320617265206e6f7420616c6c6f77656420746f206d696e6040820152613a1760f11b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b604051601f8201601f191681016001600160401b038111828210171561240d5761240d612481565b604052919050565b60006001600160401b0382111561242e5761242e612481565b5060051b60200190565b6000821982111561244b5761244b61246b565b500190565b60006000198214156124645761246461246b565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461148157600080fdfea2646970667358221220be83e0732efde7f240a0b8e016c49635c63c8899d984a8b7922009e13f87602c64736f6c634300080400330000000000000000000000006f61066b740e013ee7a2f2daf975c4b64b70cd941b4cb6d116e40dcbb3ca6fd50f852bb591b69696385ccc28d49c43dd6640560b000000000000000000000000ccc441ac31f02cd96c153db6fd5fe0a2f4e6a68d00000000000000000000000035471f47c3c0bc5fc75025b97a19ecdde00f78f80000000000000000000000001afef6b252cc35ec061efe6a9676c90915a73f18

Deployed Bytecode

0x60806040526004361061018e5760003560e01c8063a9c5f188116100dd578063a9c5f188146103c0578063aacd6f94146103e4578063aad310ae14610404578063bc197c8114610424578063c2669e3b14610469578063cdd366b114610489578063cfa8ba4f146104a9578063da211e39146104c9578063dab5f340146104e9578063ec8ba2d914610509578063ed7ba4bc14610529578063f23a6e6114610549578063f2fde38b14610575578063f4a6680814610595578063f7a7d35e146105d0578063fa09e630146105f0578063fbe2525f1461061057600080fd5b806301ffc9a7146101935780630bb3de85146101c8578063265d3e97146101df578063399853dd1461020c57806342f5d95d14610258578063450500ec1461026b5780634833be10146102b957806350582344146102d95780636edc457b146102f9578063715018a6146103195780638983de571461032e5780638da5cb5b14610343578063a4ca884914610358578063a7ecd37e1461036b578063a83ae1721461038b578063a905821a146103a0575b600080fd5b34801561019f57600080fd5b506101b36101ae366004612053565b610630565b60405190151581526020015b60405180910390f35b3480156101d457600080fd5b506101dd610667565b005b3480156101eb57600080fd5b506101ff6101fa36600461200f565b6106b5565b6040516101bf91906121c8565b34801561021857600080fd5b506101b361022736600461200f565b6008602090815260009283526040909220815180830184018051928152908401929093019190912091525460ff1681565b6101dd6102663660046120cf565b61071e565b34801561027757600080fd5b506102ab610286366004611ff7565b600560205260009081526040902080546003909101546001600160a01b039091169082565b6040516101bf929190612243565b3480156102c557600080fd5b506003546101ff906001600160a01b031681565b3480156102e557600080fd5b506101dd6102f4366004611d3b565b610aaa565b34801561030557600080fd5b506002546101ff906001600160a01b031681565b34801561032557600080fd5b506101dd610afb565b34801561033a57600080fd5b506101dd610b36565b34801561034f57600080fd5b506101ff610b79565b6101dd610366366004611f65565b610b88565b34801561037757600080fd5b506101dd610386366004611d3b565b610e0e565b34801561039757600080fd5b506101dd610e65565b3480156103ac57600080fd5b506101dd6103bb366004611d3b565b610ea8565b3480156103cc57600080fd5b506103d660065481565b6040519081526020016101bf565b3480156103f057600080fd5b506101dd6103ff366004611e66565b610f7a565b34801561041057600080fd5b506004546101ff906001600160a01b031681565b34801561043057600080fd5b5061045061043f366004611d57565b63bc197c8160e01b95945050505050565b6040516001600160e01b031990911681526020016101bf565b34801561047557600080fd5b506101dd610484366004611d3b565b611013565b34801561049557600080fd5b506101dd6104a4366004611d3b565b611064565b3480156104b557600080fd5b506101b36104c436600461200f565b6110b5565b3480156104d557600080fd5b506101b36104e4366004611d3b565b6110e4565b3480156104f557600080fd5b506101dd610504366004611ff7565b6112ad565b34801561051557600080fd5b506103d661052436600461207b565b6112e1565b34801561053557600080fd5b506101dd610544366004611eeb565b611319565b34801561055557600080fd5b50610450610564366004611e00565b63f23a6e6160e01b95945050505050565b34801561058157600080fd5b506101dd610590366004611d3b565b6113e4565b3480156105a157600080fd5b506101b36105b036600461214f565b600960209081526000928352604080842090915290825290205460ff1681565b3480156105dc57600080fd5b506101dd6105eb366004611ff7565b611484565b3480156105fc57600080fd5b506101dd61060b366004611d3b565b6114b8565b34801561061c57600080fd5b506101b361062b366004611ff7565b611524565b60006001600160e01b03198216630271189760e51b148061066157506301ffc9a760e01b6001600160e01b03198316145b92915050565b33610670610b79565b6001600160a01b03161461069f5760405162461bcd60e51b815260040161069690612300565b60405180910390fd5b600b80546001919060ff191682805b0217905550565b600061071782610711856040517b0ca2ba3432b932bab69029b4b3b732b21026b2b9b9b0b3b29d05199960211b6020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b906115fd565b9392505050565b600260005414156107415760405162461bcd60e51b8152600401610696906123ae565b600260005560065461075290611524565b15156001146107735760405162461bcd60e51b8152600401610696906122da565b6002600b5460ff16600281111561079a57634e487b7160e01b600052602160045260246000fd5b146107e25760405162461bcd60e51b81526020600482015260186024820152775075626c696373616c65206973206e6f742061637469766560401b6044820152606401610696565b6107eb336110e4565b151560011461084d5760405162461bcd60e51b815260206004820152602860248201527f596f7520646f6e74206f776e20616e79206f66207468652065636f73797374656044820152676d20746f6b656e7360c01b6064820152608401610696565b33321461086c5760405162461bcd60e51b8152600401610696906122a3565b333b1561088b5760405162461bcd60e51b81526004016106969061236c565b600654600090815260056020526040902060030154348111156108c05760405162461bcd60e51b815260040161069690612335565b6006546000908152600860205260409081902090516108e290859085906121b8565b9081526040519081900360200190205460ff161561093d5760405162461bcd60e51b81526020600482015260186024820152772a3432903a37b5b2b7103430b9903132b2b7103ab9b2b21760411b6044820152606401610696565b61098761094b8686336112e1565b84848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506110b592505050565b6109c45760405162461bcd60e51b815260206004820152600e60248201526d24b73b30b634b2103a37b5b2b71760911b6044820152606401610696565b436000908152600a6020908152604080832033845290915290205460ff1615610a2e5760405162461bcd60e51b815260206004820152601c60248201527b616c7265616479206d696e74656420696e207468697320626c6f636b60201b6044820152606401610696565b60016008600060065481526020019081526020016000208484604051610a559291906121b8565b90815260408051918290036020908101909220805493151560ff19948516179055436000908152600a8352818120338083529352208054909216600117909155610a9e90611621565b50506001600055505050565b33610ab3610b79565b6001600160a01b031614610ad95760405162461bcd60e51b815260040161069690612300565b600480546001600160a01b0319166001600160a01b0392909216919091179055565b33610b04610b79565b6001600160a01b031614610b2a5760405162461bcd60e51b815260040161069690612300565b610b346000611736565b565b33610b3f610b79565b6001600160a01b031614610b655760405162461bcd60e51b815260040161069690612300565b600b80546000919060ff19166001836106ae565b6001546001600160a01b031690565b60026000541415610bab5760405162461bcd60e51b8152600401610696906123ae565b6002600055600654610bbc90611524565b1515600114610bdd5760405162461bcd60e51b8152600401610696906122da565b6001600b5460ff166002811115610c0457634e487b7160e01b600052602160045260246000fd5b14610c4f5760405162461bcd60e51b815260206004820152601b60248201527a283934bb30ba329029b0b6329034b9903737ba1030b1ba34bb329760291b6044820152606401610696565b333214610c6e5760405162461bcd60e51b8152600401610696906122a3565b333b15610c8d5760405162461bcd60e51b81526004016106969061236c565b60065460009081526005602052604090206003015434811115610cc25760405162461bcd60e51b815260040161069690612335565b600654600090815260096020908152604080832033845290915290205460ff1615610d4c5760405162461bcd60e51b815260206004820152603460248201527f5468697320616464726573732068617320616c7265616479206d696e74656420604482015273323ab934b73390383934bb30ba329039b0b6329760611b6064820152608401610696565b6040516001600160601b03193360601b166020820152600090603401604051602081830303815290604052805190602001209050610d9760075482856117889092919063ffffffff16565b610dd35760405162461bcd60e51b815260206004820152600d60248201526c34b73b30b634b210383937b7b360991b6044820152606401610696565b6006546000908152600960209081526040808320338085529252909120805460ff19166001179055610e0490611621565b5050600160005550565b33610e17610b79565b6001600160a01b031614610e3d5760405162461bcd60e51b815260040161069690612300565b600b80546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b33610e6e610b79565b6001600160a01b031614610e945760405162461bcd60e51b815260040161069690612300565b600b80546002919060ff19166001836106ae565b33610eb1610b79565b6001600160a01b031614610ed75760405162461bcd60e51b815260040161069690612300565b604051479060009081906001600160a01b0385169084908381818185875af1925050503d8060008114610f26576040519150601f19603f3d011682016040523d82523d6000602084013e610f2b565b606091505b509150915081610f745760405162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b7321022ba3432b960611b6044820152606401610696565b50505050565b33610f83610b79565b6001600160a01b031614610fa95760405162461bcd60e51b815260040161069690612300565b604051631759616b60e11b81526001600160a01b03821690632eb2c2d690610fdb9030908890889088906004016121dc565b600060405180830381600087803b158015610ff557600080fd5b505af1158015611009573d6000803e3d6000fd5b5050505050505050565b3361101c610b79565b6001600160a01b0316146110425760405162461bcd60e51b815260040161069690612300565b600380546001600160a01b0319166001600160a01b0392909216919091179055565b3361106d610b79565b6001600160a01b0316146110935760405162461bcd60e51b815260040161069690612300565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b600b5460009061010090046001600160a01b03166110d384846106b5565b6001600160a01b0316149392505050565b6002546040516370a0823160e01b815260009182916001600160a01b03909116906370a08231906111199086906004016121c8565b60206040518083038186803b15801561113157600080fd5b505afa158015611145573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111699190612137565b9050801561117a5750600192915050565b6003546040516370a0823160e01b81526000916001600160a01b0316906370a08231906111ab9087906004016121c8565b60206040518083038186803b1580156111c357600080fd5b505afa1580156111d7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111fb9190612137565b9050801561120d575060019392505050565b600480546040516370a0823160e01b81526000926001600160a01b03909216916370a082319161123f918991016121c8565b60206040518083038186803b15801561125757600080fd5b505afa15801561126b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061128f9190612137565b905080156112a257506001949350505050565b506000949350505050565b336112b6610b79565b6001600160a01b0316146112dc5760405162461bcd60e51b815260040161069690612300565b600755565b6000838330846040516020016112fa949392919061225c565b6040516020818303038152906040528051906020012090509392505050565b33611322610b79565b6001600160a01b0316146113485760405162461bcd60e51b815260040161069690612300565b600654611356906001612438565b6006818155600091825260056020908152604080842080546001600160a01b0319166001600160a01b038a1617905591548352912084516113a09260019290920191860190611bc3565b50600654600090815260056020908152604090912083516113c992600290920191850190611bc3565b50600654600090815260056020526040902060030155505050565b336113ed610b79565b6001600160a01b0316146114135760405162461bcd60e51b815260040161069690612300565b6001600160a01b0381166114785760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610696565b61148181611736565b50565b3361148d610b79565b6001600160a01b0316146114b35760405162461bcd60e51b815260040161069690612300565b600655565b336114c1610b79565b6001600160a01b0316146114e75760405162461bcd60e51b815260040161069690612300565b60405147906001600160a01b0383169082156108fc029083906000818181858888f1935050505015801561151f573d6000803e3d6000fd5b505050565b600081815260056020526040812080546001909101805483926001600160a01b03169162fdd58e91309190859061156b57634e487b7160e01b600052603260045260246000fd5b90600052602060002001546040518363ffffffff1660e01b8152600401611593929190612243565b60206040518083038186803b1580156115ab57600080fd5b505afa1580156115bf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115e39190612137565b905080156115f45750600192915050565b50600092915050565b600080600061160c8585611845565b91509150611619816118b5565b509392505050565b60065460009081526005602090815260408083206001018054825181850281018501909352808352919290919083018282801561167d57602002820191906000526020600020905b815481526020019060010190808311611669575b5050505050905060006005600060065481526020019081526020016000206002018054806020026020016040519081016040528092919081815260200182805480156116e857602002820191906000526020600020905b8154815260200190600101908083116116d4575b505060065460009081526005602052604090819020549051631759616b60e11b81529495506001600160a01b031693849350632eb2c2d69250610fdb915030908890889088906004016121dc565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600081815b855181101561183a5760008682815181106117b857634e487b7160e01b600052603260045260246000fd5b602002602001015190508083116117fa576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250611827565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b508061183281612450565b91505061178d565b509092149392505050565b60008082516041141561187c5760208301516040840151606085015160001a61187087828585611ab1565b945094505050506118ae565b8251604014156118a6576020830151604084015161189b868383611b94565b9350935050506118ae565b506000905060025b9250929050565b60008160048111156118d757634e487b7160e01b600052602160045260246000fd5b14156118e05750565b600181600481111561190257634e487b7160e01b600052602160045260246000fd5b141561194b5760405162461bcd60e51b815260206004820152601860248201527745434453413a20696e76616c6964207369676e617475726560401b6044820152606401610696565b600281600481111561196d57634e487b7160e01b600052602160045260246000fd5b14156119bb5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610696565b60038160048111156119dd57634e487b7160e01b600052602160045260246000fd5b1415611a365760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610696565b6004816004811115611a5857634e487b7160e01b600052602160045260246000fd5b14156114815760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610696565b6000806fa2a8918ca85bafe22016d0b997e4df60600160ff1b03831115611ade5750600090506003611b8b565b8460ff16601b14158015611af657508460ff16601c14155b15611b075750600090506004611b8b565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015611b5b573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116611b8457600060019250925050611b8b565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b01611bb587828885611ab1565b935093505050935093915050565b828054828255906000526020600020908101928215611bfe579160200282015b82811115611bfe578251825591602001919060010190611be3565b50611c0a929150611c0e565b5090565b5b80821115611c0a5760008155600101611c0f565b600082601f830112611c33578081fd5b81356020611c48611c4383612415565b6123e5565b80838252828201915082860187848660051b8901011115611c67578586fd5b855b85811015611c8557813584529284019290840190600101611c69565b5090979650505050505050565b60008083601f840112611ca3578182fd5b5081356001600160401b03811115611cb9578182fd5b6020830191508360208285010111156118ae57600080fd5b600082601f830112611ce1578081fd5b81356001600160401b03811115611cfa57611cfa612481565b611d0d601f8201601f19166020016123e5565b818152846020838601011115611d21578283fd5b816020850160208301379081016020019190915292915050565b600060208284031215611d4c578081fd5b813561071781612497565b600080600080600060a08688031215611d6e578081fd5b8535611d7981612497565b94506020860135611d8981612497565b935060408601356001600160401b0380821115611da4578283fd5b611db089838a01611c23565b94506060880135915080821115611dc5578283fd5b611dd189838a01611c23565b93506080880135915080821115611de6578283fd5b50611df388828901611cd1565b9150509295509295909350565b600080600080600060a08688031215611e17578081fd5b8535611e2281612497565b94506020860135611e3281612497565b9350604086013592506060860135915060808601356001600160401b03811115611e5a578182fd5b611df388828901611cd1565b60008060008060808587031215611e7b578384fd5b8435611e8681612497565b935060208501356001600160401b0380821115611ea1578485fd5b611ead88838901611c23565b94506040870135915080821115611ec2578384fd5b50611ecf87828801611c23565b9250506060850135611ee081612497565b939692955090935050565b60008060008060808587031215611f00578384fd5b8435611f0b81612497565b935060208501356001600160401b0380821115611f26578485fd5b611f3288838901611c23565b94506040870135915080821115611f47578384fd5b50611f5487828801611c23565b949793965093946060013593505050565b60006020808385031215611f77578182fd5b82356001600160401b03811115611f8c578283fd5b8301601f81018513611f9c578283fd5b8035611faa611c4382612415565b80828252848201915084840188868560051b8701011115611fc9578687fd5b8694505b83851015611feb578035835260019490940193918501918501611fcd565b50979650505050505050565b600060208284031215612008578081fd5b5035919050565b60008060408385031215612021578182fd5b8235915060208301356001600160401b0381111561203d578182fd5b61204985828601611cd1565b9150509250929050565b600060208284031215612064578081fd5b81356001600160e01b031981168114610717578182fd5b60008060006040848603121561208f578081fd5b83356001600160401b038111156120a4578182fd5b6120b086828701611c92565b90945092505060208401356120c481612497565b809150509250925092565b600080600080604085870312156120e4578182fd5b84356001600160401b03808211156120fa578384fd5b61210688838901611c92565b9096509450602087013591508082111561211e578384fd5b5061212b87828801611c92565b95989497509550505050565b600060208284031215612148578081fd5b5051919050565b60008060408385031215612161578182fd5b82359150602083013561217381612497565b809150509250929050565b6000815180845260208085019450808401835b838110156121ad57815187529582019590820190600101612191565b509495945050505050565b8183823760009101908152919050565b6001600160a01b0391909116815260200190565b6001600160a01b0385811682528416602082015260a0604082018190526000906122089083018561217e565b828103606084015261221a818561217e565b8381036080909401939093525050600381526203078360ec1b6020820152604001949350505050565b6001600160a01b03929092168252602082015260400190565b6060815283606082015283856080830137600060808583018101919091526001600160a01b039384166020830152919092166040830152601f909201601f19160101919050565b6020808252601e908201527f4d696e742066726f6d20636f6e7472616374206e6f7420616c6c6f7765640000604082015260600190565b6020808252600c908201526b4f7574206f662073746f636b60a01b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601e908201527f45746865722076616c75652073656e7420697320696e636f72726563742e0000604082015260600190565b60208082526022908201527f436f6e74726163747320617265206e6f7420616c6c6f77656420746f206d696e6040820152613a1760f11b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b604051601f8201601f191681016001600160401b038111828210171561240d5761240d612481565b604052919050565b60006001600160401b0382111561242e5761242e612481565b5060051b60200190565b6000821982111561244b5761244b61246b565b500190565b60006000198214156124645761246461246b565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461148157600080fdfea2646970667358221220be83e0732efde7f240a0b8e016c49635c63c8899d984a8b7922009e13f87602c64736f6c63430008040033

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

0000000000000000000000006f61066b740e013ee7a2f2daf975c4b64b70cd941b4cb6d116e40dcbb3ca6fd50f852bb591b69696385ccc28d49c43dd6640560b000000000000000000000000ccc441ac31f02cd96c153db6fd5fe0a2f4e6a68d00000000000000000000000035471f47c3c0bc5fc75025b97a19ecdde00f78f80000000000000000000000001afef6b252cc35ec061efe6a9676c90915a73f18

-----Decoded View---------------
Arg [0] : signer (address): 0x6f61066b740e013ee7A2F2daF975C4B64B70cd94
Arg [1] : _newRoot (bytes32): 0x1b4cb6d116e40dcbb3ca6fd50f852bb591b69696385ccc28d49c43dd6640560b
Arg [2] : _flufAddress (address): 0xCcc441ac31f02cD96C153DB6fd5Fe0a2F4e6A68d
Arg [3] : _partybearsAddress (address): 0x35471f47c3C0BC5FC75025b97A19ECDDe00F78f8
Arg [4] : _thingiesAddress (address): 0x1AFEF6b252cc35Ec061eFe6a9676C90915a73F18

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000006f61066b740e013ee7a2f2daf975c4b64b70cd94
Arg [1] : 1b4cb6d116e40dcbb3ca6fd50f852bb591b69696385ccc28d49c43dd6640560b
Arg [2] : 000000000000000000000000ccc441ac31f02cd96c153db6fd5fe0a2f4e6a68d
Arg [3] : 00000000000000000000000035471f47c3c0bc5fc75025b97a19ecdde00f78f8
Arg [4] : 0000000000000000000000001afef6b252cc35ec061efe6a9676c90915a73f18


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.