@matterlabs/zksync-js 0.0.11 → 0.0.13

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 (48) hide show
  1. package/README.md +13 -0
  2. package/dist/adapters/ethers/client.cjs +722 -4
  3. package/dist/adapters/ethers/client.cjs.map +1 -1
  4. package/dist/adapters/ethers/client.js +6 -6
  5. package/dist/adapters/ethers/index.cjs +774 -45
  6. package/dist/adapters/ethers/index.cjs.map +1 -1
  7. package/dist/adapters/ethers/index.js +9 -9
  8. package/dist/adapters/ethers/resources/deposits/services/gas.d.ts +4 -4
  9. package/dist/adapters/ethers/sdk.cjs +772 -41
  10. package/dist/adapters/ethers/sdk.cjs.map +1 -1
  11. package/dist/adapters/ethers/sdk.js +7 -7
  12. package/dist/adapters/viem/client.cjs +2 -4
  13. package/dist/adapters/viem/client.cjs.map +1 -1
  14. package/dist/adapters/viem/client.js +6 -6
  15. package/dist/adapters/viem/index.cjs +38 -33
  16. package/dist/adapters/viem/index.cjs.map +1 -1
  17. package/dist/adapters/viem/index.js +9 -9
  18. package/dist/adapters/viem/resources/deposits/services/gas.d.ts +4 -4
  19. package/dist/adapters/viem/sdk.cjs +36 -29
  20. package/dist/adapters/viem/sdk.cjs.map +1 -1
  21. package/dist/adapters/viem/sdk.js +7 -7
  22. package/dist/{chunk-EWBYKU4G.js → chunk-2RIARDXZ.js} +4 -4
  23. package/dist/{chunk-USXSAFYA.js → chunk-4S4XDA4N.js} +4 -6
  24. package/dist/{chunk-H3BPVVMN.js → chunk-53MC5BR2.js} +1 -1
  25. package/dist/{chunk-IQVH7YZT.js → chunk-5L6EYUJB.js} +2 -2
  26. package/dist/{chunk-QUI3J42E.js → chunk-5R7L5NM5.js} +2 -2
  27. package/dist/{chunk-ZVHFVUDE.js → chunk-E3KP7XCG.js} +1 -1
  28. package/dist/{chunk-CCUAGJ6K.js → chunk-EDWBCPO3.js} +40 -33
  29. package/dist/{chunk-6IT5PEEN.js → chunk-HI64OOAR.js} +1 -1
  30. package/dist/{chunk-TL26ZONW.js → chunk-JHO2UQ5F.js} +56 -45
  31. package/dist/{chunk-C3AGOEHR.js → chunk-QQ2OR434.js} +1 -1
  32. package/dist/{chunk-FXSFLZ6D.js → chunk-R5WRFPK2.js} +4 -4
  33. package/dist/{chunk-QFEYV4O3.js → chunk-RI73VJSH.js} +716 -2
  34. package/dist/{chunk-N4PR5SVB.js → chunk-UDBRUBEK.js} +10 -2
  35. package/dist/core/abi.d.ts +2 -0
  36. package/dist/core/constants.cjs +1 -1
  37. package/dist/core/constants.d.ts +1 -1
  38. package/dist/core/constants.js +1 -1
  39. package/dist/core/index.cjs +716 -4
  40. package/dist/core/index.cjs.map +1 -1
  41. package/dist/core/index.js +5 -5
  42. package/dist/core/internal/abis/IInteropErrors.d.ts +197 -0
  43. package/dist/core/internal/abis/IL1ContractErrors.d.ts +1021 -0
  44. package/dist/core/rpc/types.d.ts +1 -1
  45. package/dist/index.cjs +717 -5
  46. package/dist/index.cjs.map +1 -1
  47. package/dist/index.js +5 -5
  48. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { __export, ETH_ADDRESS, FORMAL_ETH_ADDRESS, L2_BASE_TOKEN_ADDRESS } from './chunk-C3AGOEHR.js';
1
+ import { __export, ETH_ADDRESS, FORMAL_ETH_ADDRESS, L2_BASE_TOKEN_ADDRESS } from './chunk-QQ2OR434.js';
2
2
 
3
3
  // src/core/internal/abis/IBridgehub.ts
