mirror of
https://github.com/logos-storage/logos-storage-contracts-eth.git
synced 2026-01-04 06:13:09 +00:00
* perf: optimizing parameters sizing * chore: feedback Co-authored-by: markspanbroek <mark@spanbroek.net> * style: formatting * perf: more optimizations * chore: fixes * chore: fix certora spec * chore: more fixes for certora spec * chore: more and more fixes for certora spec * fix: ends type * test(certora): timestamp conversion * test(certora): timestamp conversion again * test(certora): timestamp conversion revert to assert_uint64 * test(certora): timestamp with mathint * test(certora): timestamp back with uint64 with require * Add missing configuration * Fix previous merge * Update StorageRequested to use int64 for expiry * requestDurationLimit => uint64 --------- Co-authored-by: markspanbroek <mark@spanbroek.net> Co-authored-by: Arnaud <arnaud@status.im> Co-authored-by: Eric <5089238+emizzle@users.noreply.github.com>
29 lines
1015 B
Solidity
29 lines
1015 B
Solidity
// 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";
|
|
import {RequestId, SlotId} from "../../contracts/Requests.sol";
|
|
import {Requests} from "../../contracts/Requests.sol";
|
|
|
|
contract MarketplaceHarness is Marketplace {
|
|
constructor(MarketplaceConfig memory config, IERC20 token, IGroth16Verifier verifier)
|
|
Marketplace(config, token, verifier)
|
|
{}
|
|
|
|
function publicPeriodEnd(Period period) public view returns (uint64) {
|
|
return _periodEnd(period);
|
|
}
|
|
|
|
function slots(SlotId slotId) public view returns (Slot memory) {
|
|
return _slots[slotId];
|
|
}
|
|
|
|
function generateSlotId(RequestId requestId, uint64 slotIndex) public pure returns (SlotId) {
|
|
return Requests.slotId(requestId, slotIndex);
|
|
}
|
|
}
|