2024-08-05 14:27:20 +00:00
|
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
|
|
|
|
pragma solidity ^0.8.23;
|
|
|
|
|
|
|
|
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
|
|
|
|
import {IGroth16Verifier} from "../../contracts/Groth16.sol";
|
|
|
|
import {MarketplaceConfig} from "../../contracts/Configuration.sol";
|
|
|
|
import {Marketplace} from "../../contracts/Marketplace.sol";
|
2024-08-21 18:22:39 +00:00
|
|
|
import {RequestId, SlotId} from "../../contracts/Requests.sol";
|
2024-08-05 14:27:20 +00:00
|
|
|
|
|
|
|
contract MarketplaceHarness is Marketplace {
|
|
|
|
constructor(MarketplaceConfig memory config, IERC20 token, IGroth16Verifier verifier) Marketplace(config, token, verifier) {}
|
|
|
|
|
|
|
|
function requestContext(RequestId requestId) public returns (Marketplace.RequestContext memory) {
|
|
|
|
return _requestContexts[requestId];
|
|
|
|
}
|
2024-08-09 11:05:56 +00:00
|
|
|
|
2024-08-21 18:22:39 +00:00
|
|
|
function slots(SlotId slotId) public returns (Marketplace.Slot memory) {
|
|
|
|
return _slots[slotId];
|
|
|
|
}
|
|
|
|
|
2024-08-09 11:05:56 +00:00
|
|
|
function publicPeriodEnd(Period period) public view returns (uint256) {
|
|
|
|
return _periodEnd(period);
|
|
|
|
}
|
2024-08-05 14:27:20 +00:00
|
|
|
}
|
|
|
|
|