@aztec/stdlib 0.84.0-alpha-testnet.1 → 0.84.0-nightly.20250406
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 +1691 -123
- package/dest/avm/avm.d.ts.map +1 -1
- package/dest/avm/avm.js +110 -17
- package/dest/avm/avm_proving_request.d.ts +740 -23
- package/dest/avm/avm_proving_request.d.ts.map +1 -1
- 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/proving-job.d.ts +740 -23
- package/dest/interfaces/proving-job.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 +3 -2
- package/dest/logs/pending_tagged_log.d.ts.map +1 -1
- package/dest/logs/pending_tagged_log.js +1 -1
- 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/tests/factories.d.ts +5 -1
- package/dest/tests/factories.d.ts.map +1 -1
- package/dest/tests/factories.js +22 -7
- package/dest/tx/index.d.ts +1 -0
- package/dest/tx/index.d.ts.map +1 -1
- package/dest/tx/index.js +1 -0
- package/dest/tx/validator/error_texts.d.ts +19 -0
- package/dest/tx/validator/error_texts.d.ts.map +1 -0
- package/dest/tx/validator/error_texts.js +26 -0
- package/package.json +6 -6
- package/src/avm/avm.ts +171 -29
- package/src/epoch-helpers/index.ts +19 -0
- package/src/logs/log_with_tx_data.ts +4 -3
- package/src/logs/pending_tagged_log.ts +3 -2
- package/src/messaging/l1_to_l2_message_source.ts +7 -0
- package/src/tests/factories.ts +51 -4
- package/src/tx/index.ts +1 -0
- package/src/tx/validator/error_texts.ts +33 -0
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 { 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,7 @@ export declare class AvmEnqueuedCallHint {
|
|
|
1368
1745
|
}>;
|
|
1369
1746
|
}
|
|
1370
1747
|
export declare class AvmTxHint {
|
|
1748
|
+
readonly hash: string;
|
|
1371
1749
|
readonly nonRevertibleAccumulatedData: {
|
|
1372
1750
|
noteHashes: Fr[];
|
|
1373
1751
|
nullifiers: Fr[];
|
|
@@ -1379,16 +1757,17 @@ export declare class AvmTxHint {
|
|
|
1379
1757
|
readonly setupEnqueuedCalls: AvmEnqueuedCallHint[];
|
|
1380
1758
|
readonly appLogicEnqueuedCalls: AvmEnqueuedCallHint[];
|
|
1381
1759
|
readonly teardownEnqueuedCall: AvmEnqueuedCallHint | null;
|
|
1382
|
-
constructor(nonRevertibleAccumulatedData: {
|
|
1760
|
+
constructor(hash: string, nonRevertibleAccumulatedData: {
|
|
1383
1761
|
noteHashes: Fr[];
|
|
1384
1762
|
nullifiers: Fr[];
|
|
1385
1763
|
}, revertibleAccumulatedData: {
|
|
1386
1764
|
noteHashes: Fr[];
|
|
1387
1765
|
nullifiers: Fr[];
|
|
1388
1766
|
}, setupEnqueuedCalls: AvmEnqueuedCallHint[], appLogicEnqueuedCalls: AvmEnqueuedCallHint[], teardownEnqueuedCall: AvmEnqueuedCallHint | null);
|
|
1389
|
-
static fromTx(tx: Tx): AvmTxHint
|
|
1767
|
+
static fromTx(tx: Tx): Promise<AvmTxHint>;
|
|
1390
1768
|
static empty(): AvmTxHint;
|
|
1391
|
-
static get schema(): z.ZodObject<{
|
|
1769
|
+
static get schema(): z.ZodEffects<z.ZodObject<{
|
|
1770
|
+
hash: z.ZodString;
|
|
1392
1771
|
nonRevertibleAccumulatedData: z.ZodObject<{
|
|
1393
1772
|
noteHashes: z.ZodArray<z.ZodType<Fr, any, string>, "many">;
|
|
1394
1773
|
nullifiers: z.ZodArray<z.ZodType<Fr, any, string>, "many">;
|
|
@@ -1473,6 +1852,7 @@ export declare class AvmTxHint {
|
|
|
1473
1852
|
msgSender?: any;
|
|
1474
1853
|
}>>;
|
|
1475
1854
|
}, "strip", z.ZodTypeAny, {
|
|
1855
|
+
hash: string;
|
|
1476
1856
|
nonRevertibleAccumulatedData: {
|
|
1477
1857
|
noteHashes: Fr[];
|
|
1478
1858
|
nullifiers: Fr[];
|
|
@@ -1485,6 +1865,35 @@ export declare class AvmTxHint {
|
|
|
1485
1865
|
appLogicEnqueuedCalls: AvmEnqueuedCallHint[];
|
|
1486
1866
|
teardownEnqueuedCall: AvmEnqueuedCallHint | null;
|
|
1487
1867
|
}, {
|
|
1868
|
+
hash: string;
|
|
1869
|
+
nonRevertibleAccumulatedData: {
|
|
1870
|
+
noteHashes: string[];
|
|
1871
|
+
nullifiers: string[];
|
|
1872
|
+
};
|
|
1873
|
+
revertibleAccumulatedData: {
|
|
1874
|
+
noteHashes: string[];
|
|
1875
|
+
nullifiers: string[];
|
|
1876
|
+
};
|
|
1877
|
+
setupEnqueuedCalls: {
|
|
1878
|
+
isStaticCall: boolean;
|
|
1879
|
+
calldata: string[];
|
|
1880
|
+
contractAddress?: any;
|
|
1881
|
+
msgSender?: any;
|
|
1882
|
+
}[];
|
|
1883
|
+
appLogicEnqueuedCalls: {
|
|
1884
|
+
isStaticCall: boolean;
|
|
1885
|
+
calldata: string[];
|
|
1886
|
+
contractAddress?: any;
|
|
1887
|
+
msgSender?: any;
|
|
1888
|
+
}[];
|
|
1889
|
+
teardownEnqueuedCall: {
|
|
1890
|
+
isStaticCall: boolean;
|
|
1891
|
+
calldata: string[];
|
|
1892
|
+
contractAddress?: any;
|
|
1893
|
+
msgSender?: any;
|
|
1894
|
+
} | null;
|
|
1895
|
+
}>, AvmTxHint, {
|
|
1896
|
+
hash: string;
|
|
1488
1897
|
nonRevertibleAccumulatedData: {
|
|
1489
1898
|
noteHashes: string[];
|
|
1490
1899
|
nullifiers: string[];
|
|
@@ -1525,10 +1934,15 @@ export declare class AvmExecutionHints {
|
|
|
1525
1934
|
readonly getLeafValueHints: AvmGetLeafValueHint[];
|
|
1526
1935
|
readonly sequentialInsertHintsPublicDataTree: AvmSequentialInsertHintPublicDataTree[];
|
|
1527
1936
|
readonly sequentialInsertHintsNullifierTree: AvmSequentialInsertHintNullifierTree[];
|
|
1528
|
-
|
|
1937
|
+
readonly appendLeavesHints: AvmAppendLeavesHint[];
|
|
1938
|
+
readonly createCheckpointHints: AvmCreateCheckpointHint[];
|
|
1939
|
+
readonly commitCheckpointHints: AvmCommitCheckpointHint[];
|
|
1940
|
+
readonly revertCheckpointHints: AvmRevertCheckpointHint[];
|
|
1941
|
+
constructor(tx: AvmTxHint, contractInstances?: AvmContractInstanceHint[], contractClasses?: AvmContractClassHint[], bytecodeCommitments?: AvmBytecodeCommitmentHint[], getSiblingPathHints?: AvmGetSiblingPathHint[], getPreviousValueIndexHints?: AvmGetPreviousValueIndexHint[], getLeafPreimageHintsPublicDataTree?: AvmGetLeafPreimageHintPublicDataTree[], getLeafPreimageHintsNullifierTree?: AvmGetLeafPreimageHintNullifierTree[], getLeafValueHints?: AvmGetLeafValueHint[], sequentialInsertHintsPublicDataTree?: AvmSequentialInsertHintPublicDataTree[], sequentialInsertHintsNullifierTree?: AvmSequentialInsertHintNullifierTree[], appendLeavesHints?: AvmAppendLeavesHint[], createCheckpointHints?: AvmCreateCheckpointHint[], commitCheckpointHints?: AvmCommitCheckpointHint[], revertCheckpointHints?: AvmRevertCheckpointHint[]);
|
|
1529
1942
|
static empty(): AvmExecutionHints;
|
|
1530
1943
|
static get schema(): z.ZodEffects<z.ZodObject<{
|
|
1531
|
-
tx: z.ZodObject<{
|
|
1944
|
+
tx: z.ZodEffects<z.ZodObject<{
|
|
1945
|
+
hash: z.ZodString;
|
|
1532
1946
|
nonRevertibleAccumulatedData: z.ZodObject<{
|
|
1533
1947
|
noteHashes: z.ZodArray<z.ZodType<Fr, any, string>, "many">;
|
|
1534
1948
|
nullifiers: z.ZodArray<z.ZodType<Fr, any, string>, "many">;
|
|
@@ -1613,6 +2027,7 @@ export declare class AvmExecutionHints {
|
|
|
1613
2027
|
msgSender?: any;
|
|
1614
2028
|
}>>;
|
|
1615
2029
|
}, "strip", z.ZodTypeAny, {
|
|
2030
|
+
hash: string;
|
|
1616
2031
|
nonRevertibleAccumulatedData: {
|
|
1617
2032
|
noteHashes: Fr[];
|
|
1618
2033
|
nullifiers: Fr[];
|
|
@@ -1625,6 +2040,35 @@ export declare class AvmExecutionHints {
|
|
|
1625
2040
|
appLogicEnqueuedCalls: AvmEnqueuedCallHint[];
|
|
1626
2041
|
teardownEnqueuedCall: AvmEnqueuedCallHint | null;
|
|
1627
2042
|
}, {
|
|
2043
|
+
hash: string;
|
|
2044
|
+
nonRevertibleAccumulatedData: {
|
|
2045
|
+
noteHashes: string[];
|
|
2046
|
+
nullifiers: string[];
|
|
2047
|
+
};
|
|
2048
|
+
revertibleAccumulatedData: {
|
|
2049
|
+
noteHashes: string[];
|
|
2050
|
+
nullifiers: string[];
|
|
2051
|
+
};
|
|
2052
|
+
setupEnqueuedCalls: {
|
|
2053
|
+
isStaticCall: boolean;
|
|
2054
|
+
calldata: string[];
|
|
2055
|
+
contractAddress?: any;
|
|
2056
|
+
msgSender?: any;
|
|
2057
|
+
}[];
|
|
2058
|
+
appLogicEnqueuedCalls: {
|
|
2059
|
+
isStaticCall: boolean;
|
|
2060
|
+
calldata: string[];
|
|
2061
|
+
contractAddress?: any;
|
|
2062
|
+
msgSender?: any;
|
|
2063
|
+
}[];
|
|
2064
|
+
teardownEnqueuedCall: {
|
|
2065
|
+
isStaticCall: boolean;
|
|
2066
|
+
calldata: string[];
|
|
2067
|
+
contractAddress?: any;
|
|
2068
|
+
msgSender?: any;
|
|
2069
|
+
} | null;
|
|
2070
|
+
}>, AvmTxHint, {
|
|
2071
|
+
hash: string;
|
|
1628
2072
|
nonRevertibleAccumulatedData: {
|
|
1629
2073
|
noteHashes: string[];
|
|
1630
2074
|
nullifiers: string[];
|
|
@@ -2740,7 +3184,74 @@ export declare class AvmExecutionHints {
|
|
|
2740
3184
|
insertionWitnessData: {
|
|
2741
3185
|
path: Fr[];
|
|
2742
3186
|
index: bigint;
|
|
2743
|
-
leaf: NullifierLeafPreimage | PublicDataTreeLeafPreimage;
|
|
3187
|
+
leaf: NullifierLeafPreimage | PublicDataTreeLeafPreimage;
|
|
3188
|
+
};
|
|
3189
|
+
}, {
|
|
3190
|
+
leaf: {
|
|
3191
|
+
nullifier: string;
|
|
3192
|
+
} | {
|
|
3193
|
+
value: string;
|
|
3194
|
+
slot: string;
|
|
3195
|
+
};
|
|
3196
|
+
hintKey: {
|
|
3197
|
+
root: string;
|
|
3198
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3199
|
+
};
|
|
3200
|
+
treeId: number;
|
|
3201
|
+
stateAfter: {
|
|
3202
|
+
root: string;
|
|
3203
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3204
|
+
};
|
|
3205
|
+
lowLeavesWitnessData: {
|
|
3206
|
+
path: string[];
|
|
3207
|
+
index: string | number | bigint;
|
|
3208
|
+
leaf: {
|
|
3209
|
+
leaf: {
|
|
3210
|
+
nullifier: string;
|
|
3211
|
+
};
|
|
3212
|
+
nextKey: string;
|
|
3213
|
+
nextIndex: string | number | bigint;
|
|
3214
|
+
} | {
|
|
3215
|
+
leaf: {
|
|
3216
|
+
value: string;
|
|
3217
|
+
slot: string;
|
|
3218
|
+
};
|
|
3219
|
+
nextKey: string;
|
|
3220
|
+
nextIndex: string | number | bigint;
|
|
3221
|
+
};
|
|
3222
|
+
};
|
|
3223
|
+
insertionWitnessData: {
|
|
3224
|
+
path: string[];
|
|
3225
|
+
index: string | number | bigint;
|
|
3226
|
+
leaf: {
|
|
3227
|
+
leaf: {
|
|
3228
|
+
nullifier: string;
|
|
3229
|
+
};
|
|
3230
|
+
nextKey: string;
|
|
3231
|
+
nextIndex: string | number | bigint;
|
|
3232
|
+
} | {
|
|
3233
|
+
leaf: {
|
|
3234
|
+
value: string;
|
|
3235
|
+
slot: string;
|
|
3236
|
+
};
|
|
3237
|
+
nextKey: string;
|
|
3238
|
+
nextIndex: string | number | bigint;
|
|
3239
|
+
};
|
|
3240
|
+
};
|
|
3241
|
+
}>, {
|
|
3242
|
+
readonly hintKey: AppendOnlyTreeSnapshot;
|
|
3243
|
+
readonly stateAfter: AppendOnlyTreeSnapshot;
|
|
3244
|
+
readonly treeId: MerkleTreeId;
|
|
3245
|
+
readonly leaf: import("../trees/nullifier_leaf.js").NullifierLeaf | import("../trees/public_data_leaf.js").PublicDataTreeLeaf;
|
|
3246
|
+
readonly lowLeavesWitnessData: {
|
|
3247
|
+
leaf: IndexedTreeLeafPreimages;
|
|
3248
|
+
index: bigint;
|
|
3249
|
+
path: Fr[];
|
|
3250
|
+
};
|
|
3251
|
+
readonly insertionWitnessData: {
|
|
3252
|
+
leaf: IndexedTreeLeafPreimages;
|
|
3253
|
+
index: bigint;
|
|
3254
|
+
path: Fr[];
|
|
2744
3255
|
};
|
|
2745
3256
|
}, {
|
|
2746
3257
|
leaf: {
|
|
@@ -2794,88 +3305,377 @@ export declare class AvmExecutionHints {
|
|
|
2794
3305
|
nextIndex: string | number | bigint;
|
|
2795
3306
|
};
|
|
2796
3307
|
};
|
|
2797
|
-
}>,
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
3308
|
+
}>, "many">;
|
|
3309
|
+
appendLeavesHints: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
3310
|
+
hintKey: z.ZodEffects<z.ZodObject<{
|
|
3311
|
+
root: z.ZodType<Fr, any, string>;
|
|
3312
|
+
nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
3313
|
+
}, "strip", z.ZodTypeAny, {
|
|
3314
|
+
root: Fr;
|
|
3315
|
+
nextAvailableLeafIndex: number;
|
|
3316
|
+
}, {
|
|
3317
|
+
root: string;
|
|
3318
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3319
|
+
}>, AppendOnlyTreeSnapshot, {
|
|
3320
|
+
root: string;
|
|
3321
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3322
|
+
}>;
|
|
3323
|
+
stateAfter: z.ZodEffects<z.ZodObject<{
|
|
3324
|
+
root: z.ZodType<Fr, any, string>;
|
|
3325
|
+
nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
3326
|
+
}, "strip", z.ZodTypeAny, {
|
|
3327
|
+
root: Fr;
|
|
3328
|
+
nextAvailableLeafIndex: number;
|
|
3329
|
+
}, {
|
|
3330
|
+
root: string;
|
|
3331
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3332
|
+
}>, AppendOnlyTreeSnapshot, {
|
|
3333
|
+
root: string;
|
|
3334
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3335
|
+
}>;
|
|
3336
|
+
treeId: z.ZodNumber;
|
|
3337
|
+
leaves: z.ZodArray<z.ZodType<Fr, any, string>, "many">;
|
|
3338
|
+
}, "strip", z.ZodTypeAny, {
|
|
3339
|
+
hintKey: AppendOnlyTreeSnapshot;
|
|
3340
|
+
treeId: number;
|
|
3341
|
+
stateAfter: AppendOnlyTreeSnapshot;
|
|
3342
|
+
leaves: Fr[];
|
|
3343
|
+
}, {
|
|
3344
|
+
hintKey: {
|
|
3345
|
+
root: string;
|
|
3346
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
2806
3347
|
};
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
3348
|
+
treeId: number;
|
|
3349
|
+
stateAfter: {
|
|
3350
|
+
root: string;
|
|
3351
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3352
|
+
};
|
|
3353
|
+
leaves: string[];
|
|
3354
|
+
}>, AvmAppendLeavesHint, {
|
|
3355
|
+
hintKey: {
|
|
3356
|
+
root: string;
|
|
3357
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3358
|
+
};
|
|
3359
|
+
treeId: number;
|
|
3360
|
+
stateAfter: {
|
|
3361
|
+
root: string;
|
|
3362
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
2811
3363
|
};
|
|
3364
|
+
leaves: string[];
|
|
3365
|
+
}>, "many">;
|
|
3366
|
+
createCheckpointHints: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
3367
|
+
actionCounter: z.ZodNumber;
|
|
3368
|
+
oldCheckpointId: z.ZodNumber;
|
|
3369
|
+
newCheckpointId: z.ZodNumber;
|
|
3370
|
+
}, "strip", z.ZodTypeAny, {
|
|
3371
|
+
actionCounter: number;
|
|
3372
|
+
oldCheckpointId: number;
|
|
3373
|
+
newCheckpointId: number;
|
|
3374
|
+
}, {
|
|
3375
|
+
actionCounter: number;
|
|
3376
|
+
oldCheckpointId: number;
|
|
3377
|
+
newCheckpointId: number;
|
|
3378
|
+
}>, AvmCheckpointActionNoStateChangeHint, {
|
|
3379
|
+
actionCounter: number;
|
|
3380
|
+
oldCheckpointId: number;
|
|
3381
|
+
newCheckpointId: number;
|
|
3382
|
+
}>, "many">;
|
|
3383
|
+
commitCheckpointHints: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
3384
|
+
actionCounter: z.ZodNumber;
|
|
3385
|
+
oldCheckpointId: z.ZodNumber;
|
|
3386
|
+
newCheckpointId: z.ZodNumber;
|
|
3387
|
+
}, "strip", z.ZodTypeAny, {
|
|
3388
|
+
actionCounter: number;
|
|
3389
|
+
oldCheckpointId: number;
|
|
3390
|
+
newCheckpointId: number;
|
|
3391
|
+
}, {
|
|
3392
|
+
actionCounter: number;
|
|
3393
|
+
oldCheckpointId: number;
|
|
3394
|
+
newCheckpointId: number;
|
|
3395
|
+
}>, AvmCheckpointActionNoStateChangeHint, {
|
|
3396
|
+
actionCounter: number;
|
|
3397
|
+
oldCheckpointId: number;
|
|
3398
|
+
newCheckpointId: number;
|
|
3399
|
+
}>, "many">;
|
|
3400
|
+
revertCheckpointHints: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
3401
|
+
actionCounter: z.ZodNumber;
|
|
3402
|
+
oldCheckpointId: z.ZodNumber;
|
|
3403
|
+
newCheckpointId: z.ZodNumber;
|
|
3404
|
+
stateBefore: z.ZodEffects<z.ZodObject<{
|
|
3405
|
+
l1ToL2MessageTree: z.ZodEffects<z.ZodObject<{
|
|
3406
|
+
root: z.ZodType<Fr, any, string>;
|
|
3407
|
+
nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
3408
|
+
}, "strip", z.ZodTypeAny, {
|
|
3409
|
+
root: Fr;
|
|
3410
|
+
nextAvailableLeafIndex: number;
|
|
3411
|
+
}, {
|
|
3412
|
+
root: string;
|
|
3413
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3414
|
+
}>, AppendOnlyTreeSnapshot, {
|
|
3415
|
+
root: string;
|
|
3416
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3417
|
+
}>;
|
|
3418
|
+
noteHashTree: z.ZodEffects<z.ZodObject<{
|
|
3419
|
+
root: z.ZodType<Fr, any, string>;
|
|
3420
|
+
nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
3421
|
+
}, "strip", z.ZodTypeAny, {
|
|
3422
|
+
root: Fr;
|
|
3423
|
+
nextAvailableLeafIndex: number;
|
|
3424
|
+
}, {
|
|
3425
|
+
root: string;
|
|
3426
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3427
|
+
}>, AppendOnlyTreeSnapshot, {
|
|
3428
|
+
root: string;
|
|
3429
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3430
|
+
}>;
|
|
3431
|
+
nullifierTree: z.ZodEffects<z.ZodObject<{
|
|
3432
|
+
root: z.ZodType<Fr, any, string>;
|
|
3433
|
+
nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
3434
|
+
}, "strip", z.ZodTypeAny, {
|
|
3435
|
+
root: Fr;
|
|
3436
|
+
nextAvailableLeafIndex: number;
|
|
3437
|
+
}, {
|
|
3438
|
+
root: string;
|
|
3439
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3440
|
+
}>, AppendOnlyTreeSnapshot, {
|
|
3441
|
+
root: string;
|
|
3442
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3443
|
+
}>;
|
|
3444
|
+
publicDataTree: z.ZodEffects<z.ZodObject<{
|
|
3445
|
+
root: z.ZodType<Fr, any, string>;
|
|
3446
|
+
nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
3447
|
+
}, "strip", z.ZodTypeAny, {
|
|
3448
|
+
root: Fr;
|
|
3449
|
+
nextAvailableLeafIndex: number;
|
|
3450
|
+
}, {
|
|
3451
|
+
root: string;
|
|
3452
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3453
|
+
}>, AppendOnlyTreeSnapshot, {
|
|
3454
|
+
root: string;
|
|
3455
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3456
|
+
}>;
|
|
3457
|
+
}, "strip", z.ZodTypeAny, {
|
|
3458
|
+
noteHashTree: AppendOnlyTreeSnapshot;
|
|
3459
|
+
nullifierTree: AppendOnlyTreeSnapshot;
|
|
3460
|
+
publicDataTree: AppendOnlyTreeSnapshot;
|
|
3461
|
+
l1ToL2MessageTree: AppendOnlyTreeSnapshot;
|
|
3462
|
+
}, {
|
|
3463
|
+
noteHashTree: {
|
|
3464
|
+
root: string;
|
|
3465
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3466
|
+
};
|
|
3467
|
+
nullifierTree: {
|
|
3468
|
+
root: string;
|
|
3469
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3470
|
+
};
|
|
3471
|
+
publicDataTree: {
|
|
3472
|
+
root: string;
|
|
3473
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3474
|
+
};
|
|
3475
|
+
l1ToL2MessageTree: {
|
|
3476
|
+
root: string;
|
|
3477
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3478
|
+
};
|
|
3479
|
+
}>, TreeSnapshots, {
|
|
3480
|
+
noteHashTree: {
|
|
3481
|
+
root: string;
|
|
3482
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3483
|
+
};
|
|
3484
|
+
nullifierTree: {
|
|
3485
|
+
root: string;
|
|
3486
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3487
|
+
};
|
|
3488
|
+
publicDataTree: {
|
|
3489
|
+
root: string;
|
|
3490
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3491
|
+
};
|
|
3492
|
+
l1ToL2MessageTree: {
|
|
3493
|
+
root: string;
|
|
3494
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3495
|
+
};
|
|
3496
|
+
}>;
|
|
3497
|
+
stateAfter: z.ZodEffects<z.ZodObject<{
|
|
3498
|
+
l1ToL2MessageTree: z.ZodEffects<z.ZodObject<{
|
|
3499
|
+
root: z.ZodType<Fr, any, string>;
|
|
3500
|
+
nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
3501
|
+
}, "strip", z.ZodTypeAny, {
|
|
3502
|
+
root: Fr;
|
|
3503
|
+
nextAvailableLeafIndex: number;
|
|
3504
|
+
}, {
|
|
3505
|
+
root: string;
|
|
3506
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3507
|
+
}>, AppendOnlyTreeSnapshot, {
|
|
3508
|
+
root: string;
|
|
3509
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3510
|
+
}>;
|
|
3511
|
+
noteHashTree: z.ZodEffects<z.ZodObject<{
|
|
3512
|
+
root: z.ZodType<Fr, any, string>;
|
|
3513
|
+
nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
3514
|
+
}, "strip", z.ZodTypeAny, {
|
|
3515
|
+
root: Fr;
|
|
3516
|
+
nextAvailableLeafIndex: number;
|
|
3517
|
+
}, {
|
|
3518
|
+
root: string;
|
|
3519
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3520
|
+
}>, AppendOnlyTreeSnapshot, {
|
|
3521
|
+
root: string;
|
|
3522
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3523
|
+
}>;
|
|
3524
|
+
nullifierTree: z.ZodEffects<z.ZodObject<{
|
|
3525
|
+
root: z.ZodType<Fr, any, string>;
|
|
3526
|
+
nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
3527
|
+
}, "strip", z.ZodTypeAny, {
|
|
3528
|
+
root: Fr;
|
|
3529
|
+
nextAvailableLeafIndex: number;
|
|
3530
|
+
}, {
|
|
3531
|
+
root: string;
|
|
3532
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3533
|
+
}>, AppendOnlyTreeSnapshot, {
|
|
3534
|
+
root: string;
|
|
3535
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3536
|
+
}>;
|
|
3537
|
+
publicDataTree: z.ZodEffects<z.ZodObject<{
|
|
3538
|
+
root: z.ZodType<Fr, any, string>;
|
|
3539
|
+
nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
3540
|
+
}, "strip", z.ZodTypeAny, {
|
|
3541
|
+
root: Fr;
|
|
3542
|
+
nextAvailableLeafIndex: number;
|
|
3543
|
+
}, {
|
|
3544
|
+
root: string;
|
|
3545
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3546
|
+
}>, AppendOnlyTreeSnapshot, {
|
|
3547
|
+
root: string;
|
|
3548
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3549
|
+
}>;
|
|
3550
|
+
}, "strip", z.ZodTypeAny, {
|
|
3551
|
+
noteHashTree: AppendOnlyTreeSnapshot;
|
|
3552
|
+
nullifierTree: AppendOnlyTreeSnapshot;
|
|
3553
|
+
publicDataTree: AppendOnlyTreeSnapshot;
|
|
3554
|
+
l1ToL2MessageTree: AppendOnlyTreeSnapshot;
|
|
3555
|
+
}, {
|
|
3556
|
+
noteHashTree: {
|
|
3557
|
+
root: string;
|
|
3558
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3559
|
+
};
|
|
3560
|
+
nullifierTree: {
|
|
3561
|
+
root: string;
|
|
3562
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3563
|
+
};
|
|
3564
|
+
publicDataTree: {
|
|
3565
|
+
root: string;
|
|
3566
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3567
|
+
};
|
|
3568
|
+
l1ToL2MessageTree: {
|
|
3569
|
+
root: string;
|
|
3570
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3571
|
+
};
|
|
3572
|
+
}>, TreeSnapshots, {
|
|
3573
|
+
noteHashTree: {
|
|
3574
|
+
root: string;
|
|
3575
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3576
|
+
};
|
|
3577
|
+
nullifierTree: {
|
|
3578
|
+
root: string;
|
|
3579
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3580
|
+
};
|
|
3581
|
+
publicDataTree: {
|
|
3582
|
+
root: string;
|
|
3583
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3584
|
+
};
|
|
3585
|
+
l1ToL2MessageTree: {
|
|
3586
|
+
root: string;
|
|
3587
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3588
|
+
};
|
|
3589
|
+
}>;
|
|
3590
|
+
}, "strip", z.ZodTypeAny, {
|
|
3591
|
+
stateAfter: TreeSnapshots;
|
|
3592
|
+
actionCounter: number;
|
|
3593
|
+
oldCheckpointId: number;
|
|
3594
|
+
newCheckpointId: number;
|
|
3595
|
+
stateBefore: TreeSnapshots;
|
|
2812
3596
|
}, {
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
3597
|
+
stateAfter: {
|
|
3598
|
+
noteHashTree: {
|
|
3599
|
+
root: string;
|
|
3600
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3601
|
+
};
|
|
3602
|
+
nullifierTree: {
|
|
3603
|
+
root: string;
|
|
3604
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3605
|
+
};
|
|
3606
|
+
publicDataTree: {
|
|
3607
|
+
root: string;
|
|
3608
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3609
|
+
};
|
|
3610
|
+
l1ToL2MessageTree: {
|
|
3611
|
+
root: string;
|
|
3612
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3613
|
+
};
|
|
2818
3614
|
};
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
3615
|
+
actionCounter: number;
|
|
3616
|
+
oldCheckpointId: number;
|
|
3617
|
+
newCheckpointId: number;
|
|
3618
|
+
stateBefore: {
|
|
3619
|
+
noteHashTree: {
|
|
3620
|
+
root: string;
|
|
3621
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3622
|
+
};
|
|
3623
|
+
nullifierTree: {
|
|
3624
|
+
root: string;
|
|
3625
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3626
|
+
};
|
|
3627
|
+
publicDataTree: {
|
|
3628
|
+
root: string;
|
|
3629
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3630
|
+
};
|
|
3631
|
+
l1ToL2MessageTree: {
|
|
3632
|
+
root: string;
|
|
3633
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3634
|
+
};
|
|
2822
3635
|
};
|
|
2823
|
-
|
|
3636
|
+
}>, AvmRevertCheckpointHint, {
|
|
2824
3637
|
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;
|
|
3638
|
+
noteHashTree: {
|
|
3639
|
+
root: string;
|
|
3640
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3641
|
+
};
|
|
3642
|
+
nullifierTree: {
|
|
3643
|
+
root: string;
|
|
3644
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3645
|
+
};
|
|
3646
|
+
publicDataTree: {
|
|
3647
|
+
root: string;
|
|
3648
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3649
|
+
};
|
|
3650
|
+
l1ToL2MessageTree: {
|
|
3651
|
+
root: string;
|
|
3652
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
2844
3653
|
};
|
|
2845
3654
|
};
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
3655
|
+
actionCounter: number;
|
|
3656
|
+
oldCheckpointId: number;
|
|
3657
|
+
newCheckpointId: number;
|
|
3658
|
+
stateBefore: {
|
|
3659
|
+
noteHashTree: {
|
|
3660
|
+
root: string;
|
|
3661
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3662
|
+
};
|
|
3663
|
+
nullifierTree: {
|
|
3664
|
+
root: string;
|
|
3665
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3666
|
+
};
|
|
3667
|
+
publicDataTree: {
|
|
3668
|
+
root: string;
|
|
3669
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3670
|
+
};
|
|
3671
|
+
l1ToL2MessageTree: {
|
|
3672
|
+
root: string;
|
|
3673
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
2862
3674
|
};
|
|
2863
3675
|
};
|
|
2864
3676
|
}>, "many">;
|
|
2865
3677
|
}, "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
|
-
};
|
|
3678
|
+
tx: AvmTxHint;
|
|
2879
3679
|
contractInstances: AvmContractInstanceHint[];
|
|
2880
3680
|
contractClasses: AvmContractClassHint[];
|
|
2881
3681
|
bytecodeCommitments: AvmBytecodeCommitmentHint[];
|
|
@@ -2924,8 +3724,13 @@ export declare class AvmExecutionHints {
|
|
|
2924
3724
|
path: Fr[];
|
|
2925
3725
|
};
|
|
2926
3726
|
}[];
|
|
3727
|
+
appendLeavesHints: AvmAppendLeavesHint[];
|
|
3728
|
+
createCheckpointHints: AvmCheckpointActionNoStateChangeHint[];
|
|
3729
|
+
commitCheckpointHints: AvmCheckpointActionNoStateChangeHint[];
|
|
3730
|
+
revertCheckpointHints: AvmRevertCheckpointHint[];
|
|
2927
3731
|
}, {
|
|
2928
3732
|
tx: {
|
|
3733
|
+
hash: string;
|
|
2929
3734
|
nonRevertibleAccumulatedData: {
|
|
2930
3735
|
noteHashes: string[];
|
|
2931
3736
|
nullifiers: string[];
|
|
@@ -3156,8 +3961,72 @@ export declare class AvmExecutionHints {
|
|
|
3156
3961
|
};
|
|
3157
3962
|
};
|
|
3158
3963
|
}[];
|
|
3964
|
+
appendLeavesHints: {
|
|
3965
|
+
hintKey: {
|
|
3966
|
+
root: string;
|
|
3967
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3968
|
+
};
|
|
3969
|
+
treeId: number;
|
|
3970
|
+
stateAfter: {
|
|
3971
|
+
root: string;
|
|
3972
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3973
|
+
};
|
|
3974
|
+
leaves: string[];
|
|
3975
|
+
}[];
|
|
3976
|
+
createCheckpointHints: {
|
|
3977
|
+
actionCounter: number;
|
|
3978
|
+
oldCheckpointId: number;
|
|
3979
|
+
newCheckpointId: number;
|
|
3980
|
+
}[];
|
|
3981
|
+
commitCheckpointHints: {
|
|
3982
|
+
actionCounter: number;
|
|
3983
|
+
oldCheckpointId: number;
|
|
3984
|
+
newCheckpointId: number;
|
|
3985
|
+
}[];
|
|
3986
|
+
revertCheckpointHints: {
|
|
3987
|
+
stateAfter: {
|
|
3988
|
+
noteHashTree: {
|
|
3989
|
+
root: string;
|
|
3990
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3991
|
+
};
|
|
3992
|
+
nullifierTree: {
|
|
3993
|
+
root: string;
|
|
3994
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3995
|
+
};
|
|
3996
|
+
publicDataTree: {
|
|
3997
|
+
root: string;
|
|
3998
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
3999
|
+
};
|
|
4000
|
+
l1ToL2MessageTree: {
|
|
4001
|
+
root: string;
|
|
4002
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
4003
|
+
};
|
|
4004
|
+
};
|
|
4005
|
+
actionCounter: number;
|
|
4006
|
+
oldCheckpointId: number;
|
|
4007
|
+
newCheckpointId: number;
|
|
4008
|
+
stateBefore: {
|
|
4009
|
+
noteHashTree: {
|
|
4010
|
+
root: string;
|
|
4011
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
4012
|
+
};
|
|
4013
|
+
nullifierTree: {
|
|
4014
|
+
root: string;
|
|
4015
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
4016
|
+
};
|
|
4017
|
+
publicDataTree: {
|
|
4018
|
+
root: string;
|
|
4019
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
4020
|
+
};
|
|
4021
|
+
l1ToL2MessageTree: {
|
|
4022
|
+
root: string;
|
|
4023
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
4024
|
+
};
|
|
4025
|
+
};
|
|
4026
|
+
}[];
|
|
3159
4027
|
}>, AvmExecutionHints, {
|
|
3160
4028
|
tx: {
|
|
4029
|
+
hash: string;
|
|
3161
4030
|
nonRevertibleAccumulatedData: {
|
|
3162
4031
|
noteHashes: string[];
|
|
3163
4032
|
nullifiers: string[];
|
|
@@ -3388,21 +4257,80 @@ export declare class AvmExecutionHints {
|
|
|
3388
4257
|
};
|
|
3389
4258
|
};
|
|
3390
4259
|
}[];
|
|
4260
|
+
appendLeavesHints: {
|
|
4261
|
+
hintKey: {
|
|
4262
|
+
root: string;
|
|
4263
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
4264
|
+
};
|
|
4265
|
+
treeId: number;
|
|
4266
|
+
stateAfter: {
|
|
4267
|
+
root: string;
|
|
4268
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
4269
|
+
};
|
|
4270
|
+
leaves: string[];
|
|
4271
|
+
}[];
|
|
4272
|
+
createCheckpointHints: {
|
|
4273
|
+
actionCounter: number;
|
|
4274
|
+
oldCheckpointId: number;
|
|
4275
|
+
newCheckpointId: number;
|
|
4276
|
+
}[];
|
|
4277
|
+
commitCheckpointHints: {
|
|
4278
|
+
actionCounter: number;
|
|
4279
|
+
oldCheckpointId: number;
|
|
4280
|
+
newCheckpointId: number;
|
|
4281
|
+
}[];
|
|
4282
|
+
revertCheckpointHints: {
|
|
4283
|
+
stateAfter: {
|
|
4284
|
+
noteHashTree: {
|
|
4285
|
+
root: string;
|
|
4286
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
4287
|
+
};
|
|
4288
|
+
nullifierTree: {
|
|
4289
|
+
root: string;
|
|
4290
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
4291
|
+
};
|
|
4292
|
+
publicDataTree: {
|
|
4293
|
+
root: string;
|
|
4294
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
4295
|
+
};
|
|
4296
|
+
l1ToL2MessageTree: {
|
|
4297
|
+
root: string;
|
|
4298
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
4299
|
+
};
|
|
4300
|
+
};
|
|
4301
|
+
actionCounter: number;
|
|
4302
|
+
oldCheckpointId: number;
|
|
4303
|
+
newCheckpointId: number;
|
|
4304
|
+
stateBefore: {
|
|
4305
|
+
noteHashTree: {
|
|
4306
|
+
root: string;
|
|
4307
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
4308
|
+
};
|
|
4309
|
+
nullifierTree: {
|
|
4310
|
+
root: string;
|
|
4311
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
4312
|
+
};
|
|
4313
|
+
publicDataTree: {
|
|
4314
|
+
root: string;
|
|
4315
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
4316
|
+
};
|
|
4317
|
+
l1ToL2MessageTree: {
|
|
4318
|
+
root: string;
|
|
4319
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
4320
|
+
};
|
|
4321
|
+
};
|
|
4322
|
+
}[];
|
|
3391
4323
|
}>;
|
|
3392
4324
|
}
|
|
3393
4325
|
export declare class AvmCircuitInputs {
|
|
3394
|
-
readonly functionName: string;
|
|
3395
|
-
readonly calldata: Fr[];
|
|
3396
4326
|
readonly hints: AvmExecutionHints;
|
|
3397
4327
|
publicInputs: AvmCircuitPublicInputs;
|
|
3398
|
-
constructor(
|
|
3399
|
-
calldata: Fr[], hints: AvmExecutionHints, publicInputs: AvmCircuitPublicInputs);
|
|
4328
|
+
constructor(hints: AvmExecutionHints, publicInputs: AvmCircuitPublicInputs);
|
|
3400
4329
|
static empty(): AvmCircuitInputs;
|
|
3401
4330
|
static get schema(): z.ZodEffects<z.ZodObject<{
|
|
3402
|
-
functionName: z.ZodString;
|
|
3403
|
-
calldata: z.ZodArray<z.ZodType<Fr, any, string>, "many">;
|
|
3404
4331
|
hints: z.ZodEffects<z.ZodObject<{
|
|
3405
|
-
tx: z.ZodObject<{
|
|
4332
|
+
tx: z.ZodEffects<z.ZodObject<{
|
|
4333
|
+
hash: z.ZodString;
|
|
3406
4334
|
nonRevertibleAccumulatedData: z.ZodObject<{
|
|
3407
4335
|
noteHashes: z.ZodArray<z.ZodType<Fr, any, string>, "many">;
|
|
3408
4336
|
nullifiers: z.ZodArray<z.ZodType<Fr, any, string>, "many">;
|
|
@@ -3474,31 +4402,61 @@ export declare class AvmCircuitInputs {
|
|
|
3474
4402
|
contractAddress: AztecAddress;
|
|
3475
4403
|
msgSender: AztecAddress;
|
|
3476
4404
|
isStaticCall: boolean;
|
|
3477
|
-
calldata: Fr[];
|
|
3478
|
-
}, {
|
|
4405
|
+
calldata: Fr[];
|
|
4406
|
+
}, {
|
|
4407
|
+
isStaticCall: boolean;
|
|
4408
|
+
calldata: string[];
|
|
4409
|
+
contractAddress?: any;
|
|
4410
|
+
msgSender?: any;
|
|
4411
|
+
}>, AvmEnqueuedCallHint, {
|
|
4412
|
+
isStaticCall: boolean;
|
|
4413
|
+
calldata: string[];
|
|
4414
|
+
contractAddress?: any;
|
|
4415
|
+
msgSender?: any;
|
|
4416
|
+
}>>;
|
|
4417
|
+
}, "strip", z.ZodTypeAny, {
|
|
4418
|
+
hash: string;
|
|
4419
|
+
nonRevertibleAccumulatedData: {
|
|
4420
|
+
noteHashes: Fr[];
|
|
4421
|
+
nullifiers: Fr[];
|
|
4422
|
+
};
|
|
4423
|
+
revertibleAccumulatedData: {
|
|
4424
|
+
noteHashes: Fr[];
|
|
4425
|
+
nullifiers: Fr[];
|
|
4426
|
+
};
|
|
4427
|
+
setupEnqueuedCalls: AvmEnqueuedCallHint[];
|
|
4428
|
+
appLogicEnqueuedCalls: AvmEnqueuedCallHint[];
|
|
4429
|
+
teardownEnqueuedCall: AvmEnqueuedCallHint | null;
|
|
4430
|
+
}, {
|
|
4431
|
+
hash: string;
|
|
4432
|
+
nonRevertibleAccumulatedData: {
|
|
4433
|
+
noteHashes: string[];
|
|
4434
|
+
nullifiers: string[];
|
|
4435
|
+
};
|
|
4436
|
+
revertibleAccumulatedData: {
|
|
4437
|
+
noteHashes: string[];
|
|
4438
|
+
nullifiers: string[];
|
|
4439
|
+
};
|
|
4440
|
+
setupEnqueuedCalls: {
|
|
4441
|
+
isStaticCall: boolean;
|
|
4442
|
+
calldata: string[];
|
|
4443
|
+
contractAddress?: any;
|
|
4444
|
+
msgSender?: any;
|
|
4445
|
+
}[];
|
|
4446
|
+
appLogicEnqueuedCalls: {
|
|
3479
4447
|
isStaticCall: boolean;
|
|
3480
4448
|
calldata: string[];
|
|
3481
4449
|
contractAddress?: any;
|
|
3482
4450
|
msgSender?: any;
|
|
3483
|
-
}
|
|
4451
|
+
}[];
|
|
4452
|
+
teardownEnqueuedCall: {
|
|
3484
4453
|
isStaticCall: boolean;
|
|
3485
4454
|
calldata: string[];
|
|
3486
4455
|
contractAddress?: any;
|
|
3487
4456
|
msgSender?: any;
|
|
3488
|
-
}
|
|
3489
|
-
}
|
|
3490
|
-
|
|
3491
|
-
noteHashes: Fr[];
|
|
3492
|
-
nullifiers: Fr[];
|
|
3493
|
-
};
|
|
3494
|
-
revertibleAccumulatedData: {
|
|
3495
|
-
noteHashes: Fr[];
|
|
3496
|
-
nullifiers: Fr[];
|
|
3497
|
-
};
|
|
3498
|
-
setupEnqueuedCalls: AvmEnqueuedCallHint[];
|
|
3499
|
-
appLogicEnqueuedCalls: AvmEnqueuedCallHint[];
|
|
3500
|
-
teardownEnqueuedCall: AvmEnqueuedCallHint | null;
|
|
3501
|
-
}, {
|
|
4457
|
+
} | null;
|
|
4458
|
+
}>, AvmTxHint, {
|
|
4459
|
+
hash: string;
|
|
3502
4460
|
nonRevertibleAccumulatedData: {
|
|
3503
4461
|
noteHashes: string[];
|
|
3504
4462
|
nullifiers: string[];
|
|
@@ -4736,20 +5694,376 @@ export declare class AvmCircuitInputs {
|
|
|
4736
5694
|
};
|
|
4737
5695
|
};
|
|
4738
5696
|
}>, "many">;
|
|
4739
|
-
|
|
4740
|
-
|
|
4741
|
-
|
|
4742
|
-
|
|
4743
|
-
|
|
5697
|
+
appendLeavesHints: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
5698
|
+
hintKey: z.ZodEffects<z.ZodObject<{
|
|
5699
|
+
root: z.ZodType<Fr, any, string>;
|
|
5700
|
+
nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
5701
|
+
}, "strip", z.ZodTypeAny, {
|
|
5702
|
+
root: Fr;
|
|
5703
|
+
nextAvailableLeafIndex: number;
|
|
5704
|
+
}, {
|
|
5705
|
+
root: string;
|
|
5706
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
5707
|
+
}>, AppendOnlyTreeSnapshot, {
|
|
5708
|
+
root: string;
|
|
5709
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
5710
|
+
}>;
|
|
5711
|
+
stateAfter: z.ZodEffects<z.ZodObject<{
|
|
5712
|
+
root: z.ZodType<Fr, any, string>;
|
|
5713
|
+
nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
5714
|
+
}, "strip", z.ZodTypeAny, {
|
|
5715
|
+
root: Fr;
|
|
5716
|
+
nextAvailableLeafIndex: number;
|
|
5717
|
+
}, {
|
|
5718
|
+
root: string;
|
|
5719
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
5720
|
+
}>, AppendOnlyTreeSnapshot, {
|
|
5721
|
+
root: string;
|
|
5722
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
5723
|
+
}>;
|
|
5724
|
+
treeId: z.ZodNumber;
|
|
5725
|
+
leaves: z.ZodArray<z.ZodType<Fr, any, string>, "many">;
|
|
5726
|
+
}, "strip", z.ZodTypeAny, {
|
|
5727
|
+
hintKey: AppendOnlyTreeSnapshot;
|
|
5728
|
+
treeId: number;
|
|
5729
|
+
stateAfter: AppendOnlyTreeSnapshot;
|
|
5730
|
+
leaves: Fr[];
|
|
5731
|
+
}, {
|
|
5732
|
+
hintKey: {
|
|
5733
|
+
root: string;
|
|
5734
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
4744
5735
|
};
|
|
4745
|
-
|
|
4746
|
-
|
|
4747
|
-
|
|
5736
|
+
treeId: number;
|
|
5737
|
+
stateAfter: {
|
|
5738
|
+
root: string;
|
|
5739
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
4748
5740
|
};
|
|
4749
|
-
|
|
4750
|
-
|
|
4751
|
-
|
|
4752
|
-
|
|
5741
|
+
leaves: string[];
|
|
5742
|
+
}>, AvmAppendLeavesHint, {
|
|
5743
|
+
hintKey: {
|
|
5744
|
+
root: string;
|
|
5745
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
5746
|
+
};
|
|
5747
|
+
treeId: number;
|
|
5748
|
+
stateAfter: {
|
|
5749
|
+
root: string;
|
|
5750
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
5751
|
+
};
|
|
5752
|
+
leaves: string[];
|
|
5753
|
+
}>, "many">;
|
|
5754
|
+
createCheckpointHints: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
5755
|
+
actionCounter: z.ZodNumber;
|
|
5756
|
+
oldCheckpointId: z.ZodNumber;
|
|
5757
|
+
newCheckpointId: z.ZodNumber;
|
|
5758
|
+
}, "strip", z.ZodTypeAny, {
|
|
5759
|
+
actionCounter: number;
|
|
5760
|
+
oldCheckpointId: number;
|
|
5761
|
+
newCheckpointId: number;
|
|
5762
|
+
}, {
|
|
5763
|
+
actionCounter: number;
|
|
5764
|
+
oldCheckpointId: number;
|
|
5765
|
+
newCheckpointId: number;
|
|
5766
|
+
}>, AvmCheckpointActionNoStateChangeHint, {
|
|
5767
|
+
actionCounter: number;
|
|
5768
|
+
oldCheckpointId: number;
|
|
5769
|
+
newCheckpointId: number;
|
|
5770
|
+
}>, "many">;
|
|
5771
|
+
commitCheckpointHints: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
5772
|
+
actionCounter: z.ZodNumber;
|
|
5773
|
+
oldCheckpointId: z.ZodNumber;
|
|
5774
|
+
newCheckpointId: z.ZodNumber;
|
|
5775
|
+
}, "strip", z.ZodTypeAny, {
|
|
5776
|
+
actionCounter: number;
|
|
5777
|
+
oldCheckpointId: number;
|
|
5778
|
+
newCheckpointId: number;
|
|
5779
|
+
}, {
|
|
5780
|
+
actionCounter: number;
|
|
5781
|
+
oldCheckpointId: number;
|
|
5782
|
+
newCheckpointId: number;
|
|
5783
|
+
}>, AvmCheckpointActionNoStateChangeHint, {
|
|
5784
|
+
actionCounter: number;
|
|
5785
|
+
oldCheckpointId: number;
|
|
5786
|
+
newCheckpointId: number;
|
|
5787
|
+
}>, "many">;
|
|
5788
|
+
revertCheckpointHints: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
5789
|
+
actionCounter: z.ZodNumber;
|
|
5790
|
+
oldCheckpointId: z.ZodNumber;
|
|
5791
|
+
newCheckpointId: z.ZodNumber;
|
|
5792
|
+
stateBefore: z.ZodEffects<z.ZodObject<{
|
|
5793
|
+
l1ToL2MessageTree: z.ZodEffects<z.ZodObject<{
|
|
5794
|
+
root: z.ZodType<Fr, any, string>;
|
|
5795
|
+
nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
5796
|
+
}, "strip", z.ZodTypeAny, {
|
|
5797
|
+
root: Fr;
|
|
5798
|
+
nextAvailableLeafIndex: number;
|
|
5799
|
+
}, {
|
|
5800
|
+
root: string;
|
|
5801
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
5802
|
+
}>, AppendOnlyTreeSnapshot, {
|
|
5803
|
+
root: string;
|
|
5804
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
5805
|
+
}>;
|
|
5806
|
+
noteHashTree: z.ZodEffects<z.ZodObject<{
|
|
5807
|
+
root: z.ZodType<Fr, any, string>;
|
|
5808
|
+
nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
5809
|
+
}, "strip", z.ZodTypeAny, {
|
|
5810
|
+
root: Fr;
|
|
5811
|
+
nextAvailableLeafIndex: number;
|
|
5812
|
+
}, {
|
|
5813
|
+
root: string;
|
|
5814
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
5815
|
+
}>, AppendOnlyTreeSnapshot, {
|
|
5816
|
+
root: string;
|
|
5817
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
5818
|
+
}>;
|
|
5819
|
+
nullifierTree: z.ZodEffects<z.ZodObject<{
|
|
5820
|
+
root: z.ZodType<Fr, any, string>;
|
|
5821
|
+
nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
5822
|
+
}, "strip", z.ZodTypeAny, {
|
|
5823
|
+
root: Fr;
|
|
5824
|
+
nextAvailableLeafIndex: number;
|
|
5825
|
+
}, {
|
|
5826
|
+
root: string;
|
|
5827
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
5828
|
+
}>, AppendOnlyTreeSnapshot, {
|
|
5829
|
+
root: string;
|
|
5830
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
5831
|
+
}>;
|
|
5832
|
+
publicDataTree: z.ZodEffects<z.ZodObject<{
|
|
5833
|
+
root: z.ZodType<Fr, any, string>;
|
|
5834
|
+
nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
5835
|
+
}, "strip", z.ZodTypeAny, {
|
|
5836
|
+
root: Fr;
|
|
5837
|
+
nextAvailableLeafIndex: number;
|
|
5838
|
+
}, {
|
|
5839
|
+
root: string;
|
|
5840
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
5841
|
+
}>, AppendOnlyTreeSnapshot, {
|
|
5842
|
+
root: string;
|
|
5843
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
5844
|
+
}>;
|
|
5845
|
+
}, "strip", z.ZodTypeAny, {
|
|
5846
|
+
noteHashTree: AppendOnlyTreeSnapshot;
|
|
5847
|
+
nullifierTree: AppendOnlyTreeSnapshot;
|
|
5848
|
+
publicDataTree: AppendOnlyTreeSnapshot;
|
|
5849
|
+
l1ToL2MessageTree: AppendOnlyTreeSnapshot;
|
|
5850
|
+
}, {
|
|
5851
|
+
noteHashTree: {
|
|
5852
|
+
root: string;
|
|
5853
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
5854
|
+
};
|
|
5855
|
+
nullifierTree: {
|
|
5856
|
+
root: string;
|
|
5857
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
5858
|
+
};
|
|
5859
|
+
publicDataTree: {
|
|
5860
|
+
root: string;
|
|
5861
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
5862
|
+
};
|
|
5863
|
+
l1ToL2MessageTree: {
|
|
5864
|
+
root: string;
|
|
5865
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
5866
|
+
};
|
|
5867
|
+
}>, TreeSnapshots, {
|
|
5868
|
+
noteHashTree: {
|
|
5869
|
+
root: string;
|
|
5870
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
5871
|
+
};
|
|
5872
|
+
nullifierTree: {
|
|
5873
|
+
root: string;
|
|
5874
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
5875
|
+
};
|
|
5876
|
+
publicDataTree: {
|
|
5877
|
+
root: string;
|
|
5878
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
5879
|
+
};
|
|
5880
|
+
l1ToL2MessageTree: {
|
|
5881
|
+
root: string;
|
|
5882
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
5883
|
+
};
|
|
5884
|
+
}>;
|
|
5885
|
+
stateAfter: z.ZodEffects<z.ZodObject<{
|
|
5886
|
+
l1ToL2MessageTree: z.ZodEffects<z.ZodObject<{
|
|
5887
|
+
root: z.ZodType<Fr, any, string>;
|
|
5888
|
+
nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
5889
|
+
}, "strip", z.ZodTypeAny, {
|
|
5890
|
+
root: Fr;
|
|
5891
|
+
nextAvailableLeafIndex: number;
|
|
5892
|
+
}, {
|
|
5893
|
+
root: string;
|
|
5894
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
5895
|
+
}>, AppendOnlyTreeSnapshot, {
|
|
5896
|
+
root: string;
|
|
5897
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
5898
|
+
}>;
|
|
5899
|
+
noteHashTree: z.ZodEffects<z.ZodObject<{
|
|
5900
|
+
root: z.ZodType<Fr, any, string>;
|
|
5901
|
+
nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
5902
|
+
}, "strip", z.ZodTypeAny, {
|
|
5903
|
+
root: Fr;
|
|
5904
|
+
nextAvailableLeafIndex: number;
|
|
5905
|
+
}, {
|
|
5906
|
+
root: string;
|
|
5907
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
5908
|
+
}>, AppendOnlyTreeSnapshot, {
|
|
5909
|
+
root: string;
|
|
5910
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
5911
|
+
}>;
|
|
5912
|
+
nullifierTree: z.ZodEffects<z.ZodObject<{
|
|
5913
|
+
root: z.ZodType<Fr, any, string>;
|
|
5914
|
+
nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
5915
|
+
}, "strip", z.ZodTypeAny, {
|
|
5916
|
+
root: Fr;
|
|
5917
|
+
nextAvailableLeafIndex: number;
|
|
5918
|
+
}, {
|
|
5919
|
+
root: string;
|
|
5920
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
5921
|
+
}>, AppendOnlyTreeSnapshot, {
|
|
5922
|
+
root: string;
|
|
5923
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
5924
|
+
}>;
|
|
5925
|
+
publicDataTree: z.ZodEffects<z.ZodObject<{
|
|
5926
|
+
root: z.ZodType<Fr, any, string>;
|
|
5927
|
+
nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
5928
|
+
}, "strip", z.ZodTypeAny, {
|
|
5929
|
+
root: Fr;
|
|
5930
|
+
nextAvailableLeafIndex: number;
|
|
5931
|
+
}, {
|
|
5932
|
+
root: string;
|
|
5933
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
5934
|
+
}>, AppendOnlyTreeSnapshot, {
|
|
5935
|
+
root: string;
|
|
5936
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
5937
|
+
}>;
|
|
5938
|
+
}, "strip", z.ZodTypeAny, {
|
|
5939
|
+
noteHashTree: AppendOnlyTreeSnapshot;
|
|
5940
|
+
nullifierTree: AppendOnlyTreeSnapshot;
|
|
5941
|
+
publicDataTree: AppendOnlyTreeSnapshot;
|
|
5942
|
+
l1ToL2MessageTree: AppendOnlyTreeSnapshot;
|
|
5943
|
+
}, {
|
|
5944
|
+
noteHashTree: {
|
|
5945
|
+
root: string;
|
|
5946
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
5947
|
+
};
|
|
5948
|
+
nullifierTree: {
|
|
5949
|
+
root: string;
|
|
5950
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
5951
|
+
};
|
|
5952
|
+
publicDataTree: {
|
|
5953
|
+
root: string;
|
|
5954
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
5955
|
+
};
|
|
5956
|
+
l1ToL2MessageTree: {
|
|
5957
|
+
root: string;
|
|
5958
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
5959
|
+
};
|
|
5960
|
+
}>, TreeSnapshots, {
|
|
5961
|
+
noteHashTree: {
|
|
5962
|
+
root: string;
|
|
5963
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
5964
|
+
};
|
|
5965
|
+
nullifierTree: {
|
|
5966
|
+
root: string;
|
|
5967
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
5968
|
+
};
|
|
5969
|
+
publicDataTree: {
|
|
5970
|
+
root: string;
|
|
5971
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
5972
|
+
};
|
|
5973
|
+
l1ToL2MessageTree: {
|
|
5974
|
+
root: string;
|
|
5975
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
5976
|
+
};
|
|
5977
|
+
}>;
|
|
5978
|
+
}, "strip", z.ZodTypeAny, {
|
|
5979
|
+
stateAfter: TreeSnapshots;
|
|
5980
|
+
actionCounter: number;
|
|
5981
|
+
oldCheckpointId: number;
|
|
5982
|
+
newCheckpointId: number;
|
|
5983
|
+
stateBefore: TreeSnapshots;
|
|
5984
|
+
}, {
|
|
5985
|
+
stateAfter: {
|
|
5986
|
+
noteHashTree: {
|
|
5987
|
+
root: string;
|
|
5988
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
5989
|
+
};
|
|
5990
|
+
nullifierTree: {
|
|
5991
|
+
root: string;
|
|
5992
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
5993
|
+
};
|
|
5994
|
+
publicDataTree: {
|
|
5995
|
+
root: string;
|
|
5996
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
5997
|
+
};
|
|
5998
|
+
l1ToL2MessageTree: {
|
|
5999
|
+
root: string;
|
|
6000
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6001
|
+
};
|
|
6002
|
+
};
|
|
6003
|
+
actionCounter: number;
|
|
6004
|
+
oldCheckpointId: number;
|
|
6005
|
+
newCheckpointId: number;
|
|
6006
|
+
stateBefore: {
|
|
6007
|
+
noteHashTree: {
|
|
6008
|
+
root: string;
|
|
6009
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6010
|
+
};
|
|
6011
|
+
nullifierTree: {
|
|
6012
|
+
root: string;
|
|
6013
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6014
|
+
};
|
|
6015
|
+
publicDataTree: {
|
|
6016
|
+
root: string;
|
|
6017
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6018
|
+
};
|
|
6019
|
+
l1ToL2MessageTree: {
|
|
6020
|
+
root: string;
|
|
6021
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6022
|
+
};
|
|
6023
|
+
};
|
|
6024
|
+
}>, AvmRevertCheckpointHint, {
|
|
6025
|
+
stateAfter: {
|
|
6026
|
+
noteHashTree: {
|
|
6027
|
+
root: string;
|
|
6028
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6029
|
+
};
|
|
6030
|
+
nullifierTree: {
|
|
6031
|
+
root: string;
|
|
6032
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6033
|
+
};
|
|
6034
|
+
publicDataTree: {
|
|
6035
|
+
root: string;
|
|
6036
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6037
|
+
};
|
|
6038
|
+
l1ToL2MessageTree: {
|
|
6039
|
+
root: string;
|
|
6040
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6041
|
+
};
|
|
6042
|
+
};
|
|
6043
|
+
actionCounter: number;
|
|
6044
|
+
oldCheckpointId: number;
|
|
6045
|
+
newCheckpointId: number;
|
|
6046
|
+
stateBefore: {
|
|
6047
|
+
noteHashTree: {
|
|
6048
|
+
root: string;
|
|
6049
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6050
|
+
};
|
|
6051
|
+
nullifierTree: {
|
|
6052
|
+
root: string;
|
|
6053
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6054
|
+
};
|
|
6055
|
+
publicDataTree: {
|
|
6056
|
+
root: string;
|
|
6057
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6058
|
+
};
|
|
6059
|
+
l1ToL2MessageTree: {
|
|
6060
|
+
root: string;
|
|
6061
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6062
|
+
};
|
|
6063
|
+
};
|
|
6064
|
+
}>, "many">;
|
|
6065
|
+
}, "strip", z.ZodTypeAny, {
|
|
6066
|
+
tx: AvmTxHint;
|
|
4753
6067
|
contractInstances: AvmContractInstanceHint[];
|
|
4754
6068
|
contractClasses: AvmContractClassHint[];
|
|
4755
6069
|
bytecodeCommitments: AvmBytecodeCommitmentHint[];
|
|
@@ -4798,8 +6112,13 @@ export declare class AvmCircuitInputs {
|
|
|
4798
6112
|
path: Fr[];
|
|
4799
6113
|
};
|
|
4800
6114
|
}[];
|
|
6115
|
+
appendLeavesHints: AvmAppendLeavesHint[];
|
|
6116
|
+
createCheckpointHints: AvmCheckpointActionNoStateChangeHint[];
|
|
6117
|
+
commitCheckpointHints: AvmCheckpointActionNoStateChangeHint[];
|
|
6118
|
+
revertCheckpointHints: AvmRevertCheckpointHint[];
|
|
4801
6119
|
}, {
|
|
4802
6120
|
tx: {
|
|
6121
|
+
hash: string;
|
|
4803
6122
|
nonRevertibleAccumulatedData: {
|
|
4804
6123
|
noteHashes: string[];
|
|
4805
6124
|
nullifiers: string[];
|
|
@@ -5030,8 +6349,72 @@ export declare class AvmCircuitInputs {
|
|
|
5030
6349
|
};
|
|
5031
6350
|
};
|
|
5032
6351
|
}[];
|
|
6352
|
+
appendLeavesHints: {
|
|
6353
|
+
hintKey: {
|
|
6354
|
+
root: string;
|
|
6355
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6356
|
+
};
|
|
6357
|
+
treeId: number;
|
|
6358
|
+
stateAfter: {
|
|
6359
|
+
root: string;
|
|
6360
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6361
|
+
};
|
|
6362
|
+
leaves: string[];
|
|
6363
|
+
}[];
|
|
6364
|
+
createCheckpointHints: {
|
|
6365
|
+
actionCounter: number;
|
|
6366
|
+
oldCheckpointId: number;
|
|
6367
|
+
newCheckpointId: number;
|
|
6368
|
+
}[];
|
|
6369
|
+
commitCheckpointHints: {
|
|
6370
|
+
actionCounter: number;
|
|
6371
|
+
oldCheckpointId: number;
|
|
6372
|
+
newCheckpointId: number;
|
|
6373
|
+
}[];
|
|
6374
|
+
revertCheckpointHints: {
|
|
6375
|
+
stateAfter: {
|
|
6376
|
+
noteHashTree: {
|
|
6377
|
+
root: string;
|
|
6378
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6379
|
+
};
|
|
6380
|
+
nullifierTree: {
|
|
6381
|
+
root: string;
|
|
6382
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6383
|
+
};
|
|
6384
|
+
publicDataTree: {
|
|
6385
|
+
root: string;
|
|
6386
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6387
|
+
};
|
|
6388
|
+
l1ToL2MessageTree: {
|
|
6389
|
+
root: string;
|
|
6390
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6391
|
+
};
|
|
6392
|
+
};
|
|
6393
|
+
actionCounter: number;
|
|
6394
|
+
oldCheckpointId: number;
|
|
6395
|
+
newCheckpointId: number;
|
|
6396
|
+
stateBefore: {
|
|
6397
|
+
noteHashTree: {
|
|
6398
|
+
root: string;
|
|
6399
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6400
|
+
};
|
|
6401
|
+
nullifierTree: {
|
|
6402
|
+
root: string;
|
|
6403
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6404
|
+
};
|
|
6405
|
+
publicDataTree: {
|
|
6406
|
+
root: string;
|
|
6407
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6408
|
+
};
|
|
6409
|
+
l1ToL2MessageTree: {
|
|
6410
|
+
root: string;
|
|
6411
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6412
|
+
};
|
|
6413
|
+
};
|
|
6414
|
+
}[];
|
|
5033
6415
|
}>, AvmExecutionHints, {
|
|
5034
6416
|
tx: {
|
|
6417
|
+
hash: string;
|
|
5035
6418
|
nonRevertibleAccumulatedData: {
|
|
5036
6419
|
noteHashes: string[];
|
|
5037
6420
|
nullifiers: string[];
|
|
@@ -5262,6 +6645,69 @@ export declare class AvmCircuitInputs {
|
|
|
5262
6645
|
};
|
|
5263
6646
|
};
|
|
5264
6647
|
}[];
|
|
6648
|
+
appendLeavesHints: {
|
|
6649
|
+
hintKey: {
|
|
6650
|
+
root: string;
|
|
6651
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6652
|
+
};
|
|
6653
|
+
treeId: number;
|
|
6654
|
+
stateAfter: {
|
|
6655
|
+
root: string;
|
|
6656
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6657
|
+
};
|
|
6658
|
+
leaves: string[];
|
|
6659
|
+
}[];
|
|
6660
|
+
createCheckpointHints: {
|
|
6661
|
+
actionCounter: number;
|
|
6662
|
+
oldCheckpointId: number;
|
|
6663
|
+
newCheckpointId: number;
|
|
6664
|
+
}[];
|
|
6665
|
+
commitCheckpointHints: {
|
|
6666
|
+
actionCounter: number;
|
|
6667
|
+
oldCheckpointId: number;
|
|
6668
|
+
newCheckpointId: number;
|
|
6669
|
+
}[];
|
|
6670
|
+
revertCheckpointHints: {
|
|
6671
|
+
stateAfter: {
|
|
6672
|
+
noteHashTree: {
|
|
6673
|
+
root: string;
|
|
6674
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6675
|
+
};
|
|
6676
|
+
nullifierTree: {
|
|
6677
|
+
root: string;
|
|
6678
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6679
|
+
};
|
|
6680
|
+
publicDataTree: {
|
|
6681
|
+
root: string;
|
|
6682
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6683
|
+
};
|
|
6684
|
+
l1ToL2MessageTree: {
|
|
6685
|
+
root: string;
|
|
6686
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6687
|
+
};
|
|
6688
|
+
};
|
|
6689
|
+
actionCounter: number;
|
|
6690
|
+
oldCheckpointId: number;
|
|
6691
|
+
newCheckpointId: number;
|
|
6692
|
+
stateBefore: {
|
|
6693
|
+
noteHashTree: {
|
|
6694
|
+
root: string;
|
|
6695
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6696
|
+
};
|
|
6697
|
+
nullifierTree: {
|
|
6698
|
+
root: string;
|
|
6699
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6700
|
+
};
|
|
6701
|
+
publicDataTree: {
|
|
6702
|
+
root: string;
|
|
6703
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6704
|
+
};
|
|
6705
|
+
l1ToL2MessageTree: {
|
|
6706
|
+
root: string;
|
|
6707
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
6708
|
+
};
|
|
6709
|
+
};
|
|
6710
|
+
}[];
|
|
5265
6711
|
}>;
|
|
5266
6712
|
publicInputs: z.ZodEffects<z.ZodObject<{
|
|
5267
6713
|
globalVariables: z.ZodEffects<z.ZodObject<{
|
|
@@ -5394,7 +6840,7 @@ export declare class AvmCircuitInputs {
|
|
|
5394
6840
|
root: string;
|
|
5395
6841
|
nextAvailableLeafIndex: string | number | bigint;
|
|
5396
6842
|
};
|
|
5397
|
-
}>,
|
|
6843
|
+
}>, TreeSnapshots, {
|
|
5398
6844
|
noteHashTree: {
|
|
5399
6845
|
root: string;
|
|
5400
6846
|
nextAvailableLeafIndex: string | number | bigint;
|
|
@@ -5825,7 +7271,7 @@ export declare class AvmCircuitInputs {
|
|
|
5825
7271
|
root: string;
|
|
5826
7272
|
nextAvailableLeafIndex: string | number | bigint;
|
|
5827
7273
|
};
|
|
5828
|
-
}>,
|
|
7274
|
+
}>, TreeSnapshots, {
|
|
5829
7275
|
noteHashTree: {
|
|
5830
7276
|
root: string;
|
|
5831
7277
|
nextAvailableLeafIndex: string | number | bigint;
|
|
@@ -5957,7 +7403,7 @@ export declare class AvmCircuitInputs {
|
|
|
5957
7403
|
publicTeardownCallRequest: import("../kernel/public_call_request.js").PublicCallRequest;
|
|
5958
7404
|
transactionFee: Fr;
|
|
5959
7405
|
feePayer: AztecAddress;
|
|
5960
|
-
startTreeSnapshots:
|
|
7406
|
+
startTreeSnapshots: TreeSnapshots;
|
|
5961
7407
|
startGasUsed: import("../gas/gas.js").Gas;
|
|
5962
7408
|
publicSetupCallRequests: import("../kernel/public_call_request.js").PublicCallRequest[];
|
|
5963
7409
|
publicAppLogicCallRequests: import("../kernel/public_call_request.js").PublicCallRequest[];
|
|
@@ -5965,7 +7411,7 @@ export declare class AvmCircuitInputs {
|
|
|
5965
7411
|
previousRevertibleAccumulatedDataArrayLengths: import("../kernel/private_to_avm_accumulated_data.js").PrivateToAvmAccumulatedDataArrayLengths;
|
|
5966
7412
|
previousNonRevertibleAccumulatedData: import("../kernel/private_to_avm_accumulated_data.js").PrivateToAvmAccumulatedData;
|
|
5967
7413
|
previousRevertibleAccumulatedData: import("../kernel/private_to_avm_accumulated_data.js").PrivateToAvmAccumulatedData;
|
|
5968
|
-
endTreeSnapshots:
|
|
7414
|
+
endTreeSnapshots: TreeSnapshots;
|
|
5969
7415
|
endGasUsed: import("../gas/gas.js").Gas;
|
|
5970
7416
|
accumulatedData: import("./avm_accumulated_data.js").AvmAccumulatedData;
|
|
5971
7417
|
reverted: boolean;
|
|
@@ -6268,8 +7714,6 @@ export declare class AvmCircuitInputs {
|
|
|
6268
7714
|
}>;
|
|
6269
7715
|
}, "strip", z.ZodTypeAny, {
|
|
6270
7716
|
publicInputs: AvmCircuitPublicInputs;
|
|
6271
|
-
calldata: Fr[];
|
|
6272
|
-
functionName: string;
|
|
6273
7717
|
hints: AvmExecutionHints;
|
|
6274
7718
|
}, {
|
|
6275
7719
|
publicInputs: {
|
|
@@ -6421,10 +7865,9 @@ export declare class AvmCircuitInputs {
|
|
|
6421
7865
|
reverted: boolean;
|
|
6422
7866
|
feePayer?: any;
|
|
6423
7867
|
};
|
|
6424
|
-
calldata: string[];
|
|
6425
|
-
functionName: string;
|
|
6426
7868
|
hints: {
|
|
6427
7869
|
tx: {
|
|
7870
|
+
hash: string;
|
|
6428
7871
|
nonRevertibleAccumulatedData: {
|
|
6429
7872
|
noteHashes: string[];
|
|
6430
7873
|
nullifiers: string[];
|
|
@@ -6655,6 +8098,69 @@ export declare class AvmCircuitInputs {
|
|
|
6655
8098
|
};
|
|
6656
8099
|
};
|
|
6657
8100
|
}[];
|
|
8101
|
+
appendLeavesHints: {
|
|
8102
|
+
hintKey: {
|
|
8103
|
+
root: string;
|
|
8104
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
8105
|
+
};
|
|
8106
|
+
treeId: number;
|
|
8107
|
+
stateAfter: {
|
|
8108
|
+
root: string;
|
|
8109
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
8110
|
+
};
|
|
8111
|
+
leaves: string[];
|
|
8112
|
+
}[];
|
|
8113
|
+
createCheckpointHints: {
|
|
8114
|
+
actionCounter: number;
|
|
8115
|
+
oldCheckpointId: number;
|
|
8116
|
+
newCheckpointId: number;
|
|
8117
|
+
}[];
|
|
8118
|
+
commitCheckpointHints: {
|
|
8119
|
+
actionCounter: number;
|
|
8120
|
+
oldCheckpointId: number;
|
|
8121
|
+
newCheckpointId: number;
|
|
8122
|
+
}[];
|
|
8123
|
+
revertCheckpointHints: {
|
|
8124
|
+
stateAfter: {
|
|
8125
|
+
noteHashTree: {
|
|
8126
|
+
root: string;
|
|
8127
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
8128
|
+
};
|
|
8129
|
+
nullifierTree: {
|
|
8130
|
+
root: string;
|
|
8131
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
8132
|
+
};
|
|
8133
|
+
publicDataTree: {
|
|
8134
|
+
root: string;
|
|
8135
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
8136
|
+
};
|
|
8137
|
+
l1ToL2MessageTree: {
|
|
8138
|
+
root: string;
|
|
8139
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
8140
|
+
};
|
|
8141
|
+
};
|
|
8142
|
+
actionCounter: number;
|
|
8143
|
+
oldCheckpointId: number;
|
|
8144
|
+
newCheckpointId: number;
|
|
8145
|
+
stateBefore: {
|
|
8146
|
+
noteHashTree: {
|
|
8147
|
+
root: string;
|
|
8148
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
8149
|
+
};
|
|
8150
|
+
nullifierTree: {
|
|
8151
|
+
root: string;
|
|
8152
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
8153
|
+
};
|
|
8154
|
+
publicDataTree: {
|
|
8155
|
+
root: string;
|
|
8156
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
8157
|
+
};
|
|
8158
|
+
l1ToL2MessageTree: {
|
|
8159
|
+
root: string;
|
|
8160
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
8161
|
+
};
|
|
8162
|
+
};
|
|
8163
|
+
}[];
|
|
6658
8164
|
};
|
|
6659
8165
|
}>, AvmCircuitInputs, {
|
|
6660
8166
|
publicInputs: {
|
|
@@ -6806,10 +8312,9 @@ export declare class AvmCircuitInputs {
|
|
|
6806
8312
|
reverted: boolean;
|
|
6807
8313
|
feePayer?: any;
|
|
6808
8314
|
};
|
|
6809
|
-
calldata: string[];
|
|
6810
|
-
functionName: string;
|
|
6811
8315
|
hints: {
|
|
6812
8316
|
tx: {
|
|
8317
|
+
hash: string;
|
|
6813
8318
|
nonRevertibleAccumulatedData: {
|
|
6814
8319
|
noteHashes: string[];
|
|
6815
8320
|
nullifiers: string[];
|
|
@@ -7040,6 +8545,69 @@ export declare class AvmCircuitInputs {
|
|
|
7040
8545
|
};
|
|
7041
8546
|
};
|
|
7042
8547
|
}[];
|
|
8548
|
+
appendLeavesHints: {
|
|
8549
|
+
hintKey: {
|
|
8550
|
+
root: string;
|
|
8551
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
8552
|
+
};
|
|
8553
|
+
treeId: number;
|
|
8554
|
+
stateAfter: {
|
|
8555
|
+
root: string;
|
|
8556
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
8557
|
+
};
|
|
8558
|
+
leaves: string[];
|
|
8559
|
+
}[];
|
|
8560
|
+
createCheckpointHints: {
|
|
8561
|
+
actionCounter: number;
|
|
8562
|
+
oldCheckpointId: number;
|
|
8563
|
+
newCheckpointId: number;
|
|
8564
|
+
}[];
|
|
8565
|
+
commitCheckpointHints: {
|
|
8566
|
+
actionCounter: number;
|
|
8567
|
+
oldCheckpointId: number;
|
|
8568
|
+
newCheckpointId: number;
|
|
8569
|
+
}[];
|
|
8570
|
+
revertCheckpointHints: {
|
|
8571
|
+
stateAfter: {
|
|
8572
|
+
noteHashTree: {
|
|
8573
|
+
root: string;
|
|
8574
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
8575
|
+
};
|
|
8576
|
+
nullifierTree: {
|
|
8577
|
+
root: string;
|
|
8578
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
8579
|
+
};
|
|
8580
|
+
publicDataTree: {
|
|
8581
|
+
root: string;
|
|
8582
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
8583
|
+
};
|
|
8584
|
+
l1ToL2MessageTree: {
|
|
8585
|
+
root: string;
|
|
8586
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
8587
|
+
};
|
|
8588
|
+
};
|
|
8589
|
+
actionCounter: number;
|
|
8590
|
+
oldCheckpointId: number;
|
|
8591
|
+
newCheckpointId: number;
|
|
8592
|
+
stateBefore: {
|
|
8593
|
+
noteHashTree: {
|
|
8594
|
+
root: string;
|
|
8595
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
8596
|
+
};
|
|
8597
|
+
nullifierTree: {
|
|
8598
|
+
root: string;
|
|
8599
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
8600
|
+
};
|
|
8601
|
+
publicDataTree: {
|
|
8602
|
+
root: string;
|
|
8603
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
8604
|
+
};
|
|
8605
|
+
l1ToL2MessageTree: {
|
|
8606
|
+
root: string;
|
|
8607
|
+
nextAvailableLeafIndex: string | number | bigint;
|
|
8608
|
+
};
|
|
8609
|
+
};
|
|
8610
|
+
}[];
|
|
7043
8611
|
};
|
|
7044
8612
|
}>;
|
|
7045
8613
|
serializeWithMessagePack(): Buffer;
|