Skip to content

Commit 6fa430d

Browse files
authored
chore(zkSync): Add mainnet deployments (#338)
1 parent 34f5ead commit 6fa430d

File tree

8 files changed

+3052
-2
lines changed

8 files changed

+3052
-2
lines changed

.upgradable/zkSync-era.json

Lines changed: 324 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,324 @@
1+
{
2+
"manifestVersion": "3.2",
3+
"proxies": [
4+
{
5+
"address": "0xE0B015E54d54fc84a6cB9B666099c46adE9335FF",
6+
"txHash": "0x7bc4bfc0ad70a698fa35240847d1c2e48cb1f9fcb1da6cbe0fe7920b5deef4ab",
7+
"kind": "uups"
8+
}
9+
],
10+
"impls": {
11+
"62e52f006f342c5c5e25e39163ade2e4b89099c2f96f2a96e897b00848e88288": {
12+
"address": "0x21aa92c23BC2A0E2DaB0335F5f864757FE68c0A7",
13+
"txHash": "0xcbc1039ca9b29d9999dde75f4d8e938942f037ae684bfe4cfaf04f9473f7bcca",
14+
"layout": {
15+
"solcVersion": "0.8.18",
16+
"storage": [
17+
{
18+
"label": "_initialized",
19+
"offset": 0,
20+
"slot": "0",
21+
"type": "t_uint8",
22+
"contract": "Initializable",
23+
"src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:63",
24+
"retypedFrom": "bool"
25+
},
26+
{
27+
"label": "_initializing",
28+
"offset": 1,
29+
"slot": "0",
30+
"type": "t_bool",
31+
"contract": "Initializable",
32+
"src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:68"
33+
},
34+
{
35+
"label": "__gap",
36+
"offset": 0,
37+
"slot": "1",
38+
"type": "t_array(t_uint256)50_storage",
39+
"contract": "ERC1967UpgradeUpgradeable",
40+
"src": "@openzeppelin/contracts-upgradeable/proxy/ERC1967/ERC1967UpgradeUpgradeable.sol:169"
41+
},
42+
{
43+
"label": "__gap",
44+
"offset": 0,
45+
"slot": "51",
46+
"type": "t_array(t_uint256)50_storage",
47+
"contract": "UUPSUpgradeable",
48+
"src": "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol:111"
49+
},
50+
{
51+
"label": "_status",
52+
"offset": 0,
53+
"slot": "101",
54+
"type": "t_uint256",
55+
"contract": "ReentrancyGuardUpgradeable",
56+
"src": "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol:38"
57+
},
58+
{
59+
"label": "__gap",
60+
"offset": 0,
61+
"slot": "102",
62+
"type": "t_array(t_uint256)49_storage",
63+
"contract": "ReentrancyGuardUpgradeable",
64+
"src": "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol:88"
65+
},
66+
{
67+
"label": "__gap",
68+
"offset": 0,
69+
"slot": "151",
70+
"type": "t_array(t_uint256)1000_storage",
71+
"contract": "MultiCallerUpgradeable",
72+
"src": "contracts/upgradeable/MultiCallerUpgradeable.sol:46"
73+
},
74+
{
75+
"label": "_HASHED_NAME",
76+
"offset": 0,
77+
"slot": "1151",
78+
"type": "t_bytes32",
79+
"contract": "EIP712CrossChainUpgradeable",
80+
"src": "contracts/upgradeable/EIP712CrossChainUpgradeable.sol:20"
81+
},
82+
{
83+
"label": "_HASHED_VERSION",
84+
"offset": 0,
85+
"slot": "1152",
86+
"type": "t_bytes32",
87+
"contract": "EIP712CrossChainUpgradeable",
88+
"src": "contracts/upgradeable/EIP712CrossChainUpgradeable.sol:21"
89+
},
90+
{
91+
"label": "__gap",
92+
"offset": 0,
93+
"slot": "1153",
94+
"type": "t_array(t_uint256)1000_storage",
95+
"contract": "EIP712CrossChainUpgradeable",
96+
"src": "contracts/upgradeable/EIP712CrossChainUpgradeable.sol:84"
97+
},
98+
{
99+
"label": "crossDomainAdmin",
100+
"offset": 0,
101+
"slot": "2153",
102+
"type": "t_address",
103+
"contract": "SpokePool",
104+
"src": "contracts/SpokePool.sol:50"
105+
},
106+
{
107+
"label": "hubPool",
108+
"offset": 0,
109+
"slot": "2154",
110+
"type": "t_address",
111+
"contract": "SpokePool",
112+
"src": "contracts/SpokePool.sol:54"
113+
},
114+
{
115+
"label": "wrappedNativeToken",
116+
"offset": 0,
117+
"slot": "2155",
118+
"type": "t_contract(WETH9Interface)9374",
119+
"contract": "SpokePool",
120+
"src": "contracts/SpokePool.sol:58"
121+
},
122+
{
123+
"label": "depositQuoteTimeBuffer",
124+
"offset": 20,
125+
"slot": "2155",
126+
"type": "t_uint32",
127+
"contract": "SpokePool",
128+
"src": "contracts/SpokePool.sol:62"
129+
},
130+
{
131+
"label": "numberOfDeposits",
132+
"offset": 24,
133+
"slot": "2155",
134+
"type": "t_uint32",
135+
"contract": "SpokePool",
136+
"src": "contracts/SpokePool.sol:65"
137+
},
138+
{
139+
"label": "pausedFills",
140+
"offset": 28,
141+
"slot": "2155",
142+
"type": "t_bool",
143+
"contract": "SpokePool",
144+
"src": "contracts/SpokePool.sol:68"
145+
},
146+
{
147+
"label": "pausedDeposits",
148+
"offset": 29,
149+
"slot": "2155",
150+
"type": "t_bool",
151+
"contract": "SpokePool",
152+
"src": "contracts/SpokePool.sol:69"
153+
},
154+
{
155+
"label": "rootBundles",
156+
"offset": 0,
157+
"slot": "2156",
158+
"type": "t_array(t_struct(RootBundle)9666_storage)dyn_storage",
159+
"contract": "SpokePool",
160+
"src": "contracts/SpokePool.sol:72"
161+
},
162+
{
163+
"label": "enabledDepositRoutes",
164+
"offset": 0,
165+
"slot": "2157",
166+
"type": "t_mapping(t_address,t_mapping(t_uint256,t_bool))",
167+
"contract": "SpokePool",
168+
"src": "contracts/SpokePool.sol:75"
169+
},
170+
{
171+
"label": "relayFills",
172+
"offset": 0,
173+
"slot": "2158",
174+
"type": "t_mapping(t_bytes32,t_uint256)",
175+
"contract": "SpokePool",
176+
"src": "contracts/SpokePool.sol:80"
177+
},
178+
{
179+
"label": "fillCounter",
180+
"offset": 0,
181+
"slot": "2159",
182+
"type": "t_mapping(t_address,t_uint256)",
183+
"contract": "SpokePool",
184+
"src": "contracts/SpokePool.sol:86"
185+
},
186+
{
187+
"label": "depositCounter",
188+
"offset": 0,
189+
"slot": "2160",
190+
"type": "t_mapping(t_address,t_uint256)",
191+
"contract": "SpokePool",
192+
"src": "contracts/SpokePool.sol:90"
193+
},
194+
{
195+
"label": "refundsRequested",
196+
"offset": 0,
197+
"slot": "2161",
198+
"type": "t_mapping(t_bytes32,t_uint256)",
199+
"contract": "SpokePool",
200+
"src": "contracts/SpokePool.sol:95"
201+
},
202+
{
203+
"label": "__gap",
204+
"offset": 0,
205+
"slot": "2162",
206+
"type": "t_array(t_uint256)1000_storage",
207+
"contract": "SpokePool",
208+
"src": "contracts/SpokePool.sol:1308"
209+
},
210+
{
211+
"label": "l2Eth",
212+
"offset": 0,
213+
"slot": "3162",
214+
"type": "t_address",
215+
"contract": "ZkSync_SpokePool",
216+
"src": "contracts/ZkSync_SpokePool.sol:30"
217+
},
218+
{
219+
"label": "zkErc20Bridge",
220+
"offset": 0,
221+
"slot": "3163",
222+
"type": "t_contract(ZkBridgeLike)8574",
223+
"contract": "ZkSync_SpokePool",
224+
"src": "contracts/ZkSync_SpokePool.sol:33"
225+
}
226+
],
227+
"types": {
228+
"t_address": {
229+
"label": "address",
230+
"numberOfBytes": "20"
231+
},
232+
"t_array(t_struct(RootBundle)9666_storage)dyn_storage": {
233+
"label": "struct SpokePoolInterface.RootBundle[]",
234+
"numberOfBytes": "32"
235+
},
236+
"t_array(t_uint256)1000_storage": {
237+
"label": "uint256[1000]",
238+
"numberOfBytes": "32000"
239+
},
240+
"t_array(t_uint256)49_storage": {
241+
"label": "uint256[49]",
242+
"numberOfBytes": "1568"
243+
},
244+
"t_array(t_uint256)50_storage": {
245+
"label": "uint256[50]",
246+
"numberOfBytes": "1600"
247+
},
248+
"t_bool": {
249+
"label": "bool",
250+
"numberOfBytes": "1"
251+
},
252+
"t_bytes32": {
253+
"label": "bytes32",
254+
"numberOfBytes": "32"
255+
},
256+
"t_contract(WETH9Interface)9374": {
257+
"label": "contract WETH9Interface",
258+
"numberOfBytes": "20"
259+
},
260+
"t_contract(ZkBridgeLike)8574": {
261+
"label": "contract ZkBridgeLike",
262+
"numberOfBytes": "20"
263+
},
264+
"t_mapping(t_address,t_mapping(t_uint256,t_bool))": {
265+
"label": "mapping(address => mapping(uint256 => bool))",
266+
"numberOfBytes": "32"
267+
},
268+
"t_mapping(t_address,t_uint256)": {
269+
"label": "mapping(address => uint256)",
270+
"numberOfBytes": "32"
271+
},
272+
"t_mapping(t_bytes32,t_uint256)": {
273+
"label": "mapping(bytes32 => uint256)",
274+
"numberOfBytes": "32"
275+
},
276+
"t_mapping(t_uint256,t_bool)": {
277+
"label": "mapping(uint256 => bool)",
278+
"numberOfBytes": "32"
279+
},
280+
"t_mapping(t_uint256,t_uint256)": {
281+
"label": "mapping(uint256 => uint256)",
282+
"numberOfBytes": "32"
283+
},
284+
"t_struct(RootBundle)9666_storage": {
285+
"label": "struct SpokePoolInterface.RootBundle",
286+
"members": [
287+
{
288+
"label": "slowRelayRoot",
289+
"type": "t_bytes32",
290+
"offset": 0,
291+
"slot": "0"
292+
},
293+
{
294+
"label": "relayerRefundRoot",
295+
"type": "t_bytes32",
296+
"offset": 0,
297+
"slot": "1"
298+
},
299+
{
300+
"label": "claimedBitmap",
301+
"type": "t_mapping(t_uint256,t_uint256)",
302+
"offset": 0,
303+
"slot": "2"
304+
}
305+
],
306+
"numberOfBytes": "96"
307+
},
308+
"t_uint256": {
309+
"label": "uint256",
310+
"numberOfBytes": "32"
311+
},
312+
"t_uint32": {
313+
"label": "uint32",
314+
"numberOfBytes": "4"
315+
},
316+
"t_uint8": {
317+
"label": "uint8",
318+
"numberOfBytes": "1"
319+
}
320+
}
321+
}
322+
}
323+
}
324+
}

deployments/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
| Ethereum_SpokePool | [0x5c7BCd6E7De5423a257D81B442095A1a6ced35C5](https://etherscan.io/address/0x5c7BCd6E7De5423a257D81B442095A1a6ced35C5) |
1414
| PolygonTokenBridger | [0x48d990AbDA20afa1fD1da713AbC041B60a922c65](https://etherscan.io/address/0x48d990AbDA20afa1fD1da713AbC041B60a922c65) |
1515
| Polygon_Adapter | [0x3E94e8d4316a1eBfb2245E45E6F0B8724094CE1A](https://etherscan.io/address/0x3E94e8d4316a1eBfb2245E45E6F0B8724094CE1A) |
16+
| ZkSync_Adapter | [0xE233009838CB898b50e0012a6E783FC9FeE447FB](https://etherscan.io/address/0xE233009838CB898b50e0012a6E783FC9FeE447FB) |
1617
| AcrossConfigStore | [0x3B03509645713718B78951126E0A6de6f10043f5](https://etherscan.io/address/0x3B03509645713718B78951126E0A6de6f10043f5) |
1718

1819
## Optimism mainnet (10)
@@ -28,6 +29,12 @@
2829
| PolygonTokenBridger | [0x48d990AbDA20afa1fD1da713AbC041B60a922c65](https://polygonscan.com/address/0x48d990AbDA20afa1fD1da713AbC041B60a922c65) |
2930
| Polygon_SpokePool | [0x9295ee1d8C5b022Be115A2AD3c30C72E34e7F096](https://polygonscan.com/address/0x9295ee1d8C5b022Be115A2AD3c30C72E34e7F096) |
3031

32+
## zkSync mainnet (324)
33+
34+
| Contract Name | Address |
35+
| ---------------- | --------------------------------------------------------------------------------------------------------------------------- |
36+
| zkSync_SpokePool | [0xE0B015E54d54fc84a6cB9B666099c46adE9335FF](https://explorer.zksync.io/address/0xE0B015E54d54fc84a6cB9B666099c46adE9335FF) |
37+
3138
## Arbitrum mainnet (42161)
3239

3340
| Contract Name | Address |

deployments/deployments.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"LpTokenFactory": { "address": "0x7dB69eb9F52eD773E9b03f5068A1ea0275b2fD9d", "blockNumber": 14704307 },
1313
"Optimism_Adapter": { "address": "0x22eD83A9eE26236486F57cE8385A247E5bFB71fF", "blockNumber": 14704379 },
1414
"PolygonTokenBridger": { "address": "0x0330E9b4D0325cCfF515E81DFbc7754F2a02ac57", "blockNumber": 14819539 },
15-
"Polygon_Adapter": { "address": "0x3E94e8d4316a1eBfb2245E45E6F0B8724094CE1A", "blockNumber": 14704450 }
15+
"Polygon_Adapter": { "address": "0x3E94e8d4316a1eBfb2245E45E6F0B8724094CE1A", "blockNumber": 14704450 },
16+
"ZkSync_Adapter": { "address": "0xE233009838CB898b50e0012a6E783FC9FeE447FB", "blockNumber": 17842162 }
1617
},
1718
"4": {
1819
"Arbitrum_Adapter": { "address": "0x18F4D98C7CeA6Ab934F2976c2a98009A529d8F49", "blockNumber": 10367195 },
@@ -50,8 +51,9 @@
5051
"PolygonTokenBridger": { "address": "0x0330E9b4D0325cCfF515E81DFbc7754F2a02ac57", "blockNumber": 28604258 },
5152
"SpokePool": { "address": "0x9295ee1d8C5b022Be115A2AD3c30C72E34e7F096", "blockNumber": 41908657 }
5253
},
53-
"280": { "SpokePool": { "address": "0x467A26E2eAcf5f81b63016Dbb4F0828809e79fF5", "blockNumber": 1114933 } },
54+
"280": { "SpokePool": { "address": "0x863859ef502F0Ee9676626ED5B418037252eFeb2", "blockNumber": 10263886 } },
5455
"288": { "SpokePool": { "address": "0xBbc6009fEfFc27ce705322832Cb2068F8C1e0A58", "blockNumber": 619993 } },
56+
"324": { "SpokePool": { "address": "0xE0B015E54d54fc84a6cB9B666099c46adE9335FF", "blockNumber": 10352565 } },
5557
"8453": { "SpokePool": { "address": "0x09aea4b2242abC8bb4BB78D537A67a245A7bEC64", "blockNumber": 2164878 } },
5658
"42161": { "SpokePool": { "address": "0xe35e9842fceaCA96570B734083f4a58e8F7C5f2A", "blockNumber": 83868041 } },
5759
"84531": { "SpokePool": { "address": "0x1F5AA71C79ec6a11FC55789ed32dAE3B64d75791", "blockNumber": 7992905 } },

0 commit comments

Comments
 (0)