Skip to content

Commit 73f5b52

Browse files
committed
remove patch, updated
1 parent e7ae43c commit 73f5b52

7 files changed

Lines changed: 336 additions & 395 deletions

File tree

.yarn/patches/@aztec-pxe-npm-4.3.0-nightly.20260416-b01dc128ea.patch

Lines changed: 0 additions & 55 deletions
This file was deleted.

contracts/amm/Nargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ authors = [""]
44
type = "contract"
55

66
[dependencies]
7-
aztec = { git = "https://github.com/AztecProtocol/aztec-packages/", tag = "v4.3.0-nightly.20260416", directory = "noir-projects/aztec-nr/aztec" }
8-
token = { git = "https://github.com/AztecProtocol/aztec-packages/", tag = "v4.3.0-nightly.20260416", directory = "noir-projects/noir-contracts/contracts/app/token_contract" }
9-
uint_note = { git = "https://github.com/AztecProtocol/aztec-packages/", tag = "v4.3.0-nightly.20260416", directory = "noir-projects/aztec-nr/uint-note" }
7+
aztec = { git = "https://github.com/AztecProtocol/aztec-packages/", tag = "v4.3.0-nightly.20260417", directory = "noir-projects/aztec-nr/aztec" }
8+
token = { git = "https://github.com/AztecProtocol/aztec-packages/", tag = "v4.3.0-nightly.20260417", directory = "noir-projects/noir-contracts/contracts/app/token_contract" }
9+
uint_note = { git = "https://github.com/AztecProtocol/aztec-packages/", tag = "v4.3.0-nightly.20260417", directory = "noir-projects/aztec-nr/uint-note" }

contracts/proof_of_password/Nargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ type = "contract"
44
authors = [""]
55

66
[dependencies]
7-
aztec = { git = "https://github.com/AztecProtocol/aztec-packages/", tag = "v4.3.0-nightly.20260416", directory = "noir-projects/aztec-nr/aztec" }
8-
token = { git = "https://github.com/AztecProtocol/aztec-packages/", tag = "v4.3.0-nightly.20260416", directory = "noir-projects/noir-contracts/contracts/app/token_contract" }
7+
aztec = { git = "https://github.com/AztecProtocol/aztec-packages/", tag = "v4.3.0-nightly.20260417", directory = "noir-projects/aztec-nr/aztec" }
8+
token = { git = "https://github.com/AztecProtocol/aztec-packages/", tag = "v4.3.0-nightly.20260417", directory = "noir-projects/noir-contracts/contracts/app/token_contract" }
99
poseidon = { tag = "v0.3.0", git = "https://github.com/noir-lang/poseidon" }
10-
compressed_string = { git = "https://github.com/AztecProtocol/aztec-packages/", tag = "v4.3.0-nightly.20260416", directory = "noir-projects/aztec-nr/compressed-string" }
10+
compressed_string = { git = "https://github.com/AztecProtocol/aztec-packages/", tag = "v4.3.0-nightly.20260417", directory = "noir-projects/aztec-nr/compressed-string" }

