Contract 0x480a0f4e360E8964e68858Dd231c2922f1df45Ef 1

 
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x92c59c1a5285bace2052c5d3d001239a9b6bf64e19755553c4213f60e64f888eCreate Order339359932022-10-04 21:40:0948 mins ago0xe609549239157ff1341015308b1bff447ba7efe8 IN  0x480a0f4e360e8964e68858dd231c2922f1df45ef0 MATIC0.002253433171 30.099955541
0xbf8b6d3127369c22a6673d363546dfd62c88b4840c6cabc4e9b91735990f4796Create Order339359822022-10-04 21:39:4749 mins ago0xe609549239157ff1341015308b1bff447ba7efe8 IN  0x480a0f4e360e8964e68858dd231c2922f1df45ef0 MATIC0.00232312698 31.030881999
0x681360dfe0e1b20dfa0aff569bb876560ac36592da24de3cb21041a57a4b3bd3Create Order339345632022-10-04 20:50:561 hr 37 mins ago0xfe5e2ac97cf0d9d894f5997e6a55fd2ba9b82313 IN  0x480a0f4e360e8964e68858dd231c2922f1df45ef0 MATIC0.005408747151 30.675395877
0xe1c7a14d8ea438bccc90f9fb5d7611ae1772afb520711b52b15e596e9ad23325Create Order339337032022-10-04 20:21:192 hrs 7 mins ago0xb1083bc819cd32c1be93a3b03beced392cf75227 IN  0x480a0f4e360e8964e68858dd231c2922f1df45ef0 MATIC0.004978950002 30.000000013
0x1d21feddf1114f91c2083370076c77288709ab7c36e21fb6670d32ed79c431bdCreate Order339336862022-10-04 20:20:412 hrs 8 mins ago0xb1083bc819cd32c1be93a3b03beced392cf75227 IN  0x480a0f4e360e8964e68858dd231c2922f1df45ef0 MATIC0.002287500075 30.555000011
0xfcb22c63474183806a47427b37287e2cb4401e7d5c7d57ea303b3d32deb02ccaCreate Order339336562022-10-04 20:19:412 hrs 9 mins ago0xb1083bc819cd32c1be93a3b03beced392cf75227 IN  0x480a0f4e360e8964e68858dd231c2922f1df45ef0 MATIC0.005071427236 30.555000012
0xf503e7bd92a6e27152bd6aac5af67ef3aaba8863914430c1c989c5bde85516f1Create Order339336322022-10-04 20:18:532 hrs 9 mins ago0xb1083bc819cd32c1be93a3b03beced392cf75227 IN  0x480a0f4e360e8964e68858dd231c2922f1df45ef0 MATIC0.004979310001 30.000000011
0x2cce9baa89a42083f53f2a914bac6f3763a7e631beb19b367d2907ac842993adCreate Order339336122022-10-04 20:18:092 hrs 10 mins ago0xb1083bc819cd32c1be93a3b03beced392cf75227 IN  0x480a0f4e360e8964e68858dd231c2922f1df45ef0 MATIC0.004998929974 30.118208997
0x9ab3c89c05076d0e51fa59f06a78d749fc4ecb3fd47c114318091c8cf581f03aCreate Order339332542022-10-04 20:05:532 hrs 22 mins ago0x10d203406d8542418f14fe3d354a5c85707235a6 IN  0x480a0f4e360e8964e68858dd231c2922f1df45ef0 MATIC0.005289300002 30.000000014
0xe16d9448e38e57ac5af3e990134163aaa820db7f93459ed75f03f629e6d785e6Execute Order339332152022-10-04 20:04:312 hrs 24 mins ago0x901c24d7d92ccbd01e1432fab146a779d74278b2 IN  0x480a0f4e360e8964e68858dd231c2922f1df45ef0 MATIC0.006764100002 30.000000012
0xe661d331aeb2fc401bdc12d33e038522dcb2b0a0e903de0578b42ff0a3717cc7Execute Order339311542022-10-04 18:53:413 hrs 35 mins ago0xe0a46c097c698e8b14a61b6e9690fa1821aed880 IN  0x480a0f4e360e8964e68858dd231c2922f1df45ef0 MATIC0.007138380004 30.000000019
0xb8bb31b5e069fa80f692fe6dd51ae9690fc3bbaf508f8c9d284227990b218d8aExecute Order339308272022-10-04 18:42:273 hrs 46 mins ago0xca5b437dbc3c7f441f99c698d4b1fe1aa0599346 IN  0x480a0f4e360e8964e68858dd231c2922f1df45ef0 MATIC0.007262370003 30.000000015
0xf5499e00e6b42d2fc4e03028ff053e2622e0abe8079dc513d38eff1038afcec0Execute Order339308222022-10-04 18:42:173 hrs 46 mins ago0xca5b437dbc3c7f441f99c698d4b1fe1aa0599346 IN  0x480a0f4e360e8964e68858dd231c2922f1df45ef0 MATIC0.007193220003 30.000000015
0xcde17d0033f2ecfa5e5a3b0f8b42620a73a29c07f8416df124d2476a67a09e89Execute Order339308182022-10-04 18:42:093 hrs 46 mins ago0xca5b437dbc3c7f441f99c698d4b1fe1aa0599346 IN  0x480a0f4e360e8964e68858dd231c2922f1df45ef0 MATIC0.006824370002 30.000000013
0xf7d9604512c3af1ac02021bff8334cd4e553e955e5e804cd258e4148e1cf26c8Execute Order339307962022-10-04 18:41:213 hrs 47 mins ago0xca5b437dbc3c7f441f99c698d4b1fe1aa0599346 IN  0x480a0f4e360e8964e68858dd231c2922f1df45ef0 MATIC0.007014930003 30.000000013
0xbdc1ea6a9b72500ccd7956ec7c4fd1361cfb67e072b9519c917ab5f769dd60afExecute Order339307922022-10-04 18:41:133 hrs 47 mins ago0xca5b437dbc3c7f441f99c698d4b1fe1aa0599346 IN  0x480a0f4e360e8964e68858dd231c2922f1df45ef0 MATIC0.007262730003 30.000000013
0x1bd9713fe96b86f3c5b2ad476e73880b35465881cb4efda7ddbe12ed709d28e7Execute Order339307892022-10-04 18:41:073 hrs 47 mins ago0xca5b437dbc3c7f441f99c698d4b1fe1aa0599346 IN  0x480a0f4e360e8964e68858dd231c2922f1df45ef0 MATIC0.006395130002 30.000000014
0x3398bacc9b277cf6b68065eb03907f8631232e4e8cdd38b42a0adccf050b0728Execute Order339307832022-10-04 18:40:553 hrs 47 mins ago0xca5b437dbc3c7f441f99c698d4b1fe1aa0599346 IN  0x480a0f4e360e8964e68858dd231c2922f1df45ef0 MATIC0.006395490002 30.000000014
0x14d7295c168585b7a4f7c8570e4697fdbace602810a2417759914caf5366addeExecute Order339307792022-10-04 18:40:473 hrs 48 mins ago0xca5b437dbc3c7f441f99c698d4b1fe1aa0599346 IN  0x480a0f4e360e8964e68858dd231c2922f1df45ef0 MATIC0.007262730003 30.000000015
0x78ab2dc0f5429c924cf333fa4d33f533631f715eee5dd04c8cd88d61b68a77e9Execute Order339307752022-10-04 18:40:393 hrs 48 mins ago0xca5b437dbc3c7f441f99c698d4b1fe1aa0599346 IN  0x480a0f4e360e8964e68858dd231c2922f1df45ef0 MATIC0.007337730003 30.000000014
0x9958c150c35a800b62ac168b2d38aca3898eb5dd595d88fef158445888fa65e2Execute Order339307732022-10-04 18:40:353 hrs 48 mins ago0xca5b437dbc3c7f441f99c698d4b1fe1aa0599346 IN  0x480a0f4e360e8964e68858dd231c2922f1df45ef0 MATIC0.006395130002 30.000000012
0x82e2adc6899520cb4907cbee31728c82c31118d33b400aac34bac72898046d9aExecute Order339307692022-10-04 18:40:273 hrs 48 mins ago0xca5b437dbc3c7f441f99c698d4b1fe1aa0599346 IN  0x480a0f4e360e8964e68858dd231c2922f1df45ef0 MATIC0.006539130002 30.000000013
0x539423a43f1185c2d19408183290d53cd26883245b0f5752d3fcc6f8ed31b1c1Execute Order339307642022-10-04 18:40:173 hrs 48 mins ago0xca5b437dbc3c7f441f99c698d4b1fe1aa0599346 IN  0x480a0f4e360e8964e68858dd231c2922f1df45ef0 MATIC0.007346130003 30.000000015
0xde722c8eb2a47c4f6eea973090def68a52ad4765fcd20a2d707f5ffa477f7477Execute Order339307612022-10-04 18:40:113 hrs 48 mins ago0xca5b437dbc3c7f441f99c698d4b1fe1aa0599346 IN  0x480a0f4e360e8964e68858dd231c2922f1df45ef0 MATIC0.006824730003 30.000000014
0xaa1bbce368215a1e3fe09ff08f4e9709160dacd57be0be4e5aa6737c99dc2267Execute Order339307572022-10-04 18:40:033 hrs 48 mins ago0xca5b437dbc3c7f441f99c698d4b1fe1aa0599346 IN  0x480a0f4e360e8964e68858dd231c2922f1df45ef0 MATIC0.007262370003 30.000000015
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MarketplaceV2

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
Yes with 1 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 12 : MarketplaceV2.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

