@aztec/cli 1.0.0-nightly.20250710 → 1.0.0-nightly.20250712
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/utils/inspect.d.ts.map +1 -1
- package/dest/utils/inspect.js +9 -16
- package/package.json +22 -22
- package/src/utils/inspect.ts +8 -13
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inspect.d.ts","sourceRoot":"","sources":["../../src/utils/inspect.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAgB,gBAAgB,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AAC1E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAGnD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,iCAAiC,CAAC;AAE3D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE/C,wBAAsB,YAAY,CAAC,GAAG,EAAE,GAAG,EAAE,WAAW,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,IAAI,GAAE;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAO,iBA0B7G;AAED,wBAAsB,SAAS,CAC7B,GAAG,EAAE,GAAG,EACR,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,KAAK,EACV,IAAI,GAAE;IAAE,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAAC,WAAW,CAAC,EAAE,WAAW,CAAA;CAAO,
|
|
1
|
+
{"version":3,"file":"inspect.d.ts","sourceRoot":"","sources":["../../src/utils/inspect.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAgB,gBAAgB,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AAC1E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAGnD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,iCAAiC,CAAC;AAE3D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE/C,wBAAsB,YAAY,CAAC,GAAG,EAAE,GAAG,EAAE,WAAW,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,IAAI,GAAE;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAO,iBA0B7G;AAED,wBAAsB,SAAS,CAC7B,GAAG,EAAE,GAAG,EACR,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,KAAK,EACV,IAAI,GAAE;IAAE,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAAC,WAAW,CAAC,EAAE,WAAW,CAAA;CAAO,iBA8FrE;AAuCD,KAAK,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,2BAA2B,CAAC,CAAC;AAC/D,KAAK,2BAA2B,GAAG,gBAAgB,GAAG;IAAE,OAAO,EAAE,EAAE,CAAA;CAAE,CAAC"}
|
package/dest/utils/inspect.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ProtocolContractAddress } from '@aztec/protocol-contracts';
|
|
2
2
|
import { siloNullifier } from '@aztec/stdlib/hash';
|
|
3
|
-
import { NoteStatus } from '@aztec/stdlib/note';
|
|
4
3
|
export async function inspectBlock(pxe, blockNumber, log, opts = {}) {
|
|
5
4
|
const block = await pxe.getBlock(blockNumber);
|
|
6
5
|
if (!block) {
|
|
@@ -29,13 +28,9 @@ export async function inspectBlock(pxe, blockNumber, log, opts = {}) {
|
|
|
29
28
|
}
|
|
30
29
|
}
|
|
31
30
|
export async function inspectTx(pxe, txHash, log, opts = {}) {
|
|
32
|
-
const [receipt, effectsInBlock
|
|
31
|
+
const [receipt, effectsInBlock] = await Promise.all([
|
|
33
32
|
pxe.getTxReceipt(txHash),
|
|
34
|
-
pxe.getTxEffect(txHash)
|
|
35
|
-
pxe.getNotes({
|
|
36
|
-
txHash,
|
|
37
|
-
status: NoteStatus.ACTIVE_OR_NULLIFIED
|
|
38
|
-
})
|
|
33
|
+
pxe.getTxEffect(txHash)
|
|
39
34
|
]);
|
|
40
35
|
// Base tx data
|
|
41
36
|
log(`Tx ${txHash.toString()}`);
|
|
@@ -74,12 +69,9 @@ export async function inspectTx(pxe, txHash, log, opts = {}) {
|
|
|
74
69
|
const notes = effects.noteHashes;
|
|
75
70
|
if (notes.length > 0) {
|
|
76
71
|
log(' Created notes:');
|
|
77
|
-
log(` Total: ${notes.length}
|
|
78
|
-
|
|
79
|
-
log(
|
|
80
|
-
for (const note of getNotes){
|
|
81
|
-
inspectNote(note, artifactMap, log);
|
|
82
|
-
}
|
|
72
|
+
log(` Total: ${notes.length}`);
|
|
73
|
+
for (const note of notes){
|
|
74
|
+
log(` Note hash: ${note.toShortString()}`);
|
|
83
75
|
}
|
|
84
76
|
}
|
|
85
77
|
// Nullifiers
|
|
@@ -88,10 +80,11 @@ export async function inspectTx(pxe, txHash, log, opts = {}) {
|
|
|
88
80
|
if (nullifierCount > 0) {
|
|
89
81
|
log(' Nullifiers:');
|
|
90
82
|
for (const nullifier of effects.nullifiers){
|
|
91
|
-
const [note] = await pxe.getNotes({
|
|
92
|
-
siloedNullifier: nullifier
|
|
93
|
-
});
|
|
94
83
|
const deployed = deployNullifiers[nullifier.toString()];
|
|
84
|
+
const note = deployed ? (await pxe.getNotes({
|
|
85
|
+
siloedNullifier: nullifier,
|
|
86
|
+
contractAddress: deployed
|
|
87
|
+
}))[0] : undefined;
|
|
95
88
|
const initialized = initNullifiers[nullifier.toString()];
|
|
96
89
|
const registered = classNullifiers[nullifier.toString()];
|
|
97
90
|
if (nullifier.toBuffer().equals(txHash.toBuffer())) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/cli",
|
|
3
|
-
"version": "1.0.0-nightly.
|
|
3
|
+
"version": "1.0.0-nightly.20250712",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./contracts": "./dest/cmds/contracts/index.js",
|
|
@@ -69,16 +69,16 @@
|
|
|
69
69
|
]
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|
|
72
|
-
"@aztec/archiver": "1.0.0-nightly.
|
|
73
|
-
"@aztec/aztec.js": "1.0.0-nightly.
|
|
74
|
-
"@aztec/constants": "1.0.0-nightly.
|
|
75
|
-
"@aztec/entrypoints": "1.0.0-nightly.
|
|
76
|
-
"@aztec/ethereum": "1.0.0-nightly.
|
|
77
|
-
"@aztec/foundation": "1.0.0-nightly.
|
|
78
|
-
"@aztec/l1-artifacts": "1.0.0-nightly.
|
|
79
|
-
"@aztec/p2p": "1.0.0-nightly.
|
|
80
|
-
"@aztec/stdlib": "1.0.0-nightly.
|
|
81
|
-
"@aztec/world-state": "1.0.0-nightly.
|
|
72
|
+
"@aztec/archiver": "1.0.0-nightly.20250712",
|
|
73
|
+
"@aztec/aztec.js": "1.0.0-nightly.20250712",
|
|
74
|
+
"@aztec/constants": "1.0.0-nightly.20250712",
|
|
75
|
+
"@aztec/entrypoints": "1.0.0-nightly.20250712",
|
|
76
|
+
"@aztec/ethereum": "1.0.0-nightly.20250712",
|
|
77
|
+
"@aztec/foundation": "1.0.0-nightly.20250712",
|
|
78
|
+
"@aztec/l1-artifacts": "1.0.0-nightly.20250712",
|
|
79
|
+
"@aztec/p2p": "1.0.0-nightly.20250712",
|
|
80
|
+
"@aztec/stdlib": "1.0.0-nightly.20250712",
|
|
81
|
+
"@aztec/world-state": "1.0.0-nightly.20250712",
|
|
82
82
|
"@iarna/toml": "^2.2.5",
|
|
83
83
|
"@libp2p/peer-id-factory": "^3.0.4",
|
|
84
84
|
"commander": "^12.1.0",
|
|
@@ -90,8 +90,8 @@
|
|
|
90
90
|
"viem": "2.23.7"
|
|
91
91
|
},
|
|
92
92
|
"devDependencies": {
|
|
93
|
-
"@aztec/accounts": "1.0.0-nightly.
|
|
94
|
-
"@aztec/protocol-contracts": "1.0.0-nightly.
|
|
93
|
+
"@aztec/accounts": "1.0.0-nightly.20250712",
|
|
94
|
+
"@aztec/protocol-contracts": "1.0.0-nightly.20250712",
|
|
95
95
|
"@jest/globals": "^30.0.0",
|
|
96
96
|
"@types/jest": "^30.0.0",
|
|
97
97
|
"@types/lodash.chunk": "^4.2.9",
|
|
@@ -107,15 +107,15 @@
|
|
|
107
107
|
"typescript": "^5.3.3"
|
|
108
108
|
},
|
|
109
109
|
"peerDependencies": {
|
|
110
|
-
"@aztec/accounts": "1.0.0-nightly.
|
|
111
|
-
"@aztec/bb-prover": "1.0.0-nightly.
|
|
112
|
-
"@aztec/ethereum": "1.0.0-nightly.
|
|
113
|
-
"@aztec/l1-artifacts": "1.0.0-nightly.
|
|
114
|
-
"@aztec/noir-contracts.js": "1.0.0-nightly.
|
|
115
|
-
"@aztec/noir-protocol-circuits-types": "1.0.0-nightly.
|
|
116
|
-
"@aztec/noir-test-contracts.js": "1.0.0-nightly.
|
|
117
|
-
"@aztec/protocol-contracts": "1.0.0-nightly.
|
|
118
|
-
"@aztec/stdlib": "1.0.0-nightly.
|
|
110
|
+
"@aztec/accounts": "1.0.0-nightly.20250712",
|
|
111
|
+
"@aztec/bb-prover": "1.0.0-nightly.20250712",
|
|
112
|
+
"@aztec/ethereum": "1.0.0-nightly.20250712",
|
|
113
|
+
"@aztec/l1-artifacts": "1.0.0-nightly.20250712",
|
|
114
|
+
"@aztec/noir-contracts.js": "1.0.0-nightly.20250712",
|
|
115
|
+
"@aztec/noir-protocol-circuits-types": "1.0.0-nightly.20250712",
|
|
116
|
+
"@aztec/noir-test-contracts.js": "1.0.0-nightly.20250712",
|
|
117
|
+
"@aztec/protocol-contracts": "1.0.0-nightly.20250712",
|
|
118
|
+
"@aztec/stdlib": "1.0.0-nightly.20250712"
|
|
119
119
|
},
|
|
120
120
|
"files": [
|
|
121
121
|
"dest",
|
package/src/utils/inspect.ts
CHANGED
|
@@ -3,7 +3,7 @@ import type { LogFn } from '@aztec/foundation/log';
|
|
|
3
3
|
import { ProtocolContractAddress } from '@aztec/protocol-contracts';
|
|
4
4
|
import { siloNullifier } from '@aztec/stdlib/hash';
|
|
5
5
|
import type { PXE } from '@aztec/stdlib/interfaces/client';
|
|
6
|
-
import {
|
|
6
|
+
import type { ExtendedNote } from '@aztec/stdlib/note';
|
|
7
7
|
import type { TxHash } from '@aztec/stdlib/tx';
|
|
8
8
|
|
|
9
9
|
export async function inspectBlock(pxe: PXE, blockNumber: number, log: LogFn, opts: { showTxs?: boolean } = {}) {
|
|
@@ -40,11 +40,7 @@ export async function inspectTx(
|
|
|
40
40
|
log: LogFn,
|
|
41
41
|
opts: { includeBlockInfo?: boolean; artifactMap?: ArtifactMap } = {},
|
|
42
42
|
) {
|
|
43
|
-
const [receipt, effectsInBlock
|
|
44
|
-
pxe.getTxReceipt(txHash),
|
|
45
|
-
pxe.getTxEffect(txHash),
|
|
46
|
-
pxe.getNotes({ txHash, status: NoteStatus.ACTIVE_OR_NULLIFIED }),
|
|
47
|
-
]);
|
|
43
|
+
const [receipt, effectsInBlock] = await Promise.all([pxe.getTxReceipt(txHash), pxe.getTxEffect(txHash)]);
|
|
48
44
|
// Base tx data
|
|
49
45
|
log(`Tx ${txHash.toString()}`);
|
|
50
46
|
log(` Status: ${receipt.status} ${effectsInBlock ? `(${effectsInBlock.data.revertCode.getDescription()})` : ''}`);
|
|
@@ -88,12 +84,9 @@ export async function inspectTx(
|
|
|
88
84
|
const notes = effects.noteHashes;
|
|
89
85
|
if (notes.length > 0) {
|
|
90
86
|
log(' Created notes:');
|
|
91
|
-
log(` Total: ${notes.length}
|
|
92
|
-
|
|
93
|
-
log(
|
|
94
|
-
for (const note of getNotes) {
|
|
95
|
-
inspectNote(note, artifactMap, log);
|
|
96
|
-
}
|
|
87
|
+
log(` Total: ${notes.length}`);
|
|
88
|
+
for (const note of notes) {
|
|
89
|
+
log(` Note hash: ${note.toShortString()}`);
|
|
97
90
|
}
|
|
98
91
|
}
|
|
99
92
|
|
|
@@ -103,8 +96,10 @@ export async function inspectTx(
|
|
|
103
96
|
if (nullifierCount > 0) {
|
|
104
97
|
log(' Nullifiers:');
|
|
105
98
|
for (const nullifier of effects.nullifiers) {
|
|
106
|
-
const [note] = await pxe.getNotes({ siloedNullifier: nullifier });
|
|
107
99
|
const deployed = deployNullifiers[nullifier.toString()];
|
|
100
|
+
const note = deployed
|
|
101
|
+
? (await pxe.getNotes({ siloedNullifier: nullifier, contractAddress: deployed }))[0]
|
|
102
|
+
: undefined;
|
|
108
103
|
const initialized = initNullifiers[nullifier.toString()];
|
|
109
104
|
const registered = classNullifiers[nullifier.toString()];
|
|
110
105
|
if (nullifier.toBuffer().equals(txHash.toBuffer())) {
|