ETH Price: $2,291.85 (+1.22%)

Token

LALA x The Wolf of Wall Street Movie Poster (LaLa)
 

Overview

Max Total Supply

0 LaLa

Holders

129

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 LaLa
0x969c689af792595e1250f88847e15e0f9e592d17
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
LalaNFT

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion
File 1 of 28 : LalaNFT.sol
// SPDX-License-Identifier: MIT
import '@openzeppelin/contracts/utils/Address.sol';
import '@openzeppelin/contracts/utils/cryptography/draft-EIP712.sol'; // signatures
import '@openzeppelin/contracts/access/Ownable.sol'; // ownership
import '@openzeppelin/contracts/access/AccessControl.sol'; // roles
import '@openzeppelin/contracts/utils/cryptography/ECDSA.sol';
import '@openzeppelin/contracts/utils/Strings.sol';
import '@openzeppelin/contracts/token/ERC20/IERC20.sol';
import '@openzeppelin/contracts/interfaces/IERC2981.sol'; // a standard for royalties that may in the future be widely supported
import '@openzeppelin/contracts/token/ERC721/extensions/ERC721Pausable.sol';
import 'operator-filter-registry/src/DefaultOperatorFilterer.sol';
import './lib/LibPart.sol';
import './lib/LibRoyaltiesV2.sol';
import './lib/RoyaltiesV2.sol';
import './lib/ILalaRevenue.sol';

pragma solidity ^0.8.13;

