viem 2.22.5 → 2.22.7

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 (98) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.md +8 -2
  3. package/_cjs/chains/definitions/huddle01Mainnet.js +29 -0
  4. package/_cjs/chains/definitions/huddle01Mainnet.js.map +1 -0
  5. package/_cjs/chains/definitions/huddle01Testnet.js +29 -0
  6. package/_cjs/chains/definitions/huddle01Testnet.js.map +1 -0
  7. package/_cjs/chains/definitions/kroma.js +6 -0
  8. package/_cjs/chains/definitions/kroma.js.map +1 -1
  9. package/_cjs/chains/definitions/kromaSepolia.js +6 -0
  10. package/_cjs/chains/definitions/kromaSepolia.js.map +1 -1
  11. package/_cjs/chains/index.js +11 -7
  12. package/_cjs/chains/index.js.map +1 -1
  13. package/_cjs/errors/version.js +1 -1
  14. package/_cjs/experimental/eip7702/actions/prepareAuthorization.js +9 -8
  15. package/_cjs/experimental/eip7702/actions/prepareAuthorization.js.map +1 -1
  16. package/_cjs/zksync/actions/requestExecute.js +112 -0
  17. package/_cjs/zksync/actions/requestExecute.js.map +1 -0
  18. package/_cjs/zksync/constants/abis.js +3039 -1
  19. package/_cjs/zksync/constants/abis.js.map +1 -1
  20. package/_cjs/zksync/constants/number.js +2 -1
  21. package/_cjs/zksync/constants/number.js.map +1 -1
  22. package/_cjs/zksync/decorators/walletL1.js +10 -0
  23. package/_cjs/zksync/decorators/walletL1.js.map +1 -0
  24. package/_cjs/zksync/errors/bridge.js +24 -0
  25. package/_cjs/zksync/errors/bridge.js.map +1 -0
  26. package/_cjs/zksync/index.js +8 -1
  27. package/_cjs/zksync/index.js.map +1 -1
  28. package/_cjs/zksync/utils/bridge/getL2HashFromPriorityOp.js +28 -0
  29. package/_cjs/zksync/utils/bridge/getL2HashFromPriorityOp.js.map +1 -0
  30. package/_esm/chains/definitions/huddle01Mainnet.js +26 -0
  31. package/_esm/chains/definitions/huddle01Mainnet.js.map +1 -0
  32. package/_esm/chains/definitions/huddle01Testnet.js +26 -0
  33. package/_esm/chains/definitions/huddle01Testnet.js.map +1 -0
  34. package/_esm/chains/definitions/kroma.js +6 -0
  35. package/_esm/chains/definitions/kroma.js.map +1 -1
  36. package/_esm/chains/definitions/kromaSepolia.js +6 -0
  37. package/_esm/chains/definitions/kromaSepolia.js.map +1 -1
  38. package/_esm/chains/index.js +4 -1
  39. package/_esm/chains/index.js.map +1 -1
  40. package/_esm/errors/version.js +1 -1
  41. package/_esm/experimental/eip7702/actions/prepareAuthorization.js +9 -8
  42. package/_esm/experimental/eip7702/actions/prepareAuthorization.js.map +1 -1
  43. package/_esm/zksync/actions/requestExecute.js +167 -0
  44. package/_esm/zksync/actions/requestExecute.js.map +1 -0
  45. package/_esm/zksync/constants/abis.js +3038 -0
  46. package/_esm/zksync/constants/abis.js.map +1 -1
  47. package/_esm/zksync/constants/number.js +1 -0
  48. package/_esm/zksync/constants/number.js.map +1 -1
  49. package/_esm/zksync/decorators/walletL1.js +7 -0
  50. package/_esm/zksync/decorators/walletL1.js.map +1 -0
  51. package/_esm/zksync/errors/bridge.js +19 -0
  52. package/_esm/zksync/errors/bridge.js.map +1 -0
  53. package/_esm/zksync/index.js +3 -0
  54. package/_esm/zksync/index.js.map +1 -1
  55. package/_esm/zksync/utils/bridge/getL2HashFromPriorityOp.js +53 -0
  56. package/_esm/zksync/utils/bridge/getL2HashFromPriorityOp.js.map +1 -0
  57. package/_types/chains/definitions/huddle01Mainnet.d.ts +39 -0
  58. package/_types/chains/definitions/huddle01Mainnet.d.ts.map +1 -0
  59. package/_types/chains/definitions/huddle01Testnet.d.ts +39 -0
  60. package/_types/chains/definitions/huddle01Testnet.d.ts.map +1 -0
  61. package/_types/chains/definitions/kroma.d.ts +6 -10
  62. package/_types/chains/definitions/kroma.d.ts.map +1 -1
  63. package/_types/chains/definitions/kromaSepolia.d.ts +6 -10
  64. package/_types/chains/definitions/kromaSepolia.d.ts.map +1 -1
  65. package/_types/chains/index.d.ts +4 -1
  66. package/_types/chains/index.d.ts.map +1 -1
  67. package/_types/errors/version.d.ts +1 -1
  68. package/_types/experimental/eip7702/actions/prepareAuthorization.d.ts +5 -1
  69. package/_types/experimental/eip7702/actions/prepareAuthorization.d.ts.map +1 -1
  70. package/_types/zksync/actions/requestExecute.d.ts +95 -0
  71. package/_types/zksync/actions/requestExecute.d.ts.map +1 -0
  72. package/_types/zksync/constants/abis.d.ts +2356 -0
  73. package/_types/zksync/constants/abis.d.ts.map +1 -1
  74. package/_types/zksync/constants/number.d.ts +1 -0
  75. package/_types/zksync/constants/number.d.ts.map +1 -1
  76. package/_types/zksync/decorators/walletL1.d.ts +41 -0
  77. package/_types/zksync/decorators/walletL1.d.ts.map +1 -0
  78. package/_types/zksync/errors/bridge.d.ts +14 -0
  79. package/_types/zksync/errors/bridge.d.ts.map +1 -0
  80. package/_types/zksync/index.d.ts +3 -0
  81. package/_types/zksync/index.d.ts.map +1 -1
  82. package/_types/zksync/utils/bridge/getL2HashFromPriorityOp.d.ts +34 -0
  83. package/_types/zksync/utils/bridge/getL2HashFromPriorityOp.d.ts.map +1 -0
  84. package/chains/definitions/huddle01Mainnet.ts +27 -0
  85. package/chains/definitions/huddle01Testnet.ts +27 -0
  86. package/chains/definitions/kroma.ts +6 -0
  87. package/chains/definitions/kromaSepolia.ts +6 -0
  88. package/chains/index.ts +4 -1
  89. package/errors/version.ts +1 -1
  90. package/experimental/eip7702/actions/prepareAuthorization.ts +11 -7
  91. package/package.json +1 -1
  92. package/zksync/actions/requestExecute.ts +282 -0
  93. package/zksync/constants/abis.ts +3040 -0
  94. package/zksync/constants/number.ts +1 -0
  95. package/zksync/decorators/walletL1.ts +71 -0
  96. package/zksync/errors/bridge.ts +29 -0
  97. package/zksync/index.ts +15 -0
  98. package/zksync/utils/bridge/getL2HashFromPriorityOp.ts +63 -0
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.l2SharedBridgeAbi = exports.paymasterAbi = exports.contractDeployerAbi = void 0;
3
+ exports.zksyncAbi = exports.bridgehubAbi = exports.l2SharedBridgeAbi = exports.paymasterAbi = exports.contractDeployerAbi = void 0;
4
4
  exports.contractDeployerAbi = [
5
5
  {
6
6
  anonymous: false,
@@ -646,4 +646,3042 @@ exports.l2SharedBridgeAbi = [
646
646
  type: 'function',
647
647
  },
648
648
  ];
649
+ exports.bridgehubAbi = [
650
+ {
651
+ anonymous: false,
652
+ inputs: [
653
+ {
654
+ indexed: true,
655
+ internalType: 'address',
656
+ name: 'oldAdmin',
657
+ type: 'address',
658
+ },
659
+ {
660
+ indexed: true,
661
+ internalType: 'address',
662
+ name: 'newAdmin',
663
+ type: 'address',
664
+ },
665
+ ],
666
+ name: 'NewAdmin',
667
+ type: 'event',
668
+ },
669
+ {
670
+ anonymous: false,
671
+ inputs: [
672
+ {
673
+ indexed: true,
674
+ internalType: 'uint256',
675
+ name: 'chainId',
676
+ type: 'uint256',
677
+ },
678
+ {
679
+ indexed: false,
680
+ internalType: 'address',
681
+ name: 'stateTransitionManager',
682
+ type: 'address',
683
+ },
684
+ {
685
+ indexed: true,
686
+ internalType: 'address',
687
+ name: 'chainGovernance',
688
+ type: 'address',
689
+ },
690
+ ],
691
+ name: 'NewChain',
692
+ type: 'event',
693
+ },
694
+ {
695
+ anonymous: false,
696
+ inputs: [
697
+ {
698
+ indexed: true,
699
+ internalType: 'address',
700
+ name: 'oldPendingAdmin',
701
+ type: 'address',
702
+ },
703
+ {
704
+ indexed: true,
705
+ internalType: 'address',
706
+ name: 'newPendingAdmin',
707
+ type: 'address',
708
+ },
709
+ ],
710
+ name: 'NewPendingAdmin',
711
+ type: 'event',
712
+ },
713
+ {
714
+ inputs: [],
715
+ name: 'acceptAdmin',
716
+ outputs: [],
717
+ stateMutability: 'nonpayable',
718
+ type: 'function',
719
+ },
720
+ {
721
+ inputs: [
722
+ {
723
+ internalType: 'address',
724
+ name: '_stateTransitionManager',
725
+ type: 'address',
726
+ },
727
+ ],
728
+ name: 'addStateTransitionManager',
729
+ outputs: [],
730
+ stateMutability: 'nonpayable',
731
+ type: 'function',
732
+ },
733
+ {
734
+ inputs: [
735
+ {
736
+ internalType: 'address',
737
+ name: '_token',
738
+ type: 'address',
739
+ },
740
+ ],
741
+ name: 'addToken',
742
+ outputs: [],
743
+ stateMutability: 'nonpayable',
744
+ type: 'function',
745
+ },
746
+ {
747
+ inputs: [
748
+ {
749
+ internalType: 'uint256',
750
+ name: '_chainId',
751
+ type: 'uint256',
752
+ },
753
+ ],
754
+ name: 'baseToken',
755
+ outputs: [
756
+ {
757
+ internalType: 'address',
758
+ name: '',
759
+ type: 'address',
760
+ },
761
+ ],
762
+ stateMutability: 'view',
763
+ type: 'function',
764
+ },
765
+ {
766
+ inputs: [
767
+ {
768
+ internalType: 'uint256',
769
+ name: '_chainId',
770
+ type: 'uint256',
771
+ },
772
+ {
773
+ internalType: 'address',
774
+ name: '_stateTransitionManager',
775
+ type: 'address',
776
+ },
777
+ {
778
+ internalType: 'address',
779
+ name: '_baseToken',
780
+ type: 'address',
781
+ },
782
+ {
783
+ internalType: 'uint256',
784
+ name: '_salt',
785
+ type: 'uint256',
786
+ },
787
+ {
788
+ internalType: 'address',
789
+ name: '_admin',
790
+ type: 'address',
791
+ },
792
+ {
793
+ internalType: 'bytes',
794
+ name: '_initData',
795
+ type: 'bytes',
796
+ },
797
+ ],
798
+ name: 'createNewChain',
799
+ outputs: [
800
+ {
801
+ internalType: 'uint256',
802
+ name: 'chainId',
803
+ type: 'uint256',
804
+ },
805
+ ],
806
+ stateMutability: 'nonpayable',
807
+ type: 'function',
808
+ },
809
+ {
810
+ inputs: [
811
+ {
812
+ internalType: 'uint256',
813
+ name: '_chainId',
814
+ type: 'uint256',
815
+ },
816
+ ],
817
+ name: 'getHyperchain',
818
+ outputs: [
819
+ {
820
+ internalType: 'address',
821
+ name: '',
822
+ type: 'address',
823
+ },
824
+ ],
825
+ stateMutability: 'view',
826
+ type: 'function',
827
+ },
828
+ {
829
+ inputs: [
830
+ {
831
+ internalType: 'uint256',
832
+ name: '_chainId',
833
+ type: 'uint256',
834
+ },
835
+ {
836
+ internalType: 'uint256',
837
+ name: '_gasPrice',
838
+ type: 'uint256',
839
+ },
840
+ {
841
+ internalType: 'uint256',
842
+ name: '_l2GasLimit',
843
+ type: 'uint256',
844
+ },
845
+ {
846
+ internalType: 'uint256',
847
+ name: '_l2GasPerPubdataByteLimit',
848
+ type: 'uint256',
849
+ },
850
+ ],
851
+ name: 'l2TransactionBaseCost',
852
+ outputs: [
853
+ {
854
+ internalType: 'uint256',
855
+ name: '',
856
+ type: 'uint256',
857
+ },
858
+ ],
859
+ stateMutability: 'view',
860
+ type: 'function',
861
+ },
862
+ {
863
+ inputs: [
864
+ {
865
+ internalType: 'uint256',
866
+ name: '_chainId',
867
+ type: 'uint256',
868
+ },
869
+ {
870
+ internalType: 'bytes32',
871
+ name: '_l2TxHash',
872
+ type: 'bytes32',
873
+ },
874
+ {
875
+ internalType: 'uint256',
876
+ name: '_l2BatchNumber',
877
+ type: 'uint256',
878
+ },
879
+ {
880
+ internalType: 'uint256',
881
+ name: '_l2MessageIndex',
882
+ type: 'uint256',
883
+ },
884
+ {
885
+ internalType: 'uint16',
886
+ name: '_l2TxNumberInBatch',
887
+ type: 'uint16',
888
+ },
889
+ {
890
+ internalType: 'bytes32[]',
891
+ name: '_merkleProof',
892
+ type: 'bytes32[]',
893
+ },
894
+ {
895
+ internalType: 'enum TxStatus',
896
+ name: '_status',
897
+ type: 'uint8',
898
+ },
899
+ ],
900
+ name: 'proveL1ToL2TransactionStatus',
901
+ outputs: [
902
+ {
903
+ internalType: 'bool',
904
+ name: '',
905
+ type: 'bool',
906
+ },
907
+ ],
908
+ stateMutability: 'view',
909
+ type: 'function',
910
+ },
911
+ {
912
+ inputs: [
913
+ {
914
+ internalType: 'uint256',
915
+ name: '_chainId',
916
+ type: 'uint256',
917
+ },
918
+ {
919
+ internalType: 'uint256',
920
+ name: '_batchNumber',
921
+ type: 'uint256',
922
+ },
923
+ {
924
+ internalType: 'uint256',
925
+ name: '_index',
926
+ type: 'uint256',
927
+ },
928
+ {
929
+ components: [
930
+ {
931
+ internalType: 'uint8',
932
+ name: 'l2ShardId',
933
+ type: 'uint8',
934
+ },
935
+ {
936
+ internalType: 'bool',
937
+ name: 'isService',
938
+ type: 'bool',
939
+ },
940
+ {
941
+ internalType: 'uint16',
942
+ name: 'txNumberInBatch',
943
+ type: 'uint16',
944
+ },
945
+ {
946
+ internalType: 'address',
947
+ name: 'sender',
948
+ type: 'address',
949
+ },
950
+ {
951
+ internalType: 'bytes32',
952
+ name: 'key',
953
+ type: 'bytes32',
954
+ },
955
+ {
956
+ internalType: 'bytes32',
957
+ name: 'value',
958
+ type: 'bytes32',
959
+ },
960
+ ],
961
+ internalType: 'struct L2Log',
962
+ name: '_log',
963
+ type: 'tuple',
964
+ },
965
+ {
966
+ internalType: 'bytes32[]',
967
+ name: '_proof',
968
+ type: 'bytes32[]',
969
+ },
970
+ ],
971
+ name: 'proveL2LogInclusion',
972
+ outputs: [
973
+ {
974
+ internalType: 'bool',
975
+ name: '',
976
+ type: 'bool',
977
+ },
978
+ ],
979
+ stateMutability: 'view',
980
+ type: 'function',
981
+ },
982
+ {
983
+ inputs: [
984
+ {
985
+ internalType: 'uint256',
986
+ name: '_chainId',
987
+ type: 'uint256',
988
+ },
989
+ {
990
+ internalType: 'uint256',
991
+ name: '_batchNumber',
992
+ type: 'uint256',
993
+ },
994
+ {
995
+ internalType: 'uint256',
996
+ name: '_index',
997
+ type: 'uint256',
998
+ },
999
+ {
1000
+ components: [
1001
+ {
1002
+ internalType: 'uint16',
1003
+ name: 'txNumberInBatch',
1004
+ type: 'uint16',
1005
+ },
1006
+ {
1007
+ internalType: 'address',
1008
+ name: 'sender',
1009
+ type: 'address',
1010
+ },
1011
+ {
1012
+ internalType: 'bytes',
1013
+ name: 'data',
1014
+ type: 'bytes',
1015
+ },
1016
+ ],
1017
+ internalType: 'struct L2Message',
1018
+ name: '_message',
1019
+ type: 'tuple',
1020
+ },
1021
+ {
1022
+ internalType: 'bytes32[]',
1023
+ name: '_proof',
1024
+ type: 'bytes32[]',
1025
+ },
1026
+ ],
1027
+ name: 'proveL2MessageInclusion',
1028
+ outputs: [
1029
+ {
1030
+ internalType: 'bool',
1031
+ name: '',
1032
+ type: 'bool',
1033
+ },
1034
+ ],
1035
+ stateMutability: 'view',
1036
+ type: 'function',
1037
+ },
1038
+ {
1039
+ inputs: [
1040
+ {
1041
+ internalType: 'address',
1042
+ name: '_stateTransitionManager',
1043
+ type: 'address',
1044
+ },
1045
+ ],
1046
+ name: 'removeStateTransitionManager',
1047
+ outputs: [],
1048
+ stateMutability: 'nonpayable',
1049
+ type: 'function',
1050
+ },
1051
+ {
1052
+ inputs: [
1053
+ {
1054
+ components: [
1055
+ {
1056
+ internalType: 'uint256',
1057
+ name: 'chainId',
1058
+ type: 'uint256',
1059
+ },
1060
+ {
1061
+ internalType: 'uint256',
1062
+ name: 'mintValue',
1063
+ type: 'uint256',
1064
+ },
1065
+ {
1066
+ internalType: 'address',
1067
+ name: 'l2Contract',
1068
+ type: 'address',
1069
+ },
1070
+ {
1071
+ internalType: 'uint256',
1072
+ name: 'l2Value',
1073
+ type: 'uint256',
1074
+ },
1075
+ {
1076
+ internalType: 'bytes',
1077
+ name: 'l2Calldata',
1078
+ type: 'bytes',
1079
+ },
1080
+ {
1081
+ internalType: 'uint256',
1082
+ name: 'l2GasLimit',
1083
+ type: 'uint256',
1084
+ },
1085
+ {
1086
+ internalType: 'uint256',
1087
+ name: 'l2GasPerPubdataByteLimit',
1088
+ type: 'uint256',
1089
+ },
1090
+ {
1091
+ internalType: 'bytes[]',
1092
+ name: 'factoryDeps',
1093
+ type: 'bytes[]',
1094
+ },
1095
+ {
1096
+ internalType: 'address',
1097
+ name: 'refundRecipient',
1098
+ type: 'address',
1099
+ },
1100
+ ],
1101
+ internalType: 'struct L2TransactionRequestDirect',
1102
+ name: '_request',
1103
+ type: 'tuple',
1104
+ },
1105
+ ],
1106
+ name: 'requestL2TransactionDirect',
1107
+ outputs: [
1108
+ {
1109
+ internalType: 'bytes32',
1110
+ name: 'canonicalTxHash',
1111
+ type: 'bytes32',
1112
+ },
1113
+ ],
1114
+ stateMutability: 'payable',
1115
+ type: 'function',
1116
+ },
1117
+ {
1118
+ inputs: [
1119
+ {
1120
+ components: [
1121
+ {
1122
+ internalType: 'uint256',
1123
+ name: 'chainId',
1124
+ type: 'uint256',
1125
+ },
1126
+ {
1127
+ internalType: 'uint256',
1128
+ name: 'mintValue',
1129
+ type: 'uint256',
1130
+ },
1131
+ {
1132
+ internalType: 'uint256',
1133
+ name: 'l2Value',
1134
+ type: 'uint256',
1135
+ },
1136
+ {
1137
+ internalType: 'uint256',
1138
+ name: 'l2GasLimit',
1139
+ type: 'uint256',
1140
+ },
1141
+ {
1142
+ internalType: 'uint256',
1143
+ name: 'l2GasPerPubdataByteLimit',
1144
+ type: 'uint256',
1145
+ },
1146
+ {
1147
+ internalType: 'address',
1148
+ name: 'refundRecipient',
1149
+ type: 'address',
1150
+ },
1151
+ {
1152
+ internalType: 'address',
1153
+ name: 'secondBridgeAddress',
1154
+ type: 'address',
1155
+ },
1156
+ {
1157
+ internalType: 'uint256',
1158
+ name: 'secondBridgeValue',
1159
+ type: 'uint256',
1160
+ },
1161
+ {
1162
+ internalType: 'bytes',
1163
+ name: 'secondBridgeCalldata',
1164
+ type: 'bytes',
1165
+ },
1166
+ ],
1167
+ internalType: 'struct L2TransactionRequestTwoBridgesOuter',
1168
+ name: '_request',
1169
+ type: 'tuple',
1170
+ },
1171
+ ],
1172
+ name: 'requestL2TransactionTwoBridges',
1173
+ outputs: [
1174
+ {
1175
+ internalType: 'bytes32',
1176
+ name: 'canonicalTxHash',
1177
+ type: 'bytes32',
1178
+ },
1179
+ ],
1180
+ stateMutability: 'payable',
1181
+ type: 'function',
1182
+ },
1183
+ {
1184
+ inputs: [
1185
+ {
1186
+ internalType: 'address',
1187
+ name: '_newPendingAdmin',
1188
+ type: 'address',
1189
+ },
1190
+ ],
1191
+ name: 'setPendingAdmin',
1192
+ outputs: [],
1193
+ stateMutability: 'nonpayable',
1194
+ type: 'function',
1195
+ },
1196
+ {
1197
+ inputs: [
1198
+ {
1199
+ internalType: 'address',
1200
+ name: '_sharedBridge',
1201
+ type: 'address',
1202
+ },
1203
+ ],
1204
+ name: 'setSharedBridge',
1205
+ outputs: [],
1206
+ stateMutability: 'nonpayable',
1207
+ type: 'function',
1208
+ },
1209
+ {
1210
+ inputs: [],
1211
+ name: 'sharedBridge',
1212
+ outputs: [
1213
+ {
1214
+ internalType: 'contract IL1SharedBridge',
1215
+ name: '',
1216
+ type: 'address',
1217
+ },
1218
+ ],
1219
+ stateMutability: 'view',
1220
+ type: 'function',
1221
+ },
1222
+ {
1223
+ inputs: [
1224
+ {
1225
+ internalType: 'uint256',
1226
+ name: '_chainId',
1227
+ type: 'uint256',
1228
+ },
1229
+ ],
1230
+ name: 'stateTransitionManager',
1231
+ outputs: [
1232
+ {
1233
+ internalType: 'address',
1234
+ name: '',
1235
+ type: 'address',
1236
+ },
1237
+ ],
1238
+ stateMutability: 'view',
1239
+ type: 'function',
1240
+ },
1241
+ {
1242
+ inputs: [
1243
+ {
1244
+ internalType: 'address',
1245
+ name: '_stateTransitionManager',
1246
+ type: 'address',
1247
+ },
1248
+ ],
1249
+ name: 'stateTransitionManagerIsRegistered',
1250
+ outputs: [
1251
+ {
1252
+ internalType: 'bool',
1253
+ name: '',
1254
+ type: 'bool',
1255
+ },
1256
+ ],
1257
+ stateMutability: 'view',
1258
+ type: 'function',
1259
+ },
1260
+ {
1261
+ inputs: [
1262
+ {
1263
+ internalType: 'address',
1264
+ name: '_baseToken',
1265
+ type: 'address',
1266
+ },
1267
+ ],
1268
+ name: 'tokenIsRegistered',
1269
+ outputs: [
1270
+ {
1271
+ internalType: 'bool',
1272
+ name: '',
1273
+ type: 'bool',
1274
+ },
1275
+ ],
1276
+ stateMutability: 'view',
1277
+ type: 'function',
1278
+ },
1279
+ ];
1280
+ exports.zksyncAbi = [
1281
+ {
1282
+ anonymous: false,
1283
+ inputs: [
1284
+ {
1285
+ indexed: true,
1286
+ internalType: 'uint256',
1287
+ name: 'batchNumber',
1288
+ type: 'uint256',
1289
+ },
1290
+ {
1291
+ indexed: true,
1292
+ internalType: 'bytes32',
1293
+ name: 'batchHash',
1294
+ type: 'bytes32',
1295
+ },
1296
+ {
1297
+ indexed: true,
1298
+ internalType: 'bytes32',
1299
+ name: 'commitment',
1300
+ type: 'bytes32',
1301
+ },
1302
+ ],
1303
+ name: 'BlockCommit',
1304
+ type: 'event',
1305
+ },
1306
+ {
1307
+ anonymous: false,
1308
+ inputs: [
1309
+ {
1310
+ indexed: true,
1311
+ internalType: 'uint256',
1312
+ name: 'batchNumber',
1313
+ type: 'uint256',
1314
+ },
1315
+ {
1316
+ indexed: true,
1317
+ internalType: 'bytes32',
1318
+ name: 'batchHash',
1319
+ type: 'bytes32',
1320
+ },
1321
+ {
1322
+ indexed: true,
1323
+ internalType: 'bytes32',
1324
+ name: 'commitment',
1325
+ type: 'bytes32',
1326
+ },
1327
+ ],
1328
+ name: 'BlockExecution',
1329
+ type: 'event',
1330
+ },
1331
+ {
1332
+ anonymous: false,
1333
+ inputs: [
1334
+ {
1335
+ indexed: false,
1336
+ internalType: 'uint256',
1337
+ name: 'totalBatchesCommitted',
1338
+ type: 'uint256',
1339
+ },
1340
+ {
1341
+ indexed: false,
1342
+ internalType: 'uint256',
1343
+ name: 'totalBatchesVerified',
1344
+ type: 'uint256',
1345
+ },
1346
+ {
1347
+ indexed: false,
1348
+ internalType: 'uint256',
1349
+ name: 'totalBatchesExecuted',
1350
+ type: 'uint256',
1351
+ },
1352
+ ],
1353
+ name: 'BlocksRevert',
1354
+ type: 'event',
1355
+ },
1356
+ {
1357
+ anonymous: false,
1358
+ inputs: [
1359
+ {
1360
+ indexed: true,
1361
+ internalType: 'uint256',
1362
+ name: 'previousLastVerifiedBatch',
1363
+ type: 'uint256',
1364
+ },
1365
+ {
1366
+ indexed: true,
1367
+ internalType: 'uint256',
1368
+ name: 'currentLastVerifiedBatch',
1369
+ type: 'uint256',
1370
+ },
1371
+ ],
1372
+ name: 'BlocksVerification',
1373
+ type: 'event',
1374
+ },
1375
+ {
1376
+ anonymous: false,
1377
+ inputs: [
1378
+ {
1379
+ components: [
1380
+ {
1381
+ components: [
1382
+ {
1383
+ internalType: 'address',
1384
+ name: 'facet',
1385
+ type: 'address',
1386
+ },
1387
+ {
1388
+ internalType: 'enum Diamond.Action',
1389
+ name: 'action',
1390
+ type: 'uint8',
1391
+ },
1392
+ {
1393
+ internalType: 'bool',
1394
+ name: 'isFreezable',
1395
+ type: 'bool',
1396
+ },
1397
+ {
1398
+ internalType: 'bytes4[]',
1399
+ name: 'selectors',
1400
+ type: 'bytes4[]',
1401
+ },
1402
+ ],
1403
+ internalType: 'struct Diamond.FacetCut[]',
1404
+ name: 'facetCuts',
1405
+ type: 'tuple[]',
1406
+ },
1407
+ {
1408
+ internalType: 'address',
1409
+ name: 'initAddress',
1410
+ type: 'address',
1411
+ },
1412
+ {
1413
+ internalType: 'bytes',
1414
+ name: 'initCalldata',
1415
+ type: 'bytes',
1416
+ },
1417
+ ],
1418
+ indexed: false,
1419
+ internalType: 'struct Diamond.DiamondCutData',
1420
+ name: 'diamondCut',
1421
+ type: 'tuple',
1422
+ },
1423
+ ],
1424
+ name: 'ExecuteUpgrade',
1425
+ type: 'event',
1426
+ },
1427
+ {
1428
+ anonymous: false,
1429
+ inputs: [],
1430
+ name: 'Freeze',
1431
+ type: 'event',
1432
+ },
1433
+ {
1434
+ anonymous: false,
1435
+ inputs: [
1436
+ {
1437
+ indexed: false,
1438
+ internalType: 'bool',
1439
+ name: 'isPorterAvailable',
1440
+ type: 'bool',
1441
+ },
1442
+ ],
1443
+ name: 'IsPorterAvailableStatusUpdate',
1444
+ type: 'event',
1445
+ },
1446
+ {
1447
+ anonymous: false,
1448
+ inputs: [
1449
+ {
1450
+ indexed: true,
1451
+ internalType: 'address',
1452
+ name: 'oldAdmin',
1453
+ type: 'address',
1454
+ },
1455
+ {
1456
+ indexed: true,
1457
+ internalType: 'address',
1458
+ name: 'newAdmin',
1459
+ type: 'address',
1460
+ },
1461
+ ],
1462
+ name: 'NewAdmin',
1463
+ type: 'event',
1464
+ },
1465
+ {
1466
+ anonymous: false,
1467
+ inputs: [
1468
+ {
1469
+ indexed: false,
1470
+ internalType: 'uint128',
1471
+ name: 'oldNominator',
1472
+ type: 'uint128',
1473
+ },
1474
+ {
1475
+ indexed: false,
1476
+ internalType: 'uint128',
1477
+ name: 'oldDenominator',
1478
+ type: 'uint128',
1479
+ },
1480
+ {
1481
+ indexed: false,
1482
+ internalType: 'uint128',
1483
+ name: 'newNominator',
1484
+ type: 'uint128',
1485
+ },
1486
+ {
1487
+ indexed: false,
1488
+ internalType: 'uint128',
1489
+ name: 'newDenominator',
1490
+ type: 'uint128',
1491
+ },
1492
+ ],
1493
+ name: 'NewBaseTokenMultiplier',
1494
+ type: 'event',
1495
+ },
1496
+ {
1497
+ anonymous: false,
1498
+ inputs: [
1499
+ {
1500
+ components: [
1501
+ {
1502
+ internalType: 'enum PubdataPricingMode',
1503
+ name: 'pubdataPricingMode',
1504
+ type: 'uint8',
1505
+ },
1506
+ {
1507
+ internalType: 'uint32',
1508
+ name: 'batchOverheadL1Gas',
1509
+ type: 'uint32',
1510
+ },
1511
+ {
1512
+ internalType: 'uint32',
1513
+ name: 'maxPubdataPerBatch',
1514
+ type: 'uint32',
1515
+ },
1516
+ {
1517
+ internalType: 'uint32',
1518
+ name: 'maxL2GasPerBatch',
1519
+ type: 'uint32',
1520
+ },
1521
+ {
1522
+ internalType: 'uint32',
1523
+ name: 'priorityTxMaxPubdata',
1524
+ type: 'uint32',
1525
+ },
1526
+ {
1527
+ internalType: 'uint64',
1528
+ name: 'minimalL2GasPrice',
1529
+ type: 'uint64',
1530
+ },
1531
+ ],
1532
+ indexed: false,
1533
+ internalType: 'struct FeeParams',
1534
+ name: 'oldFeeParams',
1535
+ type: 'tuple',
1536
+ },
1537
+ {
1538
+ components: [
1539
+ {
1540
+ internalType: 'enum PubdataPricingMode',
1541
+ name: 'pubdataPricingMode',
1542
+ type: 'uint8',
1543
+ },
1544
+ {
1545
+ internalType: 'uint32',
1546
+ name: 'batchOverheadL1Gas',
1547
+ type: 'uint32',
1548
+ },
1549
+ {
1550
+ internalType: 'uint32',
1551
+ name: 'maxPubdataPerBatch',
1552
+ type: 'uint32',
1553
+ },
1554
+ {
1555
+ internalType: 'uint32',
1556
+ name: 'maxL2GasPerBatch',
1557
+ type: 'uint32',
1558
+ },
1559
+ {
1560
+ internalType: 'uint32',
1561
+ name: 'priorityTxMaxPubdata',
1562
+ type: 'uint32',
1563
+ },
1564
+ {
1565
+ internalType: 'uint64',
1566
+ name: 'minimalL2GasPrice',
1567
+ type: 'uint64',
1568
+ },
1569
+ ],
1570
+ indexed: false,
1571
+ internalType: 'struct FeeParams',
1572
+ name: 'newFeeParams',
1573
+ type: 'tuple',
1574
+ },
1575
+ ],
1576
+ name: 'NewFeeParams',
1577
+ type: 'event',
1578
+ },
1579
+ {
1580
+ anonymous: false,
1581
+ inputs: [
1582
+ {
1583
+ indexed: true,
1584
+ internalType: 'address',
1585
+ name: 'oldPendingAdmin',
1586
+ type: 'address',
1587
+ },
1588
+ {
1589
+ indexed: true,
1590
+ internalType: 'address',
1591
+ name: 'newPendingAdmin',
1592
+ type: 'address',
1593
+ },
1594
+ ],
1595
+ name: 'NewPendingAdmin',
1596
+ type: 'event',
1597
+ },
1598
+ {
1599
+ anonymous: false,
1600
+ inputs: [
1601
+ {
1602
+ indexed: false,
1603
+ internalType: 'uint256',
1604
+ name: 'txId',
1605
+ type: 'uint256',
1606
+ },
1607
+ {
1608
+ indexed: false,
1609
+ internalType: 'bytes32',
1610
+ name: 'txHash',
1611
+ type: 'bytes32',
1612
+ },
1613
+ {
1614
+ indexed: false,
1615
+ internalType: 'uint64',
1616
+ name: 'expirationTimestamp',
1617
+ type: 'uint64',
1618
+ },
1619
+ {
1620
+ components: [
1621
+ {
1622
+ internalType: 'uint256',
1623
+ name: 'txType',
1624
+ type: 'uint256',
1625
+ },
1626
+ {
1627
+ internalType: 'uint256',
1628
+ name: 'from',
1629
+ type: 'uint256',
1630
+ },
1631
+ {
1632
+ internalType: 'uint256',
1633
+ name: 'to',
1634
+ type: 'uint256',
1635
+ },
1636
+ {
1637
+ internalType: 'uint256',
1638
+ name: 'gasLimit',
1639
+ type: 'uint256',
1640
+ },
1641
+ {
1642
+ internalType: 'uint256',
1643
+ name: 'gasPerPubdataByteLimit',
1644
+ type: 'uint256',
1645
+ },
1646
+ {
1647
+ internalType: 'uint256',
1648
+ name: 'maxFeePerGas',
1649
+ type: 'uint256',
1650
+ },
1651
+ {
1652
+ internalType: 'uint256',
1653
+ name: 'maxPriorityFeePerGas',
1654
+ type: 'uint256',
1655
+ },
1656
+ {
1657
+ internalType: 'uint256',
1658
+ name: 'paymaster',
1659
+ type: 'uint256',
1660
+ },
1661
+ {
1662
+ internalType: 'uint256',
1663
+ name: 'nonce',
1664
+ type: 'uint256',
1665
+ },
1666
+ {
1667
+ internalType: 'uint256',
1668
+ name: 'value',
1669
+ type: 'uint256',
1670
+ },
1671
+ {
1672
+ internalType: 'uint256[4]',
1673
+ name: 'reserved',
1674
+ type: 'uint256[4]',
1675
+ },
1676
+ {
1677
+ internalType: 'bytes',
1678
+ name: 'data',
1679
+ type: 'bytes',
1680
+ },
1681
+ {
1682
+ internalType: 'bytes',
1683
+ name: 'signature',
1684
+ type: 'bytes',
1685
+ },
1686
+ {
1687
+ internalType: 'uint256[]',
1688
+ name: 'factoryDeps',
1689
+ type: 'uint256[]',
1690
+ },
1691
+ {
1692
+ internalType: 'bytes',
1693
+ name: 'paymasterInput',
1694
+ type: 'bytes',
1695
+ },
1696
+ {
1697
+ internalType: 'bytes',
1698
+ name: 'reservedDynamic',
1699
+ type: 'bytes',
1700
+ },
1701
+ ],
1702
+ indexed: false,
1703
+ internalType: 'struct L2CanonicalTransaction',
1704
+ name: 'transaction',
1705
+ type: 'tuple',
1706
+ },
1707
+ {
1708
+ indexed: false,
1709
+ internalType: 'bytes[]',
1710
+ name: 'factoryDeps',
1711
+ type: 'bytes[]',
1712
+ },
1713
+ ],
1714
+ name: 'NewPriorityRequest',
1715
+ type: 'event',
1716
+ },
1717
+ {
1718
+ anonymous: false,
1719
+ inputs: [
1720
+ {
1721
+ indexed: false,
1722
+ internalType: 'uint256',
1723
+ name: 'oldPriorityTxMaxGasLimit',
1724
+ type: 'uint256',
1725
+ },
1726
+ {
1727
+ indexed: false,
1728
+ internalType: 'uint256',
1729
+ name: 'newPriorityTxMaxGasLimit',
1730
+ type: 'uint256',
1731
+ },
1732
+ ],
1733
+ name: 'NewPriorityTxMaxGasLimit',
1734
+ type: 'event',
1735
+ },
1736
+ {
1737
+ anonymous: false,
1738
+ inputs: [
1739
+ {
1740
+ indexed: false,
1741
+ internalType: 'address',
1742
+ name: 'oldTransactionFilterer',
1743
+ type: 'address',
1744
+ },
1745
+ {
1746
+ indexed: false,
1747
+ internalType: 'address',
1748
+ name: 'newTransactionFilterer',
1749
+ type: 'address',
1750
+ },
1751
+ ],
1752
+ name: 'NewTransactionFilterer',
1753
+ type: 'event',
1754
+ },
1755
+ {
1756
+ anonymous: false,
1757
+ inputs: [
1758
+ {
1759
+ components: [
1760
+ {
1761
+ components: [
1762
+ {
1763
+ internalType: 'address',
1764
+ name: 'facet',
1765
+ type: 'address',
1766
+ },
1767
+ {
1768
+ internalType: 'enum Diamond.Action',
1769
+ name: 'action',
1770
+ type: 'uint8',
1771
+ },
1772
+ {
1773
+ internalType: 'bool',
1774
+ name: 'isFreezable',
1775
+ type: 'bool',
1776
+ },
1777
+ {
1778
+ internalType: 'bytes4[]',
1779
+ name: 'selectors',
1780
+ type: 'bytes4[]',
1781
+ },
1782
+ ],
1783
+ internalType: 'struct Diamond.FacetCut[]',
1784
+ name: 'facetCuts',
1785
+ type: 'tuple[]',
1786
+ },
1787
+ {
1788
+ internalType: 'address',
1789
+ name: 'initAddress',
1790
+ type: 'address',
1791
+ },
1792
+ {
1793
+ internalType: 'bytes',
1794
+ name: 'initCalldata',
1795
+ type: 'bytes',
1796
+ },
1797
+ ],
1798
+ indexed: false,
1799
+ internalType: 'struct Diamond.DiamondCutData',
1800
+ name: 'diamondCut',
1801
+ type: 'tuple',
1802
+ },
1803
+ {
1804
+ indexed: true,
1805
+ internalType: 'uint256',
1806
+ name: 'proposalId',
1807
+ type: 'uint256',
1808
+ },
1809
+ {
1810
+ indexed: false,
1811
+ internalType: 'bytes32',
1812
+ name: 'proposalSalt',
1813
+ type: 'bytes32',
1814
+ },
1815
+ ],
1816
+ name: 'ProposeTransparentUpgrade',
1817
+ type: 'event',
1818
+ },
1819
+ {
1820
+ anonymous: false,
1821
+ inputs: [],
1822
+ name: 'Unfreeze',
1823
+ type: 'event',
1824
+ },
1825
+ {
1826
+ anonymous: false,
1827
+ inputs: [
1828
+ {
1829
+ indexed: true,
1830
+ internalType: 'address',
1831
+ name: 'validatorAddress',
1832
+ type: 'address',
1833
+ },
1834
+ {
1835
+ indexed: false,
1836
+ internalType: 'bool',
1837
+ name: 'isActive',
1838
+ type: 'bool',
1839
+ },
1840
+ ],
1841
+ name: 'ValidatorStatusUpdate',
1842
+ type: 'event',
1843
+ },
1844
+ {
1845
+ anonymous: false,
1846
+ inputs: [
1847
+ {
1848
+ indexed: false,
1849
+ internalType: 'enum PubdataPricingMode',
1850
+ name: 'validiumMode',
1851
+ type: 'uint8',
1852
+ },
1853
+ ],
1854
+ name: 'ValidiumModeStatusUpdate',
1855
+ type: 'event',
1856
+ },
1857
+ {
1858
+ inputs: [],
1859
+ name: 'acceptAdmin',
1860
+ outputs: [],
1861
+ stateMutability: 'nonpayable',
1862
+ type: 'function',
1863
+ },
1864
+ {
1865
+ inputs: [],
1866
+ name: 'baseTokenGasPriceMultiplierDenominator',
1867
+ outputs: [
1868
+ {
1869
+ internalType: 'uint128',
1870
+ name: '',
1871
+ type: 'uint128',
1872
+ },
1873
+ ],
1874
+ stateMutability: 'view',
1875
+ type: 'function',
1876
+ },
1877
+ {
1878
+ inputs: [],
1879
+ name: 'baseTokenGasPriceMultiplierNominator',
1880
+ outputs: [
1881
+ {
1882
+ internalType: 'uint128',
1883
+ name: '',
1884
+ type: 'uint128',
1885
+ },
1886
+ ],
1887
+ stateMutability: 'view',
1888
+ type: 'function',
1889
+ },
1890
+ {
1891
+ inputs: [
1892
+ {
1893
+ components: [
1894
+ {
1895
+ internalType: 'address',
1896
+ name: 'sender',
1897
+ type: 'address',
1898
+ },
1899
+ {
1900
+ internalType: 'address',
1901
+ name: 'contractL2',
1902
+ type: 'address',
1903
+ },
1904
+ {
1905
+ internalType: 'uint256',
1906
+ name: 'mintValue',
1907
+ type: 'uint256',
1908
+ },
1909
+ {
1910
+ internalType: 'uint256',
1911
+ name: 'l2Value',
1912
+ type: 'uint256',
1913
+ },
1914
+ {
1915
+ internalType: 'bytes',
1916
+ name: 'l2Calldata',
1917
+ type: 'bytes',
1918
+ },
1919
+ {
1920
+ internalType: 'uint256',
1921
+ name: 'l2GasLimit',
1922
+ type: 'uint256',
1923
+ },
1924
+ {
1925
+ internalType: 'uint256',
1926
+ name: 'l2GasPerPubdataByteLimit',
1927
+ type: 'uint256',
1928
+ },
1929
+ {
1930
+ internalType: 'bytes[]',
1931
+ name: 'factoryDeps',
1932
+ type: 'bytes[]',
1933
+ },
1934
+ {
1935
+ internalType: 'address',
1936
+ name: 'refundRecipient',
1937
+ type: 'address',
1938
+ },
1939
+ ],
1940
+ internalType: 'struct BridgehubL2TransactionRequest',
1941
+ name: '_request',
1942
+ type: 'tuple',
1943
+ },
1944
+ ],
1945
+ name: 'bridgehubRequestL2Transaction',
1946
+ outputs: [
1947
+ {
1948
+ internalType: 'bytes32',
1949
+ name: 'canonicalTxHash',
1950
+ type: 'bytes32',
1951
+ },
1952
+ ],
1953
+ stateMutability: 'nonpayable',
1954
+ type: 'function',
1955
+ },
1956
+ {
1957
+ inputs: [
1958
+ {
1959
+ components: [
1960
+ {
1961
+ internalType: 'enum PubdataPricingMode',
1962
+ name: 'pubdataPricingMode',
1963
+ type: 'uint8',
1964
+ },
1965
+ {
1966
+ internalType: 'uint32',
1967
+ name: 'batchOverheadL1Gas',
1968
+ type: 'uint32',
1969
+ },
1970
+ {
1971
+ internalType: 'uint32',
1972
+ name: 'maxPubdataPerBatch',
1973
+ type: 'uint32',
1974
+ },
1975
+ {
1976
+ internalType: 'uint32',
1977
+ name: 'maxL2GasPerBatch',
1978
+ type: 'uint32',
1979
+ },
1980
+ {
1981
+ internalType: 'uint32',
1982
+ name: 'priorityTxMaxPubdata',
1983
+ type: 'uint32',
1984
+ },
1985
+ {
1986
+ internalType: 'uint64',
1987
+ name: 'minimalL2GasPrice',
1988
+ type: 'uint64',
1989
+ },
1990
+ ],
1991
+ internalType: 'struct FeeParams',
1992
+ name: '_newFeeParams',
1993
+ type: 'tuple',
1994
+ },
1995
+ ],
1996
+ name: 'changeFeeParams',
1997
+ outputs: [],
1998
+ stateMutability: 'nonpayable',
1999
+ type: 'function',
2000
+ },
2001
+ {
2002
+ inputs: [
2003
+ {
2004
+ components: [
2005
+ {
2006
+ internalType: 'uint64',
2007
+ name: 'batchNumber',
2008
+ type: 'uint64',
2009
+ },
2010
+ {
2011
+ internalType: 'bytes32',
2012
+ name: 'batchHash',
2013
+ type: 'bytes32',
2014
+ },
2015
+ {
2016
+ internalType: 'uint64',
2017
+ name: 'indexRepeatedStorageChanges',
2018
+ type: 'uint64',
2019
+ },
2020
+ {
2021
+ internalType: 'uint256',
2022
+ name: 'numberOfLayer1Txs',
2023
+ type: 'uint256',
2024
+ },
2025
+ {
2026
+ internalType: 'bytes32',
2027
+ name: 'priorityOperationsHash',
2028
+ type: 'bytes32',
2029
+ },
2030
+ {
2031
+ internalType: 'bytes32',
2032
+ name: 'l2LogsTreeRoot',
2033
+ type: 'bytes32',
2034
+ },
2035
+ {
2036
+ internalType: 'uint256',
2037
+ name: 'timestamp',
2038
+ type: 'uint256',
2039
+ },
2040
+ {
2041
+ internalType: 'bytes32',
2042
+ name: 'commitment',
2043
+ type: 'bytes32',
2044
+ },
2045
+ ],
2046
+ internalType: 'struct IExecutor.StoredBatchInfo',
2047
+ name: '_lastCommittedBatchData',
2048
+ type: 'tuple',
2049
+ },
2050
+ {
2051
+ components: [
2052
+ {
2053
+ internalType: 'uint64',
2054
+ name: 'batchNumber',
2055
+ type: 'uint64',
2056
+ },
2057
+ {
2058
+ internalType: 'uint64',
2059
+ name: 'timestamp',
2060
+ type: 'uint64',
2061
+ },
2062
+ {
2063
+ internalType: 'uint64',
2064
+ name: 'indexRepeatedStorageChanges',
2065
+ type: 'uint64',
2066
+ },
2067
+ {
2068
+ internalType: 'bytes32',
2069
+ name: 'newStateRoot',
2070
+ type: 'bytes32',
2071
+ },
2072
+ {
2073
+ internalType: 'uint256',
2074
+ name: 'numberOfLayer1Txs',
2075
+ type: 'uint256',
2076
+ },
2077
+ {
2078
+ internalType: 'bytes32',
2079
+ name: 'priorityOperationsHash',
2080
+ type: 'bytes32',
2081
+ },
2082
+ {
2083
+ internalType: 'bytes32',
2084
+ name: 'bootloaderHeapInitialContentsHash',
2085
+ type: 'bytes32',
2086
+ },
2087
+ {
2088
+ internalType: 'bytes32',
2089
+ name: 'eventsQueueStateHash',
2090
+ type: 'bytes32',
2091
+ },
2092
+ {
2093
+ internalType: 'bytes',
2094
+ name: 'systemLogs',
2095
+ type: 'bytes',
2096
+ },
2097
+ {
2098
+ internalType: 'bytes',
2099
+ name: 'pubdataCommitments',
2100
+ type: 'bytes',
2101
+ },
2102
+ ],
2103
+ internalType: 'struct IExecutor.CommitBatchInfo[]',
2104
+ name: '_newBatchesData',
2105
+ type: 'tuple[]',
2106
+ },
2107
+ ],
2108
+ name: 'commitBatches',
2109
+ outputs: [],
2110
+ stateMutability: 'nonpayable',
2111
+ type: 'function',
2112
+ },
2113
+ {
2114
+ inputs: [
2115
+ {
2116
+ internalType: 'uint256',
2117
+ name: '_chainId',
2118
+ type: 'uint256',
2119
+ },
2120
+ {
2121
+ components: [
2122
+ {
2123
+ internalType: 'uint64',
2124
+ name: 'batchNumber',
2125
+ type: 'uint64',
2126
+ },
2127
+ {
2128
+ internalType: 'bytes32',
2129
+ name: 'batchHash',
2130
+ type: 'bytes32',
2131
+ },
2132
+ {
2133
+ internalType: 'uint64',
2134
+ name: 'indexRepeatedStorageChanges',
2135
+ type: 'uint64',
2136
+ },
2137
+ {
2138
+ internalType: 'uint256',
2139
+ name: 'numberOfLayer1Txs',
2140
+ type: 'uint256',
2141
+ },
2142
+ {
2143
+ internalType: 'bytes32',
2144
+ name: 'priorityOperationsHash',
2145
+ type: 'bytes32',
2146
+ },
2147
+ {
2148
+ internalType: 'bytes32',
2149
+ name: 'l2LogsTreeRoot',
2150
+ type: 'bytes32',
2151
+ },
2152
+ {
2153
+ internalType: 'uint256',
2154
+ name: 'timestamp',
2155
+ type: 'uint256',
2156
+ },
2157
+ {
2158
+ internalType: 'bytes32',
2159
+ name: 'commitment',
2160
+ type: 'bytes32',
2161
+ },
2162
+ ],
2163
+ internalType: 'struct IExecutor.StoredBatchInfo',
2164
+ name: '_lastCommittedBatchData',
2165
+ type: 'tuple',
2166
+ },
2167
+ {
2168
+ components: [
2169
+ {
2170
+ internalType: 'uint64',
2171
+ name: 'batchNumber',
2172
+ type: 'uint64',
2173
+ },
2174
+ {
2175
+ internalType: 'uint64',
2176
+ name: 'timestamp',
2177
+ type: 'uint64',
2178
+ },
2179
+ {
2180
+ internalType: 'uint64',
2181
+ name: 'indexRepeatedStorageChanges',
2182
+ type: 'uint64',
2183
+ },
2184
+ {
2185
+ internalType: 'bytes32',
2186
+ name: 'newStateRoot',
2187
+ type: 'bytes32',
2188
+ },
2189
+ {
2190
+ internalType: 'uint256',
2191
+ name: 'numberOfLayer1Txs',
2192
+ type: 'uint256',
2193
+ },
2194
+ {
2195
+ internalType: 'bytes32',
2196
+ name: 'priorityOperationsHash',
2197
+ type: 'bytes32',
2198
+ },
2199
+ {
2200
+ internalType: 'bytes32',
2201
+ name: 'bootloaderHeapInitialContentsHash',
2202
+ type: 'bytes32',
2203
+ },
2204
+ {
2205
+ internalType: 'bytes32',
2206
+ name: 'eventsQueueStateHash',
2207
+ type: 'bytes32',
2208
+ },
2209
+ {
2210
+ internalType: 'bytes',
2211
+ name: 'systemLogs',
2212
+ type: 'bytes',
2213
+ },
2214
+ {
2215
+ internalType: 'bytes',
2216
+ name: 'pubdataCommitments',
2217
+ type: 'bytes',
2218
+ },
2219
+ ],
2220
+ internalType: 'struct IExecutor.CommitBatchInfo[]',
2221
+ name: '_newBatchesData',
2222
+ type: 'tuple[]',
2223
+ },
2224
+ ],
2225
+ name: 'commitBatchesSharedBridge',
2226
+ outputs: [],
2227
+ stateMutability: 'nonpayable',
2228
+ type: 'function',
2229
+ },
2230
+ {
2231
+ inputs: [
2232
+ {
2233
+ components: [
2234
+ {
2235
+ internalType: 'uint64',
2236
+ name: 'batchNumber',
2237
+ type: 'uint64',
2238
+ },
2239
+ {
2240
+ internalType: 'bytes32',
2241
+ name: 'batchHash',
2242
+ type: 'bytes32',
2243
+ },
2244
+ {
2245
+ internalType: 'uint64',
2246
+ name: 'indexRepeatedStorageChanges',
2247
+ type: 'uint64',
2248
+ },
2249
+ {
2250
+ internalType: 'uint256',
2251
+ name: 'numberOfLayer1Txs',
2252
+ type: 'uint256',
2253
+ },
2254
+ {
2255
+ internalType: 'bytes32',
2256
+ name: 'priorityOperationsHash',
2257
+ type: 'bytes32',
2258
+ },
2259
+ {
2260
+ internalType: 'bytes32',
2261
+ name: 'l2LogsTreeRoot',
2262
+ type: 'bytes32',
2263
+ },
2264
+ {
2265
+ internalType: 'uint256',
2266
+ name: 'timestamp',
2267
+ type: 'uint256',
2268
+ },
2269
+ {
2270
+ internalType: 'bytes32',
2271
+ name: 'commitment',
2272
+ type: 'bytes32',
2273
+ },
2274
+ ],
2275
+ internalType: 'struct IExecutor.StoredBatchInfo[]',
2276
+ name: '_batchesData',
2277
+ type: 'tuple[]',
2278
+ },
2279
+ ],
2280
+ name: 'executeBatches',
2281
+ outputs: [],
2282
+ stateMutability: 'nonpayable',
2283
+ type: 'function',
2284
+ },
2285
+ {
2286
+ inputs: [
2287
+ {
2288
+ internalType: 'uint256',
2289
+ name: '_chainId',
2290
+ type: 'uint256',
2291
+ },
2292
+ {
2293
+ components: [
2294
+ {
2295
+ internalType: 'uint64',
2296
+ name: 'batchNumber',
2297
+ type: 'uint64',
2298
+ },
2299
+ {
2300
+ internalType: 'bytes32',
2301
+ name: 'batchHash',
2302
+ type: 'bytes32',
2303
+ },
2304
+ {
2305
+ internalType: 'uint64',
2306
+ name: 'indexRepeatedStorageChanges',
2307
+ type: 'uint64',
2308
+ },
2309
+ {
2310
+ internalType: 'uint256',
2311
+ name: 'numberOfLayer1Txs',
2312
+ type: 'uint256',
2313
+ },
2314
+ {
2315
+ internalType: 'bytes32',
2316
+ name: 'priorityOperationsHash',
2317
+ type: 'bytes32',
2318
+ },
2319
+ {
2320
+ internalType: 'bytes32',
2321
+ name: 'l2LogsTreeRoot',
2322
+ type: 'bytes32',
2323
+ },
2324
+ {
2325
+ internalType: 'uint256',
2326
+ name: 'timestamp',
2327
+ type: 'uint256',
2328
+ },
2329
+ {
2330
+ internalType: 'bytes32',
2331
+ name: 'commitment',
2332
+ type: 'bytes32',
2333
+ },
2334
+ ],
2335
+ internalType: 'struct IExecutor.StoredBatchInfo[]',
2336
+ name: '_batchesData',
2337
+ type: 'tuple[]',
2338
+ },
2339
+ ],
2340
+ name: 'executeBatchesSharedBridge',
2341
+ outputs: [],
2342
+ stateMutability: 'nonpayable',
2343
+ type: 'function',
2344
+ },
2345
+ {
2346
+ inputs: [
2347
+ {
2348
+ components: [
2349
+ {
2350
+ components: [
2351
+ {
2352
+ internalType: 'address',
2353
+ name: 'facet',
2354
+ type: 'address',
2355
+ },
2356
+ {
2357
+ internalType: 'enum Diamond.Action',
2358
+ name: 'action',
2359
+ type: 'uint8',
2360
+ },
2361
+ {
2362
+ internalType: 'bool',
2363
+ name: 'isFreezable',
2364
+ type: 'bool',
2365
+ },
2366
+ {
2367
+ internalType: 'bytes4[]',
2368
+ name: 'selectors',
2369
+ type: 'bytes4[]',
2370
+ },
2371
+ ],
2372
+ internalType: 'struct Diamond.FacetCut[]',
2373
+ name: 'facetCuts',
2374
+ type: 'tuple[]',
2375
+ },
2376
+ {
2377
+ internalType: 'address',
2378
+ name: 'initAddress',
2379
+ type: 'address',
2380
+ },
2381
+ {
2382
+ internalType: 'bytes',
2383
+ name: 'initCalldata',
2384
+ type: 'bytes',
2385
+ },
2386
+ ],
2387
+ internalType: 'struct Diamond.DiamondCutData',
2388
+ name: '_diamondCut',
2389
+ type: 'tuple',
2390
+ },
2391
+ ],
2392
+ name: 'executeUpgrade',
2393
+ outputs: [],
2394
+ stateMutability: 'nonpayable',
2395
+ type: 'function',
2396
+ },
2397
+ {
2398
+ inputs: [
2399
+ {
2400
+ internalType: 'bytes4',
2401
+ name: '_selector',
2402
+ type: 'bytes4',
2403
+ },
2404
+ ],
2405
+ name: 'facetAddress',
2406
+ outputs: [
2407
+ {
2408
+ internalType: 'address',
2409
+ name: 'facet',
2410
+ type: 'address',
2411
+ },
2412
+ ],
2413
+ stateMutability: 'view',
2414
+ type: 'function',
2415
+ },
2416
+ {
2417
+ inputs: [],
2418
+ name: 'facetAddresses',
2419
+ outputs: [
2420
+ {
2421
+ internalType: 'address[]',
2422
+ name: 'facets',
2423
+ type: 'address[]',
2424
+ },
2425
+ ],
2426
+ stateMutability: 'view',
2427
+ type: 'function',
2428
+ },
2429
+ {
2430
+ inputs: [
2431
+ {
2432
+ internalType: 'address',
2433
+ name: '_facet',
2434
+ type: 'address',
2435
+ },
2436
+ ],
2437
+ name: 'facetFunctionSelectors',
2438
+ outputs: [
2439
+ {
2440
+ internalType: 'bytes4[]',
2441
+ name: '',
2442
+ type: 'bytes4[]',
2443
+ },
2444
+ ],
2445
+ stateMutability: 'view',
2446
+ type: 'function',
2447
+ },
2448
+ {
2449
+ inputs: [],
2450
+ name: 'facets',
2451
+ outputs: [
2452
+ {
2453
+ components: [
2454
+ {
2455
+ internalType: 'address',
2456
+ name: 'addr',
2457
+ type: 'address',
2458
+ },
2459
+ {
2460
+ internalType: 'bytes4[]',
2461
+ name: 'selectors',
2462
+ type: 'bytes4[]',
2463
+ },
2464
+ ],
2465
+ internalType: 'struct IGetters.Facet[]',
2466
+ name: '',
2467
+ type: 'tuple[]',
2468
+ },
2469
+ ],
2470
+ stateMutability: 'view',
2471
+ type: 'function',
2472
+ },
2473
+ {
2474
+ inputs: [
2475
+ {
2476
+ internalType: 'uint256',
2477
+ name: '_l2BatchNumber',
2478
+ type: 'uint256',
2479
+ },
2480
+ {
2481
+ internalType: 'uint256',
2482
+ name: '_l2MessageIndex',
2483
+ type: 'uint256',
2484
+ },
2485
+ {
2486
+ internalType: 'uint16',
2487
+ name: '_l2TxNumberInBatch',
2488
+ type: 'uint16',
2489
+ },
2490
+ {
2491
+ internalType: 'bytes',
2492
+ name: '_message',
2493
+ type: 'bytes',
2494
+ },
2495
+ {
2496
+ internalType: 'bytes32[]',
2497
+ name: '_merkleProof',
2498
+ type: 'bytes32[]',
2499
+ },
2500
+ ],
2501
+ name: 'finalizeEthWithdrawal',
2502
+ outputs: [],
2503
+ stateMutability: 'nonpayable',
2504
+ type: 'function',
2505
+ },
2506
+ {
2507
+ inputs: [],
2508
+ name: 'freezeDiamond',
2509
+ outputs: [],
2510
+ stateMutability: 'nonpayable',
2511
+ type: 'function',
2512
+ },
2513
+ {
2514
+ inputs: [],
2515
+ name: 'getAdmin',
2516
+ outputs: [
2517
+ {
2518
+ internalType: 'address',
2519
+ name: '',
2520
+ type: 'address',
2521
+ },
2522
+ ],
2523
+ stateMutability: 'view',
2524
+ type: 'function',
2525
+ },
2526
+ {
2527
+ inputs: [],
2528
+ name: 'getBaseToken',
2529
+ outputs: [
2530
+ {
2531
+ internalType: 'address',
2532
+ name: '',
2533
+ type: 'address',
2534
+ },
2535
+ ],
2536
+ stateMutability: 'view',
2537
+ type: 'function',
2538
+ },
2539
+ {
2540
+ inputs: [],
2541
+ name: 'getBaseTokenBridge',
2542
+ outputs: [
2543
+ {
2544
+ internalType: 'address',
2545
+ name: '',
2546
+ type: 'address',
2547
+ },
2548
+ ],
2549
+ stateMutability: 'view',
2550
+ type: 'function',
2551
+ },
2552
+ {
2553
+ inputs: [],
2554
+ name: 'getBridgehub',
2555
+ outputs: [
2556
+ {
2557
+ internalType: 'address',
2558
+ name: '',
2559
+ type: 'address',
2560
+ },
2561
+ ],
2562
+ stateMutability: 'view',
2563
+ type: 'function',
2564
+ },
2565
+ {
2566
+ inputs: [],
2567
+ name: 'getFirstUnprocessedPriorityTx',
2568
+ outputs: [
2569
+ {
2570
+ internalType: 'uint256',
2571
+ name: '',
2572
+ type: 'uint256',
2573
+ },
2574
+ ],
2575
+ stateMutability: 'view',
2576
+ type: 'function',
2577
+ },
2578
+ {
2579
+ inputs: [],
2580
+ name: 'getL2BootloaderBytecodeHash',
2581
+ outputs: [
2582
+ {
2583
+ internalType: 'bytes32',
2584
+ name: '',
2585
+ type: 'bytes32',
2586
+ },
2587
+ ],
2588
+ stateMutability: 'view',
2589
+ type: 'function',
2590
+ },
2591
+ {
2592
+ inputs: [],
2593
+ name: 'getL2DefaultAccountBytecodeHash',
2594
+ outputs: [
2595
+ {
2596
+ internalType: 'bytes32',
2597
+ name: '',
2598
+ type: 'bytes32',
2599
+ },
2600
+ ],
2601
+ stateMutability: 'view',
2602
+ type: 'function',
2603
+ },
2604
+ {
2605
+ inputs: [],
2606
+ name: 'getL2SystemContractsUpgradeBatchNumber',
2607
+ outputs: [
2608
+ {
2609
+ internalType: 'uint256',
2610
+ name: '',
2611
+ type: 'uint256',
2612
+ },
2613
+ ],
2614
+ stateMutability: 'view',
2615
+ type: 'function',
2616
+ },
2617
+ {
2618
+ inputs: [],
2619
+ name: 'getL2SystemContractsUpgradeTxHash',
2620
+ outputs: [
2621
+ {
2622
+ internalType: 'bytes32',
2623
+ name: '',
2624
+ type: 'bytes32',
2625
+ },
2626
+ ],
2627
+ stateMutability: 'view',
2628
+ type: 'function',
2629
+ },
2630
+ {
2631
+ inputs: [],
2632
+ name: 'getName',
2633
+ outputs: [
2634
+ {
2635
+ internalType: 'string',
2636
+ name: '',
2637
+ type: 'string',
2638
+ },
2639
+ ],
2640
+ stateMutability: 'view',
2641
+ type: 'function',
2642
+ },
2643
+ {
2644
+ inputs: [],
2645
+ name: 'getPendingAdmin',
2646
+ outputs: [
2647
+ {
2648
+ internalType: 'address',
2649
+ name: '',
2650
+ type: 'address',
2651
+ },
2652
+ ],
2653
+ stateMutability: 'view',
2654
+ type: 'function',
2655
+ },
2656
+ {
2657
+ inputs: [],
2658
+ name: 'getPriorityQueueSize',
2659
+ outputs: [
2660
+ {
2661
+ internalType: 'uint256',
2662
+ name: '',
2663
+ type: 'uint256',
2664
+ },
2665
+ ],
2666
+ stateMutability: 'view',
2667
+ type: 'function',
2668
+ },
2669
+ {
2670
+ inputs: [],
2671
+ name: 'getPriorityTxMaxGasLimit',
2672
+ outputs: [
2673
+ {
2674
+ internalType: 'uint256',
2675
+ name: '',
2676
+ type: 'uint256',
2677
+ },
2678
+ ],
2679
+ stateMutability: 'view',
2680
+ type: 'function',
2681
+ },
2682
+ {
2683
+ inputs: [],
2684
+ name: 'getProtocolVersion',
2685
+ outputs: [
2686
+ {
2687
+ internalType: 'uint256',
2688
+ name: '',
2689
+ type: 'uint256',
2690
+ },
2691
+ ],
2692
+ stateMutability: 'view',
2693
+ type: 'function',
2694
+ },
2695
+ {
2696
+ inputs: [],
2697
+ name: 'getPubdataPricingMode',
2698
+ outputs: [
2699
+ {
2700
+ internalType: 'enum PubdataPricingMode',
2701
+ name: '',
2702
+ type: 'uint8',
2703
+ },
2704
+ ],
2705
+ stateMutability: 'view',
2706
+ type: 'function',
2707
+ },
2708
+ {
2709
+ inputs: [],
2710
+ name: 'getSemverProtocolVersion',
2711
+ outputs: [
2712
+ {
2713
+ internalType: 'uint32',
2714
+ name: '',
2715
+ type: 'uint32',
2716
+ },
2717
+ {
2718
+ internalType: 'uint32',
2719
+ name: '',
2720
+ type: 'uint32',
2721
+ },
2722
+ {
2723
+ internalType: 'uint32',
2724
+ name: '',
2725
+ type: 'uint32',
2726
+ },
2727
+ ],
2728
+ stateMutability: 'view',
2729
+ type: 'function',
2730
+ },
2731
+ {
2732
+ inputs: [],
2733
+ name: 'getStateTransitionManager',
2734
+ outputs: [
2735
+ {
2736
+ internalType: 'address',
2737
+ name: '',
2738
+ type: 'address',
2739
+ },
2740
+ ],
2741
+ stateMutability: 'view',
2742
+ type: 'function',
2743
+ },
2744
+ {
2745
+ inputs: [],
2746
+ name: 'getTotalBatchesCommitted',
2747
+ outputs: [
2748
+ {
2749
+ internalType: 'uint256',
2750
+ name: '',
2751
+ type: 'uint256',
2752
+ },
2753
+ ],
2754
+ stateMutability: 'view',
2755
+ type: 'function',
2756
+ },
2757
+ {
2758
+ inputs: [],
2759
+ name: 'getTotalBatchesExecuted',
2760
+ outputs: [
2761
+ {
2762
+ internalType: 'uint256',
2763
+ name: '',
2764
+ type: 'uint256',
2765
+ },
2766
+ ],
2767
+ stateMutability: 'view',
2768
+ type: 'function',
2769
+ },
2770
+ {
2771
+ inputs: [],
2772
+ name: 'getTotalBatchesVerified',
2773
+ outputs: [
2774
+ {
2775
+ internalType: 'uint256',
2776
+ name: '',
2777
+ type: 'uint256',
2778
+ },
2779
+ ],
2780
+ stateMutability: 'view',
2781
+ type: 'function',
2782
+ },
2783
+ {
2784
+ inputs: [],
2785
+ name: 'getTotalPriorityTxs',
2786
+ outputs: [
2787
+ {
2788
+ internalType: 'uint256',
2789
+ name: '',
2790
+ type: 'uint256',
2791
+ },
2792
+ ],
2793
+ stateMutability: 'view',
2794
+ type: 'function',
2795
+ },
2796
+ {
2797
+ inputs: [],
2798
+ name: 'getVerifier',
2799
+ outputs: [
2800
+ {
2801
+ internalType: 'address',
2802
+ name: '',
2803
+ type: 'address',
2804
+ },
2805
+ ],
2806
+ stateMutability: 'view',
2807
+ type: 'function',
2808
+ },
2809
+ {
2810
+ inputs: [],
2811
+ name: 'getVerifierParams',
2812
+ outputs: [
2813
+ {
2814
+ components: [
2815
+ {
2816
+ internalType: 'bytes32',
2817
+ name: 'recursionNodeLevelVkHash',
2818
+ type: 'bytes32',
2819
+ },
2820
+ {
2821
+ internalType: 'bytes32',
2822
+ name: 'recursionLeafLevelVkHash',
2823
+ type: 'bytes32',
2824
+ },
2825
+ {
2826
+ internalType: 'bytes32',
2827
+ name: 'recursionCircuitsSetVksHash',
2828
+ type: 'bytes32',
2829
+ },
2830
+ ],
2831
+ internalType: 'struct VerifierParams',
2832
+ name: '',
2833
+ type: 'tuple',
2834
+ },
2835
+ ],
2836
+ stateMutability: 'view',
2837
+ type: 'function',
2838
+ },
2839
+ {
2840
+ inputs: [],
2841
+ name: 'isDiamondStorageFrozen',
2842
+ outputs: [
2843
+ {
2844
+ internalType: 'bool',
2845
+ name: '',
2846
+ type: 'bool',
2847
+ },
2848
+ ],
2849
+ stateMutability: 'view',
2850
+ type: 'function',
2851
+ },
2852
+ {
2853
+ inputs: [
2854
+ {
2855
+ internalType: 'uint256',
2856
+ name: '_l2BatchNumber',
2857
+ type: 'uint256',
2858
+ },
2859
+ {
2860
+ internalType: 'uint256',
2861
+ name: '_l2MessageIndex',
2862
+ type: 'uint256',
2863
+ },
2864
+ ],
2865
+ name: 'isEthWithdrawalFinalized',
2866
+ outputs: [
2867
+ {
2868
+ internalType: 'bool',
2869
+ name: '',
2870
+ type: 'bool',
2871
+ },
2872
+ ],
2873
+ stateMutability: 'view',
2874
+ type: 'function',
2875
+ },
2876
+ {
2877
+ inputs: [
2878
+ {
2879
+ internalType: 'address',
2880
+ name: '_facet',
2881
+ type: 'address',
2882
+ },
2883
+ ],
2884
+ name: 'isFacetFreezable',
2885
+ outputs: [
2886
+ {
2887
+ internalType: 'bool',
2888
+ name: 'isFreezable',
2889
+ type: 'bool',
2890
+ },
2891
+ ],
2892
+ stateMutability: 'view',
2893
+ type: 'function',
2894
+ },
2895
+ {
2896
+ inputs: [
2897
+ {
2898
+ internalType: 'bytes4',
2899
+ name: '_selector',
2900
+ type: 'bytes4',
2901
+ },
2902
+ ],
2903
+ name: 'isFunctionFreezable',
2904
+ outputs: [
2905
+ {
2906
+ internalType: 'bool',
2907
+ name: '',
2908
+ type: 'bool',
2909
+ },
2910
+ ],
2911
+ stateMutability: 'view',
2912
+ type: 'function',
2913
+ },
2914
+ {
2915
+ inputs: [
2916
+ {
2917
+ internalType: 'address',
2918
+ name: '_address',
2919
+ type: 'address',
2920
+ },
2921
+ ],
2922
+ name: 'isValidator',
2923
+ outputs: [
2924
+ {
2925
+ internalType: 'bool',
2926
+ name: '',
2927
+ type: 'bool',
2928
+ },
2929
+ ],
2930
+ stateMutability: 'view',
2931
+ type: 'function',
2932
+ },
2933
+ {
2934
+ inputs: [
2935
+ {
2936
+ internalType: 'uint256',
2937
+ name: '_batchNumber',
2938
+ type: 'uint256',
2939
+ },
2940
+ ],
2941
+ name: 'l2LogsRootHash',
2942
+ outputs: [
2943
+ {
2944
+ internalType: 'bytes32',
2945
+ name: 'merkleRoot',
2946
+ type: 'bytes32',
2947
+ },
2948
+ ],
2949
+ stateMutability: 'view',
2950
+ type: 'function',
2951
+ },
2952
+ {
2953
+ inputs: [
2954
+ {
2955
+ internalType: 'uint256',
2956
+ name: '_gasPrice',
2957
+ type: 'uint256',
2958
+ },
2959
+ {
2960
+ internalType: 'uint256',
2961
+ name: '_l2GasLimit',
2962
+ type: 'uint256',
2963
+ },
2964
+ {
2965
+ internalType: 'uint256',
2966
+ name: '_l2GasPerPubdataByteLimit',
2967
+ type: 'uint256',
2968
+ },
2969
+ ],
2970
+ name: 'l2TransactionBaseCost',
2971
+ outputs: [
2972
+ {
2973
+ internalType: 'uint256',
2974
+ name: '',
2975
+ type: 'uint256',
2976
+ },
2977
+ ],
2978
+ stateMutability: 'view',
2979
+ type: 'function',
2980
+ },
2981
+ {
2982
+ inputs: [],
2983
+ name: 'priorityQueueFrontOperation',
2984
+ outputs: [
2985
+ {
2986
+ components: [
2987
+ {
2988
+ internalType: 'bytes32',
2989
+ name: 'canonicalTxHash',
2990
+ type: 'bytes32',
2991
+ },
2992
+ {
2993
+ internalType: 'uint64',
2994
+ name: 'expirationTimestamp',
2995
+ type: 'uint64',
2996
+ },
2997
+ {
2998
+ internalType: 'uint192',
2999
+ name: 'layer2Tip',
3000
+ type: 'uint192',
3001
+ },
3002
+ ],
3003
+ internalType: 'struct PriorityOperation',
3004
+ name: '',
3005
+ type: 'tuple',
3006
+ },
3007
+ ],
3008
+ stateMutability: 'view',
3009
+ type: 'function',
3010
+ },
3011
+ {
3012
+ inputs: [
3013
+ {
3014
+ components: [
3015
+ {
3016
+ internalType: 'uint64',
3017
+ name: 'batchNumber',
3018
+ type: 'uint64',
3019
+ },
3020
+ {
3021
+ internalType: 'bytes32',
3022
+ name: 'batchHash',
3023
+ type: 'bytes32',
3024
+ },
3025
+ {
3026
+ internalType: 'uint64',
3027
+ name: 'indexRepeatedStorageChanges',
3028
+ type: 'uint64',
3029
+ },
3030
+ {
3031
+ internalType: 'uint256',
3032
+ name: 'numberOfLayer1Txs',
3033
+ type: 'uint256',
3034
+ },
3035
+ {
3036
+ internalType: 'bytes32',
3037
+ name: 'priorityOperationsHash',
3038
+ type: 'bytes32',
3039
+ },
3040
+ {
3041
+ internalType: 'bytes32',
3042
+ name: 'l2LogsTreeRoot',
3043
+ type: 'bytes32',
3044
+ },
3045
+ {
3046
+ internalType: 'uint256',
3047
+ name: 'timestamp',
3048
+ type: 'uint256',
3049
+ },
3050
+ {
3051
+ internalType: 'bytes32',
3052
+ name: 'commitment',
3053
+ type: 'bytes32',
3054
+ },
3055
+ ],
3056
+ internalType: 'struct IExecutor.StoredBatchInfo',
3057
+ name: '_prevBatch',
3058
+ type: 'tuple',
3059
+ },
3060
+ {
3061
+ components: [
3062
+ {
3063
+ internalType: 'uint64',
3064
+ name: 'batchNumber',
3065
+ type: 'uint64',
3066
+ },
3067
+ {
3068
+ internalType: 'bytes32',
3069
+ name: 'batchHash',
3070
+ type: 'bytes32',
3071
+ },
3072
+ {
3073
+ internalType: 'uint64',
3074
+ name: 'indexRepeatedStorageChanges',
3075
+ type: 'uint64',
3076
+ },
3077
+ {
3078
+ internalType: 'uint256',
3079
+ name: 'numberOfLayer1Txs',
3080
+ type: 'uint256',
3081
+ },
3082
+ {
3083
+ internalType: 'bytes32',
3084
+ name: 'priorityOperationsHash',
3085
+ type: 'bytes32',
3086
+ },
3087
+ {
3088
+ internalType: 'bytes32',
3089
+ name: 'l2LogsTreeRoot',
3090
+ type: 'bytes32',
3091
+ },
3092
+ {
3093
+ internalType: 'uint256',
3094
+ name: 'timestamp',
3095
+ type: 'uint256',
3096
+ },
3097
+ {
3098
+ internalType: 'bytes32',
3099
+ name: 'commitment',
3100
+ type: 'bytes32',
3101
+ },
3102
+ ],
3103
+ internalType: 'struct IExecutor.StoredBatchInfo[]',
3104
+ name: '_committedBatches',
3105
+ type: 'tuple[]',
3106
+ },
3107
+ {
3108
+ components: [
3109
+ {
3110
+ internalType: 'uint256[]',
3111
+ name: 'recursiveAggregationInput',
3112
+ type: 'uint256[]',
3113
+ },
3114
+ {
3115
+ internalType: 'uint256[]',
3116
+ name: 'serializedProof',
3117
+ type: 'uint256[]',
3118
+ },
3119
+ ],
3120
+ internalType: 'struct IExecutor.ProofInput',
3121
+ name: '_proof',
3122
+ type: 'tuple',
3123
+ },
3124
+ ],
3125
+ name: 'proveBatches',
3126
+ outputs: [],
3127
+ stateMutability: 'nonpayable',
3128
+ type: 'function',
3129
+ },
3130
+ {
3131
+ inputs: [
3132
+ {
3133
+ internalType: 'uint256',
3134
+ name: '_chainId',
3135
+ type: 'uint256',
3136
+ },
3137
+ {
3138
+ components: [
3139
+ {
3140
+ internalType: 'uint64',
3141
+ name: 'batchNumber',
3142
+ type: 'uint64',
3143
+ },
3144
+ {
3145
+ internalType: 'bytes32',
3146
+ name: 'batchHash',
3147
+ type: 'bytes32',
3148
+ },
3149
+ {
3150
+ internalType: 'uint64',
3151
+ name: 'indexRepeatedStorageChanges',
3152
+ type: 'uint64',
3153
+ },
3154
+ {
3155
+ internalType: 'uint256',
3156
+ name: 'numberOfLayer1Txs',
3157
+ type: 'uint256',
3158
+ },
3159
+ {
3160
+ internalType: 'bytes32',
3161
+ name: 'priorityOperationsHash',
3162
+ type: 'bytes32',
3163
+ },
3164
+ {
3165
+ internalType: 'bytes32',
3166
+ name: 'l2LogsTreeRoot',
3167
+ type: 'bytes32',
3168
+ },
3169
+ {
3170
+ internalType: 'uint256',
3171
+ name: 'timestamp',
3172
+ type: 'uint256',
3173
+ },
3174
+ {
3175
+ internalType: 'bytes32',
3176
+ name: 'commitment',
3177
+ type: 'bytes32',
3178
+ },
3179
+ ],
3180
+ internalType: 'struct IExecutor.StoredBatchInfo',
3181
+ name: '_prevBatch',
3182
+ type: 'tuple',
3183
+ },
3184
+ {
3185
+ components: [
3186
+ {
3187
+ internalType: 'uint64',
3188
+ name: 'batchNumber',
3189
+ type: 'uint64',
3190
+ },
3191
+ {
3192
+ internalType: 'bytes32',
3193
+ name: 'batchHash',
3194
+ type: 'bytes32',
3195
+ },
3196
+ {
3197
+ internalType: 'uint64',
3198
+ name: 'indexRepeatedStorageChanges',
3199
+ type: 'uint64',
3200
+ },
3201
+ {
3202
+ internalType: 'uint256',
3203
+ name: 'numberOfLayer1Txs',
3204
+ type: 'uint256',
3205
+ },
3206
+ {
3207
+ internalType: 'bytes32',
3208
+ name: 'priorityOperationsHash',
3209
+ type: 'bytes32',
3210
+ },
3211
+ {
3212
+ internalType: 'bytes32',
3213
+ name: 'l2LogsTreeRoot',
3214
+ type: 'bytes32',
3215
+ },
3216
+ {
3217
+ internalType: 'uint256',
3218
+ name: 'timestamp',
3219
+ type: 'uint256',
3220
+ },
3221
+ {
3222
+ internalType: 'bytes32',
3223
+ name: 'commitment',
3224
+ type: 'bytes32',
3225
+ },
3226
+ ],
3227
+ internalType: 'struct IExecutor.StoredBatchInfo[]',
3228
+ name: '_committedBatches',
3229
+ type: 'tuple[]',
3230
+ },
3231
+ {
3232
+ components: [
3233
+ {
3234
+ internalType: 'uint256[]',
3235
+ name: 'recursiveAggregationInput',
3236
+ type: 'uint256[]',
3237
+ },
3238
+ {
3239
+ internalType: 'uint256[]',
3240
+ name: 'serializedProof',
3241
+ type: 'uint256[]',
3242
+ },
3243
+ ],
3244
+ internalType: 'struct IExecutor.ProofInput',
3245
+ name: '_proof',
3246
+ type: 'tuple',
3247
+ },
3248
+ ],
3249
+ name: 'proveBatchesSharedBridge',
3250
+ outputs: [],
3251
+ stateMutability: 'nonpayable',
3252
+ type: 'function',
3253
+ },
3254
+ {
3255
+ inputs: [
3256
+ {
3257
+ internalType: 'bytes32',
3258
+ name: '_l2TxHash',
3259
+ type: 'bytes32',
3260
+ },
3261
+ {
3262
+ internalType: 'uint256',
3263
+ name: '_l2BatchNumber',
3264
+ type: 'uint256',
3265
+ },
3266
+ {
3267
+ internalType: 'uint256',
3268
+ name: '_l2MessageIndex',
3269
+ type: 'uint256',
3270
+ },
3271
+ {
3272
+ internalType: 'uint16',
3273
+ name: '_l2TxNumberInBatch',
3274
+ type: 'uint16',
3275
+ },
3276
+ {
3277
+ internalType: 'bytes32[]',
3278
+ name: '_merkleProof',
3279
+ type: 'bytes32[]',
3280
+ },
3281
+ {
3282
+ internalType: 'enum TxStatus',
3283
+ name: '_status',
3284
+ type: 'uint8',
3285
+ },
3286
+ ],
3287
+ name: 'proveL1ToL2TransactionStatus',
3288
+ outputs: [
3289
+ {
3290
+ internalType: 'bool',
3291
+ name: '',
3292
+ type: 'bool',
3293
+ },
3294
+ ],
3295
+ stateMutability: 'view',
3296
+ type: 'function',
3297
+ },
3298
+ {
3299
+ inputs: [
3300
+ {
3301
+ internalType: 'uint256',
3302
+ name: '_batchNumber',
3303
+ type: 'uint256',
3304
+ },
3305
+ {
3306
+ internalType: 'uint256',
3307
+ name: '_index',
3308
+ type: 'uint256',
3309
+ },
3310
+ {
3311
+ components: [
3312
+ {
3313
+ internalType: 'uint8',
3314
+ name: 'l2ShardId',
3315
+ type: 'uint8',
3316
+ },
3317
+ {
3318
+ internalType: 'bool',
3319
+ name: 'isService',
3320
+ type: 'bool',
3321
+ },
3322
+ {
3323
+ internalType: 'uint16',
3324
+ name: 'txNumberInBatch',
3325
+ type: 'uint16',
3326
+ },
3327
+ {
3328
+ internalType: 'address',
3329
+ name: 'sender',
3330
+ type: 'address',
3331
+ },
3332
+ {
3333
+ internalType: 'bytes32',
3334
+ name: 'key',
3335
+ type: 'bytes32',
3336
+ },
3337
+ {
3338
+ internalType: 'bytes32',
3339
+ name: 'value',
3340
+ type: 'bytes32',
3341
+ },
3342
+ ],
3343
+ internalType: 'struct L2Log',
3344
+ name: '_log',
3345
+ type: 'tuple',
3346
+ },
3347
+ {
3348
+ internalType: 'bytes32[]',
3349
+ name: '_proof',
3350
+ type: 'bytes32[]',
3351
+ },
3352
+ ],
3353
+ name: 'proveL2LogInclusion',
3354
+ outputs: [
3355
+ {
3356
+ internalType: 'bool',
3357
+ name: '',
3358
+ type: 'bool',
3359
+ },
3360
+ ],
3361
+ stateMutability: 'view',
3362
+ type: 'function',
3363
+ },
3364
+ {
3365
+ inputs: [
3366
+ {
3367
+ internalType: 'uint256',
3368
+ name: '_batchNumber',
3369
+ type: 'uint256',
3370
+ },
3371
+ {
3372
+ internalType: 'uint256',
3373
+ name: '_index',
3374
+ type: 'uint256',
3375
+ },
3376
+ {
3377
+ components: [
3378
+ {
3379
+ internalType: 'uint16',
3380
+ name: 'txNumberInBatch',
3381
+ type: 'uint16',
3382
+ },
3383
+ {
3384
+ internalType: 'address',
3385
+ name: 'sender',
3386
+ type: 'address',
3387
+ },
3388
+ {
3389
+ internalType: 'bytes',
3390
+ name: 'data',
3391
+ type: 'bytes',
3392
+ },
3393
+ ],
3394
+ internalType: 'struct L2Message',
3395
+ name: '_message',
3396
+ type: 'tuple',
3397
+ },
3398
+ {
3399
+ internalType: 'bytes32[]',
3400
+ name: '_proof',
3401
+ type: 'bytes32[]',
3402
+ },
3403
+ ],
3404
+ name: 'proveL2MessageInclusion',
3405
+ outputs: [
3406
+ {
3407
+ internalType: 'bool',
3408
+ name: '',
3409
+ type: 'bool',
3410
+ },
3411
+ ],
3412
+ stateMutability: 'view',
3413
+ type: 'function',
3414
+ },
3415
+ {
3416
+ inputs: [
3417
+ {
3418
+ internalType: 'address',
3419
+ name: '_contractL2',
3420
+ type: 'address',
3421
+ },
3422
+ {
3423
+ internalType: 'uint256',
3424
+ name: '_l2Value',
3425
+ type: 'uint256',
3426
+ },
3427
+ {
3428
+ internalType: 'bytes',
3429
+ name: '_calldata',
3430
+ type: 'bytes',
3431
+ },
3432
+ {
3433
+ internalType: 'uint256',
3434
+ name: '_l2GasLimit',
3435
+ type: 'uint256',
3436
+ },
3437
+ {
3438
+ internalType: 'uint256',
3439
+ name: '_l2GasPerPubdataByteLimit',
3440
+ type: 'uint256',
3441
+ },
3442
+ {
3443
+ internalType: 'bytes[]',
3444
+ name: '_factoryDeps',
3445
+ type: 'bytes[]',
3446
+ },
3447
+ {
3448
+ internalType: 'address',
3449
+ name: '_refundRecipient',
3450
+ type: 'address',
3451
+ },
3452
+ ],
3453
+ name: 'requestL2Transaction',
3454
+ outputs: [
3455
+ {
3456
+ internalType: 'bytes32',
3457
+ name: 'canonicalTxHash',
3458
+ type: 'bytes32',
3459
+ },
3460
+ ],
3461
+ stateMutability: 'payable',
3462
+ type: 'function',
3463
+ },
3464
+ {
3465
+ inputs: [
3466
+ {
3467
+ internalType: 'uint256',
3468
+ name: '_newLastBatch',
3469
+ type: 'uint256',
3470
+ },
3471
+ ],
3472
+ name: 'revertBatches',
3473
+ outputs: [],
3474
+ stateMutability: 'nonpayable',
3475
+ type: 'function',
3476
+ },
3477
+ {
3478
+ inputs: [
3479
+ {
3480
+ internalType: 'uint256',
3481
+ name: '_chainId',
3482
+ type: 'uint256',
3483
+ },
3484
+ {
3485
+ internalType: 'uint256',
3486
+ name: '_newLastBatch',
3487
+ type: 'uint256',
3488
+ },
3489
+ ],
3490
+ name: 'revertBatchesSharedBridge',
3491
+ outputs: [],
3492
+ stateMutability: 'nonpayable',
3493
+ type: 'function',
3494
+ },
3495
+ {
3496
+ inputs: [
3497
+ {
3498
+ internalType: 'address',
3499
+ name: '_newPendingAdmin',
3500
+ type: 'address',
3501
+ },
3502
+ ],
3503
+ name: 'setPendingAdmin',
3504
+ outputs: [],
3505
+ stateMutability: 'nonpayable',
3506
+ type: 'function',
3507
+ },
3508
+ {
3509
+ inputs: [
3510
+ {
3511
+ internalType: 'bool',
3512
+ name: '_zkPorterIsAvailable',
3513
+ type: 'bool',
3514
+ },
3515
+ ],
3516
+ name: 'setPorterAvailability',
3517
+ outputs: [],
3518
+ stateMutability: 'nonpayable',
3519
+ type: 'function',
3520
+ },
3521
+ {
3522
+ inputs: [
3523
+ {
3524
+ internalType: 'uint256',
3525
+ name: '_newPriorityTxMaxGasLimit',
3526
+ type: 'uint256',
3527
+ },
3528
+ ],
3529
+ name: 'setPriorityTxMaxGasLimit',
3530
+ outputs: [],
3531
+ stateMutability: 'nonpayable',
3532
+ type: 'function',
3533
+ },
3534
+ {
3535
+ inputs: [
3536
+ {
3537
+ internalType: 'enum PubdataPricingMode',
3538
+ name: '_pricingMode',
3539
+ type: 'uint8',
3540
+ },
3541
+ ],
3542
+ name: 'setPubdataPricingMode',
3543
+ outputs: [],
3544
+ stateMutability: 'nonpayable',
3545
+ type: 'function',
3546
+ },
3547
+ {
3548
+ inputs: [
3549
+ {
3550
+ internalType: 'uint128',
3551
+ name: '_nominator',
3552
+ type: 'uint128',
3553
+ },
3554
+ {
3555
+ internalType: 'uint128',
3556
+ name: '_denominator',
3557
+ type: 'uint128',
3558
+ },
3559
+ ],
3560
+ name: 'setTokenMultiplier',
3561
+ outputs: [],
3562
+ stateMutability: 'nonpayable',
3563
+ type: 'function',
3564
+ },
3565
+ {
3566
+ inputs: [
3567
+ {
3568
+ internalType: 'address',
3569
+ name: '_transactionFilterer',
3570
+ type: 'address',
3571
+ },
3572
+ ],
3573
+ name: 'setTransactionFilterer',
3574
+ outputs: [],
3575
+ stateMutability: 'nonpayable',
3576
+ type: 'function',
3577
+ },
3578
+ {
3579
+ inputs: [
3580
+ {
3581
+ internalType: 'address',
3582
+ name: '_validator',
3583
+ type: 'address',
3584
+ },
3585
+ {
3586
+ internalType: 'bool',
3587
+ name: '_active',
3588
+ type: 'bool',
3589
+ },
3590
+ ],
3591
+ name: 'setValidator',
3592
+ outputs: [],
3593
+ stateMutability: 'nonpayable',
3594
+ type: 'function',
3595
+ },
3596
+ {
3597
+ inputs: [
3598
+ {
3599
+ internalType: 'uint256',
3600
+ name: '_batchNumber',
3601
+ type: 'uint256',
3602
+ },
3603
+ ],
3604
+ name: 'storedBatchHash',
3605
+ outputs: [
3606
+ {
3607
+ internalType: 'bytes32',
3608
+ name: '',
3609
+ type: 'bytes32',
3610
+ },
3611
+ ],
3612
+ stateMutability: 'view',
3613
+ type: 'function',
3614
+ },
3615
+ {
3616
+ inputs: [],
3617
+ name: 'transferEthToSharedBridge',
3618
+ outputs: [],
3619
+ stateMutability: 'nonpayable',
3620
+ type: 'function',
3621
+ },
3622
+ {
3623
+ inputs: [],
3624
+ name: 'unfreezeDiamond',
3625
+ outputs: [],
3626
+ stateMutability: 'nonpayable',
3627
+ type: 'function',
3628
+ },
3629
+ {
3630
+ inputs: [
3631
+ {
3632
+ internalType: 'uint256',
3633
+ name: '_protocolVersion',
3634
+ type: 'uint256',
3635
+ },
3636
+ {
3637
+ components: [
3638
+ {
3639
+ components: [
3640
+ {
3641
+ internalType: 'address',
3642
+ name: 'facet',
3643
+ type: 'address',
3644
+ },
3645
+ {
3646
+ internalType: 'enum Diamond.Action',
3647
+ name: 'action',
3648
+ type: 'uint8',
3649
+ },
3650
+ {
3651
+ internalType: 'bool',
3652
+ name: 'isFreezable',
3653
+ type: 'bool',
3654
+ },
3655
+ {
3656
+ internalType: 'bytes4[]',
3657
+ name: 'selectors',
3658
+ type: 'bytes4[]',
3659
+ },
3660
+ ],
3661
+ internalType: 'struct Diamond.FacetCut[]',
3662
+ name: 'facetCuts',
3663
+ type: 'tuple[]',
3664
+ },
3665
+ {
3666
+ internalType: 'address',
3667
+ name: 'initAddress',
3668
+ type: 'address',
3669
+ },
3670
+ {
3671
+ internalType: 'bytes',
3672
+ name: 'initCalldata',
3673
+ type: 'bytes',
3674
+ },
3675
+ ],
3676
+ internalType: 'struct Diamond.DiamondCutData',
3677
+ name: '_cutData',
3678
+ type: 'tuple',
3679
+ },
3680
+ ],
3681
+ name: 'upgradeChainFromVersion',
3682
+ outputs: [],
3683
+ stateMutability: 'nonpayable',
3684
+ type: 'function',
3685
+ },
3686
+ ];
649
3687
  //# sourceMappingURL=abis.js.map