@matterlabs/zksync-js 0.0.12 → 0.0.14
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.
- package/dist/adapters/ethers/client.cjs +735 -8
- package/dist/adapters/ethers/client.cjs.map +1 -1
- package/dist/adapters/ethers/client.js +7 -6
- package/dist/adapters/ethers/index.cjs +1421 -441
- package/dist/adapters/ethers/index.cjs.map +1 -1
- package/dist/adapters/ethers/index.js +10 -9
- package/dist/adapters/ethers/resources/deposits/routes/priority.d.ts +12 -0
- package/dist/adapters/ethers/resources/deposits/services/gas.d.ts +4 -0
- package/dist/adapters/ethers/resources/interop/index.d.ts +14 -14
- package/dist/adapters/ethers/resources/interop/resolvers.d.ts +3 -8
- package/dist/adapters/ethers/resources/interop/routes/types.d.ts +2 -1
- package/dist/adapters/ethers/resources/interop/services/erc20.d.ts +10 -0
- package/dist/adapters/ethers/resources/interop/services/fee.d.ts +12 -0
- package/dist/adapters/ethers/resources/interop/services/finalization/index.d.ts +1 -1
- package/dist/adapters/ethers/resources/interop/services/finalization/polling.d.ts +1 -1
- package/dist/adapters/ethers/resources/interop/types.d.ts +6 -14
- package/dist/adapters/ethers/sdk.cjs +3068 -1685
- package/dist/adapters/ethers/sdk.cjs.map +1 -1
- package/dist/adapters/ethers/sdk.d.ts +6 -1
- package/dist/adapters/ethers/sdk.js +8 -7
- package/dist/adapters/viem/client.cjs +10 -8
- package/dist/adapters/viem/client.cjs.map +1 -1
- package/dist/adapters/viem/client.js +7 -6
- package/dist/adapters/viem/index.cjs +317 -77
- package/dist/adapters/viem/index.cjs.map +1 -1
- package/dist/adapters/viem/index.js +10 -9
- package/dist/adapters/viem/resources/deposits/routes/priority.d.ts +13 -0
- package/dist/adapters/viem/resources/deposits/services/gas.d.ts +4 -0
- package/dist/adapters/viem/sdk.cjs +307 -69
- package/dist/adapters/viem/sdk.cjs.map +1 -1
- package/dist/adapters/viem/sdk.js +7 -7
- package/dist/{chunk-E3KP7XCG.js → chunk-3HHUZXSV.js} +1 -1
- package/dist/{chunk-4PFO3J7W.js → chunk-5RRJDPAJ.js} +10 -2
- package/dist/{chunk-AUN5Y2A3.js → chunk-75IOOODG.js} +253 -53
- package/dist/{chunk-LWA7LC3N.js → chunk-7CAVFIMW.js} +5 -4
- package/dist/chunk-BWKWWLY4.js +9 -0
- package/dist/{chunk-NBQVHW2N.js → chunk-DYJKK5FW.js} +19 -19
- package/dist/{chunk-I5VQBVQ2.js → chunk-EOBXYHTZ.js} +35 -7
- package/dist/{chunk-GMNLOTNG.js → chunk-HP3EWKJL.js} +1 -1
- package/dist/{chunk-IUSH7YBZ.js → chunk-J47RI3G7.js} +1 -1
- package/dist/{chunk-6CLYCJMV.js → chunk-JY62QO3W.js} +759 -22
- package/dist/{chunk-QQ2OR434.js → chunk-MT4X5FEO.js} +18 -2
- package/dist/{chunk-BGUNJK2H.js → chunk-OTXPSNNC.js} +5 -4
- package/dist/{chunk-TE2YQHVI.js → chunk-XDRCN4FC.js} +2 -2
- package/dist/{chunk-6JM4PE62.js → chunk-XKRNLFET.js} +407 -210
- package/dist/core/abi.d.ts +2 -0
- package/dist/core/constants.cjs +17 -1
- package/dist/core/constants.cjs.map +1 -1
- package/dist/core/constants.d.ts +9 -1
- package/dist/core/constants.js +1 -1
- package/dist/core/index.cjs +768 -28
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.js +6 -5
- package/dist/core/internal/abis/IERC7786Attributes.d.ts +21 -11
- package/dist/core/internal/abis/IInteropCenter.d.ts +4 -0
- package/dist/core/internal/abis/IInteropErrors.d.ts +197 -0
- package/dist/core/internal/abis/IL1ContractErrors.d.ts +1021 -0
- package/dist/core/resources/deposits/priority.d.ts +37 -0
- package/dist/core/resources/interop/attributes/bundle.d.ts +1 -0
- package/dist/core/resources/interop/attributes/resource.d.ts +1 -0
- package/dist/core/resources/interop/plan.d.ts +11 -3
- package/dist/core/rpc/types.d.ts +1 -1
- package/dist/core/rpc/zks.d.ts +5 -1
- package/dist/core/types/errors.d.ts +5 -0
- package/dist/core/types/flows/interop.d.ts +11 -18
- package/dist/index.cjs +785 -29
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -5
- package/package.json +1 -1
|
@@ -238,6 +238,7 @@ function normalizeProof(p) {
|
|
|
238
238
|
const raw = p ?? {};
|
|
239
239
|
const idRaw = raw?.id ?? raw?.index;
|
|
240
240
|
const bnRaw = raw?.batch_number ?? raw?.batchNumber;
|
|
241
|
+
const gwBlockNumberRaw = raw?.gatewayBlockNumber;
|
|
241
242
|
if (idRaw == null || bnRaw == null) {
|
|
242
243
|
throw createError("RPC", {
|
|
243
244
|
resource: "zksrpc",
|
|
@@ -258,7 +259,8 @@ function normalizeProof(p) {
|
|
|
258
259
|
id: toBig(idRaw),
|
|
259
260
|
batchNumber: toBig(bnRaw),
|
|
260
261
|
proof: toHexArray(raw?.proof),
|
|
261
|
-
root: raw.root
|
|
262
|
+
root: raw.root,
|
|
263
|
+
gatewayBlockNumber: gwBlockNumberRaw != null ? toBig(gwBlockNumberRaw) : void 0
|
|
262
264
|
};
|
|
263
265
|
} catch (e) {
|
|
264
266
|
if (isZKsyncError(e)) throw e;
|
|
@@ -281,8 +283,8 @@ function ensureHex(value, field, context) {
|
|
|
281
283
|
});
|
|
282
284
|
}
|
|
283
285
|
function ensureNumber(value, field, opts) {
|
|
284
|
-
const operation = opts?.operation
|
|
285
|
-
const messagePrefix = opts?.messagePrefix
|
|
286
|
+
const operation = opts?.operation;
|
|
287
|
+
const messagePrefix = opts?.messagePrefix;
|
|
286
288
|
if (isNumber(value)) return value;
|
|
287
289
|
if (isBigint(value)) return Number(value);
|
|
288
290
|
if (typeof value === "string" && value.trim() !== "") {
|
|
@@ -420,7 +422,6 @@ function normalizeGenesis(raw) {
|
|
|
420
422
|
context: { valueType: typeof contractsRaw }
|
|
421
423
|
});
|
|
422
424
|
}
|
|
423
|
-
const executionVersion = ensureNumber(record["execution_version"], "execution_version");
|
|
424
425
|
const genesisRoot = ensureHex(record["genesis_root"], "genesis_root", {});
|
|
425
426
|
const initialContracts = contractsRaw.map(
|
|
426
427
|
(entry, index) => normalizeContractTuple(entry, index)
|
|
@@ -429,7 +430,6 @@ function normalizeGenesis(raw) {
|
|
|
429
430
|
return {
|
|
430
431
|
initialContracts,
|
|
431
432
|
additionalStorage,
|
|
432
|
-
executionVersion,
|
|
433
433
|
genesisRoot
|
|
434
434
|
};
|
|
435
435
|
} catch (e) {
|
|
@@ -537,13 +537,15 @@ function createZksRpc(transport) {
|
|
|
537
537
|
);
|
|
538
538
|
},
|
|
539
539
|
// Fetches a proof for an L2→L1 log emitted in the given transaction.
|
|
540
|
-
async getL2ToL1LogProof(txHash, index) {
|
|
540
|
+
async getL2ToL1LogProof(txHash, index, proofTarget) {
|
|
541
541
|
return withRpcOp(
|
|
542
542
|
"zksrpc.getL2ToL1LogProof",
|
|
543
543
|
"Failed to fetch L2\u2192L1 log proof.",
|
|
544
|
-
{ txHash, index },
|
|
544
|
+
{ txHash, index, proofTarget },
|
|
545
545
|
async () => {
|
|
546
|
-
const
|
|
546
|
+
const params = [txHash, index];
|
|
547
|
+
if (proofTarget != void 0) params.push(proofTarget);
|
|
548
|
+
const proof = await transport(METHODS.getL2ToL1LogProof, params);
|
|
547
549
|
if (!proof) {
|
|
548
550
|
throw createError("STATE", {
|
|
549
551
|
resource: "zksrpc",
|
|
@@ -5566,6 +5568,11 @@ var IInteropCenterABI = [
|
|
|
5566
5568
|
type: "uint256",
|
|
5567
5569
|
internalType: "uint256"
|
|
5568
5570
|
},
|
|
5571
|
+
{
|
|
5572
|
+
name: "destinationBaseTokenAssetId",
|
|
5573
|
+
type: "bytes32",
|
|
5574
|
+
internalType: "bytes32"
|
|
5575
|
+
},
|
|
5569
5576
|
{
|
|
5570
5577
|
name: "interopBundleSalt",
|
|
5571
5578
|
type: "bytes32",
|
|
@@ -6410,6 +6417,718 @@ var L2MessageVerificationABI = [
|
|
|
6410
6417
|
];
|
|
6411
6418
|
var L2MessageVerification_default = L2MessageVerificationABI;
|
|
6412
6419
|
|
|
6420
|
+
// src/core/internal/abis/IInteropErrors.ts
|
|
6421
|
+
var IInteropErrorsABI = [
|
|
6422
|
+
{
|
|
6423
|
+
type: "error",
|
|
6424
|
+
name: "AttributeAlreadySet",
|
|
6425
|
+
inputs: [
|
|
6426
|
+
{
|
|
6427
|
+
name: "selector",
|
|
6428
|
+
type: "bytes4"
|
|
6429
|
+
}
|
|
6430
|
+
]
|
|
6431
|
+
},
|
|
6432
|
+
{
|
|
6433
|
+
type: "error",
|
|
6434
|
+
name: "AttributeViolatesRestriction",
|
|
6435
|
+
inputs: [
|
|
6436
|
+
{
|
|
6437
|
+
name: "selector",
|
|
6438
|
+
type: "bytes4"
|
|
6439
|
+
},
|
|
6440
|
+
{
|
|
6441
|
+
name: "restriction",
|
|
6442
|
+
type: "uint256"
|
|
6443
|
+
}
|
|
6444
|
+
]
|
|
6445
|
+
},
|
|
6446
|
+
{
|
|
6447
|
+
type: "error",
|
|
6448
|
+
name: "BundleAlreadyProcessed",
|
|
6449
|
+
inputs: [
|
|
6450
|
+
{
|
|
6451
|
+
name: "bundleHash",
|
|
6452
|
+
type: "bytes32"
|
|
6453
|
+
}
|
|
6454
|
+
]
|
|
6455
|
+
},
|
|
6456
|
+
{
|
|
6457
|
+
type: "error",
|
|
6458
|
+
name: "CallAlreadyExecuted",
|
|
6459
|
+
inputs: [
|
|
6460
|
+
{
|
|
6461
|
+
name: "bundleHash",
|
|
6462
|
+
type: "bytes32"
|
|
6463
|
+
},
|
|
6464
|
+
{
|
|
6465
|
+
name: "callIndex",
|
|
6466
|
+
type: "uint256"
|
|
6467
|
+
}
|
|
6468
|
+
]
|
|
6469
|
+
},
|
|
6470
|
+
{
|
|
6471
|
+
type: "error",
|
|
6472
|
+
name: "CallNotExecutable",
|
|
6473
|
+
inputs: [
|
|
6474
|
+
{
|
|
6475
|
+
name: "bundleHash",
|
|
6476
|
+
type: "bytes32"
|
|
6477
|
+
},
|
|
6478
|
+
{
|
|
6479
|
+
name: "callIndex",
|
|
6480
|
+
type: "uint256"
|
|
6481
|
+
}
|
|
6482
|
+
]
|
|
6483
|
+
},
|
|
6484
|
+
{
|
|
6485
|
+
type: "error",
|
|
6486
|
+
name: "CanNotUnbundle",
|
|
6487
|
+
inputs: [
|
|
6488
|
+
{
|
|
6489
|
+
name: "bundleHash",
|
|
6490
|
+
type: "bytes32"
|
|
6491
|
+
}
|
|
6492
|
+
]
|
|
6493
|
+
},
|
|
6494
|
+
{
|
|
6495
|
+
type: "error",
|
|
6496
|
+
name: "DestinationChainNotRegistered",
|
|
6497
|
+
inputs: [
|
|
6498
|
+
{
|
|
6499
|
+
name: "destinationChainId",
|
|
6500
|
+
type: "uint256"
|
|
6501
|
+
}
|
|
6502
|
+
]
|
|
6503
|
+
},
|
|
6504
|
+
{
|
|
6505
|
+
type: "error",
|
|
6506
|
+
name: "ExecutingNotAllowed",
|
|
6507
|
+
inputs: [
|
|
6508
|
+
{
|
|
6509
|
+
name: "bundleHash",
|
|
6510
|
+
type: "bytes32"
|
|
6511
|
+
},
|
|
6512
|
+
{
|
|
6513
|
+
name: "callerAddress",
|
|
6514
|
+
type: "bytes"
|
|
6515
|
+
},
|
|
6516
|
+
{
|
|
6517
|
+
name: "executionAddress",
|
|
6518
|
+
type: "bytes"
|
|
6519
|
+
}
|
|
6520
|
+
]
|
|
6521
|
+
},
|
|
6522
|
+
{
|
|
6523
|
+
type: "error",
|
|
6524
|
+
name: "FeeWithdrawalFailed",
|
|
6525
|
+
inputs: []
|
|
6526
|
+
},
|
|
6527
|
+
{
|
|
6528
|
+
type: "error",
|
|
6529
|
+
name: "IndirectCallValueMismatch",
|
|
6530
|
+
inputs: [
|
|
6531
|
+
{
|
|
6532
|
+
name: "expected",
|
|
6533
|
+
type: "uint256"
|
|
6534
|
+
},
|
|
6535
|
+
{
|
|
6536
|
+
name: "actual",
|
|
6537
|
+
type: "uint256"
|
|
6538
|
+
}
|
|
6539
|
+
]
|
|
6540
|
+
},
|
|
6541
|
+
{
|
|
6542
|
+
type: "error",
|
|
6543
|
+
name: "InteroperableAddressChainReferenceNotEmpty",
|
|
6544
|
+
inputs: [
|
|
6545
|
+
{
|
|
6546
|
+
name: "interoperableAddress",
|
|
6547
|
+
type: "bytes"
|
|
6548
|
+
}
|
|
6549
|
+
]
|
|
6550
|
+
},
|
|
6551
|
+
{
|
|
6552
|
+
type: "error",
|
|
6553
|
+
name: "InteroperableAddressNotEmpty",
|
|
6554
|
+
inputs: [
|
|
6555
|
+
{
|
|
6556
|
+
name: "interoperableAddress",
|
|
6557
|
+
type: "bytes"
|
|
6558
|
+
}
|
|
6559
|
+
]
|
|
6560
|
+
},
|
|
6561
|
+
{
|
|
6562
|
+
type: "error",
|
|
6563
|
+
name: "InvalidInteropBundleVersion",
|
|
6564
|
+
inputs: []
|
|
6565
|
+
},
|
|
6566
|
+
{
|
|
6567
|
+
type: "error",
|
|
6568
|
+
name: "InvalidInteropCallVersion",
|
|
6569
|
+
inputs: []
|
|
6570
|
+
},
|
|
6571
|
+
{
|
|
6572
|
+
type: "error",
|
|
6573
|
+
name: "InteropRootAlreadyExists",
|
|
6574
|
+
inputs: []
|
|
6575
|
+
},
|
|
6576
|
+
{
|
|
6577
|
+
type: "error",
|
|
6578
|
+
name: "MessageNotIncluded",
|
|
6579
|
+
inputs: []
|
|
6580
|
+
},
|
|
6581
|
+
{
|
|
6582
|
+
type: "error",
|
|
6583
|
+
name: "SidesLengthNotOne",
|
|
6584
|
+
inputs: []
|
|
6585
|
+
},
|
|
6586
|
+
{
|
|
6587
|
+
type: "error",
|
|
6588
|
+
name: "UnauthorizedMessageSender",
|
|
6589
|
+
inputs: [
|
|
6590
|
+
{
|
|
6591
|
+
name: "expected",
|
|
6592
|
+
type: "address"
|
|
6593
|
+
},
|
|
6594
|
+
{
|
|
6595
|
+
name: "actual",
|
|
6596
|
+
type: "address"
|
|
6597
|
+
}
|
|
6598
|
+
]
|
|
6599
|
+
},
|
|
6600
|
+
{
|
|
6601
|
+
type: "error",
|
|
6602
|
+
name: "UnbundlingNotAllowed",
|
|
6603
|
+
inputs: [
|
|
6604
|
+
{
|
|
6605
|
+
name: "bundleHash",
|
|
6606
|
+
type: "bytes32"
|
|
6607
|
+
},
|
|
6608
|
+
{
|
|
6609
|
+
name: "callerAddress",
|
|
6610
|
+
type: "bytes"
|
|
6611
|
+
},
|
|
6612
|
+
{
|
|
6613
|
+
name: "unbundlerAddress",
|
|
6614
|
+
type: "bytes"
|
|
6615
|
+
}
|
|
6616
|
+
]
|
|
6617
|
+
},
|
|
6618
|
+
{
|
|
6619
|
+
type: "error",
|
|
6620
|
+
name: "WrongCallStatusLength",
|
|
6621
|
+
inputs: [
|
|
6622
|
+
{
|
|
6623
|
+
name: "bundleCallsLength",
|
|
6624
|
+
type: "uint256"
|
|
6625
|
+
},
|
|
6626
|
+
{
|
|
6627
|
+
name: "providedCallStatusLength",
|
|
6628
|
+
type: "uint256"
|
|
6629
|
+
}
|
|
6630
|
+
]
|
|
6631
|
+
},
|
|
6632
|
+
{
|
|
6633
|
+
type: "error",
|
|
6634
|
+
name: "WrongDestinationChainId",
|
|
6635
|
+
inputs: [
|
|
6636
|
+
{
|
|
6637
|
+
name: "bundleHash",
|
|
6638
|
+
type: "bytes32"
|
|
6639
|
+
},
|
|
6640
|
+
{
|
|
6641
|
+
name: "expected",
|
|
6642
|
+
type: "uint256"
|
|
6643
|
+
},
|
|
6644
|
+
{
|
|
6645
|
+
name: "actual",
|
|
6646
|
+
type: "uint256"
|
|
6647
|
+
}
|
|
6648
|
+
]
|
|
6649
|
+
},
|
|
6650
|
+
{
|
|
6651
|
+
type: "error",
|
|
6652
|
+
name: "WrongDestinationBaseTokenAssetId",
|
|
6653
|
+
inputs: [
|
|
6654
|
+
{
|
|
6655
|
+
name: "bundleHash",
|
|
6656
|
+
type: "bytes32"
|
|
6657
|
+
},
|
|
6658
|
+
{
|
|
6659
|
+
name: "expected",
|
|
6660
|
+
type: "bytes32"
|
|
6661
|
+
},
|
|
6662
|
+
{
|
|
6663
|
+
name: "actual",
|
|
6664
|
+
type: "bytes32"
|
|
6665
|
+
}
|
|
6666
|
+
]
|
|
6667
|
+
},
|
|
6668
|
+
{
|
|
6669
|
+
type: "error",
|
|
6670
|
+
name: "WrongSourceChainId",
|
|
6671
|
+
inputs: [
|
|
6672
|
+
{
|
|
6673
|
+
name: "bundleHash",
|
|
6674
|
+
type: "bytes32"
|
|
6675
|
+
},
|
|
6676
|
+
{
|
|
6677
|
+
name: "expected",
|
|
6678
|
+
type: "uint256"
|
|
6679
|
+
},
|
|
6680
|
+
{
|
|
6681
|
+
name: "actual",
|
|
6682
|
+
type: "uint256"
|
|
6683
|
+
}
|
|
6684
|
+
]
|
|
6685
|
+
},
|
|
6686
|
+
{
|
|
6687
|
+
type: "error",
|
|
6688
|
+
name: "ZKTokenNotAvailable",
|
|
6689
|
+
inputs: []
|
|
6690
|
+
}
|
|
6691
|
+
];
|
|
6692
|
+
var IInteropErrors_default = IInteropErrorsABI;
|
|
6693
|
+
|
|
6694
|
+
// src/core/internal/abis/IL1ContractErrors.ts
|
|
6695
|
+
var IL1ContractErrorsABI = [
|
|
6696
|
+
{
|
|
6697
|
+
type: "error",
|
|
6698
|
+
name: "AccessToFallbackDenied",
|
|
6699
|
+
inputs: [
|
|
6700
|
+
{ name: "target", type: "address" },
|
|
6701
|
+
{ name: "invoker", type: "address" }
|
|
6702
|
+
]
|
|
6703
|
+
},
|
|
6704
|
+
{
|
|
6705
|
+
type: "error",
|
|
6706
|
+
name: "AccessToFunctionDenied",
|
|
6707
|
+
inputs: [
|
|
6708
|
+
{ name: "target", type: "address" },
|
|
6709
|
+
{ name: "selector", type: "bytes4" },
|
|
6710
|
+
{ name: "invoker", type: "address" }
|
|
6711
|
+
]
|
|
6712
|
+
},
|
|
6713
|
+
{ type: "error", name: "AddressAlreadySet", inputs: [{ name: "addr", type: "address" }] },
|
|
6714
|
+
{ type: "error", name: "AddressHasNoCode", inputs: [{ name: "", type: "address" }] },
|
|
6715
|
+
{
|
|
6716
|
+
type: "error",
|
|
6717
|
+
name: "AddressMismatch",
|
|
6718
|
+
inputs: [
|
|
6719
|
+
{ name: "expected", type: "address" },
|
|
6720
|
+
{ name: "supplied", type: "address" }
|
|
6721
|
+
]
|
|
6722
|
+
},
|
|
6723
|
+
{ type: "error", name: "AlreadyPermanentRollup", inputs: [] },
|
|
6724
|
+
{ type: "error", name: "AlreadyWhitelisted", inputs: [{ name: "", type: "address" }] },
|
|
6725
|
+
{ type: "error", name: "AmountMustBeGreaterThanZero", inputs: [] },
|
|
6726
|
+
{
|
|
6727
|
+
type: "error",
|
|
6728
|
+
name: "AssetHandlerDoesNotExist",
|
|
6729
|
+
inputs: [{ name: "assetId", type: "bytes32" }]
|
|
6730
|
+
},
|
|
6731
|
+
{
|
|
6732
|
+
type: "error",
|
|
6733
|
+
name: "AssetHandlerNotRegistered",
|
|
6734
|
+
inputs: [{ name: "assetId", type: "bytes32" }]
|
|
6735
|
+
},
|
|
6736
|
+
{ type: "error", name: "AssetIdAlreadyRegistered", inputs: [] },
|
|
6737
|
+
{
|
|
6738
|
+
type: "error",
|
|
6739
|
+
name: "AssetIdMismatch",
|
|
6740
|
+
inputs: [
|
|
6741
|
+
{ name: "expected", type: "bytes32" },
|
|
6742
|
+
{ name: "supplied", type: "bytes32" }
|
|
6743
|
+
]
|
|
6744
|
+
},
|
|
6745
|
+
{ type: "error", name: "AssetIdNotSupported", inputs: [{ name: "assetId", type: "bytes32" }] },
|
|
6746
|
+
{ type: "error", name: "AssetRouterAllowanceNotZero", inputs: [] },
|
|
6747
|
+
{ type: "error", name: "BaseTokenGasPriceDenominatorNotSet", inputs: [] },
|
|
6748
|
+
{
|
|
6749
|
+
type: "error",
|
|
6750
|
+
name: "BatchHashMismatch",
|
|
6751
|
+
inputs: [
|
|
6752
|
+
{ name: "expected", type: "bytes32" },
|
|
6753
|
+
{ name: "actual", type: "bytes32" }
|
|
6754
|
+
]
|
|
6755
|
+
},
|
|
6756
|
+
{ type: "error", name: "BatchNotExecuted", inputs: [{ name: "batchNumber", type: "uint256" }] },
|
|
6757
|
+
{
|
|
6758
|
+
type: "error",
|
|
6759
|
+
name: "BatchNumberMismatch",
|
|
6760
|
+
inputs: [
|
|
6761
|
+
{ name: "expectedBatchNumber", type: "uint256" },
|
|
6762
|
+
{ name: "providedBatchNumber", type: "uint256" }
|
|
6763
|
+
]
|
|
6764
|
+
},
|
|
6765
|
+
{ type: "error", name: "BridgeHubAlreadyRegistered", inputs: [] },
|
|
6766
|
+
{ type: "error", name: "BridgeMintNotImplemented", inputs: [] },
|
|
6767
|
+
{ type: "error", name: "BurningNativeWETHNotSupported", inputs: [] },
|
|
6768
|
+
{
|
|
6769
|
+
type: "error",
|
|
6770
|
+
name: "BytecodeAlreadyPublished",
|
|
6771
|
+
inputs: [{ name: "bytecodeHash", type: "bytes32" }]
|
|
6772
|
+
},
|
|
6773
|
+
{ type: "error", name: "CallerNotTimerAdmin", inputs: [] },
|
|
6774
|
+
{ type: "error", name: "CallNotAllowed", inputs: [{ name: "call", type: "bytes" }] },
|
|
6775
|
+
{ type: "error", name: "CanOnlyProcessOneBatch", inputs: [] },
|
|
6776
|
+
{ type: "error", name: "CantExecuteUnprovenBatches", inputs: [] },
|
|
6777
|
+
{ type: "error", name: "CantRevertExecutedBatch", inputs: [] },
|
|
6778
|
+
{ type: "error", name: "ChainAlreadyLive", inputs: [] },
|
|
6779
|
+
{ type: "error", name: "ChainIdAlreadyExists", inputs: [] },
|
|
6780
|
+
{ type: "error", name: "ChainIdCantBeCurrentChain", inputs: [] },
|
|
6781
|
+
{ type: "error", name: "ChainIdMismatch", inputs: [] },
|
|
6782
|
+
{ type: "error", name: "ChainIdNotRegistered", inputs: [{ name: "chainId", type: "uint256" }] },
|
|
6783
|
+
{ type: "error", name: "ChainIdTooBig", inputs: [] },
|
|
6784
|
+
{ type: "error", name: "CTMAlreadyRegistered", inputs: [] },
|
|
6785
|
+
{ type: "error", name: "CTMNotRegistered", inputs: [] },
|
|
6786
|
+
{ type: "error", name: "DeadlineNotYetPassed", inputs: [] },
|
|
6787
|
+
{ type: "error", name: "DefaultAdminTransferNotAllowed", inputs: [] },
|
|
6788
|
+
{ type: "error", name: "DelegateCallFailed", inputs: [{ name: "returnData", type: "bytes" }] },
|
|
6789
|
+
{ type: "error", name: "DenominatorIsZero", inputs: [] },
|
|
6790
|
+
{ type: "error", name: "DeployFailed", inputs: [] },
|
|
6791
|
+
{ type: "error", name: "DeployingBridgedTokenForNativeToken", inputs: [] },
|
|
6792
|
+
{ type: "error", name: "DepositDoesNotExist", inputs: [] },
|
|
6793
|
+
{ type: "error", name: "DepositExists", inputs: [] },
|
|
6794
|
+
{ type: "error", name: "DiamondAlreadyFrozen", inputs: [] },
|
|
6795
|
+
{ type: "error", name: "DiamondNotFrozen", inputs: [] },
|
|
6796
|
+
{ type: "error", name: "EmptyAddress", inputs: [] },
|
|
6797
|
+
{ type: "error", name: "EmptyAssetId", inputs: [] },
|
|
6798
|
+
{ type: "error", name: "EmptyBytes32", inputs: [] },
|
|
6799
|
+
{ type: "error", name: "EmptyData", inputs: [] },
|
|
6800
|
+
{ type: "error", name: "EmptyDeposit", inputs: [] },
|
|
6801
|
+
{ type: "error", name: "EmptyPrecommitData", inputs: [{ name: "batchNumber", type: "uint256" }] },
|
|
6802
|
+
{ type: "error", name: "EmptyProofLength", inputs: [] },
|
|
6803
|
+
{ type: "error", name: "ETHDepositNotSupported", inputs: [] },
|
|
6804
|
+
{
|
|
6805
|
+
type: "error",
|
|
6806
|
+
name: "FacetExists",
|
|
6807
|
+
inputs: [
|
|
6808
|
+
{ name: "selector", type: "bytes4" },
|
|
6809
|
+
{ name: "", type: "address" }
|
|
6810
|
+
]
|
|
6811
|
+
},
|
|
6812
|
+
{ type: "error", name: "GasPerPubdataMismatch", inputs: [] },
|
|
6813
|
+
{ type: "error", name: "GenesisBatchCommitmentZero", inputs: [] },
|
|
6814
|
+
{ type: "error", name: "GenesisBatchHashZero", inputs: [] },
|
|
6815
|
+
{ type: "error", name: "GenesisIndexStorageZero", inputs: [] },
|
|
6816
|
+
{ type: "error", name: "GenesisUpgradeZero", inputs: [] },
|
|
6817
|
+
{ type: "error", name: "HashedLogIsDefault", inputs: [] },
|
|
6818
|
+
{
|
|
6819
|
+
type: "error",
|
|
6820
|
+
name: "HashMismatch",
|
|
6821
|
+
inputs: [
|
|
6822
|
+
{ name: "expected", type: "bytes32" },
|
|
6823
|
+
{ name: "actual", type: "bytes32" }
|
|
6824
|
+
]
|
|
6825
|
+
},
|
|
6826
|
+
{
|
|
6827
|
+
type: "error",
|
|
6828
|
+
name: "IncorrectBatchBounds",
|
|
6829
|
+
inputs: [
|
|
6830
|
+
{ name: "processFromExpected", type: "uint256" },
|
|
6831
|
+
{ name: "processToExpected", type: "uint256" },
|
|
6832
|
+
{ name: "processFromProvided", type: "uint256" },
|
|
6833
|
+
{ name: "processToProvided", type: "uint256" }
|
|
6834
|
+
]
|
|
6835
|
+
},
|
|
6836
|
+
{
|
|
6837
|
+
type: "error",
|
|
6838
|
+
name: "IncorrectBridgeHubAddress",
|
|
6839
|
+
inputs: [{ name: "bridgehub", type: "address" }]
|
|
6840
|
+
},
|
|
6841
|
+
{
|
|
6842
|
+
type: "error",
|
|
6843
|
+
name: "IncorrectTokenAddressFromNTV",
|
|
6844
|
+
inputs: [
|
|
6845
|
+
{ name: "assetId", type: "bytes32" },
|
|
6846
|
+
{ name: "tokenAddress", type: "address" }
|
|
6847
|
+
]
|
|
6848
|
+
},
|
|
6849
|
+
{ type: "error", name: "InsufficientChainBalance", inputs: [] },
|
|
6850
|
+
{
|
|
6851
|
+
type: "error",
|
|
6852
|
+
name: "InvalidBatchNumber",
|
|
6853
|
+
inputs: [
|
|
6854
|
+
{ name: "provided", type: "uint256" },
|
|
6855
|
+
{ name: "expected", type: "uint256" }
|
|
6856
|
+
]
|
|
6857
|
+
},
|
|
6858
|
+
{ type: "error", name: "InvalidCaller", inputs: [{ name: "", type: "address" }] },
|
|
6859
|
+
{ type: "error", name: "InvalidDAForPermanentRollup", inputs: [] },
|
|
6860
|
+
{ type: "error", name: "InvalidDelay", inputs: [] },
|
|
6861
|
+
{
|
|
6862
|
+
type: "error",
|
|
6863
|
+
name: "InvalidLogSender",
|
|
6864
|
+
inputs: [
|
|
6865
|
+
{ name: "sender", type: "address" },
|
|
6866
|
+
{ name: "logKey", type: "uint256" }
|
|
6867
|
+
]
|
|
6868
|
+
},
|
|
6869
|
+
{
|
|
6870
|
+
type: "error",
|
|
6871
|
+
name: "InvalidMessageRoot",
|
|
6872
|
+
inputs: [
|
|
6873
|
+
{ name: "expectedMessageRoot", type: "bytes32" },
|
|
6874
|
+
{ name: "providedMessageRoot", type: "bytes32" }
|
|
6875
|
+
]
|
|
6876
|
+
},
|
|
6877
|
+
{ type: "error", name: "InvalidNTVBurnData", inputs: [] },
|
|
6878
|
+
{
|
|
6879
|
+
type: "error",
|
|
6880
|
+
name: "InvalidNumberOfBlobs",
|
|
6881
|
+
inputs: [
|
|
6882
|
+
{ name: "expected", type: "uint256" },
|
|
6883
|
+
{ name: "numCommitments", type: "uint256" },
|
|
6884
|
+
{ name: "numHashes", type: "uint256" }
|
|
6885
|
+
]
|
|
6886
|
+
},
|
|
6887
|
+
{
|
|
6888
|
+
type: "error",
|
|
6889
|
+
name: "InvalidPackedPrecommitmentLength",
|
|
6890
|
+
inputs: [{ name: "length", type: "uint256" }]
|
|
6891
|
+
},
|
|
6892
|
+
{ type: "error", name: "InvalidProof", inputs: [] },
|
|
6893
|
+
{ type: "error", name: "InvalidProofLengthForFinalNode", inputs: [] },
|
|
6894
|
+
{ type: "error", name: "InvalidProtocolVersion", inputs: [] },
|
|
6895
|
+
{ type: "error", name: "InvalidPubdataPricingMode", inputs: [] },
|
|
6896
|
+
{ type: "error", name: "InvalidSelector", inputs: [{ name: "func", type: "bytes4" }] },
|
|
6897
|
+
{ type: "error", name: "InvalidSystemLogsLength", inputs: [] },
|
|
6898
|
+
{ type: "error", name: "InvalidUpgradeTxn", inputs: [{ name: "", type: "uint8" }] },
|
|
6899
|
+
{ type: "error", name: "L2TimestampTooBig", inputs: [] },
|
|
6900
|
+
{
|
|
6901
|
+
type: "error",
|
|
6902
|
+
name: "L2WithdrawalMessageWrongLength",
|
|
6903
|
+
inputs: [{ name: "messageLen", type: "uint256" }]
|
|
6904
|
+
},
|
|
6905
|
+
{ type: "error", name: "LegacyBridgeNotSet", inputs: [] },
|
|
6906
|
+
{ type: "error", name: "LegacyBridgeUsesNonNativeToken", inputs: [] },
|
|
6907
|
+
{ type: "error", name: "LegacyEncodingUsedForNonL1Token", inputs: [] },
|
|
6908
|
+
{ type: "error", name: "LegacyMethodForNonL1Token", inputs: [] },
|
|
6909
|
+
{
|
|
6910
|
+
type: "error",
|
|
6911
|
+
name: "LengthIsNotDivisibleBy32",
|
|
6912
|
+
inputs: [{ name: "length", type: "uint256" }]
|
|
6913
|
+
},
|
|
6914
|
+
{ type: "error", name: "LogAlreadyProcessed", inputs: [{ name: "", type: "uint8" }] },
|
|
6915
|
+
{ type: "error", name: "MalformedBytecode", inputs: [{ name: "", type: "uint8" }] },
|
|
6916
|
+
{ type: "error", name: "MerkleIndexOrHeightMismatch", inputs: [] },
|
|
6917
|
+
{ type: "error", name: "MerkleIndexOutOfBounds", inputs: [] },
|
|
6918
|
+
{ type: "error", name: "MerkleNothingToProve", inputs: [] },
|
|
6919
|
+
{ type: "error", name: "MerklePathEmpty", inputs: [] },
|
|
6920
|
+
{
|
|
6921
|
+
type: "error",
|
|
6922
|
+
name: "MerklePathLengthMismatch",
|
|
6923
|
+
inputs: [
|
|
6924
|
+
{ name: "pathLength", type: "uint256" },
|
|
6925
|
+
{ name: "expectedLength", type: "uint256" }
|
|
6926
|
+
]
|
|
6927
|
+
},
|
|
6928
|
+
{ type: "error", name: "MerklePathOutOfBounds", inputs: [] },
|
|
6929
|
+
{
|
|
6930
|
+
type: "error",
|
|
6931
|
+
name: "MerkleWrongIndex",
|
|
6932
|
+
inputs: [
|
|
6933
|
+
{ name: "index", type: "uint256" },
|
|
6934
|
+
{ name: "maxNodeNumber", type: "uint256" }
|
|
6935
|
+
]
|
|
6936
|
+
},
|
|
6937
|
+
{
|
|
6938
|
+
type: "error",
|
|
6939
|
+
name: "MerkleWrongLength",
|
|
6940
|
+
inputs: [
|
|
6941
|
+
{ name: "newLeavesLength", type: "uint256" },
|
|
6942
|
+
{ name: "leafNumber", type: "uint256" }
|
|
6943
|
+
]
|
|
6944
|
+
},
|
|
6945
|
+
{ type: "error", name: "MigrationPaused", inputs: [] },
|
|
6946
|
+
{ type: "error", name: "MigrationsNotPaused", inputs: [] },
|
|
6947
|
+
{
|
|
6948
|
+
type: "error",
|
|
6949
|
+
name: "MissingSystemLogs",
|
|
6950
|
+
inputs: [
|
|
6951
|
+
{ name: "expected", type: "uint256" },
|
|
6952
|
+
{ name: "actual", type: "uint256" }
|
|
6953
|
+
]
|
|
6954
|
+
},
|
|
6955
|
+
{
|
|
6956
|
+
type: "error",
|
|
6957
|
+
name: "MsgValueMismatch",
|
|
6958
|
+
inputs: [
|
|
6959
|
+
{ name: "expectedMsgValue", type: "uint256" },
|
|
6960
|
+
{ name: "providedMsgValue", type: "uint256" }
|
|
6961
|
+
]
|
|
6962
|
+
},
|
|
6963
|
+
{
|
|
6964
|
+
type: "error",
|
|
6965
|
+
name: "MsgValueTooLow",
|
|
6966
|
+
inputs: [
|
|
6967
|
+
{ name: "required", type: "uint256" },
|
|
6968
|
+
{ name: "provided", type: "uint256" }
|
|
6969
|
+
]
|
|
6970
|
+
},
|
|
6971
|
+
{ type: "error", name: "NewDeadlineExceedsMaxDeadline", inputs: [] },
|
|
6972
|
+
{ type: "error", name: "NewDeadlineNotGreaterThanCurrent", inputs: [] },
|
|
6973
|
+
{ type: "error", name: "NoCallsProvided", inputs: [] },
|
|
6974
|
+
{ type: "error", name: "NoCTMForAssetId", inputs: [{ name: "assetId", type: "bytes32" }] },
|
|
6975
|
+
{ type: "error", name: "NoFunctionsForDiamondCut", inputs: [] },
|
|
6976
|
+
{ type: "error", name: "NoFundsTransferred", inputs: [] },
|
|
6977
|
+
{ type: "error", name: "NoLegacySharedBridge", inputs: [] },
|
|
6978
|
+
{ type: "error", name: "NonEmptyCalldata", inputs: [] },
|
|
6979
|
+
{ type: "error", name: "NonEmptyMsgValue", inputs: [] },
|
|
6980
|
+
{ type: "error", name: "NonIncreasingTimestamp", inputs: [] },
|
|
6981
|
+
{ type: "error", name: "NonSequentialBatch", inputs: [] },
|
|
6982
|
+
{ type: "error", name: "NonSequentialVersion", inputs: [] },
|
|
6983
|
+
{ type: "error", name: "NotAllowed", inputs: [{ name: "addr", type: "address" }] },
|
|
6984
|
+
{ type: "error", name: "NotARestriction", inputs: [{ name: "addr", type: "address" }] },
|
|
6985
|
+
{ type: "error", name: "NotAZKChain", inputs: [{ name: "addr", type: "address" }] },
|
|
6986
|
+
{ type: "error", name: "NotInitializedReentrancyGuard", inputs: [] },
|
|
6987
|
+
{ type: "error", name: "NotWhitelisted", inputs: [{ name: "", type: "address" }] },
|
|
6988
|
+
{ type: "error", name: "OnlyEraSupported", inputs: [] },
|
|
6989
|
+
{ type: "error", name: "OnlySelfAllowed", inputs: [] },
|
|
6990
|
+
{ type: "error", name: "OperationExists", inputs: [] },
|
|
6991
|
+
{ type: "error", name: "OperationMustBePending", inputs: [] },
|
|
6992
|
+
{ type: "error", name: "OperationMustBeReady", inputs: [] },
|
|
6993
|
+
{ type: "error", name: "OriginChainIdNotFound", inputs: [] },
|
|
6994
|
+
{
|
|
6995
|
+
type: "error",
|
|
6996
|
+
name: "PrecommitmentMismatch",
|
|
6997
|
+
inputs: [
|
|
6998
|
+
{ name: "batchNumber", type: "uint256" },
|
|
6999
|
+
{ name: "expected", type: "bytes32" },
|
|
7000
|
+
{ name: "found", type: "bytes32" }
|
|
7001
|
+
]
|
|
7002
|
+
},
|
|
7003
|
+
{ type: "error", name: "PreviousOperationNotExecuted", inputs: [] },
|
|
7004
|
+
{ type: "error", name: "PriorityOperationsRollingHashMismatch", inputs: [] },
|
|
7005
|
+
{ type: "error", name: "PriorityTxPubdataExceedsMaxPubDataPerBatch", inputs: [] },
|
|
7006
|
+
{
|
|
7007
|
+
type: "error",
|
|
7008
|
+
name: "ProtocolIdMismatch",
|
|
7009
|
+
inputs: [
|
|
7010
|
+
{ name: "expectedProtocolVersion", type: "uint256" },
|
|
7011
|
+
{ name: "providedProtocolId", type: "uint256" }
|
|
7012
|
+
]
|
|
7013
|
+
},
|
|
7014
|
+
{ type: "error", name: "ProtocolIdNotGreater", inputs: [] },
|
|
7015
|
+
{
|
|
7016
|
+
type: "error",
|
|
7017
|
+
name: "PubdataGreaterThanLimit",
|
|
7018
|
+
inputs: [
|
|
7019
|
+
{ name: "limit", type: "uint256" },
|
|
7020
|
+
{ name: "length", type: "uint256" }
|
|
7021
|
+
]
|
|
7022
|
+
},
|
|
7023
|
+
{ type: "error", name: "QueueIsEmpty", inputs: [] },
|
|
7024
|
+
{ type: "error", name: "Reentrancy", inputs: [] },
|
|
7025
|
+
{
|
|
7026
|
+
type: "error",
|
|
7027
|
+
name: "RemoveFunctionFacetAddressNotZero",
|
|
7028
|
+
inputs: [{ name: "facet", type: "address" }]
|
|
7029
|
+
},
|
|
7030
|
+
{ type: "error", name: "RemoveFunctionFacetAddressZero", inputs: [] },
|
|
7031
|
+
{ type: "error", name: "RemovingPermanentRestriction", inputs: [] },
|
|
7032
|
+
{ type: "error", name: "ReplaceFunctionFacetAddressZero", inputs: [] },
|
|
7033
|
+
{
|
|
7034
|
+
type: "error",
|
|
7035
|
+
name: "RestrictionWasAlreadyPresent",
|
|
7036
|
+
inputs: [{ name: "restriction", type: "address" }]
|
|
7037
|
+
},
|
|
7038
|
+
{
|
|
7039
|
+
type: "error",
|
|
7040
|
+
name: "RestrictionWasNotPresent",
|
|
7041
|
+
inputs: [{ name: "restriction", type: "address" }]
|
|
7042
|
+
},
|
|
7043
|
+
{ type: "error", name: "RevertedBatchNotAfterNewLastBatch", inputs: [] },
|
|
7044
|
+
{
|
|
7045
|
+
type: "error",
|
|
7046
|
+
name: "RoleAccessDenied",
|
|
7047
|
+
inputs: [
|
|
7048
|
+
{ name: "chainAddress", type: "address" },
|
|
7049
|
+
{ name: "role", type: "bytes32" },
|
|
7050
|
+
{ name: "account", type: "address" }
|
|
7051
|
+
]
|
|
7052
|
+
},
|
|
7053
|
+
{ type: "error", name: "SelectorsMustAllHaveSameFreezability", inputs: [] },
|
|
7054
|
+
{ type: "error", name: "SettlementLayersMustSettleOnL1", inputs: [] },
|
|
7055
|
+
{ type: "error", name: "SharedBridgeNotSet", inputs: [] },
|
|
7056
|
+
{ type: "error", name: "SharedBridgeValueNotSet", inputs: [{ name: "", type: "uint8" }] },
|
|
7057
|
+
{ type: "error", name: "SlotOccupied", inputs: [] },
|
|
7058
|
+
{ type: "error", name: "SystemLogsSizeTooBig", inputs: [] },
|
|
7059
|
+
{
|
|
7060
|
+
type: "error",
|
|
7061
|
+
name: "TimeNotReached",
|
|
7062
|
+
inputs: [
|
|
7063
|
+
{ name: "expectedTimestamp", type: "uint256" },
|
|
7064
|
+
{ name: "actualTimestamp", type: "uint256" }
|
|
7065
|
+
]
|
|
7066
|
+
},
|
|
7067
|
+
{ type: "error", name: "TimerAlreadyStarted", inputs: [] },
|
|
7068
|
+
{ type: "error", name: "TimestampError", inputs: [] },
|
|
7069
|
+
{ type: "error", name: "TokenIsLegacy", inputs: [] },
|
|
7070
|
+
{ type: "error", name: "TokenNotLegacy", inputs: [] },
|
|
7071
|
+
{ type: "error", name: "TokenNotSupported", inputs: [{ name: "token", type: "address" }] },
|
|
7072
|
+
{ type: "error", name: "TokensWithFeesNotSupported", inputs: [] },
|
|
7073
|
+
{ type: "error", name: "TooHighDeploymentNonce", inputs: [] },
|
|
7074
|
+
{ type: "error", name: "TooManyFactoryDeps", inputs: [] },
|
|
7075
|
+
{ type: "error", name: "TooMuchGas", inputs: [] },
|
|
7076
|
+
{ type: "error", name: "TransactionNotAllowed", inputs: [] },
|
|
7077
|
+
{ type: "error", name: "TxHashMismatch", inputs: [] },
|
|
7078
|
+
{ type: "error", name: "TxnBodyGasLimitNotEnoughGas", inputs: [] },
|
|
7079
|
+
{
|
|
7080
|
+
type: "error",
|
|
7081
|
+
name: "UnallowedImplementation",
|
|
7082
|
+
inputs: [{ name: "implementationHash", type: "bytes32" }]
|
|
7083
|
+
},
|
|
7084
|
+
{ type: "error", name: "Unauthorized", inputs: [{ name: "caller", type: "address" }] },
|
|
7085
|
+
{ type: "error", name: "UndefinedDiamondCutAction", inputs: [] },
|
|
7086
|
+
{ type: "error", name: "UnexpectedSystemLog", inputs: [{ name: "logKey", type: "uint256" }] },
|
|
7087
|
+
{ type: "error", name: "UnknownVerifierType", inputs: [] },
|
|
7088
|
+
{
|
|
7089
|
+
type: "error",
|
|
7090
|
+
name: "UnsupportedCommitBatchEncoding",
|
|
7091
|
+
inputs: [{ name: "version", type: "uint8" }]
|
|
7092
|
+
},
|
|
7093
|
+
{ type: "error", name: "UnsupportedEncodingVersion", inputs: [] },
|
|
7094
|
+
{
|
|
7095
|
+
type: "error",
|
|
7096
|
+
name: "UnsupportedExecuteBatchEncoding",
|
|
7097
|
+
inputs: [{ name: "version", type: "uint8" }]
|
|
7098
|
+
},
|
|
7099
|
+
{
|
|
7100
|
+
type: "error",
|
|
7101
|
+
name: "UnsupportedProofBatchEncoding",
|
|
7102
|
+
inputs: [{ name: "version", type: "uint8" }]
|
|
7103
|
+
},
|
|
7104
|
+
{ type: "error", name: "UpgradeBatchNumberIsNotZero", inputs: [] },
|
|
7105
|
+
{ type: "error", name: "ValidateTxnNotEnoughGas", inputs: [] },
|
|
7106
|
+
{
|
|
7107
|
+
type: "error",
|
|
7108
|
+
name: "ValueMismatch",
|
|
7109
|
+
inputs: [
|
|
7110
|
+
{ name: "expected", type: "uint256" },
|
|
7111
|
+
{ name: "actual", type: "uint256" }
|
|
7112
|
+
]
|
|
7113
|
+
},
|
|
7114
|
+
{ type: "error", name: "VerifiedBatchesExceedsCommittedBatches", inputs: [] },
|
|
7115
|
+
{ type: "error", name: "WithdrawalAlreadyFinalized", inputs: [] },
|
|
7116
|
+
{ type: "error", name: "WithdrawFailed", inputs: [] },
|
|
7117
|
+
{ type: "error", name: "WrappedBaseTokenAlreadyRegistered", inputs: [] },
|
|
7118
|
+
{
|
|
7119
|
+
type: "error",
|
|
7120
|
+
name: "WrongMagicValue",
|
|
7121
|
+
inputs: [
|
|
7122
|
+
{ name: "expectedMagicValue", type: "uint256" },
|
|
7123
|
+
{ name: "providedMagicValue", type: "uint256" }
|
|
7124
|
+
]
|
|
7125
|
+
},
|
|
7126
|
+
{ type: "error", name: "ZeroAddress", inputs: [] },
|
|
7127
|
+
{ type: "error", name: "ZeroChainId", inputs: [] },
|
|
7128
|
+
{ type: "error", name: "ZKChainLimitReached", inputs: [] }
|
|
7129
|
+
];
|
|
7130
|
+
var IL1ContractErrors_default = IL1ContractErrorsABI;
|
|
7131
|
+
|
|
6413
7132
|
// src/core/errors/error-ops.ts
|
|
6414
7133
|
function resolveMessage(op, msg) {
|
|
6415
7134
|
if (!msg) return `Error during ${op}.`;
|
|
@@ -6492,6 +7211,14 @@ var IFACE_PANIC = new ethers.Interface(["error Panic(uint256)"]);
|
|
|
6492
7211
|
ERROR_IFACES.push({ name: "Mailbox", iface: new ethers.Interface(Mailbox_default) });
|
|
6493
7212
|
} catch {
|
|
6494
7213
|
}
|
|
7214
|
+
try {
|
|
7215
|
+
ERROR_IFACES.push({ name: "IL1ContractErrors", iface: new ethers.Interface(IL1ContractErrors_default) });
|
|
7216
|
+
} catch {
|
|
7217
|
+
}
|
|
7218
|
+
try {
|
|
7219
|
+
ERROR_IFACES.push({ name: "IInteropErrors", iface: new ethers.Interface(IInteropErrors_default) });
|
|
7220
|
+
} catch {
|
|
7221
|
+
}
|
|
6495
7222
|
})();
|
|
6496
7223
|
function extractRevertData(e) {
|
|
6497
7224
|
const maybe = (
|