Skip to content

Commit 6a71246

Browse files
committed
refactor testing suite
1 parent 1935922 commit 6a71246

6 files changed

+4
-260
lines changed

.prettierignore

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
# Ignore artifacts:
2-
artifacts
31
cache
4-
coverage
5-
coverage*
6-
typechain-types
72

83
# Ignore certain files
9-
/contracts/Bisection.sol
4+
/src/Bisection.sol

foundry.toml

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
solc = "0.8.13"
33
via_ir = true
44
optimizer_runs = 15000
5+
ffi = true # important!
56
remappings = [
67
'solmate/=lib/solmate/src/'
78
]

package.json

+1-3
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@
77
"src/**/*.sol"
88
],
99
"scripts": {
10-
"build": "yarn generate && yarn test",
11-
"test": "forge test -vvv -ffi ",
12-
"test:differential": "yarn generate && forge test --ffi -c test/differential/test/DifferentialTests.t.sol",
10+
"build": "yarn generate",
1311
"lint": "prettier --write **.sol && prettier --write **.ts",
1412
"prepare": "husky install",
1513
"generate": "cd ./test/differential/scripts/ && npm run generate"

src/Invariant.sol

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
pragma solidity ^0.8.4;
33

44
import "./Gaussian.sol";
5-
import "solmate/src/utils/FixedPointMathLib.sol";
5+
import "solmate/utils/FixedPointMathLib.sol";
66

77
/**
88
* @title Invariant of Primitive RMM.

test/Gaussian.test.ts

-144
This file was deleted.

test/Invariant.test.ts

-106
This file was deleted.

0 commit comments

Comments
 (0)