Skip to content

Commit f40c57b

Browse files
committed
chore: refactor Sig struct to BaseTest
1 parent f1481a2 commit f40c57b

11 files changed

+6
-61
lines changed

test/Accounting.t.sol

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,6 @@ contract AccountingTest is BaseTest {
3737
IERC20 DAI = IERC20(0x6B175474E89094C44Da98b954EedeAC495271d0F);
3838
address DAI_ADDRESS = address(DAI);
3939

40-
struct Sig {
41-
uint8 v;
42-
bytes32 r;
43-
bytes32 s;
44-
}
45-
4640
function setUp() public virtual override {
4741
BaseTest.setUp();
4842

test/ExPost.t.sol

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,6 @@ import { AtlasEvents } from "src/contracts/types/AtlasEvents.sol";
2828
import "forge-std/Test.sol";
2929

3030
contract ExPostTest is BaseTest {
31-
struct Sig {
32-
bytes32 r;
33-
bytes32 s;
34-
uint8 v;
35-
}
36-
3731
V2ExPost public v2ExPost;
3832
/// forge-config: default.gas_price = 15000000000
3933

test/FLOnline.t.sol

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,6 @@ import { FastLaneOnlineErrors } from "src/contracts/examples/fastlane-online/Fas
1818
import { IUniswapV2Router02 } from "test/base/interfaces/IUniswapV2Router.sol";
1919

2020
contract FastLaneOnlineTest is BaseTest {
21-
struct Sig {
22-
uint8 v;
23-
bytes32 r;
24-
bytes32 s;
25-
}
26-
2721
struct FastOnlineSwapArgs {
2822
UserOperation userOp;
2923
SwapIntent swapIntent;

test/FlashLoan.t.sol

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,6 @@ interface IWETH {
2929
contract FlashLoanTest is BaseTest {
3030
DummyDAppControlBuilder public control;
3131

32-
struct Sig {
33-
uint8 v;
34-
bytes32 r;
35-
bytes32 s;
36-
}
37-
3832
Sig public sig;
3933

4034
function setUp() public virtual override {

test/OEV.t.sol

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,6 @@ contract OEVTest is BaseTest {
4545

4646
IERC20 public DAI = IERC20(0x6B175474E89094C44Da98b954EedeAC495271d0F);
4747

48-
struct Sig {
49-
uint8 v;
50-
bytes32 r;
51-
bytes32 s;
52-
}
53-
5448
struct TransmitData {
5549
bytes report;
5650
bytes32[] rs;

test/OEValt.t.sol

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,6 @@ contract OEVTest is BaseTest {
4545

4646
IERC20 public DAI = IERC20(0x6B175474E89094C44Da98b954EedeAC495271d0F);
4747

48-
struct Sig {
49-
uint8 v;
50-
bytes32 r;
51-
bytes32 s;
52-
}
53-
5448
struct TransmitData {
5549
bytes report;
5650
bytes32[] rs;

test/SwapIntent.t.sol

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,6 @@ contract SwapIntentTest is BaseTest {
4040
IERC20 DAI = IERC20(0x6B175474E89094C44Da98b954EedeAC495271d0F);
4141
address DAI_ADDRESS = address(DAI);
4242

43-
struct Sig {
44-
uint8 v;
45-
bytes32 r;
46-
bytes32 s;
47-
}
48-
4943
function setUp() public virtual override {
5044
BaseTest.setUp();
5145

test/SwapIntentInvertBid.t.sol

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,6 @@ contract SwapIntentTest is BaseTest {
2222
IERC20 DAI = IERC20(0x6B175474E89094C44Da98b954EedeAC495271d0F);
2323
address DAI_ADDRESS = address(DAI);
2424

25-
struct Sig {
26-
uint8 v;
27-
bytes32 r;
28-
bytes32 s;
29-
}
30-
3125
function setUp() public virtual override {
3226
BaseTest.setUp();
3327

test/TrebleSwap.t.sol

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,6 @@ import { TrebleSwapDAppControl } from "src/contracts/examples/trebleswap/TrebleS
1919
// TODO refactor this (and other tests) using multi-chain forking and User/Solver/Dapp Op builders
2020

2121
contract TrebleSwapTest is BaseTest {
22-
struct Sig {
23-
uint8 v;
24-
bytes32 r;
25-
bytes32 s;
26-
}
27-
2822
struct SwapTokenInfo {
2923
address inputToken;
3024
uint256 inputAmount;

test/V2RewardDAppControl.t.sol

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,6 @@ import { IUniswapV2Router01, IUniswapV2Router02 } from "src/contracts/examples/v
2020
import { SolverBase } from "src/contracts/solver/SolverBase.sol";
2121

2222
contract V2RewardDAppControlTest is BaseTest {
23-
24-
struct Sig {
25-
uint8 v;
26-
bytes32 r;
27-
bytes32 s;
28-
}
29-
3023
IERC20 DAI = IERC20(0x6B175474E89094C44Da98b954EedeAC495271d0F);
3124
address DAI_ADDRESS = address(DAI);
3225
address V2_ROUTER = 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D;

0 commit comments

Comments
 (0)