mirror of
https://github.com/status-im/dagger-contracts.git
synced 2025-01-31 16:56:34 +00:00
bba8736132
Instead of having additional harness code in `MarketplaceHarness` to access fields in `requestContext` and `slots` objects, this introduces dedicated ghost variables that keep track of the field changes and let us read the values from there. Prover run: https://prover.certora.com/output/6199/8343693dfc3f4ca38435f5aa10fa2345?anonymousKey=db5eaee6c688651132d1671919fb73544affa269 Closes #165
19 lines
683 B
Solidity
19 lines
683 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";
|
|
|
|
contract MarketplaceHarness is Marketplace {
|
|
constructor(MarketplaceConfig memory config, IERC20 token, IGroth16Verifier verifier) Marketplace(config, token, verifier) {}
|
|
|
|
function publicPeriodEnd(Period period) public view returns (uint256) {
|
|
return _periodEnd(period);
|
|
}
|
|
}
|
|
|