|
1 | 1 | // SPDX-License-Identifier: MIT |
2 | 2 | pragma solidity ^0.8.26; |
3 | 3 |
|
4 | | -import {Deploy} from "./Deploy.s.sol"; |
5 | | -import {Params} from "../libraries/Params.sol"; |
6 | | -import {MockERC20} from "solmate/test/utils/mocks/MockERC20.sol"; |
7 | | -import {Script} from "forge-std/Script.sol"; |
| 4 | +import {DeployTestBase} from "./Deploy.Test.Base.s.sol"; |
| 5 | +import {Params} from "../libraries/Params.sol"; |
| 6 | +import {Script} from "forge-std/Script.sol"; |
| 7 | +import {CreatePayments} from "./utils/CreatePayments.s.sol"; |
| 8 | +import {Escrow} from "../src/Escrow.sol"; |
8 | 9 |
|
9 | | -contract DeploySepolia is Script { |
10 | | - function run() public { |
11 | | - vm.startBroadcast(); |
| 10 | +contract DeploySepolia is DeployTestBase { |
| 11 | + function run() public { |
| 12 | + address[] memory testers = new address[](3); |
| 13 | + testers[0] = Params.SEPOLIA_TESTER; |
| 14 | + testers[1] = Params.SEPOLIA_TESTER_JSON; |
| 15 | + testers[2] = Params.SEPOLIA_TESTER_SHAFU; |
12 | 16 |
|
13 | | - MockERC20 mockUSDC = new MockERC20("USD Coin", "USDC", 6); |
14 | | - mockUSDC.mint(Params.SEPOLIA_TESTER, 1000000000000000 * 10**6); |
15 | | - mockUSDC.mint(Params.SEPOLIA_TESTER_JSON, 1000000000000000 * 10**6); |
16 | | - mockUSDC.mint(Params.SEPOLIA_TESTER_SHAFU, 1000000000000000 * 10**6); |
| 17 | + deployTestEnvironment( |
| 18 | + testers, |
| 19 | + Params.SEPOLIA_WETH, |
| 20 | + Params.SEPOLIA_USDC, |
| 21 | + Params.OWNER |
| 22 | + ); |
17 | 23 |
|
18 | | - vm.stopBroadcast(); |
19 | | - |
20 | | - address[] memory initialWhitelistedTokens = new address[](3); |
21 | | - initialWhitelistedTokens[0] = Params.SEPOLIA_WETH; |
22 | | - initialWhitelistedTokens[1] = Params.SEPOLIA_USDC; |
23 | | - initialWhitelistedTokens[2] = address(mockUSDC); |
24 | | - |
25 | | - new Deploy().deploy(Params.OWNER, initialWhitelistedTokens, 0); |
26 | | - } |
| 24 | + createTestPayments( |
| 25 | + Params.SEPOLIA_TESTER_SHAFU, |
| 26 | + Params.SEPOLIA_TESTER_JSON |
| 27 | + ); |
| 28 | + } |
27 | 29 | } |
0 commit comments