viem 2.23.1 → 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 (204) hide show
  1. package/CHANGELOG.md +38 -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/pumpfiTestnet.js +26 -0
  27. package/_cjs/chains/definitions/pumpfiTestnet.js.map +1 -0
  28. package/_cjs/chains/definitions/story.js +7 -0
  29. package/_cjs/chains/definitions/story.js.map +1 -1
  30. package/_cjs/chains/definitions/storyAeneid.js +31 -0
  31. package/_cjs/chains/definitions/storyAeneid.js.map +1 -0
  32. package/_cjs/chains/definitions/unichain.js +21 -1
  33. package/_cjs/chains/definitions/unichain.js.map +1 -1
  34. package/_cjs/chains/definitions/worldchain.js +1 -1
  35. package/_cjs/chains/index.js +25 -7
  36. package/_cjs/chains/index.js.map +1 -1
  37. package/_cjs/errors/version.js +1 -1
  38. package/_cjs/op-stack/abis.js +7 -96
  39. package/_cjs/op-stack/abis.js.map +1 -1
  40. package/_cjs/op-stack/actions/getWithdrawalStatus.js +21 -14
  41. package/_cjs/op-stack/actions/getWithdrawalStatus.js.map +1 -1
  42. package/_cjs/op-stack/chains.js +3 -1
  43. package/_cjs/op-stack/chains.js.map +1 -1
  44. package/_cjs/zksync/actions/finalizeWithdrawal.js +99 -0
  45. package/_cjs/zksync/actions/finalizeWithdrawal.js.map +1 -0
  46. package/_cjs/zksync/constants/abis.js +724 -1
  47. package/_cjs/zksync/constants/abis.js.map +1 -1
  48. package/_cjs/zksync/constants/address.js +2 -1
  49. package/_cjs/zksync/constants/address.js.map +1 -1
  50. package/_cjs/zksync/decorators/walletL1.js +2 -0
  51. package/_cjs/zksync/decorators/walletL1.js.map +1 -1
  52. package/_cjs/zksync/errors/bridge.js +11 -1
  53. package/_cjs/zksync/errors/bridge.js.map +1 -1
  54. package/_cjs/zksync/index.js +4 -2
  55. package/_cjs/zksync/index.js.map +1 -1
  56. package/_cjs/zksync/utils/bridge/getWithdrawalL2ToL1Log.js +19 -0
  57. package/_cjs/zksync/utils/bridge/getWithdrawalL2ToL1Log.js.map +1 -0
  58. package/_cjs/zksync/utils/bridge/getWithdrawalLog.js +19 -0
  59. package/_cjs/zksync/utils/bridge/getWithdrawalLog.js.map +1 -0
  60. package/_esm/chains/definitions/b3.js +6 -0
  61. package/_esm/chains/definitions/b3.js.map +1 -1
  62. package/_esm/chains/definitions/b3Sepolia.js +6 -0
  63. package/_esm/chains/definitions/b3Sepolia.js.map +1 -1
  64. package/_esm/chains/definitions/berachainTestnet.js +6 -0
  65. package/_esm/chains/definitions/berachainTestnet.js.map +1 -1
  66. package/_esm/chains/definitions/donatuz.js +1 -1
  67. package/_esm/chains/definitions/donatuz.js.map +1 -1
  68. package/_esm/chains/definitions/hashkeyChainTestnet.js +1 -0
  69. package/_esm/chains/definitions/hashkeyChainTestnet.js.map +1 -1
  70. package/_esm/chains/definitions/haustTestnet.js +23 -0
  71. package/_esm/chains/definitions/haustTestnet.js.map +1 -0
  72. package/_esm/chains/definitions/lumoz.js +23 -0
  73. package/_esm/chains/definitions/lumoz.js.map +1 -0
  74. package/_esm/chains/definitions/lumozTestnet.js +17 -0
  75. package/_esm/chains/definitions/lumozTestnet.js.map +1 -0
  76. package/_esm/chains/definitions/newton.js +23 -0
  77. package/_esm/chains/definitions/newton.js.map +1 -0
  78. package/_esm/chains/definitions/peaq.js +38 -0
  79. package/_esm/chains/definitions/peaq.js.map +1 -0
  80. package/_esm/chains/definitions/polynomial.js +28 -0
  81. package/_esm/chains/definitions/polynomial.js.map +1 -0
  82. package/_esm/chains/definitions/polynomialSepolia.js +28 -0
  83. package/_esm/chains/definitions/polynomialSepolia.js.map +1 -0
  84. package/_esm/chains/definitions/pumpfiTestnet.js +23 -0
  85. package/_esm/chains/definitions/pumpfiTestnet.js.map +1 -0
  86. package/_esm/chains/definitions/story.js +7 -0
  87. package/_esm/chains/definitions/story.js.map +1 -1
  88. package/_esm/chains/definitions/storyAeneid.js +28 -0
  89. package/_esm/chains/definitions/storyAeneid.js.map +1 -0
  90. package/_esm/chains/definitions/unichain.js +21 -1
  91. package/_esm/chains/definitions/unichain.js.map +1 -1
  92. package/_esm/chains/definitions/worldchain.js +1 -1
  93. package/_esm/chains/index.js +11 -0
  94. package/_esm/chains/index.js.map +1 -1
  95. package/_esm/errors/version.js +1 -1
  96. package/_esm/op-stack/abis.js +7 -96
  97. package/_esm/op-stack/abis.js.map +1 -1
  98. package/_esm/op-stack/actions/getWithdrawalStatus.js +25 -14
  99. package/_esm/op-stack/actions/getWithdrawalStatus.js.map +1 -1
  100. package/_esm/op-stack/chains.js +1 -0
  101. package/_esm/op-stack/chains.js.map +1 -1
  102. package/_esm/zksync/actions/finalizeWithdrawal.js +147 -0
  103. package/_esm/zksync/actions/finalizeWithdrawal.js.map +1 -0
  104. package/_esm/zksync/constants/abis.js +723 -0
  105. package/_esm/zksync/constants/abis.js.map +1 -1
  106. package/_esm/zksync/constants/address.js +1 -0
  107. package/_esm/zksync/constants/address.js.map +1 -1
  108. package/_esm/zksync/decorators/walletL1.js +2 -0
  109. package/_esm/zksync/decorators/walletL1.js.map +1 -1
  110. package/_esm/zksync/errors/bridge.js +9 -0
  111. package/_esm/zksync/errors/bridge.js.map +1 -1
  112. package/_esm/zksync/index.js +1 -0
  113. package/_esm/zksync/index.js.map +1 -1
  114. package/_esm/zksync/utils/bridge/getWithdrawalL2ToL1Log.js +17 -0
  115. package/_esm/zksync/utils/bridge/getWithdrawalL2ToL1Log.js.map +1 -0
  116. package/_esm/zksync/utils/bridge/getWithdrawalLog.js +17 -0
  117. package/_esm/zksync/utils/bridge/getWithdrawalLog.js.map +1 -0
  118. package/_types/chains/definitions/b3.d.ts +6 -10
  119. package/_types/chains/definitions/b3.d.ts.map +1 -1
  120. package/_types/chains/definitions/b3Sepolia.d.ts +6 -10
  121. package/_types/chains/definitions/b3Sepolia.d.ts.map +1 -1
  122. package/_types/chains/definitions/berachainTestnet.d.ts +6 -10
  123. package/_types/chains/definitions/berachainTestnet.d.ts.map +1 -1
  124. package/_types/chains/definitions/donatuz.d.ts +1 -1
  125. package/_types/chains/definitions/hashkeyChainTestnet.d.ts +1 -1
  126. package/_types/chains/definitions/hashkeyChainTestnet.d.ts.map +1 -1
  127. package/_types/chains/definitions/haustTestnet.d.ts +37 -0
  128. package/_types/chains/definitions/haustTestnet.d.ts.map +1 -0
  129. package/_types/chains/definitions/lumoz.d.ts +37 -0
  130. package/_types/chains/definitions/lumoz.d.ts.map +1 -0
  131. package/_types/chains/definitions/lumozTestnet.d.ts +43 -0
  132. package/_types/chains/definitions/lumozTestnet.d.ts.map +1 -0
  133. package/_types/chains/definitions/newton.d.ts +37 -0
  134. package/_types/chains/definitions/newton.d.ts.map +1 -0
  135. package/_types/chains/definitions/peaq.d.ts +34 -0
  136. package/_types/chains/definitions/peaq.d.ts.map +1 -0
  137. package/_types/chains/definitions/polynomial.d.ts +32 -0
  138. package/_types/chains/definitions/polynomial.d.ts.map +1 -0
  139. package/_types/chains/definitions/polynomialSepolia.d.ts +32 -0
  140. package/_types/chains/definitions/polynomialSepolia.d.ts.map +1 -0
  141. package/_types/chains/definitions/pumpfiTestnet.d.ts +37 -0
  142. package/_types/chains/definitions/pumpfiTestnet.d.ts.map +1 -0
  143. package/_types/chains/definitions/story.d.ts +6 -11
  144. package/_types/chains/definitions/story.d.ts.map +1 -1
  145. package/_types/chains/definitions/storyAeneid.d.ts +34 -0
  146. package/_types/chains/definitions/storyAeneid.d.ts.map +1 -0
  147. package/_types/chains/definitions/unichain.d.ts +269 -4
  148. package/_types/chains/definitions/unichain.d.ts.map +1 -1
  149. package/_types/chains/definitions/worldchain.d.ts +1 -1
  150. package/_types/chains/index.d.ts +11 -0
  151. package/_types/chains/index.d.ts.map +1 -1
  152. package/_types/errors/version.d.ts +1 -1
  153. package/_types/op-stack/abis.d.ts +7 -77
  154. package/_types/op-stack/abis.d.ts.map +1 -1
  155. package/_types/op-stack/actions/getWithdrawalStatus.d.ts.map +1 -1
  156. package/_types/op-stack/chains.d.ts +1 -0
  157. package/_types/op-stack/chains.d.ts.map +1 -1
  158. package/_types/zksync/actions/finalizeWithdrawal.d.ts +73 -0
  159. package/_types/zksync/actions/finalizeWithdrawal.d.ts.map +1 -0
  160. package/_types/zksync/constants/abis.d.ts +567 -0
  161. package/_types/zksync/constants/abis.d.ts.map +1 -1
  162. package/_types/zksync/constants/address.d.ts +1 -0
  163. package/_types/zksync/constants/address.d.ts.map +1 -1
  164. package/_types/zksync/decorators/walletL1.d.ts +31 -0
  165. package/_types/zksync/decorators/walletL1.d.ts.map +1 -1
  166. package/_types/zksync/errors/bridge.d.ts +9 -0
  167. package/_types/zksync/errors/bridge.d.ts.map +1 -1
  168. package/_types/zksync/index.d.ts +1 -0
  169. package/_types/zksync/index.d.ts.map +1 -1
  170. package/_types/zksync/utils/bridge/getWithdrawalL2ToL1Log.d.ts +20 -0
  171. package/_types/zksync/utils/bridge/getWithdrawalL2ToL1Log.d.ts.map +1 -0
  172. package/_types/zksync/utils/bridge/getWithdrawalLog.d.ts +20 -0
  173. package/_types/zksync/utils/bridge/getWithdrawalLog.d.ts.map +1 -0
  174. package/chains/definitions/b3.ts +6 -0
  175. package/chains/definitions/b3Sepolia.ts +6 -0
  176. package/chains/definitions/berachainTestnet.ts +6 -0
  177. package/chains/definitions/donatuz.ts +1 -1
  178. package/chains/definitions/hashkeyChainTestnet.ts +1 -0
  179. package/chains/definitions/haustTestnet.ts +23 -0
  180. package/chains/definitions/lumoz.ts +23 -0
  181. package/chains/definitions/lumozTestnet.ts +17 -0
  182. package/chains/definitions/newton.ts +23 -0
  183. package/chains/definitions/peaq.ts +38 -0
  184. package/chains/definitions/polynomial.ts +28 -0
  185. package/chains/definitions/polynomialSepolia.ts +28 -0
  186. package/chains/definitions/pumpfiTestnet.ts +23 -0
  187. package/chains/definitions/story.ts +7 -0
  188. package/chains/definitions/storyAeneid.ts +28 -0
  189. package/chains/definitions/unichain.ts +22 -1
  190. package/chains/definitions/worldchain.ts +1 -1
  191. package/chains/index.ts +11 -0
  192. package/errors/version.ts +1 -1
  193. package/op-stack/abis.ts +7 -96
  194. package/op-stack/actions/getWithdrawalStatus.ts +28 -17
  195. package/op-stack/chains.ts +1 -0
  196. package/package.json +1 -1
  197. package/zksync/actions/finalizeWithdrawal.ts +248 -0
  198. package/zksync/constants/abis.ts +724 -0
  199. package/zksync/constants/address.ts +3 -0
  200. package/zksync/decorators/walletL1.ts +48 -0
  201. package/zksync/errors/bridge.ts +17 -0
  202. package/zksync/index.ts +6 -0
  203. package/zksync/utils/bridge/getWithdrawalL2ToL1Log.ts +47 -0
  204. package/zksync/utils/bridge/getWithdrawalLog.ts +47 -0
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.zksyncAbi = exports.bridgehubAbi = exports.ethTokenAbi = exports.l2SharedBridgeAbi = exports.paymasterAbi = exports.contractDeployerAbi = void 0;
3
+ exports.zksyncAbi = exports.bridgehubAbi = exports.ethTokenAbi = exports.l1SharedBridgeAbi = exports.l2SharedBridgeAbi = exports.paymasterAbi = exports.contractDeployerAbi = void 0;
4
4
  exports.contractDeployerAbi = [
5
5
  {
6
6
  anonymous: false,
@@ -646,6 +646,729 @@ exports.l2SharedBridgeAbi = [
646
646
  type: 'function',
647
647
  },
648
648
  ];
649
+ exports.l1SharedBridgeAbi = [
650
+ {
651
+ anonymous: false,
652
+ inputs: [
653
+ {
654
+ indexed: true,
655
+ internalType: 'uint256',
656
+ name: 'chainId',
657
+ type: 'uint256',
658
+ },
659
+ {
660
+ indexed: true,
661
+ internalType: 'address',
662
+ name: 'from',
663
+ type: 'address',
664
+ },
665
+ {
666
+ indexed: false,
667
+ internalType: 'address',
668
+ name: 'l1Token',
669
+ type: 'address',
670
+ },
671
+ {
672
+ indexed: false,
673
+ internalType: 'uint256',
674
+ name: 'amount',
675
+ type: 'uint256',
676
+ },
677
+ ],
678
+ name: 'BridgehubDepositBaseTokenInitiated',
679
+ type: 'event',
680
+ },
681
+ {
682
+ anonymous: false,
683
+ inputs: [
684
+ {
685
+ indexed: true,
686
+ internalType: 'uint256',
687
+ name: 'chainId',
688
+ type: 'uint256',
689
+ },
690
+ {
691
+ indexed: true,
692
+ internalType: 'bytes32',
693
+ name: 'txDataHash',
694
+ type: 'bytes32',
695
+ },
696
+ {
697
+ indexed: true,
698
+ internalType: 'bytes32',
699
+ name: 'l2DepositTxHash',
700
+ type: 'bytes32',
701
+ },
702
+ ],
703
+ name: 'BridgehubDepositFinalized',
704
+ type: 'event',
705
+ },
706
+ {
707
+ anonymous: false,
708
+ inputs: [
709
+ {
710
+ indexed: true,
711
+ internalType: 'uint256',
712
+ name: 'chainId',
713
+ type: 'uint256',
714
+ },
715
+ {
716
+ indexed: true,
717
+ internalType: 'bytes32',
718
+ name: 'txDataHash',
719
+ type: 'bytes32',
720
+ },
721
+ {
722
+ indexed: true,
723
+ internalType: 'address',
724
+ name: 'from',
725
+ type: 'address',
726
+ },
727
+ {
728
+ indexed: false,
729
+ internalType: 'address',
730
+ name: 'to',
731
+ type: 'address',
732
+ },
733
+ {
734
+ indexed: false,
735
+ internalType: 'address',
736
+ name: 'l1Token',
737
+ type: 'address',
738
+ },
739
+ {
740
+ indexed: false,
741
+ internalType: 'uint256',
742
+ name: 'amount',
743
+ type: 'uint256',
744
+ },
745
+ ],
746
+ name: 'BridgehubDepositInitiated',
747
+ type: 'event',
748
+ },
749
+ {
750
+ anonymous: false,
751
+ inputs: [
752
+ {
753
+ indexed: true,
754
+ internalType: 'uint256',
755
+ name: 'chainId',
756
+ type: 'uint256',
757
+ },
758
+ {
759
+ indexed: true,
760
+ internalType: 'address',
761
+ name: 'to',
762
+ type: 'address',
763
+ },
764
+ {
765
+ indexed: true,
766
+ internalType: 'address',
767
+ name: 'l1Token',
768
+ type: 'address',
769
+ },
770
+ {
771
+ indexed: false,
772
+ internalType: 'uint256',
773
+ name: 'amount',
774
+ type: 'uint256',
775
+ },
776
+ ],
777
+ name: 'ClaimedFailedDepositSharedBridge',
778
+ type: 'event',
779
+ },
780
+ {
781
+ anonymous: false,
782
+ inputs: [
783
+ {
784
+ indexed: true,
785
+ internalType: 'uint256',
786
+ name: 'chainId',
787
+ type: 'uint256',
788
+ },
789
+ {
790
+ indexed: true,
791
+ internalType: 'bytes32',
792
+ name: 'l2DepositTxHash',
793
+ type: 'bytes32',
794
+ },
795
+ {
796
+ indexed: true,
797
+ internalType: 'address',
798
+ name: 'from',
799
+ type: 'address',
800
+ },
801
+ {
802
+ indexed: false,
803
+ internalType: 'address',
804
+ name: 'to',
805
+ type: 'address',
806
+ },
807
+ {
808
+ indexed: false,
809
+ internalType: 'address',
810
+ name: 'l1Token',
811
+ type: 'address',
812
+ },
813
+ {
814
+ indexed: false,
815
+ internalType: 'uint256',
816
+ name: 'amount',
817
+ type: 'uint256',
818
+ },
819
+ ],
820
+ name: 'LegacyDepositInitiated',
821
+ type: 'event',
822
+ },
823
+ {
824
+ anonymous: false,
825
+ inputs: [
826
+ {
827
+ indexed: true,
828
+ internalType: 'uint256',
829
+ name: 'chainId',
830
+ type: 'uint256',
831
+ },
832
+ {
833
+ indexed: true,
834
+ internalType: 'address',
835
+ name: 'to',
836
+ type: 'address',
837
+ },
838
+ {
839
+ indexed: true,
840
+ internalType: 'address',
841
+ name: 'l1Token',
842
+ type: 'address',
843
+ },
844
+ {
845
+ indexed: false,
846
+ internalType: 'uint256',
847
+ name: 'amount',
848
+ type: 'uint256',
849
+ },
850
+ ],
851
+ name: 'WithdrawalFinalizedSharedBridge',
852
+ type: 'event',
853
+ },
854
+ {
855
+ inputs: [],
856
+ name: 'BRIDGE_HUB',
857
+ outputs: [
858
+ {
859
+ internalType: 'contract IBridgehub',
860
+ name: '',
861
+ type: 'address',
862
+ },
863
+ ],
864
+ stateMutability: 'view',
865
+ type: 'function',
866
+ },
867
+ {
868
+ inputs: [],
869
+ name: 'L1_WETH_TOKEN',
870
+ outputs: [
871
+ {
872
+ internalType: 'address',
873
+ name: '',
874
+ type: 'address',
875
+ },
876
+ ],
877
+ stateMutability: 'view',
878
+ type: 'function',
879
+ },
880
+ {
881
+ inputs: [
882
+ {
883
+ internalType: 'uint256',
884
+ name: '_chainId',
885
+ type: 'uint256',
886
+ },
887
+ {
888
+ internalType: 'bytes32',
889
+ name: '_txDataHash',
890
+ type: 'bytes32',
891
+ },
892
+ {
893
+ internalType: 'bytes32',
894
+ name: '_txHash',
895
+ type: 'bytes32',
896
+ },
897
+ ],
898
+ name: 'bridgehubConfirmL2Transaction',
899
+ outputs: [],
900
+ stateMutability: 'nonpayable',
901
+ type: 'function',
902
+ },
903
+ {
904
+ inputs: [
905
+ {
906
+ internalType: 'uint256',
907
+ name: '_chainId',
908
+ type: 'uint256',
909
+ },
910
+ {
911
+ internalType: 'address',
912
+ name: '_prevMsgSender',
913
+ type: 'address',
914
+ },
915
+ {
916
+ internalType: 'uint256',
917
+ name: '_l2Value',
918
+ type: 'uint256',
919
+ },
920
+ {
921
+ internalType: 'bytes',
922
+ name: '_data',
923
+ type: 'bytes',
924
+ },
925
+ ],
926
+ name: 'bridgehubDeposit',
927
+ outputs: [
928
+ {
929
+ components: [
930
+ {
931
+ internalType: 'bytes32',
932
+ name: 'magicValue',
933
+ type: 'bytes32',
934
+ },
935
+ {
936
+ internalType: 'address',
937
+ name: 'l2Contract',
938
+ type: 'address',
939
+ },
940
+ {
941
+ internalType: 'bytes',
942
+ name: 'l2Calldata',
943
+ type: 'bytes',
944
+ },
945
+ {
946
+ internalType: 'bytes[]',
947
+ name: 'factoryDeps',
948
+ type: 'bytes[]',
949
+ },
950
+ {
951
+ internalType: 'bytes32',
952
+ name: 'txDataHash',
953
+ type: 'bytes32',
954
+ },
955
+ ],
956
+ internalType: 'struct L2TransactionRequestTwoBridgesInner',
957
+ name: 'request',
958
+ type: 'tuple',
959
+ },
960
+ ],
961
+ stateMutability: 'payable',
962
+ type: 'function',
963
+ },
964
+ {
965
+ inputs: [
966
+ {
967
+ internalType: 'uint256',
968
+ name: '_chainId',
969
+ type: 'uint256',
970
+ },
971
+ {
972
+ internalType: 'address',
973
+ name: '_prevMsgSender',
974
+ type: 'address',
975
+ },
976
+ {
977
+ internalType: 'address',
978
+ name: '_l1Token',
979
+ type: 'address',
980
+ },
981
+ {
982
+ internalType: 'uint256',
983
+ name: '_amount',
984
+ type: 'uint256',
985
+ },
986
+ ],
987
+ name: 'bridgehubDepositBaseToken',
988
+ outputs: [],
989
+ stateMutability: 'payable',
990
+ type: 'function',
991
+ },
992
+ {
993
+ inputs: [
994
+ {
995
+ internalType: 'uint256',
996
+ name: '_chainId',
997
+ type: 'uint256',
998
+ },
999
+ {
1000
+ internalType: 'address',
1001
+ name: '_depositSender',
1002
+ type: 'address',
1003
+ },
1004
+ {
1005
+ internalType: 'address',
1006
+ name: '_l1Token',
1007
+ type: 'address',
1008
+ },
1009
+ {
1010
+ internalType: 'uint256',
1011
+ name: '_amount',
1012
+ type: 'uint256',
1013
+ },
1014
+ {
1015
+ internalType: 'bytes32',
1016
+ name: '_l2TxHash',
1017
+ type: 'bytes32',
1018
+ },
1019
+ {
1020
+ internalType: 'uint256',
1021
+ name: '_l2BatchNumber',
1022
+ type: 'uint256',
1023
+ },
1024
+ {
1025
+ internalType: 'uint256',
1026
+ name: '_l2MessageIndex',
1027
+ type: 'uint256',
1028
+ },
1029
+ {
1030
+ internalType: 'uint16',
1031
+ name: '_l2TxNumberInBatch',
1032
+ type: 'uint16',
1033
+ },
1034
+ {
1035
+ internalType: 'bytes32[]',
1036
+ name: '_merkleProof',
1037
+ type: 'bytes32[]',
1038
+ },
1039
+ ],
1040
+ name: 'claimFailedDeposit',
1041
+ outputs: [],
1042
+ stateMutability: 'nonpayable',
1043
+ type: 'function',
1044
+ },
1045
+ {
1046
+ inputs: [
1047
+ {
1048
+ internalType: 'address',
1049
+ name: '_depositSender',
1050
+ type: 'address',
1051
+ },
1052
+ {
1053
+ internalType: 'address',
1054
+ name: '_l1Token',
1055
+ type: 'address',
1056
+ },
1057
+ {
1058
+ internalType: 'uint256',
1059
+ name: '_amount',
1060
+ type: 'uint256',
1061
+ },
1062
+ {
1063
+ internalType: 'bytes32',
1064
+ name: '_l2TxHash',
1065
+ type: 'bytes32',
1066
+ },
1067
+ {
1068
+ internalType: 'uint256',
1069
+ name: '_l2BatchNumber',
1070
+ type: 'uint256',
1071
+ },
1072
+ {
1073
+ internalType: 'uint256',
1074
+ name: '_l2MessageIndex',
1075
+ type: 'uint256',
1076
+ },
1077
+ {
1078
+ internalType: 'uint16',
1079
+ name: '_l2TxNumberInBatch',
1080
+ type: 'uint16',
1081
+ },
1082
+ {
1083
+ internalType: 'bytes32[]',
1084
+ name: '_merkleProof',
1085
+ type: 'bytes32[]',
1086
+ },
1087
+ ],
1088
+ name: 'claimFailedDepositLegacyErc20Bridge',
1089
+ outputs: [],
1090
+ stateMutability: 'nonpayable',
1091
+ type: 'function',
1092
+ },
1093
+ {
1094
+ inputs: [
1095
+ {
1096
+ internalType: 'uint256',
1097
+ name: '_chainId',
1098
+ type: 'uint256',
1099
+ },
1100
+ {
1101
+ internalType: 'bytes32',
1102
+ name: '_l2TxHash',
1103
+ type: 'bytes32',
1104
+ },
1105
+ ],
1106
+ name: 'depositHappened',
1107
+ outputs: [
1108
+ {
1109
+ internalType: 'bytes32',
1110
+ name: '',
1111
+ type: 'bytes32',
1112
+ },
1113
+ ],
1114
+ stateMutability: 'view',
1115
+ type: 'function',
1116
+ },
1117
+ {
1118
+ inputs: [
1119
+ {
1120
+ internalType: 'address',
1121
+ name: '_msgSender',
1122
+ type: 'address',
1123
+ },
1124
+ {
1125
+ internalType: 'address',
1126
+ name: '_l2Receiver',
1127
+ type: 'address',
1128
+ },
1129
+ {
1130
+ internalType: 'address',
1131
+ name: '_l1Token',
1132
+ type: 'address',
1133
+ },
1134
+ {
1135
+ internalType: 'uint256',
1136
+ name: '_amount',
1137
+ type: 'uint256',
1138
+ },
1139
+ {
1140
+ internalType: 'uint256',
1141
+ name: '_l2TxGasLimit',
1142
+ type: 'uint256',
1143
+ },
1144
+ {
1145
+ internalType: 'uint256',
1146
+ name: '_l2TxGasPerPubdataByte',
1147
+ type: 'uint256',
1148
+ },
1149
+ {
1150
+ internalType: 'address',
1151
+ name: '_refundRecipient',
1152
+ type: 'address',
1153
+ },
1154
+ ],
1155
+ name: 'depositLegacyErc20Bridge',
1156
+ outputs: [
1157
+ {
1158
+ internalType: 'bytes32',
1159
+ name: 'txHash',
1160
+ type: 'bytes32',
1161
+ },
1162
+ ],
1163
+ stateMutability: 'payable',
1164
+ type: 'function',
1165
+ },
1166
+ {
1167
+ inputs: [
1168
+ {
1169
+ internalType: 'uint256',
1170
+ name: '_chainId',
1171
+ type: 'uint256',
1172
+ },
1173
+ {
1174
+ internalType: 'uint256',
1175
+ name: '_l2BatchNumber',
1176
+ type: 'uint256',
1177
+ },
1178
+ {
1179
+ internalType: 'uint256',
1180
+ name: '_l2MessageIndex',
1181
+ type: 'uint256',
1182
+ },
1183
+ {
1184
+ internalType: 'uint16',
1185
+ name: '_l2TxNumberInBatch',
1186
+ type: 'uint16',
1187
+ },
1188
+ {
1189
+ internalType: 'bytes',
1190
+ name: '_message',
1191
+ type: 'bytes',
1192
+ },
1193
+ {
1194
+ internalType: 'bytes32[]',
1195
+ name: '_merkleProof',
1196
+ type: 'bytes32[]',
1197
+ },
1198
+ ],
1199
+ name: 'finalizeWithdrawal',
1200
+ outputs: [],
1201
+ stateMutability: 'nonpayable',
1202
+ type: 'function',
1203
+ },
1204
+ {
1205
+ inputs: [
1206
+ {
1207
+ internalType: 'uint256',
1208
+ name: '_l2BatchNumber',
1209
+ type: 'uint256',
1210
+ },
1211
+ {
1212
+ internalType: 'uint256',
1213
+ name: '_l2MessageIndex',
1214
+ type: 'uint256',
1215
+ },
1216
+ {
1217
+ internalType: 'uint16',
1218
+ name: '_l2TxNumberInBatch',
1219
+ type: 'uint16',
1220
+ },
1221
+ {
1222
+ internalType: 'bytes',
1223
+ name: '_message',
1224
+ type: 'bytes',
1225
+ },
1226
+ {
1227
+ internalType: 'bytes32[]',
1228
+ name: '_merkleProof',
1229
+ type: 'bytes32[]',
1230
+ },
1231
+ ],
1232
+ name: 'finalizeWithdrawalLegacyErc20Bridge',
1233
+ outputs: [
1234
+ {
1235
+ internalType: 'address',
1236
+ name: 'l1Receiver',
1237
+ type: 'address',
1238
+ },
1239
+ {
1240
+ internalType: 'address',
1241
+ name: 'l1Token',
1242
+ type: 'address',
1243
+ },
1244
+ {
1245
+ internalType: 'uint256',
1246
+ name: 'amount',
1247
+ type: 'uint256',
1248
+ },
1249
+ ],
1250
+ stateMutability: 'nonpayable',
1251
+ type: 'function',
1252
+ },
1253
+ {
1254
+ inputs: [
1255
+ {
1256
+ internalType: 'uint256',
1257
+ name: '_chainId',
1258
+ type: 'uint256',
1259
+ },
1260
+ {
1261
+ internalType: 'uint256',
1262
+ name: '_l2BatchNumber',
1263
+ type: 'uint256',
1264
+ },
1265
+ {
1266
+ internalType: 'uint256',
1267
+ name: '_l2MessageIndex',
1268
+ type: 'uint256',
1269
+ },
1270
+ ],
1271
+ name: 'isWithdrawalFinalized',
1272
+ outputs: [
1273
+ {
1274
+ internalType: 'bool',
1275
+ name: '',
1276
+ type: 'bool',
1277
+ },
1278
+ ],
1279
+ stateMutability: 'view',
1280
+ type: 'function',
1281
+ },
1282
+ {
1283
+ inputs: [
1284
+ {
1285
+ internalType: 'uint256',
1286
+ name: '_chainId',
1287
+ type: 'uint256',
1288
+ },
1289
+ ],
1290
+ name: 'l2BridgeAddress',
1291
+ outputs: [
1292
+ {
1293
+ internalType: 'address',
1294
+ name: '',
1295
+ type: 'address',
1296
+ },
1297
+ ],
1298
+ stateMutability: 'view',
1299
+ type: 'function',
1300
+ },
1301
+ {
1302
+ inputs: [],
1303
+ name: 'legacyBridge',
1304
+ outputs: [
1305
+ {
1306
+ internalType: 'contract IL1ERC20Bridge',
1307
+ name: '',
1308
+ type: 'address',
1309
+ },
1310
+ ],
1311
+ stateMutability: 'view',
1312
+ type: 'function',
1313
+ },
1314
+ {
1315
+ inputs: [
1316
+ {
1317
+ internalType: 'uint256',
1318
+ name: '_chainId',
1319
+ type: 'uint256',
1320
+ },
1321
+ ],
1322
+ name: 'receiveEth',
1323
+ outputs: [],
1324
+ stateMutability: 'payable',
1325
+ type: 'function',
1326
+ },
1327
+ {
1328
+ inputs: [
1329
+ {
1330
+ internalType: 'uint256',
1331
+ name: '_eraLegacyBridgeLastDepositBatch',
1332
+ type: 'uint256',
1333
+ },
1334
+ {
1335
+ internalType: 'uint256',
1336
+ name: '_eraLegacyBridgeLastDepositTxNumber',
1337
+ type: 'uint256',
1338
+ },
1339
+ ],
1340
+ name: 'setEraLegacyBridgeLastDepositTime',
1341
+ outputs: [],
1342
+ stateMutability: 'nonpayable',
1343
+ type: 'function',
1344
+ },
1345
+ {
1346
+ inputs: [
1347
+ {
1348
+ internalType: 'uint256',
1349
+ name: '_eraPostDiamondUpgradeFirstBatch',
1350
+ type: 'uint256',
1351
+ },
1352
+ ],
1353
+ name: 'setEraPostDiamondUpgradeFirstBatch',
1354
+ outputs: [],
1355
+ stateMutability: 'nonpayable',
1356
+ type: 'function',
1357
+ },
1358
+ {
1359
+ inputs: [
1360
+ {
1361
+ internalType: 'uint256',
1362
+ name: '_eraPostLegacyBridgeUpgradeFirstBatch',
1363
+ type: 'uint256',
1364
+ },
1365
+ ],
1366
+ name: 'setEraPostLegacyBridgeUpgradeFirstBatch',
1367
+ outputs: [],
1368
+ stateMutability: 'nonpayable',
1369
+ type: 'function',
1370
+ },
1371
+ ];
649
1372
  exports.ethTokenAbi = [
650
1373
  {
651
1374
  anonymous: false,