-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathRunner.t.sol
81 lines (58 loc) · 2.18 KB
/
Runner.t.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.16;
// -- Test: Scribe --
import {Scribe} from "src/Scribe.sol";
import {ScribeInspectable} from "./inspectable/ScribeInspectable.sol";
import {IScribe} from "src/IScribe.sol";
import {IScribeTest} from "./IScribeTest.sol";
import {IScribeInvariantTest} from "./invariants/IScribeInvariantTest.sol";
import {ScribeHandler} from "./invariants/ScribeHandler.sol";
contract ScribeTest is IScribeTest {
function setUp() public {
setUp(address(new Scribe(address(this), "ETH/USD")));
}
}
contract ScribeInvariantTest is IScribeInvariantTest {
function setUp() public {
setUp(
address(new ScribeInspectable(address(this), "ETH/USD")),
address(new ScribeHandler())
);
}
}
// -- Extensions
import {ScribeLST} from "src/extensions/ScribeLST.sol";
import {IScribeLSTTest} from "./extensions/IScribeLSTTest.sol";
contract ScribeLSTest is IScribeLSTTest {
function setUp() public {
setUp(address(new ScribeLST(address(this), "ETH/USD")));
}
}
// -- Test: Optimistic Scribe --
import {ScribeOptimistic} from "src/ScribeOptimistic.sol";
import {IScribeOptimistic} from "src/IScribeOptimistic.sol";
import {IScribeOptimisticTest} from "./IScribeOptimisticTest.sol";
contract ScribeOptimisticTest is IScribeOptimisticTest {
function setUp() public {
setUp(address(new ScribeOptimistic(address(this), "ETH/USD")));
}
}
// -- Extensions
import {ScribeOptimisticLST} from "src/extensions/ScribeOptimisticLST.sol";
import {IScribeOptimisticLSTTest} from
"./extensions/IScribeOptimisticLSTTest.sol";
contract ScribeOptimisticLSTTest is IScribeOptimisticLSTTest {
function setUp() public {
setUp(
payable(address(new ScribeOptimisticLST(address(this), "ETH/USD")))
);
}
}
// -- Test: Libraries --
import {LibSecp256k1Test as LibSecp256k1Test_} from "./LibSecp256k1Test.sol";
contract LibSecp256k1Test is LibSecp256k1Test_ {}
import {LibSchnorrTest as LibSchnorrTest_} from "./LibSchnorrTest.sol";
contract LibSchnorrTest is LibSchnorrTest_ {}
// -- Test: EVM Requirements --
import {EVMTest} from "./EVMTest.sol";
contract EVMTest_ is EVMTest {}