import "../commons/Ownable.sol";
import "../commons/Pausable.sol";
import "../commons/ContextMixin.sol";
import "../commons/NativeMetaTransaction.sol";
import "../interfaces/IERC721Verifiable.sol";
import "../interfaces/IRoyaltiesManager.sol";



contract MarketplaceV2 is Ownable, Pausable, NativeMetaTransaction {
  using Address for address;

  IERC20 public acceptedToken;

  struct Order {
    // Order ID
    bytes32 id;
    // Owner of the NFT
    address seller;
    // NFT registry address
    address nftAddress;
    // Price (in wei) for the published item
    uint256 price;
    // Time when this sale ends
    uint256 expiresAt;
  }

  // From ERC721 registry assetId to Order (to avoid asset collision)
  mapping (address => mapping(uint256 => Order)) public orderByAssetId;

  address public feesCollector;
  IRoyaltiesManager public royaltiesManager;

  uint256 public feesCollectorCutPerMillion;
  uint256 public royaltiesCutPerMillion;
  uint256 public publicationFeeInWei;


  bytes4 public constant InterfaceId_ValidateFingerprint = bytes4(
    keccak256("verifyFingerprint(uint256,bytes)")
  );

  bytes4 public constant ERC721_Interface = bytes4(0x80ac58cd);

  // EVENTS
  event OrderCreated(
    bytes32 id,
    uint256 indexed assetId,
    address indexed seller,
    address nftAddress,
    uint256 priceInWei,
    uint256 expiresAt
  );
  event OrderSuccessful(
    bytes32 id,
    uint256 indexed assetId,
    address indexed seller,
    address nftAddress,
    uint256 totalPrice,
    address indexed buyer
  );
  event OrderCancelled(
    bytes32 id,
    uint256 indexed assetId,
    address indexed seller,
    address nftAddress
  );

  event ChangedPublicationFee(uint256 publicationFee);
  event ChangedFeesCollectorCutPerMillion(uint256 feesCollectorCutPerMillion);
  event ChangedRoyaltiesCutPerMillion(uint256 royaltiesCutPerMillion);
  event FeesCollectorSet(address indexed oldFeesCollector, address indexed newFeesCollector);
  event RoyaltiesManagerSet(IRoyaltiesManager indexed oldRoyaltiesManager, IRoyaltiesManager indexed newRoyaltiesManager);


  /**
    * @dev Initialize this contract. Acts as a constructor
    * @param _owner - owner
    * @param _feesCollector - fees collector
    * @param _acceptedToken - Address of the ERC20 accepted for this marketplace
    * @param _royaltiesManager - Royalties manager contract
    * @param _feesCollectorCutPerMillion - fees collector cut per million
    * @param _royaltiesCutPerMillion - royalties cut per million
    */
  constructor (
    address _owner,
    address _feesCollector,
    address _acceptedToken,
    IRoyaltiesManager _royaltiesManager,
    uint256 _feesCollectorCutPerMillion,
    uint256 _royaltiesCutPerMillion
  )  {
    // EIP712 init
    _initializeEIP712('Decentraland Marketplace', '2');

    // Address init
    setFeesCollector(_feesCollector);
    setRoyaltiesManager(_royaltiesManager);

    // Fee init
    setFeesCollectorCutPerMillion(_feesCollectorCutPerMillion);
    setRoyaltiesCutPerMillion(_royaltiesCutPerMillion);

    require(_owner != address(0), "MarketplaceV2#constructor: INVALID_OWNER");
    transferOwnership(_owner);

    require(_acceptedToken.isContract(), "MarketplaceV2#constructor: INVALID_ACCEPTED_TOKEN");
    acceptedToken = IERC20(_acceptedToken);
  }


  /**
    * @dev Sets the publication fee that's charged to users to publish items
    * @param _publicationFee - Fee amount in wei this contract charges to publish an item
    */
  function setPublicationFee(uint256 _publicationFee) external onlyOwner {
    publicationFeeInWei = _publicationFee;
    emit ChangedPublicationFee(publicationFeeInWei);
  }

  /**
    * @dev Sets the share cut for the fees collector of the contract that's
    *  charged to the seller on a successful sale
    * @param _feesCollectorCutPerMillion - fees for the collector
    */
  function setFeesCollectorCutPerMillion(uint256 _feesCollectorCutPerMillion) public onlyOwner {
    feesCollectorCutPerMillion = _feesCollectorCutPerMillion;

    require(
      feesCollectorCutPerMillion + royaltiesCutPerMillion < 1000000,
      "MarketplaceV2#setFeesCollectorCutPerMillion: TOTAL_FEES_MUST_BE_BETWEEN_0_AND_999999"
    );

    emit ChangedFeesCollectorCutPerMillion(feesCollectorCutPerMillion);
  }

  /**
    * @dev Sets the share cut for the royalties that's
    *  charged to the seller on a successful sale
    * @param _royaltiesCutPerMillion - fees for royalties
    */
  function setRoyaltiesCutPerMillion(uint256 _royaltiesCutPerMillion) public onlyOwner {
    royaltiesCutPerMillion = _royaltiesCutPerMillion;

    require(
      feesCollectorCutPerMillion + royaltiesCutPerMillion < 1000000,
      "MarketplaceV2#setRoyaltiesCutPerMillion: TOTAL_FEES_MUST_BE_BETWEEN_0_AND_999999"
    );

    emit ChangedRoyaltiesCutPerMillion(royaltiesCutPerMillion);
  }

  /**
  * @notice Set the fees collector
  * @param _newFeesCollector - fees collector
  */
  function setFeesCollector(address _newFeesCollector) onlyOwner public {
      require(_newFeesCollector != address(0), "MarketplaceV2#setFeesCollector: INVALID_FEES_COLLECTOR");

      emit FeesCollectorSet(feesCollector, _newFeesCollector);
      feesCollector = _newFeesCollector;
  }

     /**
  * @notice Set the royalties manager
  * @param _newRoyaltiesManager - royalties manager
  */
  function setRoyaltiesManager(IRoyaltiesManager _newRoyaltiesManager) onlyOwner public {
      require(address(_newRoyaltiesManager).isContract(), "MarketplaceV2#setRoyaltiesManager: INVALID_ROYALTIES_MANAGER");


      emit RoyaltiesManagerSet(royaltiesManager, _newRoyaltiesManager);
      royaltiesManager = _newRoyaltiesManager;
  }


  /**
    * @dev Creates a new order
    * @param nftAddress - Non fungible registry address
    * @param assetId - ID of the published NFT
    * @param priceInWei - Price in Wei for the supported coin
    * @param expiresAt - Duration of the order (in hours)
    */
  function createOrder(
    address nftAddress,
    uint256 assetId,
    uint256 priceInWei,
    uint256 expiresAt
  )
    public
    whenNotPaused
  {
    _createOrder(
      nftAddress,
      assetId,
      priceInWei,
      expiresAt
    );
  }

  /**
    * @dev Cancel an already published order
    *  can only be canceled by seller or the contract owner
    * @param nftAddress - Address of the NFT registry
    * @param assetId - ID of the published NFT
    */
  function cancelOrder(address nftAddress, uint256 assetId) public whenNotPaused {
    _cancelOrder(nftAddress, assetId);
  }

  /**
    * @dev Executes the sale for a published NFT and checks for the asset fingerprint
    * @param nftAddress - Address of the NFT registry
    * @param assetId - ID of the published NFT
    * @param price - Order price
    * @param fingerprint - Verification info for the asset
    */
  function safeExecuteOrder(
    address nftAddress,
    uint256 assetId,
    uint256 price,
    bytes memory fingerprint
  )
   public
   whenNotPaused
  {
    _executeOrder(
      nftAddress,
      assetId,
      price,
      fingerprint
    );
  }

  /**
    * @dev Executes the sale for a published NFT
    * @param nftAddress - Address of the NFT registry
    * @param assetId - ID of the published NFT
    * @param price - Order price
    */
  function executeOrder(
    address nftAddress,
    uint256 assetId,
    uint256 price
  )
   public
   whenNotPaused
  {
    _executeOrder(
      nftAddress,
      assetId,
      price,
      ""
    );
  }

  /**
    * @dev Creates a new order
    * @param nftAddress - Non fungible registry address
    * @param assetId - ID of the published NFT
    * @param priceInWei - Price in Wei for the supported coin
    * @param expiresAt - Duration of the order (in hours)
    */
  function _createOrder(
    address nftAddress,
    uint256 assetId,
    uint256 priceInWei,
    uint256 expiresAt
  )
    internal
  {
    _requireERC721(nftAddress);

    address sender = _msgSender();

    IERC721Verifiable nftRegistry = IERC721Verifiable(nftAddress);
    address assetOwner = nftRegistry.ownerOf(assetId);

    require(sender == assetOwner, "MarketplaceV2#_createOrder: NOT_ASSET_OWNER");
    require(
      nftRegistry.getApproved(assetId) == address(this) || nftRegistry.isApprovedForAll(assetOwner, address(this)),
      "The contract is not authorized to manage the asset"
    );
    require(priceInWei > 0, "Price should be bigger than 0");
    require(expiresAt > block.timestamp + 1 minutes, "MarketplaceV2#_createOrder: INVALID_EXPIRES_AT");

    bytes32 orderId = keccak256(
      abi.encodePacked(
        block.timestamp,
        assetOwner,
        assetId,
        nftAddress,
        priceInWei
      )
    );

    orderByAssetId[nftAddress][assetId] = Order({
      id: orderId,
      seller: assetOwner,
      nftAddress: nftAddress,
      price: priceInWei,
      expiresAt: expiresAt
    });

    // Check if there's a publication fee and
    // transfer the amount to marketplace owner
    if (publicationFeeInWei > 0) {
      require(
        acceptedToken.transferFrom(sender, feesCollector, publicationFeeInWei),
        "MarketplaceV2#_createOrder: TRANSFER_FAILED"
      );
    }

    emit OrderCreated(
      orderId,
      assetId,
      assetOwner,
      nftAddress,
      priceInWei,
      expiresAt
    );
  }

  /**
    * @dev Cancel an already published order
    *  can only be canceled by seller or the contract owner
    * @param nftAddress - Address of the NFT registry
    * @param assetId - ID of the published NFT
    */
  function _cancelOrder(address nftAddress, uint256 assetId) internal returns (Order memory) {
    address sender = _msgSender();
    Order memory order = orderByAssetId[nftAddress][assetId];

    require(order.id != 0, "MarketplaceV2#_cancelOrder: INVALID_ORDER");
    require(order.seller == sender || sender == owner(), "MarketplaceV2#_cancelOrder: UNAUTHORIZED_USER");

    bytes32 orderId = order.id;
    address orderSeller = order.seller;
    address orderNftAddress = order.nftAddress;
    delete orderByAssetId[nftAddress][assetId];

    emit OrderCancelled(
      orderId,
      assetId,
      orderSeller,
      orderNftAddress
    );

    return order;
  }

  /**
    * @dev Executes the sale for a published NFT
    * @param nftAddress - Address of the NFT registry
    * @param assetId - ID of the published NFT
    * @param price - Order price
    * @param fingerprint - Verification info for the asset
    */
  function _executeOrder(
    address nftAddress,
    uint256 assetId,
    uint256 price,
    bytes memory fingerprint
  )
   internal returns (Order memory)
  {
    _requireERC721(nftAddress);

    address sender = _msgSender();

    IERC721Verifiable nftRegistry = IERC721Verifiable(nftAddress);

    if (nftRegistry.supportsInterface(InterfaceId_ValidateFingerprint)) {
      require(
        nftRegistry.verifyFingerprint(assetId, fingerprint),
        "MarketplaceV2#_executeOrder: INVALID_FINGERPRINT"
      );
    }
    Order memory order = orderByAssetId[nftAddress][assetId];

    require(order.id != 0, "MarketplaceV2#_executeOrder: ASSET_NOT_FOR_SALE");

    require(order.seller != address(0), "MarketplaceV2#_executeOrder: INVALID_SELLER");
    require(order.seller != sender, "MarketplaceV2#_executeOrder: SENDER_IS_SELLER");
    require(order.price == price, "MarketplaceV2#_executeOrder: PRICE_MISMATCH");
    require(block.timestamp < order.expiresAt, "MarketplaceV2#_executeOrder: ORDER_EXPIRED");
    require(order.seller == nftRegistry.ownerOf(assetId), "MarketplaceV2#_executeOrder: SELLER_NOT_OWNER");


    delete orderByAssetId[nftAddress][assetId];

    uint256 feesCollectorShareAmount;
    uint256 royaltiesShareAmount;
    address royaltiesReceiver;

    // Royalties share
    if (royaltiesCutPerMillion > 0) {
      royaltiesShareAmount = (price * royaltiesCutPerMillion) / 1000000;

      (bool success, bytes memory res) = address(royaltiesManager).staticcall(
        abi.encodeWithSelector(
            royaltiesManager.getRoyaltiesReceiver.selector,
            address(nftRegistry),
            assetId
        )
      );

      if (success) {
        (royaltiesReceiver) = abi.decode(res, (address));
        if (royaltiesReceiver != address(0)) {
          require(
            acceptedToken.transferFrom(sender, royaltiesReceiver, royaltiesShareAmount),
            "MarketplaceV2#_executeOrder: TRANSFER_FEES_TO_ROYALTIES_RECEIVER_FAILED"
          );
        }
      }
    }

    // Fees collector share
    {
      feesCollectorShareAmount = (price * feesCollectorCutPerMillion) / 1000000;
      uint256 totalFeeCollectorShareAmount = feesCollectorShareAmount;

      if (royaltiesShareAmount > 0 && royaltiesReceiver == address(0)) {
        totalFeeCollectorShareAmount += royaltiesShareAmount;
      }

      if (totalFeeCollectorShareAmount > 0) {
        require(
          acceptedToken.transferFrom(sender, feesCollector, totalFeeCollectorShareAmount),
          "MarketplaceV2#_executeOrder: TRANSFER_FEES_TO_FEES_COLLECTOR_FAILED"
        );
      }
    }

    // Transfer sale amount to seller
    require(
      acceptedToken.transferFrom(sender, order.seller, price - royaltiesShareAmount - feesCollectorShareAmount),
      "MarketplaceV2#_executeOrder: TRANSFER_AMOUNT_TO_SELLER_FAILED"
    );

    // Transfer asset owner
    nftRegistry.safeTransferFrom(
      order.seller,
      sender,
      assetId
    );

    emit OrderSuccessful(
      order.id,
      assetId,
      order.seller,
      nftAddress,
      price,
      sender
    );

    return order;
  }

  function _requireERC721(address nftAddress) internal view {
    require(nftAddress.isContract(), "MarketplaceV2#_requireERC721: INVALID_NFT_ADDRESS");

    IERC721 nftRegistry = IERC721(nftAddress);
    require(
      nftRegistry.supportsInterface(ERC721_Interface),
      "MarketplaceV2#_requireERC721: INVALID_ERC721_IMPLEMENTATION"
    );
  }
}

