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