viem 2.23.2 → 2.23.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (183) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/_cjs/chains/definitions/b3.js +6 -0
  3. package/_cjs/chains/definitions/b3.js.map +1 -1
  4. package/_cjs/chains/definitions/b3Sepolia.js +6 -0
  5. package/_cjs/chains/definitions/b3Sepolia.js.map +1 -1
  6. package/_cjs/chains/definitions/berachainTestnet.js +6 -0
  7. package/_cjs/chains/definitions/berachainTestnet.js.map +1 -1
  8. package/_cjs/chains/definitions/donatuz.js +1 -1
  9. package/_cjs/chains/definitions/donatuz.js.map +1 -1
  10. package/_cjs/chains/definitions/hashkeyChainTestnet.js +1 -0
  11. package/_cjs/chains/definitions/hashkeyChainTestnet.js.map +1 -1
  12. package/_cjs/chains/definitions/haustTestnet.js +26 -0
  13. package/_cjs/chains/definitions/haustTestnet.js.map +1 -0
  14. package/_cjs/chains/definitions/lumoz.js +26 -0
  15. package/_cjs/chains/definitions/lumoz.js.map +1 -0
  16. package/_cjs/chains/definitions/lumozTestnet.js +20 -0
  17. package/_cjs/chains/definitions/lumozTestnet.js.map +1 -0
  18. package/_cjs/chains/definitions/newton.js +26 -0
  19. package/_cjs/chains/definitions/newton.js.map +1 -0
  20. package/_cjs/chains/definitions/peaq.js +41 -0
  21. package/_cjs/chains/definitions/peaq.js.map +1 -0
  22. package/_cjs/chains/definitions/polynomial.js +31 -0
  23. package/_cjs/chains/definitions/polynomial.js.map +1 -0
  24. package/_cjs/chains/definitions/polynomialSepolia.js +31 -0
  25. package/_cjs/chains/definitions/polynomialSepolia.js.map +1 -0
  26. package/_cjs/chains/definitions/story.js +7 -0
  27. package/_cjs/chains/definitions/story.js.map +1 -1
  28. package/_cjs/chains/definitions/storyAeneid.js +31 -0
  29. package/_cjs/chains/definitions/storyAeneid.js.map +1 -0
  30. package/_cjs/chains/definitions/worldchain.js +1 -1
  31. package/_cjs/chains/index.js +23 -7
  32. package/_cjs/chains/index.js.map +1 -1
  33. package/_cjs/errors/version.js +1 -1
  34. package/_cjs/op-stack/abis.js +7 -96
  35. package/_cjs/op-stack/abis.js.map +1 -1
  36. package/_cjs/op-stack/actions/getWithdrawalStatus.js +21 -14
  37. package/_cjs/op-stack/actions/getWithdrawalStatus.js.map +1 -1
  38. package/_cjs/zksync/actions/finalizeWithdrawal.js +99 -0
  39. package/_cjs/zksync/actions/finalizeWithdrawal.js.map +1 -0
  40. package/_cjs/zksync/constants/abis.js +724 -1
  41. package/_cjs/zksync/constants/abis.js.map +1 -1
  42. package/_cjs/zksync/constants/address.js +2 -1
  43. package/_cjs/zksync/constants/address.js.map +1 -1
  44. package/_cjs/zksync/decorators/walletL1.js +2 -0
  45. package/_cjs/zksync/decorators/walletL1.js.map +1 -1
  46. package/_cjs/zksync/errors/bridge.js +11 -1
  47. package/_cjs/zksync/errors/bridge.js.map +1 -1
  48. package/_cjs/zksync/index.js +4 -2
  49. package/_cjs/zksync/index.js.map +1 -1
  50. package/_cjs/zksync/utils/bridge/getWithdrawalL2ToL1Log.js +19 -0
  51. package/_cjs/zksync/utils/bridge/getWithdrawalL2ToL1Log.js.map +1 -0
  52. package/_cjs/zksync/utils/bridge/getWithdrawalLog.js +19 -0
  53. package/_cjs/zksync/utils/bridge/getWithdrawalLog.js.map +1 -0
  54. package/_esm/chains/definitions/b3.js +6 -0
  55. package/_esm/chains/definitions/b3.js.map +1 -1
  56. package/_esm/chains/definitions/b3Sepolia.js +6 -0
  57. package/_esm/chains/definitions/b3Sepolia.js.map +1 -1
  58. package/_esm/chains/definitions/berachainTestnet.js +6 -0
  59. package/_esm/chains/definitions/berachainTestnet.js.map +1 -1
  60. package/_esm/chains/definitions/donatuz.js +1 -1
  61. package/_esm/chains/definitions/donatuz.js.map +1 -1
  62. package/_esm/chains/definitions/hashkeyChainTestnet.js +1 -0
  63. package/_esm/chains/definitions/hashkeyChainTestnet.js.map +1 -1
  64. package/_esm/chains/definitions/haustTestnet.js +23 -0
  65. package/_esm/chains/definitions/haustTestnet.js.map +1 -0
  66. package/_esm/chains/definitions/lumoz.js +23 -0
  67. package/_esm/chains/definitions/lumoz.js.map +1 -0
  68. package/_esm/chains/definitions/lumozTestnet.js +17 -0
  69. package/_esm/chains/definitions/lumozTestnet.js.map +1 -0
  70. package/_esm/chains/definitions/newton.js +23 -0
  71. package/_esm/chains/definitions/newton.js.map +1 -0
  72. package/_esm/chains/definitions/peaq.js +38 -0
  73. package/_esm/chains/definitions/peaq.js.map +1 -0
  74. package/_esm/chains/definitions/polynomial.js +28 -0
  75. package/_esm/chains/definitions/polynomial.js.map +1 -0
  76. package/_esm/chains/definitions/polynomialSepolia.js +28 -0
  77. package/_esm/chains/definitions/polynomialSepolia.js.map +1 -0
  78. package/_esm/chains/definitions/story.js +7 -0
  79. package/_esm/chains/definitions/story.js.map +1 -1
  80. package/_esm/chains/definitions/storyAeneid.js +28 -0
  81. package/_esm/chains/definitions/storyAeneid.js.map +1 -0
  82. package/_esm/chains/definitions/worldchain.js +1 -1
  83. package/_esm/chains/index.js +10 -0
  84. package/_esm/chains/index.js.map +1 -1
  85. package/_esm/errors/version.js +1 -1
  86. package/_esm/op-stack/abis.js +7 -96
  87. package/_esm/op-stack/abis.js.map +1 -1
  88. package/_esm/op-stack/actions/getWithdrawalStatus.js +25 -14
  89. package/_esm/op-stack/actions/getWithdrawalStatus.js.map +1 -1
  90. package/_esm/zksync/actions/finalizeWithdrawal.js +147 -0
  91. package/_esm/zksync/actions/finalizeWithdrawal.js.map +1 -0
  92. package/_esm/zksync/constants/abis.js +723 -0
  93. package/_esm/zksync/constants/abis.js.map +1 -1
  94. package/_esm/zksync/constants/address.js +1 -0
  95. package/_esm/zksync/constants/address.js.map +1 -1
  96. package/_esm/zksync/decorators/walletL1.js +2 -0
  97. package/_esm/zksync/decorators/walletL1.js.map +1 -1
  98. package/_esm/zksync/errors/bridge.js +9 -0
  99. package/_esm/zksync/errors/bridge.js.map +1 -1
  100. package/_esm/zksync/index.js +1 -0
  101. package/_esm/zksync/index.js.map +1 -1
  102. package/_esm/zksync/utils/bridge/getWithdrawalL2ToL1Log.js +17 -0
  103. package/_esm/zksync/utils/bridge/getWithdrawalL2ToL1Log.js.map +1 -0
  104. package/_esm/zksync/utils/bridge/getWithdrawalLog.js +17 -0
  105. package/_esm/zksync/utils/bridge/getWithdrawalLog.js.map +1 -0
  106. package/_types/chains/definitions/b3.d.ts +6 -10
  107. package/_types/chains/definitions/b3.d.ts.map +1 -1
  108. package/_types/chains/definitions/b3Sepolia.d.ts +6 -10
  109. package/_types/chains/definitions/b3Sepolia.d.ts.map +1 -1
  110. package/_types/chains/definitions/berachainTestnet.d.ts +6 -10
  111. package/_types/chains/definitions/berachainTestnet.d.ts.map +1 -1
  112. package/_types/chains/definitions/donatuz.d.ts +1 -1
  113. package/_types/chains/definitions/hashkeyChainTestnet.d.ts +1 -1
  114. package/_types/chains/definitions/hashkeyChainTestnet.d.ts.map +1 -1
  115. package/_types/chains/definitions/haustTestnet.d.ts +37 -0
  116. package/_types/chains/definitions/haustTestnet.d.ts.map +1 -0
  117. package/_types/chains/definitions/lumoz.d.ts +37 -0
  118. package/_types/chains/definitions/lumoz.d.ts.map +1 -0
  119. package/_types/chains/definitions/lumozTestnet.d.ts +43 -0
  120. package/_types/chains/definitions/lumozTestnet.d.ts.map +1 -0
  121. package/_types/chains/definitions/newton.d.ts +37 -0
  122. package/_types/chains/definitions/newton.d.ts.map +1 -0
  123. package/_types/chains/definitions/peaq.d.ts +34 -0
  124. package/_types/chains/definitions/peaq.d.ts.map +1 -0
  125. package/_types/chains/definitions/polynomial.d.ts +32 -0
  126. package/_types/chains/definitions/polynomial.d.ts.map +1 -0
  127. package/_types/chains/definitions/polynomialSepolia.d.ts +32 -0
  128. package/_types/chains/definitions/polynomialSepolia.d.ts.map +1 -0
  129. package/_types/chains/definitions/story.d.ts +6 -11
  130. package/_types/chains/definitions/story.d.ts.map +1 -1
  131. package/_types/chains/definitions/storyAeneid.d.ts +34 -0
  132. package/_types/chains/definitions/storyAeneid.d.ts.map +1 -0
  133. package/_types/chains/definitions/worldchain.d.ts +1 -1
  134. package/_types/chains/index.d.ts +10 -0
  135. package/_types/chains/index.d.ts.map +1 -1
  136. package/_types/errors/version.d.ts +1 -1
  137. package/_types/op-stack/abis.d.ts +7 -77
  138. package/_types/op-stack/abis.d.ts.map +1 -1
  139. package/_types/op-stack/actions/getWithdrawalStatus.d.ts.map +1 -1
  140. package/_types/zksync/actions/finalizeWithdrawal.d.ts +73 -0
  141. package/_types/zksync/actions/finalizeWithdrawal.d.ts.map +1 -0
  142. package/_types/zksync/constants/abis.d.ts +567 -0
  143. package/_types/zksync/constants/abis.d.ts.map +1 -1
  144. package/_types/zksync/constants/address.d.ts +1 -0
  145. package/_types/zksync/constants/address.d.ts.map +1 -1
  146. package/_types/zksync/decorators/walletL1.d.ts +31 -0
  147. package/_types/zksync/decorators/walletL1.d.ts.map +1 -1
  148. package/_types/zksync/errors/bridge.d.ts +9 -0
  149. package/_types/zksync/errors/bridge.d.ts.map +1 -1
  150. package/_types/zksync/index.d.ts +1 -0
  151. package/_types/zksync/index.d.ts.map +1 -1
  152. package/_types/zksync/utils/bridge/getWithdrawalL2ToL1Log.d.ts +20 -0
  153. package/_types/zksync/utils/bridge/getWithdrawalL2ToL1Log.d.ts.map +1 -0
  154. package/_types/zksync/utils/bridge/getWithdrawalLog.d.ts +20 -0
  155. package/_types/zksync/utils/bridge/getWithdrawalLog.d.ts.map +1 -0
  156. package/chains/definitions/b3.ts +6 -0
  157. package/chains/definitions/b3Sepolia.ts +6 -0
  158. package/chains/definitions/berachainTestnet.ts +6 -0
  159. package/chains/definitions/donatuz.ts +1 -1
  160. package/chains/definitions/hashkeyChainTestnet.ts +1 -0
  161. package/chains/definitions/haustTestnet.ts +23 -0
  162. package/chains/definitions/lumoz.ts +23 -0
  163. package/chains/definitions/lumozTestnet.ts +17 -0
  164. package/chains/definitions/newton.ts +23 -0
  165. package/chains/definitions/peaq.ts +38 -0
  166. package/chains/definitions/polynomial.ts +28 -0
  167. package/chains/definitions/polynomialSepolia.ts +28 -0
  168. package/chains/definitions/story.ts +7 -0
  169. package/chains/definitions/storyAeneid.ts +28 -0
  170. package/chains/definitions/worldchain.ts +1 -1
  171. package/chains/index.ts +10 -0
  172. package/errors/version.ts +1 -1
  173. package/op-stack/abis.ts +7 -96
  174. package/op-stack/actions/getWithdrawalStatus.ts +28 -17
  175. package/package.json +1 -1
  176. package/zksync/actions/finalizeWithdrawal.ts +248 -0
  177. package/zksync/constants/abis.ts +724 -0
  178. package/zksync/constants/address.ts +3 -0
  179. package/zksync/decorators/walletL1.ts +48 -0
  180. package/zksync/errors/bridge.ts +17 -0
  181. package/zksync/index.ts +6 -0
  182. package/zksync/utils/bridge/getWithdrawalL2ToL1Log.ts +47 -0
  183. package/zksync/utils/bridge/getWithdrawalLog.ts +47 -0