File 2 of 12 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 3 of 12 : IERC20.sol
// SPDX-License-Identifier: MIT

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

pragma solidity >=0.6.0;

import "./ContextMixin.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 ContextMixin {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), 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 {
        emit OwnershipTransferred(_owner, address(0));
        _owner = 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");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

File 5 of 12 : Pausable.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0;

import "./ContextMixin.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 ContextMixin {
    /**
     * @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 6 of 12 : ContextMixin.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.10;


contract ContextMixin {
    function _msgSender()
        internal
        view
        returns (address sender)
    {
        if (msg.sender == address(this)) {
            bytes memory array = msg.data;
            uint256 index = msg.data.length;
            assembly {
                // Load the 32 bytes word from memory with the address on the lower 20 bytes, and mask those.
                sender := and(
                    mload(add(array, index)),
                    0xffffffffffffffffffffffffffffffffffffffff
                )
            }
        } else {
            sender = msg.sender;
        }
        return sender;
    }
}

File 7 of 12 : NativeMetaTransaction.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.10;


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

contract NativeMetaTransaction is EIP712Base {
    bytes32 private constant META_TRANSACTION_TYPEHASH = keccak256(
        bytes(
            "MetaTransaction(uint256 nonce,address from,bytes functionSignature)"
        )
    );
    event MetaTransactionExecuted(
        address userAddress,
        address relayerAddress,
        bytes functionSignature
    );
    mapping(address => uint256) nonces;

    /*
     * Meta transaction structure.
     * No point of including value field here as if user is doing value transfer then he has the funds to pay for gas
     * He should call the desired function directly in that case.
     */
    struct MetaTransaction {
        uint256 nonce;
        address from;
        bytes functionSignature;
    }

    function executeMetaTransaction(
        address userAddress,
        bytes memory functionSignature,
        bytes32 sigR,
        bytes32 sigS,
        uint8 sigV
    ) public payable returns (bytes memory) {
        MetaTransaction memory metaTx = MetaTransaction({
            nonce: nonces[userAddress],
            from: userAddress,
            functionSignature: functionSignature
        });

        require(
            verify(userAddress, metaTx, sigR, sigS, sigV),
            "NMT#executeMetaTransaction: SIGNER_AND_SIGNATURE_DO_NOT_MATCH"
        );

        // increase nonce for user (to avoid re-use)
        nonces[userAddress] = nonces[userAddress] + 1;

        emit MetaTransactionExecuted(
            userAddress,
            msg.sender,
            functionSignature
        );

        // Append userAddress and relayer address at the end to extract it from calling context
        (bool success, bytes memory returnData) = address(this).call(
            abi.encodePacked(functionSignature, userAddress)
        );
        require(success, "NMT#executeMetaTransaction: CALL_FAILED");

        return returnData;
    }

    function hashMetaTransaction(MetaTransaction memory metaTx)
        internal
        pure
        returns (bytes32)
    {
        return
            keccak256(
                abi.encode(
                    META_TRANSACTION_TYPEHASH,
                    metaTx.nonce,
                    metaTx.from,
                    keccak256(metaTx.functionSignature)
                )
            );
    }

    function getNonce(address user) public view returns (uint256 nonce) {
        nonce = nonces[user];
    }

    function verify(
        address signer,
        MetaTransaction memory metaTx,
        bytes32 sigR,
        bytes32 sigS,
        uint8 sigV
    ) internal view returns (bool) {
        require(signer != address(0), "NMT#verify: INVALID_SIGNER");
        return
            signer ==
            ecrecover(
                toTypedMessageHash(hashMetaTransaction(metaTx)),
                sigV,
                sigR,
                sigS
            );
    }
}