contract LalaNFT is
  DefaultOperatorFilterer,
  ERC721Pausable,
  EIP712,
  Ownable,
  AccessControl,
  IERC2981,
  RoyaltiesV2,
  ILalaRevenue
{
  using ECDSA for bytes32;
  using Strings for uint256;
  using Address for address payable;
  bytes4 private constant _INTERFACE_ID_ERC2981 = 0x2a55205a;

  string private _URI; // base URI
  bytes private _encyptedURI; // encypted base URI
  string private _contractURI; // Contract-level metadata
  uint256 private _totalShares; // how many holders we have in the shares array
  Share[] private _shares; // array of shares per token
  uint16 public _soldShares; // 0-100*100, when 100*100 no more tokens can be issued anymore

  bytes32 public constant MINTER_ROLE = keccak256('MINTER_ROLE'); // role responsible for giving out the vouchers
  bytes32 public constant MAINTAINER_ROLE = keccak256('MAINTAINER_ROLE'); // role responsible for updating contract data

  address payable _merchant; // the address receiving the funds flying into this contract

  mapping(uint256 => LibPart.Part[]) internal _royalties; // map from token -> royalties
  mapping(address => address) internal _royaltyOverride; // map from compromised wallet -> new wallet

  event ContractURIChanged(string contractURI);
  event RoyaltyOverrideChanged(address oldAccount, address newAccount);
  event RoyaltyOverrideRemoved(address account);

  constructor(
    address minter,
    address payable merchant,
    string memory uri, // base URI
    bytes memory encypted_uri, // encypted base URI
    string memory contract_uri, // Contract-level metadata
    string memory name, // name of the pool
    string memory symbol_name, // what the ERC721 token will be called
    string memory version // e.g. "1"
  ) ERC721(name, symbol_name) EIP712(name, version) {
    _merchant = merchant;
    _URI = uri;
    _encyptedURI = encypted_uri;
    _contractURI = contract_uri;
    _totalShares = 0;
    _soldShares = 0;

    _setupRole(MINTER_ROLE, minter);
    _setupRole(MAINTAINER_ROLE, minter);
    _setupRole(MAINTAINER_ROLE, _msgSender());
  }

  // represents an un-minted NFT, which has not yet been recorded into the blockchain.
  // a signed voucher can be redeemed for a real NFT using the redeem function.
  struct NFTVoucher {
    uint256 tokenId; // must be unique - if another token with this ID already exists, the redeem function will revert
    uint256 price;
    uint16 share; // 0-100 %, scaled up to 0/10000
    address buyer; // the wallet that this voucher is for
    LibPart.Part[] royalties; // array of associated royalties ({account, value}[])
  }

  // represents a bought share of the total revenue stream
  struct Share {
    uint16 share; // from 0-100 %, scaled to 0/10000
    uint256 tokenId;
  }

  // Returns the Uniform Resource Identifier (URI) for `tokenId` token
  function tokenURI(uint256 tokenId)
    public
    view
    virtual
    override
    returns (string memory)
  {
    require(_exists(tokenId), 'ERC721: invalid token ID');

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

  // Returns the Uniform Resource Identifier (URI) for computing {tokenURI}
  function _baseURI() internal view virtual override returns (string memory) {
    return _URI;
  }

  // Returns a URL for the storefront-level metadata for your contract.
  function contractURI() public view returns (string memory) {
    return _contractURI;
  }

  function setContractURI(string memory contractURI_)
    public
    onlyRole(MAINTAINER_ROLE)
  {
    _contractURI = contractURI_;

    emit ContractURIChanged(contractURI_);
  }

  // Redeems an NFTVoucher for an actual NFT, creating it in the process.
  function redeem(
    NFTVoucher calldata voucher, // an NFTVoucher that describes the NFT to be redeemed.
    bytes memory signature // an EIP712 signature of the voucher, produced by the NFT creator.
  ) public payable returns (uint256) {
    // make sure signature is valid and get the address of the signer
    address signer = _verify(voucher, signature);

    require(voucher.share + _soldShares <= 10000, 'No more shares available');

    // make sure that the signer is authorized to mint NFTs
    require(hasRole(MINTER_ROLE, signer), 'Signature invalid or unauthorized');

    // make sure that the redeemer is paying enough to cover the buyer's cost
    require(msg.value >= voucher.price, 'Insufficient funds to redeem');

    // make sure the voucher was created for sender's wallet
    require(
      msg.sender == voucher.buyer,
      'Voucher is issued for a different wallet'
    );

    // add share to total share sum
    _soldShares = _soldShares + voucher.share;
    Share memory share = Share(voucher.share, voucher.tokenId);
    _shares.push(share);
    _totalShares = _totalShares + 1;

    // handle royalties
    uint16 royaltiesSum = 0;
    LibPart.Part[] storage tokenRoyalties = _royalties[voucher.tokenId];
    uint8 royaltiesLength = uint8(voucher.royalties.length);

    for (uint8 i = 0; i < royaltiesLength; ++i) {
      tokenRoyalties.push(voucher.royalties[i]);
      royaltiesSum += uint16(voucher.royalties[i].value);

      // update royalty overrides
      if (royaltyOverrideOf(tokenRoyalties[i].account) != address(0)) {
        tokenRoyalties[i].account = payable(
          royaltyOverrideOf(tokenRoyalties[i].account)
        );
      }
    }
    require(royaltiesSum <= 10000, 'Royalties cannot be more than 100%');

    // first assign the token to the merchant, to establish provenance on-chain
    _mint(_merchant, voucher.tokenId);

    for (uint8 i = 0; i < royaltiesLength; ++i) {
      // transfer all royalties first
      uint256 royaltyAmount = (msg.value * voucher.royalties[i].value) / 10000;
      address payable royaltyAccount = payable(voucher.royalties[i].account);
      royaltyAccount.transfer(royaltyAmount);
    }

    // transfer the token to the redeemer
    _transfer(_merchant, msg.sender, voucher.tokenId);

    // transfer payment to merchant, everything except the royalties
    uint256 remainingAmount = ((10000 - royaltiesSum) * msg.value) / 10000;
    _merchant.transfer(remainingAmount);

    return voucher.tokenId;
  }

  // Verifies the signature for a given NFTVoucher, returning the address of the signer.
  // Will revert if the signature is invalid. Does not verify that the signer is authorized to mint NFTs.
  function _verify(
    NFTVoucher calldata voucher, // an NFTVoucher describing an unminted NFT.
    bytes memory signature // an EIP712 signature of the given voucher.
  ) private view returns (address) {
    bytes32 digest = _hash(voucher);
    return digest.toEthSignedMessageHash().recover(signature);
  }

  // Returns a hash of the given NFTVoucher, prepared using EIP712 typed data hashing rules.
  function _hash(NFTVoucher calldata voucher) private view returns (bytes32) {
    bytes32[] memory royaltyHashArray = new bytes32[](voucher.royalties.length);

    for (uint256 i = 0; i < voucher.royalties.length; i++) {
      royaltyHashArray[i] = LibPart.hash(voucher.royalties[i]);
    }

    return
      _hashTypedDataV4(
        keccak256(
          abi.encode(
            keccak256(
              'NFTVoucher(uint256 tokenId,uint256 price,uint16 share,address buyer,Part[] royalties)Part(address account,uint96 value)'
            ),
            voucher.tokenId,
            voucher.price,
            voucher.share,
            voucher.buyer,
            keccak256(abi.encodePacked(royaltyHashArray))
          )
        )
      );
  }

  // -------------------- Revenue distribution -------------------- //

  // Returns the revenue distribution for a given amount of revenue. The returned array contains the addresses of the shareholders and the amount of revenue to be distributed to each shareholder.
  // The amount of revenue to be distributed to each shareholder is calculated by multiplying the total amount of revenue by the share of each shareholder.
  // ammount parameter is in USDC (6 decimals) i.e. 1000000 = 1 USDC
  function getDistribution(uint256 amount)
    external
    view
    returns (DistributionShare[] memory)
  {
    DistributionShare[] memory values = new DistributionShare[](_totalShares);
    for (uint256 i = 0; i < _totalShares; i++) {
      Share memory share = _shares[i];
      // tokens are sold, so we need to call ownerOf
      address shareholder = ownerOf(share.tokenId);
      uint256 shareAmount = (amount * share.share) / 10000;

      values[i] = DistributionShare(shareholder, shareAmount);
    }
    return values;
  }

  // -------------------- Delayed drop reveal -------------------- //

  // Lets an account with `MAINTAINER_ROLE` role reveal the NFT drop
  function reveal(bytes calldata key)
    external
    onlyRole(MAINTAINER_ROLE)
    returns (string memory)
  {
    require(_encyptedURI.length > 0, 'Encrypted URI is not set');

    _URI = string(encryptDecrypt(_encyptedURI, key));

    return _URI;
  }

  // See: https://ethereum.stackexchange.com/questions/69825/decrypt-message-on-chain
  function encryptDecrypt(bytes memory data, bytes calldata key)
    private
    pure
    returns (bytes memory result)
  {
    // Store data length on stack for later use
    uint256 length = data.length;

    assembly {
      // Set result to free memory pointer
      result := mload(0x40)
      // Increase free memory pointer by lenght + 32
      mstore(0x40, add(add(result, length), 32))
      // Set result length
      mstore(result, length)
    }

    // Iterate over the data stepping by 32 bytes
    for (uint256 i = 0; i < length; i += 32) {
      // Generate hash of the key and offset
      bytes32 hash = keccak256(abi.encodePacked(key, i));

      bytes32 chunk;
      assembly {
        // Read 32-bytes data chunk
        chunk := mload(add(data, add(i, 32)))
      }
      // XOR the chunk with hash
      chunk ^= hash;
      assembly {
        // Write 32-byte encrypted chunk
        mstore(add(result, add(i, 32)), chunk)
      }
    }
  }

  // -------------------- Resell royalties -------------------- //

  // necessary override
  function supportsInterface(bytes4 interfaceId)
    public
    view
    virtual
    override(AccessControl, ERC721, IERC165)
    returns (bool)
  {
    if (interfaceId == LibRoyaltiesV2._INTERFACE_ID_ROYALTIES) {
      return true;
    }
    if (interfaceId == _INTERFACE_ID_ERC2981) {
      return true;
    }
    return super.supportsInterface(interfaceId);
  }

  // Returns token royalties with royalty overrides
  function getRoyalties(uint256 tokenId)
    public
    view
    returns (LibPart.Part[] memory)
  {
    LibPart.Part[] memory tokenRoyalties = _royalties[tokenId];

    // check royalty overrides
    for (uint256 i = 0; i < tokenRoyalties.length; ++i) {
      if (royaltyOverrideOf(tokenRoyalties[i].account) != address(0)) {
        tokenRoyalties[i].account = payable(
          royaltyOverrideOf(tokenRoyalties[i].account)
        );
      }
    }

    return tokenRoyalties;
  }

  // really the only function IERC2981 standard defines;
  // only supports one royalty per token
  function royaltyInfo(
    uint256 tokenId,
    uint256 salePrice // whatever the unit, we just return the percentage of royalty
  ) external view override returns (address receiver, uint256 royaltyAmount) {
    LibPart.Part[] memory tokenRoyalties = getRoyalties(tokenId);

    // if there are no royalties
    if (tokenRoyalties.length == 0) {
      // no receiver and no amount
      return (address(0), 0);
    }

    uint256 royalties;
    for (uint256 i = 0; i < tokenRoyalties.length; ++i) {
      // calculate royalties via the percentages
      royalties += (salePrice * tokenRoyalties[i].value) / 10000;
    }

    return (tokenRoyalties[0].account, royalties);
  }

  // special function for rarible royalties - the only one their contract needs;
  // supports multiple royalties per token
  function getRaribleV2Royalties(uint256 tokenId)
    external
    view
    override
    returns (LibPart.Part[] memory)
  {
    return getRoyalties(tokenId);
  }

  // Return royalty override for an account
  function royaltyOverrideOf(address account) public view returns (address) {
    address overrideAddress = _royaltyOverride[account];

    while (_royaltyOverride[overrideAddress] != address(0)) {
      overrideAddress = _royaltyOverride[overrideAddress];
    }

    return overrideAddress;
  }

  // Lets an account with `MAINTAINER_ROLE` set the royalty override
  function setRoyaltyOverride(address oldAccount, address newAccount)
    external
    onlyRole(MAINTAINER_ROLE)
  {
    require(
      _royaltyOverride[newAccount] == address(0),
      'Royalty override for new address already exists.'
    );

    _royaltyOverride[oldAccount] = newAccount;

    emit RoyaltyOverrideChanged(oldAccount, newAccount);
  }

  // Lets an account with `MAINTAINER_ROLE` remove the royalty override
  function removeRoyaltyOverride(address account)
    external
    onlyRole(MAINTAINER_ROLE)
  {
    delete _royaltyOverride[account];

    emit RoyaltyOverrideRemoved(account);
  }

  // -------------------- Pausable token transfers -------------------- //

  // Lets an account with `MAINTAINER_ROLE` pauses all token transfers.
  function pause() public virtual onlyRole(MAINTAINER_ROLE) {
    _pause();
  }

  // Lets an account with `MAINTAINER_ROLE` unpauses all token transfers.
  function unpause() public virtual onlyRole(MAINTAINER_ROLE) {
    _unpause();
  }

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

  function approve(address operator, uint256 tokenId)
    public
    override
    onlyAllowedOperatorApproval(operator)
  {
    super.approve(operator, tokenId);
  }

  function transferFrom(
    address from,
    address to,
    uint256 tokenId
  ) public override onlyAllowedOperator(from) {
    super.transferFrom(from, to, tokenId);
  }

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

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

File 2 of 28 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Address.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./ECDSA.sol";

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

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

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

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

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

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

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

File 4 of 28 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 5 of 28 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (access/AccessControl.sol)

pragma solidity ^0.8.0;

import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role, _msgSender());
        _;
    }

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

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(uint160(account), 20),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been revoked `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     *
     * NOTE: This function is deprecated in favor of {_grantRole}.
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * Internal function without access restriction.
     */
    function _grantRole(bytes32 role, address account) internal virtual {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * Internal function without access restriction.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

File 6 of 28 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

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

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

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

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

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

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

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

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

        return (signer, RecoverError.NoError);
    }

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

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

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

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

File 7 of 28 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

File 8 of 28 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 9 of 28 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 10 of 28 : ERC721Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/ERC721Pausable.sol)

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "../../../security/Pausable.sol";

/**
 * @dev ERC721 token with pausable token transfers, minting and burning.
 *
 * Useful for scenarios such as preventing trades until the end of an evaluation
 * period, or having an emergency switch for freezing all token transfers in the
 * event of a large bug.
 */
abstract contract ERC721Pausable is ERC721, Pausable {
    /**
     * @dev See {ERC721-_beforeTokenTransfer}.
     *
     * Requirements:
     *
     * - the contract must not be paused.
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual override {
        super._beforeTokenTransfer(from, to, tokenId);

        require(!paused(), "ERC721Pausable: token transfer while paused");
    }
}

File 11 of 28 : DefaultOperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {OperatorFilterer} from "./OperatorFilterer.sol";
import {CANONICAL_CORI_SUBSCRIPTION} from "./lib/Constants.sol";
/**
 * @title  DefaultOperatorFilterer
 * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription.
 * @dev    Please note that if your token contract does not provide an owner with EIP-173, it must provide
 *         administration methods on the contract itself to interact with the registry otherwise the subscription
 *         will be locked to the options set during construction.
 */

abstract contract DefaultOperatorFilterer is OperatorFilterer {
    /// @dev The constructor that is called when the contract is being deployed.
    constructor() OperatorFilterer(CANONICAL_CORI_SUBSCRIPTION, true) {}
}

File 12 of 28 : LibPart.sol
// SPDX-License-Identifier: MIT

// copied from @rarible/royalties/contracts/LibPart.sol
// to support the newest solidity version
pragma solidity ^0.8.9;

library LibPart {
  bytes32 public constant TYPE_HASH =
    keccak256('Part(address account,uint96 value)');

  struct Part {
    address payable account;
    uint96 value;
  }

  function hash(Part memory part) internal pure returns (bytes32) {
    return keccak256(abi.encode(TYPE_HASH, part.account, part.value));
  }
}

File 13 of 28 : LibRoyaltiesV2.sol
// SPDX-License-Identifier: MIT

// copied from @rarible/royalties/contracts/LibRoyaltiesV2.sol
// to support the newest solidity version

pragma solidity ^0.8.9;

library LibRoyaltiesV2 {
  /*
   * bytes4(keccak256('getRaribleV2Royalties(uint256)')) == 0xcad96cca
   */
  bytes4 constant _INTERFACE_ID_ROYALTIES = 0xcad96cca;
}

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

// copied from @rarible/royalties/contracts/RoyaltiesV2.sol
// to support the newest solidity version

pragma solidity ^0.8.9;
pragma abicoder v2;

import './LibPart.sol';

interface RoyaltiesV2 {
  event RoyaltiesSet(uint256 tokenId, LibPart.Part[] royalties);

  function getRaribleV2Royalties(uint256 id)
    external
    view
    returns (LibPart.Part[] memory);
}

File 15 of 28 : ILalaRevenue.sol
// SPDX-License-Identifier: MIT

// copied from @rarible/royalties/contracts/RoyaltiesV2.sol
// to support the newest solidity version

pragma solidity ^0.8.9;
pragma abicoder v2;

interface ILalaRevenue {
  struct DistributionShare {
    address recipient;
    uint256 share;
  }

  function getDistribution(uint256 amount)
    external
    view
    returns (DistributionShare[] memory);
}

File 16 of 28 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

File 17 of 28 : IAccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 19 of 28 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

File 20 of 28 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (interfaces/IERC165.sol)

pragma solidity ^0.8.0;

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

File 21 of 28 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

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

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

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

File 22 of 28 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (security/Pausable.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 23 of 28 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, 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 24 of 28 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

File 25 of 28 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol";
import {CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS} from "./lib/Constants.sol";
/**
 * @title  OperatorFilterer
 * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another
 *         registrant's entries in the OperatorFilterRegistry.
 * @dev    This smart contract is meant to be inherited by token contracts so they can use the following:
 *         - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods.
 *         - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods.
 *         Please note that if your token contract does not provide an owner with EIP-173, it must provide
 *         administration methods on the contract itself to interact with the registry otherwise the subscription
 *         will be locked to the options set during construction.
 */

abstract contract OperatorFilterer {
    /// @dev Emitted when an operator is not allowed.
    error OperatorNotAllowed(address operator);

    IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY =
        IOperatorFilterRegistry(CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS);

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

    /**
     * @dev A helper function to check if an operator is allowed.
     */
    modifier onlyAllowedOperator(address from) virtual {
        // Allow spending tokens from addresses with balance
        // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred
        // from an EOA.
        if (from != msg.sender) {
            _checkFilterOperator(msg.sender);
        }
        _;
    }

    /**
     * @dev A helper function to check if an operator approval is allowed.
     */
    modifier onlyAllowedOperatorApproval(address operator) virtual {
        _checkFilterOperator(operator);
        _;
    }

    /**
     * @dev A helper function to check if an operator is allowed.
     */
    function _checkFilterOperator(address operator) internal view virtual {
        // Check registry code length to facilitate testing in environments without a deployed registry.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            // under normal circumstances, this function will revert rather than return false, but inheriting contracts
            // may specify their own OperatorFilterRegistry implementations, which may behave differently
            if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) {
                revert OperatorNotAllowed(operator);
            }
        }
    }
}

File 27 of 28 : Constants.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

address constant CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS = 0x000000000000AAeB6D7670E522A718067333cd4E;
address constant CANONICAL_CORI_SUBSCRIPTION = 0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6;

File 28 of 28 : IOperatorFilterRegistry.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

interface IOperatorFilterRegistry {
    /**
     * @notice Returns true if operator is not filtered for a given token, either by address or codeHash. Also returns
     *         true if supplied registrant address is not registered.
     */
    function isOperatorAllowed(address registrant, address operator) external view returns (bool);

    /**
     * @notice Registers an address with the registry. May be called by address itself or by EIP-173 owner.
     */
    function register(address registrant) external;

    /**
     * @notice Registers an address with the registry and "subscribes" to another address's filtered operators and codeHashes.
     */
    function registerAndSubscribe(address registrant, address subscription) external;

    /**
     * @notice Registers an address with the registry and copies the filtered operators and codeHashes from another
     *         address without subscribing.
     */
    function registerAndCopyEntries(address registrant, address registrantToCopy) external;

    /**
     * @notice Unregisters an address with the registry and removes its subscription. May be called by address itself or by EIP-173 owner.
     *         Note that this does not remove any filtered addresses or codeHashes.
     *         Also note that any subscriptions to this registrant will still be active and follow the existing filtered addresses and codehashes.
     */
    function unregister(address addr) external;

    /**
     * @notice Update an operator address for a registered address - when filtered is true, the operator is filtered.
     */
    function updateOperator(address registrant, address operator, bool filtered) external;

    /**
     * @notice Update multiple operators for a registered address - when filtered is true, the operators will be filtered. Reverts on duplicates.
     */
    function updateOperators(address registrant, address[] calldata operators, bool filtered) external;

    /**
     * @notice Update a codeHash for a registered address - when filtered is true, the codeHash is filtered.
     */
    function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external;

    /**
     * @notice Update multiple codeHashes for a registered address - when filtered is true, the codeHashes will be filtered. Reverts on duplicates.
     */
    function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external;

    /**
     * @notice Subscribe an address to another registrant's filtered operators and codeHashes. Will remove previous
     *         subscription if present.
     *         Note that accounts with subscriptions may go on to subscribe to other accounts - in this case,
     *         subscriptions will not be forwarded. Instead the former subscription's existing entries will still be
     *         used.
     */
    function subscribe(address registrant, address registrantToSubscribe) external;

    /**
     * @notice Unsubscribe an address from its current subscribed registrant, and optionally copy its filtered operators and codeHashes.
     */
    function unsubscribe(address registrant, bool copyExistingEntries) external;

    /**
     * @notice Get the subscription address of a given registrant, if any.
     */
    function subscriptionOf(address addr) external returns (address registrant);

    /**
     * @notice Get the set of addresses subscribed to a given registrant.
     *         Note that order is not guaranteed as updates are made.
     */
    function subscribers(address registrant) external returns (address[] memory);

    /**
     * @notice Get the subscriber at a given index in the set of addresses subscribed to a given registrant.
     *         Note that order is not guaranteed as updates are made.
     */
    function subscriberAt(address registrant, uint256 index) external returns (address);

    /**
     * @notice Copy filtered operators and codeHashes from a different registrantToCopy to addr.
     */
    function copyEntriesOf(address registrant, address registrantToCopy) external;

    /**
     * @notice Returns true if operator is filtered by a given address or its subscription.
     */
    function isOperatorFiltered(address registrant, address operator) external returns (bool);

    /**
     * @notice Returns true if the hash of an address's code is filtered by a given address or its subscription.
     */
    function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool);

    /**
     * @notice Returns true if a codeHash is filtered by a given address or its subscription.
     */
    function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool);

    /**
     * @notice Returns a list of filtered operators for a given address or its subscription.
     */
    function filteredOperators(address addr) external returns (address[] memory);

    /**
     * @notice Returns the set of filtered codeHashes for a given address or its subscription.
     *         Note that order is not guaranteed as updates are made.
     */
    function filteredCodeHashes(address addr) external returns (bytes32[] memory);

    /**
     * @notice Returns the filtered operator at the given index of the set of filtered operators for a given address or
     *         its subscription.
     *         Note that order is not guaranteed as updates are made.
     */
    function filteredOperatorAt(address registrant, uint256 index) external returns (address);

    /**
     * @notice Returns the filtered codeHash at the given index of the list of filtered codeHashes for a given address or
     *         its subscription.
     *         Note that order is not guaranteed as updates are made.
     */
    function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32);

    /**
     * @notice Returns true if an address has registered
     */
    function isRegistered(address addr) external returns (bool);

    /**
     * @dev Convenience method to compute the code hash of an arbitrary contract
     */
    function codeHashOf(address addr) external returns (bytes32);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"minter","type":"address"},{"internalType":"address payable","name":"merchant","type":"address"},{"internalType":"string","name":"uri","type":"string"},{"internalType":"bytes","name":"encypted_uri","type":"bytes"},{"internalType":"string","name":"contract_uri","type":"string"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol_name","type":"string"},{"internalType":"string","name":"version","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"contractURI","type":"string"}],"name":"ContractURIChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"components":[{"internalType":"address payable","name":"account","type":"address"},{"internalType":"uint96","name":"value","type":"uint96"}],"indexed":false,"internalType":"struct LibPart.Part[]","name":"royalties","type":"tuple[]"}],"name":"RoyaltiesSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldAccount","type":"address"},{"indexed":false,"internalType":"address","name":"newAccount","type":"address"}],"name":"RoyaltyOverrideChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"RoyaltyOverrideRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAINTAINER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_soldShares","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"getDistribution","outputs":[{"components":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"share","type":"uint256"}],"internalType":"struct ILalaRevenue.DistributionShare[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getRaribleV2Royalties","outputs":[{"components":[{"internalType":"address payable","name":"account","type":"address"},{"internalType":"uint96","name":"value","type":"uint96"}],"internalType":"struct LibPart.Part[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getRoyalties","outputs":[{"components":[{"internalType":"address payable","name":"account","type":"address"},{"internalType":"uint96","name":"value","type":"uint96"}],"internalType":"struct LibPart.Part[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint16","name":"share","type":"uint16"},{"internalType":"address","name":"buyer","type":"address"},{"components":[{"internalType":"address payable","name":"account","type":"address"},{"internalType":"uint96","name":"value","type":"uint96"}],"internalType":"struct LibPart.Part[]","name":"royalties","type":"tuple[]"}],"internalType":"struct LalaNFT.NFTVoucher","name":"voucher","type":"tuple"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"redeem","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"removeRoyaltyOverride","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"key","type":"bytes"}],"name":"reveal","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"royaltyOverrideOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"contractURI_","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"oldAccount","type":"address"},{"internalType":"address","name":"newAccount","type":"address"}],"name":"setRoyaltyOverride","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6101406040523480156200001257600080fd5b506040516200498c3803806200498c8339810160408190526200003591620005eb565b82818184733cc6cdda760b79bafa08df41ecfa224f810dceb660016daaeb6d7670e522a718067333cd4e3b1562000195578015620000e357604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b158015620000c457600080fd5b505af1158015620000d9573d6000803e3d6000fd5b5050505062000195565b6001600160a01b03821615620001345760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af290390604401620000a9565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b1580156200017b57600080fd5b505af115801562000190573d6000803e3d6000fd5b505050505b50508151620001ac9060009060208501906200045b565b508051620001c29060019060208401906200045b565b50506006805460ff1916905550815160209283012081519183019190912060e08290526101008190524660a0818152604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f818801819052818301969096526060810194909452608080850193909352308483018190528151808603909301835260c0948501909152815191909501209052919091526101205262000269336200034d565b600d805462010000600160b01b031916620100006001600160a01b038a16021790558551620002a09060089060208901906200045b565b508451620002b69060099060208801906200045b565b508351620002cc90600a9060208701906200045b565b506000600b55600d805461ffff19169055620003097f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a689620003a7565b620003246000805160206200496c83398151915289620003a7565b6200033f6000805160206200496c83398151915233620003a7565b505050505050505062000756565b600680546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b620003b38282620003b7565b5050565b60008281526007602090815260408083206001600160a01b038516845290915290205460ff16620003b35760008281526007602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620004173390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b82805462000469906200071a565b90600052602060002090601f0160209004810192826200048d5760008555620004d8565b82601f10620004a857805160ff1916838001178555620004d8565b82800160010185558215620004d8579182015b82811115620004d8578251825591602001919060010190620004bb565b50620004e6929150620004ea565b5090565b5b80821115620004e65760008155600101620004eb565b80516001600160a01b03811681146200051957600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200054657600080fd5b81516001600160401b03808211156200056357620005636200051e565b604051601f8301601f19908116603f011681019082821181831017156200058e576200058e6200051e565b81604052838152602092508683858801011115620005ab57600080fd5b600091505b83821015620005cf5785820183015181830184015290820190620005b0565b83821115620005e15760008385830101525b9695505050505050565b600080600080600080600080610100898b0312156200060957600080fd5b620006148962000501565b97506200062460208a0162000501565b60408a01519097506001600160401b03808211156200064257600080fd5b620006508c838d0162000534565b975060608b01519150808211156200066757600080fd5b620006758c838d0162000534565b965060808b01519150808211156200068c57600080fd5b6200069a8c838d0162000534565b955060a08b0151915080821115620006b157600080fd5b620006bf8c838d0162000534565b945060c08b0151915080821115620006d657600080fd5b620006e48c838d0162000534565b935060e08b0151915080821115620006fb57600080fd5b506200070a8b828c0162000534565b9150509295985092959890939650565b600181811c908216806200072f57607f821691505b6020821081036200075057634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05160c05160e05161010051610120516141c6620007a660003960006135a9015260006135f8015260006135d30152600061352c015260006135560152600061358001526141c66000f3fe6080604052600436106102bb5760003560e01c806372f12a5d1161016e578063b88d4fde116100cb578063d547741f1161007f578063e985e9c511610064578063e985e9c5146107de578063f2fde38b14610827578063f87422541461084757600080fd5b8063d547741f146107a9578063e8a3d485146107c957600080fd5b8063c87b56dd116100b0578063c87b56dd14610735578063cad96cca14610755578063d53913931461077557600080fd5b8063b88d4fde146106e8578063bb3bafd61461070857600080fd5b806395d89b4111610122578063a22cb46511610107578063a22cb46514610695578063a37066f2146106b5578063b3c373d4146106c857600080fd5b806395d89b411461066b578063a217fddf1461068057600080fd5b80638da5cb5b116101535780638da5cb5b146105e257806391d1485414610605578063938e3d7b1461064b57600080fd5b806372f12a5d146105ad5780638456cb59146105cd57600080fd5b80633b345a871161021c5780635c975abb116101d05780636352211e116101b55780636352211e1461055857806370a0823114610578578063715018a61461059857600080fd5b80635c975abb1461052057806362084b5f1461053857600080fd5b806341f434341161020157806341f43434146104b057806342842e0e146104d25780635282ffbe146104f257600080fd5b80633b345a871461046e5780633f4ba83a1461049b57600080fd5b806323b872dd116102735780632a55205a116102585780632a55205a146103ef5780632f2ff15d1461042e57806336568abe1461044e57600080fd5b806323b872dd14610391578063248a9ca3146103b157600080fd5b8063081812fc116102a4578063081812fc14610317578063095ea7b31461034f5780631e85fa831461037157600080fd5b806301ffc9a7146102c057806306fdde03146102f5575b600080fd5b3480156102cc57600080fd5b506102e06102db36600461382a565b61087b565b60405190151581526020015b60405180910390f35b34801561030157600080fd5b5061030a6108fe565b6040516102ec919061389f565b34801561032357600080fd5b506103376103323660046138b2565b610990565b6040516001600160a01b0390911681526020016102ec565b34801561035b57600080fd5b5061036f61036a3660046138e0565b610a2a565b005b34801561037d57600080fd5b5061036f61038c36600461390c565b610a43565b34801561039d57600080fd5b5061036f6103ac366004613929565b610acd565b3480156103bd57600080fd5b506103e16103cc3660046138b2565b60009081526007602052604090206001015490565b6040519081526020016102ec565b3480156103fb57600080fd5b5061040f61040a36600461396a565b610af8565b604080516001600160a01b0390931683526020830191909152016102ec565b34801561043a57600080fd5b5061036f61044936600461398c565b610bba565b34801561045a57600080fd5b5061036f61046936600461398c565b610be0565b34801561047a57600080fd5b5061048e6104893660046138b2565b610c6c565b6040516102ec91906139bc565b3480156104a757600080fd5b5061036f610dac565b3480156104bc57600080fd5b506103376daaeb6d7670e522a718067333cd4e81565b3480156104de57600080fd5b5061036f6104ed366004613929565b610de2565b3480156104fe57600080fd5b50600d5461050d9061ffff1681565b60405161ffff90911681526020016102ec565b34801561052c57600080fd5b5060065460ff166102e0565b34801561054457600080fd5b5061033761055336600461390c565b610e07565b34801561056457600080fd5b506103376105733660046138b2565b610e65565b34801561058457600080fd5b506103e161059336600461390c565b610ef0565b3480156105a457600080fd5b5061036f610f8a565b3480156105b957600080fd5b5061030a6105c8366004613a14565b610ff6565b3480156105d957600080fd5b5061036f6111bf565b3480156105ee57600080fd5b5060065461010090046001600160a01b0316610337565b34801561061157600080fd5b506102e061062036600461398c565b60009182526007602090815260408084206001600160a01b0393909316845291905290205460ff1690565b34801561065757600080fd5b5061036f610666366004613b12565b6111f2565b34801561067757600080fd5b5061030a611260565b34801561068c57600080fd5b506103e1600081565b3480156106a157600080fd5b5061036f6106b0366004613b69565b61126f565b6103e16106c3366004613bb7565b611283565b3480156106d457600080fd5b5061036f6106e3366004613c23565b61192e565b3480156106f457600080fd5b5061036f610703366004613c51565b611a53565b34801561071457600080fd5b506107286107233660046138b2565b611a80565b6040516102ec9190613cbd565b34801561074157600080fd5b5061030a6107503660046138b2565b611bb1565b34801561076157600080fd5b506107286107703660046138b2565b611c74565b34801561078157600080fd5b506103e17f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b3480156107b557600080fd5b5061036f6107c436600461398c565b611c7f565b3480156107d557600080fd5b5061030a611ca5565b3480156107ea57600080fd5b506102e06107f9366004613c23565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561083357600080fd5b5061036f61084236600461390c565b611cb4565b34801561085357600080fd5b506103e17f339759585899103d2ace64958e37e18ccb0504652c81d4a1b8aa80fe2126ab9581565b60007f35269336000000000000000000000000000000000000000000000000000000006001600160e01b03198316016108b657506001919050565b7fd5aadfa6000000000000000000000000000000000000000000000000000000006001600160e01b03198316016108ef57506001919050565b6108f882611d99565b92915050565b60606000805461090d90613d16565b80601f016020809104026020016040519081016040528092919081815260200182805461093990613d16565b80156109865780601f1061095b57610100808354040283529160200191610986565b820191906000526020600020905b81548152906001019060200180831161096957829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610a0e5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b81610a3481611dd7565b610a3e8383611ec2565b505050565b7f339759585899103d2ace64958e37e18ccb0504652c81d4a1b8aa80fe2126ab95610a6e8133611fee565b6001600160a01b0382166000818152600f602090815260409182902080546001600160a01b031916905590519182527f3cf3f03aca77c37f516ee2ec9ca29bcfffa32df990af3342b31252c905b9d02b91015b60405180910390a15050565b826001600160a01b0381163314610ae757610ae733611dd7565b610af284848461206e565b50505050565b6000806000610b0685611a80565b90508051600003610b1e576000809250925050610bb3565b6000805b8251811015610b8b57612710838281518110610b4057610b40613d50565b6020026020010151602001516bffffffffffffffffffffffff1687610b659190613d7c565b610b6f9190613db1565b610b799083613dc5565b9150610b8481613ddd565b9050610b22565b5081600081518110610b9f57610b9f613d50565b602002602001015160000151819350935050505b9250929050565b600082815260076020526040902060010154610bd68133611fee565b610a3e83836120f5565b6001600160a01b0381163314610c5e5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608401610a05565b610c688282612197565b5050565b60606000600b5467ffffffffffffffff811115610c8b57610c8b613a86565b604051908082528060200260200182016040528015610cd057816020015b6040805180820190915260008082526020820152815260200190600190039081610ca95790505b50905060005b600b54811015610da5576000600c8281548110610cf557610cf5613d50565b6000918252602080832060408051808201909152600290930201805461ffff16835260010154908201819052909250610d2d90610e65565b90506000612710836000015161ffff1688610d489190613d7c565b610d529190613db1565b90506040518060400160405280836001600160a01b0316815260200182815250858581518110610d8457610d84613d50565b60200260200101819052505050508080610d9d90613ddd565b915050610cd6565b5092915050565b7f339759585899103d2ace64958e37e18ccb0504652c81d4a1b8aa80fe2126ab95610dd78133611fee565b610ddf61221a565b50565b826001600160a01b0381163314610dfc57610dfc33611dd7565b610af28484846122b6565b6001600160a01b038082166000908152600f60205260408120549091165b6001600160a01b038181166000908152600f602052604090205416156108f8576001600160a01b039081166000908152600f602052604090205416610e25565b6000818152600260205260408120546001600160a01b0316806108f85760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610a05565b60006001600160a01b038216610f6e5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610a05565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b03610100909104163314610fea5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a05565b610ff460006122d1565b565b60607f339759585899103d2ace64958e37e18ccb0504652c81d4a1b8aa80fe2126ab956110238133611fee565b60006009805461103290613d16565b9050116110815760405162461bcd60e51b815260206004820152601860248201527f456e6372797074656420555249206973206e6f742073657400000000000000006044820152606401610a05565b6111166009805461109190613d16565b80601f01602080910402602001604051908101604052809291908181526020018280546110bd90613d16565b801561110a5780601f106110df5761010080835404028352916020019161110a565b820191906000526020600020905b8154815290600101906020018083116110ed57829003601f168201915b50505050508585612342565b805161112a9160089160209091019061377b565b506008805461113890613d16565b80601f016020809104026020016040519081016040528092919081815260200182805461116490613d16565b80156111b15780601f10611186576101008083540402835291602001916111b1565b820191906000526020600020905b81548152906001019060200180831161119457829003601f168201915b505050505091505092915050565b7f339759585899103d2ace64958e37e18ccb0504652c81d4a1b8aa80fe2126ab956111ea8133611fee565b610ddf6123b7565b7f339759585899103d2ace64958e37e18ccb0504652c81d4a1b8aa80fe2126ab9561121d8133611fee565b815161123090600a90602085019061377b565b507fd5ee5eaf65263bab5d569890714d123ad48a9e54409d35e71d374f3dd300bba082604051610ac1919061389f565b60606001805461090d90613d16565b8161127981611dd7565b610a3e838361243f565b600080611290848461244a565b600d549091506127109061ffff166112ae6060870160408801613df6565b6112b89190613e1a565b61ffff16111561130a5760405162461bcd60e51b815260206004820152601860248201527f4e6f206d6f72652073686172657320617661696c61626c6500000000000000006044820152606401610a05565b6001600160a01b03811660009081527fa4bfd7afe708e2e87e7f0e2ad9b4d545417e0f795f57b5c5ab5d799c565a04f4602052604090205460ff166113b75760405162461bcd60e51b815260206004820152602160248201527f5369676e617475726520696e76616c6964206f7220756e617574686f72697a6560448201527f64000000000000000000000000000000000000000000000000000000000000006064820152608401610a05565b836020013534101561140b5760405162461bcd60e51b815260206004820152601c60248201527f496e73756666696369656e742066756e647320746f2072656465656d000000006044820152606401610a05565b61141b608085016060860161390c565b6001600160a01b0316336001600160a01b0316146114a15760405162461bcd60e51b815260206004820152602860248201527f566f75636865722069732069737375656420666f72206120646966666572656e60448201527f742077616c6c65740000000000000000000000000000000000000000000000006064820152608401610a05565b6114b16060850160408601613df6565b600d546114c2919061ffff16613e1a565b600d805461ffff191661ffff9290921691909117905560408051808201825260009181906114f69060608901908901613df6565b61ffff90811682528735602092830152600c80546001808201835560009290925284517fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c76002909202918201805461ffff19169190941617909255918301517fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c890910155600b5491925061158a9190613dc5565b600b5584356000908152600e60205260408120816115ab6080890189613e40565b9050905060005b8160ff168160ff16101561170657826115ce60808b018b613e40565b8360ff168181106115e1576115e1613d50565b8354600181018555600094855260209094206040909102929092019291909101905061160d8282613ea4565b5061161d905060808a018a613e40565b8260ff1681811061163057611630613d50565b90506040020160200160208101906116489190613ee4565b6116529085613e1a565b935060006001600160a01b0316611691848360ff168154811061167757611677613d50565b6000918252602090912001546001600160a01b0316610e07565b6001600160a01b0316146116f6576116b7838260ff168154811061167757611677613d50565b838260ff16815481106116cc576116cc613d50565b600091825260209091200180546001600160a01b0319166001600160a01b03929092169190911790555b6116ff81613f01565b90506115b2565b506127108361ffff1611156117835760405162461bcd60e51b815260206004820152602260248201527f526f79616c746965732063616e6e6f74206265206d6f7265207468616e20313060448201527f30250000000000000000000000000000000000000000000000000000000000006064820152608401610a05565b600d546117a0906201000090046001600160a01b03168935612473565b60005b8160ff168160ff1610156118975760006127106117c360808c018c613e40565b8460ff168181106117d6576117d6613d50565b90506040020160200160208101906117ee9190613ee4565b611806906bffffffffffffffffffffffff1634613d7c565b6118109190613db1565b9050600061182160808c018c613e40565b8460ff1681811061183457611834613d50565b61184a926020604090920201908101915061390c565b6040519091506001600160a01b0382169083156108fc029084906000818181858888f19350505050158015611883573d6000803e3d6000fd5b5050508061189090613f01565b90506117a3565b50600d546118b6906201000090046001600160a01b0316338a356125c1565b6000612710346118c68683613f20565b61ffff166118d49190613d7c565b6118de9190613db1565b600d546040519192506201000090046001600160a01b0316906108fc8315029083906000818181858888f1935050505015801561191f573d6000803e3d6000fd5b50509635979650505050505050565b7f339759585899103d2ace64958e37e18ccb0504652c81d4a1b8aa80fe2126ab956119598133611fee565b6001600160a01b038281166000908152600f602052604090205416156119e75760405162461bcd60e51b815260206004820152603060248201527f526f79616c7479206f7665727269646520666f72206e6577206164647265737360448201527f20616c7265616479206578697374732e000000000000000000000000000000006064820152608401610a05565b6001600160a01b038381166000818152600f602090815260409182902080546001600160a01b031916948716948517905581519283528201929092527fec5d32c0d1960d433f27759a92fe14ef0127f8830909d4060dcba398fa320c81910160405180910390a1505050565b836001600160a01b0381163314611a6d57611a6d33611dd7565b611a7985858585612799565b5050505050565b6000818152600e60209081526040808320805482518185028101850190935280835260609493849084015b82821015611b1057600084815260209081902060408051808201909152908401546001600160a01b03811682527401000000000000000000000000000000000000000090046bffffffffffffffffffffffff1681830152825260019092019101611aab565b50505050905060005b8151811015610da55760006001600160a01b0316611b53838381518110611b4257611b42613d50565b602002602001015160000151610e07565b6001600160a01b031614611ba157611b76828281518110611b4257611b42613d50565b828281518110611b8857611b88613d50565b60209081029190910101516001600160a01b0390911690525b611baa81613ddd565b9050611b19565b6000818152600260205260409020546060906001600160a01b0316611c185760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610a05565b6000611c22612821565b90506000815111611c425760405180602001604052806000815250611c6d565b80611c4c84612830565b604051602001611c5d929190613f43565b6040516020818303038152906040525b9392505050565b60606108f882611a80565b600082815260076020526040902060010154611c9b8133611fee565b610a3e8383612197565b6060600a805461090d90613d16565b6006546001600160a01b03610100909104163314611d145760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a05565b6001600160a01b038116611d905760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610a05565b610ddf816122d1565b60006001600160e01b031982167f7965db0b0000000000000000000000000000000000000000000000000000000014806108f857506108f882612931565b6daaeb6d7670e522a718067333cd4e3b15610ddf576040517fc61711340000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611e5d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e819190613f9a565b610ddf576040517fede71dcc0000000000000000000000000000000000000000000000000000000081526001600160a01b0382166004820152602401610a05565b6000611ecd82610e65565b9050806001600160a01b0316836001600160a01b031603611f565760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610a05565b336001600160a01b0382161480611f725750611f7281336107f9565b611fe45760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610a05565b610a3e83836129cc565b60008281526007602090815260408083206001600160a01b038516845290915290205460ff16610c685761202c816001600160a01b03166014612a3a565b612037836020612a3a565b604051602001612048929190613fb7565b60408051601f198184030181529082905262461bcd60e51b8252610a059160040161389f565b6120783382612bff565b6120ea5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610a05565b610a3e8383836125c1565b60008281526007602090815260408083206001600160a01b038516845290915290205460ff16610c685760008281526007602090815260408083206001600160a01b03851684529091529020805460ff191660011790556121533390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008281526007602090815260408083206001600160a01b038516845290915290205460ff1615610c685760008281526007602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60065460ff1661226c5760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610a05565b6006805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b610a3e83838360405180602001604052806000815250611a53565b600680546001600160a01b038381166101008181027fffffffffffffffffffffff0000000000000000000000000000000000000000ff85161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8251604080518083016020019091528181529060005b818110156123ae57600085858360405160200161237793929190614038565b60408051601f198184030181529190528051602091820120888401820151188584018201526123a7915082613dc5565b9050612358565b50509392505050565b60065460ff161561240a5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610a05565b6006805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586122993390565b610c68338383612cf2565b60008061245684612dc0565b905061246b8361246583612f60565b90612fb4565b949350505050565b6001600160a01b0382166124c95760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610a05565b6000818152600260205260409020546001600160a01b03161561252e5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610a05565b61253a60008383612fd8565b6001600160a01b0382166000908152600360205260408120805460019290612563908490613dc5565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b826001600160a01b03166125d482610e65565b6001600160a01b0316146126505760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610a05565b6001600160a01b0382166126cb5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610a05565b6126d6838383612fd8565b6126e16000826129cc565b6001600160a01b038316600090815260036020526040812080546001929061270a90849061404a565b90915550506001600160a01b0382166000908152600360205260408120805460019290612738908490613dc5565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6127a33383612bff565b6128155760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610a05565b610af284848484613051565b60606008805461090d90613d16565b6060816000036128575750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612881578061286b81613ddd565b915061287a9050600a83613db1565b915061285b565b60008167ffffffffffffffff81111561289c5761289c613a86565b6040519080825280601f01601f1916602001820160405280156128c6576020820181803683370190505b5090505b841561246b576128db60018361404a565b91506128e8600a86614061565b6128f3906030613dc5565b60f81b81838151811061290857612908613d50565b60200101906001600160f81b031916908160001a90535061292a600a86613db1565b94506128ca565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061299457506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806108f857507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316146108f8565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612a0182610e65565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60606000612a49836002613d7c565b612a54906002613dc5565b67ffffffffffffffff811115612a6c57612a6c613a86565b6040519080825280601f01601f191660200182016040528015612a96576020820181803683370190505b509050600360fc1b81600081518110612ab157612ab1613d50565b60200101906001600160f81b031916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110612afc57612afc613d50565b60200101906001600160f81b031916908160001a9053506000612b20846002613d7c565b612b2b906001613dc5565b90505b6001811115612bb0577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110612b6c57612b6c613d50565b1a60f81b828281518110612b8257612b82613d50565b60200101906001600160f81b031916908160001a90535060049490941c93612ba981614075565b9050612b2e565b508315611c6d5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610a05565b6000818152600260205260408120546001600160a01b0316612c785760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a05565b6000612c8383610e65565b9050806001600160a01b0316846001600160a01b03161480612cbe5750836001600160a01b0316612cb384610990565b6001600160a01b0316145b8061246b57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff1661246b565b816001600160a01b0316836001600160a01b031603612d535760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610a05565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b600080612dd06080840184613e40565b905067ffffffffffffffff811115612dea57612dea613a86565b604051908082528060200260200182016040528015612e13578160200160208202803683370190505b50905060005b612e266080850185613e40565b9050811015612e9957612e6a612e3f6080860186613e40565b83818110612e4f57612e4f613d50565b905060400201803603810190612e65919061408c565b6130da565b828281518110612e7c57612e7c613d50565b602090810291909101015280612e9181613ddd565b915050612e19565b50611c6d7f49477d37766db4c5ba7f42ffe0e96cc718f291f2ebafd1c21f5b496ca3fda94584356020860135612ed56060880160408901613df6565b612ee56080890160608a0161390c565b86604051602001612ef691906140eb565b60408051601f19818403018152828252805160209182012090830197909752810194909452606084019290925261ffff1660808301526001600160a01b031660a082015260c081019190915260e0016040516020818303038152906040528051906020012061313e565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c015b604051602081830303815290604052805190602001209050919050565b6000806000612fc385856131a7565b91509150612fd081613212565b509392505050565b60065460ff1615610a3e5760405162461bcd60e51b815260206004820152602b60248201527f4552433732315061757361626c653a20746f6b656e207472616e73666572207760448201527f68696c65207061757365640000000000000000000000000000000000000000006064820152608401610a05565b61305c8484846125c1565b613068848484846133c8565b610af25760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610a05565b8051602080830151604051600093612f97937f397e04204c1e1a60ee8724b71f8244e10ab5f2e9009854d80f602bda21b59ebb939192019283526001600160a01b039190911660208301526bffffffffffffffffffffffff16604082015260600190565b60006108f861314b61351f565b836040517f19010000000000000000000000000000000000000000000000000000000000006020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b60008082516041036131dd5760208301516040840151606085015160001a6131d187828585613646565b94509450505050610bb3565b825160400361320657602083015160408401516131fb868383613733565b935093505050610bb3565b50600090506002610bb3565b600081600481111561322657613226614121565b0361322e5750565b600181600481111561324257613242614121565b0361328f5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610a05565b60028160048111156132a3576132a3614121565b036132f05760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610a05565b600381600481111561330457613304614121565b0361335c5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610a05565b600481600481111561337057613370614121565b03610ddf5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610a05565b60006001600160a01b0384163b1561351457604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061340c903390899088908890600401614137565b6020604051808303816000875af1925050508015613447575060408051601f3d908101601f1916820190925261344491810190614173565b60015b6134fa573d808015613475576040519150601f19603f3d011682016040523d82523d6000602084013e61347a565b606091505b5080516000036134f25760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610a05565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061246b565b506001949350505050565b6000306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614801561357857507f000000000000000000000000000000000000000000000000000000000000000046145b156135a257507f000000000000000000000000000000000000000000000000000000000000000090565b50604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561367d575060009050600361372a565b8460ff16601b1415801561369557508460ff16601c14155b156136a6575060009050600461372a565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156136fa573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166137235760006001925092505061372a565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831660ff84901c601b0161376d87828885613646565b935093505050935093915050565b82805461378790613d16565b90600052602060002090601f0160209004810192826137a957600085556137ef565b82601f106137c257805160ff19168380011785556137ef565b828001600101855582156137ef579182015b828111156137ef5782518255916020019190600101906137d4565b506137fb9291506137ff565b5090565b5b808211156137fb5760008155600101613800565b6001600160e01b031981168114610ddf57600080fd5b60006020828403121561383c57600080fd5b8135611c6d81613814565b60005b8381101561386257818101518382015260200161384a565b83811115610af25750506000910152565b6000815180845261388b816020860160208601613847565b601f01601f19169290920160200192915050565b602081526000611c6d6020830184613873565b6000602082840312156138c457600080fd5b5035919050565b6001600160a01b0381168114610ddf57600080fd5b600080604083850312156138f357600080fd5b82356138fe816138cb565b946020939093013593505050565b60006020828403121561391e57600080fd5b8135611c6d816138cb565b60008060006060848603121561393e57600080fd5b8335613949816138cb565b92506020840135613959816138cb565b929592945050506040919091013590565b6000806040838503121561397d57600080fd5b50508035926020909101359150565b6000806040838503121561399f57600080fd5b8235915060208301356139b1816138cb565b809150509250929050565b602080825282518282018190526000919060409081850190868401855b82811015613a0757815180516001600160a01b031685528601518685015292840192908501906001016139d9565b5091979650505050505050565b60008060208385031215613a2757600080fd5b823567ffffffffffffffff80821115613a3f57600080fd5b818501915085601f830112613a5357600080fd5b813581811115613a6257600080fd5b866020828501011115613a7457600080fd5b60209290920196919550909350505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115613ab757613ab7613a86565b604051601f8501601f19908116603f01168101908282118183101715613adf57613adf613a86565b81604052809350858152868686011115613af857600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215613b2457600080fd5b813567ffffffffffffffff811115613b3b57600080fd5b8201601f81018413613b4c57600080fd5b61246b84823560208401613a9c565b8015158114610ddf57600080fd5b60008060408385031215613b7c57600080fd5b8235613b87816138cb565b915060208301356139b181613b5b565b600082601f830112613ba857600080fd5b611c6d83833560208501613a9c565b60008060408385031215613bca57600080fd5b823567ffffffffffffffff80821115613be257600080fd5b9084019060a08287031215613bf657600080fd5b90925060208401359080821115613c0c57600080fd5b50613c1985828601613b97565b9150509250929050565b60008060408385031215613c3657600080fd5b8235613c41816138cb565b915060208301356139b1816138cb565b60008060008060808587031215613c6757600080fd5b8435613c72816138cb565b93506020850135613c82816138cb565b925060408501359150606085013567ffffffffffffffff811115613ca557600080fd5b613cb187828801613b97565b91505092959194509250565b602080825282518282018190526000919060409081850190868401855b82811015613a0757815180516001600160a01b031685528601516bffffffffffffffffffffffff16868501529284019290850190600101613cda565b600181811c90821680613d2a57607f821691505b602082108103613d4a57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615613d9657613d96613d66565b500290565b634e487b7160e01b600052601260045260246000fd5b600082613dc057613dc0613d9b565b500490565b60008219821115613dd857613dd8613d66565b500190565b600060018201613def57613def613d66565b5060010190565b600060208284031215613e0857600080fd5b813561ffff81168114611c6d57600080fd5b600061ffff808316818516808303821115613e3757613e37613d66565b01949350505050565b6000808335601e19843603018112613e5757600080fd5b83018035915067ffffffffffffffff821115613e7257600080fd5b6020019150600681901b3603821315610bb357600080fd5b6bffffffffffffffffffffffff81168114610ddf57600080fd5b8135613eaf816138cb565b6001600160a01b03811690506001600160a01b031981818454161783556020840135613eda81613e8a565b60a01b1617905550565b600060208284031215613ef657600080fd5b8135611c6d81613e8a565b600060ff821660ff8103613f1757613f17613d66565b60010192915050565b600061ffff83811690831681811015613f3b57613f3b613d66565b039392505050565b60008351613f55818460208801613847565b835190830190613f69818360208801613847565b7f2e6a736f6e0000000000000000000000000000000000000000000000000000009101908152600501949350505050565b600060208284031215613fac57600080fd5b8151611c6d81613b5b565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351613fef816017850160208801613847565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000601791840191820152835161402c816028840160208801613847565b01602801949350505050565b82848237909101908152602001919050565b60008282101561405c5761405c613d66565b500390565b60008261407057614070613d9b565b500690565b60008161408457614084613d66565b506000190190565b60006040828403121561409e57600080fd5b6040516040810181811067ffffffffffffffff821117156140c1576140c1613a86565b60405282356140cf816138cb565b815260208301356140df81613e8a565b60208201529392505050565b815160009082906020808601845b83811015614115578151855293820193908201906001016140f9565b50929695505050505050565b634e487b7160e01b600052602160045260246000fd5b60006001600160a01b038087168352808616602084015250836040830152608060608301526141696080830184613873565b9695505050505050565b60006020828403121561418557600080fd5b8151611c6d8161381456fea2646970667358221220164f7eab46b0909bb5d086fde02804ddb2e80f4cd991b0599e013dc5ff5cdfde64736f6c634300080d0033339759585899103d2ace64958e37e18ccb0504652c81d4a1b8aa80fe2126ab95000000000000000000000000edf40f29af0162a68a9f244006351b18748770650000000000000000000000007c41777f0d21f8b1dcc66ac76c61f5f225a037a20000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000000000000000000000000000000000000000220000000000000000000000000000000000000000000000000000000000000028000000000000000000000000000000000000000000000000000000000000002c0000000000000000000000000000000000000000000000000000000000000005068747470733a2f2f6c616c612e6d7970696e6174612e636c6f75642f697066732f516d597144633174426971446f6e51663474474c4a586e37584b645a35453262584a7a6e6d3866487968376a77562f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004f68747470733a2f2f6c616c612e6d7970696e6174612e636c6f75642f697066732f516d5542625a4c6a36424d316b447271687148466e6d46556b4b4868584a35504a705636683542664b796e7a61320000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002b4c414c4120782054686520576f6c66206f662057616c6c20537472656574204d6f76696520506f7374657200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044c614c610000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000013100000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106102bb5760003560e01c806372f12a5d1161016e578063b88d4fde116100cb578063d547741f1161007f578063e985e9c511610064578063e985e9c5146107de578063f2fde38b14610827578063f87422541461084757600080fd5b8063d547741f146107a9578063e8a3d485146107c957600080fd5b8063c87b56dd116100b0578063c87b56dd14610735578063cad96cca14610755578063d53913931461077557600080fd5b8063b88d4fde146106e8578063bb3bafd61461070857600080fd5b806395d89b4111610122578063a22cb46511610107578063a22cb46514610695578063a37066f2146106b5578063b3c373d4146106c857600080fd5b806395d89b411461066b578063a217fddf1461068057600080fd5b80638da5cb5b116101535780638da5cb5b146105e257806391d1485414610605578063938e3d7b1461064b57600080fd5b806372f12a5d146105ad5780638456cb59146105cd57600080fd5b80633b345a871161021c5780635c975abb116101d05780636352211e116101b55780636352211e1461055857806370a0823114610578578063715018a61461059857600080fd5b80635c975abb1461052057806362084b5f1461053857600080fd5b806341f434341161020157806341f43434146104b057806342842e0e146104d25780635282ffbe146104f257600080fd5b80633b345a871461046e5780633f4ba83a1461049b57600080fd5b806323b872dd116102735780632a55205a116102585780632a55205a146103ef5780632f2ff15d1461042e57806336568abe1461044e57600080fd5b806323b872dd14610391578063248a9ca3146103b157600080fd5b8063081812fc116102a4578063081812fc14610317578063095ea7b31461034f5780631e85fa831461037157600080fd5b806301ffc9a7146102c057806306fdde03146102f5575b600080fd5b3480156102cc57600080fd5b506102e06102db36600461382a565b61087b565b60405190151581526020015b60405180910390f35b34801561030157600080fd5b5061030a6108fe565b6040516102ec919061389f565b34801561032357600080fd5b506103376103323660046138b2565b610990565b6040516001600160a01b0390911681526020016102ec565b34801561035b57600080fd5b5061036f61036a3660046138e0565b610a2a565b005b34801561037d57600080fd5b5061036f61038c36600461390c565b610a43565b34801561039d57600080fd5b5061036f6103ac366004613929565b610acd565b3480156103bd57600080fd5b506103e16103cc3660046138b2565b60009081526007602052604090206001015490565b6040519081526020016102ec565b3480156103fb57600080fd5b5061040f61040a36600461396a565b610af8565b604080516001600160a01b0390931683526020830191909152016102ec565b34801561043a57600080fd5b5061036f61044936600461398c565b610bba565b34801561045a57600080fd5b5061036f61046936600461398c565b610be0565b34801561047a57600080fd5b5061048e6104893660046138b2565b610c6c565b6040516102ec91906139bc565b3480156104a757600080fd5b5061036f610dac565b3480156104bc57600080fd5b506103376daaeb6d7670e522a718067333cd4e81565b3480156104de57600080fd5b5061036f6104ed366004613929565b610de2565b3480156104fe57600080fd5b50600d5461050d9061ffff1681565b60405161ffff90911681526020016102ec565b34801561052c57600080fd5b5060065460ff166102e0565b34801561054457600080fd5b5061033761055336600461390c565b610e07565b34801561056457600080fd5b506103376105733660046138b2565b610e65565b34801561058457600080fd5b506103e161059336600461390c565b610ef0565b3480156105a457600080fd5b5061036f610f8a565b3480156105b957600080fd5b5061030a6105c8366004613a14565b610ff6565b3480156105d957600080fd5b5061036f6111bf565b3480156105ee57600080fd5b5060065461010090046001600160a01b0316610337565b34801561061157600080fd5b506102e061062036600461398c565b60009182526007602090815260408084206001600160a01b0393909316845291905290205460ff1690565b34801561065757600080fd5b5061036f610666366004613b12565b6111f2565b34801561067757600080fd5b5061030a611260565b34801561068c57600080fd5b506103e1600081565b3480156106a157600080fd5b5061036f6106b0366004613b69565b61126f565b6103e16106c3366004613bb7565b611283565b3480156106d457600080fd5b5061036f6106e3366004613c23565b61192e565b3480156106f457600080fd5b5061036f610703366004613c51565b611a53565b34801561071457600080fd5b506107286107233660046138b2565b611a80565b6040516102ec9190613cbd565b34801561074157600080fd5b5061030a6107503660046138b2565b611bb1565b34801561076157600080fd5b506107286107703660046138b2565b611c74565b34801561078157600080fd5b506103e17f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b3480156107b557600080fd5b5061036f6107c436600461398c565b611c7f565b3480156107d557600080fd5b5061030a611ca5565b3480156107ea57600080fd5b506102e06107f9366004613c23565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561083357600080fd5b5061036f61084236600461390c565b611cb4565b34801561085357600080fd5b506103e17f339759585899103d2ace64958e37e18ccb0504652c81d4a1b8aa80fe2126ab9581565b60007f35269336000000000000000000000000000000000000000000000000000000006001600160e01b03198316016108b657506001919050565b7fd5aadfa6000000000000000000000000000000000000000000000000000000006001600160e01b03198316016108ef57506001919050565b6108f882611d99565b92915050565b60606000805461090d90613d16565b80601f016020809104026020016040519081016040528092919081815260200182805461093990613d16565b80156109865780601f1061095b57610100808354040283529160200191610986565b820191906000526020600020905b81548152906001019060200180831161096957829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610a0e5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b81610a3481611dd7565b610a3e8383611ec2565b505050565b7f339759585899103d2ace64958e37e18ccb0504652c81d4a1b8aa80fe2126ab95610a6e8133611fee565b6001600160a01b0382166000818152600f602090815260409182902080546001600160a01b031916905590519182527f3cf3f03aca77c37f516ee2ec9ca29bcfffa32df990af3342b31252c905b9d02b91015b60405180910390a15050565b826001600160a01b0381163314610ae757610ae733611dd7565b610af284848461206e565b50505050565b6000806000610b0685611a80565b90508051600003610b1e576000809250925050610bb3565b6000805b8251811015610b8b57612710838281518110610b4057610b40613d50565b6020026020010151602001516bffffffffffffffffffffffff1687610b659190613d7c565b610b6f9190613db1565b610b799083613dc5565b9150610b8481613ddd565b9050610b22565b5081600081518110610b9f57610b9f613d50565b602002602001015160000151819350935050505b9250929050565b600082815260076020526040902060010154610bd68133611fee565b610a3e83836120f5565b6001600160a01b0381163314610c5e5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608401610a05565b610c688282612197565b5050565b60606000600b5467ffffffffffffffff811115610c8b57610c8b613a86565b604051908082528060200260200182016040528015610cd057816020015b6040805180820190915260008082526020820152815260200190600190039081610ca95790505b50905060005b600b54811015610da5576000600c8281548110610cf557610cf5613d50565b6000918252602080832060408051808201909152600290930201805461ffff16835260010154908201819052909250610d2d90610e65565b90506000612710836000015161ffff1688610d489190613d7c565b610d529190613db1565b90506040518060400160405280836001600160a01b0316815260200182815250858581518110610d8457610d84613d50565b60200260200101819052505050508080610d9d90613ddd565b915050610cd6565b5092915050565b7f339759585899103d2ace64958e37e18ccb0504652c81d4a1b8aa80fe2126ab95610dd78133611fee565b610ddf61221a565b50565b826001600160a01b0381163314610dfc57610dfc33611dd7565b610af28484846122b6565b6001600160a01b038082166000908152600f60205260408120549091165b6001600160a01b038181166000908152600f602052604090205416156108f8576001600160a01b039081166000908152600f602052604090205416610e25565b6000818152600260205260408120546001600160a01b0316806108f85760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610a05565b60006001600160a01b038216610f6e5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610a05565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b03610100909104163314610fea5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a05565b610ff460006122d1565b565b60607f339759585899103d2ace64958e37e18ccb0504652c81d4a1b8aa80fe2126ab956110238133611fee565b60006009805461103290613d16565b9050116110815760405162461bcd60e51b815260206004820152601860248201527f456e6372797074656420555249206973206e6f742073657400000000000000006044820152606401610a05565b6111166009805461109190613d16565b80601f01602080910402602001604051908101604052809291908181526020018280546110bd90613d16565b801561110a5780601f106110df5761010080835404028352916020019161110a565b820191906000526020600020905b8154815290600101906020018083116110ed57829003601f168201915b50505050508585612342565b805161112a9160089160209091019061377b565b506008805461113890613d16565b80601f016020809104026020016040519081016040528092919081815260200182805461116490613d16565b80156111b15780601f10611186576101008083540402835291602001916111b1565b820191906000526020600020905b81548152906001019060200180831161119457829003601f168201915b505050505091505092915050565b7f339759585899103d2ace64958e37e18ccb0504652c81d4a1b8aa80fe2126ab956111ea8133611fee565b610ddf6123b7565b7f339759585899103d2ace64958e37e18ccb0504652c81d4a1b8aa80fe2126ab9561121d8133611fee565b815161123090600a90602085019061377b565b507fd5ee5eaf65263bab5d569890714d123ad48a9e54409d35e71d374f3dd300bba082604051610ac1919061389f565b60606001805461090d90613d16565b8161127981611dd7565b610a3e838361243f565b600080611290848461244a565b600d549091506127109061ffff166112ae6060870160408801613df6565b6112b89190613e1a565b61ffff16111561130a5760405162461bcd60e51b815260206004820152601860248201527f4e6f206d6f72652073686172657320617661696c61626c6500000000000000006044820152606401610a05565b6001600160a01b03811660009081527fa4bfd7afe708e2e87e7f0e2ad9b4d545417e0f795f57b5c5ab5d799c565a04f4602052604090205460ff166113b75760405162461bcd60e51b815260206004820152602160248201527f5369676e617475726520696e76616c6964206f7220756e617574686f72697a6560448201527f64000000000000000000000000000000000000000000000000000000000000006064820152608401610a05565b836020013534101561140b5760405162461bcd60e51b815260206004820152601c60248201527f496e73756666696369656e742066756e647320746f2072656465656d000000006044820152606401610a05565b61141b608085016060860161390c565b6001600160a01b0316336001600160a01b0316146114a15760405162461bcd60e51b815260206004820152602860248201527f566f75636865722069732069737375656420666f72206120646966666572656e60448201527f742077616c6c65740000000000000000000000000000000000000000000000006064820152608401610a05565b6114b16060850160408601613df6565b600d546114c2919061ffff16613e1a565b600d805461ffff191661ffff9290921691909117905560408051808201825260009181906114f69060608901908901613df6565b61ffff90811682528735602092830152600c80546001808201835560009290925284517fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c76002909202918201805461ffff19169190941617909255918301517fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c890910155600b5491925061158a9190613dc5565b600b5584356000908152600e60205260408120816115ab6080890189613e40565b9050905060005b8160ff168160ff16101561170657826115ce60808b018b613e40565b8360ff168181106115e1576115e1613d50565b8354600181018555600094855260209094206040909102929092019291909101905061160d8282613ea4565b5061161d905060808a018a613e40565b8260ff1681811061163057611630613d50565b90506040020160200160208101906116489190613ee4565b6116529085613e1a565b935060006001600160a01b0316611691848360ff168154811061167757611677613d50565b6000918252602090912001546001600160a01b0316610e07565b6001600160a01b0316146116f6576116b7838260ff168154811061167757611677613d50565b838260ff16815481106116cc576116cc613d50565b600091825260209091200180546001600160a01b0319166001600160a01b03929092169190911790555b6116ff81613f01565b90506115b2565b506127108361ffff1611156117835760405162461bcd60e51b815260206004820152602260248201527f526f79616c746965732063616e6e6f74206265206d6f7265207468616e20313060448201527f30250000000000000000000000000000000000000000000000000000000000006064820152608401610a05565b600d546117a0906201000090046001600160a01b03168935612473565b60005b8160ff168160ff1610156118975760006127106117c360808c018c613e40565b8460ff168181106117d6576117d6613d50565b90506040020160200160208101906117ee9190613ee4565b611806906bffffffffffffffffffffffff1634613d7c565b6118109190613db1565b9050600061182160808c018c613e40565b8460ff1681811061183457611834613d50565b61184a926020604090920201908101915061390c565b6040519091506001600160a01b0382169083156108fc029084906000818181858888f19350505050158015611883573d6000803e3d6000fd5b5050508061189090613f01565b90506117a3565b50600d546118b6906201000090046001600160a01b0316338a356125c1565b6000612710346118c68683613f20565b61ffff166118d49190613d7c565b6118de9190613db1565b600d546040519192506201000090046001600160a01b0316906108fc8315029083906000818181858888f1935050505015801561191f573d6000803e3d6000fd5b50509635979650505050505050565b7f339759585899103d2ace64958e37e18ccb0504652c81d4a1b8aa80fe2126ab956119598133611fee565b6001600160a01b038281166000908152600f602052604090205416156119e75760405162461bcd60e51b815260206004820152603060248201527f526f79616c7479206f7665727269646520666f72206e6577206164647265737360448201527f20616c7265616479206578697374732e000000000000000000000000000000006064820152608401610a05565b6001600160a01b038381166000818152600f602090815260409182902080546001600160a01b031916948716948517905581519283528201929092527fec5d32c0d1960d433f27759a92fe14ef0127f8830909d4060dcba398fa320c81910160405180910390a1505050565b836001600160a01b0381163314611a6d57611a6d33611dd7565b611a7985858585612799565b5050505050565b6000818152600e60209081526040808320805482518185028101850190935280835260609493849084015b82821015611b1057600084815260209081902060408051808201909152908401546001600160a01b03811682527401000000000000000000000000000000000000000090046bffffffffffffffffffffffff1681830152825260019092019101611aab565b50505050905060005b8151811015610da55760006001600160a01b0316611b53838381518110611b4257611b42613d50565b602002602001015160000151610e07565b6001600160a01b031614611ba157611b76828281518110611b4257611b42613d50565b828281518110611b8857611b88613d50565b60209081029190910101516001600160a01b0390911690525b611baa81613ddd565b9050611b19565b6000818152600260205260409020546060906001600160a01b0316611c185760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610a05565b6000611c22612821565b90506000815111611c425760405180602001604052806000815250611c6d565b80611c4c84612830565b604051602001611c5d929190613f43565b6040516020818303038152906040525b9392505050565b60606108f882611a80565b600082815260076020526040902060010154611c9b8133611fee565b610a3e8383612197565b6060600a805461090d90613d16565b6006546001600160a01b03610100909104163314611d145760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a05565b6001600160a01b038116611d905760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610a05565b610ddf816122d1565b60006001600160e01b031982167f7965db0b0000000000000000000000000000000000000000000000000000000014806108f857506108f882612931565b6daaeb6d7670e522a718067333cd4e3b15610ddf576040517fc61711340000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611e5d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e819190613f9a565b610ddf576040517fede71dcc0000000000000000000000000000000000000000000000000000000081526001600160a01b0382166004820152602401610a05565b6000611ecd82610e65565b9050806001600160a01b0316836001600160a01b031603611f565760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610a05565b336001600160a01b0382161480611f725750611f7281336107f9565b611fe45760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610a05565b610a3e83836129cc565b60008281526007602090815260408083206001600160a01b038516845290915290205460ff16610c685761202c816001600160a01b03166014612a3a565b612037836020612a3a565b604051602001612048929190613fb7565b60408051601f198184030181529082905262461bcd60e51b8252610a059160040161389f565b6120783382612bff565b6120ea5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610a05565b610a3e8383836125c1565b60008281526007602090815260408083206001600160a01b038516845290915290205460ff16610c685760008281526007602090815260408083206001600160a01b03851684529091529020805460ff191660011790556121533390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008281526007602090815260408083206001600160a01b038516845290915290205460ff1615610c685760008281526007602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60065460ff1661226c5760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610a05565b6006805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b610a3e83838360405180602001604052806000815250611a53565b600680546001600160a01b038381166101008181027fffffffffffffffffffffff0000000000000000000000000000000000000000ff85161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8251604080518083016020019091528181529060005b818110156123ae57600085858360405160200161237793929190614038565b60408051601f198184030181529190528051602091820120888401820151188584018201526123a7915082613dc5565b9050612358565b50509392505050565b60065460ff161561240a5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610a05565b6006805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586122993390565b610c68338383612cf2565b60008061245684612dc0565b905061246b8361246583612f60565b90612fb4565b949350505050565b6001600160a01b0382166124c95760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610a05565b6000818152600260205260409020546001600160a01b03161561252e5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610a05565b61253a60008383612fd8565b6001600160a01b0382166000908152600360205260408120805460019290612563908490613dc5565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b826001600160a01b03166125d482610e65565b6001600160a01b0316146126505760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610a05565b6001600160a01b0382166126cb5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610a05565b6126d6838383612fd8565b6126e16000826129cc565b6001600160a01b038316600090815260036020526040812080546001929061270a90849061404a565b90915550506001600160a01b0382166000908152600360205260408120805460019290612738908490613dc5565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6127a33383612bff565b6128155760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610a05565b610af284848484613051565b60606008805461090d90613d16565b6060816000036128575750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612881578061286b81613ddd565b915061287a9050600a83613db1565b915061285b565b60008167ffffffffffffffff81111561289c5761289c613a86565b6040519080825280601f01601f1916602001820160405280156128c6576020820181803683370190505b5090505b841561246b576128db60018361404a565b91506128e8600a86614061565b6128f3906030613dc5565b60f81b81838151811061290857612908613d50565b60200101906001600160f81b031916908160001a90535061292a600a86613db1565b94506128ca565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061299457506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806108f857507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316146108f8565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612a0182610e65565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60606000612a49836002613d7c565b612a54906002613dc5565b67ffffffffffffffff811115612a6c57612a6c613a86565b6040519080825280601f01601f191660200182016040528015612a96576020820181803683370190505b509050600360fc1b81600081518110612ab157612ab1613d50565b60200101906001600160f81b031916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110612afc57612afc613d50565b60200101906001600160f81b031916908160001a9053506000612b20846002613d7c565b612b2b906001613dc5565b90505b6001811115612bb0577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110612b6c57612b6c613d50565b1a60f81b828281518110612b8257612b82613d50565b60200101906001600160f81b031916908160001a90535060049490941c93612ba981614075565b9050612b2e565b508315611c6d5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610a05565b6000818152600260205260408120546001600160a01b0316612c785760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a05565b6000612c8383610e65565b9050806001600160a01b0316846001600160a01b03161480612cbe5750836001600160a01b0316612cb384610990565b6001600160a01b0316145b8061246b57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff1661246b565b816001600160a01b0316836001600160a01b031603612d535760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610a05565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b600080612dd06080840184613e40565b905067ffffffffffffffff811115612dea57612dea613a86565b604051908082528060200260200182016040528015612e13578160200160208202803683370190505b50905060005b612e266080850185613e40565b9050811015612e9957612e6a612e3f6080860186613e40565b83818110612e4f57612e4f613d50565b905060400201803603810190612e65919061408c565b6130da565b828281518110612e7c57612e7c613d50565b602090810291909101015280612e9181613ddd565b915050612e19565b50611c6d7f49477d37766db4c5ba7f42ffe0e96cc718f291f2ebafd1c21f5b496ca3fda94584356020860135612ed56060880160408901613df6565b612ee56080890160608a0161390c565b86604051602001612ef691906140eb565b60408051601f19818403018152828252805160209182012090830197909752810194909452606084019290925261ffff1660808301526001600160a01b031660a082015260c081019190915260e0016040516020818303038152906040528051906020012061313e565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c015b604051602081830303815290604052805190602001209050919050565b6000806000612fc385856131a7565b91509150612fd081613212565b509392505050565b60065460ff1615610a3e5760405162461bcd60e51b815260206004820152602b60248201527f4552433732315061757361626c653a20746f6b656e207472616e73666572207760448201527f68696c65207061757365640000000000000000000000000000000000000000006064820152608401610a05565b61305c8484846125c1565b613068848484846133c8565b610af25760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610a05565b8051602080830151604051600093612f97937f397e04204c1e1a60ee8724b71f8244e10ab5f2e9009854d80f602bda21b59ebb939192019283526001600160a01b039190911660208301526bffffffffffffffffffffffff16604082015260600190565b60006108f861314b61351f565b836040517f19010000000000000000000000000000000000000000000000000000000000006020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b60008082516041036131dd5760208301516040840151606085015160001a6131d187828585613646565b94509450505050610bb3565b825160400361320657602083015160408401516131fb868383613733565b935093505050610bb3565b50600090506002610bb3565b600081600481111561322657613226614121565b0361322e5750565b600181600481111561324257613242614121565b0361328f5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610a05565b60028160048111156132a3576132a3614121565b036132f05760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610a05565b600381600481111561330457613304614121565b0361335c5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610a05565b600481600481111561337057613370614121565b03610ddf5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610a05565b60006001600160a01b0384163b1561351457604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061340c903390899088908890600401614137565b6020604051808303816000875af1925050508015613447575060408051601f3d908101601f1916820190925261344491810190614173565b60015b6134fa573d808015613475576040519150601f19603f3d011682016040523d82523d6000602084013e61347a565b606091505b5080516000036134f25760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610a05565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061246b565b506001949350505050565b6000306001600160a01b037f000000000000000000000000aa4e6ac8f7617136775845444914f91b9e509ead1614801561357857507f000000000000000000000000000000000000000000000000000000000000000146145b156135a257507f61248911e31581919c0f8b7e0b803dee225133556ea035598e722ca41b30cf8f90565b50604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6020808301919091527f1ead6215247b723c866a70545b6e539d27c9f672201935e549e4ee280d53d45e828401527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561367d575060009050600361372a565b8460ff16601b1415801561369557508460ff16601c14155b156136a6575060009050600461372a565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156136fa573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166137235760006001925092505061372a565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831660ff84901c601b0161376d87828885613646565b935093505050935093915050565b82805461378790613d16565b90600052602060002090601f0160209004810192826137a957600085556137ef565b82601f106137c257805160ff19168380011785556137ef565b828001600101855582156137ef579182015b828111156137ef5782518255916020019190600101906137d4565b506137fb9291506137ff565b5090565b5b808211156137fb5760008155600101613800565b6001600160e01b031981168114610ddf57600080fd5b60006020828403121561383c57600080fd5b8135611c6d81613814565b60005b8381101561386257818101518382015260200161384a565b83811115610af25750506000910152565b6000815180845261388b816020860160208601613847565b601f01601f19169290920160200192915050565b602081526000611c6d6020830184613873565b6000602082840312156138c457600080fd5b5035919050565b6001600160a01b0381168114610ddf57600080fd5b600080604083850312156138f357600080fd5b82356138fe816138cb565b946020939093013593505050565b60006020828403121561391e57600080fd5b8135611c6d816138cb565b60008060006060848603121561393e57600080fd5b8335613949816138cb565b92506020840135613959816138cb565b929592945050506040919091013590565b6000806040838503121561397d57600080fd5b50508035926020909101359150565b6000806040838503121561399f57600080fd5b8235915060208301356139b1816138cb565b809150509250929050565b602080825282518282018190526000919060409081850190868401855b82811015613a0757815180516001600160a01b031685528601518685015292840192908501906001016139d9565b5091979650505050505050565b60008060208385031215613a2757600080fd5b823567ffffffffffffffff80821115613a3f57600080fd5b818501915085601f830112613a5357600080fd5b813581811115613a6257600080fd5b866020828501011115613a7457600080fd5b60209290920196919550909350505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115613ab757613ab7613a86565b604051601f8501601f19908116603f01168101908282118183101715613adf57613adf613a86565b81604052809350858152868686011115613af857600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215613b2457600080fd5b813567ffffffffffffffff811115613b3b57600080fd5b8201601f81018413613b4c57600080fd5b61246b84823560208401613a9c565b8015158114610ddf57600080fd5b60008060408385031215613b7c57600080fd5b8235613b87816138cb565b915060208301356139b181613b5b565b600082601f830112613ba857600080fd5b611c6d83833560208501613a9c565b60008060408385031215613bca57600080fd5b823567ffffffffffffffff80821115613be257600080fd5b9084019060a08287031215613bf657600080fd5b90925060208401359080821115613c0c57600080fd5b50613c1985828601613b97565b9150509250929050565b60008060408385031215613c3657600080fd5b8235613c41816138cb565b915060208301356139b1816138cb565b60008060008060808587031215613c6757600080fd5b8435613c72816138cb565b93506020850135613c82816138cb565b925060408501359150606085013567ffffffffffffffff811115613ca557600080fd5b613cb187828801613b97565b91505092959194509250565b602080825282518282018190526000919060409081850190868401855b82811015613a0757815180516001600160a01b031685528601516bffffffffffffffffffffffff16868501529284019290850190600101613cda565b600181811c90821680613d2a57607f821691505b602082108103613d4a57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615613d9657613d96613d66565b500290565b634e487b7160e01b600052601260045260246000fd5b600082613dc057613dc0613d9b565b500490565b60008219821115613dd857613dd8613d66565b500190565b600060018201613def57613def613d66565b5060010190565b600060208284031215613e0857600080fd5b813561ffff81168114611c6d57600080fd5b600061ffff808316818516808303821115613e3757613e37613d66565b01949350505050565b6000808335601e19843603018112613e5757600080fd5b83018035915067ffffffffffffffff821115613e7257600080fd5b6020019150600681901b3603821315610bb357600080fd5b6bffffffffffffffffffffffff81168114610ddf57600080fd5b8135613eaf816138cb565b6001600160a01b03811690506001600160a01b031981818454161783556020840135613eda81613e8a565b60a01b1617905550565b600060208284031215613ef657600080fd5b8135611c6d81613e8a565b600060ff821660ff8103613f1757613f17613d66565b60010192915050565b600061ffff83811690831681811015613f3b57613f3b613d66565b039392505050565b60008351613f55818460208801613847565b835190830190613f69818360208801613847565b7f2e6a736f6e0000000000000000000000000000000000000000000000000000009101908152600501949350505050565b600060208284031215613fac57600080fd5b8151611c6d81613b5b565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351613fef816017850160208801613847565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000601791840191820152835161402c816028840160208801613847565b01602801949350505050565b82848237909101908152602001919050565b60008282101561405c5761405c613d66565b500390565b60008261407057614070613d9b565b500690565b60008161408457614084613d66565b506000190190565b60006040828403121561409e57600080fd5b6040516040810181811067ffffffffffffffff821117156140c1576140c1613a86565b60405282356140cf816138cb565b815260208301356140df81613e8a565b60208201529392505050565b815160009082906020808601845b83811015614115578151855293820193908201906001016140f9565b50929695505050505050565b634e487b7160e01b600052602160045260246000fd5b60006001600160a01b038087168352808616602084015250836040830152608060608301526141696080830184613873565b9695505050505050565b60006020828403121561418557600080fd5b8151611c6d8161381456fea2646970667358221220164f7eab46b0909bb5d086fde02804ddb2e80f4cd991b0599e013dc5ff5cdfde64736f6c634300080d0033

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

000000000000000000000000edf40f29af0162a68a9f244006351b18748770650000000000000000000000007c41777f0d21f8b1dcc66ac76c61f5f225a037a20000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000000000000000000000000000000000000000220000000000000000000000000000000000000000000000000000000000000028000000000000000000000000000000000000000000000000000000000000002c0000000000000000000000000000000000000000000000000000000000000005068747470733a2f2f6c616c612e6d7970696e6174612e636c6f75642f697066732f516d597144633174426971446f6e51663474474c4a586e37584b645a35453262584a7a6e6d3866487968376a77562f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004f68747470733a2f2f6c616c612e6d7970696e6174612e636c6f75642f697066732f516d5542625a4c6a36424d316b447271687148466e6d46556b4b4868584a35504a705636683542664b796e7a61320000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002b4c414c4120782054686520576f6c66206f662057616c6c20537472656574204d6f76696520506f7374657200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044c614c610000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000013100000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : minter (address): 0xedF40F29Af0162A68a9f244006351B1874877065
Arg [1] : merchant (address): 0x7C41777f0d21F8b1DCC66aC76C61F5F225a037A2
Arg [2] : uri (string): https://lala.mypinata.cloud/ipfs/QmYqDc1tBiqDonQf4tGLJXn7XKdZ5E2bXJznm8fHyh7jwV/
Arg [3] : encypted_uri (bytes): 0x
Arg [4] : contract_uri (string): https://lala.mypinata.cloud/ipfs/QmUBbZLj6BM1kDrqhqHFnmFUkKHhXJ5PJpV6h5BfKynza2
Arg [5] : name (string): LALA x The Wolf of Wall Street Movie Poster
Arg [6] : symbol_name (string): LaLa
Arg [7] : version (string): 1

-----Encoded View---------------
24 Constructor Arguments found :
Arg [0] : 000000000000000000000000edf40f29af0162a68a9f244006351b1874877065
Arg [1] : 0000000000000000000000007c41777f0d21f8b1dcc66ac76c61f5f225a037a2
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [4] : 00000000000000000000000000000000000000000000000000000000000001a0
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000220
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000280
Arg [7] : 00000000000000000000000000000000000000000000000000000000000002c0
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000050
Arg [9] : 68747470733a2f2f6c616c612e6d7970696e6174612e636c6f75642f69706673
Arg [10] : 2f516d597144633174426971446f6e51663474474c4a586e37584b645a354532
Arg [11] : 62584a7a6e6d3866487968376a77562f00000000000000000000000000000000
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [13] : 000000000000000000000000000000000000000000000000000000000000004f
Arg [14] : 68747470733a2f2f6c616c612e6d7970696e6174612e636c6f75642f69706673
Arg [15] : 2f516d5542625a4c6a36424d316b447271687148466e6d46556b4b4868584a35
Arg [16] : 504a705636683542664b796e7a61320000000000000000000000000000000000
Arg [17] : 000000000000000000000000000000000000000000000000000000000000002b
Arg [18] : 4c414c4120782054686520576f6c66206f662057616c6c20537472656574204d
Arg [19] : 6f76696520506f73746572000000000000000000000000000000000000000000
Arg [20] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [21] : 4c614c6100000000000000000000000000000000000000000000000000000000
Arg [22] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [23] : 3100000000000000000000000000000000000000000000000000000000000000


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

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