@aztec/stdlib 3.0.0-nightly.20250923 → 3.0.0-nightly.20250924
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/interfaces/pxe.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ import type { AztecAddress } from '../aztec-address/index.js';
|
|
|
8
8
|
import { CompleteAddress, type ContractClassWithId, type ContractInstanceWithAddress, type PartialAddress, type ProtocolContractAddresses } from '../contract/index.js';
|
|
9
9
|
import { UniqueNote } from '../note/extended_note.js';
|
|
10
10
|
import { type NotesFilter } from '../note/notes_filter.js';
|
|
11
|
-
import {
|
|
11
|
+
import { SimulationOverrides, TxExecutionRequest, TxSimulationResult } from '../tx/index.js';
|
|
12
12
|
import { TxProfileResult, UtilitySimulationResult } from '../tx/profiling.js';
|
|
13
13
|
import { TxProvingResult } from '../tx/proven_tx.js';
|
|
14
14
|
/**
|
|
@@ -91,13 +91,11 @@ export interface PXE {
|
|
|
91
91
|
* (where validators prove the public portion).
|
|
92
92
|
*
|
|
93
93
|
* @param txRequest - An authenticated tx request ready for proving
|
|
94
|
-
* @param privateExecutionResult - (optional) The result of the private execution of the transaction. The txRequest
|
|
95
|
-
* will be executed if not provided
|
|
96
94
|
* @returns A result containing the proof and public inputs of the tail circuit.
|
|
97
95
|
* @throws If contract code not found, or public simulation reverts.
|
|
98
96
|
* Also throws if simulatePublic is true and public simulation reverts.
|
|
99
97
|
*/
|
|
100
|
-
proveTx(txRequest: TxExecutionRequest
|
|
98
|
+
proveTx(txRequest: TxExecutionRequest): Promise<TxProvingResult>;
|
|
101
99
|
/**
|
|
102
100
|
* Simulates a transaction based on the provided preauthenticated execution request.
|
|
103
101
|
* This will run a local simulation of private execution (and optionally of public as well), run the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pxe.d.ts","sourceRoot":"","sources":["../../src/interfaces/pxe.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIE,CAAC;AAO3C,eAAO,MAAM,SAAS,EAAE,YAAY,CAAC,GAAG,CAsDvC,CAAC"}
|
package/dest/interfaces/pxe.js
CHANGED
|
@@ -5,7 +5,7 @@ import { CompleteAddress, ContractClassWithIdSchema, ContractInstanceWithAddress
|
|
|
5
5
|
import { UniqueNote } from '../note/extended_note.js';
|
|
6
6
|
import { NotesFilterSchema } from '../note/notes_filter.js';
|
|
7
7
|
import { AbiDecodedSchema, optional, schemas } from '../schemas/schemas.js';
|
|
8
|
-
import {
|
|
8
|
+
import { SimulationOverrides, TxExecutionRequest, TxSimulationResult } from '../tx/index.js';
|
|
9
9
|
import { TxProfileResult, UtilitySimulationResult } from '../tx/profiling.js';
|
|
10
10
|
import { TxProvingResult } from '../tx/proven_tx.js';
|
|
11
11
|
export const EventMetadataDefinitionSchema = z.object({
|
|
@@ -54,7 +54,7 @@ export const PXESchema = {
|
|
|
54
54
|
})).returns(z.void()),
|
|
55
55
|
updateContract: z.function().args(schemas.AztecAddress, ContractArtifactSchema).returns(z.void()),
|
|
56
56
|
getContracts: z.function().returns(z.array(schemas.AztecAddress)),
|
|
57
|
-
proveTx: z.function().args(TxExecutionRequest.schema
|
|
57
|
+
proveTx: z.function().args(TxExecutionRequest.schema).returns(TxProvingResult.schema),
|
|
58
58
|
profileTx: z.function().args(TxExecutionRequest.schema, z.union([
|
|
59
59
|
z.literal('gates'),
|
|
60
60
|
z.literal('full'),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/stdlib",
|
|
3
|
-
"version": "3.0.0-nightly.
|
|
3
|
+
"version": "3.0.0-nightly.20250924",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"inherits": [
|
|
6
6
|
"../package.common.json",
|
|
@@ -69,13 +69,13 @@
|
|
|
69
69
|
"test": "NODE_NO_WARNINGS=1 node --experimental-vm-modules ../node_modules/.bin/jest --passWithNoTests --maxWorkers=${JEST_MAX_WORKERS:-8}"
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|
|
72
|
-
"@aztec/bb.js": "3.0.0-nightly.
|
|
73
|
-
"@aztec/blob-lib": "3.0.0-nightly.
|
|
74
|
-
"@aztec/constants": "3.0.0-nightly.
|
|
75
|
-
"@aztec/ethereum": "3.0.0-nightly.
|
|
76
|
-
"@aztec/foundation": "3.0.0-nightly.
|
|
77
|
-
"@aztec/l1-artifacts": "3.0.0-nightly.
|
|
78
|
-
"@aztec/noir-noirc_abi": "3.0.0-nightly.
|
|
72
|
+
"@aztec/bb.js": "3.0.0-nightly.20250924",
|
|
73
|
+
"@aztec/blob-lib": "3.0.0-nightly.20250924",
|
|
74
|
+
"@aztec/constants": "3.0.0-nightly.20250924",
|
|
75
|
+
"@aztec/ethereum": "3.0.0-nightly.20250924",
|
|
76
|
+
"@aztec/foundation": "3.0.0-nightly.20250924",
|
|
77
|
+
"@aztec/l1-artifacts": "3.0.0-nightly.20250924",
|
|
78
|
+
"@aztec/noir-noirc_abi": "3.0.0-nightly.20250924",
|
|
79
79
|
"@google-cloud/storage": "^7.15.0",
|
|
80
80
|
"axios": "^1.9.0",
|
|
81
81
|
"json-stringify-deterministic": "1.0.12",
|
package/src/interfaces/pxe.ts
CHANGED
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
import { UniqueNote } from '../note/extended_note.js';
|
|
21
21
|
import { type NotesFilter, NotesFilterSchema } from '../note/notes_filter.js';
|
|
22
22
|
import { AbiDecodedSchema, optional, schemas } from '../schemas/schemas.js';
|
|
23
|
-
import {
|
|
23
|
+
import { SimulationOverrides, TxExecutionRequest, TxSimulationResult } from '../tx/index.js';
|
|
24
24
|
import { TxProfileResult, UtilitySimulationResult } from '../tx/profiling.js';
|
|
25
25
|
import { TxProvingResult } from '../tx/proven_tx.js';
|
|
26
26
|
|
|
@@ -111,13 +111,11 @@ export interface PXE {
|
|
|
111
111
|
* (where validators prove the public portion).
|
|
112
112
|
*
|
|
113
113
|
* @param txRequest - An authenticated tx request ready for proving
|
|
114
|
-
* @param privateExecutionResult - (optional) The result of the private execution of the transaction. The txRequest
|
|
115
|
-
* will be executed if not provided
|
|
116
114
|
* @returns A result containing the proof and public inputs of the tail circuit.
|
|
117
115
|
* @throws If contract code not found, or public simulation reverts.
|
|
118
116
|
* Also throws if simulatePublic is true and public simulation reverts.
|
|
119
117
|
*/
|
|
120
|
-
proveTx(txRequest: TxExecutionRequest
|
|
118
|
+
proveTx(txRequest: TxExecutionRequest): Promise<TxProvingResult>;
|
|
121
119
|
|
|
122
120
|
/**
|
|
123
121
|
* Simulates a transaction based on the provided preauthenticated execution request.
|
|
@@ -314,10 +312,7 @@ export const PXESchema: ApiSchemaFor<PXE> = {
|
|
|
314
312
|
.returns(z.void()),
|
|
315
313
|
updateContract: z.function().args(schemas.AztecAddress, ContractArtifactSchema).returns(z.void()),
|
|
316
314
|
getContracts: z.function().returns(z.array(schemas.AztecAddress)),
|
|
317
|
-
proveTx: z
|
|
318
|
-
.function()
|
|
319
|
-
.args(TxExecutionRequest.schema, optional(PrivateExecutionResult.schema))
|
|
320
|
-
.returns(TxProvingResult.schema),
|
|
315
|
+
proveTx: z.function().args(TxExecutionRequest.schema).returns(TxProvingResult.schema),
|
|
321
316
|
profileTx: z
|
|
322
317
|
.function()
|
|
323
318
|
.args(
|