File 8 of 12 : IERC721Verifiable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.10;

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";


interface IERC721Verifiable is IERC721 {
  function verifyFingerprint(uint256, bytes memory) external view returns (bool);
}

File 9 of 12 : IRoyaltiesManager.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.10;

interface IRoyaltiesManager {
  function getRoyaltiesReceiver(address _contractAddress, uint256 _tokenId) external view returns (address);
}

File 10 of 12 : EIP712Base.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.10;


contract EIP712Base {
    struct EIP712Domain {
        string name;
        string version;
        address verifyingContract;
        bytes32 salt;
    }

    bytes32 internal constant EIP712_DOMAIN_TYPEHASH = keccak256(
        bytes(
            "EIP712Domain(string name,string version,address verifyingContract,bytes32 salt)"
        )
    );
    bytes32 public domainSeparator;

    // supposed to be called once while initializing.
    // one of the contractsa that inherits this contract follows proxy pattern
    // so it is not possible to do this in a constructor
    function _initializeEIP712(
        string memory name,
        string memory version
    )
        internal
    {
        domainSeparator = keccak256(
            abi.encode(
                EIP712_DOMAIN_TYPEHASH,
                keccak256(bytes(name)),
                keccak256(bytes(version)),
                address(this),
                bytes32(getChainId())
            )
        );
    }

    function getChainId() public view returns (uint256) {
        uint256 id;
        assembly {
            id := chainid()
        }
        return id;
    }

    /**
     * Accept message hash and returns hash message in EIP712 compatible form
     * So that it can be used to recover signer from signature signed using EIP712 formatted data
     * https://eips.ethereum.org/EIPS/eip-712
     * "\\x19" makes the encoding deterministic
     * "\\x01" is the version byte to make it compatible to EIP-191
     */
    function toTypedMessageHash(bytes32 messageHash)
        internal
        view
        returns (bytes32)
    {
        return
            keccak256(
                abi.encodePacked("\x19\x01", domainSeparator, messageHash)
            );
    }
}

