@aztec/stdlib 0.84.0 → 0.85.0-alpha-testnet.0
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/dest/avm/avm.d.ts +2474 -284
- package/dest/avm/avm.d.ts.map +1 -1
- package/dest/avm/avm.js +116 -17
- package/dest/avm/avm_proving_request.d.ts +1071 -23
- package/dest/avm/avm_proving_request.d.ts.map +1 -1
- package/dest/block/in_block.d.ts.map +1 -1
- package/dest/block/index.d.ts +1 -1
- package/dest/block/index.d.ts.map +1 -1
- package/dest/block/index.js +1 -1
- package/dest/block/l2_block_source.d.ts +8 -5
- package/dest/block/l2_block_source.d.ts.map +1 -1
- package/dest/block/l2_block_source.js +9 -0
- package/dest/block/l2_block_stream/index.d.ts +4 -0
- package/dest/block/l2_block_stream/index.d.ts.map +1 -0
- package/dest/block/l2_block_stream/index.js +3 -0
- package/dest/block/l2_block_stream/interfaces.d.ts +26 -0
- package/dest/block/l2_block_stream/interfaces.d.ts.map +1 -0
- package/dest/block/l2_block_stream/interfaces.js +1 -0
- package/dest/block/{l2_block_downloader → l2_block_stream}/l2_block_stream.d.ts +4 -24
- package/dest/block/l2_block_stream/l2_block_stream.d.ts.map +1 -0
- package/dest/block/{l2_block_downloader → l2_block_stream}/l2_block_stream.js +29 -10
- package/dest/block/l2_block_stream/l2_tips_memory_store.d.ts +18 -0
- package/dest/block/l2_block_stream/l2_tips_memory_store.d.ts.map +1 -0
- package/dest/block/l2_block_stream/l2_tips_memory_store.js +70 -0
- package/dest/block/test/index.d.ts +2 -0
- package/dest/block/test/index.d.ts.map +1 -0
- package/dest/block/test/index.js +1 -0
- package/dest/block/test/l2_tips_store_test_suite.d.ts +3 -0
- package/dest/block/test/l2_tips_store_test_suite.d.ts.map +1 -0
- package/dest/block/test/l2_tips_store_test_suite.js +107 -0
- package/dest/database-version/version_manager.d.ts +21 -5
- package/dest/database-version/version_manager.d.ts.map +1 -1
- package/dest/database-version/version_manager.js +25 -15
- package/dest/epoch-helpers/index.d.ts +9 -0
- package/dest/epoch-helpers/index.d.ts.map +1 -1
- package/dest/epoch-helpers/index.js +15 -2
- package/dest/interfaces/archiver.d.ts.map +1 -1
- package/dest/interfaces/archiver.js +4 -4
- package/dest/interfaces/aztec-node.d.ts +5 -6
- package/dest/interfaces/aztec-node.d.ts.map +1 -1
- package/dest/interfaces/aztec-node.js +2 -3
- package/dest/interfaces/proving-job.d.ts +1071 -23
- package/dest/interfaces/proving-job.d.ts.map +1 -1
- package/dest/interfaces/pxe.d.ts +5 -7
- package/dest/interfaces/pxe.d.ts.map +1 -1
- package/dest/interfaces/pxe.js +2 -7
- package/dest/interfaces/world_state.d.ts +3 -2
- package/dest/interfaces/world_state.d.ts.map +1 -1
- package/dest/logs/log_with_tx_data.d.ts +3 -2
- package/dest/logs/log_with_tx_data.d.ts.map +1 -1
- package/dest/logs/log_with_tx_data.js +3 -2
- package/dest/logs/pending_tagged_log.d.ts +4 -2
- package/dest/logs/pending_tagged_log.d.ts.map +1 -1
- package/dest/logs/pending_tagged_log.js +6 -3
- package/dest/messaging/l1_to_l2_message_source.d.ts +5 -0
- package/dest/messaging/l1_to_l2_message_source.d.ts.map +1 -1
- package/dest/proofs/proof.d.ts +4 -1
- package/dest/proofs/proof.d.ts.map +1 -1
- package/dest/proofs/proof.js +9 -17
- package/dest/tests/factories.d.ts +5 -1
- package/dest/tests/factories.d.ts.map +1 -1
- package/dest/tests/factories.js +23 -7
- package/dest/tests/mocks.d.ts +3 -1
- package/dest/tests/mocks.d.ts.map +1 -1
- package/dest/tests/mocks.js +3 -2
- package/dest/tx/index.d.ts +2 -0
- package/dest/tx/index.d.ts.map +1 -1
- package/dest/tx/index.js +2 -0
- package/dest/tx/indexed_tx_effect.d.ts +24 -0
- package/dest/tx/indexed_tx_effect.d.ts.map +1 -0
- package/dest/tx/indexed_tx_effect.js +14 -0
- package/dest/tx/tx_hash.d.ts.map +1 -1
- package/dest/tx/tx_hash.js +1 -4
- package/dest/tx/validator/error_texts.d.ts +20 -0
- package/dest/tx/validator/error_texts.d.ts.map +1 -0
- package/dest/tx/validator/error_texts.js +27 -0
- package/package.json +8 -6
- package/src/avm/avm.ts +188 -29
- package/src/block/in_block.ts +1 -0
- package/src/block/index.ts +1 -1
- package/src/block/l2_block_source.ts +15 -5
- package/src/block/l2_block_stream/index.ts +3 -0
- package/src/block/l2_block_stream/interfaces.ts +33 -0
- package/src/block/{l2_block_downloader → l2_block_stream}/l2_block_stream.ts +34 -44
- package/src/block/l2_block_stream/l2_tips_memory_store.ts +75 -0
- package/src/block/test/index.ts +1 -0
- package/src/block/test/l2_tips_store_test_suite.ts +87 -0
- package/src/database-version/version_manager.ts +56 -17
- package/src/epoch-helpers/index.ts +19 -0
- package/src/interfaces/archiver.ts +3 -3
- package/src/interfaces/aztec-node.ts +7 -6
- package/src/interfaces/pxe.ts +15 -11
- package/src/interfaces/world_state.ts +3 -2
- package/src/logs/log_with_tx_data.ts +4 -3
- package/src/logs/pending_tagged_log.ts +5 -2
- package/src/messaging/l1_to_l2_message_source.ts +7 -0
- package/src/proofs/proof.ts +9 -19
- package/src/tests/factories.ts +54 -4
- package/src/tests/mocks.ts +6 -1
- package/src/tx/index.ts +2 -0
- package/src/tx/indexed_tx_effect.ts +17 -0
- package/src/tx/tx_hash.ts +0 -4
- package/src/tx/validator/error_texts.ts +34 -0
- package/dest/block/l2_block_downloader/index.d.ts +0 -3
- package/dest/block/l2_block_downloader/index.d.ts.map +0 -1
- package/dest/block/l2_block_downloader/index.js +0 -2
- package/dest/block/l2_block_downloader/l2_block_downloader.d.ts +0 -58
- package/dest/block/l2_block_downloader/l2_block_downloader.d.ts.map +0 -1
- package/dest/block/l2_block_downloader/l2_block_downloader.js +0 -124
- package/dest/block/l2_block_downloader/l2_block_stream.d.ts.map +0 -1
- package/src/block/l2_block_downloader/index.ts +0 -2
- package/src/block/l2_block_downloader/l2_block_downloader.ts +0 -149
package/dest/avm/avm.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ import { AppendOnlyTreeSnapshot } from '../trees/append_only_tree_snapshot.js';
|
|
|
8
8
|
import { MerkleTreeId } from '../trees/merkle_tree_id.js';
|
|
9
9
|
import { NullifierLeafPreimage } from '../trees/nullifier_leaf.js';
|
|
10
10
|
import { PublicDataTreeLeafPreimage } from '../trees/public_data_leaf.js';
|
|
11
|
-
import type
|
|
11
|
+
import { GlobalVariables, TreeSnapshots, type Tx } from '../tx/index.js';
|
|
12
12
|
import { AvmCircuitPublicInputs } from './avm_circuit_public_inputs.js';
|
|
13
13
|
export declare class AvmContractClassHint {
|
|
14
14
|
readonly classId: Fr;
|
|
@@ -1339,6 +1339,383 @@ declare const AvmSequentialInsertHintNullifierTree_base: {
|
|
|
1339
1339
|
};
|
|
1340
1340
|
export declare class AvmSequentialInsertHintNullifierTree extends AvmSequentialInsertHintNullifierTree_base {
|
|
1341
1341
|
}
|
|
1342
|
+
export declare class AvmAppendLeavesHint {
|
|
1343
|
+
readonly hintKey: AppendOnlyTreeSnapshot;
|
|
1344
|
+
readonly stateAfter: AppendOnlyTreeSnapshot;
|
|
1345
|
+
readonly treeId: MerkleTreeId;
|
|
1346
|
+
readonly leaves: Fr[];
|
|
1347
|
+
constructor(hintKey: AppendOnlyTreeSnapshot, stateAfter: AppendOnlyTreeSnapshot, treeId: MerkleTreeId, leaves: Fr[]);
|
|
1348
|
+
static get schema(): z.ZodEffects<z.ZodObject<{
|
|
1349
|
+
hintKey: z.ZodEffects<z.ZodObject<{
|
|
1350
|
+
root: z.ZodType<Fr, any, string>;
|
|
1351
|
+
nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
1352
|
+
}, "strip", z.ZodTypeAny, {
|
|
1353
|
+
root: Fr;
|
|
1354
|
+
nextAvailableLeafIndex: number;
|
|
1355
|
+
}, {
|
|
1356
|
+
root: string;
|
|
1357
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
1358
|
+
}>, AppendOnlyTreeSnapshot, {
|
|
1359
|
+
root: string;
|
|
1360
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
1361
|
+
}>;
|
|
1362
|
+
stateAfter: z.ZodEffects<z.ZodObject<{
|
|
1363
|
+
root: z.ZodType<Fr, any, string>;
|
|
1364
|
+
nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
1365
|
+
}, "strip", z.ZodTypeAny, {
|
|
1366
|
+
root: Fr;
|
|
1367
|
+
nextAvailableLeafIndex: number;
|
|
1368
|
+
}, {
|
|
1369
|
+
root: string;
|
|
1370
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
1371
|
+
}>, AppendOnlyTreeSnapshot, {
|
|
1372
|
+
root: string;
|
|
1373
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
1374
|
+
}>;
|
|
1375
|
+
treeId: z.ZodNumber;
|
|
1376
|
+
leaves: z.ZodArray<z.ZodType<Fr, any, string>, "many">;
|
|
1377
|
+
}, "strip", z.ZodTypeAny, {
|
|
1378
|
+
hintKey: AppendOnlyTreeSnapshot;
|
|
1379
|
+
treeId: number;
|
|
1380
|
+
stateAfter: AppendOnlyTreeSnapshot;
|
|
1381
|
+
leaves: Fr[];
|
|
1382
|
+
}, {
|
|
1383
|
+
hintKey: {
|
|
1384
|
+
root: string;
|
|
1385
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
1386
|
+
};
|
|
1387
|
+
treeId: number;
|
|
1388
|
+
stateAfter: {
|
|
1389
|
+
root: string;
|
|
1390
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
1391
|
+
};
|
|
1392
|
+
leaves: string[];
|
|
1393
|
+
}>, AvmAppendLeavesHint, {
|
|
1394
|
+
hintKey: {
|
|
1395
|
+
root: string;
|
|
1396
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
1397
|
+
};
|
|
1398
|
+
treeId: number;
|
|
1399
|
+
stateAfter: {
|
|
1400
|
+
root: string;
|
|
1401
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
1402
|
+
};
|
|
1403
|
+
leaves: string[];
|
|
1404
|
+
}>;
|
|
1405
|
+
}
|
|
1406
|
+
declare class AvmCheckpointActionNoStateChangeHint {
|
|
1407
|
+
readonly actionCounter: number;
|
|
1408
|
+
readonly oldCheckpointId: number;
|
|
1409
|
+
readonly newCheckpointId: number;
|
|
1410
|
+
constructor(actionCounter: number, oldCheckpointId: number, newCheckpointId: number);
|
|
1411
|
+
static get schema(): z.ZodEffects<z.ZodObject<{
|
|
1412
|
+
actionCounter: z.ZodNumber;
|
|
1413
|
+
oldCheckpointId: z.ZodNumber;
|
|
1414
|
+
newCheckpointId: z.ZodNumber;
|
|
1415
|
+
}, "strip", z.ZodTypeAny, {
|
|
1416
|
+
actionCounter: number;
|
|
1417
|
+
oldCheckpointId: number;
|
|
1418
|
+
newCheckpointId: number;
|
|
1419
|
+
}, {
|
|
1420
|
+
actionCounter: number;
|
|
1421
|
+
oldCheckpointId: number;
|
|
1422
|
+
newCheckpointId: number;
|
|
1423
|
+
}>, AvmCheckpointActionNoStateChangeHint, {
|
|
1424
|
+
actionCounter: number;
|
|
1425
|
+
oldCheckpointId: number;
|
|
1426
|
+
newCheckpointId: number;
|
|
1427
|
+
}>;
|
|
1428
|
+
}
|
|
1429
|
+
export declare class AvmCreateCheckpointHint extends AvmCheckpointActionNoStateChangeHint {
|
|
1430
|
+
}
|
|
1431
|
+
export declare class AvmCommitCheckpointHint extends AvmCheckpointActionNoStateChangeHint {
|
|
1432
|
+
}
|
|
1433
|
+
export declare class AvmRevertCheckpointHint {
|
|
1434
|
+
readonly actionCounter: number;
|
|
1435
|
+
readonly oldCheckpointId: number;
|
|
1436
|
+
readonly newCheckpointId: number;
|
|
1437
|
+
readonly stateBefore: TreeSnapshots;
|
|
1438
|
+
readonly stateAfter: TreeSnapshots;
|
|
1439
|
+
constructor(actionCounter: number, oldCheckpointId: number, newCheckpointId: number, stateBefore: TreeSnapshots, stateAfter: TreeSnapshots);
|
|
1440
|
+
static create(actionCounter: number, oldCheckpointId: number, newCheckpointId: number, stateBefore: Record<MerkleTreeId, AppendOnlyTreeSnapshot>, stateAfter: Record<MerkleTreeId, AppendOnlyTreeSnapshot>): AvmRevertCheckpointHint;
|
|
1441
|
+
static get schema(): z.ZodEffects<z.ZodObject<{
|
|
1442
|
+
actionCounter: z.ZodNumber;
|
|
1443
|
+
oldCheckpointId: z.ZodNumber;
|
|
1444
|
+
newCheckpointId: z.ZodNumber;
|
|
1445
|
+
stateBefore: z.ZodEffects<z.ZodObject<{
|
|
1446
|
+
l1ToL2MessageTree: z.ZodEffects<z.ZodObject<{
|
|
1447
|
+
root: z.ZodType<Fr, any, string>;
|
|
1448
|
+
nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
1449
|
+
}, "strip", z.ZodTypeAny, {
|
|
1450
|
+
root: Fr;
|
|
1451
|
+
nextAvailableLeafIndex: number;
|
|
1452
|
+
}, {
|
|
1453
|
+
root: string;
|
|
1454
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
1455
|
+
}>, AppendOnlyTreeSnapshot, {
|
|
1456
|
+
root: string;
|
|
1457
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
1458
|
+
}>;
|
|
1459
|
+
noteHashTree: z.ZodEffects<z.ZodObject<{
|
|
1460
|
+
root: z.ZodType<Fr, any, string>;
|
|
1461
|
+
nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
1462
|
+
}, "strip", z.ZodTypeAny, {
|
|
1463
|
+
root: Fr;
|
|
1464
|
+
nextAvailableLeafIndex: number;
|
|
1465
|
+
}, {
|
|
1466
|
+
root: string;
|
|
1467
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
1468
|
+
}>, AppendOnlyTreeSnapshot, {
|
|
1469
|
+
root: string;
|
|
1470
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
1471
|
+
}>;
|
|
1472
|
+
nullifierTree: z.ZodEffects<z.ZodObject<{
|
|
1473
|
+
root: z.ZodType<Fr, any, string>;
|
|
1474
|
+
nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
1475
|
+
}, "strip", z.ZodTypeAny, {
|
|
1476
|
+
root: Fr;
|
|
1477
|
+
nextAvailableLeafIndex: number;
|
|
1478
|
+
}, {
|
|
1479
|
+
root: string;
|
|
1480
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
1481
|
+
}>, AppendOnlyTreeSnapshot, {
|
|
1482
|
+
root: string;
|
|
1483
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
1484
|
+
}>;
|
|
1485
|
+
publicDataTree: z.ZodEffects<z.ZodObject<{
|
|
1486
|
+
root: z.ZodType<Fr, any, string>;
|
|
1487
|
+
nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
1488
|
+
}, "strip", z.ZodTypeAny, {
|
|
1489
|
+
root: Fr;
|
|
1490
|
+
nextAvailableLeafIndex: number;
|
|
1491
|
+
}, {
|
|
1492
|
+
root: string;
|
|
1493
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
1494
|
+
}>, AppendOnlyTreeSnapshot, {
|
|
1495
|
+
root: string;
|
|
1496
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
1497
|
+
}>;
|
|
1498
|
+
}, "strip", z.ZodTypeAny, {
|
|
1499
|
+
noteHashTree: AppendOnlyTreeSnapshot;
|
|
1500
|
+
nullifierTree: AppendOnlyTreeSnapshot;
|
|
1501
|
+
publicDataTree: AppendOnlyTreeSnapshot;
|
|
1502
|
+
l1ToL2MessageTree: AppendOnlyTreeSnapshot;
|
|
1503
|
+
}, {
|
|
1504
|
+
noteHashTree: {
|
|
1505
|
+
root: string;
|
|
1506
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
1507
|
+
};
|
|
1508
|
+
nullifierTree: {
|
|
1509
|
+
root: string;
|
|
1510
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
1511
|
+
};
|
|
1512
|
+
publicDataTree: {
|
|
1513
|
+
root: string;
|
|
1514
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
1515
|
+
};
|
|
1516
|
+
l1ToL2MessageTree: {
|
|
1517
|
+
root: string;
|
|
1518
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
1519
|
+
};
|
|
1520
|
+
}>, TreeSnapshots, {
|
|
1521
|
+
noteHashTree: {
|
|
1522
|
+
root: string;
|
|
1523
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
1524
|
+
};
|
|
1525
|
+
nullifierTree: {
|
|
1526
|
+
root: string;
|
|
1527
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
1528
|
+
};
|
|
1529
|
+
publicDataTree: {
|
|
1530
|
+
root: string;
|
|
1531
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
1532
|
+
};
|
|
1533
|
+
l1ToL2MessageTree: {
|
|
1534
|
+
root: string;
|
|
1535
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
1536
|
+
};
|
|
1537
|
+
}>;
|
|
1538
|
+
stateAfter: z.ZodEffects<z.ZodObject<{
|
|
1539
|
+
l1ToL2MessageTree: z.ZodEffects<z.ZodObject<{
|
|
1540
|
+
root: z.ZodType<Fr, any, string>;
|
|
1541
|
+
nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
1542
|
+
}, "strip", z.ZodTypeAny, {
|
|
1543
|
+
root: Fr;
|
|
1544
|
+
nextAvailableLeafIndex: number;
|
|
1545
|
+
}, {
|
|
1546
|
+
root: string;
|
|
1547
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
1548
|
+
}>, AppendOnlyTreeSnapshot, {
|
|
1549
|
+
root: string;
|
|
1550
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
1551
|
+
}>;
|
|
1552
|
+
noteHashTree: z.ZodEffects<z.ZodObject<{
|
|
1553
|
+
root: z.ZodType<Fr, any, string>;
|
|
1554
|
+
nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
1555
|
+
}, "strip", z.ZodTypeAny, {
|
|
1556
|
+
root: Fr;
|
|
1557
|
+
nextAvailableLeafIndex: number;
|
|
1558
|
+
}, {
|
|
1559
|
+
root: string;
|
|
1560
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
1561
|
+
}>, AppendOnlyTreeSnapshot, {
|
|
1562
|
+
root: string;
|
|
1563
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
1564
|
+
}>;
|
|
1565
|
+
nullifierTree: z.ZodEffects<z.ZodObject<{
|
|
1566
|
+
root: z.ZodType<Fr, any, string>;
|
|
1567
|
+
nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
1568
|
+
}, "strip", z.ZodTypeAny, {
|
|
1569
|
+
root: Fr;
|
|
1570
|
+
nextAvailableLeafIndex: number;
|
|
1571
|
+
}, {
|
|
1572
|
+
root: string;
|
|
1573
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
1574
|
+
}>, AppendOnlyTreeSnapshot, {
|
|
1575
|
+
root: string;
|
|
1576
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
1577
|
+
}>;
|
|
1578
|
+
publicDataTree: z.ZodEffects<z.ZodObject<{
|
|
1579
|
+
root: z.ZodType<Fr, any, string>;
|
|
1580
|
+
nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
1581
|
+
}, "strip", z.ZodTypeAny, {
|
|
1582
|
+
root: Fr;
|
|
1583
|
+
nextAvailableLeafIndex: number;
|
|
1584
|
+
}, {
|
|
1585
|
+
root: string;
|
|
1586
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
1587
|
+
}>, AppendOnlyTreeSnapshot, {
|
|
1588
|
+
root: string;
|
|
1589
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
1590
|
+
}>;
|
|
1591
|
+
}, "strip", z.ZodTypeAny, {
|
|
1592
|
+
noteHashTree: AppendOnlyTreeSnapshot;
|
|
1593
|
+
nullifierTree: AppendOnlyTreeSnapshot;
|
|
1594
|
+
publicDataTree: AppendOnlyTreeSnapshot;
|
|
1595
|
+
l1ToL2MessageTree: AppendOnlyTreeSnapshot;
|
|
1596
|
+
}, {
|
|
1597
|
+
noteHashTree: {
|
|
1598
|
+
root: string;
|
|
1599
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
1600
|
+
};
|
|
1601
|
+
nullifierTree: {
|
|
1602
|
+
root: string;
|
|
1603
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
1604
|
+
};
|
|
1605
|
+
publicDataTree: {
|
|
1606
|
+
root: string;
|
|
1607
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
1608
|
+
};
|
|
1609
|
+
l1ToL2MessageTree: {
|
|
1610
|
+
root: string;
|
|
1611
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
1612
|
+
};
|
|
1613
|
+
}>, TreeSnapshots, {
|
|
1614
|
+
noteHashTree: {
|
|
1615
|
+
root: string;
|
|
1616
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
1617
|
+
};
|
|
1618
|
+
nullifierTree: {
|
|
1619
|
+
root: string;
|
|
1620
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
1621
|
+
};
|
|
1622
|
+
publicDataTree: {
|
|
1623
|
+
root: string;
|
|
1624
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
1625
|
+
};
|
|
1626
|
+
l1ToL2MessageTree: {
|
|
1627
|
+
root: string;
|
|
1628
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
1629
|
+
};
|
|
1630
|
+
}>;
|
|
1631
|
+
}, "strip", z.ZodTypeAny, {
|
|
1632
|
+
stateAfter: TreeSnapshots;
|
|
1633
|
+
actionCounter: number;
|
|
1634
|
+
oldCheckpointId: number;
|
|
1635
|
+
newCheckpointId: number;
|
|
1636
|
+
stateBefore: TreeSnapshots;
|
|
1637
|
+
}, {
|
|
1638
|
+
stateAfter: {
|
|
1639
|
+
noteHashTree: {
|
|
1640
|
+
root: string;
|
|
1641
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
1642
|
+
};
|
|
1643
|
+
nullifierTree: {
|
|
1644
|
+
root: string;
|
|
1645
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
1646
|
+
};
|
|
1647
|
+
publicDataTree: {
|
|
1648
|
+
root: string;
|
|
1649
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
1650
|
+
};
|
|
1651
|
+
l1ToL2MessageTree: {
|
|
1652
|
+
root: string;
|
|
1653
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
1654
|
+
};
|
|
1655
|
+
};
|
|
1656
|
+
actionCounter: number;
|
|
1657
|
+
oldCheckpointId: number;
|
|
1658
|
+
newCheckpointId: number;
|
|
1659
|
+
stateBefore: {
|
|
1660
|
+
noteHashTree: {
|
|
1661
|
+
root: string;
|
|
1662
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
1663
|
+
};
|
|
1664
|
+
nullifierTree: {
|
|
1665
|
+
root: string;
|
|
1666
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
1667
|
+
};
|
|
1668
|
+
publicDataTree: {
|
|
1669
|
+
root: string;
|
|
1670
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
1671
|
+
};
|
|
1672
|
+
l1ToL2MessageTree: {
|
|
1673
|
+
root: string;
|
|
1674
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
1675
|
+
};
|
|
1676
|
+
};
|
|
1677
|
+
}>, AvmRevertCheckpointHint, {
|
|
1678
|
+
stateAfter: {
|
|
1679
|
+
noteHashTree: {
|
|
1680
|
+
root: string;
|
|
1681
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
1682
|
+
};
|
|
1683
|
+
nullifierTree: {
|
|
1684
|
+
root: string;
|
|
1685
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
1686
|
+
};
|
|
1687
|
+
publicDataTree: {
|
|
1688
|
+
root: string;
|
|
1689
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
1690
|
+
};
|
|
1691
|
+
l1ToL2MessageTree: {
|
|
1692
|
+
root: string;
|
|
1693
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
1694
|
+
};
|
|
1695
|
+
};
|
|
1696
|
+
actionCounter: number;
|
|
1697
|
+
oldCheckpointId: number;
|
|
1698
|
+
newCheckpointId: number;
|
|
1699
|
+
stateBefore: {
|
|
1700
|
+
noteHashTree: {
|
|
1701
|
+
root: string;
|
|
1702
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
1703
|
+
};
|
|
1704
|
+
nullifierTree: {
|
|
1705
|
+
root: string;
|
|
1706
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
1707
|
+
};
|
|
1708
|
+
publicDataTree: {
|
|
1709
|
+
root: string;
|
|
1710
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
1711
|
+
};
|
|
1712
|
+
l1ToL2MessageTree: {
|
|
1713
|
+
root: string;
|
|
1714
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
1715
|
+
};
|
|
1716
|
+
};
|
|
1717
|
+
}>;
|
|
1718
|
+
}
|
|
1342
1719
|
export declare class AvmEnqueuedCallHint {
|
|
1343
1720
|
readonly msgSender: AztecAddress;
|
|
1344
1721
|
readonly contractAddress: AztecAddress;
|
|
@@ -1368,6 +1745,8 @@ export declare class AvmEnqueuedCallHint {
|
|
|
1368
1745
|
}>;
|
|
1369
1746
|
}
|
|
1370
1747
|
export declare class AvmTxHint {
|
|
1748
|
+
readonly hash: string;
|
|
1749
|
+
readonly globalVariables: GlobalVariables;
|
|
1371
1750
|
readonly nonRevertibleAccumulatedData: {
|
|
1372
1751
|
noteHashes: Fr[];
|
|
1373
1752
|
nullifiers: Fr[];
|
|
@@ -1379,16 +1758,72 @@ export declare class AvmTxHint {
|
|
|
1379
1758
|
readonly setupEnqueuedCalls: AvmEnqueuedCallHint[];
|
|
1380
1759
|
readonly appLogicEnqueuedCalls: AvmEnqueuedCallHint[];
|
|
1381
1760
|
readonly teardownEnqueuedCall: AvmEnqueuedCallHint | null;
|
|
1382
|
-
constructor(nonRevertibleAccumulatedData: {
|
|
1761
|
+
constructor(hash: string, globalVariables: GlobalVariables, nonRevertibleAccumulatedData: {
|
|
1383
1762
|
noteHashes: Fr[];
|
|
1384
1763
|
nullifiers: Fr[];
|
|
1385
1764
|
}, revertibleAccumulatedData: {
|
|
1386
1765
|
noteHashes: Fr[];
|
|
1387
1766
|
nullifiers: Fr[];
|
|
1388
1767
|
}, setupEnqueuedCalls: AvmEnqueuedCallHint[], appLogicEnqueuedCalls: AvmEnqueuedCallHint[], teardownEnqueuedCall: AvmEnqueuedCallHint | null);
|
|
1389
|
-
static fromTx(tx: Tx): AvmTxHint
|
|
1768
|
+
static fromTx(tx: Tx): Promise<AvmTxHint>;
|
|
1390
1769
|
static empty(): AvmTxHint;
|
|
1391
|
-
static get schema(): z.ZodObject<{
|
|
1770
|
+
static get schema(): z.ZodEffects<z.ZodObject<{
|
|
1771
|
+
hash: z.ZodString;
|
|
1772
|
+
globalVariables: z.ZodEffects<z.ZodObject<{
|
|
1773
|
+
chainId: import("@aztec/foundation/schemas").ZodFor<Fr>;
|
|
1774
|
+
version: import("@aztec/foundation/schemas").ZodFor<Fr>;
|
|
1775
|
+
blockNumber: import("@aztec/foundation/schemas").ZodFor<Fr>;
|
|
1776
|
+
slotNumber: import("@aztec/foundation/schemas").ZodFor<Fr>;
|
|
1777
|
+
timestamp: import("@aztec/foundation/schemas").ZodFor<Fr>;
|
|
1778
|
+
coinbase: import("@aztec/foundation/schemas").ZodFor<import("@aztec/foundation/schemas").EthAddress>;
|
|
1779
|
+
feeRecipient: import("@aztec/foundation/schemas").ZodFor<AztecAddress>;
|
|
1780
|
+
gasFees: z.ZodEffects<z.ZodObject<{
|
|
1781
|
+
feePerDaGas: z.ZodType<Fr, any, string>;
|
|
1782
|
+
feePerL2Gas: z.ZodType<Fr, any, string>;
|
|
1783
|
+
}, "strip", z.ZodTypeAny, {
|
|
1784
|
+
feePerDaGas: Fr;
|
|
1785
|
+
feePerL2Gas: Fr;
|
|
1786
|
+
}, {
|
|
1787
|
+
feePerDaGas: string;
|
|
1788
|
+
feePerL2Gas: string;
|
|
1789
|
+
}>, import("../gas/gas_fees.js").GasFees, {
|
|
1790
|
+
feePerDaGas: string;
|
|
1791
|
+
feePerL2Gas: string;
|
|
1792
|
+
}>;
|
|
1793
|
+
}, "strip", z.ZodTypeAny, {
|
|
1794
|
+
chainId: Fr;
|
|
1795
|
+
version: Fr;
|
|
1796
|
+
blockNumber: Fr;
|
|
1797
|
+
slotNumber: Fr;
|
|
1798
|
+
timestamp: Fr;
|
|
1799
|
+
coinbase: import("@aztec/foundation/schemas").EthAddress;
|
|
1800
|
+
feeRecipient: AztecAddress;
|
|
1801
|
+
gasFees: import("../gas/gas_fees.js").GasFees;
|
|
1802
|
+
}, {
|
|
1803
|
+
gasFees: {
|
|
1804
|
+
feePerDaGas: string;
|
|
1805
|
+
feePerL2Gas: string;
|
|
1806
|
+
};
|
|
1807
|
+
chainId?: any;
|
|
1808
|
+
version?: any;
|
|
1809
|
+
blockNumber?: any;
|
|
1810
|
+
slotNumber?: any;
|
|
1811
|
+
timestamp?: any;
|
|
1812
|
+
coinbase?: any;
|
|
1813
|
+
feeRecipient?: any;
|
|
1814
|
+
}>, GlobalVariables, {
|
|
1815
|
+
gasFees: {
|
|
1816
|
+
feePerDaGas: string;
|
|
1817
|
+
feePerL2Gas: string;
|
|
1818
|
+
};
|
|
1819
|
+
chainId?: any;
|
|
1820
|
+
version?: any;
|
|
1821
|
+
blockNumber?: any;
|
|
1822
|
+
slotNumber?: any;
|
|
1823
|
+
timestamp?: any;
|
|
1824
|
+
coinbase?: any;
|
|
1825
|
+
feeRecipient?: any;
|
|
1826
|
+
}>;
|
|
1392
1827
|
nonRevertibleAccumulatedData: z.ZodObject<{
|
|
1393
1828
|
noteHashes: z.ZodArray<z.ZodType<Fr, any, string>, "many">;
|
|
1394
1829
|
nullifiers: z.ZodArray<z.ZodType<Fr, any, string>, "many">;
|
|
@@ -1473,6 +1908,8 @@ export declare class AvmTxHint {
|
|
|
1473
1908
|
msgSender?: any;
|
|
1474
1909
|
}>>;
|
|
1475
1910
|
}, "strip", z.ZodTypeAny, {
|
|
1911
|
+
hash: string;
|
|
1912
|
+
globalVariables: GlobalVariables;
|
|
1476
1913
|
nonRevertibleAccumulatedData: {
|
|
1477
1914
|
noteHashes: Fr[];
|
|
1478
1915
|
nullifiers: Fr[];
|
|
@@ -1485,6 +1922,61 @@ export declare class AvmTxHint {
|
|
|
1485
1922
|
appLogicEnqueuedCalls: AvmEnqueuedCallHint[];
|
|
1486
1923
|
teardownEnqueuedCall: AvmEnqueuedCallHint | null;
|
|
1487
1924
|
}, {
|
|
1925
|
+
hash: string;
|
|
1926
|
+
globalVariables: {
|
|
1927
|
+
gasFees: {
|
|
1928
|
+
feePerDaGas: string;
|
|
1929
|
+
feePerL2Gas: string;
|
|
1930
|
+
};
|
|
1931
|
+
chainId?: any;
|
|
1932
|
+
version?: any;
|
|
1933
|
+
blockNumber?: any;
|
|
1934
|
+
slotNumber?: any;
|
|
1935
|
+
timestamp?: any;
|
|
1936
|
+
coinbase?: any;
|
|
1937
|
+
feeRecipient?: any;
|
|
1938
|
+
};
|
|
1939
|
+
nonRevertibleAccumulatedData: {
|
|
1940
|
+
noteHashes: string[];
|
|
1941
|
+
nullifiers: string[];
|
|
1942
|
+
};
|
|
1943
|
+
revertibleAccumulatedData: {
|
|
1944
|
+
noteHashes: string[];
|
|
1945
|
+
nullifiers: string[];
|
|
1946
|
+
};
|
|
1947
|
+
setupEnqueuedCalls: {
|
|
1948
|
+
isStaticCall: boolean;
|
|
1949
|
+
calldata: string[];
|
|
1950
|
+
contractAddress?: any;
|
|
1951
|
+
msgSender?: any;
|
|
1952
|
+
}[];
|
|
1953
|
+
appLogicEnqueuedCalls: {
|
|
1954
|
+
isStaticCall: boolean;
|
|
1955
|
+
calldata: string[];
|
|
1956
|
+
contractAddress?: any;
|
|
1957
|
+
msgSender?: any;
|
|
1958
|
+
}[];
|
|
1959
|
+
teardownEnqueuedCall: {
|
|
1960
|
+
isStaticCall: boolean;
|
|
1961
|
+
calldata: string[];
|
|
1962
|
+
contractAddress?: any;
|
|
1963
|
+
msgSender?: any;
|
|
1964
|
+
} | null;
|
|
1965
|
+
}>, AvmTxHint, {
|
|
1966
|
+
hash: string;
|
|
1967
|
+
globalVariables: {
|
|
1968
|
+
gasFees: {
|
|
1969
|
+
feePerDaGas: string;
|
|
1970
|
+
feePerL2Gas: string;
|
|
1971
|
+
};
|
|
1972
|
+
chainId?: any;
|
|
1973
|
+
version?: any;
|
|
1974
|
+
blockNumber?: any;
|
|
1975
|
+
slotNumber?: any;
|
|
1976
|
+
timestamp?: any;
|
|
1977
|
+
coinbase?: any;
|
|
1978
|
+
feeRecipient?: any;
|
|
1979
|
+
};
|
|
1488
1980
|
nonRevertibleAccumulatedData: {
|
|
1489
1981
|
noteHashes: string[];
|
|
1490
1982
|
nullifiers: string[];
|
|
@@ -1518,6 +2010,7 @@ export declare class AvmExecutionHints {
|
|
|
1518
2010
|
readonly contractInstances: AvmContractInstanceHint[];
|
|
1519
2011
|
readonly contractClasses: AvmContractClassHint[];
|
|
1520
2012
|
readonly bytecodeCommitments: AvmBytecodeCommitmentHint[];
|
|
2013
|
+
startingTreeRoots: TreeSnapshots;
|
|
1521
2014
|
readonly getSiblingPathHints: AvmGetSiblingPathHint[];
|
|
1522
2015
|
readonly getPreviousValueIndexHints: AvmGetPreviousValueIndexHint[];
|
|
1523
2016
|
readonly getLeafPreimageHintsPublicDataTree: AvmGetLeafPreimageHintPublicDataTree[];
|
|
@@ -1525,10 +2018,70 @@ export declare class AvmExecutionHints {
|
|
|
1525
2018
|
readonly getLeafValueHints: AvmGetLeafValueHint[];
|
|
1526
2019
|
readonly sequentialInsertHintsPublicDataTree: AvmSequentialInsertHintPublicDataTree[];
|
|
1527
2020
|
readonly sequentialInsertHintsNullifierTree: AvmSequentialInsertHintNullifierTree[];
|
|
1528
|
-
|
|
2021
|
+
readonly appendLeavesHints: AvmAppendLeavesHint[];
|
|
2022
|
+
readonly createCheckpointHints: AvmCreateCheckpointHint[];
|
|
2023
|
+
readonly commitCheckpointHints: AvmCommitCheckpointHint[];
|
|
2024
|
+
readonly revertCheckpointHints: AvmRevertCheckpointHint[];
|
|
2025
|
+
constructor(tx: AvmTxHint, contractInstances?: AvmContractInstanceHint[], contractClasses?: AvmContractClassHint[], bytecodeCommitments?: AvmBytecodeCommitmentHint[], startingTreeRoots?: TreeSnapshots, getSiblingPathHints?: AvmGetSiblingPathHint[], getPreviousValueIndexHints?: AvmGetPreviousValueIndexHint[], getLeafPreimageHintsPublicDataTree?: AvmGetLeafPreimageHintPublicDataTree[], getLeafPreimageHintsNullifierTree?: AvmGetLeafPreimageHintNullifierTree[], getLeafValueHints?: AvmGetLeafValueHint[], sequentialInsertHintsPublicDataTree?: AvmSequentialInsertHintPublicDataTree[], sequentialInsertHintsNullifierTree?: AvmSequentialInsertHintNullifierTree[], appendLeavesHints?: AvmAppendLeavesHint[], createCheckpointHints?: AvmCreateCheckpointHint[], commitCheckpointHints?: AvmCommitCheckpointHint[], revertCheckpointHints?: AvmRevertCheckpointHint[]);
|
|
1529
2026
|
static empty(): AvmExecutionHints;
|
|
1530
2027
|
static get schema(): z.ZodEffects<z.ZodObject<{
|
|
1531
|
-
tx: z.ZodObject<{
|
|
2028
|
+
tx: z.ZodEffects<z.ZodObject<{
|
|
2029
|
+
hash: z.ZodString;
|
|
2030
|
+
globalVariables: z.ZodEffects<z.ZodObject<{
|
|
2031
|
+
chainId: import("@aztec/foundation/schemas").ZodFor<Fr>;
|
|
2032
|
+
version: import("@aztec/foundation/schemas").ZodFor<Fr>;
|
|
2033
|
+
blockNumber: import("@aztec/foundation/schemas").ZodFor<Fr>;
|
|
2034
|
+
slotNumber: import("@aztec/foundation/schemas").ZodFor<Fr>;
|
|
2035
|
+
timestamp: import("@aztec/foundation/schemas").ZodFor<Fr>;
|
|
2036
|
+
coinbase: import("@aztec/foundation/schemas").ZodFor<import("@aztec/foundation/schemas").EthAddress>;
|
|
2037
|
+
feeRecipient: import("@aztec/foundation/schemas").ZodFor<AztecAddress>;
|
|
2038
|
+
gasFees: z.ZodEffects<z.ZodObject<{
|
|
2039
|
+
feePerDaGas: z.ZodType<Fr, any, string>;
|
|
2040
|
+
feePerL2Gas: z.ZodType<Fr, any, string>;
|
|
2041
|
+
}, "strip", z.ZodTypeAny, {
|
|
2042
|
+
feePerDaGas: Fr;
|
|
2043
|
+
feePerL2Gas: Fr;
|
|
2044
|
+
}, {
|
|
2045
|
+
feePerDaGas: string;
|
|
2046
|
+
feePerL2Gas: string;
|
|
2047
|
+
}>, import("../gas/gas_fees.js").GasFees, {
|
|
2048
|
+
feePerDaGas: string;
|
|
2049
|
+
feePerL2Gas: string;
|
|
2050
|
+
}>;
|
|
2051
|
+
}, "strip", z.ZodTypeAny, {
|
|
2052
|
+
chainId: Fr;
|
|
2053
|
+
version: Fr;
|
|
2054
|
+
blockNumber: Fr;
|
|
2055
|
+
slotNumber: Fr;
|
|
2056
|
+
timestamp: Fr;
|
|
2057
|
+
coinbase: import("@aztec/foundation/schemas").EthAddress;
|
|
2058
|
+
feeRecipient: AztecAddress;
|
|
2059
|
+
gasFees: import("../gas/gas_fees.js").GasFees;
|
|
2060
|
+
}, {
|
|
2061
|
+
gasFees: {
|
|
2062
|
+
feePerDaGas: string;
|
|
2063
|
+
feePerL2Gas: string;
|
|
2064
|
+
};
|
|
2065
|
+
chainId?: any;
|
|
2066
|
+
version?: any;
|
|
2067
|
+
blockNumber?: any;
|
|
2068
|
+
slotNumber?: any;
|
|
2069
|
+
timestamp?: any;
|
|
2070
|
+
coinbase?: any;
|
|
2071
|
+
feeRecipient?: any;
|
|
2072
|
+
}>, GlobalVariables, {
|
|
2073
|
+
gasFees: {
|
|
2074
|
+
feePerDaGas: string;
|
|
2075
|
+
feePerL2Gas: string;
|
|
2076
|
+
};
|
|
2077
|
+
chainId?: any;
|
|
2078
|
+
version?: any;
|
|
2079
|
+
blockNumber?: any;
|
|
2080
|
+
slotNumber?: any;
|
|
2081
|
+
timestamp?: any;
|
|
2082
|
+
coinbase?: any;
|
|
2083
|
+
feeRecipient?: any;
|
|
2084
|
+
}>;
|
|
1532
2085
|
nonRevertibleAccumulatedData: z.ZodObject<{
|
|
1533
2086
|
noteHashes: z.ZodArray<z.ZodType<Fr, any, string>, "many">;
|
|
1534
2087
|
nullifiers: z.ZodArray<z.ZodType<Fr, any, string>, "many">;
|
|
@@ -1613,6 +2166,8 @@ export declare class AvmExecutionHints {
|
|
|
1613
2166
|
msgSender?: any;
|
|
1614
2167
|
}>>;
|
|
1615
2168
|
}, "strip", z.ZodTypeAny, {
|
|
2169
|
+
hash: string;
|
|
2170
|
+
globalVariables: GlobalVariables;
|
|
1616
2171
|
nonRevertibleAccumulatedData: {
|
|
1617
2172
|
noteHashes: Fr[];
|
|
1618
2173
|
nullifiers: Fr[];
|
|
@@ -1625,6 +2180,61 @@ export declare class AvmExecutionHints {
|
|
|
1625
2180
|
appLogicEnqueuedCalls: AvmEnqueuedCallHint[];
|
|
1626
2181
|
teardownEnqueuedCall: AvmEnqueuedCallHint | null;
|
|
1627
2182
|
}, {
|
|
2183
|
+
hash: string;
|
|
2184
|
+
globalVariables: {
|
|
2185
|
+
gasFees: {
|
|
2186
|
+
feePerDaGas: string;
|
|
2187
|
+
feePerL2Gas: string;
|
|
2188
|
+
};
|
|
2189
|
+
chainId?: any;
|
|
2190
|
+
version?: any;
|
|
2191
|
+
blockNumber?: any;
|
|
2192
|
+
slotNumber?: any;
|
|
2193
|
+
timestamp?: any;
|
|
2194
|
+
coinbase?: any;
|
|
2195
|
+
feeRecipient?: any;
|
|
2196
|
+
};
|
|
2197
|
+
nonRevertibleAccumulatedData: {
|
|
2198
|
+
noteHashes: string[];
|
|
2199
|
+
nullifiers: string[];
|
|
2200
|
+
};
|
|
2201
|
+
revertibleAccumulatedData: {
|
|
2202
|
+
noteHashes: string[];
|
|
2203
|
+
nullifiers: string[];
|
|
2204
|
+
};
|
|
2205
|
+
setupEnqueuedCalls: {
|
|
2206
|
+
isStaticCall: boolean;
|
|
2207
|
+
calldata: string[];
|
|
2208
|
+
contractAddress?: any;
|
|
2209
|
+
msgSender?: any;
|
|
2210
|
+
}[];
|
|
2211
|
+
appLogicEnqueuedCalls: {
|
|
2212
|
+
isStaticCall: boolean;
|
|
2213
|
+
calldata: string[];
|
|
2214
|
+
contractAddress?: any;
|
|
2215
|
+
msgSender?: any;
|
|
2216
|
+
}[];
|
|
2217
|
+
teardownEnqueuedCall: {
|
|
2218
|
+
isStaticCall: boolean;
|
|
2219
|
+
calldata: string[];
|
|
2220
|
+
contractAddress?: any;
|
|
2221
|
+
msgSender?: any;
|
|
2222
|
+
} | null;
|
|
2223
|
+
}>, AvmTxHint, {
|
|
2224
|
+
hash: string;
|
|
2225
|
+
globalVariables: {
|
|
2226
|
+
gasFees: {
|
|
2227
|
+
feePerDaGas: string;
|
|
2228
|
+
feePerL2Gas: string;
|
|
2229
|
+
};
|
|
2230
|
+
chainId?: any;
|
|
2231
|
+
version?: any;
|
|
2232
|
+
blockNumber?: any;
|
|
2233
|
+
slotNumber?: any;
|
|
2234
|
+
timestamp?: any;
|
|
2235
|
+
coinbase?: any;
|
|
2236
|
+
feeRecipient?: any;
|
|
2237
|
+
};
|
|
1628
2238
|
nonRevertibleAccumulatedData: {
|
|
1629
2239
|
noteHashes: string[];
|
|
1630
2240
|
nullifiers: string[];
|
|
@@ -1767,6 +2377,99 @@ export declare class AvmExecutionHints {
|
|
|
1767
2377
|
classId: string;
|
|
1768
2378
|
commitment: string;
|
|
1769
2379
|
}>, "many">;
|
|
2380
|
+
startingTreeRoots: z.ZodEffects<z.ZodObject<{
|
|
2381
|
+
l1ToL2MessageTree: z.ZodEffects<z.ZodObject<{
|
|
2382
|
+
root: z.ZodType<Fr, any, string>;
|
|
2383
|
+
nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
2384
|
+
}, "strip", z.ZodTypeAny, {
|
|
2385
|
+
root: Fr;
|
|
2386
|
+
nextAvailableLeafIndex: number;
|
|
2387
|
+
}, {
|
|
2388
|
+
root: string;
|
|
2389
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
2390
|
+
}>, AppendOnlyTreeSnapshot, {
|
|
2391
|
+
root: string;
|
|
2392
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
2393
|
+
}>;
|
|
2394
|
+
noteHashTree: z.ZodEffects<z.ZodObject<{
|
|
2395
|
+
root: z.ZodType<Fr, any, string>;
|
|
2396
|
+
nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
2397
|
+
}, "strip", z.ZodTypeAny, {
|
|
2398
|
+
root: Fr;
|
|
2399
|
+
nextAvailableLeafIndex: number;
|
|
2400
|
+
}, {
|
|
2401
|
+
root: string;
|
|
2402
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
2403
|
+
}>, AppendOnlyTreeSnapshot, {
|
|
2404
|
+
root: string;
|
|
2405
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
2406
|
+
}>;
|
|
2407
|
+
nullifierTree: z.ZodEffects<z.ZodObject<{
|
|
2408
|
+
root: z.ZodType<Fr, any, string>;
|
|
2409
|
+
nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
2410
|
+
}, "strip", z.ZodTypeAny, {
|
|
2411
|
+
root: Fr;
|
|
2412
|
+
nextAvailableLeafIndex: number;
|
|
2413
|
+
}, {
|
|
2414
|
+
root: string;
|
|
2415
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
2416
|
+
}>, AppendOnlyTreeSnapshot, {
|
|
2417
|
+
root: string;
|
|
2418
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
2419
|
+
}>;
|
|
2420
|
+
publicDataTree: z.ZodEffects<z.ZodObject<{
|
|
2421
|
+
root: z.ZodType<Fr, any, string>;
|
|
2422
|
+
nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
2423
|
+
}, "strip", z.ZodTypeAny, {
|
|
2424
|
+
root: Fr;
|
|
2425
|
+
nextAvailableLeafIndex: number;
|
|
2426
|
+
}, {
|
|
2427
|
+
root: string;
|
|
2428
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
2429
|
+
}>, AppendOnlyTreeSnapshot, {
|
|
2430
|
+
root: string;
|
|
2431
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
2432
|
+
}>;
|
|
2433
|
+
}, "strip", z.ZodTypeAny, {
|
|
2434
|
+
noteHashTree: AppendOnlyTreeSnapshot;
|
|
2435
|
+
nullifierTree: AppendOnlyTreeSnapshot;
|
|
2436
|
+
publicDataTree: AppendOnlyTreeSnapshot;
|
|
2437
|
+
l1ToL2MessageTree: AppendOnlyTreeSnapshot;
|
|
2438
|
+
}, {
|
|
2439
|
+
noteHashTree: {
|
|
2440
|
+
root: string;
|
|
2441
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
2442
|
+
};
|
|
2443
|
+
nullifierTree: {
|
|
2444
|
+
root: string;
|
|
2445
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
2446
|
+
};
|
|
2447
|
+
publicDataTree: {
|
|
2448
|
+
root: string;
|
|
2449
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
2450
|
+
};
|
|
2451
|
+
l1ToL2MessageTree: {
|
|
2452
|
+
root: string;
|
|
2453
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
2454
|
+
};
|
|
2455
|
+
}>, TreeSnapshots, {
|
|
2456
|
+
noteHashTree: {
|
|
2457
|
+
root: string;
|
|
2458
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
2459
|
+
};
|
|
2460
|
+
nullifierTree: {
|
|
2461
|
+
root: string;
|
|
2462
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
2463
|
+
};
|
|
2464
|
+
publicDataTree: {
|
|
2465
|
+
root: string;
|
|
2466
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
2467
|
+
};
|
|
2468
|
+
l1ToL2MessageTree: {
|
|
2469
|
+
root: string;
|
|
2470
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
2471
|
+
};
|
|
2472
|
+
}>;
|
|
1770
2473
|
getSiblingPathHints: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
1771
2474
|
hintKey: z.ZodEffects<z.ZodObject<{
|
|
1772
2475
|
root: z.ZodType<Fr, any, string>;
|
|
@@ -2695,21 +3398,155 @@ export declare class AvmExecutionHints {
|
|
|
2695
3398
|
};
|
|
2696
3399
|
nextKey: string;
|
|
2697
3400
|
nextIndex: string | number | bigint;
|
|
2698
|
-
}>, PublicDataTreeLeafPreimage, {
|
|
3401
|
+
}>, PublicDataTreeLeafPreimage, {
|
|
3402
|
+
leaf: {
|
|
3403
|
+
value: string;
|
|
3404
|
+
slot: string;
|
|
3405
|
+
};
|
|
3406
|
+
nextKey: string;
|
|
3407
|
+
nextIndex: string | number | bigint;
|
|
3408
|
+
}>;
|
|
3409
|
+
index: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
|
|
3410
|
+
path: z.ZodArray<z.ZodType<Fr, any, string>, "many">;
|
|
3411
|
+
}, "strip", z.ZodTypeAny, {
|
|
3412
|
+
path: Fr[];
|
|
3413
|
+
index: bigint;
|
|
3414
|
+
leaf: NullifierLeafPreimage | PublicDataTreeLeafPreimage;
|
|
3415
|
+
}, {
|
|
3416
|
+
path: string[];
|
|
3417
|
+
index: string | number | bigint;
|
|
3418
|
+
leaf: {
|
|
3419
|
+
leaf: {
|
|
3420
|
+
nullifier: string;
|
|
3421
|
+
};
|
|
3422
|
+
nextKey: string;
|
|
3423
|
+
nextIndex: string | number | bigint;
|
|
3424
|
+
} | {
|
|
3425
|
+
leaf: {
|
|
3426
|
+
value: string;
|
|
3427
|
+
slot: string;
|
|
3428
|
+
};
|
|
3429
|
+
nextKey: string;
|
|
3430
|
+
nextIndex: string | number | bigint;
|
|
3431
|
+
};
|
|
3432
|
+
}>;
|
|
3433
|
+
}, "strip", z.ZodTypeAny, {
|
|
3434
|
+
leaf: import("../trees/nullifier_leaf.js").NullifierLeaf | import("../trees/public_data_leaf.js").PublicDataTreeLeaf;
|
|
3435
|
+
hintKey: AppendOnlyTreeSnapshot;
|
|
3436
|
+
treeId: number;
|
|
3437
|
+
stateAfter: AppendOnlyTreeSnapshot;
|
|
3438
|
+
lowLeavesWitnessData: {
|
|
3439
|
+
path: Fr[];
|
|
3440
|
+
index: bigint;
|
|
3441
|
+
leaf: NullifierLeafPreimage | PublicDataTreeLeafPreimage;
|
|
3442
|
+
};
|
|
3443
|
+
insertionWitnessData: {
|
|
3444
|
+
path: Fr[];
|
|
3445
|
+
index: bigint;
|
|
3446
|
+
leaf: NullifierLeafPreimage | PublicDataTreeLeafPreimage;
|
|
3447
|
+
};
|
|
3448
|
+
}, {
|
|
3449
|
+
leaf: {
|
|
3450
|
+
nullifier: string;
|
|
3451
|
+
} | {
|
|
3452
|
+
value: string;
|
|
3453
|
+
slot: string;
|
|
3454
|
+
};
|
|
3455
|
+
hintKey: {
|
|
3456
|
+
root: string;
|
|
3457
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3458
|
+
};
|
|
3459
|
+
treeId: number;
|
|
3460
|
+
stateAfter: {
|
|
3461
|
+
root: string;
|
|
3462
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3463
|
+
};
|
|
3464
|
+
lowLeavesWitnessData: {
|
|
3465
|
+
path: string[];
|
|
3466
|
+
index: string | number | bigint;
|
|
3467
|
+
leaf: {
|
|
3468
|
+
leaf: {
|
|
3469
|
+
nullifier: string;
|
|
3470
|
+
};
|
|
3471
|
+
nextKey: string;
|
|
3472
|
+
nextIndex: string | number | bigint;
|
|
3473
|
+
} | {
|
|
3474
|
+
leaf: {
|
|
3475
|
+
value: string;
|
|
3476
|
+
slot: string;
|
|
3477
|
+
};
|
|
3478
|
+
nextKey: string;
|
|
3479
|
+
nextIndex: string | number | bigint;
|
|
3480
|
+
};
|
|
3481
|
+
};
|
|
3482
|
+
insertionWitnessData: {
|
|
3483
|
+
path: string[];
|
|
3484
|
+
index: string | number | bigint;
|
|
3485
|
+
leaf: {
|
|
3486
|
+
leaf: {
|
|
3487
|
+
nullifier: string;
|
|
3488
|
+
};
|
|
3489
|
+
nextKey: string;
|
|
3490
|
+
nextIndex: string | number | bigint;
|
|
3491
|
+
} | {
|
|
3492
|
+
leaf: {
|
|
3493
|
+
value: string;
|
|
3494
|
+
slot: string;
|
|
3495
|
+
};
|
|
3496
|
+
nextKey: string;
|
|
3497
|
+
nextIndex: string | number | bigint;
|
|
3498
|
+
};
|
|
3499
|
+
};
|
|
3500
|
+
}>, {
|
|
3501
|
+
readonly hintKey: AppendOnlyTreeSnapshot;
|
|
3502
|
+
readonly stateAfter: AppendOnlyTreeSnapshot;
|
|
3503
|
+
readonly treeId: MerkleTreeId;
|
|
3504
|
+
readonly leaf: import("../trees/nullifier_leaf.js").NullifierLeaf | import("../trees/public_data_leaf.js").PublicDataTreeLeaf;
|
|
3505
|
+
readonly lowLeavesWitnessData: {
|
|
3506
|
+
leaf: IndexedTreeLeafPreimages;
|
|
3507
|
+
index: bigint;
|
|
3508
|
+
path: Fr[];
|
|
3509
|
+
};
|
|
3510
|
+
readonly insertionWitnessData: {
|
|
3511
|
+
leaf: IndexedTreeLeafPreimages;
|
|
3512
|
+
index: bigint;
|
|
3513
|
+
path: Fr[];
|
|
3514
|
+
};
|
|
3515
|
+
}, {
|
|
3516
|
+
leaf: {
|
|
3517
|
+
nullifier: string;
|
|
3518
|
+
} | {
|
|
3519
|
+
value: string;
|
|
3520
|
+
slot: string;
|
|
3521
|
+
};
|
|
3522
|
+
hintKey: {
|
|
3523
|
+
root: string;
|
|
3524
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3525
|
+
};
|
|
3526
|
+
treeId: number;
|
|
3527
|
+
stateAfter: {
|
|
3528
|
+
root: string;
|
|
3529
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3530
|
+
};
|
|
3531
|
+
lowLeavesWitnessData: {
|
|
3532
|
+
path: string[];
|
|
3533
|
+
index: string | number | bigint;
|
|
3534
|
+
leaf: {
|
|
3535
|
+
leaf: {
|
|
3536
|
+
nullifier: string;
|
|
3537
|
+
};
|
|
3538
|
+
nextKey: string;
|
|
3539
|
+
nextIndex: string | number | bigint;
|
|
3540
|
+
} | {
|
|
2699
3541
|
leaf: {
|
|
2700
3542
|
value: string;
|
|
2701
3543
|
slot: string;
|
|
2702
3544
|
};
|
|
2703
3545
|
nextKey: string;
|
|
2704
3546
|
nextIndex: string | number | bigint;
|
|
2705
|
-
}
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
}, "strip", z.ZodTypeAny, {
|
|
2709
|
-
path: Fr[];
|
|
2710
|
-
index: bigint;
|
|
2711
|
-
leaf: NullifierLeafPreimage | PublicDataTreeLeafPreimage;
|
|
2712
|
-
}, {
|
|
3547
|
+
};
|
|
3548
|
+
};
|
|
3549
|
+
insertionWitnessData: {
|
|
2713
3550
|
path: string[];
|
|
2714
3551
|
index: string | number | bigint;
|
|
2715
3552
|
leaf: {
|
|
@@ -2726,159 +3563,382 @@ export declare class AvmExecutionHints {
|
|
|
2726
3563
|
nextKey: string;
|
|
2727
3564
|
nextIndex: string | number | bigint;
|
|
2728
3565
|
};
|
|
3566
|
+
};
|
|
3567
|
+
}>, "many">;
|
|
3568
|
+
appendLeavesHints: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
3569
|
+
hintKey: z.ZodEffects<z.ZodObject<{
|
|
3570
|
+
root: z.ZodType<Fr, any, string>;
|
|
3571
|
+
nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
3572
|
+
}, "strip", z.ZodTypeAny, {
|
|
3573
|
+
root: Fr;
|
|
3574
|
+
nextAvailableLeafIndex: number;
|
|
3575
|
+
}, {
|
|
3576
|
+
root: string;
|
|
3577
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3578
|
+
}>, AppendOnlyTreeSnapshot, {
|
|
3579
|
+
root: string;
|
|
3580
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3581
|
+
}>;
|
|
3582
|
+
stateAfter: z.ZodEffects<z.ZodObject<{
|
|
3583
|
+
root: z.ZodType<Fr, any, string>;
|
|
3584
|
+
nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
3585
|
+
}, "strip", z.ZodTypeAny, {
|
|
3586
|
+
root: Fr;
|
|
3587
|
+
nextAvailableLeafIndex: number;
|
|
3588
|
+
}, {
|
|
3589
|
+
root: string;
|
|
3590
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3591
|
+
}>, AppendOnlyTreeSnapshot, {
|
|
3592
|
+
root: string;
|
|
3593
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3594
|
+
}>;
|
|
3595
|
+
treeId: z.ZodNumber;
|
|
3596
|
+
leaves: z.ZodArray<z.ZodType<Fr, any, string>, "many">;
|
|
3597
|
+
}, "strip", z.ZodTypeAny, {
|
|
3598
|
+
hintKey: AppendOnlyTreeSnapshot;
|
|
3599
|
+
treeId: number;
|
|
3600
|
+
stateAfter: AppendOnlyTreeSnapshot;
|
|
3601
|
+
leaves: Fr[];
|
|
3602
|
+
}, {
|
|
3603
|
+
hintKey: {
|
|
3604
|
+
root: string;
|
|
3605
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3606
|
+
};
|
|
3607
|
+
treeId: number;
|
|
3608
|
+
stateAfter: {
|
|
3609
|
+
root: string;
|
|
3610
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3611
|
+
};
|
|
3612
|
+
leaves: string[];
|
|
3613
|
+
}>, AvmAppendLeavesHint, {
|
|
3614
|
+
hintKey: {
|
|
3615
|
+
root: string;
|
|
3616
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3617
|
+
};
|
|
3618
|
+
treeId: number;
|
|
3619
|
+
stateAfter: {
|
|
3620
|
+
root: string;
|
|
3621
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3622
|
+
};
|
|
3623
|
+
leaves: string[];
|
|
3624
|
+
}>, "many">;
|
|
3625
|
+
createCheckpointHints: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
3626
|
+
actionCounter: z.ZodNumber;
|
|
3627
|
+
oldCheckpointId: z.ZodNumber;
|
|
3628
|
+
newCheckpointId: z.ZodNumber;
|
|
3629
|
+
}, "strip", z.ZodTypeAny, {
|
|
3630
|
+
actionCounter: number;
|
|
3631
|
+
oldCheckpointId: number;
|
|
3632
|
+
newCheckpointId: number;
|
|
3633
|
+
}, {
|
|
3634
|
+
actionCounter: number;
|
|
3635
|
+
oldCheckpointId: number;
|
|
3636
|
+
newCheckpointId: number;
|
|
3637
|
+
}>, AvmCheckpointActionNoStateChangeHint, {
|
|
3638
|
+
actionCounter: number;
|
|
3639
|
+
oldCheckpointId: number;
|
|
3640
|
+
newCheckpointId: number;
|
|
3641
|
+
}>, "many">;
|
|
3642
|
+
commitCheckpointHints: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
3643
|
+
actionCounter: z.ZodNumber;
|
|
3644
|
+
oldCheckpointId: z.ZodNumber;
|
|
3645
|
+
newCheckpointId: z.ZodNumber;
|
|
3646
|
+
}, "strip", z.ZodTypeAny, {
|
|
3647
|
+
actionCounter: number;
|
|
3648
|
+
oldCheckpointId: number;
|
|
3649
|
+
newCheckpointId: number;
|
|
3650
|
+
}, {
|
|
3651
|
+
actionCounter: number;
|
|
3652
|
+
oldCheckpointId: number;
|
|
3653
|
+
newCheckpointId: number;
|
|
3654
|
+
}>, AvmCheckpointActionNoStateChangeHint, {
|
|
3655
|
+
actionCounter: number;
|
|
3656
|
+
oldCheckpointId: number;
|
|
3657
|
+
newCheckpointId: number;
|
|
3658
|
+
}>, "many">;
|
|
3659
|
+
revertCheckpointHints: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
3660
|
+
actionCounter: z.ZodNumber;
|
|
3661
|
+
oldCheckpointId: z.ZodNumber;
|
|
3662
|
+
newCheckpointId: z.ZodNumber;
|
|
3663
|
+
stateBefore: z.ZodEffects<z.ZodObject<{
|
|
3664
|
+
l1ToL2MessageTree: z.ZodEffects<z.ZodObject<{
|
|
3665
|
+
root: z.ZodType<Fr, any, string>;
|
|
3666
|
+
nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
3667
|
+
}, "strip", z.ZodTypeAny, {
|
|
3668
|
+
root: Fr;
|
|
3669
|
+
nextAvailableLeafIndex: number;
|
|
3670
|
+
}, {
|
|
3671
|
+
root: string;
|
|
3672
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3673
|
+
}>, AppendOnlyTreeSnapshot, {
|
|
3674
|
+
root: string;
|
|
3675
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3676
|
+
}>;
|
|
3677
|
+
noteHashTree: z.ZodEffects<z.ZodObject<{
|
|
3678
|
+
root: z.ZodType<Fr, any, string>;
|
|
3679
|
+
nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
3680
|
+
}, "strip", z.ZodTypeAny, {
|
|
3681
|
+
root: Fr;
|
|
3682
|
+
nextAvailableLeafIndex: number;
|
|
3683
|
+
}, {
|
|
3684
|
+
root: string;
|
|
3685
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3686
|
+
}>, AppendOnlyTreeSnapshot, {
|
|
3687
|
+
root: string;
|
|
3688
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3689
|
+
}>;
|
|
3690
|
+
nullifierTree: z.ZodEffects<z.ZodObject<{
|
|
3691
|
+
root: z.ZodType<Fr, any, string>;
|
|
3692
|
+
nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
3693
|
+
}, "strip", z.ZodTypeAny, {
|
|
3694
|
+
root: Fr;
|
|
3695
|
+
nextAvailableLeafIndex: number;
|
|
3696
|
+
}, {
|
|
3697
|
+
root: string;
|
|
3698
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3699
|
+
}>, AppendOnlyTreeSnapshot, {
|
|
3700
|
+
root: string;
|
|
3701
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3702
|
+
}>;
|
|
3703
|
+
publicDataTree: z.ZodEffects<z.ZodObject<{
|
|
3704
|
+
root: z.ZodType<Fr, any, string>;
|
|
3705
|
+
nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
3706
|
+
}, "strip", z.ZodTypeAny, {
|
|
3707
|
+
root: Fr;
|
|
3708
|
+
nextAvailableLeafIndex: number;
|
|
3709
|
+
}, {
|
|
3710
|
+
root: string;
|
|
3711
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3712
|
+
}>, AppendOnlyTreeSnapshot, {
|
|
3713
|
+
root: string;
|
|
3714
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3715
|
+
}>;
|
|
3716
|
+
}, "strip", z.ZodTypeAny, {
|
|
3717
|
+
noteHashTree: AppendOnlyTreeSnapshot;
|
|
3718
|
+
nullifierTree: AppendOnlyTreeSnapshot;
|
|
3719
|
+
publicDataTree: AppendOnlyTreeSnapshot;
|
|
3720
|
+
l1ToL2MessageTree: AppendOnlyTreeSnapshot;
|
|
3721
|
+
}, {
|
|
3722
|
+
noteHashTree: {
|
|
3723
|
+
root: string;
|
|
3724
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3725
|
+
};
|
|
3726
|
+
nullifierTree: {
|
|
3727
|
+
root: string;
|
|
3728
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3729
|
+
};
|
|
3730
|
+
publicDataTree: {
|
|
3731
|
+
root: string;
|
|
3732
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3733
|
+
};
|
|
3734
|
+
l1ToL2MessageTree: {
|
|
3735
|
+
root: string;
|
|
3736
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3737
|
+
};
|
|
3738
|
+
}>, TreeSnapshots, {
|
|
3739
|
+
noteHashTree: {
|
|
3740
|
+
root: string;
|
|
3741
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3742
|
+
};
|
|
3743
|
+
nullifierTree: {
|
|
3744
|
+
root: string;
|
|
3745
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3746
|
+
};
|
|
3747
|
+
publicDataTree: {
|
|
3748
|
+
root: string;
|
|
3749
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3750
|
+
};
|
|
3751
|
+
l1ToL2MessageTree: {
|
|
3752
|
+
root: string;
|
|
3753
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3754
|
+
};
|
|
3755
|
+
}>;
|
|
3756
|
+
stateAfter: z.ZodEffects<z.ZodObject<{
|
|
3757
|
+
l1ToL2MessageTree: z.ZodEffects<z.ZodObject<{
|
|
3758
|
+
root: z.ZodType<Fr, any, string>;
|
|
3759
|
+
nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
3760
|
+
}, "strip", z.ZodTypeAny, {
|
|
3761
|
+
root: Fr;
|
|
3762
|
+
nextAvailableLeafIndex: number;
|
|
3763
|
+
}, {
|
|
3764
|
+
root: string;
|
|
3765
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3766
|
+
}>, AppendOnlyTreeSnapshot, {
|
|
3767
|
+
root: string;
|
|
3768
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3769
|
+
}>;
|
|
3770
|
+
noteHashTree: z.ZodEffects<z.ZodObject<{
|
|
3771
|
+
root: z.ZodType<Fr, any, string>;
|
|
3772
|
+
nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
3773
|
+
}, "strip", z.ZodTypeAny, {
|
|
3774
|
+
root: Fr;
|
|
3775
|
+
nextAvailableLeafIndex: number;
|
|
3776
|
+
}, {
|
|
3777
|
+
root: string;
|
|
3778
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3779
|
+
}>, AppendOnlyTreeSnapshot, {
|
|
3780
|
+
root: string;
|
|
3781
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3782
|
+
}>;
|
|
3783
|
+
nullifierTree: z.ZodEffects<z.ZodObject<{
|
|
3784
|
+
root: z.ZodType<Fr, any, string>;
|
|
3785
|
+
nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
3786
|
+
}, "strip", z.ZodTypeAny, {
|
|
3787
|
+
root: Fr;
|
|
3788
|
+
nextAvailableLeafIndex: number;
|
|
3789
|
+
}, {
|
|
3790
|
+
root: string;
|
|
3791
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3792
|
+
}>, AppendOnlyTreeSnapshot, {
|
|
3793
|
+
root: string;
|
|
3794
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3795
|
+
}>;
|
|
3796
|
+
publicDataTree: z.ZodEffects<z.ZodObject<{
|
|
3797
|
+
root: z.ZodType<Fr, any, string>;
|
|
3798
|
+
nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
3799
|
+
}, "strip", z.ZodTypeAny, {
|
|
3800
|
+
root: Fr;
|
|
3801
|
+
nextAvailableLeafIndex: number;
|
|
3802
|
+
}, {
|
|
3803
|
+
root: string;
|
|
3804
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3805
|
+
}>, AppendOnlyTreeSnapshot, {
|
|
3806
|
+
root: string;
|
|
3807
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3808
|
+
}>;
|
|
3809
|
+
}, "strip", z.ZodTypeAny, {
|
|
3810
|
+
noteHashTree: AppendOnlyTreeSnapshot;
|
|
3811
|
+
nullifierTree: AppendOnlyTreeSnapshot;
|
|
3812
|
+
publicDataTree: AppendOnlyTreeSnapshot;
|
|
3813
|
+
l1ToL2MessageTree: AppendOnlyTreeSnapshot;
|
|
3814
|
+
}, {
|
|
3815
|
+
noteHashTree: {
|
|
3816
|
+
root: string;
|
|
3817
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3818
|
+
};
|
|
3819
|
+
nullifierTree: {
|
|
3820
|
+
root: string;
|
|
3821
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3822
|
+
};
|
|
3823
|
+
publicDataTree: {
|
|
3824
|
+
root: string;
|
|
3825
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3826
|
+
};
|
|
3827
|
+
l1ToL2MessageTree: {
|
|
3828
|
+
root: string;
|
|
3829
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3830
|
+
};
|
|
3831
|
+
}>, TreeSnapshots, {
|
|
3832
|
+
noteHashTree: {
|
|
3833
|
+
root: string;
|
|
3834
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3835
|
+
};
|
|
3836
|
+
nullifierTree: {
|
|
3837
|
+
root: string;
|
|
3838
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3839
|
+
};
|
|
3840
|
+
publicDataTree: {
|
|
3841
|
+
root: string;
|
|
3842
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3843
|
+
};
|
|
3844
|
+
l1ToL2MessageTree: {
|
|
3845
|
+
root: string;
|
|
3846
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3847
|
+
};
|
|
2729
3848
|
}>;
|
|
2730
3849
|
}, "strip", z.ZodTypeAny, {
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
path: Fr[];
|
|
2737
|
-
index: bigint;
|
|
2738
|
-
leaf: NullifierLeafPreimage | PublicDataTreeLeafPreimage;
|
|
2739
|
-
};
|
|
2740
|
-
insertionWitnessData: {
|
|
2741
|
-
path: Fr[];
|
|
2742
|
-
index: bigint;
|
|
2743
|
-
leaf: NullifierLeafPreimage | PublicDataTreeLeafPreimage;
|
|
2744
|
-
};
|
|
3850
|
+
stateAfter: TreeSnapshots;
|
|
3851
|
+
actionCounter: number;
|
|
3852
|
+
oldCheckpointId: number;
|
|
3853
|
+
newCheckpointId: number;
|
|
3854
|
+
stateBefore: TreeSnapshots;
|
|
2745
3855
|
}, {
|
|
2746
|
-
leaf: {
|
|
2747
|
-
nullifier: string;
|
|
2748
|
-
} | {
|
|
2749
|
-
value: string;
|
|
2750
|
-
slot: string;
|
|
2751
|
-
};
|
|
2752
|
-
hintKey: {
|
|
2753
|
-
root: string;
|
|
2754
|
-
nextAvailableLeafIndex: string | number | bigint;
|
|
2755
|
-
};
|
|
2756
|
-
treeId: number;
|
|
2757
3856
|
stateAfter: {
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
lowLeavesWitnessData: {
|
|
2762
|
-
path: string[];
|
|
2763
|
-
index: string | number | bigint;
|
|
2764
|
-
leaf: {
|
|
2765
|
-
leaf: {
|
|
2766
|
-
nullifier: string;
|
|
2767
|
-
};
|
|
2768
|
-
nextKey: string;
|
|
2769
|
-
nextIndex: string | number | bigint;
|
|
2770
|
-
} | {
|
|
2771
|
-
leaf: {
|
|
2772
|
-
value: string;
|
|
2773
|
-
slot: string;
|
|
2774
|
-
};
|
|
2775
|
-
nextKey: string;
|
|
2776
|
-
nextIndex: string | number | bigint;
|
|
3857
|
+
noteHashTree: {
|
|
3858
|
+
root: string;
|
|
3859
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
2777
3860
|
};
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
leaf: {
|
|
2790
|
-
value: string;
|
|
2791
|
-
slot: string;
|
|
2792
|
-
};
|
|
2793
|
-
nextKey: string;
|
|
2794
|
-
nextIndex: string | number | bigint;
|
|
3861
|
+
nullifierTree: {
|
|
3862
|
+
root: string;
|
|
3863
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3864
|
+
};
|
|
3865
|
+
publicDataTree: {
|
|
3866
|
+
root: string;
|
|
3867
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3868
|
+
};
|
|
3869
|
+
l1ToL2MessageTree: {
|
|
3870
|
+
root: string;
|
|
3871
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
2795
3872
|
};
|
|
2796
3873
|
};
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
slot: string;
|
|
2818
|
-
};
|
|
2819
|
-
hintKey: {
|
|
2820
|
-
root: string;
|
|
2821
|
-
nextAvailableLeafIndex: string | number | bigint;
|
|
3874
|
+
actionCounter: number;
|
|
3875
|
+
oldCheckpointId: number;
|
|
3876
|
+
newCheckpointId: number;
|
|
3877
|
+
stateBefore: {
|
|
3878
|
+
noteHashTree: {
|
|
3879
|
+
root: string;
|
|
3880
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3881
|
+
};
|
|
3882
|
+
nullifierTree: {
|
|
3883
|
+
root: string;
|
|
3884
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3885
|
+
};
|
|
3886
|
+
publicDataTree: {
|
|
3887
|
+
root: string;
|
|
3888
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3889
|
+
};
|
|
3890
|
+
l1ToL2MessageTree: {
|
|
3891
|
+
root: string;
|
|
3892
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3893
|
+
};
|
|
2822
3894
|
};
|
|
2823
|
-
|
|
3895
|
+
}>, AvmRevertCheckpointHint, {
|
|
2824
3896
|
stateAfter: {
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
slot: string;
|
|
2841
|
-
};
|
|
2842
|
-
nextKey: string;
|
|
2843
|
-
nextIndex: string | number | bigint;
|
|
3897
|
+
noteHashTree: {
|
|
3898
|
+
root: string;
|
|
3899
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3900
|
+
};
|
|
3901
|
+
nullifierTree: {
|
|
3902
|
+
root: string;
|
|
3903
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3904
|
+
};
|
|
3905
|
+
publicDataTree: {
|
|
3906
|
+
root: string;
|
|
3907
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3908
|
+
};
|
|
3909
|
+
l1ToL2MessageTree: {
|
|
3910
|
+
root: string;
|
|
3911
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
2844
3912
|
};
|
|
2845
3913
|
};
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
3914
|
+
actionCounter: number;
|
|
3915
|
+
oldCheckpointId: number;
|
|
3916
|
+
newCheckpointId: number;
|
|
3917
|
+
stateBefore: {
|
|
3918
|
+
noteHashTree: {
|
|
3919
|
+
root: string;
|
|
3920
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3921
|
+
};
|
|
3922
|
+
nullifierTree: {
|
|
3923
|
+
root: string;
|
|
3924
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3925
|
+
};
|
|
3926
|
+
publicDataTree: {
|
|
3927
|
+
root: string;
|
|
3928
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3929
|
+
};
|
|
3930
|
+
l1ToL2MessageTree: {
|
|
3931
|
+
root: string;
|
|
3932
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
2862
3933
|
};
|
|
2863
3934
|
};
|
|
2864
3935
|
}>, "many">;
|
|
2865
3936
|
}, "strip", z.ZodTypeAny, {
|
|
2866
|
-
tx:
|
|
2867
|
-
nonRevertibleAccumulatedData: {
|
|
2868
|
-
noteHashes: Fr[];
|
|
2869
|
-
nullifiers: Fr[];
|
|
2870
|
-
};
|
|
2871
|
-
revertibleAccumulatedData: {
|
|
2872
|
-
noteHashes: Fr[];
|
|
2873
|
-
nullifiers: Fr[];
|
|
2874
|
-
};
|
|
2875
|
-
setupEnqueuedCalls: AvmEnqueuedCallHint[];
|
|
2876
|
-
appLogicEnqueuedCalls: AvmEnqueuedCallHint[];
|
|
2877
|
-
teardownEnqueuedCall: AvmEnqueuedCallHint | null;
|
|
2878
|
-
};
|
|
3937
|
+
tx: AvmTxHint;
|
|
2879
3938
|
contractInstances: AvmContractInstanceHint[];
|
|
2880
3939
|
contractClasses: AvmContractClassHint[];
|
|
2881
3940
|
bytecodeCommitments: AvmBytecodeCommitmentHint[];
|
|
3941
|
+
startingTreeRoots: TreeSnapshots;
|
|
2882
3942
|
getSiblingPathHints: AvmGetSiblingPathHint[];
|
|
2883
3943
|
getPreviousValueIndexHints: AvmGetPreviousValueIndexHint[];
|
|
2884
3944
|
getLeafPreimageHintsPublicDataTree: {
|
|
@@ -2923,9 +3983,27 @@ export declare class AvmExecutionHints {
|
|
|
2923
3983
|
index: bigint;
|
|
2924
3984
|
path: Fr[];
|
|
2925
3985
|
};
|
|
2926
|
-
}[];
|
|
2927
|
-
|
|
2928
|
-
|
|
3986
|
+
}[];
|
|
3987
|
+
appendLeavesHints: AvmAppendLeavesHint[];
|
|
3988
|
+
createCheckpointHints: AvmCheckpointActionNoStateChangeHint[];
|
|
3989
|
+
commitCheckpointHints: AvmCheckpointActionNoStateChangeHint[];
|
|
3990
|
+
revertCheckpointHints: AvmRevertCheckpointHint[];
|
|
3991
|
+
}, {
|
|
3992
|
+
tx: {
|
|
3993
|
+
hash: string;
|
|
3994
|
+
globalVariables: {
|
|
3995
|
+
gasFees: {
|
|
3996
|
+
feePerDaGas: string;
|
|
3997
|
+
feePerL2Gas: string;
|
|
3998
|
+
};
|
|
3999
|
+
chainId?: any;
|
|
4000
|
+
version?: any;
|
|
4001
|
+
blockNumber?: any;
|
|
4002
|
+
slotNumber?: any;
|
|
4003
|
+
timestamp?: any;
|
|
4004
|
+
coinbase?: any;
|
|
4005
|
+
feeRecipient?: any;
|
|
4006
|
+
};
|
|
2929
4007
|
nonRevertibleAccumulatedData: {
|
|
2930
4008
|
noteHashes: string[];
|
|
2931
4009
|
nullifiers: string[];
|
|
@@ -2980,6 +4058,24 @@ export declare class AvmExecutionHints {
|
|
|
2980
4058
|
classId: string;
|
|
2981
4059
|
commitment: string;
|
|
2982
4060
|
}[];
|
|
4061
|
+
startingTreeRoots: {
|
|
4062
|
+
noteHashTree: {
|
|
4063
|
+
root: string;
|
|
4064
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
4065
|
+
};
|
|
4066
|
+
nullifierTree: {
|
|
4067
|
+
root: string;
|
|
4068
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
4069
|
+
};
|
|
4070
|
+
publicDataTree: {
|
|
4071
|
+
root: string;
|
|
4072
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
4073
|
+
};
|
|
4074
|
+
l1ToL2MessageTree: {
|
|
4075
|
+
root: string;
|
|
4076
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
4077
|
+
};
|
|
4078
|
+
};
|
|
2983
4079
|
getSiblingPathHints: {
|
|
2984
4080
|
path: string[];
|
|
2985
4081
|
index: string | number | bigint;
|
|
@@ -3156,8 +4252,85 @@ export declare class AvmExecutionHints {
|
|
|
3156
4252
|
};
|
|
3157
4253
|
};
|
|
3158
4254
|
}[];
|
|
4255
|
+
appendLeavesHints: {
|
|
4256
|
+
hintKey: {
|
|
4257
|
+
root: string;
|
|
4258
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
4259
|
+
};
|
|
4260
|
+
treeId: number;
|
|
4261
|
+
stateAfter: {
|
|
4262
|
+
root: string;
|
|
4263
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
4264
|
+
};
|
|
4265
|
+
leaves: string[];
|
|
4266
|
+
}[];
|
|
4267
|
+
createCheckpointHints: {
|
|
4268
|
+
actionCounter: number;
|
|
4269
|
+
oldCheckpointId: number;
|
|
4270
|
+
newCheckpointId: number;
|
|
4271
|
+
}[];
|
|
4272
|
+
commitCheckpointHints: {
|
|
4273
|
+
actionCounter: number;
|
|
4274
|
+
oldCheckpointId: number;
|
|
4275
|
+
newCheckpointId: number;
|
|
4276
|
+
}[];
|
|
4277
|
+
revertCheckpointHints: {
|
|
4278
|
+
stateAfter: {
|
|
4279
|
+
noteHashTree: {
|
|
4280
|
+
root: string;
|
|
4281
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
4282
|
+
};
|
|
4283
|
+
nullifierTree: {
|
|
4284
|
+
root: string;
|
|
4285
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
4286
|
+
};
|
|
4287
|
+
publicDataTree: {
|
|
4288
|
+
root: string;
|
|
4289
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
4290
|
+
};
|
|
4291
|
+
l1ToL2MessageTree: {
|
|
4292
|
+
root: string;
|
|
4293
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
4294
|
+
};
|
|
4295
|
+
};
|
|
4296
|
+
actionCounter: number;
|
|
4297
|
+
oldCheckpointId: number;
|
|
4298
|
+
newCheckpointId: number;
|
|
4299
|
+
stateBefore: {
|
|
4300
|
+
noteHashTree: {
|
|
4301
|
+
root: string;
|
|
4302
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
4303
|
+
};
|
|
4304
|
+
nullifierTree: {
|
|
4305
|
+
root: string;
|
|
4306
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
4307
|
+
};
|
|
4308
|
+
publicDataTree: {
|
|
4309
|
+
root: string;
|
|
4310
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
4311
|
+
};
|
|
4312
|
+
l1ToL2MessageTree: {
|
|
4313
|
+
root: string;
|
|
4314
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
4315
|
+
};
|
|
4316
|
+
};
|
|
4317
|
+
}[];
|
|
3159
4318
|
}>, AvmExecutionHints, {
|
|
3160
4319
|
tx: {
|
|
4320
|
+
hash: string;
|
|
4321
|
+
globalVariables: {
|
|
4322
|
+
gasFees: {
|
|
4323
|
+
feePerDaGas: string;
|
|
4324
|
+
feePerL2Gas: string;
|
|
4325
|
+
};
|
|
4326
|
+
chainId?: any;
|
|
4327
|
+
version?: any;
|
|
4328
|
+
blockNumber?: any;
|
|
4329
|
+
slotNumber?: any;
|
|
4330
|
+
timestamp?: any;
|
|
4331
|
+
coinbase?: any;
|
|
4332
|
+
feeRecipient?: any;
|
|
4333
|
+
};
|
|
3161
4334
|
nonRevertibleAccumulatedData: {
|
|
3162
4335
|
noteHashes: string[];
|
|
3163
4336
|
nullifiers: string[];
|
|
@@ -3212,6 +4385,24 @@ export declare class AvmExecutionHints {
|
|
|
3212
4385
|
classId: string;
|
|
3213
4386
|
commitment: string;
|
|
3214
4387
|
}[];
|
|
4388
|
+
startingTreeRoots: {
|
|
4389
|
+
noteHashTree: {
|
|
4390
|
+
root: string;
|
|
4391
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
4392
|
+
};
|
|
4393
|
+
nullifierTree: {
|
|
4394
|
+
root: string;
|
|
4395
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
4396
|
+
};
|
|
4397
|
+
publicDataTree: {
|
|
4398
|
+
root: string;
|
|
4399
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
4400
|
+
};
|
|
4401
|
+
l1ToL2MessageTree: {
|
|
4402
|
+
root: string;
|
|
4403
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
4404
|
+
};
|
|
4405
|
+
};
|
|
3215
4406
|
getSiblingPathHints: {
|
|
3216
4407
|
path: string[];
|
|
3217
4408
|
index: string | number | bigint;
|
|
@@ -3388,21 +4579,135 @@ export declare class AvmExecutionHints {
|
|
|
3388
4579
|
};
|
|
3389
4580
|
};
|
|
3390
4581
|
}[];
|
|
4582
|
+
appendLeavesHints: {
|
|
4583
|
+
hintKey: {
|
|
4584
|
+
root: string;
|
|
4585
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
4586
|
+
};
|
|
4587
|
+
treeId: number;
|
|
4588
|
+
stateAfter: {
|
|
4589
|
+
root: string;
|
|
4590
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
4591
|
+
};
|
|
4592
|
+
leaves: string[];
|
|
4593
|
+
}[];
|
|
4594
|
+
createCheckpointHints: {
|
|
4595
|
+
actionCounter: number;
|
|
4596
|
+
oldCheckpointId: number;
|
|
4597
|
+
newCheckpointId: number;
|
|
4598
|
+
}[];
|
|
4599
|
+
commitCheckpointHints: {
|
|
4600
|
+
actionCounter: number;
|
|
4601
|
+
oldCheckpointId: number;
|
|
4602
|
+
newCheckpointId: number;
|
|
4603
|
+
}[];
|
|
4604
|
+
revertCheckpointHints: {
|
|
4605
|
+
stateAfter: {
|
|
4606
|
+
noteHashTree: {
|
|
4607
|
+
root: string;
|
|
4608
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
4609
|
+
};
|
|
4610
|
+
nullifierTree: {
|
|
4611
|
+
root: string;
|
|
4612
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
4613
|
+
};
|
|
4614
|
+
publicDataTree: {
|
|
4615
|
+
root: string;
|
|
4616
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
4617
|
+
};
|
|
4618
|
+
l1ToL2MessageTree: {
|
|
4619
|
+
root: string;
|
|
4620
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
4621
|
+
};
|
|
4622
|
+
};
|
|
4623
|
+
actionCounter: number;
|
|
4624
|
+
oldCheckpointId: number;
|
|
4625
|
+
newCheckpointId: number;
|
|
4626
|
+
stateBefore: {
|
|
4627
|
+
noteHashTree: {
|
|
4628
|
+
root: string;
|
|
4629
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
4630
|
+
};
|
|
4631
|
+
nullifierTree: {
|
|
4632
|
+
root: string;
|
|
4633
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
4634
|
+
};
|
|
4635
|
+
publicDataTree: {
|
|
4636
|
+
root: string;
|
|
4637
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
4638
|
+
};
|
|
4639
|
+
l1ToL2MessageTree: {
|
|
4640
|
+
root: string;
|
|
4641
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
4642
|
+
};
|
|
4643
|
+
};
|
|
4644
|
+
}[];
|
|
3391
4645
|
}>;
|
|
3392
4646
|
}
|
|
3393
4647
|
export declare class AvmCircuitInputs {
|
|
3394
|
-
readonly functionName: string;
|
|
3395
|
-
readonly calldata: Fr[];
|
|
3396
4648
|
readonly hints: AvmExecutionHints;
|
|
3397
4649
|
publicInputs: AvmCircuitPublicInputs;
|
|
3398
|
-
constructor(
|
|
3399
|
-
calldata: Fr[], hints: AvmExecutionHints, publicInputs: AvmCircuitPublicInputs);
|
|
4650
|
+
constructor(hints: AvmExecutionHints, publicInputs: AvmCircuitPublicInputs);
|
|
3400
4651
|
static empty(): AvmCircuitInputs;
|
|
3401
4652
|
static get schema(): z.ZodEffects<z.ZodObject<{
|
|
3402
|
-
functionName: z.ZodString;
|
|
3403
|
-
calldata: z.ZodArray<z.ZodType<Fr, any, string>, "many">;
|
|
3404
4653
|
hints: z.ZodEffects<z.ZodObject<{
|
|
3405
|
-
tx: z.ZodObject<{
|
|
4654
|
+
tx: z.ZodEffects<z.ZodObject<{
|
|
4655
|
+
hash: z.ZodString;
|
|
4656
|
+
globalVariables: z.ZodEffects<z.ZodObject<{
|
|
4657
|
+
chainId: import("@aztec/foundation/schemas").ZodFor<Fr>;
|
|
4658
|
+
version: import("@aztec/foundation/schemas").ZodFor<Fr>;
|
|
4659
|
+
blockNumber: import("@aztec/foundation/schemas").ZodFor<Fr>;
|
|
4660
|
+
slotNumber: import("@aztec/foundation/schemas").ZodFor<Fr>;
|
|
4661
|
+
timestamp: import("@aztec/foundation/schemas").ZodFor<Fr>;
|
|
4662
|
+
coinbase: import("@aztec/foundation/schemas").ZodFor<import("@aztec/foundation/schemas").EthAddress>;
|
|
4663
|
+
feeRecipient: import("@aztec/foundation/schemas").ZodFor<AztecAddress>;
|
|
4664
|
+
gasFees: z.ZodEffects<z.ZodObject<{
|
|
4665
|
+
feePerDaGas: z.ZodType<Fr, any, string>;
|
|
4666
|
+
feePerL2Gas: z.ZodType<Fr, any, string>;
|
|
4667
|
+
}, "strip", z.ZodTypeAny, {
|
|
4668
|
+
feePerDaGas: Fr;
|
|
4669
|
+
feePerL2Gas: Fr;
|
|
4670
|
+
}, {
|
|
4671
|
+
feePerDaGas: string;
|
|
4672
|
+
feePerL2Gas: string;
|
|
4673
|
+
}>, import("../gas/gas_fees.js").GasFees, {
|
|
4674
|
+
feePerDaGas: string;
|
|
4675
|
+
feePerL2Gas: string;
|
|
4676
|
+
}>;
|
|
4677
|
+
}, "strip", z.ZodTypeAny, {
|
|
4678
|
+
chainId: Fr;
|
|
4679
|
+
version: Fr;
|
|
4680
|
+
blockNumber: Fr;
|
|
4681
|
+
slotNumber: Fr;
|
|
4682
|
+
timestamp: Fr;
|
|
4683
|
+
coinbase: import("@aztec/foundation/schemas").EthAddress;
|
|
4684
|
+
feeRecipient: AztecAddress;
|
|
4685
|
+
gasFees: import("../gas/gas_fees.js").GasFees;
|
|
4686
|
+
}, {
|
|
4687
|
+
gasFees: {
|
|
4688
|
+
feePerDaGas: string;
|
|
4689
|
+
feePerL2Gas: string;
|
|
4690
|
+
};
|
|
4691
|
+
chainId?: any;
|
|
4692
|
+
version?: any;
|
|
4693
|
+
blockNumber?: any;
|
|
4694
|
+
slotNumber?: any;
|
|
4695
|
+
timestamp?: any;
|
|
4696
|
+
coinbase?: any;
|
|
4697
|
+
feeRecipient?: any;
|
|
4698
|
+
}>, GlobalVariables, {
|
|
4699
|
+
gasFees: {
|
|
4700
|
+
feePerDaGas: string;
|
|
4701
|
+
feePerL2Gas: string;
|
|
4702
|
+
};
|
|
4703
|
+
chainId?: any;
|
|
4704
|
+
version?: any;
|
|
4705
|
+
blockNumber?: any;
|
|
4706
|
+
slotNumber?: any;
|
|
4707
|
+
timestamp?: any;
|
|
4708
|
+
coinbase?: any;
|
|
4709
|
+
feeRecipient?: any;
|
|
4710
|
+
}>;
|
|
3406
4711
|
nonRevertibleAccumulatedData: z.ZodObject<{
|
|
3407
4712
|
noteHashes: z.ZodArray<z.ZodType<Fr, any, string>, "many">;
|
|
3408
4713
|
nullifiers: z.ZodArray<z.ZodType<Fr, any, string>, "many">;
|
|
@@ -3487,6 +4792,8 @@ export declare class AvmCircuitInputs {
|
|
|
3487
4792
|
msgSender?: any;
|
|
3488
4793
|
}>>;
|
|
3489
4794
|
}, "strip", z.ZodTypeAny, {
|
|
4795
|
+
hash: string;
|
|
4796
|
+
globalVariables: GlobalVariables;
|
|
3490
4797
|
nonRevertibleAccumulatedData: {
|
|
3491
4798
|
noteHashes: Fr[];
|
|
3492
4799
|
nullifiers: Fr[];
|
|
@@ -3499,6 +4806,61 @@ export declare class AvmCircuitInputs {
|
|
|
3499
4806
|
appLogicEnqueuedCalls: AvmEnqueuedCallHint[];
|
|
3500
4807
|
teardownEnqueuedCall: AvmEnqueuedCallHint | null;
|
|
3501
4808
|
}, {
|
|
4809
|
+
hash: string;
|
|
4810
|
+
globalVariables: {
|
|
4811
|
+
gasFees: {
|
|
4812
|
+
feePerDaGas: string;
|
|
4813
|
+
feePerL2Gas: string;
|
|
4814
|
+
};
|
|
4815
|
+
chainId?: any;
|
|
4816
|
+
version?: any;
|
|
4817
|
+
blockNumber?: any;
|
|
4818
|
+
slotNumber?: any;
|
|
4819
|
+
timestamp?: any;
|
|
4820
|
+
coinbase?: any;
|
|
4821
|
+
feeRecipient?: any;
|
|
4822
|
+
};
|
|
4823
|
+
nonRevertibleAccumulatedData: {
|
|
4824
|
+
noteHashes: string[];
|
|
4825
|
+
nullifiers: string[];
|
|
4826
|
+
};
|
|
4827
|
+
revertibleAccumulatedData: {
|
|
4828
|
+
noteHashes: string[];
|
|
4829
|
+
nullifiers: string[];
|
|
4830
|
+
};
|
|
4831
|
+
setupEnqueuedCalls: {
|
|
4832
|
+
isStaticCall: boolean;
|
|
4833
|
+
calldata: string[];
|
|
4834
|
+
contractAddress?: any;
|
|
4835
|
+
msgSender?: any;
|
|
4836
|
+
}[];
|
|
4837
|
+
appLogicEnqueuedCalls: {
|
|
4838
|
+
isStaticCall: boolean;
|
|
4839
|
+
calldata: string[];
|
|
4840
|
+
contractAddress?: any;
|
|
4841
|
+
msgSender?: any;
|
|
4842
|
+
}[];
|
|
4843
|
+
teardownEnqueuedCall: {
|
|
4844
|
+
isStaticCall: boolean;
|
|
4845
|
+
calldata: string[];
|
|
4846
|
+
contractAddress?: any;
|
|
4847
|
+
msgSender?: any;
|
|
4848
|
+
} | null;
|
|
4849
|
+
}>, AvmTxHint, {
|
|
4850
|
+
hash: string;
|
|
4851
|
+
globalVariables: {
|
|
4852
|
+
gasFees: {
|
|
4853
|
+
feePerDaGas: string;
|
|
4854
|
+
feePerL2Gas: string;
|
|
4855
|
+
};
|
|
4856
|
+
chainId?: any;
|
|
4857
|
+
version?: any;
|
|
4858
|
+
blockNumber?: any;
|
|
4859
|
+
slotNumber?: any;
|
|
4860
|
+
timestamp?: any;
|
|
4861
|
+
coinbase?: any;
|
|
4862
|
+
feeRecipient?: any;
|
|
4863
|
+
};
|
|
3502
4864
|
nonRevertibleAccumulatedData: {
|
|
3503
4865
|
noteHashes: string[];
|
|
3504
4866
|
nullifiers: string[];
|
|
@@ -3597,50 +4959,143 @@ export declare class AvmCircuitInputs {
|
|
|
3597
4959
|
type: z.ZodLiteral<"Buffer">;
|
|
3598
4960
|
data: z.ZodArray<z.ZodNumber, "many">;
|
|
3599
4961
|
}, "strip", z.ZodTypeAny, {
|
|
3600
|
-
type: "Buffer";
|
|
3601
|
-
data: number[];
|
|
4962
|
+
type: "Buffer";
|
|
4963
|
+
data: number[];
|
|
4964
|
+
}, {
|
|
4965
|
+
type: "Buffer";
|
|
4966
|
+
data: number[];
|
|
4967
|
+
}>, Buffer, {
|
|
4968
|
+
type: "Buffer";
|
|
4969
|
+
data: number[];
|
|
4970
|
+
}>]>;
|
|
4971
|
+
}, "strip", z.ZodTypeAny, {
|
|
4972
|
+
classId: Fr;
|
|
4973
|
+
artifactHash: Fr;
|
|
4974
|
+
privateFunctionsRoot: Fr;
|
|
4975
|
+
packedBytecode: Buffer;
|
|
4976
|
+
}, {
|
|
4977
|
+
classId: string;
|
|
4978
|
+
artifactHash: string;
|
|
4979
|
+
privateFunctionsRoot: string;
|
|
4980
|
+
packedBytecode: string | {
|
|
4981
|
+
type: "Buffer";
|
|
4982
|
+
data: number[];
|
|
4983
|
+
};
|
|
4984
|
+
}>, AvmContractClassHint, {
|
|
4985
|
+
classId: string;
|
|
4986
|
+
artifactHash: string;
|
|
4987
|
+
privateFunctionsRoot: string;
|
|
4988
|
+
packedBytecode: string | {
|
|
4989
|
+
type: "Buffer";
|
|
4990
|
+
data: number[];
|
|
4991
|
+
};
|
|
4992
|
+
}>, "many">;
|
|
4993
|
+
bytecodeCommitments: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
4994
|
+
classId: z.ZodType<Fr, any, string>;
|
|
4995
|
+
commitment: z.ZodType<Fr, any, string>;
|
|
4996
|
+
}, "strip", z.ZodTypeAny, {
|
|
4997
|
+
classId: Fr;
|
|
4998
|
+
commitment: Fr;
|
|
4999
|
+
}, {
|
|
5000
|
+
classId: string;
|
|
5001
|
+
commitment: string;
|
|
5002
|
+
}>, AvmBytecodeCommitmentHint, {
|
|
5003
|
+
classId: string;
|
|
5004
|
+
commitment: string;
|
|
5005
|
+
}>, "many">;
|
|
5006
|
+
startingTreeRoots: z.ZodEffects<z.ZodObject<{
|
|
5007
|
+
l1ToL2MessageTree: z.ZodEffects<z.ZodObject<{
|
|
5008
|
+
root: z.ZodType<Fr, any, string>;
|
|
5009
|
+
nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
5010
|
+
}, "strip", z.ZodTypeAny, {
|
|
5011
|
+
root: Fr;
|
|
5012
|
+
nextAvailableLeafIndex: number;
|
|
5013
|
+
}, {
|
|
5014
|
+
root: string;
|
|
5015
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
5016
|
+
}>, AppendOnlyTreeSnapshot, {
|
|
5017
|
+
root: string;
|
|
5018
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
5019
|
+
}>;
|
|
5020
|
+
noteHashTree: z.ZodEffects<z.ZodObject<{
|
|
5021
|
+
root: z.ZodType<Fr, any, string>;
|
|
5022
|
+
nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
5023
|
+
}, "strip", z.ZodTypeAny, {
|
|
5024
|
+
root: Fr;
|
|
5025
|
+
nextAvailableLeafIndex: number;
|
|
5026
|
+
}, {
|
|
5027
|
+
root: string;
|
|
5028
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
5029
|
+
}>, AppendOnlyTreeSnapshot, {
|
|
5030
|
+
root: string;
|
|
5031
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
5032
|
+
}>;
|
|
5033
|
+
nullifierTree: z.ZodEffects<z.ZodObject<{
|
|
5034
|
+
root: z.ZodType<Fr, any, string>;
|
|
5035
|
+
nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
5036
|
+
}, "strip", z.ZodTypeAny, {
|
|
5037
|
+
root: Fr;
|
|
5038
|
+
nextAvailableLeafIndex: number;
|
|
5039
|
+
}, {
|
|
5040
|
+
root: string;
|
|
5041
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
5042
|
+
}>, AppendOnlyTreeSnapshot, {
|
|
5043
|
+
root: string;
|
|
5044
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
5045
|
+
}>;
|
|
5046
|
+
publicDataTree: z.ZodEffects<z.ZodObject<{
|
|
5047
|
+
root: z.ZodType<Fr, any, string>;
|
|
5048
|
+
nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
5049
|
+
}, "strip", z.ZodTypeAny, {
|
|
5050
|
+
root: Fr;
|
|
5051
|
+
nextAvailableLeafIndex: number;
|
|
3602
5052
|
}, {
|
|
3603
|
-
|
|
3604
|
-
|
|
3605
|
-
}>,
|
|
3606
|
-
|
|
3607
|
-
|
|
3608
|
-
}
|
|
5053
|
+
root: string;
|
|
5054
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
5055
|
+
}>, AppendOnlyTreeSnapshot, {
|
|
5056
|
+
root: string;
|
|
5057
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
5058
|
+
}>;
|
|
3609
5059
|
}, "strip", z.ZodTypeAny, {
|
|
3610
|
-
|
|
3611
|
-
|
|
3612
|
-
|
|
3613
|
-
|
|
5060
|
+
noteHashTree: AppendOnlyTreeSnapshot;
|
|
5061
|
+
nullifierTree: AppendOnlyTreeSnapshot;
|
|
5062
|
+
publicDataTree: AppendOnlyTreeSnapshot;
|
|
5063
|
+
l1ToL2MessageTree: AppendOnlyTreeSnapshot;
|
|
3614
5064
|
}, {
|
|
3615
|
-
|
|
3616
|
-
|
|
3617
|
-
|
|
3618
|
-
packedBytecode: string | {
|
|
3619
|
-
type: "Buffer";
|
|
3620
|
-
data: number[];
|
|
5065
|
+
noteHashTree: {
|
|
5066
|
+
root: string;
|
|
5067
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3621
5068
|
};
|
|
3622
|
-
|
|
3623
|
-
|
|
3624
|
-
|
|
3625
|
-
privateFunctionsRoot: string;
|
|
3626
|
-
packedBytecode: string | {
|
|
3627
|
-
type: "Buffer";
|
|
3628
|
-
data: number[];
|
|
5069
|
+
nullifierTree: {
|
|
5070
|
+
root: string;
|
|
5071
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3629
5072
|
};
|
|
3630
|
-
|
|
3631
|
-
|
|
3632
|
-
|
|
3633
|
-
|
|
3634
|
-
|
|
3635
|
-
|
|
3636
|
-
|
|
3637
|
-
|
|
3638
|
-
|
|
3639
|
-
|
|
3640
|
-
|
|
3641
|
-
|
|
3642
|
-
|
|
3643
|
-
|
|
5073
|
+
publicDataTree: {
|
|
5074
|
+
root: string;
|
|
5075
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
5076
|
+
};
|
|
5077
|
+
l1ToL2MessageTree: {
|
|
5078
|
+
root: string;
|
|
5079
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
5080
|
+
};
|
|
5081
|
+
}>, TreeSnapshots, {
|
|
5082
|
+
noteHashTree: {
|
|
5083
|
+
root: string;
|
|
5084
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
5085
|
+
};
|
|
5086
|
+
nullifierTree: {
|
|
5087
|
+
root: string;
|
|
5088
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
5089
|
+
};
|
|
5090
|
+
publicDataTree: {
|
|
5091
|
+
root: string;
|
|
5092
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
5093
|
+
};
|
|
5094
|
+
l1ToL2MessageTree: {
|
|
5095
|
+
root: string;
|
|
5096
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
5097
|
+
};
|
|
5098
|
+
}>;
|
|
3644
5099
|
getSiblingPathHints: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
3645
5100
|
hintKey: z.ZodEffects<z.ZodObject<{
|
|
3646
5101
|
root: z.ZodType<Fr, any, string>;
|
|
@@ -4667,92 +6122,449 @@ export declare class AvmCircuitInputs {
|
|
|
4667
6122
|
nextKey: string;
|
|
4668
6123
|
nextIndex: string | number | bigint;
|
|
4669
6124
|
};
|
|
4670
|
-
};
|
|
4671
|
-
}>, {
|
|
4672
|
-
readonly hintKey: AppendOnlyTreeSnapshot;
|
|
4673
|
-
readonly stateAfter: AppendOnlyTreeSnapshot;
|
|
4674
|
-
readonly treeId: MerkleTreeId;
|
|
4675
|
-
readonly leaf: import("../trees/nullifier_leaf.js").NullifierLeaf | import("../trees/public_data_leaf.js").PublicDataTreeLeaf;
|
|
4676
|
-
readonly lowLeavesWitnessData: {
|
|
4677
|
-
leaf: IndexedTreeLeafPreimages;
|
|
4678
|
-
index: bigint;
|
|
4679
|
-
path: Fr[];
|
|
4680
|
-
};
|
|
4681
|
-
readonly insertionWitnessData: {
|
|
4682
|
-
leaf: IndexedTreeLeafPreimages;
|
|
4683
|
-
index: bigint;
|
|
4684
|
-
path: Fr[];
|
|
4685
|
-
};
|
|
6125
|
+
};
|
|
6126
|
+
}>, {
|
|
6127
|
+
readonly hintKey: AppendOnlyTreeSnapshot;
|
|
6128
|
+
readonly stateAfter: AppendOnlyTreeSnapshot;
|
|
6129
|
+
readonly treeId: MerkleTreeId;
|
|
6130
|
+
readonly leaf: import("../trees/nullifier_leaf.js").NullifierLeaf | import("../trees/public_data_leaf.js").PublicDataTreeLeaf;
|
|
6131
|
+
readonly lowLeavesWitnessData: {
|
|
6132
|
+
leaf: IndexedTreeLeafPreimages;
|
|
6133
|
+
index: bigint;
|
|
6134
|
+
path: Fr[];
|
|
6135
|
+
};
|
|
6136
|
+
readonly insertionWitnessData: {
|
|
6137
|
+
leaf: IndexedTreeLeafPreimages;
|
|
6138
|
+
index: bigint;
|
|
6139
|
+
path: Fr[];
|
|
6140
|
+
};
|
|
6141
|
+
}, {
|
|
6142
|
+
leaf: {
|
|
6143
|
+
nullifier: string;
|
|
6144
|
+
} | {
|
|
6145
|
+
value: string;
|
|
6146
|
+
slot: string;
|
|
6147
|
+
};
|
|
6148
|
+
hintKey: {
|
|
6149
|
+
root: string;
|
|
6150
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6151
|
+
};
|
|
6152
|
+
treeId: number;
|
|
6153
|
+
stateAfter: {
|
|
6154
|
+
root: string;
|
|
6155
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6156
|
+
};
|
|
6157
|
+
lowLeavesWitnessData: {
|
|
6158
|
+
path: string[];
|
|
6159
|
+
index: string | number | bigint;
|
|
6160
|
+
leaf: {
|
|
6161
|
+
leaf: {
|
|
6162
|
+
nullifier: string;
|
|
6163
|
+
};
|
|
6164
|
+
nextKey: string;
|
|
6165
|
+
nextIndex: string | number | bigint;
|
|
6166
|
+
} | {
|
|
6167
|
+
leaf: {
|
|
6168
|
+
value: string;
|
|
6169
|
+
slot: string;
|
|
6170
|
+
};
|
|
6171
|
+
nextKey: string;
|
|
6172
|
+
nextIndex: string | number | bigint;
|
|
6173
|
+
};
|
|
6174
|
+
};
|
|
6175
|
+
insertionWitnessData: {
|
|
6176
|
+
path: string[];
|
|
6177
|
+
index: string | number | bigint;
|
|
6178
|
+
leaf: {
|
|
6179
|
+
leaf: {
|
|
6180
|
+
nullifier: string;
|
|
6181
|
+
};
|
|
6182
|
+
nextKey: string;
|
|
6183
|
+
nextIndex: string | number | bigint;
|
|
6184
|
+
} | {
|
|
6185
|
+
leaf: {
|
|
6186
|
+
value: string;
|
|
6187
|
+
slot: string;
|
|
6188
|
+
};
|
|
6189
|
+
nextKey: string;
|
|
6190
|
+
nextIndex: string | number | bigint;
|
|
6191
|
+
};
|
|
6192
|
+
};
|
|
6193
|
+
}>, "many">;
|
|
6194
|
+
appendLeavesHints: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
6195
|
+
hintKey: z.ZodEffects<z.ZodObject<{
|
|
6196
|
+
root: z.ZodType<Fr, any, string>;
|
|
6197
|
+
nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
6198
|
+
}, "strip", z.ZodTypeAny, {
|
|
6199
|
+
root: Fr;
|
|
6200
|
+
nextAvailableLeafIndex: number;
|
|
6201
|
+
}, {
|
|
6202
|
+
root: string;
|
|
6203
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6204
|
+
}>, AppendOnlyTreeSnapshot, {
|
|
6205
|
+
root: string;
|
|
6206
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6207
|
+
}>;
|
|
6208
|
+
stateAfter: z.ZodEffects<z.ZodObject<{
|
|
6209
|
+
root: z.ZodType<Fr, any, string>;
|
|
6210
|
+
nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
6211
|
+
}, "strip", z.ZodTypeAny, {
|
|
6212
|
+
root: Fr;
|
|
6213
|
+
nextAvailableLeafIndex: number;
|
|
6214
|
+
}, {
|
|
6215
|
+
root: string;
|
|
6216
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6217
|
+
}>, AppendOnlyTreeSnapshot, {
|
|
6218
|
+
root: string;
|
|
6219
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6220
|
+
}>;
|
|
6221
|
+
treeId: z.ZodNumber;
|
|
6222
|
+
leaves: z.ZodArray<z.ZodType<Fr, any, string>, "many">;
|
|
6223
|
+
}, "strip", z.ZodTypeAny, {
|
|
6224
|
+
hintKey: AppendOnlyTreeSnapshot;
|
|
6225
|
+
treeId: number;
|
|
6226
|
+
stateAfter: AppendOnlyTreeSnapshot;
|
|
6227
|
+
leaves: Fr[];
|
|
6228
|
+
}, {
|
|
6229
|
+
hintKey: {
|
|
6230
|
+
root: string;
|
|
6231
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6232
|
+
};
|
|
6233
|
+
treeId: number;
|
|
6234
|
+
stateAfter: {
|
|
6235
|
+
root: string;
|
|
6236
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6237
|
+
};
|
|
6238
|
+
leaves: string[];
|
|
6239
|
+
}>, AvmAppendLeavesHint, {
|
|
6240
|
+
hintKey: {
|
|
6241
|
+
root: string;
|
|
6242
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6243
|
+
};
|
|
6244
|
+
treeId: number;
|
|
6245
|
+
stateAfter: {
|
|
6246
|
+
root: string;
|
|
6247
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6248
|
+
};
|
|
6249
|
+
leaves: string[];
|
|
6250
|
+
}>, "many">;
|
|
6251
|
+
createCheckpointHints: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
6252
|
+
actionCounter: z.ZodNumber;
|
|
6253
|
+
oldCheckpointId: z.ZodNumber;
|
|
6254
|
+
newCheckpointId: z.ZodNumber;
|
|
6255
|
+
}, "strip", z.ZodTypeAny, {
|
|
6256
|
+
actionCounter: number;
|
|
6257
|
+
oldCheckpointId: number;
|
|
6258
|
+
newCheckpointId: number;
|
|
6259
|
+
}, {
|
|
6260
|
+
actionCounter: number;
|
|
6261
|
+
oldCheckpointId: number;
|
|
6262
|
+
newCheckpointId: number;
|
|
6263
|
+
}>, AvmCheckpointActionNoStateChangeHint, {
|
|
6264
|
+
actionCounter: number;
|
|
6265
|
+
oldCheckpointId: number;
|
|
6266
|
+
newCheckpointId: number;
|
|
6267
|
+
}>, "many">;
|
|
6268
|
+
commitCheckpointHints: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
6269
|
+
actionCounter: z.ZodNumber;
|
|
6270
|
+
oldCheckpointId: z.ZodNumber;
|
|
6271
|
+
newCheckpointId: z.ZodNumber;
|
|
6272
|
+
}, "strip", z.ZodTypeAny, {
|
|
6273
|
+
actionCounter: number;
|
|
6274
|
+
oldCheckpointId: number;
|
|
6275
|
+
newCheckpointId: number;
|
|
6276
|
+
}, {
|
|
6277
|
+
actionCounter: number;
|
|
6278
|
+
oldCheckpointId: number;
|
|
6279
|
+
newCheckpointId: number;
|
|
6280
|
+
}>, AvmCheckpointActionNoStateChangeHint, {
|
|
6281
|
+
actionCounter: number;
|
|
6282
|
+
oldCheckpointId: number;
|
|
6283
|
+
newCheckpointId: number;
|
|
6284
|
+
}>, "many">;
|
|
6285
|
+
revertCheckpointHints: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
6286
|
+
actionCounter: z.ZodNumber;
|
|
6287
|
+
oldCheckpointId: z.ZodNumber;
|
|
6288
|
+
newCheckpointId: z.ZodNumber;
|
|
6289
|
+
stateBefore: z.ZodEffects<z.ZodObject<{
|
|
6290
|
+
l1ToL2MessageTree: z.ZodEffects<z.ZodObject<{
|
|
6291
|
+
root: z.ZodType<Fr, any, string>;
|
|
6292
|
+
nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
6293
|
+
}, "strip", z.ZodTypeAny, {
|
|
6294
|
+
root: Fr;
|
|
6295
|
+
nextAvailableLeafIndex: number;
|
|
6296
|
+
}, {
|
|
6297
|
+
root: string;
|
|
6298
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6299
|
+
}>, AppendOnlyTreeSnapshot, {
|
|
6300
|
+
root: string;
|
|
6301
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6302
|
+
}>;
|
|
6303
|
+
noteHashTree: z.ZodEffects<z.ZodObject<{
|
|
6304
|
+
root: z.ZodType<Fr, any, string>;
|
|
6305
|
+
nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
6306
|
+
}, "strip", z.ZodTypeAny, {
|
|
6307
|
+
root: Fr;
|
|
6308
|
+
nextAvailableLeafIndex: number;
|
|
6309
|
+
}, {
|
|
6310
|
+
root: string;
|
|
6311
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6312
|
+
}>, AppendOnlyTreeSnapshot, {
|
|
6313
|
+
root: string;
|
|
6314
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6315
|
+
}>;
|
|
6316
|
+
nullifierTree: z.ZodEffects<z.ZodObject<{
|
|
6317
|
+
root: z.ZodType<Fr, any, string>;
|
|
6318
|
+
nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
6319
|
+
}, "strip", z.ZodTypeAny, {
|
|
6320
|
+
root: Fr;
|
|
6321
|
+
nextAvailableLeafIndex: number;
|
|
6322
|
+
}, {
|
|
6323
|
+
root: string;
|
|
6324
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6325
|
+
}>, AppendOnlyTreeSnapshot, {
|
|
6326
|
+
root: string;
|
|
6327
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6328
|
+
}>;
|
|
6329
|
+
publicDataTree: z.ZodEffects<z.ZodObject<{
|
|
6330
|
+
root: z.ZodType<Fr, any, string>;
|
|
6331
|
+
nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
6332
|
+
}, "strip", z.ZodTypeAny, {
|
|
6333
|
+
root: Fr;
|
|
6334
|
+
nextAvailableLeafIndex: number;
|
|
6335
|
+
}, {
|
|
6336
|
+
root: string;
|
|
6337
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6338
|
+
}>, AppendOnlyTreeSnapshot, {
|
|
6339
|
+
root: string;
|
|
6340
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6341
|
+
}>;
|
|
6342
|
+
}, "strip", z.ZodTypeAny, {
|
|
6343
|
+
noteHashTree: AppendOnlyTreeSnapshot;
|
|
6344
|
+
nullifierTree: AppendOnlyTreeSnapshot;
|
|
6345
|
+
publicDataTree: AppendOnlyTreeSnapshot;
|
|
6346
|
+
l1ToL2MessageTree: AppendOnlyTreeSnapshot;
|
|
6347
|
+
}, {
|
|
6348
|
+
noteHashTree: {
|
|
6349
|
+
root: string;
|
|
6350
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6351
|
+
};
|
|
6352
|
+
nullifierTree: {
|
|
6353
|
+
root: string;
|
|
6354
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6355
|
+
};
|
|
6356
|
+
publicDataTree: {
|
|
6357
|
+
root: string;
|
|
6358
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6359
|
+
};
|
|
6360
|
+
l1ToL2MessageTree: {
|
|
6361
|
+
root: string;
|
|
6362
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6363
|
+
};
|
|
6364
|
+
}>, TreeSnapshots, {
|
|
6365
|
+
noteHashTree: {
|
|
6366
|
+
root: string;
|
|
6367
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6368
|
+
};
|
|
6369
|
+
nullifierTree: {
|
|
6370
|
+
root: string;
|
|
6371
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6372
|
+
};
|
|
6373
|
+
publicDataTree: {
|
|
6374
|
+
root: string;
|
|
6375
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6376
|
+
};
|
|
6377
|
+
l1ToL2MessageTree: {
|
|
6378
|
+
root: string;
|
|
6379
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6380
|
+
};
|
|
6381
|
+
}>;
|
|
6382
|
+
stateAfter: z.ZodEffects<z.ZodObject<{
|
|
6383
|
+
l1ToL2MessageTree: z.ZodEffects<z.ZodObject<{
|
|
6384
|
+
root: z.ZodType<Fr, any, string>;
|
|
6385
|
+
nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
6386
|
+
}, "strip", z.ZodTypeAny, {
|
|
6387
|
+
root: Fr;
|
|
6388
|
+
nextAvailableLeafIndex: number;
|
|
6389
|
+
}, {
|
|
6390
|
+
root: string;
|
|
6391
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6392
|
+
}>, AppendOnlyTreeSnapshot, {
|
|
6393
|
+
root: string;
|
|
6394
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6395
|
+
}>;
|
|
6396
|
+
noteHashTree: z.ZodEffects<z.ZodObject<{
|
|
6397
|
+
root: z.ZodType<Fr, any, string>;
|
|
6398
|
+
nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
6399
|
+
}, "strip", z.ZodTypeAny, {
|
|
6400
|
+
root: Fr;
|
|
6401
|
+
nextAvailableLeafIndex: number;
|
|
6402
|
+
}, {
|
|
6403
|
+
root: string;
|
|
6404
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6405
|
+
}>, AppendOnlyTreeSnapshot, {
|
|
6406
|
+
root: string;
|
|
6407
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6408
|
+
}>;
|
|
6409
|
+
nullifierTree: z.ZodEffects<z.ZodObject<{
|
|
6410
|
+
root: z.ZodType<Fr, any, string>;
|
|
6411
|
+
nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
6412
|
+
}, "strip", z.ZodTypeAny, {
|
|
6413
|
+
root: Fr;
|
|
6414
|
+
nextAvailableLeafIndex: number;
|
|
6415
|
+
}, {
|
|
6416
|
+
root: string;
|
|
6417
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6418
|
+
}>, AppendOnlyTreeSnapshot, {
|
|
6419
|
+
root: string;
|
|
6420
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6421
|
+
}>;
|
|
6422
|
+
publicDataTree: z.ZodEffects<z.ZodObject<{
|
|
6423
|
+
root: z.ZodType<Fr, any, string>;
|
|
6424
|
+
nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
6425
|
+
}, "strip", z.ZodTypeAny, {
|
|
6426
|
+
root: Fr;
|
|
6427
|
+
nextAvailableLeafIndex: number;
|
|
6428
|
+
}, {
|
|
6429
|
+
root: string;
|
|
6430
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6431
|
+
}>, AppendOnlyTreeSnapshot, {
|
|
6432
|
+
root: string;
|
|
6433
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6434
|
+
}>;
|
|
6435
|
+
}, "strip", z.ZodTypeAny, {
|
|
6436
|
+
noteHashTree: AppendOnlyTreeSnapshot;
|
|
6437
|
+
nullifierTree: AppendOnlyTreeSnapshot;
|
|
6438
|
+
publicDataTree: AppendOnlyTreeSnapshot;
|
|
6439
|
+
l1ToL2MessageTree: AppendOnlyTreeSnapshot;
|
|
6440
|
+
}, {
|
|
6441
|
+
noteHashTree: {
|
|
6442
|
+
root: string;
|
|
6443
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6444
|
+
};
|
|
6445
|
+
nullifierTree: {
|
|
6446
|
+
root: string;
|
|
6447
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6448
|
+
};
|
|
6449
|
+
publicDataTree: {
|
|
6450
|
+
root: string;
|
|
6451
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6452
|
+
};
|
|
6453
|
+
l1ToL2MessageTree: {
|
|
6454
|
+
root: string;
|
|
6455
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6456
|
+
};
|
|
6457
|
+
}>, TreeSnapshots, {
|
|
6458
|
+
noteHashTree: {
|
|
6459
|
+
root: string;
|
|
6460
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6461
|
+
};
|
|
6462
|
+
nullifierTree: {
|
|
6463
|
+
root: string;
|
|
6464
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6465
|
+
};
|
|
6466
|
+
publicDataTree: {
|
|
6467
|
+
root: string;
|
|
6468
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6469
|
+
};
|
|
6470
|
+
l1ToL2MessageTree: {
|
|
6471
|
+
root: string;
|
|
6472
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6473
|
+
};
|
|
6474
|
+
}>;
|
|
6475
|
+
}, "strip", z.ZodTypeAny, {
|
|
6476
|
+
stateAfter: TreeSnapshots;
|
|
6477
|
+
actionCounter: number;
|
|
6478
|
+
oldCheckpointId: number;
|
|
6479
|
+
newCheckpointId: number;
|
|
6480
|
+
stateBefore: TreeSnapshots;
|
|
4686
6481
|
}, {
|
|
4687
|
-
|
|
4688
|
-
|
|
4689
|
-
|
|
4690
|
-
|
|
4691
|
-
|
|
6482
|
+
stateAfter: {
|
|
6483
|
+
noteHashTree: {
|
|
6484
|
+
root: string;
|
|
6485
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6486
|
+
};
|
|
6487
|
+
nullifierTree: {
|
|
6488
|
+
root: string;
|
|
6489
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6490
|
+
};
|
|
6491
|
+
publicDataTree: {
|
|
6492
|
+
root: string;
|
|
6493
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6494
|
+
};
|
|
6495
|
+
l1ToL2MessageTree: {
|
|
6496
|
+
root: string;
|
|
6497
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6498
|
+
};
|
|
4692
6499
|
};
|
|
4693
|
-
|
|
4694
|
-
|
|
4695
|
-
|
|
6500
|
+
actionCounter: number;
|
|
6501
|
+
oldCheckpointId: number;
|
|
6502
|
+
newCheckpointId: number;
|
|
6503
|
+
stateBefore: {
|
|
6504
|
+
noteHashTree: {
|
|
6505
|
+
root: string;
|
|
6506
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6507
|
+
};
|
|
6508
|
+
nullifierTree: {
|
|
6509
|
+
root: string;
|
|
6510
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6511
|
+
};
|
|
6512
|
+
publicDataTree: {
|
|
6513
|
+
root: string;
|
|
6514
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6515
|
+
};
|
|
6516
|
+
l1ToL2MessageTree: {
|
|
6517
|
+
root: string;
|
|
6518
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6519
|
+
};
|
|
4696
6520
|
};
|
|
4697
|
-
|
|
6521
|
+
}>, AvmRevertCheckpointHint, {
|
|
4698
6522
|
stateAfter: {
|
|
4699
|
-
|
|
4700
|
-
|
|
4701
|
-
|
|
4702
|
-
|
|
4703
|
-
|
|
4704
|
-
|
|
4705
|
-
|
|
4706
|
-
|
|
4707
|
-
|
|
4708
|
-
|
|
4709
|
-
|
|
4710
|
-
|
|
4711
|
-
|
|
4712
|
-
|
|
4713
|
-
|
|
4714
|
-
slot: string;
|
|
4715
|
-
};
|
|
4716
|
-
nextKey: string;
|
|
4717
|
-
nextIndex: string | number | bigint;
|
|
6523
|
+
noteHashTree: {
|
|
6524
|
+
root: string;
|
|
6525
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6526
|
+
};
|
|
6527
|
+
nullifierTree: {
|
|
6528
|
+
root: string;
|
|
6529
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6530
|
+
};
|
|
6531
|
+
publicDataTree: {
|
|
6532
|
+
root: string;
|
|
6533
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6534
|
+
};
|
|
6535
|
+
l1ToL2MessageTree: {
|
|
6536
|
+
root: string;
|
|
6537
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
4718
6538
|
};
|
|
4719
6539
|
};
|
|
4720
|
-
|
|
4721
|
-
|
|
4722
|
-
|
|
4723
|
-
|
|
4724
|
-
|
|
4725
|
-
|
|
4726
|
-
|
|
4727
|
-
|
|
4728
|
-
|
|
4729
|
-
|
|
4730
|
-
|
|
4731
|
-
|
|
4732
|
-
|
|
4733
|
-
|
|
4734
|
-
|
|
4735
|
-
|
|
6540
|
+
actionCounter: number;
|
|
6541
|
+
oldCheckpointId: number;
|
|
6542
|
+
newCheckpointId: number;
|
|
6543
|
+
stateBefore: {
|
|
6544
|
+
noteHashTree: {
|
|
6545
|
+
root: string;
|
|
6546
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6547
|
+
};
|
|
6548
|
+
nullifierTree: {
|
|
6549
|
+
root: string;
|
|
6550
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6551
|
+
};
|
|
6552
|
+
publicDataTree: {
|
|
6553
|
+
root: string;
|
|
6554
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6555
|
+
};
|
|
6556
|
+
l1ToL2MessageTree: {
|
|
6557
|
+
root: string;
|
|
6558
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
4736
6559
|
};
|
|
4737
6560
|
};
|
|
4738
6561
|
}>, "many">;
|
|
4739
6562
|
}, "strip", z.ZodTypeAny, {
|
|
4740
|
-
tx:
|
|
4741
|
-
nonRevertibleAccumulatedData: {
|
|
4742
|
-
noteHashes: Fr[];
|
|
4743
|
-
nullifiers: Fr[];
|
|
4744
|
-
};
|
|
4745
|
-
revertibleAccumulatedData: {
|
|
4746
|
-
noteHashes: Fr[];
|
|
4747
|
-
nullifiers: Fr[];
|
|
4748
|
-
};
|
|
4749
|
-
setupEnqueuedCalls: AvmEnqueuedCallHint[];
|
|
4750
|
-
appLogicEnqueuedCalls: AvmEnqueuedCallHint[];
|
|
4751
|
-
teardownEnqueuedCall: AvmEnqueuedCallHint | null;
|
|
4752
|
-
};
|
|
6563
|
+
tx: AvmTxHint;
|
|
4753
6564
|
contractInstances: AvmContractInstanceHint[];
|
|
4754
6565
|
contractClasses: AvmContractClassHint[];
|
|
4755
6566
|
bytecodeCommitments: AvmBytecodeCommitmentHint[];
|
|
6567
|
+
startingTreeRoots: TreeSnapshots;
|
|
4756
6568
|
getSiblingPathHints: AvmGetSiblingPathHint[];
|
|
4757
6569
|
getPreviousValueIndexHints: AvmGetPreviousValueIndexHint[];
|
|
4758
6570
|
getLeafPreimageHintsPublicDataTree: {
|
|
@@ -4798,8 +6610,26 @@ export declare class AvmCircuitInputs {
|
|
|
4798
6610
|
path: Fr[];
|
|
4799
6611
|
};
|
|
4800
6612
|
}[];
|
|
6613
|
+
appendLeavesHints: AvmAppendLeavesHint[];
|
|
6614
|
+
createCheckpointHints: AvmCheckpointActionNoStateChangeHint[];
|
|
6615
|
+
commitCheckpointHints: AvmCheckpointActionNoStateChangeHint[];
|
|
6616
|
+
revertCheckpointHints: AvmRevertCheckpointHint[];
|
|
4801
6617
|
}, {
|
|
4802
6618
|
tx: {
|
|
6619
|
+
hash: string;
|
|
6620
|
+
globalVariables: {
|
|
6621
|
+
gasFees: {
|
|
6622
|
+
feePerDaGas: string;
|
|
6623
|
+
feePerL2Gas: string;
|
|
6624
|
+
};
|
|
6625
|
+
chainId?: any;
|
|
6626
|
+
version?: any;
|
|
6627
|
+
blockNumber?: any;
|
|
6628
|
+
slotNumber?: any;
|
|
6629
|
+
timestamp?: any;
|
|
6630
|
+
coinbase?: any;
|
|
6631
|
+
feeRecipient?: any;
|
|
6632
|
+
};
|
|
4803
6633
|
nonRevertibleAccumulatedData: {
|
|
4804
6634
|
noteHashes: string[];
|
|
4805
6635
|
nullifiers: string[];
|
|
@@ -4854,6 +6684,24 @@ export declare class AvmCircuitInputs {
|
|
|
4854
6684
|
classId: string;
|
|
4855
6685
|
commitment: string;
|
|
4856
6686
|
}[];
|
|
6687
|
+
startingTreeRoots: {
|
|
6688
|
+
noteHashTree: {
|
|
6689
|
+
root: string;
|
|
6690
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6691
|
+
};
|
|
6692
|
+
nullifierTree: {
|
|
6693
|
+
root: string;
|
|
6694
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6695
|
+
};
|
|
6696
|
+
publicDataTree: {
|
|
6697
|
+
root: string;
|
|
6698
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6699
|
+
};
|
|
6700
|
+
l1ToL2MessageTree: {
|
|
6701
|
+
root: string;
|
|
6702
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6703
|
+
};
|
|
6704
|
+
};
|
|
4857
6705
|
getSiblingPathHints: {
|
|
4858
6706
|
path: string[];
|
|
4859
6707
|
index: string | number | bigint;
|
|
@@ -5030,8 +6878,85 @@ export declare class AvmCircuitInputs {
|
|
|
5030
6878
|
};
|
|
5031
6879
|
};
|
|
5032
6880
|
}[];
|
|
6881
|
+
appendLeavesHints: {
|
|
6882
|
+
hintKey: {
|
|
6883
|
+
root: string;
|
|
6884
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6885
|
+
};
|
|
6886
|
+
treeId: number;
|
|
6887
|
+
stateAfter: {
|
|
6888
|
+
root: string;
|
|
6889
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6890
|
+
};
|
|
6891
|
+
leaves: string[];
|
|
6892
|
+
}[];
|
|
6893
|
+
createCheckpointHints: {
|
|
6894
|
+
actionCounter: number;
|
|
6895
|
+
oldCheckpointId: number;
|
|
6896
|
+
newCheckpointId: number;
|
|
6897
|
+
}[];
|
|
6898
|
+
commitCheckpointHints: {
|
|
6899
|
+
actionCounter: number;
|
|
6900
|
+
oldCheckpointId: number;
|
|
6901
|
+
newCheckpointId: number;
|
|
6902
|
+
}[];
|
|
6903
|
+
revertCheckpointHints: {
|
|
6904
|
+
stateAfter: {
|
|
6905
|
+
noteHashTree: {
|
|
6906
|
+
root: string;
|
|
6907
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6908
|
+
};
|
|
6909
|
+
nullifierTree: {
|
|
6910
|
+
root: string;
|
|
6911
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6912
|
+
};
|
|
6913
|
+
publicDataTree: {
|
|
6914
|
+
root: string;
|
|
6915
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6916
|
+
};
|
|
6917
|
+
l1ToL2MessageTree: {
|
|
6918
|
+
root: string;
|
|
6919
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6920
|
+
};
|
|
6921
|
+
};
|
|
6922
|
+
actionCounter: number;
|
|
6923
|
+
oldCheckpointId: number;
|
|
6924
|
+
newCheckpointId: number;
|
|
6925
|
+
stateBefore: {
|
|
6926
|
+
noteHashTree: {
|
|
6927
|
+
root: string;
|
|
6928
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6929
|
+
};
|
|
6930
|
+
nullifierTree: {
|
|
6931
|
+
root: string;
|
|
6932
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6933
|
+
};
|
|
6934
|
+
publicDataTree: {
|
|
6935
|
+
root: string;
|
|
6936
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6937
|
+
};
|
|
6938
|
+
l1ToL2MessageTree: {
|
|
6939
|
+
root: string;
|
|
6940
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6941
|
+
};
|
|
6942
|
+
};
|
|
6943
|
+
}[];
|
|
5033
6944
|
}>, AvmExecutionHints, {
|
|
5034
6945
|
tx: {
|
|
6946
|
+
hash: string;
|
|
6947
|
+
globalVariables: {
|
|
6948
|
+
gasFees: {
|
|
6949
|
+
feePerDaGas: string;
|
|
6950
|
+
feePerL2Gas: string;
|
|
6951
|
+
};
|
|
6952
|
+
chainId?: any;
|
|
6953
|
+
version?: any;
|
|
6954
|
+
blockNumber?: any;
|
|
6955
|
+
slotNumber?: any;
|
|
6956
|
+
timestamp?: any;
|
|
6957
|
+
coinbase?: any;
|
|
6958
|
+
feeRecipient?: any;
|
|
6959
|
+
};
|
|
5035
6960
|
nonRevertibleAccumulatedData: {
|
|
5036
6961
|
noteHashes: string[];
|
|
5037
6962
|
nullifiers: string[];
|
|
@@ -5086,6 +7011,24 @@ export declare class AvmCircuitInputs {
|
|
|
5086
7011
|
classId: string;
|
|
5087
7012
|
commitment: string;
|
|
5088
7013
|
}[];
|
|
7014
|
+
startingTreeRoots: {
|
|
7015
|
+
noteHashTree: {
|
|
7016
|
+
root: string;
|
|
7017
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
7018
|
+
};
|
|
7019
|
+
nullifierTree: {
|
|
7020
|
+
root: string;
|
|
7021
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
7022
|
+
};
|
|
7023
|
+
publicDataTree: {
|
|
7024
|
+
root: string;
|
|
7025
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
7026
|
+
};
|
|
7027
|
+
l1ToL2MessageTree: {
|
|
7028
|
+
root: string;
|
|
7029
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
7030
|
+
};
|
|
7031
|
+
};
|
|
5089
7032
|
getSiblingPathHints: {
|
|
5090
7033
|
path: string[];
|
|
5091
7034
|
index: string | number | bigint;
|
|
@@ -5262,6 +7205,69 @@ export declare class AvmCircuitInputs {
|
|
|
5262
7205
|
};
|
|
5263
7206
|
};
|
|
5264
7207
|
}[];
|
|
7208
|
+
appendLeavesHints: {
|
|
7209
|
+
hintKey: {
|
|
7210
|
+
root: string;
|
|
7211
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
7212
|
+
};
|
|
7213
|
+
treeId: number;
|
|
7214
|
+
stateAfter: {
|
|
7215
|
+
root: string;
|
|
7216
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
7217
|
+
};
|
|
7218
|
+
leaves: string[];
|
|
7219
|
+
}[];
|
|
7220
|
+
createCheckpointHints: {
|
|
7221
|
+
actionCounter: number;
|
|
7222
|
+
oldCheckpointId: number;
|
|
7223
|
+
newCheckpointId: number;
|
|
7224
|
+
}[];
|
|
7225
|
+
commitCheckpointHints: {
|
|
7226
|
+
actionCounter: number;
|
|
7227
|
+
oldCheckpointId: number;
|
|
7228
|
+
newCheckpointId: number;
|
|
7229
|
+
}[];
|
|
7230
|
+
revertCheckpointHints: {
|
|
7231
|
+
stateAfter: {
|
|
7232
|
+
noteHashTree: {
|
|
7233
|
+
root: string;
|
|
7234
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
7235
|
+
};
|
|
7236
|
+
nullifierTree: {
|
|
7237
|
+
root: string;
|
|
7238
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
7239
|
+
};
|
|
7240
|
+
publicDataTree: {
|
|
7241
|
+
root: string;
|
|
7242
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
7243
|
+
};
|
|
7244
|
+
l1ToL2MessageTree: {
|
|
7245
|
+
root: string;
|
|
7246
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
7247
|
+
};
|
|
7248
|
+
};
|
|
7249
|
+
actionCounter: number;
|
|
7250
|
+
oldCheckpointId: number;
|
|
7251
|
+
newCheckpointId: number;
|
|
7252
|
+
stateBefore: {
|
|
7253
|
+
noteHashTree: {
|
|
7254
|
+
root: string;
|
|
7255
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
7256
|
+
};
|
|
7257
|
+
nullifierTree: {
|
|
7258
|
+
root: string;
|
|
7259
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
7260
|
+
};
|
|
7261
|
+
publicDataTree: {
|
|
7262
|
+
root: string;
|
|
7263
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
7264
|
+
};
|
|
7265
|
+
l1ToL2MessageTree: {
|
|
7266
|
+
root: string;
|
|
7267
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
7268
|
+
};
|
|
7269
|
+
};
|
|
7270
|
+
}[];
|
|
5265
7271
|
}>;
|
|
5266
7272
|
publicInputs: z.ZodEffects<z.ZodObject<{
|
|
5267
7273
|
globalVariables: z.ZodEffects<z.ZodObject<{
|
|
@@ -5306,7 +7312,7 @@ export declare class AvmCircuitInputs {
|
|
|
5306
7312
|
timestamp?: any;
|
|
5307
7313
|
coinbase?: any;
|
|
5308
7314
|
feeRecipient?: any;
|
|
5309
|
-
}>,
|
|
7315
|
+
}>, GlobalVariables, {
|
|
5310
7316
|
gasFees: {
|
|
5311
7317
|
feePerDaGas: string;
|
|
5312
7318
|
feePerL2Gas: string;
|
|
@@ -5394,7 +7400,7 @@ export declare class AvmCircuitInputs {
|
|
|
5394
7400
|
root: string;
|
|
5395
7401
|
nextAvailableLeafIndex: string | number | bigint;
|
|
5396
7402
|
};
|
|
5397
|
-
}>,
|
|
7403
|
+
}>, TreeSnapshots, {
|
|
5398
7404
|
noteHashTree: {
|
|
5399
7405
|
root: string;
|
|
5400
7406
|
nextAvailableLeafIndex: string | number | bigint;
|
|
@@ -5825,7 +7831,7 @@ export declare class AvmCircuitInputs {
|
|
|
5825
7831
|
root: string;
|
|
5826
7832
|
nextAvailableLeafIndex: string | number | bigint;
|
|
5827
7833
|
};
|
|
5828
|
-
}>,
|
|
7834
|
+
}>, TreeSnapshots, {
|
|
5829
7835
|
noteHashTree: {
|
|
5830
7836
|
root: string;
|
|
5831
7837
|
nextAvailableLeafIndex: string | number | bigint;
|
|
@@ -5952,12 +7958,12 @@ export declare class AvmCircuitInputs {
|
|
|
5952
7958
|
transactionFee: z.ZodType<Fr, any, string>;
|
|
5953
7959
|
reverted: z.ZodBoolean;
|
|
5954
7960
|
}, "strip", z.ZodTypeAny, {
|
|
5955
|
-
globalVariables:
|
|
7961
|
+
globalVariables: GlobalVariables;
|
|
5956
7962
|
gasSettings: import("../gas/gas_settings.js").GasSettings;
|
|
5957
7963
|
publicTeardownCallRequest: import("../kernel/public_call_request.js").PublicCallRequest;
|
|
5958
7964
|
transactionFee: Fr;
|
|
5959
7965
|
feePayer: AztecAddress;
|
|
5960
|
-
startTreeSnapshots:
|
|
7966
|
+
startTreeSnapshots: TreeSnapshots;
|
|
5961
7967
|
startGasUsed: import("../gas/gas.js").Gas;
|
|
5962
7968
|
publicSetupCallRequests: import("../kernel/public_call_request.js").PublicCallRequest[];
|
|
5963
7969
|
publicAppLogicCallRequests: import("../kernel/public_call_request.js").PublicCallRequest[];
|
|
@@ -5965,7 +7971,7 @@ export declare class AvmCircuitInputs {
|
|
|
5965
7971
|
previousRevertibleAccumulatedDataArrayLengths: import("../kernel/private_to_avm_accumulated_data.js").PrivateToAvmAccumulatedDataArrayLengths;
|
|
5966
7972
|
previousNonRevertibleAccumulatedData: import("../kernel/private_to_avm_accumulated_data.js").PrivateToAvmAccumulatedData;
|
|
5967
7973
|
previousRevertibleAccumulatedData: import("../kernel/private_to_avm_accumulated_data.js").PrivateToAvmAccumulatedData;
|
|
5968
|
-
endTreeSnapshots:
|
|
7974
|
+
endTreeSnapshots: TreeSnapshots;
|
|
5969
7975
|
endGasUsed: import("../gas/gas.js").Gas;
|
|
5970
7976
|
accumulatedData: import("./avm_accumulated_data.js").AvmAccumulatedData;
|
|
5971
7977
|
reverted: boolean;
|
|
@@ -6268,8 +8274,6 @@ export declare class AvmCircuitInputs {
|
|
|
6268
8274
|
}>;
|
|
6269
8275
|
}, "strip", z.ZodTypeAny, {
|
|
6270
8276
|
publicInputs: AvmCircuitPublicInputs;
|
|
6271
|
-
calldata: Fr[];
|
|
6272
|
-
functionName: string;
|
|
6273
8277
|
hints: AvmExecutionHints;
|
|
6274
8278
|
}, {
|
|
6275
8279
|
publicInputs: {
|
|
@@ -6421,10 +8425,22 @@ export declare class AvmCircuitInputs {
|
|
|
6421
8425
|
reverted: boolean;
|
|
6422
8426
|
feePayer?: any;
|
|
6423
8427
|
};
|
|
6424
|
-
calldata: string[];
|
|
6425
|
-
functionName: string;
|
|
6426
8428
|
hints: {
|
|
6427
8429
|
tx: {
|
|
8430
|
+
hash: string;
|
|
8431
|
+
globalVariables: {
|
|
8432
|
+
gasFees: {
|
|
8433
|
+
feePerDaGas: string;
|
|
8434
|
+
feePerL2Gas: string;
|
|
8435
|
+
};
|
|
8436
|
+
chainId?: any;
|
|
8437
|
+
version?: any;
|
|
8438
|
+
blockNumber?: any;
|
|
8439
|
+
slotNumber?: any;
|
|
8440
|
+
timestamp?: any;
|
|
8441
|
+
coinbase?: any;
|
|
8442
|
+
feeRecipient?: any;
|
|
8443
|
+
};
|
|
6428
8444
|
nonRevertibleAccumulatedData: {
|
|
6429
8445
|
noteHashes: string[];
|
|
6430
8446
|
nullifiers: string[];
|
|
@@ -6479,6 +8495,24 @@ export declare class AvmCircuitInputs {
|
|
|
6479
8495
|
classId: string;
|
|
6480
8496
|
commitment: string;
|
|
6481
8497
|
}[];
|
|
8498
|
+
startingTreeRoots: {
|
|
8499
|
+
noteHashTree: {
|
|
8500
|
+
root: string;
|
|
8501
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
8502
|
+
};
|
|
8503
|
+
nullifierTree: {
|
|
8504
|
+
root: string;
|
|
8505
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
8506
|
+
};
|
|
8507
|
+
publicDataTree: {
|
|
8508
|
+
root: string;
|
|
8509
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
8510
|
+
};
|
|
8511
|
+
l1ToL2MessageTree: {
|
|
8512
|
+
root: string;
|
|
8513
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
8514
|
+
};
|
|
8515
|
+
};
|
|
6482
8516
|
getSiblingPathHints: {
|
|
6483
8517
|
path: string[];
|
|
6484
8518
|
index: string | number | bigint;
|
|
@@ -6655,6 +8689,69 @@ export declare class AvmCircuitInputs {
|
|
|
6655
8689
|
};
|
|
6656
8690
|
};
|
|
6657
8691
|
}[];
|
|
8692
|
+
appendLeavesHints: {
|
|
8693
|
+
hintKey: {
|
|
8694
|
+
root: string;
|
|
8695
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
8696
|
+
};
|
|
8697
|
+
treeId: number;
|
|
8698
|
+
stateAfter: {
|
|
8699
|
+
root: string;
|
|
8700
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
8701
|
+
};
|
|
8702
|
+
leaves: string[];
|
|
8703
|
+
}[];
|
|
8704
|
+
createCheckpointHints: {
|
|
8705
|
+
actionCounter: number;
|
|
8706
|
+
oldCheckpointId: number;
|
|
8707
|
+
newCheckpointId: number;
|
|
8708
|
+
}[];
|
|
8709
|
+
commitCheckpointHints: {
|
|
8710
|
+
actionCounter: number;
|
|
8711
|
+
oldCheckpointId: number;
|
|
8712
|
+
newCheckpointId: number;
|
|
8713
|
+
}[];
|
|
8714
|
+
revertCheckpointHints: {
|
|
8715
|
+
stateAfter: {
|
|
8716
|
+
noteHashTree: {
|
|
8717
|
+
root: string;
|
|
8718
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
8719
|
+
};
|
|
8720
|
+
nullifierTree: {
|
|
8721
|
+
root: string;
|
|
8722
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
8723
|
+
};
|
|
8724
|
+
publicDataTree: {
|
|
8725
|
+
root: string;
|
|
8726
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
8727
|
+
};
|
|
8728
|
+
l1ToL2MessageTree: {
|
|
8729
|
+
root: string;
|
|
8730
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
8731
|
+
};
|
|
8732
|
+
};
|
|
8733
|
+
actionCounter: number;
|
|
8734
|
+
oldCheckpointId: number;
|
|
8735
|
+
newCheckpointId: number;
|
|
8736
|
+
stateBefore: {
|
|
8737
|
+
noteHashTree: {
|
|
8738
|
+
root: string;
|
|
8739
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
8740
|
+
};
|
|
8741
|
+
nullifierTree: {
|
|
8742
|
+
root: string;
|
|
8743
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
8744
|
+
};
|
|
8745
|
+
publicDataTree: {
|
|
8746
|
+
root: string;
|
|
8747
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
8748
|
+
};
|
|
8749
|
+
l1ToL2MessageTree: {
|
|
8750
|
+
root: string;
|
|
8751
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
8752
|
+
};
|
|
8753
|
+
};
|
|
8754
|
+
}[];
|
|
6658
8755
|
};
|
|
6659
8756
|
}>, AvmCircuitInputs, {
|
|
6660
8757
|
publicInputs: {
|
|
@@ -6806,10 +8903,22 @@ export declare class AvmCircuitInputs {
|
|
|
6806
8903
|
reverted: boolean;
|
|
6807
8904
|
feePayer?: any;
|
|
6808
8905
|
};
|
|
6809
|
-
calldata: string[];
|
|
6810
|
-
functionName: string;
|
|
6811
8906
|
hints: {
|
|
6812
8907
|
tx: {
|
|
8908
|
+
hash: string;
|
|
8909
|
+
globalVariables: {
|
|
8910
|
+
gasFees: {
|
|
8911
|
+
feePerDaGas: string;
|
|
8912
|
+
feePerL2Gas: string;
|
|
8913
|
+
};
|
|
8914
|
+
chainId?: any;
|
|
8915
|
+
version?: any;
|
|
8916
|
+
blockNumber?: any;
|
|
8917
|
+
slotNumber?: any;
|
|
8918
|
+
timestamp?: any;
|
|
8919
|
+
coinbase?: any;
|
|
8920
|
+
feeRecipient?: any;
|
|
8921
|
+
};
|
|
6813
8922
|
nonRevertibleAccumulatedData: {
|
|
6814
8923
|
noteHashes: string[];
|
|
6815
8924
|
nullifiers: string[];
|
|
@@ -6864,6 +8973,24 @@ export declare class AvmCircuitInputs {
|
|
|
6864
8973
|
classId: string;
|
|
6865
8974
|
commitment: string;
|
|
6866
8975
|
}[];
|
|
8976
|
+
startingTreeRoots: {
|
|
8977
|
+
noteHashTree: {
|
|
8978
|
+
root: string;
|
|
8979
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
8980
|
+
};
|
|
8981
|
+
nullifierTree: {
|
|
8982
|
+
root: string;
|
|
8983
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
8984
|
+
};
|
|
8985
|
+
publicDataTree: {
|
|
8986
|
+
root: string;
|
|
8987
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
8988
|
+
};
|
|
8989
|
+
l1ToL2MessageTree: {
|
|
8990
|
+
root: string;
|
|
8991
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
8992
|
+
};
|
|
8993
|
+
};
|
|
6867
8994
|
getSiblingPathHints: {
|
|
6868
8995
|
path: string[];
|
|
6869
8996
|
index: string | number | bigint;
|
|
@@ -7040,6 +9167,69 @@ export declare class AvmCircuitInputs {
|
|
|
7040
9167
|
};
|
|
7041
9168
|
};
|
|
7042
9169
|
}[];
|
|
9170
|
+
appendLeavesHints: {
|
|
9171
|
+
hintKey: {
|
|
9172
|
+
root: string;
|
|
9173
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
9174
|
+
};
|
|
9175
|
+
treeId: number;
|
|
9176
|
+
stateAfter: {
|
|
9177
|
+
root: string;
|
|
9178
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
9179
|
+
};
|
|
9180
|
+
leaves: string[];
|
|
9181
|
+
}[];
|
|
9182
|
+
createCheckpointHints: {
|
|
9183
|
+
actionCounter: number;
|
|
9184
|
+
oldCheckpointId: number;
|
|
9185
|
+
newCheckpointId: number;
|
|
9186
|
+
}[];
|
|
9187
|
+
commitCheckpointHints: {
|
|
9188
|
+
actionCounter: number;
|
|
9189
|
+
oldCheckpointId: number;
|
|
9190
|
+
newCheckpointId: number;
|
|
9191
|
+
}[];
|
|
9192
|
+
revertCheckpointHints: {
|
|
9193
|
+
stateAfter: {
|
|
9194
|
+
noteHashTree: {
|
|
9195
|
+
root: string;
|
|
9196
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
9197
|
+
};
|
|
9198
|
+
nullifierTree: {
|
|
9199
|
+
root: string;
|
|
9200
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
9201
|
+
};
|
|
9202
|
+
publicDataTree: {
|
|
9203
|
+
root: string;
|
|
9204
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
9205
|
+
};
|
|
9206
|
+
l1ToL2MessageTree: {
|
|
9207
|
+
root: string;
|
|
9208
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
9209
|
+
};
|
|
9210
|
+
};
|
|
9211
|
+
actionCounter: number;
|
|
9212
|
+
oldCheckpointId: number;
|
|
9213
|
+
newCheckpointId: number;
|
|
9214
|
+
stateBefore: {
|
|
9215
|
+
noteHashTree: {
|
|
9216
|
+
root: string;
|
|
9217
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
9218
|
+
};
|
|
9219
|
+
nullifierTree: {
|
|
9220
|
+
root: string;
|
|
9221
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
9222
|
+
};
|
|
9223
|
+
publicDataTree: {
|
|
9224
|
+
root: string;
|
|
9225
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
9226
|
+
};
|
|
9227
|
+
l1ToL2MessageTree: {
|
|
9228
|
+
root: string;
|
|
9229
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
9230
|
+
};
|
|
9231
|
+
};
|
|
9232
|
+
}[];
|
|
7043
9233
|
};
|
|
7044
9234
|
}>;
|
|
7045
9235
|
serializeWithMessagePack(): Buffer;
|