@@ -221,6 +221,573 @@ export declare const l2SharedBridgeAbi: readonly [{
221
221
  readonly stateMutability: "nonpayable";
222
222
  readonly type: "function";
223
223
  }];
224
+ export declare const l1SharedBridgeAbi: readonly [{
225
+ readonly anonymous: false;
226
+ readonly inputs: readonly [{
227
+ readonly indexed: true;
228
+ readonly internalType: "uint256";
229
+ readonly name: "chainId";
230
+ readonly type: "uint256";
231
+ }, {
232
+ readonly indexed: true;
233
+ readonly internalType: "address";
234
+ readonly name: "from";
235
+ readonly type: "address";
236
+ }, {
237
+ readonly indexed: false;
238
+ readonly internalType: "address";
239
+ readonly name: "l1Token";
240
+ readonly type: "address";
241
+ }, {
242
+ readonly indexed: false;
243
+ readonly internalType: "uint256";
244
+ readonly name: "amount";
245
+ readonly type: "uint256";
246
+ }];
247
+ readonly name: "BridgehubDepositBaseTokenInitiated";
248
+ readonly type: "event";
249
+ }, {
250
+ readonly anonymous: false;
251
+ readonly inputs: readonly [{
252
+ readonly indexed: true;
253
+ readonly internalType: "uint256";
254
+ readonly name: "chainId";
255
+ readonly type: "uint256";
256
+ }, {
257
+ readonly indexed: true;
258
+ readonly internalType: "bytes32";
259
+ readonly name: "txDataHash";
260
+ readonly type: "bytes32";
261
+ }, {
262
+ readonly indexed: true;
263
+ readonly internalType: "bytes32";
264
+ readonly name: "l2DepositTxHash";
265
+ readonly type: "bytes32";
266
+ }];
267
+ readonly name: "BridgehubDepositFinalized";
268
+ readonly type: "event";
269
+ }, {
270
+ readonly anonymous: false;
271
+ readonly inputs: readonly [{
272
+ readonly indexed: true;
273
+ readonly internalType: "uint256";
274
+ readonly name: "chainId";
275
+ readonly type: "uint256";
276
+ }, {
277
+ readonly indexed: true;
278
+ readonly internalType: "bytes32";
279
+ readonly name: "txDataHash";
280
+ readonly type: "bytes32";
281
+ }, {
282
+ readonly indexed: true;
283
+ readonly internalType: "address";
284
+ readonly name: "from";
285
+ readonly type: "address";
286
+ }, {
287
+ readonly indexed: false;
288
+ readonly internalType: "address";
289
+ readonly name: "to";
290
+ readonly type: "address";
291
+ }, {
292
+ readonly indexed: false;
293
+ readonly internalType: "address";
294
+ readonly name: "l1Token";
295
+ readonly type: "address";
296
+ }, {
297
+ readonly indexed: false;
298
+ readonly internalType: "uint256";
299
+ readonly name: "amount";
300
+ readonly type: "uint256";
301
+ }];
302
+ readonly name: "BridgehubDepositInitiated";
303
+ readonly type: "event";
304
+ }, {
305
+ readonly anonymous: false;
306
+ readonly inputs: readonly [{
307
+ readonly indexed: true;
308
+ readonly internalType: "uint256";
309
+ readonly name: "chainId";
310
+ readonly type: "uint256";
311
+ }, {
312
+ readonly indexed: true;
313
+ readonly internalType: "address";
314
+ readonly name: "to";
315
+ readonly type: "address";
316
+ }, {
317
+ readonly indexed: true;
318
+ readonly internalType: "address";
319
+ readonly name: "l1Token";
320
+ readonly type: "address";
321
+ }, {
322
+ readonly indexed: false;
323
+ readonly internalType: "uint256";
324
+ readonly name: "amount";
325
+ readonly type: "uint256";
326
+ }];
327
+ readonly name: "ClaimedFailedDepositSharedBridge";
328
+ readonly type: "event";
329
+ }, {
330
+ readonly anonymous: false;
331
+ readonly inputs: readonly [{
332
+ readonly indexed: true;
333
+ readonly internalType: "uint256";
334
+ readonly name: "chainId";
335
+ readonly type: "uint256";
336
+ }, {
337
+ readonly indexed: true;
338
+ readonly internalType: "bytes32";
339
+ readonly name: "l2DepositTxHash";
340
+ readonly type: "bytes32";
341
+ }, {
342
+ readonly indexed: true;
343
+ readonly internalType: "address";
344
+ readonly name: "from";
345
+ readonly type: "address";
346
+ }, {
347
+ readonly indexed: false;
348
+ readonly internalType: "address";
349
+ readonly name: "to";
350
+ readonly type: "address";
351
+ }, {
352
+ readonly indexed: false;
353
+ readonly internalType: "address";
354
+ readonly name: "l1Token";
355
+ readonly type: "address";
356
+ }, {
357
+ readonly indexed: false;
358
+ readonly internalType: "uint256";
359
+ readonly name: "amount";
360
+ readonly type: "uint256";
361
+ }];
362
+ readonly name: "LegacyDepositInitiated";
363
+ readonly type: "event";
364
+ }, {
365
+ readonly anonymous: false;
366
+ readonly inputs: readonly [{
367
+ readonly indexed: true;
368
+ readonly internalType: "uint256";
369
+ readonly name: "chainId";
370
+ readonly type: "uint256";
371
+ }, {
372
+ readonly indexed: true;
373
+ readonly internalType: "address";
374
+ readonly name: "to";
375
+ readonly type: "address";
376
+ }, {
377
+ readonly indexed: true;
378
+ readonly internalType: "address";
379
+ readonly name: "l1Token";
380
+ readonly type: "address";
381
+ }, {
382
+ readonly indexed: false;
383
+ readonly internalType: "uint256";
384
+ readonly name: "amount";
385
+ readonly type: "uint256";
386
+ }];
387
+ readonly name: "WithdrawalFinalizedSharedBridge";
388
+ readonly type: "event";
389
+ }, {
390
+ readonly inputs: readonly [];
391
+ readonly name: "BRIDGE_HUB";
392
+ readonly outputs: readonly [{
393
+ readonly internalType: "contract IBridgehub";
394
+ readonly name: "";
395
+ readonly type: "address";
396
+ }];
397
+ readonly stateMutability: "view";
398
+ readonly type: "function";
399
+ }, {
400
+ readonly inputs: readonly [];
401
+ readonly name: "L1_WETH_TOKEN";
402
+ readonly outputs: readonly [{
403
+ readonly internalType: "address";
404
+ readonly name: "";
405
+ readonly type: "address";
406
+ }];
407
+ readonly stateMutability: "view";
408
+ readonly type: "function";
409
+ }, {
410
+ readonly inputs: readonly [{
411
+ readonly internalType: "uint256";
412
+ readonly name: "_chainId";
413
+ readonly type: "uint256";
414
+ }, {
415
+ readonly internalType: "bytes32";
416
+ readonly name: "_txDataHash";
417
+ readonly type: "bytes32";
418
+ }, {
419
+ readonly internalType: "bytes32";
420
+ readonly name: "_txHash";
421
+ readonly type: "bytes32";
422
+ }];
423
+ readonly name: "bridgehubConfirmL2Transaction";
424
+ readonly outputs: readonly [];
425
+ readonly stateMutability: "nonpayable";
426
+ readonly type: "function";
427
+ }, {
428
+ readonly inputs: readonly [{
429
+ readonly internalType: "uint256";
430
+ readonly name: "_chainId";
431
+ readonly type: "uint256";
432
+ }, {
433
+ readonly internalType: "address";
434
+ readonly name: "_prevMsgSender";
435
+ readonly type: "address";
436
+ }, {
437
+ readonly internalType: "uint256";
438
+ readonly name: "_l2Value";
439
+ readonly type: "uint256";
440
+ }, {
441
+ readonly internalType: "bytes";
442
+ readonly name: "_data";
443
+ readonly type: "bytes";
444
+ }];
445
+ readonly name: "bridgehubDeposit";
446
+ readonly outputs: readonly [{
447
+ readonly components: readonly [{
448
+ readonly internalType: "bytes32";
449
+ readonly name: "magicValue";
450
+ readonly type: "bytes32";
451
+ }, {
452
+ readonly internalType: "address";
453
+ readonly name: "l2Contract";
454
+ readonly type: "address";
455
+ }, {
456
+ readonly internalType: "bytes";
457
+ readonly name: "l2Calldata";
458
+ readonly type: "bytes";
459
+ }, {
460
+ readonly internalType: "bytes[]";
461
+ readonly name: "factoryDeps";
462
+ readonly type: "bytes[]";
463
+ }, {
464
+ readonly internalType: "bytes32";
465
+ readonly name: "txDataHash";
466
+ readonly type: "bytes32";
467
+ }];
468
+ readonly internalType: "struct L2TransactionRequestTwoBridgesInner";
469
+ readonly name: "request";
470
+ readonly type: "tuple";
471
+ }];
472
+ readonly stateMutability: "payable";
473
+ readonly type: "function";
474
+ }, {
475
+ readonly inputs: readonly [{
476
+ readonly internalType: "uint256";
477
+ readonly name: "_chainId";
478
+ readonly type: "uint256";
479
+ }, {
480
+ readonly internalType: "address";
481
+ readonly name: "_prevMsgSender";
482
+ readonly type: "address";
483
+ }, {
484
+ readonly internalType: "address";
485
+ readonly name: "_l1Token";
486
+ readonly type: "address";
487
+ }, {
488
+ readonly internalType: "uint256";
489
+ readonly name: "_amount";
490
+ readonly type: "uint256";
491
+ }];
492
+ readonly name: "bridgehubDepositBaseToken";
493
+ readonly outputs: readonly [];
494
+ readonly stateMutability: "payable";
495
+ readonly type: "function";
496
+ }, {
497
+ readonly inputs: readonly [{
498
+ readonly internalType: "uint256";
499
+ readonly name: "_chainId";
500
+ readonly type: "uint256";
501
+ }, {
502
+ readonly internalType: "address";
503
+ readonly name: "_depositSender";
504
+ readonly type: "address";
505
+ }, {
506
+ readonly internalType: "address";
507
+ readonly name: "_l1Token";
508
+ readonly type: "address";
509
+ }, {
510
+ readonly internalType: "uint256";
511
+ readonly name: "_amount";
512
+ readonly type: "uint256";
513
+ }, {
514
+ readonly internalType: "bytes32";
515
+ readonly name: "_l2TxHash";
516
+ readonly type: "bytes32";
517
+ }, {
518
+ readonly internalType: "uint256";
519
+ readonly name: "_l2BatchNumber";
520
+ readonly type: "uint256";
521
+ }, {
522
+ readonly internalType: "uint256";
523
+ readonly name: "_l2MessageIndex";
524
+ readonly type: "uint256";
525
+ }, {
526
+ readonly internalType: "uint16";
527
+ readonly name: "_l2TxNumberInBatch";
528
+ readonly type: "uint16";
529
+ }, {
530
+ readonly internalType: "bytes32[]";
531
+ readonly name: "_merkleProof";
532
+ readonly type: "bytes32[]";
533
+ }];
534
+ readonly name: "claimFailedDeposit";
535
+ readonly outputs: readonly [];
536
+ readonly stateMutability: "nonpayable";
537
+ readonly type: "function";
538
+ }, {
539
+ readonly inputs: readonly [{
540
+ readonly internalType: "address";
541
+ readonly name: "_depositSender";
542
+ readonly type: "address";
543
+ }, {
544
+ readonly internalType: "address";
545
+ readonly name: "_l1Token";
546
+ readonly type: "address";
547
+ }, {
548
+ readonly internalType: "uint256";
549
+ readonly name: "_amount";
550
+ readonly type: "uint256";
551
+ }, {
552
+ readonly internalType: "bytes32";
553
+ readonly name: "_l2TxHash";
554
+ readonly type: "bytes32";
555
+ }, {
556
+ readonly internalType: "uint256";
557
+ readonly name: "_l2BatchNumber";
558
+ readonly type: "uint256";
559
+ }, {
560
+ readonly internalType: "uint256";
561
+ readonly name: "_l2MessageIndex";
562
+ readonly type: "uint256";
563
+ }, {
564
+ readonly internalType: "uint16";
565
+ readonly name: "_l2TxNumberInBatch";
566
+ readonly type: "uint16";
567
+ }, {
568
+ readonly internalType: "bytes32[]";
569
+ readonly name: "_merkleProof";
570
+ readonly type: "bytes32[]";
571
+ }];
572
+ readonly name: "claimFailedDepositLegacyErc20Bridge";
573
+ readonly outputs: readonly [];
574
+ readonly stateMutability: "nonpayable";
575
+ readonly type: "function";
576
+ }, {
577
+ readonly inputs: readonly [{
578
+ readonly internalType: "uint256";
579
+ readonly name: "_chainId";
580
+ readonly type: "uint256";
581
+ }, {
582
+ readonly internalType: "bytes32";
583
+ readonly name: "_l2TxHash";
584
+ readonly type: "bytes32";
585
+ }];
586
+ readonly name: "depositHappened";
587
+ readonly outputs: readonly [{
588
+ readonly internalType: "bytes32";
589
+ readonly name: "";
590
+ readonly type: "bytes32";
591
+ }];
592
+ readonly stateMutability: "view";
593
+ readonly type: "function";
594
+ }, {
595
+ readonly inputs: readonly [{
596
+ readonly internalType: "address";
597
+ readonly name: "_msgSender";
598
+ readonly type: "address";
599
+ }, {
600
+ readonly internalType: "address";
601
+ readonly name: "_l2Receiver";
602
+ readonly type: "address";
603
+ }, {
604
+ readonly internalType: "address";
605
+ readonly name: "_l1Token";
606
+ readonly type: "address";
607
+ }, {
608
+ readonly internalType: "uint256";
609
+ readonly name: "_amount";
610
+ readonly type: "uint256";
611
+ }, {
612
+ readonly internalType: "uint256";
613
+ readonly name: "_l2TxGasLimit";
614
+ readonly type: "uint256";
615
+ }, {
616
+ readonly internalType: "uint256";
617
+ readonly name: "_l2TxGasPerPubdataByte";
618
+ readonly type: "uint256";
619
+ }, {
620
+ readonly internalType: "address";
621
+ readonly name: "_refundRecipient";
622
+ readonly type: "address";
623
+ }];
624
+ readonly name: "depositLegacyErc20Bridge";
625
+ readonly outputs: readonly [{
626
+ readonly internalType: "bytes32";
627
+ readonly name: "txHash";
628
+ readonly type: "bytes32";
629
+ }];
630
+ readonly stateMutability: "payable";
631
+ readonly type: "function";
632
+ }, {
633
+ readonly inputs: readonly [{
634
+ readonly internalType: "uint256";
635
+ readonly name: "_chainId";
636
+ readonly type: "uint256";
637
+ }, {
638
+ readonly internalType: "uint256";
639
+ readonly name: "_l2BatchNumber";
640
+ readonly type: "uint256";
641
+ }, {
642
+ readonly internalType: "uint256";
643
+ readonly name: "_l2MessageIndex";
644
+ readonly type: "uint256";
645
+ }, {
646
+ readonly internalType: "uint16";
647
+ readonly name: "_l2TxNumberInBatch";
648
+ readonly type: "uint16";
649
+ }, {
650
+ readonly internalType: "bytes";
651
+ readonly name: "_message";
652
+ readonly type: "bytes";
653
+ }, {
654
+ readonly internalType: "bytes32[]";
655
+ readonly name: "_merkleProof";
656
+ readonly type: "bytes32[]";
657
+ }];
658
+ readonly name: "finalizeWithdrawal";
659
+ readonly outputs: readonly [];
660
+ readonly stateMutability: "nonpayable";
661
+ readonly type: "function";
662
+ }, {
663
+ readonly inputs: readonly [{
664
+ readonly internalType: "uint256";
665
+ readonly name: "_l2BatchNumber";
666
+ readonly type: "uint256";
667
+ }, {
668
+ readonly internalType: "uint256";
669
+ readonly name: "_l2MessageIndex";
670
+ readonly type: "uint256";
671
+ }, {
672
+ readonly internalType: "uint16";
673
+ readonly name: "_l2TxNumberInBatch";
674
+ readonly type: "uint16";
675
+ }, {
676
+ readonly internalType: "bytes";
677
+ readonly name: "_message";
678
+ readonly type: "bytes";
679
+ }, {
680
+ readonly internalType: "bytes32[]";
681
+ readonly name: "_merkleProof";
682
+ readonly type: "bytes32[]";
683
+ }];
684
+ readonly name: "finalizeWithdrawalLegacyErc20Bridge";
685
+ readonly outputs: readonly [{
686
+ readonly internalType: "address";
687
+ readonly name: "l1Receiver";
688
+ readonly type: "address";
689
+ }, {
690
+ readonly internalType: "address";
691
+ readonly name: "l1Token";
692
+ readonly type: "address";
693
+ }, {
694
+ readonly internalType: "uint256";
695
+ readonly name: "amount";
696
+ readonly type: "uint256";
697
+ }];
698
+ readonly stateMutability: "nonpayable";
699
+ readonly type: "function";
700
+ }, {
701
+ readonly inputs: readonly [{
702
+ readonly internalType: "uint256";
703
+ readonly name: "_chainId";
704
+ readonly type: "uint256";
705
+ }, {
706
+ readonly internalType: "uint256";
707
+ readonly name: "_l2BatchNumber";
708
+ readonly type: "uint256";
709
+ }, {
710
+ readonly internalType: "uint256";
711
+ readonly name: "_l2MessageIndex";
712
+ readonly type: "uint256";
713
+ }];
714
+ readonly name: "isWithdrawalFinalized";
715
+ readonly outputs: readonly [{
716
+ readonly internalType: "bool";
717
+ readonly name: "";
718
+ readonly type: "bool";
719
+ }];
720
+ readonly stateMutability: "view";
721
+ readonly type: "function";
722
+ }, {
723
+ readonly inputs: readonly [{
724
+ readonly internalType: "uint256";
725
+ readonly name: "_chainId";
726
+ readonly type: "uint256";
727
+ }];
728
+ readonly name: "l2BridgeAddress";
729
+ readonly outputs: readonly [{
730
+ readonly internalType: "address";
731
+ readonly name: "";
732
+ readonly type: "address";
733
+ }];
734
+ readonly stateMutability: "view";
735
+ readonly type: "function";
736
+ }, {
737
+ readonly inputs: readonly [];
738
+ readonly name: "legacyBridge";
739
+ readonly outputs: readonly [{
740
+ readonly internalType: "contract IL1ERC20Bridge";
741
+ readonly name: "";
742
+ readonly type: "address";
743
+ }];
744
+ readonly stateMutability: "view";
745
+ readonly type: "function";
746
+ }, {
747
+ readonly inputs: readonly [{
748
+ readonly internalType: "uint256";
749
+ readonly name: "_chainId";
750
+ readonly type: "uint256";
751
+ }];
752
+ readonly name: "receiveEth";
753
+ readonly outputs: readonly [];
754
+ readonly stateMutability: "payable";
755
+ readonly type: "function";
756
+ }, {
757
+ readonly inputs: readonly [{
758
+ readonly internalType: "uint256";
759
+ readonly name: "_eraLegacyBridgeLastDepositBatch";
760
+ readonly type: "uint256";
761
+ }, {
762
+ readonly internalType: "uint256";
763
+ readonly name: "_eraLegacyBridgeLastDepositTxNumber";
764
+ readonly type: "uint256";
765
+ }];
766
+ readonly name: "setEraLegacyBridgeLastDepositTime";
767
+ readonly outputs: readonly [];
768
+ readonly stateMutability: "nonpayable";
769
+ readonly type: "function";
770
+ }, {
771
+ readonly inputs: readonly [{
772
+ readonly internalType: "uint256";
773
+ readonly name: "_eraPostDiamondUpgradeFirstBatch";
774
+ readonly type: "uint256";
775
+ }];
776
+ readonly name: "setEraPostDiamondUpgradeFirstBatch";
777
+ readonly outputs: readonly [];
778
+ readonly stateMutability: "nonpayable";
779
+ readonly type: "function";
780
+ }, {
781
+ readonly inputs: readonly [{
782
+ readonly internalType: "uint256";
783
+ readonly name: "_eraPostLegacyBridgeUpgradeFirstBatch";
784
+ readonly type: "uint256";
785
+ }];
786
+ readonly name: "setEraPostLegacyBridgeUpgradeFirstBatch";
787
+ readonly outputs: readonly [];
788
+ readonly stateMutability: "nonpayable";
789
+ readonly type: "function";
790
+ }];
224
791
  export declare const ethTokenAbi: readonly [{
225
792
  readonly anonymous: false;
226
793
  readonly inputs: readonly [{
@@ -1 +1 @@
1
- {"version":3,"file":"abis.d.ts","sourceRoot":"","sources":["../../../zksync/constants/abis.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAsa/B,CAAA;AAED,eAAO,MAAM,YAAY;;;;;;;;;;GAqCxB,CAAA;AAED,eAAO,MAAM,iBAAiB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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAs2EZ,CAAA"}
@@ -5,4 +5,5 @@ export declare const legacyEthAddress: "0x00000000000000000000000000000000000000
5
5
  export declare const ethAddressInContracts: "0x0000000000000000000000000000000000000001";
6
6
  /** The address of the base token. */
7
7
  export declare const l2BaseTokenAddress: "0x000000000000000000000000000000000000800a";
8
+ export declare const l1MessengerAddress: "0x0000000000000000000000000000000000008008";
8
9
  //# sourceMappingURL=address.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"address.d.ts","sourceRoot":"","sources":["../../../zksync/constants/address.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,8CACmB,CAAA;AAEvD,eAAO,MAAM,uBAAuB,8CACmB,CAAA;AAEvD,yCAAyC;AACzC,eAAO,MAAM,gBAAgB,8CAC0B,CAAA;AAEvD,eAAO,MAAM,qBAAqB,8CACqB,CAAA;AAEvD,qCAAqC;AACrC,eAAO,MAAM,kBAAkB,8CACwB,CAAA"}
1
+ {"version":3,"file":"address.d.ts","sourceRoot":"","sources":["../../../zksync/constants/address.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,8CACmB,CAAA;AAEvD,eAAO,MAAM,uBAAuB,8CACmB,CAAA;AAEvD,yCAAyC;AACzC,eAAO,MAAM,gBAAgB,8CAC0B,CAAA;AAEvD,eAAO,MAAM,qBAAqB,8CACqB,CAAA;AAEvD,qCAAqC;AACrC,eAAO,MAAM,kBAAkB,8CACwB,CAAA;AAEvD,eAAO,MAAM,kBAAkB,8CACwB,CAAA"}
@@ -2,9 +2,40 @@ import type { Client } from '../../clients/createClient.js';
2
2
  import type { Transport } from '../../clients/transports/createTransport.js';
3
3
  import type { Account } from '../../types/account.js';
4
4
  import type { Chain } from '../../types/chain.js';
5
+ import { type FinalizeWithdrawalParameters, type FinalizeWithdrawalReturnType } from '../actions/finalizeWithdrawal.js';
5
6
  import { type RequestExecuteParameters, type RequestExecuteReturnType } from '../actions/requestExecute.js';
6
7
  import type { ChainEIP712 } from '../types/chain.js';
7
8
  export type WalletActionsL1<chain extends Chain | undefined = Chain | undefined, account extends Account | undefined = Account | undefined> = {
9
+ /**
10
+ * Initiates the withdrawal process which withdraws ETH or any ERC20 token
11
+ * from the associated account on L2 network to the target account on L1 network.
12
+ *
13
+ * @param parameters - {@link FinalizeWithdrawalParameters}
14
+ * @returns hash - The [Transaction](https://viem.sh/docs/glossary/terms#transaction) hash. {@link FinalizeWithdrawalReturnType}
15
+ *
16
+ * @example
17
+ * import { createPublicClient, createWalletClient, http } from 'viem'
18
+ * import { privateKeyToAccount } from 'viem/accounts'
19
+ * import { mainnet, zksync } from 'viem/chains'
20
+ * import { walletActionsL1, publicActionsL2 } from 'viem/zksync'
21
+ *
22
+ * const walletClient = createWalletClient({
23
+ * account: privateKeyToAccount('0x…'),
24
+ * chain: mainnet,
25
+ * transport: http(),
26
+ * }).extend(walletActionsL1())
27
+ *
28
+ * const clientL2 = createPublicClient({
29
+ * chain: zksync,
30
+ * transport: http(),
31
+ * }).extend(publicActionsL2())
32
+ *
33
+ * const hash = await walletClient.finalizeWithdrawal({
34
+ * client: clientL2,
35
+ * hash: '0x…',
36
+ * })
37
+ */
38
+ finalizeWithdrawal: <chainOverride extends Chain | undefined = undefined, chainL2 extends ChainEIP712 | undefined = ChainEIP712 | undefined, accountL2 extends Account | undefined = Account | undefined>(parameters: FinalizeWithdrawalParameters<chain, account, chainOverride, chainL2, accountL2>) => Promise<FinalizeWithdrawalReturnType>;
8
39
  /**
9
40
  * Requests execution of a L2 transaction from L1.
10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OAAO,GAAG,SAAS,EAE3D,UAAU,EAAE,wBAAwB,CAClC,KAAK,EACL,OAAO,EACP,aAAa,EACb,OAAO,EACP,SAAS,CACV,KACE,OAAO,CAAC,wBAAwB,CAAC,CAAA;CACvC,CAAA;AAED,wBAAgB,eAAe,KAE3B,SAAS,SAAS,SAAS,EAC3B,KAAK,SAAS,KAAK,GAAG,SAAS,sBAC/B,OAAO,SAAS,OAAO,GAAG,SAAS,gCAE3B,MAAM,CAAC,SAAS,EAAE,KAAK,EAAE,OAAO,CAAC,KACxC,eAAe,CAAC,KAAK,EAAE,OAAO,CAAC,CAInC"}
@@ -1,4 +1,5 @@
1
1
  import { BaseError } from '../../errors/base.js';
2
+ import type { Hash } from '../../types/misc.js';
2
3
  export type BaseFeeHigherThanValueErrorType = BaseFeeHigherThanValueError & {
3
4
  name: 'BaseFeeHigherThanValueError';
4
5
  };
@@ -11,4 +12,12 @@ export type TxHashNotFoundInLogsErrorType = BaseFeeHigherThanValueError & {
11
12
  export declare class TxHashNotFoundInLogsError extends BaseError {
12
13
  constructor();
13
14
  }
15
+ export type WithdrawalLogNotFoundErrorType = WithdrawalLogNotFoundError & {
16
+ name: 'WithdrawalLogNotFoundError';
17
+ };
18
+ export declare class WithdrawalLogNotFoundError extends BaseError {
19
+ constructor({ hash }: {
20
+ hash: Hash;
21
+ });
22
+ }
14
23
  //# sourceMappingURL=bridge.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"bridge.d.ts","sourceRoot":"","sources":["../../../zksync/errors/bridge.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAEhD,MAAM,MAAM,+BAA+B,GAAG,2BAA2B,GAAG;IAC1E,IAAI,EAAE,6BAA6B,CAAA;CACpC,CAAA;AACD,qBAAa,2BAA4B,SAAQ,SAAS;gBAC5C,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;CAW5C;AAED,MAAM,MAAM,6BAA6B,GAAG,2BAA2B,GAAG;IACxE,IAAI,EAAE,2BAA2B,CAAA;CAClC,CAAA;AACD,qBAAa,yBAA0B,SAAQ,SAAS;;CAMvD"}
1
+ {"version":3,"file":"bridge.d.ts","sourceRoot":"","sources":["../../../zksync/errors/bridge.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAChD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAA;AAE/C,MAAM,MAAM,+BAA+B,GAAG,2BAA2B,GAAG;IAC1E,IAAI,EAAE,6BAA6B,CAAA;CACpC,CAAA;AACD,qBAAa,2BAA4B,SAAQ,SAAS;gBAC5C,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;CAW5C;AAED,MAAM,MAAM,6BAA6B,GAAG,2BAA2B,GAAG;IACxE,IAAI,EAAE,2BAA2B,CAAA;CAClC,CAAA;AACD,qBAAa,yBAA0B,SAAQ,SAAS;;CAMvD;AAED,MAAM,MAAM,8BAA8B,GAAG,0BAA0B,GAAG;IACxE,IAAI,EAAE,4BAA4B,CAAA;CACnC,CAAA;AACD,qBAAa,0BAA2B,SAAQ,SAAS;gBAC3C,EAAE,IAAI,EAAE,EAAE;QAAE,IAAI,EAAE,IAAI,CAAA;KAAE;CAUrC"}
@@ -29,6 +29,7 @@ export { type SignTransactionErrorType, type SignTransactionParameters, type Sig
29
29
  export { type GetL2TokenAddressReturnType, type GetL2TokenAddressParameters, getL2TokenAddress, } from './actions/getL2TokenAddress.js';
30
30
  export { type GetL1TokenAddressReturnType, type GetL1TokenAddressParameters, getL1TokenAddress, } from './actions/getL1TokenAddress.js';
31
31
  export { type WithdrawErrorType, type WithdrawParameters, type WithdrawReturnType, withdraw, } from './actions/withdraw.js';
32
+ export { type FinalizeWithdrawalErrorType, type FinalizeWithdrawalParameters, type FinalizeWithdrawalReturnType, finalizeWithdrawal, } from './actions/finalizeWithdrawal.js';
32
33
  export { legacyEthAddress, l2BaseTokenAddress, } from './constants/address.js';
33
34
  export {
34
35
  /** @deprecated Use `zksync` instead */