File 11 of 12 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_feesCollector","type":"address"},{"internalType":"address","name":"_acceptedToken","type":"address"},{"internalType":"contract IRoyaltiesManager","name":"_royaltiesManager","type":"address"},{"internalType":"uint256","name":"_feesCollectorCutPerMillion","type":"uint256"},{"internalType":"uint256","name":"_royaltiesCutPerMillion","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"feesCollectorCutPerMillion","type":"uint256"}],"name":"ChangedFeesCollectorCutPerMillion","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"publicationFee","type":"uint256"}],"name":"ChangedPublicationFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"royaltiesCutPerMillion","type":"uint256"}],"name":"ChangedRoyaltiesCutPerMillion","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldFeesCollector","type":"address"},{"indexed":true,"internalType":"address","name":"newFeesCollector","type":"address"}],"name":"FeesCollectorSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"userAddress","type":"address"},{"indexed":false,"internalType":"address","name":"relayerAddress","type":"address"},{"indexed":false,"internalType":"bytes","name":"functionSignature","type":"bytes"}],"name":"MetaTransactionExecuted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"id","type":"bytes32"},{"indexed":true,"internalType":"uint256","name":"assetId","type":"uint256"},{"indexed":true,"internalType":"address","name":"seller","type":"address"},{"indexed":false,"internalType":"address","name":"nftAddress","type":"address"}],"name":"OrderCancelled","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"id","type":"bytes32"},{"indexed":true,"internalType":"uint256","name":"assetId","type":"uint256"},{"indexed":true,"internalType":"address","name":"seller","type":"address"},{"indexed":false,"internalType":"address","name":"nftAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"priceInWei","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"expiresAt","type":"uint256"}],"name":"OrderCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"id","type":"bytes32"},{"indexed":true,"internalType":"uint256","name":"assetId","type":"uint256"},{"indexed":true,"internalType":"address","name":"seller","type":"address"},{"indexed":false,"internalType":"address","name":"nftAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"totalPrice","type":"uint256"},{"indexed":true,"internalType":"address","name":"buyer","type":"address"}],"name":"OrderSuccessful","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":"contract IRoyaltiesManager","name":"oldRoyaltiesManager","type":"address"},{"indexed":true,"internalType":"contract IRoyaltiesManager","name":"newRoyaltiesManager","type":"address"}],"name":"RoyaltiesManagerSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"ERC721_Interface","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"InterfaceId_ValidateFingerprint","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"acceptedToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"nftAddress","type":"address"},{"internalType":"uint256","name":"assetId","type":"uint256"}],"name":"cancelOrder","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"nftAddress","type":"address"},{"internalType":"uint256","name":"assetId","type":"uint256"},{"internalType":"uint256","name":"priceInWei","type":"uint256"},{"internalType":"uint256","name":"expiresAt","type":"uint256"}],"name":"createOrder","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"domainSeparator","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"userAddress","type":"address"},{"internalType":"bytes","name":"functionSignature","type":"bytes"},{"internalType":"bytes32","name":"sigR","type":"bytes32"},{"internalType":"bytes32","name":"sigS","type":"bytes32"},{"internalType":"uint8","name":"sigV","type":"uint8"}],"name":"executeMetaTransaction","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"nftAddress","type":"address"},{"internalType":"uint256","name":"assetId","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"}],"name":"executeOrder","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feesCollector","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feesCollectorCutPerMillion","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getChainId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getNonce","outputs":[{"internalType":"uint256","name":"nonce","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"orderByAssetId","outputs":[{"internalType":"bytes32","name":"id","type":"bytes32"},{"internalType":"address","name":"seller","type":"address"},{"internalType":"address","name":"nftAddress","type":"address"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"expiresAt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicationFeeInWei","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"royaltiesCutPerMillion","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"royaltiesManager","outputs":[{"internalType":"contract IRoyaltiesManager","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"nftAddress","type":"address"},{"internalType":"uint256","name":"assetId","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"bytes","name":"fingerprint","type":"bytes"}],"name":"safeExecuteOrder","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newFeesCollector","type":"address"}],"name":"setFeesCollector","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_feesCollectorCutPerMillion","type":"uint256"}],"name":"setFeesCollectorCutPerMillion","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_publicationFee","type":"uint256"}],"name":"setPublicationFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_royaltiesCutPerMillion","type":"uint256"}],"name":"setRoyaltiesCutPerMillion","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IRoyaltiesManager","name":"_newRoyaltiesManager","type":"address"}],"name":"setRoyaltiesManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b506040516200339a3803806200339a8339810160408190526200003491620008dc565b60006200004062000213565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350916000805160206200337a833981519152908290a3506000805460ff60a01b19169055604080518082018252601881527f446563656e7472616c616e64204d61726b6574706c6163650000000000000000602080830191909152825180840190935260018352601960f91b90830152620000dd9162000272565b620000e88562000303565b620000f38362000423565b620000fe8262000558565b620001098162000691565b6001600160a01b038616620001655760405162461bcd60e51b815260206004820152602860248201526000805160206200330b83398151915260448201526724a22fa7aba722a960c11b60648201526084015b60405180910390fd5b6200017086620007b3565b6200018f846001600160a01b0316620008aa60201b62000e491760201c565b620001e65760405162461bcd60e51b815260206004820152603160248201526000805160206200330b83398151915260448201527024a22fa0a1a1a2a82a22a22faa27a5a2a760791b60648201526084016200015c565b5050600380546001600160a01b0319166001600160a01b03939093169290921790915550620009b4915050565b6000333014156200026c57600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b031691506200026f9050565b50335b90565b6040518060800160405280604f81526020016200332b604f9139805190602001208280519060200120828051906020012030620002b4620008b060201b60201c565b60408051602081019690965285019390935260608401919091526001600160a01b0316608083015260a082015260c00160408051601f1981840301815291905280516020909101206001555050565b6200030d62000213565b6001600160a01b031662000320620008b4565b6001600160a01b031614620003495760405162461bcd60e51b81526004016200015c9062000958565b6001600160a01b038116620003c75760405162461bcd60e51b815260206004820152603660248201527f4d61726b6574706c61636556322373657446656573436f6c6c6563746f723a2060448201527f494e56414c49445f464545535f434f4c4c4543544f520000000000000000000060648201526084016200015c565b6005546040516001600160a01b038084169216907f58283f7e46512bbcb30558fa508283f23fac7be18fb20bfdf6d4bbf83c529d5390600090a3600580546001600160a01b0319166001600160a01b0392909216919091179055565b6200042d62000213565b6001600160a01b031662000440620008b4565b6001600160a01b031614620004695760405162461bcd60e51b81526004016200015c9062000958565b62000488816001600160a01b0316620008aa60201b62000e491760201c565b620004fc5760405162461bcd60e51b815260206004820152603c60248201527f4d61726b6574706c616365563223736574526f79616c746965734d616e61676560448201527f723a20494e56414c49445f524f59414c544945535f4d414e414745520000000060648201526084016200015c565b6006546040516001600160a01b038084169216907f7af757e60ce7c97cfab72d633ae4d05ffe9be9afbba020aa2f484a600db8df6d90600090a3600680546001600160a01b0319166001600160a01b0392909216919091179055565b6200056262000213565b6001600160a01b031662000575620008b4565b6001600160a01b0316146200059e5760405162461bcd60e51b81526004016200015c9062000958565b6007819055600854620f424090620005b790836200098d565b10620006525760405162461bcd60e51b815260206004820152605460248201527f4d61726b6574706c61636556322373657446656573436f6c6c6563746f72437560448201527f745065724d696c6c696f6e3a20544f54414c5f464545535f4d5553545f42455f60648201527f4245545745454e5f305f414e445f393939393939000000000000000000000000608482015260a4016200015c565b7fd33ed052f0041ea5512df480eb51801acb8fec4a7e89c6086fdd5caaa650981e6007546040516200068691815260200190565b60405180910390a150565b6200069b62000213565b6001600160a01b0316620006ae620008b4565b6001600160a01b031614620006d75760405162461bcd60e51b81526004016200015c9062000958565b6008819055600754620f424090620006f19083906200098d565b106200077f5760405162461bcd60e51b815260206004820152605060248201527f4d61726b6574706c616365563223736574526f79616c7469657343757450657260448201527f4d696c6c696f6e3a20544f54414c5f464545535f4d5553545f42455f4245545760648201526f45454e5f305f414e445f39393939393960801b608482015260a4016200015c565b7fba54fecf3e91476de2d7bd3248ee80a9060cddc82a6ac0933b232e051eafdaf36008546040516200068691815260200190565b620007bd62000213565b6001600160a01b0316620007d0620008b4565b6001600160a01b031614620007f95760405162461bcd60e51b81526004016200015c9062000958565b6001600160a01b038116620008605760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016200015c565b600080546040516001600160a01b03808516939216916000805160206200337a83398151915291a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b3b151590565b4690565b6000546001600160a01b031690565b6001600160a01b0381168114620008d957600080fd5b50565b60008060008060008060c08789031215620008f657600080fd5b86516200090381620008c3565b60208801519096506200091681620008c3565b60408801519095506200092981620008c3565b60608801519094506200093c81620008c3565b809350506080870151915060a087015190509295509295509295565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60008219821115620009af57634e487b7160e01b600052601160045260246000fd5b500190565b61294780620009c46000396000f3fe6080604052600436106101315760003560e01c80630c53c51c146101365780632b4c32be1461015f5780632d0335ab146101875780633408e470146101cb578063373071f2146101de57806337f82f3714610200578063451c3d801461022257806348f4e32b1461025a5780635c975abb14610270578063688f09da146102955780636a206137146102b55780636f652e1a146102d5578063715018a6146102f55780638780dfcf1461030a5780638da5cb5b1461032a57806393dc06e11461033f578063967b00491461035f5780639b214f771461037f5780639cf160f61461039f578063ae4f1198146103bf578063ae7b0333146103d5578063af8996f1146103f5578063ce2243b414610415578063e61f38511461042b578063f2fde38b146104bd578063f698da25146104dd575b600080fd5b61014961014436600461240a565b6104f3565b60405161015691906124df565b60405180910390f35b34801561016b57600080fd5b5061017a6380ac58cd60e01b81565b60405161015691906124f9565b34801561019357600080fd5b506101bd6101a236600461250e565b6001600160a01b031660009081526002602052604090205490565b604051908152602001610156565b3480156101d757600080fd5b50466101bd565b3480156101ea57600080fd5b506101fe6101f936600461250e565b61070e565b005b34801561020c57600080fd5b5061017a60008051602061289283398151915281565b34801561022e57600080fd5b50600354610242906001600160a01b031681565b6040516001600160a01b039091168152602001610156565b34801561026657600080fd5b506101bd60075481565b34801561027c57600080fd5b5061028561081e565b6040519015158152602001610156565b3480156102a157600080fd5b506101fe6102b036600461250e565b61082e565b3480156102c157600080fd5b506101fe6102d036600461252b565b610945565b3480156102e157600080fd5b506101fe6102f0366004612557565b610979565b34801561030157600080fd5b506101fe6109b0565b34801561031657600080fd5b506101fe610325366004612592565b610a27565b34801561033657600080fd5b50610242610b4b565b34801561034b57600080fd5b506101fe61035a366004612592565b610b5a565b34801561036b57600080fd5b50600654610242906001600160a01b031681565b34801561038b57600080fd5b506101fe61039a3660046125ab565b610c70565b3480156103ab57600080fd5b50600554610242906001600160a01b031681565b3480156103cb57600080fd5b506101bd60095481565b3480156103e157600080fd5b506101fe6103f036600461260d565b610ca8565b34801561040157600080fd5b506101fe610410366004612592565b610ce8565b34801561042157600080fd5b506101bd60085481565b34801561043757600080fd5b5061048961044636600461252b565b600460208181526000938452604080852090915291835291208054600182015460028301546003840154939094015491936001600160a01b039182169391169185565b604080519586526001600160a01b03948516602087015292909316918401919091526060830152608082015260a001610156565b3480156104c957600080fd5b506101fe6104d836600461250e565b610d5c565b3480156104e957600080fd5b506101bd60015481565b60408051606081810183526001600160a01b038816600081815260026020908152908590205484528301529181018690526105318782878787610e4f565b6105a85760405162461bcd60e51b815260206004820152603d60248201527f4e4d5423657865637574654d6574615472616e73616374696f6e3a205349474e60448201527f45525f414e445f5349474e41545552455f444f5f4e4f545f4d4154434800000060648201526084015b60405180910390fd5b6001600160a01b0387166000908152600260205260409020546105cc906001612658565b6001600160a01b0388166000908152600260205260409081902091909155517f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b9061061c90899033908a90612670565b60405180910390a1600080306001600160a01b0316888a6040516020016106449291906126a5565b60408051601f198184030181529082905261065e916126d7565b6000604051808303816000865af19150503d806000811461069b576040519150601f19603f3d011682016040523d82523d6000602084013e6106a0565b606091505b5091509150816107025760405162461bcd60e51b815260206004820152602760248201527f4e4d5423657865637574654d6574615472616e73616374696f6e3a2043414c4c60448201526617d1905253115160ca1b606482015260840161059f565b98975050505050505050565b610716610f2e565b6001600160a01b0316610727610b4b565b6001600160a01b03161461074d5760405162461bcd60e51b815260040161059f906126f3565b6001600160a01b0381166107c25760405162461bcd60e51b815260206004820152603660248201527f4d61726b6574706c61636556322373657446656573436f6c6c6563746f723a2060448201527524a72b20a624a22fa322a2a9afa1a7a62622a1aa27a960511b606482015260840161059f565b6005546040516001600160a01b038084169216907f58283f7e46512bbcb30558fa508283f23fac7be18fb20bfdf6d4bbf83c529d5390600090a3600580546001600160a01b0319166001600160a01b0392909216919091179055565b600054600160a01b900460ff1690565b610836610f2e565b6001600160a01b0316610847610b4b565b6001600160a01b03161461086d5760405162461bcd60e51b815260040161059f906126f3565b6001600160a01b0381163b6108e95760405162461bcd60e51b815260206004820152603c60248201527f4d61726b6574706c616365563223736574526f79616c746965734d616e61676560448201527b391d1024a72b20a624a22fa927aca0a62a24a2a9afa6a0a720a3a2a960211b606482015260840161059f565b6006546040516001600160a01b038084169216907f7af757e60ce7c97cfab72d633ae4d05ffe9be9afbba020aa2f484a600db8df6d90600090a3600680546001600160a01b0319166001600160a01b0392909216919091179055565b61094d61081e565b1561096a5760405162461bcd60e51b815260040161059f90612728565b6109748282610f8b565b505050565b61098161081e565b1561099e5760405162461bcd60e51b815260040161059f90612728565b6109aa848484846111a7565b50505050565b6109b8610f2e565b6001600160a01b03166109c9610b4b565b6001600160a01b0316146109ef5760405162461bcd60e51b815260040161059f906126f3565b600080546040516001600160a01b03909116906000805160206128b2833981519152908390a3600080546001600160a01b0319169055565b610a2f610f2e565b6001600160a01b0316610a40610b4b565b6001600160a01b031614610a665760405162461bcd60e51b815260040161059f906126f3565b6007819055600854620f424090610a7d9083612658565b10610b0d5760405162461bcd60e51b815260206004820152605460248201527f4d61726b6574706c61636556322373657446656573436f6c6c6563746f72437560448201527f745065724d696c6c696f6e3a20544f54414c5f464545535f4d5553545f42455f6064820152734245545745454e5f305f414e445f39393939393960601b608482015260a40161059f565b7fd33ed052f0041ea5512df480eb51801acb8fec4a7e89c6086fdd5caaa650981e600754604051610b4091815260200190565b60405180910390a150565b6000546001600160a01b031690565b610b62610f2e565b6001600160a01b0316610b73610b4b565b6001600160a01b031614610b995760405162461bcd60e51b815260040161059f906126f3565b6008819055600754620f424090610bb1908390612658565b10610c3d5760405162461bcd60e51b815260206004820152605060248201527f4d61726b6574706c616365563223736574526f79616c7469657343757450657260448201527f4d696c6c696f6e3a20544f54414c5f464545535f4d5553545f42455f4245545760648201526f45454e5f305f414e445f39393939393960801b608482015260a40161059f565b7fba54fecf3e91476de2d7bd3248ee80a9060cddc82a6ac0933b232e051eafdaf3600854604051610b4091815260200190565b610c7861081e565b15610c955760405162461bcd60e51b815260040161059f90612728565b610ca184848484611741565b5050505050565b610cb061081e565b15610ccd5760405162461bcd60e51b815260040161059f90612728565b6109aa83838360405180602001604052806000815250611741565b610cf0610f2e565b6001600160a01b0316610d01610b4b565b6001600160a01b031614610d275760405162461bcd60e51b815260040161059f906126f3565b60098190556040518181527fe7fa8737293f41b5dfa0d5c3e552860a06275bed7015581b083c7be7003308ba90602001610b40565b610d64610f2e565b6001600160a01b0316610d75610b4b565b6001600160a01b031614610d9b5760405162461bcd60e51b815260040161059f906126f3565b6001600160a01b038116610e005760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161059f565b600080546040516001600160a01b03808516939216916000805160206128b283398151915291a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b3b151590565b60006001600160a01b038616610ea45760405162461bcd60e51b815260206004820152601a6024820152792726aa11bb32b934b33c9d1024a72b20a624a22fa9a4a3a722a960311b604482015260640161059f565b6001610eb7610eb287612143565b6121c0565b6040805160008152602081018083529290925260ff851690820152606081018690526080810185905260a0016020604051602081039080840390855afa158015610f05573d6000803e3d6000fd5b505050602060405103516001600160a01b0316866001600160a01b031614905095945050505050565b600033301415610f8557600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b03169150610f889050565b50335b90565b610f93612322565b6000610f9d610f2e565b6001600160a01b038086166000908152600460208181526040808420898552825292839020835160a08101855281548082526001830154871693820193909352600282015490951693850193909352600383015460608501529101546080830152919250906110605760405162461bcd60e51b815260206004820152602960248201527f4d61726b6574706c6163655632235f63616e63656c4f726465723a20494e56416044820152682624a22fa7a92222a960b91b606482015260840161059f565b816001600160a01b031681602001516001600160a01b0316148061109c5750611087610b4b565b6001600160a01b0316826001600160a01b0316145b6110fe5760405162461bcd60e51b815260206004820152602d60248201527f4d61726b6574706c6163655632235f63616e63656c4f726465723a20554e415560448201526c2a2427a924ad22a22faaa9a2a960991b606482015260840161059f565b80516020808301516040808501516001600160a01b038a8116600090815260048087528482208c835287528482208281556001810180546001600160a01b031990811690915560028201805490911690556003810183905501558251868152818316958101959095529293909284169189917f0325426328de5b91ae4ad8462ad4076de4bcaf4551e81556185cacde5a425c6b910160405180910390a350919695505050505050565b6111b0846121eb565b60006111ba610f2e565b6040516331a9108f60e11b81526004810186905290915085906000906001600160a01b03831690636352211e90602401602060405180830381865afa158015611207573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061122b9190612752565b9050806001600160a01b0316836001600160a01b0316146112a25760405162461bcd60e51b815260206004820152602b60248201527f4d61726b6574706c6163655632235f6372656174654f726465723a204e4f545f60448201526a20a9a9a2aa2fa7aba722a960a91b606482015260840161059f565b60405163020604bf60e21b81526004810187905230906001600160a01b0384169063081812fc90602401602060405180830381865afa1580156112e9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061130d9190612752565b6001600160a01b0316148061138d575060405163e985e9c560e01b81526001600160a01b03828116600483015230602483015283169063e985e9c590604401602060405180830381865afa158015611369573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061138d919061276f565b6113f45760405162461bcd60e51b815260206004820152603260248201527f54686520636f6e7472616374206973206e6f7420617574686f72697a656420746044820152711bc81b585b9859d9481d1a1948185cdcd95d60721b606482015260840161059f565b600085116114445760405162461bcd60e51b815260206004820152601d60248201527f50726963652073686f756c6420626520626967676572207468616e2030000000604482015260640161059f565b61144f42603c612658565b84116114b45760405162461bcd60e51b815260206004820152602e60248201527f4d61726b6574706c6163655632235f6372656174654f726465723a20494e564160448201526d13125117d1561412549154d7d05560921b606482015260840161059f565b604080514260208201526001600160601b0319606084811b821693830193909352605482018990529189901b90911660748201526088810186905260009060a8016040516020818303038152906040528051906020012090506040518060a00160405280828152602001836001600160a01b03168152602001896001600160a01b0316815260200187815260200186815250600460008a6001600160a01b03166001600160a01b0316815260200190815260200160002060008981526020019081526020016000206000820151816000015560208201518160010160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060408201518160020160006101000a8154816001600160a01b0302191690836001600160a01b031602179055506060820151816003015560808201518160040155905050600060095411156116e0576003546005546009546040516323b872dd60e01b81526001600160a01b03938416936323b872dd9361163d938a939290911691600401612791565b6020604051808303816000875af115801561165c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611680919061276f565b6116e05760405162461bcd60e51b815260206004820152602b60248201527f4d61726b6574706c6163655632235f6372656174654f726465723a205452414e60448201526a14d1915497d1905253115160aa1b606482015260840161059f565b604080518281526001600160a01b038a81166020830152918101889052606081018790529083169088907f84c66c3f7ba4b390e20e8e8233e2a516f3ce34a72749e4f12bd010dfba2380399060800160405180910390a35050505050505050565b611749612322565b611752856121eb565b600061175c610f2e565b6040516301ffc9a760e01b815290915086906001600160a01b038216906301ffc9a79061179b90600080516020612892833981519152906004016124f9565b602060405180830381865afa1580156117b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117dc919061276f565b156118a357604051638f9f4b6360e01b81526001600160a01b03821690638f9f4b639061180f90899088906004016127b5565b602060405180830381865afa15801561182c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611850919061276f565b6118a35760405162461bcd60e51b815260206004820152603060248201526000805160206128d283398151915260448201526f1053125117d1925391d154941492539560821b606482015260840161059f565b6001600160a01b0380881660009081526004602081815260408084208b8552825292839020835160a081018552815480825260018301548716938201939093526002820154909516938501939093526003830154606085015291015460808301526119685760405162461bcd60e51b815260206004820152602f60248201527f4d61726b6574706c6163655632235f657865637574654f726465723a2041535360448201526e45545f4e4f545f464f525f53414c4560881b606482015260840161059f565b60208101516001600160a01b03166119c45760405162461bcd60e51b815260206004820152602b60248201526000805160206128d283398151915260448201526a20a624a22fa9a2a62622a960a91b606482015260840161059f565b826001600160a01b031681602001516001600160a01b03161415611a405760405162461bcd60e51b815260206004820152602d60248201527f4d61726b6574706c6163655632235f657865637574654f726465723a2053454e60448201526c2222a92fa4a9afa9a2a62622a960991b606482015260840161059f565b85816060015114611aa75760405162461bcd60e51b815260206004820152602b60248201527f4d61726b6574706c6163655632235f657865637574654f726465723a2050524960448201526a0868abe9a92a69a82a886960ab1b606482015260840161059f565b80608001514210611b0d5760405162461bcd60e51b815260206004820152602a60248201527f4d61726b6574706c6163655632235f657865637574654f726465723a204f5244604482015269115497d156141254915160b21b606482015260840161059f565b6040516331a9108f60e11b8152600481018890526001600160a01b03831690636352211e90602401602060405180830381865afa158015611b52573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b769190612752565b6001600160a01b031681602001516001600160a01b031614611bf05760405162461bcd60e51b815260206004820152602d60248201527f4d61726b6574706c6163655632235f657865637574654f726465723a2053454c60448201526c2622a92fa727aa2fa7aba722a960991b606482015260840161059f565b6001600160a01b03881660009081526004602081815260408084208b855290915282208281556001810180546001600160a01b0319908116909155600282018054909116905560038101839055018190556008548190819015611e3457620f42406008548a611c5f91906127d6565b611c6991906127f5565b6006546040516001600160a01b038881166024830152604482018e90529294506000928392169063cca1d0b760e01b9060640160408051601f198184030181529181526020820180516001600160e01b03166001600160e01b0319909416939093179092529051611cda91906126d7565b600060405180830381855afa9150503d8060008114611d15576040519150601f19603f3d011682016040523d82523d6000602084013e611d1a565b606091505b50915091508115611e315780806020019051810190611d399190612752565b92506001600160a01b03831615611e31576003546040516323b872dd60e01b81526001600160a01b03909116906323b872dd90611d7e908b9087908990600401612791565b6020604051808303816000875af1158015611d9d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611dc1919061276f565b611e315760405162461bcd60e51b815260206004820152604760248201526000805160206128f283398151915260448201527f4e534645525f464545535f544f5f524f59414c544945535f524543454956455260648201526617d1905253115160ca1b608482015260a40161059f565b50505b620f42406007548a611e4691906127d6565b611e5091906127f5565b9250828215801590611e6957506001600160a01b038216155b15611e7b57611e788382612658565b90505b8015611f69576003546005546040516323b872dd60e01b81526001600160a01b03928316926323b872dd92611eba928c92909116908690600401612791565b6020604051808303816000875af1158015611ed9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611efd919061276f565b611f695760405162461bcd60e51b815260206004820152604360248201526000805160206128f283398151915260448201527f4e534645525f464545535f544f5f464545535f434f4c4c4543544f525f46414960648201526213115160ea1b608482015260a40161059f565b5060035460208501516001600160a01b03909116906323b872dd90889086611f91878f612817565b611f9b9190612817565b6040518463ffffffff1660e01b8152600401611fb993929190612791565b6020604051808303816000875af1158015611fd8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ffc919061276f565b61205c5760405162461bcd60e51b815260206004820152603d60248201526000805160206128f283398151915260448201527f4e534645525f414d4f554e545f544f5f53454c4c45525f4641494c4544000000606482015260840161059f565b6020840151604051632142170760e11b81526001600160a01b038716916342842e0e9161209091908a908f90600401612791565b600060405180830381600087803b1580156120aa57600080fd5b505af11580156120be573d6000803e3d6000fd5b50505050856001600160a01b031684602001516001600160a01b03168b7f695ec315e8a642a74d450a4505eeea53df699b47a7378c7d752e97d5b16eb9bb87600001518f8e60405161212c939291909283526001600160a01b03919091166020830152604082015260600190565b60405180910390a450919998505050505050505050565b600060405180608001604052806043815260200161284f60439139805160209182012083518483015160408087015180519086012090516121a3950193845260208401929092526001600160a01b03166040830152606082015260800190565b604051602081830303815290604052805190602001209050919050565b60015460405161190160f01b60208201526022810191909152604281018290526000906062016121a3565b6001600160a01b0381163b61224a5760405162461bcd60e51b8152602060048201526031602482015260008051602061282f83398151915260448201527056414c49445f4e46545f4144445245535360781b606482015260840161059f565b6040516301ffc9a760e01b815281906001600160a01b038216906301ffc9a79061227f906380ac58cd60e01b906004016124f9565b602060405180830381865afa15801561229c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122c0919061276f565b61231e5760405162461bcd60e51b815260206004820152603b602482015260008051602061282f83398151915260448201527a2b20a624a22fa2a9219b9918afa4a6a82622a6a2a72a20aa24a7a760291b606482015260840161059f565b5050565b6040805160a08101825260008082526020820181905291810182905260608101829052608081019190915290565b6001600160a01b038116811461236557600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261238f57600080fd5b81356001600160401b03808211156123a9576123a9612368565b604051601f8301601f19908116603f011681019082821181831017156123d1576123d1612368565b816040528381528660208588010111156123ea57600080fd5b836020870160208301376000602085830101528094505050505092915050565b600080600080600060a0868803121561242257600080fd5b853561242d81612350565b945060208601356001600160401b0381111561244857600080fd5b6124548882890161237e565b9450506040860135925060608601359150608086013560ff8116811461247957600080fd5b809150509295509295909350565b60005b838110156124a257818101518382015260200161248a565b838111156109aa5750506000910152565b600081518084526124cb816020860160208601612487565b601f01601f19169290920160200192915050565b6020815260006124f260208301846124b3565b9392505050565b6001600160e01b031991909116815260200190565b60006020828403121561252057600080fd5b81356124f281612350565b6000806040838503121561253e57600080fd5b823561254981612350565b946020939093013593505050565b6000806000806080858703121561256d57600080fd5b843561257881612350565b966020860135965060408601359560600135945092505050565b6000602082840312156125a457600080fd5b5035919050565b600080600080608085870312156125c157600080fd5b84356125cc81612350565b9350602085013592506040850135915060608501356001600160401b038111156125f557600080fd5b6126018782880161237e565b91505092959194509250565b60008060006060848603121561262257600080fd5b833561262d81612350565b95602085013595506040909401359392505050565b634e487b7160e01b600052601160045260246000fd5b6000821982111561266b5761266b612642565b500190565b6001600160a01b0384811682528316602082015260606040820181905260009061269c908301846124b3565b95945050505050565b600083516126b7818460208801612487565b60609390931b6001600160601b0319169190920190815260140192915050565b600082516126e9818460208701612487565b9190910192915050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b60006020828403121561276457600080fd5b81516124f281612350565b60006020828403121561278157600080fd5b815180151581146124f257600080fd5b6001600160a01b039384168152919092166020820152604081019190915260600190565b8281526040602082015260006127ce60408301846124b3565b949350505050565b60008160001904831182151516156127f0576127f0612642565b500290565b60008261281257634e487b7160e01b600052601260045260246000fd5b500490565b60008282101561282957612829612642565b50039056fe4d61726b6574706c6163655632235f726571756972654552433732313a20494e4d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e6174757265298f9f4b63fb27ea36c52c6e650320201c8f2c6d7c1dfa95f40f5d5da5239201688be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e04d61726b6574706c6163655632235f657865637574654f726465723a20494e564d61726b6574706c6163655632235f657865637574654f726465723a20545241a26469706673582212205c2d3d79e43d48af0ca47eadeda45dcaf5c1c6ad7f82914b51fa44a1a861668e64736f6c634300080a00334d61726b6574706c616365563223636f6e7374727563746f723a20494e56414c454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c6164647265737320766572696679696e67436f6e74726163742c627974657333322073616c74298be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e00000000000000000000000000e659a116e161d8e502f9036babda51334f2667e000000000000000000000000b08e3e7cc815213304d884c88ca476ebc50eaab2000000000000000000000000a1c57f48f0deb89f569dfbe6e2b7f46d33606fd400000000000000000000000090958d4531258ca11d18396d4174a007edbc2b42000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000061a8

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

