@aztec/stdlib 0.86.0-nightly.20250501 → 0.86.0-nightly.20250503
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"simulation_error.d.ts","sourceRoot":"","sources":["../../src/errors/simulation_error.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAInD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,KAAK,MAAM,
|
|
1
|
+
{"version":3,"file":"simulation_error.d.ts","sourceRoot":"","sources":["../../src/errors/simulation_error.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAInD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,KAAK,MAAM,EAAqB,MAAM,qBAAqB,CAAC;AAErE;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,eAAe,EAAE,YAAY,CAAC;IAC9B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,MAAM,EAAE,M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../abi/function_selector.js';
|
|
3
3
|
import { AztecAddress } from '../aztec-address/index.js';
|
|
4
|
-
import { schemas } from '../schemas/index.js';
|
|
4
|
+
import { optional, schemas } from '../schemas/index.js';
|
|
5
5
|
const SourceCodeLocationSchema = z.object({
|
|
6
6
|
filePath: z.string(),
|
|
7
7
|
line: z.number().int().nonnegative(),
|
|
@@ -144,7 +144,7 @@ const NoirCallStackSchema = z.union([
|
|
|
144
144
|
functionErrorStack: z.array(z.object({
|
|
145
145
|
contractAddress: schemas.AztecAddress,
|
|
146
146
|
contractName: z.string().optional(),
|
|
147
|
-
functionSelector: schemas.FunctionSelector,
|
|
147
|
+
functionSelector: optional(schemas.FunctionSelector),
|
|
148
148
|
functionName: z.string().optional()
|
|
149
149
|
})),
|
|
150
150
|
noirErrorStack: NoirCallStackSchema.optional(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/stdlib",
|
|
3
|
-
"version": "0.86.0-nightly.
|
|
3
|
+
"version": "0.86.0-nightly.20250503",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"inherits": [
|
|
6
6
|
"../package.common.json",
|
|
@@ -66,12 +66,12 @@
|
|
|
66
66
|
"test": "NODE_NO_WARNINGS=1 node --experimental-vm-modules ../node_modules/.bin/jest --passWithNoTests --maxWorkers=${JEST_MAX_WORKERS:-8}"
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
|
-
"@aztec/bb.js": "0.86.0-nightly.
|
|
70
|
-
"@aztec/blob-lib": "0.86.0-nightly.
|
|
71
|
-
"@aztec/constants": "0.86.0-nightly.
|
|
72
|
-
"@aztec/ethereum": "0.86.0-nightly.
|
|
73
|
-
"@aztec/foundation": "0.86.0-nightly.
|
|
74
|
-
"@aztec/noir-noirc_abi": "0.86.0-nightly.
|
|
69
|
+
"@aztec/bb.js": "0.86.0-nightly.20250503",
|
|
70
|
+
"@aztec/blob-lib": "0.86.0-nightly.20250503",
|
|
71
|
+
"@aztec/constants": "0.86.0-nightly.20250503",
|
|
72
|
+
"@aztec/ethereum": "0.86.0-nightly.20250503",
|
|
73
|
+
"@aztec/foundation": "0.86.0-nightly.20250503",
|
|
74
|
+
"@aztec/noir-noirc_abi": "0.86.0-nightly.20250503",
|
|
75
75
|
"@google-cloud/storage": "^7.15.0",
|
|
76
76
|
"lodash.chunk": "^4.2.0",
|
|
77
77
|
"lodash.isequal": "^4.5.0",
|
|
@@ -5,7 +5,7 @@ import { z } from 'zod';
|
|
|
5
5
|
import type { OpcodeLocation } from '../abi/abi.js';
|
|
6
6
|
import { FunctionSelector } from '../abi/function_selector.js';
|
|
7
7
|
import { AztecAddress } from '../aztec-address/index.js';
|
|
8
|
-
import { type ZodFor, schemas } from '../schemas/index.js';
|
|
8
|
+
import { type ZodFor, optional, schemas } from '../schemas/index.js';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* Address and selector of a function that failed during simulation.
|
|
@@ -240,7 +240,7 @@ export class SimulationError extends Error {
|
|
|
240
240
|
z.object({
|
|
241
241
|
contractAddress: schemas.AztecAddress,
|
|
242
242
|
contractName: z.string().optional(),
|
|
243
|
-
functionSelector: schemas.FunctionSelector,
|
|
243
|
+
functionSelector: optional(schemas.FunctionSelector),
|
|
244
244
|
functionName: z.string().optional(),
|
|
245
245
|
}),
|
|
246
246
|
),
|