4
4
  var IBridgehubABI = [
@@ -5301,9 +5301,11 @@ __export(abi_exports, {
5301
5301
  IERC20ABI: () => IERC20_default,
5302
5302
  IERC7786AttributesABI: () => IERC7786Attributes_default,
5303
5303
  IInteropCenterABI: () => IInteropCenter_default,
5304
+ IInteropErrorsABI: () => IInteropErrors_default,
5304
5305
  IInteropHandlerABI: () => IInteropHandler_default,
5305
5306
  IInteropRootStorageABI: () => IInteropRootStorage_default,
5306
5307
  IL1AssetRouterABI: () => IL1AssetRouter_default,
5308
+ IL1ContractErrorsABI: () => IL1ContractErrors_default,
5307
5309
  IL1NullifierABI: () => IL1Nullifier_default,
5308
5310
  IL2AssetRouterABI: () => IL2AssetRouter_default,
5309
5311
  L1NativeTokenVaultABI: () => L1NativeTokenVault_default,
@@ -5929,6 +5931,718 @@ var InteropRootStorageABI = [
5929
5931
  ];
5930
5932
  var IInteropRootStorage_default = InteropRootStorageABI;
5931
5933
 
5934
+ // src/core/internal/abis/IInteropErrors.ts
5935
+ var IInteropErrorsABI = [
5936
+ {
5937
+ type: "error",
5938
+ name: "AttributeAlreadySet",
5939
+ inputs: [
5940
+ {
5941
+ name: "selector",
5942
+ type: "bytes4"
5943
+ }
5944
+ ]
5945
+ },
5946
+ {
5947
+ type: "error",
5948
+ name: "AttributeViolatesRestriction",
5949
+ inputs: [
5950
+ {
5951
+ name: "selector",
5952
+ type: "bytes4"
5953
+ },
5954
+ {
5955
+ name: "restriction",
5956
+ type: "uint256"
5957
+ }
5958
+ ]
5959
+ },
5960
+ {
5961
+ type: "error",
5962
+ name: "BundleAlreadyProcessed",
5963
+ inputs: [
5964
+ {
5965
+ name: "bundleHash",
5966
+ type: "bytes32"
5967
+ }
5968
+ ]
5969
+ },
5970
+ {
5971
+ type: "error",
5972
+ name: "CallAlreadyExecuted",
5973
+ inputs: [
5974
+ {
5975
+ name: "bundleHash",
5976
+ type: "bytes32"
5977
+ },
5978
+ {
5979
+ name: "callIndex",
5980
+ type: "uint256"
5981
+ }
5982
+ ]
5983
+ },
5984
+ {
5985
+ type: "error",
5986
+ name: "CallNotExecutable",
5987
+ inputs: [
5988
+ {
5989
+ name: "bundleHash",
5990
+ type: "bytes32"
5991
+ },
5992
+ {
5993
+ name: "callIndex",
5994
+ type: "uint256"
5995
+ }
5996
+ ]
5997
+ },
5998
+ {
5999
+ type: "error",
6000
+ name: "CanNotUnbundle",
6001
+ inputs: [
6002
+ {
6003
+ name: "bundleHash",
6004
+ type: "bytes32"
6005
+ }
6006
+ ]
6007
+ },
6008
+ {
6009
+ type: "error",
6010
+ name: "DestinationChainNotRegistered",
6011
+ inputs: [
6012
+ {
6013
+ name: "destinationChainId",
6014
+ type: "uint256"
6015
+ }
6016
+ ]
6017
+ },
6018
+ {
6019
+ type: "error",
6020
+ name: "ExecutingNotAllowed",
6021
+ inputs: [
6022
+ {
6023
+ name: "bundleHash",
6024
+ type: "bytes32"
6025
+ },
6026
+ {
6027
+ name: "callerAddress",
6028
+ type: "bytes"
6029
+ },
6030
+ {
6031
+ name: "executionAddress",
6032
+ type: "bytes"
6033
+ }
6034
+ ]
6035
+ },
6036
+ {
6037
+ type: "error",
6038
+ name: "FeeWithdrawalFailed",
6039
+ inputs: []
6040
+ },
6041
+ {
6042
+ type: "error",
6043
+ name: "IndirectCallValueMismatch",
6044
+ inputs: [
6045
+ {
6046
+ name: "expected",
6047
+ type: "uint256"
6048
+ },
6049
+ {
6050
+ name: "actual",
6051
+ type: "uint256"
6052
+ }
6053
+ ]
6054
+ },
6055
+ {
6056
+ type: "error",
6057
+ name: "InteroperableAddressChainReferenceNotEmpty",
6058
+ inputs: [
6059
+ {
6060
+ name: "interoperableAddress",
6061
+ type: "bytes"
6062
+ }
6063
+ ]
6064
+ },
6065
+ {
6066
+ type: "error",
6067
+ name: "InteroperableAddressNotEmpty",
6068
+ inputs: [
6069
+ {
6070
+ name: "interoperableAddress",
6071
+ type: "bytes"
6072
+ }
6073
+ ]
6074
+ },
6075
+ {
6076
+ type: "error",
6077
+ name: "InvalidInteropBundleVersion",
6078
+ inputs: []
6079
+ },
6080
+ {
6081
+ type: "error",
6082
+ name: "InvalidInteropCallVersion",
6083
+ inputs: []
6084
+ },
6085
+ {
6086
+ type: "error",
6087
+ name: "InteropRootAlreadyExists",
6088
+ inputs: []
6089
+ },
6090
+ {
6091
+ type: "error",
6092
+ name: "MessageNotIncluded",
6093
+ inputs: []
6094
+ },
6095
+ {
6096
+ type: "error",
6097
+ name: "SidesLengthNotOne",
6098
+ inputs: []
6099
+ },
6100
+ {
6101
+ type: "error",
6102
+ name: "UnauthorizedMessageSender",
6103
+ inputs: [
6104
+ {
6105
+ name: "expected",
6106
+ type: "address"
6107
+ },
6108
+ {
6109
+ name: "actual",
6110
+ type: "address"
6111
+ }
6112
+ ]
6113
+ },
6114
+ {
6115
+ type: "error",
6116
+ name: "UnbundlingNotAllowed",
6117
+ inputs: [
6118
+ {
6119
+ name: "bundleHash",
6120
+ type: "bytes32"
6121
+ },
6122
+ {
6123
+ name: "callerAddress",
6124
+ type: "bytes"
6125
+ },
6126
+ {
6127
+ name: "unbundlerAddress",
6128
+ type: "bytes"
6129
+ }
6130
+ ]
6131
+ },
6132
+ {
6133
+ type: "error",
6134
+ name: "WrongCallStatusLength",
6135
+ inputs: [
6136
+ {
6137
+ name: "bundleCallsLength",
6138
+ type: "uint256"
6139
+ },
6140
+ {
6141
+ name: "providedCallStatusLength",
6142
+ type: "uint256"
6143
+ }
6144
+ ]
6145
+ },
6146
+ {
6147
+ type: "error",
6148
+ name: "WrongDestinationChainId",
6149
+ inputs: [
6150
+ {
6151
+ name: "bundleHash",
6152
+ type: "bytes32"
6153
+ },
6154
+ {
6155
+ name: "expected",
6156
+ type: "uint256"
6157
+ },
6158
+ {
6159
+ name: "actual",
6160
+ type: "uint256"
6161
+ }
6162
+ ]
6163
+ },
6164
+ {
6165
+ type: "error",
6166
+ name: "WrongDestinationBaseTokenAssetId",
6167
+ inputs: [
6168
+ {
6169
+ name: "bundleHash",
6170
+ type: "bytes32"
6171
+ },
6172
+ {
6173
+ name: "expected",
6174
+ type: "bytes32"
6175
+ },
6176
+ {
6177
+ name: "actual",
6178
+ type: "bytes32"
6179
+ }
6180
+ ]
6181
+ },
6182
+ {
6183
+ type: "error",
6184
+ name: "WrongSourceChainId",
6185
+ inputs: [
6186
+ {
6187
+ name: "bundleHash",
6188
+ type: "bytes32"
6189
+ },
6190
+ {
6191
+ name: "expected",
6192
+ type: "uint256"
6193
+ },
6194
+ {
6195
+ name: "actual",
6196
+ type: "uint256"
6197
+ }
6198
+ ]
6199
+ },
6200
+ {
6201
+ type: "error",
6202
+ name: "ZKTokenNotAvailable",
6203
+ inputs: []
6204
+ }
6205
+ ];
6206
+ var IInteropErrors_default = IInteropErrorsABI;
6207
+
6208
+ // src/core/internal/abis/IL1ContractErrors.ts
6209
+ var IL1ContractErrorsABI = [
6210
+ {
6211
+ type: "error",
6212
+ name: "AccessToFallbackDenied",
6213
+ inputs: [
6214
+ { name: "target", type: "address" },
6215
+ { name: "invoker", type: "address" }
6216
+ ]
6217
+ },
6218
+ {
6219
+ type: "error",
6220
+ name: "AccessToFunctionDenied",
6221
+ inputs: [
6222
+ { name: "target", type: "address" },
6223
+ { name: "selector", type: "bytes4" },
6224
+ { name: "invoker", type: "address" }
6225
+ ]
6226
+ },
6227
+ { type: "error", name: "AddressAlreadySet", inputs: [{ name: "addr", type: "address" }] },
6228
+ { type: "error", name: "AddressHasNoCode", inputs: [{ name: "", type: "address" }] },
6229
+ {
6230
+ type: "error",
6231
+ name: "AddressMismatch",
6232
+ inputs: [
6233
+ { name: "expected", type: "address" },
6234
+ { name: "supplied", type: "address" }
6235
+ ]
6236
+ },
6237
+ { type: "error", name: "AlreadyPermanentRollup", inputs: [] },
6238
+ { type: "error", name: "AlreadyWhitelisted", inputs: [{ name: "", type: "address" }] },
6239
+ { type: "error", name: "AmountMustBeGreaterThanZero", inputs: [] },
6240
+ {
6241
+ type: "error",
6242
+ name: "AssetHandlerDoesNotExist",
6243
+ inputs: [{ name: "assetId", type: "bytes32" }]
6244
+ },
6245
+ {
6246
+ type: "error",
6247
+ name: "AssetHandlerNotRegistered",
6248
+ inputs: [{ name: "assetId", type: "bytes32" }]
6249
+ },
6250
+ { type: "error", name: "AssetIdAlreadyRegistered", inputs: [] },
6251
+ {
6252
+ type: "error",
6253
+ name: "AssetIdMismatch",
6254
+ inputs: [
6255
+ { name: "expected", type: "bytes32" },
6256
+ { name: "supplied", type: "bytes32" }
6257
+ ]
6258
+ },
6259
+ { type: "error", name: "AssetIdNotSupported", inputs: [{ name: "assetId", type: "bytes32" }] },
6260
+ { type: "error", name: "AssetRouterAllowanceNotZero", inputs: [] },
6261
+ { type: "error", name: "BaseTokenGasPriceDenominatorNotSet", inputs: [] },
6262
+ {
6263
+ type: "error",
6264
+ name: "BatchHashMismatch",
6265
+ inputs: [
6266
+ { name: "expected", type: "bytes32" },
6267
+ { name: "actual", type: "bytes32" }
6268
+ ]
6269
+ },
6270
+ { type: "error", name: "BatchNotExecuted", inputs: [{ name: "batchNumber", type: "uint256" }] },
6271
+ {
6272
+ type: "error",
6273
+ name: "BatchNumberMismatch",
6274
+ inputs: [
6275
+ { name: "expectedBatchNumber", type: "uint256" },
6276
+ { name: "providedBatchNumber", type: "uint256" }
6277
+ ]
6278
+ },
6279
+ { type: "error", name: "BridgeHubAlreadyRegistered", inputs: [] },
6280
+ { type: "error", name: "BridgeMintNotImplemented", inputs: [] },
6281
+ { type: "error", name: "BurningNativeWETHNotSupported", inputs: [] },
6282
+ {
6283
+ type: "error",
6284
+ name: "BytecodeAlreadyPublished",
6285
+ inputs: [{ name: "bytecodeHash", type: "bytes32" }]
6286
+ },
6287
+ { type: "error", name: "CallerNotTimerAdmin", inputs: [] },
6288
+ { type: "error", name: "CallNotAllowed", inputs: [{ name: "call", type: "bytes" }] },
6289
+ { type: "error", name: "CanOnlyProcessOneBatch", inputs: [] },
6290
+ { type: "error", name: "CantExecuteUnprovenBatches", inputs: [] },
6291
+ { type: "error", name: "CantRevertExecutedBatch", inputs: [] },
6292
+ { type: "error", name: "ChainAlreadyLive", inputs: [] },
6293
+ { type: "error", name: "ChainIdAlreadyExists", inputs: [] },
6294
+ { type: "error", name: "ChainIdCantBeCurrentChain", inputs: [] },
6295
+ { type: "error", name: "ChainIdMismatch", inputs: [] },
6296
+ { type: "error", name: "ChainIdNotRegistered", inputs: [{ name: "chainId", type: "uint256" }] },
6297
+ { type: "error", name: "ChainIdTooBig", inputs: [] },
6298
+ { type: "error", name: "CTMAlreadyRegistered", inputs: [] },
6299
+ { type: "error", name: "CTMNotRegistered", inputs: [] },
6300
+ { type: "error", name: "DeadlineNotYetPassed", inputs: [] },
6301
+ { type: "error", name: "DefaultAdminTransferNotAllowed", inputs: [] },
6302
+ { type: "error", name: "DelegateCallFailed", inputs: [{ name: "returnData", type: "bytes" }] },
6303
+ { type: "error", name: "DenominatorIsZero", inputs: [] },
6304
+ { type: "error", name: "DeployFailed", inputs: [] },
6305
+ { type: "error", name: "DeployingBridgedTokenForNativeToken", inputs: [] },
6306
+ { type: "error", name: "DepositDoesNotExist", inputs: [] },
6307
+ { type: "error", name: "DepositExists", inputs: [] },
6308
+ { type: "error", name: "DiamondAlreadyFrozen", inputs: [] },
6309
+ { type: "error", name: "DiamondNotFrozen", inputs: [] },
6310
+ { type: "error", name: "EmptyAddress", inputs: [] },
6311
+ { type: "error", name: "EmptyAssetId", inputs: [] },
6312
+ { type: "error", name: "EmptyBytes32", inputs: [] },
6313
+ { type: "error", name: "EmptyData", inputs: [] },
6314
+ { type: "error", name: "EmptyDeposit", inputs: [] },
6315
+ { type: "error", name: "EmptyPrecommitData", inputs: [{ name: "batchNumber", type: "uint256" }] },
6316
+ { type: "error", name: "EmptyProofLength", inputs: [] },
6317
+ { type: "error", name: "ETHDepositNotSupported", inputs: [] },
6318
+ {
6319
+ type: "error",
6320
+ name: "FacetExists",
6321
+ inputs: [
6322
+ { name: "selector", type: "bytes4" },
6323
+ { name: "", type: "address" }
6324
+ ]
6325
+ },
6326
+ { type: "error", name: "GasPerPubdataMismatch", inputs: [] },
6327
+ { type: "error", name: "GenesisBatchCommitmentZero", inputs: [] },
6328
+ { type: "error", name: "GenesisBatchHashZero", inputs: [] },
6329
+ { type: "error", name: "GenesisIndexStorageZero", inputs: [] },
6330
+ { type: "error", name: "GenesisUpgradeZero", inputs: [] },
6331
+ { type: "error", name: "HashedLogIsDefault", inputs: [] },
6332
+ {
6333
+ type: "error",
6334
+ name: "HashMismatch",
6335
+ inputs: [
6336
+ { name: "expected", type: "bytes32" },
6337
+ { name: "actual", type: "bytes32" }
6338
+ ]
6339
+ },
6340
+ {
6341
+ type: "error",
6342
+ name: "IncorrectBatchBounds",
6343
+ inputs: [
6344
+ { name: "processFromExpected", type: "uint256" },
6345
+ { name: "processToExpected", type: "uint256" },
6346
+ { name: "processFromProvided", type: "uint256" },
6347
+ { name: "processToProvided", type: "uint256" }
6348
+ ]
6349
+ },
6350
+ {
6351
+ type: "error",
6352
+ name: "IncorrectBridgeHubAddress",
6353
+ inputs: [{ name: "bridgehub", type: "address" }]
6354
+ },
6355
+ {
6356
+ type: "error",
6357
+ name: "IncorrectTokenAddressFromNTV",
6358
+ inputs: [
6359
+ { name: "assetId", type: "bytes32" },
6360
+ { name: "tokenAddress", type: "address" }
6361
+ ]
6362
+ },
6363
+ { type: "error", name: "InsufficientChainBalance", inputs: [] },
6364
+ {
6365
+ type: "error",
6366
+ name: "InvalidBatchNumber",
6367
+ inputs: [
6368
+ { name: "provided", type: "uint256" },
6369
+ { name: "expected", type: "uint256" }
6370
+ ]
6371
+ },
6372
+ { type: "error", name: "InvalidCaller", inputs: [{ name: "", type: "address" }] },
6373
+ { type: "error", name: "InvalidDAForPermanentRollup", inputs: [] },
6374
+ { type: "error", name: "InvalidDelay", inputs: [] },
6375
+ {
6376
+ type: "error",
6377
+ name: "InvalidLogSender",
6378
+ inputs: [
6379
+ { name: "sender", type: "address" },
6380
+ { name: "logKey", type: "uint256" }
6381
+ ]
6382
+ },
6383
+ {
6384
+ type: "error",
6385
+ name: "InvalidMessageRoot",
6386
+ inputs: [
6387
+ { name: "expectedMessageRoot", type: "bytes32" },
6388
+ { name: "providedMessageRoot", type: "bytes32" }
6389
+ ]
6390
+ },
6391
+ { type: "error", name: "InvalidNTVBurnData", inputs: [] },
6392
+ {
6393
+ type: "error",
6394
+ name: "InvalidNumberOfBlobs",
6395
+ inputs: [
6396
+ { name: "expected", type: "uint256" },
6397
+ { name: "numCommitments", type: "uint256" },
6398
+ { name: "numHashes", type: "uint256" }
6399
+ ]
6400
+ },
6401
+ {
6402
+ type: "error",
6403
+ name: "InvalidPackedPrecommitmentLength",
6404
+ inputs: [{ name: "length", type: "uint256" }]
6405
+ },
6406
+ { type: "error", name: "InvalidProof", inputs: [] },
6407
+ { type: "error", name: "InvalidProofLengthForFinalNode", inputs: [] },
6408
+ { type: "error", name: "InvalidProtocolVersion", inputs: [] },
6409
+ { type: "error", name: "InvalidPubdataPricingMode", inputs: [] },
6410
+ { type: "error", name: "InvalidSelector", inputs: [{ name: "func", type: "bytes4" }] },
6411
+ { type: "error", name: "InvalidSystemLogsLength", inputs: [] },
6412
+ { type: "error", name: "InvalidUpgradeTxn", inputs: [{ name: "", type: "uint8" }] },
6413
+ { type: "error", name: "L2TimestampTooBig", inputs: [] },
6414
+ {
6415
+ type: "error",
6416
+ name: "L2WithdrawalMessageWrongLength",
6417
+ inputs: [{ name: "messageLen", type: "uint256" }]
6418
+ },
6419
+ { type: "error", name: "LegacyBridgeNotSet", inputs: [] },
6420
+ { type: "error", name: "LegacyBridgeUsesNonNativeToken", inputs: [] },
6421
+ { type: "error", name: "LegacyEncodingUsedForNonL1Token", inputs: [] },
6422
+ { type: "error", name: "LegacyMethodForNonL1Token", inputs: [] },
6423
+ {
6424
+ type: "error",
6425
+ name: "LengthIsNotDivisibleBy32",
6426
+ inputs: [{ name: "length", type: "uint256" }]
6427
+ },
6428
+ { type: "error", name: "LogAlreadyProcessed", inputs: [{ name: "", type: "uint8" }] },
6429
+ { type: "error", name: "MalformedBytecode", inputs: [{ name: "", type: "uint8" }] },
6430
+ { type: "error", name: "MerkleIndexOrHeightMismatch", inputs: [] },
6431
+ { type: "error", name: "MerkleIndexOutOfBounds", inputs: [] },
6432
+ { type: "error", name: "MerkleNothingToProve", inputs: [] },
6433
+ { type: "error", name: "MerklePathEmpty", inputs: [] },
6434
+ {
6435
+ type: "error",
6436
+ name: "MerklePathLengthMismatch",
6437
+ inputs: [
6438
+ { name: "pathLength", type: "uint256" },
6439
+ { name: "expectedLength", type: "uint256" }
6440
+ ]
6441
+ },
6442
+ { type: "error", name: "MerklePathOutOfBounds", inputs: [] },
6443
+ {
6444
+ type: "error",
6445
+ name: "MerkleWrongIndex",
6446
+ inputs: [
6447
+ { name: "index", type: "uint256" },
6448
+ { name: "maxNodeNumber", type: "uint256" }
6449
+ ]
6450
+ },
6451
+ {
6452
+ type: "error",
6453
+ name: "MerkleWrongLength",
6454
+ inputs: [
6455
+ { name: "newLeavesLength", type: "uint256" },
6456
+ { name: "leafNumber", type: "uint256" }
6457
+ ]
6458
+ },
6459
+ { type: "error", name: "MigrationPaused", inputs: [] },
6460
+ { type: "error", name: "MigrationsNotPaused", inputs: [] },
6461
+ {
6462
+ type: "error",
6463
+ name: "MissingSystemLogs",
6464
+ inputs: [
6465
+ { name: "expected", type: "uint256" },
6466
+ { name: "actual", type: "uint256" }
6467
+ ]
6468
+ },
6469
+ {
6470
+ type: "error",
6471
+ name: "MsgValueMismatch",
6472
+ inputs: [
6473
+ { name: "expectedMsgValue", type: "uint256" },
6474
+ { name: "providedMsgValue", type: "uint256" }
6475
+ ]
6476
+ },
6477
+ {
6478
+ type: "error",
6479
+ name: "MsgValueTooLow",
6480
+ inputs: [
6481
+ { name: "required", type: "uint256" },
6482
+ { name: "provided", type: "uint256" }
6483
+ ]
6484
+ },
6485
+ { type: "error", name: "NewDeadlineExceedsMaxDeadline", inputs: [] },
6486
+ { type: "error", name: "NewDeadlineNotGreaterThanCurrent", inputs: [] },
6487
+ { type: "error", name: "NoCallsProvided", inputs: [] },
6488
+ { type: "error", name: "NoCTMForAssetId", inputs: [{ name: "assetId", type: "bytes32" }] },
6489
+ { type: "error", name: "NoFunctionsForDiamondCut", inputs: [] },
6490
+ { type: "error", name: "NoFundsTransferred", inputs: [] },
6491
+ { type: "error", name: "NoLegacySharedBridge", inputs: [] },
6492
+ { type: "error", name: "NonEmptyCalldata", inputs: [] },
6493
+ { type: "error", name: "NonEmptyMsgValue", inputs: [] },
6494
+ { type: "error", name: "NonIncreasingTimestamp", inputs: [] },
6495
+ { type: "error", name: "NonSequentialBatch", inputs: [] },
6496
+ { type: "error", name: "NonSequentialVersion", inputs: [] },
6497
+ { type: "error", name: "NotAllowed", inputs: [{ name: "addr", type: "address" }] },
6498
+ { type: "error", name: "NotARestriction", inputs: [{ name: "addr", type: "address" }] },
6499
+ { type: "error", name: "NotAZKChain", inputs: [{ name: "addr", type: "address" }] },
6500
+ { type: "error", name: "NotInitializedReentrancyGuard", inputs: [] },
6501
+ { type: "error", name: "NotWhitelisted", inputs: [{ name: "", type: "address" }] },
6502
+ { type: "error", name: "OnlyEraSupported", inputs: [] },
6503
+ { type: "error", name: "OnlySelfAllowed", inputs: [] },
6504
+ { type: "error", name: "OperationExists", inputs: [] },
6505
+ { type: "error", name: "OperationMustBePending", inputs: [] },
6506
+ { type: "error", name: "OperationMustBeReady", inputs: [] },
6507
+ { type: "error", name: "OriginChainIdNotFound", inputs: [] },
6508
+ {
6509
+ type: "error",
6510
+ name: "PrecommitmentMismatch",
6511
+ inputs: [
6512
+ { name: "batchNumber", type: "uint256" },
6513
+ { name: "expected", type: "bytes32" },
6514
+ { name: "found", type: "bytes32" }
6515
+ ]
6516
+ },
6517
+ { type: "error", name: "PreviousOperationNotExecuted", inputs: [] },
6518
+ { type: "error", name: "PriorityOperationsRollingHashMismatch", inputs: [] },
6519
+ { type: "error", name: "PriorityTxPubdataExceedsMaxPubDataPerBatch", inputs: [] },
6520
+ {
6521
+ type: "error",
6522
+ name: "ProtocolIdMismatch",
6523
+ inputs: [
6524
+ { name: "expectedProtocolVersion", type: "uint256" },
6525
+ { name: "providedProtocolId", type: "uint256" }
6526
+ ]
6527
+ },
6528
+ { type: "error", name: "ProtocolIdNotGreater", inputs: [] },
6529
+ {
6530
+ type: "error",
6531
+ name: "PubdataGreaterThanLimit",
6532
+ inputs: [
6533
+ { name: "limit", type: "uint256" },
6534
+ { name: "length", type: "uint256" }
6535
+ ]
6536
+ },
6537
+ { type: "error", name: "QueueIsEmpty", inputs: [] },
6538
+ { type: "error", name: "Reentrancy", inputs: [] },
6539
+ {
6540
+ type: "error",
6541
+ name: "RemoveFunctionFacetAddressNotZero",
6542
+ inputs: [{ name: "facet", type: "address" }]
6543
+ },
6544
+ { type: "error", name: "RemoveFunctionFacetAddressZero", inputs: [] },
6545
+ { type: "error", name: "RemovingPermanentRestriction", inputs: [] },
6546
+ { type: "error", name: "ReplaceFunctionFacetAddressZero", inputs: [] },
6547
+ {
6548
+ type: "error",
6549
+ name: "RestrictionWasAlreadyPresent",
6550
+ inputs: [{ name: "restriction", type: "address" }]
6551
+ },
6552
+ {
6553
+ type: "error",
6554
+ name: "RestrictionWasNotPresent",
6555
+ inputs: [{ name: "restriction", type: "address" }]
6556
+ },
6557
+ { type: "error", name: "RevertedBatchNotAfterNewLastBatch", inputs: [] },
6558
+ {
6559
+ type: "error",
6560
+ name: "RoleAccessDenied",
6561
+ inputs: [
6562
+ { name: "chainAddress", type: "address" },
6563
+ { name: "role", type: "bytes32" },
6564
+ { name: "account", type: "address" }
6565
+ ]
6566
+ },
6567
+ { type: "error", name: "SelectorsMustAllHaveSameFreezability", inputs: [] },
6568
+ { type: "error", name: "SettlementLayersMustSettleOnL1", inputs: [] },
6569
+ { type: "error", name: "SharedBridgeNotSet", inputs: [] },
6570
+ { type: "error", name: "SharedBridgeValueNotSet", inputs: [{ name: "", type: "uint8" }] },
6571
+ { type: "error", name: "SlotOccupied", inputs: [] },
6572
+ { type: "error", name: "SystemLogsSizeTooBig", inputs: [] },
6573
+ {
6574
+ type: "error",
6575
+ name: "TimeNotReached",
6576
+ inputs: [
6577
+ { name: "expectedTimestamp", type: "uint256" },
6578
+ { name: "actualTimestamp", type: "uint256" }
6579
+ ]
6580
+ },
6581
+ { type: "error", name: "TimerAlreadyStarted", inputs: [] },
6582
+ { type: "error", name: "TimestampError", inputs: [] },
6583
+ { type: "error", name: "TokenIsLegacy", inputs: [] },
6584
+ { type: "error", name: "TokenNotLegacy", inputs: [] },
6585
+ { type: "error", name: "TokenNotSupported", inputs: [{ name: "token", type: "address" }] },
6586
+ { type: "error", name: "TokensWithFeesNotSupported", inputs: [] },
6587
+ { type: "error", name: "TooHighDeploymentNonce", inputs: [] },
6588
+ { type: "error", name: "TooManyFactoryDeps", inputs: [] },
6589
+ { type: "error", name: "TooMuchGas", inputs: [] },
6590
+ { type: "error", name: "TransactionNotAllowed", inputs: [] },
6591
+ { type: "error", name: "TxHashMismatch", inputs: [] },
6592
+ { type: "error", name: "TxnBodyGasLimitNotEnoughGas", inputs: [] },
6593
+ {
6594
+ type: "error",
6595
+ name: "UnallowedImplementation",
6596
+ inputs: [{ name: "implementationHash", type: "bytes32" }]
6597
+ },
6598
+ { type: "error", name: "Unauthorized", inputs: [{ name: "caller", type: "address" }] },
6599
+ { type: "error", name: "UndefinedDiamondCutAction", inputs: [] },
6600
+ { type: "error", name: "UnexpectedSystemLog", inputs: [{ name: "logKey", type: "uint256" }] },
6601
+ { type: "error", name: "UnknownVerifierType", inputs: [] },
6602
+ {
6603
+ type: "error",
6604
+ name: "UnsupportedCommitBatchEncoding",
6605
+ inputs: [{ name: "version", type: "uint8" }]
6606
+ },
6607
+ { type: "error", name: "UnsupportedEncodingVersion", inputs: [] },
6608
+ {
6609
+ type: "error",
6610
+ name: "UnsupportedExecuteBatchEncoding",
6611
+ inputs: [{ name: "version", type: "uint8" }]
6612
+ },
6613
+ {
6614
+ type: "error",
6615
+ name: "UnsupportedProofBatchEncoding",
6616
+ inputs: [{ name: "version", type: "uint8" }]
6617
+ },
6618
+ { type: "error", name: "UpgradeBatchNumberIsNotZero", inputs: [] },
6619
+ { type: "error", name: "ValidateTxnNotEnoughGas", inputs: [] },
6620
+ {
6621
+ type: "error",
6622
+ name: "ValueMismatch",
6623
+ inputs: [
6624
+ { name: "expected", type: "uint256" },
6625
+ { name: "actual", type: "uint256" }
6626
+ ]
6627
+ },
6628
+ { type: "error", name: "VerifiedBatchesExceedsCommittedBatches", inputs: [] },
6629
+ { type: "error", name: "WithdrawalAlreadyFinalized", inputs: [] },
6630
+ { type: "error", name: "WithdrawFailed", inputs: [] },
6631
+ { type: "error", name: "WrappedBaseTokenAlreadyRegistered", inputs: [] },
6632
+ {
6633
+ type: "error",
6634
+ name: "WrongMagicValue",
6635
+ inputs: [
6636
+ { name: "expectedMagicValue", type: "uint256" },
6637
+ { name: "providedMagicValue", type: "uint256" }
6638
+ ]
6639
+ },
6640
+ { type: "error", name: "ZeroAddress", inputs: [] },
6641
+ { type: "error", name: "ZeroChainId", inputs: [] },
6642
+ { type: "error", name: "ZKChainLimitReached", inputs: [] }
6643
+ ];
6644
+ var IL1ContractErrors_default = IL1ContractErrorsABI;
6645
+
5932
6646
  // src/core/utils/hash.ts
5933
6647
  var RegExpHex = /^0x[0-9a-fA-F]*$/;
5934
6648
  var isHash = (x, length) => {
@@ -6366,4 +7080,4 @@ function shapeCause(err) {
6366
7080
  };
6367
7081
  }
6368
7082
 
6369
- export { IBaseToken_default, IBridgehub_default, IERC20_default, IERC7786Attributes_default, IInteropCenter_default, IInteropHandler_default, IInteropRootStorage_default, IL1AssetRouter_default, IL1Nullifier_default, IL2AssetRouter_default, L1NativeTokenVault_default, L2MessageVerification_default, L2NativeTokenVault_default, Mailbox_default, OP_CLIENT, OP_DEPOSITS, OP_INTEROP, OP_WITHDRAWALS, abi_exports, assertNever, createError, factory_exports, formatEnvelopePretty, hexEq, isAddress, isAddressEq, isBigint, isETH, isHash, isHash66, isHash66Array, isHashArray, isNumber, isReceiptNotFound, isZKsyncError, normalizeAddrEq, normalizeL1Token, shapeCause, sleep };
7083
+ export { IBaseToken_default, IBridgehub_default, IERC20_default, IERC7786Attributes_default, IInteropCenter_default, IInteropErrors_default, IInteropHandler_default, IInteropRootStorage_default, IL1AssetRouter_default, IL1ContractErrors_default, IL1Nullifier_default, IL2AssetRouter_default, L1NativeTokenVault_default, L2MessageVerification_default, L2NativeTokenVault_default, Mailbox_default, OP_CLIENT, OP_DEPOSITS, OP_INTEROP, OP_WITHDRAWALS, abi_exports, assertNever, createError, factory_exports, formatEnvelopePretty, hexEq, isAddress, isAddressEq, isBigint, isETH, isHash, isHash66, isHash66Array, isHashArray, isNumber, isReceiptNotFound, isZKsyncError, normalizeAddrEq, normalizeL1Token, shapeCause, sleep };