package.json

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,20 @@
2727
"local-aztec:status": "node scripts/toggle-local-aztec.js status"
2828
},
2929
"dependencies": {
30-
"@aztec/accounts": "v4.3.0-nightly.20260416",
31-
"@aztec/aztec.js": "v4.3.0-nightly.20260416",
32-
"@aztec/constants": "v4.3.0-nightly.20260416",
33-
"@aztec/entrypoints": "v4.3.0-nightly.20260416",
34-
"@aztec/foundation": "v4.3.0-nightly.20260416",
35-
"@aztec/noir-contracts.js": "v4.3.0-nightly.20260416",
36-
"@aztec/protocol-contracts": "v4.3.0-nightly.20260416",
37-
"@aztec/pxe": "v4.3.0-nightly.20260416",
38-
"@aztec/stdlib": "v4.3.0-nightly.20260416",
39-
"@aztec/wallet-sdk": "v4.3.0-nightly.20260416",
30+
"@aztec/accounts": "v4.3.0-nightly.20260417",
31+
"@aztec/aztec.js": "v4.3.0-nightly.20260417",
32+
"@aztec/constants": "v4.3.0-nightly.20260417",
33+
"@aztec/entrypoints": "v4.3.0-nightly.20260417",
34+
"@aztec/foundation": "v4.3.0-nightly.20260417",
35+
"@aztec/noir-contracts.js": "v4.3.0-nightly.20260417",
36+
"@aztec/protocol-contracts": "v4.3.0-nightly.20260417",
37+
"@aztec/pxe": "v4.3.0-nightly.20260417",
38+
"@aztec/stdlib": "v4.3.0-nightly.20260417",
39+
"@aztec/wallet-sdk": "v4.3.0-nightly.20260417",
4040
"@emotion/react": "^11.14.0",
4141
"@emotion/styled": "^11.14.0",
42-
"@gregojuice/contracts": "^0.0.16",
43-
"@gregojuice/embedded-wallet": "^0.0.16",
42+
"@gregojuice/contracts": "^0.0.18",
43+
"@gregojuice/embedded-wallet": "^0.0.18",
4444
"@mui/icons-material": "^6.3.1",
4545
"@mui/material": "^6.3.1",
4646
"@mui/styles": "^6.3.1",
@@ -51,11 +51,8 @@
5151
"zod": "^3.23.8",
5252
"zone.js": "^0.16.1"
5353
},
54-
"resolutions": {
55-
"@aztec/pxe": "patch:@aztec/pxe@npm%3A4.3.0-nightly.20260416#~/.yarn/patches/@aztec-pxe-npm-4.3.0-nightly.20260416-b01dc128ea.patch"
56-
},
5754
"devDependencies": {
58-
"@aztec/wallets": "v4.3.0-nightly.20260416",
55+
"@aztec/wallets": "v4.3.0-nightly.20260417",
5956
"@eslint/js": "^9.18.0",
6057
"@playwright/test": "1.49.0",
6158
"@types/buffer-json": "^2",

src/config/networks/testnet.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
},
1818
"deployedAt": "2026-04-16T07:16:45.008Z",
1919
"subscriptionFPC": {
20-
"address": "0x029f91316f06e4d46e1d77b831a394dbe01676480e9114403838b8df944ca043",
21-
"secretKey": "0x2bd6014457e941f1ee656a5824cd6016289acfbd708a9019860284c898c9461c",
20+
"address": "0x23fae3f4cdad2f6b36838eaf5020dd6817ff736ebcc2c7f7fa5a9e8f09b57f2f",
21+
"secretKey": "0x061f4db024da8aa7a3eea724beee9dd6c78e4b51d2bca3bf95f8a5d1da94e594",
2222
"functions": {
2323
"0x0cc4ceb7cf7cc514ea8fbc5dc7866bedfca6d42bbe4c20a4ad16f4ecb21d4c84": {
2424
"0xa539bd29": 0
@@ -28,4 +28,4 @@
2828
}
2929
}
3030
}
31-
}
31+
}

src/profiling/index.ts

Lines changed: 34 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,17 @@ function wrapAllMethods(
106106
return () => restores.forEach(r => r());
107107
}
108108

109+
/** Detect queue-like objects whose `get`/`put`/`process` are worker-loop
110+
* infrastructure, not application operations. Their blocking `get()` can
111+
* span seconds of idle time and pollute the profile. */
112+
function isQueueLike(obj: any): boolean {
113+
try {
114+
return typeof obj.get === 'function' && typeof obj.put === 'function';
115+
} catch {
116+
return false;
117+
}
118+
}
119+
109120
// ─── Profiler ────────────────────────────────────────────────────────────────
110121

111122
class Profiler {
@@ -254,23 +265,41 @@ class Profiler {
254265
if (pxe.simulator) wrapped.add(pxe.simulator);
255266
this._cleanups.push(installSimulatorInterceptorFromPXE(pxe, this));
256267

257-
this.instrumentPxeInternals(pxe, wrapped);
268+
this.instrumentInternals(pxe, wrapped, 3);
258269
}
259270
}
260271

261-
/** Walk PXE properties and wrap methods on internal services/stores. */
262-
private instrumentPxeInternals(pxe: any, alreadyWrapped: Set<any>) {
263-
for (const key of Object.getOwnPropertyNames(pxe)) {
272+
/**
273+
* Walk an object's properties and wrap methods on sub-objects.
274+
* Recurses up to `depth` levels (default 2) to catch nested objects
275+
* like `jobCoordinator.kvStore` whose `transactionAsync` needs its
276+
* callback arg zone-bound for proper context propagation.
277+
*
278+
* Queue-like objects (BaseMemoryQueue, FifoQueue, etc.) are skipped:
279+
* their `get`/`put`/`process` methods are worker-loop infrastructure
280+
* that blocks for seconds waiting for items, not application operations.
281+
*/
282+
private instrumentInternals(root: any, alreadyWrapped: Set<any>, depth = 2) {
283+
if (depth <= 0) return;
284+
for (const key of Object.getOwnPropertyNames(root)) {
264285
if (key.startsWith('_') || key === 'log') continue;
265286
let value: any;
266-
try { value = pxe[key]; } catch { continue; }
287+
try { value = root[key]; } catch { continue; }
267288
if (!value || typeof value !== 'object' || alreadyWrapped.has(value)) continue;
268289

269290
const methods = collectMethods(value);
270291
if (methods.length === 0) continue;
271292

293+
// Skip queue-like objects — they have `get`+`put` (or `process`)
294+
// and their blocking `get()` can span seconds of idle time.
295+
if (isQueueLike(value)) {
296+
alreadyWrapped.add(value);
297+
continue;
298+
}
299+
272300
alreadyWrapped.add(value);
273301
this._cleanups.push(wrapAllMethods(value, 'store', this));
302+
this.instrumentInternals(value, alreadyWrapped, depth - 1);
274303
}
275304
}
276305

0 commit comments

Comments
 (0)