Skip to content

Commit 21d91b3

Browse files
author
Ryan
committed
Updated forge configuration files
1 parent 509a3d7 commit 21d91b3

4 files changed

Lines changed: 150 additions & 2 deletions

File tree

config/deployments.toml

Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
[mainnet]
2+
endpoint_url = "${MAINNET_RPC_URL}"
3+
4+
[mainnet.bool]
5+
is_testnet = false
6+
7+
[sepolia]
8+
endpoint_url = "${SEPOLIA_RPC_URL}"
9+
10+
[sepolia.bool]
11+
is_testnet = true
12+
13+
[optimism]
14+
endpoint_url = "${OPTIMISM_RPC_URL}"
15+
16+
[optimism.bool]
17+
is_testnet = false
18+
19+
[optimism-sepolia]
20+
endpoint_url = "${OPTIMISM_SEPOLIA_RPC_URL}"
21+
22+
[optimism-sepolia.bool]
23+
is_testnet = true
24+
25+
[bsc]
26+
endpoint_url = "${BSC_RPC_URL}"
27+
28+
[bsc.bool]
29+
is_testnet = false
30+
31+
[bsc-testnet]
32+
endpoint_url = "${BSC_TESTNET_RPC_URL}"
33+
34+
[bsc-testnet.bool]
35+
is_testnet = true
36+
37+
[unichain]
38+
endpoint_url = "${UNICHAIN_RPC_URL}"
39+
40+
[unichain.bool]
41+
is_testnet = false
42+
43+
[unichain-sepolia]
44+
endpoint_url = "${UNICHAIN_SEPOLIA_RPC_URL}"
45+
46+
[unichain-sepolia.bool]
47+
is_testnet = true
48+
49+
[polygon]
50+
endpoint_url = "${POLYGON_RPC_URL}"
51+
52+
[polygon.bool]
53+
is_testnet = false
54+
55+
[amoy]
56+
endpoint_url = "${AMOY_RPC_URL}"
57+
58+
[amoy.bool]
59+
is_testnet = true
60+
61+
[base]
62+
endpoint_url = "${BASE_RPC_URL}"
63+
64+
[base.bool]
65+
is_testnet = false
66+
67+
[base-sepolia]
68+
endpoint_url = "${BASE_SEPOLIA_RPC_URL}"
69+
70+
[base-sepolia.bool]
71+
is_testnet = true
72+
73+
[arbitrum]
74+
endpoint_url = "${ARBITRUM_RPC_URL}"
75+
76+
[arbitrum.bool]
77+
is_testnet = false
78+
79+
[arbitrum-sepolia]
80+
endpoint_url = "${ARBITRUM_SEPOLIA_RPC_URL}"
81+
82+
[arbitrum-sepolia.bool]
83+
is_testnet = true
84+
85+
[avalanche]
86+
endpoint_url = "${AVALANCHE_RPC_URL}"
87+
88+
[avalanche.bool]
89+
is_testnet = false
90+
91+
[fuji]
92+
endpoint_url = "${FUJI_RPC_URL}"
93+
94+
[fuji.bool]
95+
is_testnet = true
96+
97+
[linea]
98+
endpoint_url = "${LINEA_RPC_URL}"
99+
100+
[linea.bool]
101+
is_testnet = false
102+
103+
[linea-sepolia]
104+
endpoint_url = "${LINEA_SEPOLIA_RPC_URL}"
105+
106+
[linea-sepolia.bool]
107+
is_testnet = true
108+
109+
[scroll]
110+
endpoint_url = "${SCROLL_RPC_URL}"
111+
112+
[scroll.bool]
113+
is_testnet = false
114+
115+
[scroll-sepolia]
116+
endpoint_url = "${SCROLL_SEPOLIA_RPC_URL}"
117+
118+
[scroll-sepolia.bool]
119+
is_testnet = true

config/test.toml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
[mainnet]
2+
endpoint_url = "${MAINNET_RPC_URL}"
3+
4+
[optimism]
5+
endpoint_url = "${OPTIMISM_RPC_URL}"
6+
7+
[bsc]
8+
endpoint_url = "${BSC_RPC_URL}"
9+
10+
[unichain]
11+
endpoint_url = "${UNICHAIN_RPC_URL}"
12+
13+
[polygon]
14+
endpoint_url = "${POLYGON_RPC_URL}"
15+
16+
[base]
17+
endpoint_url = "${BASE_RPC_URL}"
18+
19+
[arbitrum]
20+
endpoint_url = "${ARBITRUM_RPC_URL}"
21+
22+
[avalanche]
23+
endpoint_url = "${AVALANCHE_RPC_URL}"
24+
25+
[linea]
26+
endpoint_url = "${LINEA_RPC_URL}"
27+
28+
[scroll]
29+
endpoint_url = "${SCROLL_RPC_URL}"

script/BaseScript.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ abstract contract BaseScript is Script, Config {
2424
}
2525

2626
function setUp() public virtual {
27-
_loadConfigAndForks("./config.toml", true);
27+
_loadConfigAndForks("./config/deployments.toml", true);
2828
broadcaster = vm.rememberKey(configurePrivateKey());
2929
}
3030

test/CreateXFactory.t.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ contract CreateXFactoryTest is Test, Config {
223223
}
224224

225225
function test_create3_chainAgnosticDeployment() public {
226-
_loadConfigAndForks("./config.toml", false);
226+
_loadConfigAndForks("./config/test.toml", false);
227227

228228
uint256[] memory chains = config.getChainIds();
229229
assertGt(chains.length, 0);

0 commit comments

Comments
 (0)