Contract 0xfcF2b192c888d411827fDa1884C6FE2438C15Ad0

Contract Overview

Balance:
0 MATIC

Token:
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xc7c943e11f4c34be42dafdc2e6f2ea207006a56aa14809b103fb9c3581306018Accept Job260683342022-04-24 15:16:25162 days 6 hrs ago0x38d2a67c14f3531aeaf0e05d0259fcdaee252ff5 IN  0xfcf2b192c888d411827fda1884c6fe2438c15ad00 MATIC0.0026198430
0xe0e52594e3ac68c364876d4f2bbe1caf960d10b3bdfc7f51977dcd740b9a7075Submit Job259996192022-04-19 14:49:26167 days 7 hrs ago0xeceea1570e312932923d609939072a323b82d6af IN  0xfcf2b192c888d411827fda1884c6fe2438c15ad00 MATIC0.0044787630
0x6d3df9f35aba7019d9acad4ee98af857aea9d5442575bf1375f74721184d1861Submit Job259995972022-04-19 14:47:31167 days 7 hrs ago0xeceea1570e312932923d609939072a323b82d6af IN  0xfcf2b192c888d411827fda1884c6fe2438c15ad00 MATIC0.0040182630
0xa89e1c441098d2d1468b83c826045e2bb78543566f32cfb3838c2ae055e0e055Submit Job259995852022-04-19 14:46:31167 days 7 hrs ago0xeceea1570e312932923d609939072a323b82d6af IN  0xfcf2b192c888d411827fda1884c6fe2438c15ad00 MATIC0.0050757630
0xc4a3a0faa9a4851c995169bdc502ed857caf4da99c6d2ff224b380507664b42cSubmit Job259995512022-04-19 14:43:40167 days 7 hrs ago0xeceea1570e312932923d609939072a323b82d6af IN  0xfcf2b192c888d411827fda1884c6fe2438c15ad00 MATIC0.0046152630
0x1d0e5f001dd8c708ef109d6000d8e7620283d2bcda2628c3630bfae484ba4145Submit Job259995392022-04-19 14:42:40167 days 7 hrs ago0xeceea1570e312932923d609939072a323b82d6af IN  0xfcf2b192c888d411827fda1884c6fe2438c15ad00 MATIC0.0046152630
0x8df30c3a430d4002eec47b7993995051f99c0e23ca1e523f9ab5548c4f5a9ffcSubmit Job259995252022-04-19 14:41:30167 days 7 hrs ago0xeceea1570e312932923d609939072a323b82d6af IN  0xfcf2b192c888d411827fda1884c6fe2438c15ad00 MATIC0.0046152630
0x9137e67275a02a500faeeb4149af384bede02051cf22e4e17b8b55e980ab7a76Submit Job259509412022-04-15 23:22:28170 days 22 hrs ago0x422eb697dec9da45a63ccdfa473f975083add750 IN  0xfcf2b192c888d411827fda1884c6fe2438c15ad00 MATIC0.0058506630
0x094c6e7d0dd190c633f2e5d4305e57278e61942826911bc4abe8aaedea32cb2bSubmit Job259508072022-04-15 23:05:56170 days 22 hrs ago0x422eb697dec9da45a63ccdfa473f975083add750 IN  0xfcf2b192c888d411827fda1884c6fe2438c15ad00 MATIC0.0058510230
0x1ae03dcea0f2f5c864178e8c0035845be09ed5e1b55ad180f6c2c3fe0e5c5bdfAccept Job259237312022-04-13 23:41:32172 days 22 hrs ago0x422eb697dec9da45a63ccdfa473f975083add750 IN  0xfcf2b192c888d411827fda1884c6fe2438c15ad00 MATIC0.0026198430
0xf6c03088e2d0ca29a4c228c31c8466bdbd4734fb96850f9f55e8426f21fd3a11Submit Job259236342022-04-13 23:33:25172 days 22 hrs ago0x422eb697dec9da45a63ccdfa473f975083add750 IN  0xfcf2b192c888d411827fda1884c6fe2438c15ad00 MATIC0.0058528230
0xa03ca67be05790104d7fdde7b36168a93448ad8014d782df823a863dd068b2eaSwap259205932022-04-13 18:31:05173 days 3 hrs ago0x422eb697dec9da45a63ccdfa473f975083add750 IN  0xfcf2b192c888d411827fda1884c6fe2438c15ad00 MATIC0.0079152930
0x5d8abf2952e7a3bf9c8719707ab182c25770b86404e83bc446b9baf6f955e53eAccept Job259205792022-04-13 18:29:55173 days 3 hrs ago0x422eb697dec9da45a63ccdfa473f975083add750 IN  0xfcf2b192c888d411827fda1884c6fe2438c15ad00 MATIC0.0026198430
0xeddb3860ca118c35151d82740067c657a7deecab7e5106a722eeb97bed626119Submit Job259205712022-04-13 18:29:14173 days 3 hrs ago0x422eb697dec9da45a63ccdfa473f975083add750 IN  0xfcf2b192c888d411827fda1884c6fe2438c15ad00 MATIC0.0058524630
0x5d3d922eb27ab000facfcd4f0342743ab02c77438b0657fa0dd50e00b2806791Swap259094402022-04-12 22:44:54173 days 23 hrs ago0x422eb697dec9da45a63ccdfa473f975083add750 IN  0xfcf2b192c888d411827fda1884c6fe2438c15ad00 MATIC0.0084282930
0x213f2868b2537efa3e99dee3dee54895b62fe33b493f60313ebce642d88bf966Accept Job259092192022-04-12 22:21:05173 days 23 hrs ago0x422eb697dec9da45a63ccdfa473f975083add750 IN  0xfcf2b192c888d411827fda1884c6fe2438c15ad00 MATIC0.0026198430
0x49b1828551a1ea1f5fbaef3840f6581d2e048b6bb9c6309a91834476aac9b21bSubmit Job259092032022-04-12 22:19:45173 days 23 hrs ago0x422eb697dec9da45a63ccdfa473f975083add750 IN  0xfcf2b192c888d411827fda1884c6fe2438c15ad00 MATIC0.0064480230
0xf126446e9fbd74eede8d4cf2447b865b6d9f6caf55ea4ffe824d7ab7f8be97ebSwap259081432022-04-12 20:28:14174 days 1 hr ago0x422eb697dec9da45a63ccdfa473f975083add750 IN  0xfcf2b192c888d411827fda1884c6fe2438c15ad00 MATIC0.0079902930
0xb2b9a009c2af99a5660696767b6940dbf2f830be9d24ffd49dea4789e9bf11c5Accept Job259078072022-04-12 19:50:49174 days 2 hrs ago0x422eb697dec9da45a63ccdfa473f975083add750 IN  0xfcf2b192c888d411827fda1884c6fe2438c15ad00 MATIC0.0026198430
0x45898c7aa19c7d1b20ff75bac403873e9d702f12422a5769c76ea9531c34ccc7Submit Job259077552022-04-12 19:46:28174 days 2 hrs ago0xfac3c5053ed4b4a7689118cc626a49f3296484e6 IN  0xfcf2b192c888d411827fda1884c6fe2438c15ad00 MATIC0.0058528230
0xfd75bc5c3c524c45d3bbf9a6ec06b08d0789085004022227b67fdda27a629c4eAdd Validated Pr...259076762022-04-12 19:36:57174 days 2 hrs ago0x1df13a64355be17118a05c00da9815daa4ab1ea0 IN  0xfcf2b192c888d411827fda1884c6fe2438c15ad00 MATIC0.000117002848 2.426337543
0x12e0797c79c46f9ec202cc69e9d58632fe2dc5d08bfb432bcefd82bad97a2500Swap258923202022-04-11 18:39:37175 days 3 hrs ago0x38d2a67c14f3531aeaf0e05d0259fcdaee252ff5 IN  0xfcf2b192c888d411827fda1884c6fe2438c15ad00 MATIC0.0079902930
0x9d4d5b06cfd7df1e0fe83277cd58e2141ead321409b2f0ce31af4ce032a2d487Accept Job258922292022-04-11 18:32:01175 days 3 hrs ago0x38d2a67c14f3531aeaf0e05d0259fcdaee252ff5 IN  0xfcf2b192c888d411827fda1884c6fe2438c15ad00 MATIC0.0026198430
0xeef55628261363b65509783c363935b633fe86dc91180ba288e26d58eb386609Submit Job258921312022-04-11 18:18:08175 days 3 hrs ago0xfac3c5053ed4b4a7689118cc626a49f3296484e6 IN  0xfcf2b192c888d411827fda1884c6fe2438c15ad00 MATIC0.0058528230
0xd794d8adce5037c1ab2fe8c0eb0df565e99c79e04fa3d3dc3f50787aa147f703Add Validated Pr...258920092022-04-11 18:05:53175 days 3 hrs ago0x1df13a64355be17118a05c00da9815daa4ab1ea0 IN  0xfcf2b192c888d411827fda1884c6fe2438c15ad00 MATIC0.000120555001 2.500000023
[ Download CSV Export 
Latest 1 internal transaction
Parent Txn Hash Block From To Value
0x25efc3fa4d2799074fa2ec6d4a723626867eaa2b8e1901504cf50740cb4347ee258029102022-04-04 22:08:20181 days 23 hrs ago 0x3b7bacb0db759e8ba5beeddafea4fb65b89dc4ea  Contract Creation0 MATIC
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Exchange

Compiler Version
v0.8.1+commit.df193b15

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 14 : Exchange.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

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

contract Exchange {

    // ---------------------------- Constructor ---------------------------------// 

    constructor(address _factoryAddress, address _factoryOwner, address _openLabNFTAddress, uint256 _royaltyPercentage) {
        isEnabled = true;
        factoryAddress = _factoryAddress;
        factoryOwner = _factoryOwner;
        openLabNFTAddress = _openLabNFTAddress;
        royaltyPercentage = _royaltyPercentage;
    }

    // ------------------------ Job structure ------------------------ //

    struct Job {
        address payable client;
        address payable provider;
        address payableToken;
        uint256 jobCost;
        // jobDeadline
        string jobURI;
        JobStatus status;
        string openLabNFTURI;
    }

    enum JobStatus {
        OPEN,
        ACTIVE,
        CLOSED,
        CANCELLED
    }

    // ------------------------ State ------------------------ //

    bool public isEnabled;
    bool internal locked;

    mapping (uint256 => Job) public jobsList;
    mapping (address => bool) public clientAddresses;
    mapping (address => bool) public providerAddresses;
    uint256 jobIdCount = 0;

    // Events for Graph protocol
    event jobCreated(uint256 indexed _jobId, address indexed _client, address _payableToken, uint256 _jobCost, string _jobURI, JobStatus _status);
    event jobActive(uint256 indexed _jobId, address indexed _client, address indexed _provider, uint256 _jobCost, string _jobURI, JobStatus _status);
    event jobCancelled(uint256 indexed _jobId, address indexed _client, address indexed _provider, uint256 _jobCost, string _jobURI, JobStatus _status);
    event jobClosed(uint256 indexed _jobId, address indexed _client, address indexed _provider, uint256 _jobCost, string _jobURI, JobStatus _status, string _openLabNFTURI);

    event Received(address, uint256);

    address public factoryAddress;
    address public factoryOwner;

    // Values set by owner of ExchangeFactory
    address public openLabNFTAddress;
    uint256 public royaltyPercentage;
    // Royalty base is 100% x 100 for decimal percentages
    uint256 public royaltyBase = 10000;

    // ------------------------ Core functions ------------------------ //

    // ADD address _payableToken
    // client and provider should both sign for a job
    function submitJob(address payable _client, address _payableToken, uint256 _jobCost, string memory _jobURI) public payable noReentrant enabled {
        // Parameter validation
        require(address(msg.sender) == _client, "Only the client can call this function");
        // require(address(msg.sender).balance >= _jobCost, "Caller does not have enough funds to pay for the job");

        jobIdCount++;
        Job storage job = jobsList[jobIdCount];

        job.client = _client;
        job.payableToken = _payableToken;
        job.jobCost = _jobCost;
        job.jobURI = _jobURI;
        job.status = JobStatus.OPEN;

        // Validates the client address
        clientAddresses[_client] = true;

        // Receive deposit amount
        IERC20(_payableToken).transferFrom(msg.sender, address(this), _jobCost);
        emit Received(_payableToken, _jobCost);

        // We emit the event of job creation so that the Graph protocol can be used to index the job
        emit jobCreated(jobIdCount, _client, _payableToken, _jobCost, _jobURI, job.status);
    }

    function acceptJob(uint256 _jobId) public isValidJob(_jobId) enabled {
        require(providerAddresses[msg.sender], "Only validated providers can accept jobs");

        Job storage job = jobsList[_jobId];
        job.provider = payable(msg.sender);
        jobsList[_jobId].status = JobStatus.ACTIVE;

        // We emit the event of job creation so that the Graph protocol can be used to index the job
        emit jobActive(_jobId, job.client, job.provider, job.jobCost, job.jobURI, job.status);
    }

    // Only callable by client for jobs that haven't been accepted
    function cancelJob(uint256 _jobId) private isValidJob(_jobId) isOpenJob(_jobId) isClient(_jobId) enabled {
        Job storage job = jobsList[_jobId];
        jobsList[_jobId].status = JobStatus.CANCELLED;

        // We emit the event of job cancellation so that the Graph protocol can be updated
        emit jobCancelled(_jobId, job.client, job.provider, job.jobCost, job.jobURI, job.status);
    }

    // Only callable by provider
    function closeJob(uint256 _jobId) private isValidJob(_jobId) isActiveJob(_jobId) isProvider(_jobId) enabled {
        Job storage job = jobsList[_jobId];
        job.status = JobStatus.CLOSED;

        // We emit the event of job closing so that the Graph protocol can be updated
        emit jobClosed(_jobId, job.client, job.provider, job.jobCost, job.jobURI, job.status, job.openLabNFTURI);
    }

    function swap(uint256 jobId, string memory tokenURI) external payable isValidJob(jobId) isActiveJob(jobId) noReentrant enabled {
        Job storage job = jobsList[jobId];
        address client = job.client;
        address provider = job.provider;
        address payableToken = job.payableToken;

        // Percentage sent to LabDAO
        uint256 marketRevenue = (job.jobCost * royaltyPercentage) / royaltyBase;
        // Percentage sent to provider
        uint256 providerRevenue = job.jobCost - marketRevenue;

        // Send NFT to client
        IOpenLabNFT(openLabNFTAddress).safeMint(client, tokenURI);
        job.openLabNFTURI = tokenURI;

        // Send funds to provider and LabDAO
        IERC20(payableToken).transfer(provider, providerRevenue);
        IERC20(payableToken).transfer(factoryOwner, marketRevenue);

        // Close job
        closeJob(jobId);
    }

    function returnFunds(uint256 jobId) external payable isValidJob(jobId) isOpenJob(jobId) isClient(jobId) noReentrant enabled {
        Job storage job = jobsList[jobId];

        // Refund 98% of deposit to prevent spamming of job creations
        uint256 refundAmount = job.jobCost * 98 / 100;
        // Send remaining 2% to LabDAO
        uint256 heldAmount = job.jobCost - refundAmount;

        IERC20(job.payableToken).transfer(job.client, refundAmount);
        IERC20(job.payableToken).transfer(factoryOwner, heldAmount);
        cancelJob(jobId);
    }

    // ------------------------ Administrative functions ------------------------ //

    function setRoyaltyPercentage(uint256 _percentage) public isAdmin enabled {
        royaltyPercentage = _percentage;
    }

    function addValidatedProvider(address _provider) public isAdmin enabled {
        providerAddresses[_provider] = true;
    }

    function removeValidatedProvider(address _provider) public isAdmin enabled {
        providerAddresses[_provider] = false;
    }

    function adminCancelJob(uint256 _jobId) public payable isAdmin isValidJob(_jobId) isActiveJob(_jobId) enabled {
        Job storage job = jobsList[_jobId];
        address client = job.client;
        address payableToken = job.payableToken;
        uint256 cost = job.jobCost;

        // Return 100% of funds back to client
        IERC20(payableToken).transfer(client, cost);

        // Update job status
        cancelJob(_jobId);
    }

    function disableExchange() isAdmin enabled external {
        isEnabled = false;
    }

    receive() external payable {
        emit Received(msg.sender, msg.value);
    }

    // ------------------------ Function modifiers ------------------------ //

    modifier isValidJob(uint256 _jobId) {
        require(jobIdCount > 0 && _jobId > 0 && _jobId <= jobIdCount, "Job ID is not valid");
        _;
    }

    modifier isOpenJob(uint256 _jobId) {
        require(jobsList[_jobId].status == JobStatus.OPEN, "Job is not open");
        _;
    }

    modifier isActiveJob(uint256 _jobId) {
        require(jobsList[_jobId].status == JobStatus.ACTIVE, "Job is not active");
        _;
    }

    modifier isClient(uint256 _jobId) {
        require(jobsList[_jobId].client == msg.sender, "Only the client can call this function");
        _;
    }

    modifier isProvider(uint256 _jobId) {
        require(jobsList[_jobId].provider == msg.sender, "Only the provider can call this function");
        _;
    }

    modifier isValidClient(address _client) {
        require(clientAddresses[_client], "Client address not valid");
        _;
    }

    modifier isValidProvider(address _provider) {
        require(providerAddresses[_provider], "Provider address not valid");
        _;
    }

    modifier isAdmin() {
        require(msg.sender == address(factoryOwner), "Only the factory owner can call this function");
        _;
    }

    modifier noReentrant() {
        require(!locked, "No re-entrancy");
        locked = true;
        _;
        locked = false;
    }

    modifier onlyFactory() {
        require(address(msg.sender) == factoryAddress, "Only the factory can call this function");
        _;
    }

    modifier enabled() {
        require(isEnabled, "Exchange is not enabled");
        _;
    }
}

File 2 of 14 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.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 `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

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

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

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

    /**
     * @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 3 of 14 : OpenLabNFT.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/utils/Counters.sol";

contract OpenLabNFT is ERC721, ERC721URIStorage {

  // ---------------------------- State Management ----------------------------------------//
  using Counters for Counters.Counter;
  Counters.Counter private _tokenIdCounter;

  // ---------------------------- Constructor ----------------------------------------//
  constructor() ERC721("OpenLab NFT", "OLNFT") {}

  function _baseURI() internal pure override returns (string memory) {
    // base URI points to IPFS, then we append the CID 
    return "ipfs.io://";
  }

  // NOTE: add modifier so only validated provider can call this function

  // revisit this so only can be called by Exchange
  function safeMint(address _to, string memory _tokenURI) external {
    uint256 tokenId = _tokenIdCounter.current();
    _tokenIdCounter.increment();
    _safeMint(_to, tokenId);
    _setTokenURI(tokenId, _tokenURI);
  }

  // ---------------------------- Overrides ----------------------------------------//
  // @dev Overrides required by Solidity

  function _burn(uint256 tokenId) internal override(ERC721, ERC721URIStorage) {
    super._burn(tokenId);
  }

  function tokenURI(uint256 tokenId) public view override(ERC721, ERC721URIStorage) returns (string memory) {
    return super.tokenURI(tokenId);
  }
}

interface IOpenLabNFT {
  function safeMint(address _to, string memory _tokenURI) external;
}

File 4 of 14 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.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);

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

        _afterTokenTransfer(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 from incorrect owner");
        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);

        _afterTokenTransfer(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 {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

File 5 of 14 : ERC721URIStorage.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721URIStorage.sol)

pragma solidity ^0.8.0;

import "../ERC721.sol";

/**
 * @dev ERC721 token with storage based token URI management.
 */
abstract contract ERC721URIStorage is ERC721 {
    using Strings for uint256;

    // Optional mapping for token URIs
    mapping(uint256 => string) private _tokenURIs;

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

        string memory _tokenURI = _tokenURIs[tokenId];
        string memory base = _baseURI();

        // If there is no base URI, return the token URI.
        if (bytes(base).length == 0) {
            return _tokenURI;
        }
        // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked).
        if (bytes(_tokenURI).length > 0) {
            return string(abi.encodePacked(base, _tokenURI));
        }

        return super.tokenURI(tokenId);
    }

    /**
     * @dev Sets `_tokenURI` as the tokenURI of `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual {
        require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token");
        _tokenURIs[tokenId] = _tokenURI;
    }

    /**
     * @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 override {
        super._burn(tokenId);

        if (bytes(_tokenURIs[tokenId]).length != 0) {
            delete _tokenURIs[tokenId];
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

File 7 of 14 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 8 of 14 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 9 of 14 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 10 of 14 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

File 12 of 14 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 13 of 14 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

Contract ABI

[{"inputs":[{"internalType":"address","name":"_factoryAddress","type":"address"},{"internalType":"address","name":"_factoryOwner","type":"address"},{"internalType":"address","name":"_openLabNFTAddress","type":"address"},{"internalType":"uint256","name":"_royaltyPercentage","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"","type":"address"},{"indexed":false,"internalType":"uint256","name":"","type":"uint256"}],"name":"Received","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_jobId","type":"uint256"},{"indexed":true,"internalType":"address","name":"_client","type":"address"},{"indexed":true,"internalType":"address","name":"_provider","type":"address"},{"indexed":false,"internalType":"uint256","name":"_jobCost","type":"uint256"},{"indexed":false,"internalType":"string","name":"_jobURI","type":"string"},{"indexed":false,"internalType":"enum Exchange.JobStatus","name":"_status","type":"uint8"}],"name":"jobActive","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_jobId","type":"uint256"},{"indexed":true,"internalType":"address","name":"_client","type":"address"},{"indexed":true,"internalType":"address","name":"_provider","type":"address"},{"indexed":false,"internalType":"uint256","name":"_jobCost","type":"uint256"},{"indexed":false,"internalType":"string","name":"_jobURI","type":"string"},{"indexed":false,"internalType":"enum Exchange.JobStatus","name":"_status","type":"uint8"}],"name":"jobCancelled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_jobId","type":"uint256"},{"indexed":true,"internalType":"address","name":"_client","type":"address"},{"indexed":true,"internalType":"address","name":"_provider","type":"address"},{"indexed":false,"internalType":"uint256","name":"_jobCost","type":"uint256"},{"indexed":false,"internalType":"string","name":"_jobURI","type":"string"},{"indexed":false,"internalType":"enum Exchange.JobStatus","name":"_status","type":"uint8"},{"indexed":false,"internalType":"string","name":"_openLabNFTURI","type":"string"}],"name":"jobClosed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_jobId","type":"uint256"},{"indexed":true,"internalType":"address","name":"_client","type":"address"},{"indexed":false,"internalType":"address","name":"_payableToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"_jobCost","type":"uint256"},{"indexed":false,"internalType":"string","name":"_jobURI","type":"string"},{"indexed":false,"internalType":"enum Exchange.JobStatus","name":"_status","type":"uint8"}],"name":"jobCreated","type":"event"},{"inputs":[{"internalType":"uint256","name":"_jobId","type":"uint256"}],"name":"acceptJob","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_provider","type":"address"}],"name":"addValidatedProvider","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_jobId","type":"uint256"}],"name":"adminCancelJob","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"clientAddresses","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"disableExchange","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"factoryAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"factoryOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"jobsList","outputs":[{"internalType":"address payable","name":"client","type":"address"},{"internalType":"address payable","name":"provider","type":"address"},{"internalType":"address","name":"payableToken","type":"address"},{"internalType":"uint256","name":"jobCost","type":"uint256"},{"internalType":"string","name":"jobURI","type":"string"},{"internalType":"enum Exchange.JobStatus","name":"status","type":"uint8"},{"internalType":"string","name":"openLabNFTURI","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"openLabNFTAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"providerAddresses","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_provider","type":"address"}],"name":"removeValidatedProvider","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"jobId","type":"uint256"}],"name":"returnFunds","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"royaltyBase","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"royaltyPercentage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_percentage","type":"uint256"}],"name":"setRoyaltyPercentage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_client","type":"address"},{"internalType":"address","name":"_payableToken","type":"address"},{"internalType":"uint256","name":"_jobCost","type":"uint256"},{"internalType":"string","name":"_jobURI","type":"string"}],"name":"submitJob","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"jobId","type":"uint256"},{"internalType":"string","name":"tokenURI","type":"string"}],"name":"swap","outputs":[],"stateMutability":"payable","type":"function"},{"stateMutability":"payable","type":"receive"}]

608060405260006004556127106009553480156200001c57600080fd5b5060405162001d5238038062001d528339810160408190526200003f91620000b1565b60008054600160ff19909116179055600580546001600160a01b03199081166001600160a01b039687161790915560068054821694861694909417909355600780549093169190931617905560085562000102565b80516001600160a01b0381168114620000ac57600080fd5b919050565b60008060008060808587031215620000c7578384fd5b620000d28562000094565b9350620000e26020860162000094565b9250620000f26040860162000094565b6060959095015193969295505050565b611c4080620001126000396000f3fe60806040526004361061010d5760003560e01c806363b2f3c911610095578063c6aea01811610064578063c6aea018146102c8578063d17a762a146102dd578063d7d3ea9a14610310578063deb4a6d214610323578063ed252e9d146103365761014d565b806363b2f3c9146102695780636aa633b6146102895780638a71bb2d1461029e578063966dae0e146102b35761014d565b80633cf07b71116100dc5780633cf07b71146101df5780634273601c146101ff57806345755dd614610221578063521a7c171461023457806361ba27da146102495761014d565b806304c8e5ba1461015257806315332e871461018857806322c9b9941461019d5780633b29d36b146101bd5761014d565b3661014d577f88a5966d370b9919b20f3e2c13ff65706f196a4e32cc2c12bf57088f8852587433346040516101439291906117e4565b60405180910390a1005b600080fd5b34801561015e57600080fd5b5061017261016d366004611550565b610356565b60405161017f919061188c565b60405180910390f35b61019b6101963660046115fd565b61036b565b005b3480156101a957600080fd5b506101726101b8366004611550565b610509565b3480156101c957600080fd5b506101d261051e565b60405161017f9190611a9a565b3480156101eb57600080fd5b5061019b6101fa366004611550565b610524565b34801561020b57600080fd5b50610214610594565b60405161017f9190611768565b61019b61022f3660046115fd565b6105a3565b34801561024057600080fd5b50610214610839565b34801561025557600080fd5b5061019b6102643660046115fd565b610848565b34801561027557600080fd5b5061019b6102843660046115fd565b610899565b34801561029557600080fd5b506101726109c6565b3480156102aa57600080fd5b506101d26109cf565b3480156102bf57600080fd5b506102146109d5565b3480156102d457600080fd5b5061019b6109e4565b3480156102e957600080fd5b506102fd6102f83660046115fd565b610a3c565b60405161017f979695949392919061177c565b61019b61031e366004611573565b610ba3565b61019b610331366004611615565b610de7565b34801561034257600080fd5b5061019b610351366004611550565b6110d8565b60026020526000908152604090205460ff1681565b6006546001600160a01b0316331461039e5760405162461bcd60e51b8152600401610395906118c0565b60405180910390fd5b8060006004541180156103b15750600081115b80156103bf57506004548111155b6103db5760405162461bcd60e51b815260040161039590611a6d565b81600160008281526001602052604090206005015460ff16600381111561041257634e487b7160e01b600052602160045260246000fd5b1461042f5760405162461bcd60e51b81526004016103959061190d565b60005460ff166104515760405162461bcd60e51b815260040161039590611980565b60008381526001602052604090819020805460028201546003830154935163a9059cbb60e01b815292936001600160a01b03928316939290911691829063a9059cbb906104a490869085906004016117e4565b602060405180830381600087803b1580156104be57600080fd5b505af11580156104d2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104f691906115dd565b5061050087611145565b50505050505050565b60036020526000908152604090205460ff1681565b60095481565b6006546001600160a01b0316331461054e5760405162461bcd60e51b8152600401610395906118c0565b60005460ff166105705760405162461bcd60e51b815260040161039590611980565b6001600160a01b03166000908152600360205260409020805460ff19166001179055565b6006546001600160a01b031681565b8060006004541180156105b65750600081115b80156105c457506004548111155b6105e05760405162461bcd60e51b815260040161039590611a6d565b816000808281526001602052604090206005015460ff16600381111561061657634e487b7160e01b600052602160045260246000fd5b146106335760405162461bcd60e51b815260040161039590611897565b60008381526001602052604090205483906001600160a01b0316331461066b5760405162461bcd60e51b8152600401610395906119b7565b600054610100900460ff16156106935760405162461bcd60e51b815260040161039590611a45565b6000805461ff001916610100179081905560ff166106c35760405162461bcd60e51b815260040161039590611980565b600084815260016020526040812060038101549091906064906106e7906062611b3a565b6106f19190611b1a565b905060008183600301546107059190611b59565b6002840154845460405163a9059cbb60e01b81529293506001600160a01b039182169263a9059cbb9261073e92169086906004016117e4565b602060405180830381600087803b15801561075857600080fd5b505af115801561076c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061079091906115dd565b50600283015460065460405163a9059cbb60e01b81526001600160a01b039283169263a9059cbb926107c99291169085906004016117e4565b602060405180830381600087803b1580156107e357600080fd5b505af11580156107f7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061081b91906115dd565b5061082587611145565b50506000805461ff00191690555050505050565b6007546001600160a01b031681565b6006546001600160a01b031633146108725760405162461bcd60e51b8152600401610395906118c0565b60005460ff166108945760405162461bcd60e51b815260040161039590611980565b600855565b8060006004541180156108ac5750600081115b80156108ba57506004548111155b6108d65760405162461bcd60e51b815260040161039590611a6d565b60005460ff166108f85760405162461bcd60e51b815260040161039590611980565b3360009081526003602052604090205460ff166109275760405162461bcd60e51b8152600401610395906119fd565b600082815260016020819052604090912080820180546001600160a01b0319163317905560058101805491929160ff19168280021790555060018101548154600383015460058401546040516001600160a01b03948516949093169287927f0974dfefb5c8a573f6531cc21a7abd25e79b74996c01b293e88577e2d535db8d926109b992600489019160ff1690611aa3565b60405180910390a4505050565b60005460ff1681565b60085481565b6005546001600160a01b031681565b6006546001600160a01b03163314610a0e5760405162461bcd60e51b8152600401610395906118c0565b60005460ff16610a305760405162461bcd60e51b815260040161039590611980565b6000805460ff19169055565b6001602081905260009182526040909120805491810154600282015460038301546004840180546001600160a01b03968716969485169594909316939192610a8390611b70565b80601f0160208091040260200160405190810160405280929190818152602001828054610aaf90611b70565b8015610afc5780601f10610ad157610100808354040283529160200191610afc565b820191906000526020600020905b815481529060010190602001808311610adf57829003601f168201915b5050506005840154600685018054949560ff909216949193509150610b2090611b70565b80601f0160208091040260200160405190810160405280929190818152602001828054610b4c90611b70565b8015610b995780601f10610b6e57610100808354040283529160200191610b99565b820191906000526020600020905b815481529060010190602001808311610b7c57829003601f168201915b5050505050905087565b600054610100900460ff1615610bcb5760405162461bcd60e51b815260040161039590611a45565b6000805461ff001916610100179081905560ff16610bfb5760405162461bcd60e51b815260040161039590611980565b336001600160a01b03851614610c235760405162461bcd60e51b8152600401610395906119b7565b60048054906000610c3383611bab565b909155505060048054600090815260016020908152604090912080546001600160a01b038089166001600160a01b0319928316178355600283018054918916919092161790556003810185905583519092610c95929084019190850190611430565b5060058101805460ff199081169091556001600160a01b0386811660009081526002602052604090819020805490931660011790925590516323b872dd60e01b8152908516906323b872dd90610cf3903390309088906004016117fd565b602060405180830381600087803b158015610d0d57600080fd5b505af1158015610d21573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d4591906115dd565b507f88a5966d370b9919b20f3e2c13ff65706f196a4e32cc2c12bf57088f885258748484604051610d779291906117e4565b60405180910390a160045460058201546040516001600160a01b03881692917f15a9cd9d640ff2711c69fd3eea6f7beb321be8157f58244b790332d471af38bc91610dcd9189918991899160ff9091169061184d565b60405180910390a350506000805461ff0019169055505050565b816000600454118015610dfa5750600081115b8015610e0857506004548111155b610e245760405162461bcd60e51b815260040161039590611a6d565b82600160008281526001602052604090206005015460ff166003811115610e5b57634e487b7160e01b600052602160045260246000fd5b14610e785760405162461bcd60e51b81526004016103959061190d565b600054610100900460ff1615610ea05760405162461bcd60e51b815260040161039590611a45565b6000805461ff001916610100179081905560ff16610ed05760405162461bcd60e51b815260040161039590611980565b600084815260016020819052604082208054918101546002820154600954600854600385015494966001600160a01b0396871696948516959490931693610f179190611b3a565b610f219190611b1a565b90506000818660030154610f359190611b59565b600754604051636902622f60e11b81529192506001600160a01b03169063d204c45e90610f689088908d90600401611821565b600060405180830381600087803b158015610f8257600080fd5b505af1158015610f96573d6000803e3d6000fd5b50508a51610faf925060068901915060208c0190611430565b5060405163a9059cbb60e01b81526001600160a01b0384169063a9059cbb90610fde90879085906004016117e4565b602060405180830381600087803b158015610ff857600080fd5b505af115801561100c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061103091906115dd565b5060065460405163a9059cbb60e01b81526001600160a01b038581169263a9059cbb92611065929091169086906004016117e4565b602060405180830381600087803b15801561107f57600080fd5b505af1158015611093573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110b791906115dd565b506110c18a6112bf565b50506000805461ff00191690555050505050505050565b6006546001600160a01b031633146111025760405162461bcd60e51b8152600401610395906118c0565b60005460ff166111245760405162461bcd60e51b815260040161039590611980565b6001600160a01b03166000908152600360205260409020805460ff19169055565b8060006004541180156111585750600081115b801561116657506004548111155b6111825760405162461bcd60e51b815260040161039590611a6d565b816000808281526001602052604090206005015460ff1660038111156111b857634e487b7160e01b600052602160045260246000fd5b146111d55760405162461bcd60e51b815260040161039590611897565b60008381526001602052604090205483906001600160a01b0316331461120d5760405162461bcd60e51b8152600401610395906119b7565b60005460ff1661122f5760405162461bcd60e51b815260040161039590611980565b6000848152600160208190526040909120600581018054919260039260ff19169083021790555060018101548154600383015460058401546040516001600160a01b03948516949093169289927f8786d5ccf0d3415c77cd11f65a9bdc2952fe318bd8e73191adac065f0041e4ca926112b092600489019160ff1690611aa3565b60405180910390a45050505050565b8060006004541180156112d25750600081115b80156112e057506004548111155b6112fc5760405162461bcd60e51b815260040161039590611a6d565b81600160008281526001602052604090206005015460ff16600381111561133357634e487b7160e01b600052602160045260246000fd5b146113505760405162461bcd60e51b81526004016103959061190d565b6000838152600160208190526040909120015483906001600160a01b0316331461138c5760405162461bcd60e51b815260040161039590611938565b60005460ff166113ae5760405162461bcd60e51b815260040161039590611980565b60008481526001602081905260409182902060058101805460ff1916600217908190559181015481546003830154945192946001600160a01b0392831694929091169289927f56e80de7c8693c07e56d00a1114de5ed16e4ed27a8aca3c316ce9e2b327eb007926112b0929091600489019160ff9091169060068a0190611acb565b82805461143c90611b70565b90600052602060002090601f01602090048101928261145e57600085556114a4565b82601f1061147757805160ff19168380011785556114a4565b828001600101855582156114a4579182015b828111156114a4578251825591602001919060010190611489565b506114b09291506114b4565b5090565b5b808211156114b057600081556001016114b5565b600082601f8301126114d9578081fd5b813567ffffffffffffffff808211156114f4576114f4611bdc565b604051601f8301601f19908116603f0116810190828211818310171561151c5761151c611bdc565b81604052838152866020858801011115611534578485fd5b8360208701602083013792830160200193909352509392505050565b600060208284031215611561578081fd5b813561156c81611bf2565b9392505050565b60008060008060808587031215611588578283fd5b843561159381611bf2565b935060208501356115a381611bf2565b925060408501359150606085013567ffffffffffffffff8111156115c5578182fd5b6115d1878288016114c9565b91505092959194509250565b6000602082840312156115ee578081fd5b8151801515811461156c578182fd5b60006020828403121561160e578081fd5b5035919050565b60008060408385031215611627578182fd5b82359150602083013567ffffffffffffffff811115611644578182fd5b611650858286016114c9565b9150509250929050565b6004811061167857634e487b7160e01b600052602160045260246000fd5b9052565b60008151808452815b818110156116a157602081850181015186830182015201611685565b818111156116b25782602083870101525b50601f01601f19169290920160200192915050565b8054600090600281046001808316806116e157607f831692505b602080841082141561170157634e487b7160e01b86526022600452602486fd5b61170b8489611a9a565b82801561171f57600181146117305761175b565b60ff1987168252828201975061175b565b61173989611b0e565b60005b878110156117555781548482015290860190840161173c565b83019850505b5050505050505092915050565b6001600160a01b0391909116815260200190565b6001600160a01b0388811682528781166020830152861660408201526060810185905260e0608082018190526000906117b79083018661167c565b6117c460a084018661165a565b82810360c08401526117d6818561167c565b9a9950505050505050505050565b6001600160a01b03929092168252602082015260400190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b03831681526040602082018190526000906118459083018461167c565b949350505050565b600060018060a01b038616825284602083015260806040830152611874608083018561167c565b9050611883606083018461165a565b95945050505050565b901515815260200190565b6020808252600f908201526e2537b11034b9903737ba1037b832b760891b604082015260600190565b6020808252602d908201527f4f6e6c792074686520666163746f7279206f776e65722063616e2063616c6c2060408201526c3a3434b990333ab731ba34b7b760991b606082015260800190565b6020808252601190820152704a6f62206973206e6f742061637469766560781b604082015260600190565b60208082526028908201527f4f6e6c79207468652070726f76696465722063616e2063616c6c207468697320604082015267333ab731ba34b7b760c11b606082015260800190565b60208082526017908201527f45786368616e6765206973206e6f7420656e61626c6564000000000000000000604082015260600190565b60208082526026908201527f4f6e6c792074686520636c69656e742063616e2063616c6c20746869732066756040820152653731ba34b7b760d11b606082015260800190565b60208082526028908201527f4f6e6c792076616c6964617465642070726f7669646572732063616e20616363604082015267657074206a6f627360c01b606082015260800190565b6020808252600e908201526d4e6f2072652d656e7472616e637960901b604082015260600190565b602080825260139082015272129bd8881251081a5cc81b9bdd081d985b1a59606a1b604082015260600190565b90815260200190565b600084825260606020830152611abc60608301856116c7565b9050611845604083018461165a565b600085825260806020830152611ae460808301866116c7565b611af1604084018661165a565b8281036060840152611b0381856116c7565b979650505050505050565b60009081526020902090565b600082611b3557634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615611b5457611b54611bc6565b500290565b600082821015611b6b57611b6b611bc6565b500390565b600281046001821680611b8457607f821691505b60208210811415611ba557634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415611bbf57611bbf611bc6565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114611c0757600080fd5b5056fea2646970667358221220e68cbae57030c5c0e240686f187456bae0d5b0fb280c89dbafd50551438354cf64736f6c634300080100330000000000000000000000003b7bacb0db759e8ba5beeddafea4fb65b89dc4ea0000000000000000000000001df13a64355be17118a05c00da9815daa4ab1ea0000000000000000000000000c9f04360ca658d1baf50398f754f00bae56ebf0400000000000000000000000000000000000000000000000000000000000001f4

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

0000000000000000000000003b7bacb0db759e8ba5beeddafea4fb65b89dc4ea0000000000000000000000001df13a64355be17118a05c00da9815daa4ab1ea0000000000000000000000000c9f04360ca658d1baf50398f754f00bae56ebf0400000000000000000000000000000000000000000000000000000000000001f4

-----Decoded View---------------
Arg [0] : _factoryAddress (address): 0x3b7bacb0db759e8ba5beeddafea4fb65b89dc4ea
Arg [1] : _factoryOwner (address): 0x1df13a64355be17118a05c00da9815daa4ab1ea0
Arg [2] : _openLabNFTAddress (address): 0xc9f04360ca658d1baf50398f754f00bae56ebf04
Arg [3] : _royaltyPercentage (uint256): 500

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000003b7bacb0db759e8ba5beeddafea4fb65b89dc4ea
Arg [1] : 0000000000000000000000001df13a64355be17118a05c00da9815daa4ab1ea0
Arg [2] : 000000000000000000000000c9f04360ca658d1baf50398f754f00bae56ebf04
Arg [3] : 00000000000000000000000000000000000000000000000000000000000001f4


Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading