@aztec/stdlib 4.2.0-nightly.20260410 → 4.2.0-nightly.20260411

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.
@@ -0,0 +1,21 @@
1
+ import { defaultFetch } from '@aztec/foundation/json-rpc/client';
2
+ import type { ApiSchemaFor } from '../schemas/schemas.js';
3
+ import { type ComponentsVersions } from '../versioning/index.js';
4
+ /**
5
+ * Debug interface for Aztec node available in sandbox/local-network mode.
6
+ */
7
+ export interface AztecNodeDebug {
8
+ /**
9
+ * Triggers the sequencer to produce an L2 block and waits for it to appear.
10
+ *
11
+ * **Precondition**: The current L2 slot must not already contain a block. Callers must ensure L1 time has been
12
+ * advanced to a slot with no existing block before calling this method (e.g. via `EthCheatCodes.warp()`).
13
+ * If the slot is already taken, the sequencer will fail to propose and this call will time out.
14
+ *
15
+ * @throws If no sequencer is running.
16
+ */
17
+ mineBlock(): Promise<void>;
18
+ }
19
+ export declare const AztecNodeDebugApiSchema: ApiSchemaFor<AztecNodeDebug>;
20
+ export declare function createAztecNodeDebugClient(url: string, versions?: Partial<ComponentsVersions>, fetch?: typeof defaultFetch, apiKey?: string): AztecNodeDebug;
21
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXp0ZWMtbm9kZS1kZWJ1Zy5kLnRzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2ludGVyZmFjZXMvYXp0ZWMtbm9kZS1kZWJ1Zy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQTJCLFlBQVksRUFBRSxNQUFNLG1DQUFtQyxDQUFDO0FBSTFGLE9BQU8sS0FBSyxFQUFFLFlBQVksRUFBRSxNQUFNLHVCQUF1QixDQUFDO0FBQzFELE9BQU8sRUFBRSxLQUFLLGtCQUFrQixFQUFnQyxNQUFNLHdCQUF3QixDQUFDO0FBRS9GOztHQUVHO0FBQ0gsTUFBTSxXQUFXLGNBQWM7SUFDN0I7Ozs7Ozs7O09BUUc7SUFDSCxTQUFTLElBQUksT0FBTyxDQUFDLElBQUksQ0FBQyxDQUFDO0NBQzVCO0FBRUQsZUFBTyxNQUFNLHVCQUF1QixFQUFFLFlBQVksQ0FBQyxjQUFjLENBRWhFLENBQUM7QUFFRix3QkFBZ0IsMEJBQTBCLENBQ3hDLEdBQUcsRUFBRSxNQUFNLEVBQ1gsUUFBUSxHQUFFLE9BQU8sQ0FBQyxrQkFBa0IsQ0FBTSxFQUMxQyxLQUFLLHNCQUFlLEVBQ3BCLE1BQU0sQ0FBQyxFQUFFLE1BQU0sR0FDZCxjQUFjLENBT2hCIn0=
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aztec-node-debug.d.ts","sourceRoot":"","sources":["../../src/interfaces/aztec-node-debug.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2B,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAI1F,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,KAAK,kBAAkB,EAAgC,MAAM,wBAAwB,CAAC;AAE/F;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B;;;;;;;;OAQG;IACH,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CAC5B;AAED,eAAO,MAAM,uBAAuB,EAAE,YAAY,CAAC,cAAc,CAEhE,CAAC;AAEF,wBAAgB,0BAA0B,CACxC,GAAG,EAAE,MAAM,EACX,QAAQ,GAAE,OAAO,CAAC,kBAAkB,CAAM,EAC1C,KAAK,sBAAe,EACpB,MAAM,CAAC,EAAE,MAAM,GACd,cAAc,CAOhB"}
@@ -0,0 +1,18 @@
1
+ import { createSafeJsonRpcClient, defaultFetch } from '@aztec/foundation/json-rpc/client';
2
+ import { z } from 'zod';
3
+ import { getVersioningResponseHandler } from '../versioning/index.js';
4
+ export const AztecNodeDebugApiSchema = {
5
+ mineBlock: z.function().returns(z.void())
6
+ };
7
+ export function createAztecNodeDebugClient(url, versions = {}, fetch = defaultFetch, apiKey) {
8
+ return createSafeJsonRpcClient(url, AztecNodeDebugApiSchema, {
9
+ namespaceMethods: 'nodeDebug',
10
+ fetch,
11
+ onResponse: getVersioningResponseHandler(versions),
12
+ ...apiKey ? {
13
+ extraHeaders: {
14
+ 'x-api-key': apiKey
15
+ }
16
+ } : {}
17
+ });
18
+ }
@@ -1,6 +1,7 @@
1
1
  export * from './aztec-node.js';
2
2
  export * from './aztec-node-admin.js';
3
+ export * from './aztec-node-debug.js';
3
4
  export * from './private_kernel_prover.js';
4
5
  export * from './get_logs_response.js';
5
6
  export * from './api_limit.js';
6
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2xpZW50LmQudHMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW50ZXJmYWNlcy9jbGllbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxpQkFBaUIsQ0FBQztBQUNoQyxjQUFjLHVCQUF1QixDQUFDO0FBQ3RDLGNBQWMsNEJBQTRCLENBQUM7QUFDM0MsY0FBYyx3QkFBd0IsQ0FBQztBQUN2QyxjQUFjLGdCQUFnQixDQUFDIn0=
7
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2xpZW50LmQudHMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW50ZXJmYWNlcy9jbGllbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxpQkFBaUIsQ0FBQztBQUNoQyxjQUFjLHVCQUF1QixDQUFDO0FBQ3RDLGNBQWMsdUJBQXVCLENBQUM7QUFDdEMsY0FBYyw0QkFBNEIsQ0FBQztBQUMzQyxjQUFjLHdCQUF3QixDQUFDO0FBQ3ZDLGNBQWMsZ0JBQWdCLENBQUMifQ==
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/interfaces/client.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,gBAAgB,CAAC"}
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/interfaces/client.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,gBAAgB,CAAC"}
@@ -1,5 +1,6 @@
1
1
  export * from './aztec-node.js';
2
2
  export * from './aztec-node-admin.js';
3
+ export * from './aztec-node-debug.js';
3
4
  export * from './private_kernel_prover.js';
4
5
  export * from './get_logs_response.js';
5
6
  export * from './api_limit.js';
@@ -1214,7 +1214,7 @@ export declare class TxSimulationResult {
1214
1214
  getPublicReturnValues(): NestedProcessReturnValues[];
1215
1215
  }
1216
1216
  /**
1217
- * Recursively accummulate the return values of a call result and its nested executions,
1217
+ * Recursively accumulate the return values of a call result and its nested executions,
1218
1218
  * so they can be retrieved in order.
1219
1219
  * @param executionResult
1220
1220
  * @returns
@@ -98,7 +98,7 @@ export class TxSimulationResult {
98
98
  }
99
99
  }
100
100
  /**
101
- * Recursively accummulate the return values of a call result and its nested executions,
101
+ * Recursively accumulate the return values of a call result and its nested executions,
102
102
  * so they can be retrieved in order.
103
103
  * @param executionResult
104
104
  * @returns
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aztec/stdlib",
3
- "version": "4.2.0-nightly.20260410",
3
+ "version": "4.2.0-nightly.20260411",
4
4
  "type": "module",
5
5
  "inherits": [
6
6
  "../package.common.json",
@@ -90,14 +90,14 @@
90
90
  },
91
91
  "dependencies": {
92
92
  "@aws-sdk/client-s3": "^3.892.0",
93
- "@aztec/bb.js": "4.2.0-nightly.20260410",
94
- "@aztec/blob-lib": "4.2.0-nightly.20260410",
95
- "@aztec/constants": "4.2.0-nightly.20260410",
96
- "@aztec/ethereum": "4.2.0-nightly.20260410",
97
- "@aztec/foundation": "4.2.0-nightly.20260410",
98
- "@aztec/l1-artifacts": "4.2.0-nightly.20260410",
99
- "@aztec/noir-noirc_abi": "4.2.0-nightly.20260410",
100
- "@aztec/validator-ha-signer": "4.2.0-nightly.20260410",
93
+ "@aztec/bb.js": "4.2.0-nightly.20260411",
94
+ "@aztec/blob-lib": "4.2.0-nightly.20260411",
95
+ "@aztec/constants": "4.2.0-nightly.20260411",
96
+ "@aztec/ethereum": "4.2.0-nightly.20260411",
97
+ "@aztec/foundation": "4.2.0-nightly.20260411",
98
+ "@aztec/l1-artifacts": "4.2.0-nightly.20260411",
99
+ "@aztec/noir-noirc_abi": "4.2.0-nightly.20260411",
100
+ "@aztec/validator-ha-signer": "4.2.0-nightly.20260411",
101
101
  "@google-cloud/storage": "^7.15.0",
102
102
  "axios": "^1.13.5",
103
103
  "json-stringify-deterministic": "1.0.12",
@@ -0,0 +1,40 @@
1
+ import { createSafeJsonRpcClient, defaultFetch } from '@aztec/foundation/json-rpc/client';
2
+
3
+ import { z } from 'zod';
4
+
5
+ import type { ApiSchemaFor } from '../schemas/schemas.js';
6
+ import { type ComponentsVersions, getVersioningResponseHandler } from '../versioning/index.js';
7
+
8
+ /**
9
+ * Debug interface for Aztec node available in sandbox/local-network mode.
10
+ */
11
+ export interface AztecNodeDebug {
12
+ /**
13
+ * Triggers the sequencer to produce an L2 block and waits for it to appear.
14
+ *
15
+ * **Precondition**: The current L2 slot must not already contain a block. Callers must ensure L1 time has been
16
+ * advanced to a slot with no existing block before calling this method (e.g. via `EthCheatCodes.warp()`).
17
+ * If the slot is already taken, the sequencer will fail to propose and this call will time out.
18
+ *
19
+ * @throws If no sequencer is running.
20
+ */
21
+ mineBlock(): Promise<void>;
22
+ }
23
+
24
+ export const AztecNodeDebugApiSchema: ApiSchemaFor<AztecNodeDebug> = {
25
+ mineBlock: z.function().returns(z.void()),
26
+ };
27
+
28
+ export function createAztecNodeDebugClient(
29
+ url: string,
30
+ versions: Partial<ComponentsVersions> = {},
31
+ fetch = defaultFetch,
32
+ apiKey?: string,
33
+ ): AztecNodeDebug {
34
+ return createSafeJsonRpcClient<AztecNodeDebug>(url, AztecNodeDebugApiSchema, {
35
+ namespaceMethods: 'nodeDebug',
36
+ fetch,
37
+ onResponse: getVersioningResponseHandler(versions),
38
+ ...(apiKey ? { extraHeaders: { 'x-api-key': apiKey } } : {}),
39
+ });
40
+ }
@@ -1,5 +1,6 @@
1
1
  export * from './aztec-node.js';
2
2
  export * from './aztec-node-admin.js';
3
+ export * from './aztec-node-debug.js';
3
4
  export * from './private_kernel_prover.js';
4
5
  export * from './get_logs_response.js';
5
6
  export * from './api_limit.js';
@@ -161,7 +161,7 @@ export class TxSimulationResult {
161
161
  }
162
162
 
163
163
  /**
164
- * Recursively accummulate the return values of a call result and its nested executions,
164
+ * Recursively accumulate the return values of a call result and its nested executions,
165
165
  * so they can be retrieved in order.
166
166
  * @param executionResult
167
167
  * @returns