0000000000000000000000000e659a116e161d8e502f9036babda51334f2667e000000000000000000000000b08e3e7cc815213304d884c88ca476ebc50eaab2000000000000000000000000a1c57f48f0deb89f569dfbe6e2b7f46d33606fd400000000000000000000000090958d4531258ca11d18396d4174a007edbc2b42000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000061a8

-----Decoded View---------------
Arg [0] : _owner (address): 0x0e659a116e161d8e502f9036babda51334f2667e
Arg [1] : _feesCollector (address): 0xb08e3e7cc815213304d884c88ca476ebc50eaab2
Arg [2] : _acceptedToken (address): 0xa1c57f48f0deb89f569dfbe6e2b7f46d33606fd4
Arg [3] : _royaltiesManager (address): 0x90958d4531258ca11d18396d4174a007edbc2b42
Arg [4] : _feesCollectorCutPerMillion (uint256): 0
Arg [5] : _royaltiesCutPerMillion (uint256): 25000

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000e659a116e161d8e502f9036babda51334f2667e
Arg [1] : 000000000000000000000000b08e3e7cc815213304d884c88ca476ebc50eaab2
Arg [2] : 000000000000000000000000a1c57f48f0deb89f569dfbe6e2b7f46d33606fd4
Arg [3] : 00000000000000000000000090958d4531258ca11d18396d4174a007edbc2b42
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [5] : 00000000000000000000000000000000000000000000000000000000000061a8


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