-
Notifications
You must be signed in to change notification settings - Fork 14
/
mockTest.t.sol
44 lines (38 loc) · 1.36 KB
/
mockTest.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
// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.0;
import 'forge-std/Test.sol';
import {MockToImport} from './mock/MockCrossChainInfra.sol';
contract TestMockTest is Test {
using stdJson for string;
address t;
struct Addresses {
address proxyFactory;
address proxyAdmin;
}
function setUp() public {
t = address(new MockToImport());
}
// function testJson() public {
// string memory json = vm.readFile('./deployments/multiChainPipeline.json');
// string memory ethereum = 'ethereum';
// string memory avalanche = 'avalanche';
//
// console.log('json', json);
//
// bytes memory ethereumBytes = json.parseRaw('.ethereum');
// Addresses memory ethereumAddresses = abi.decode(ethereumBytes, (Addresses));
//
// ethereum.serialize('proxyFactory', ethereumAddresses.proxyFactory);
// ethereum = ethereum.serialize('proxyAdmin', ethereumAddresses.proxyAdmin);
//
// //
// avalanche.serialize('proxyFactory', address(1));
// avalanche = avalanche.serialize('proxyAdmin', address(2));
//
// string memory deployments = 'deployments';
// deployments.serialize('ethereum', ethereum);
// deployments = deployments.serialize('avalanche', avalanche);
// console.log('final', deployments);
// // vm.writeJson(deployedJson, './deployments/multiChainPipeline.json');
// }
}