@aztec/stdlib 3.0.0-nightly.20251012 → 3.0.0-nightly.20251014
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/abi/contract_artifact.js +3 -0
- package/dest/kernel/private_call_data.d.ts +1 -1
- package/dest/noir/index.d.ts +2 -0
- package/dest/noir/index.d.ts.map +1 -1
- package/dest/rollup/base_rollup_hints.d.ts +2 -2
- package/dest/rollup/block_root_rollup_private_inputs.d.ts +5 -5
- package/dest/rollup/checkpoint_root_rollup_private_inputs.d.ts +1 -1
- package/dest/rollup/tree_snapshot_diff_hints.d.ts +1 -1
- package/dest/trees/merkle_tree_id.d.ts +4 -4
- package/dest/trees/nullifier_membership_witness.d.ts +3 -3
- package/package.json +8 -8
- package/src/abi/contract_artifact.ts +3 -0
- package/src/noir/index.ts +2 -0
|
@@ -220,6 +220,9 @@ function getFunctionType(fn) {
|
|
|
220
220
|
* @returns Aztec contract build artifact.
|
|
221
221
|
*/ function generateContractArtifact(contract) {
|
|
222
222
|
try {
|
|
223
|
+
if (!contract.transpiled) {
|
|
224
|
+
throw new Error("Contract's public bytecode has not been transpiled");
|
|
225
|
+
}
|
|
223
226
|
return ContractArtifactSchema.parse({
|
|
224
227
|
name: contract.name,
|
|
225
228
|
functions: contract.functions.filter((f)=>retainBytecode(f)).map((f)=>generateFunctionArtifact(f, contract)),
|
|
@@ -104,7 +104,7 @@ export declare class PrivateVerificationKeyHints {
|
|
|
104
104
|
* @param fields - Object with fields.
|
|
105
105
|
* @returns The array.
|
|
106
106
|
*/
|
|
107
|
-
static getFields(fields: FieldsOf<PrivateVerificationKeyHints>): readonly [Fr, Fr, PublicKeys, Fr, MembershipWitness<
|
|
107
|
+
static getFields(fields: FieldsOf<PrivateVerificationKeyHints>): readonly [Fr, Fr, PublicKeys, Fr, MembershipWitness<7>, UpdatedClassIdHints];
|
|
108
108
|
static from(fields: FieldsOf<PrivateVerificationKeyHints>): PrivateVerificationKeyHints;
|
|
109
109
|
/**
|
|
110
110
|
* Serialize this as a buffer.
|
package/dest/noir/index.d.ts
CHANGED
|
@@ -52,6 +52,8 @@ interface NoirFunctionEntry {
|
|
|
52
52
|
export interface NoirCompiledContract {
|
|
53
53
|
/** The name of the contract. */
|
|
54
54
|
name: string;
|
|
55
|
+
/** Is the contract's public bytecode transpiled? */
|
|
56
|
+
transpiled?: boolean;
|
|
55
57
|
/** The functions of the contract. */
|
|
56
58
|
functions: NoirFunctionEntry[];
|
|
57
59
|
/** The events of the contract */
|
package/dest/noir/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/noir/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,sBAAsB,EACtB,YAAY,EACZ,OAAO,EACP,QAAQ,EACR,YAAY,EACZ,SAAS,EACV,MAAM,eAAe,CAAC;AAEvB,eAAO,MAAM,uBAAuB,YAAY,CAAC;AACjD,eAAO,MAAM,sBAAsB,WAAW,CAAC;AAC/C,eAAO,MAAM,uBAAuB,YAAY,CAAC;AACjD,eAAO,MAAM,wBAAwB,aAAa,CAAC;AACnD,eAAO,MAAM,2BAA2B,gBAAgB,CAAC;AACzD,eAAO,MAAM,oBAAoB,SAAS,CAAC;AAE3C,uCAAuC;AACvC,MAAM,WAAW,eAAe;IAC9B,sCAAsC;IACtC,UAAU,EAAE,YAAY,EAAE,CAAC;IAC3B,uCAAuC;IACvC,WAAW,EAAE;QACX;;WAEG;QACH,QAAQ,EAAE,OAAO,CAAC;QAClB;;WAEG;QACH,UAAU,EAAE,sBAAsB,CAAC;KACpC,CAAC;IACF,8CAA8C;IAC9C,WAAW,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC,CAAC;CACpD;AAED;;GAEG;AACH,UAAU,iBAAiB;IACzB,gCAAgC;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,6CAA6C;I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static from(fields: FieldsOf<PrivateBaseRollupHints>): PrivateBaseRollupHints;
|
|
72
|
-
static getFields(fields: FieldsOf<PrivateBaseRollupHints>): readonly [PartialStateReference, SpongeBlob, TreeSnapshotDiffHints, PublicDataTreeLeafPreimage, [Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr], [ContractClassLogFields], BlockConstantData];
|
|
72
|
+
static getFields(fields: FieldsOf<PrivateBaseRollupHints>): readonly [PartialStateReference, SpongeBlob, TreeSnapshotDiffHints, PublicDataTreeLeafPreimage, [Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr], [ContractClassLogFields], BlockConstantData];
|
|
73
73
|
/**
|
|
74
74
|
* Serializes the inputs to a buffer.
|
|
75
75
|
* @returns The inputs serialized to a buffer.
|
|
@@ -119,7 +119,7 @@ export declare class PublicBaseRollupHints {
|
|
|
119
119
|
*/
|
|
120
120
|
contractClassLogsFields: Tuple<ContractClassLogFields, typeof MAX_CONTRACT_CLASS_LOGS_PER_TX>);
|
|
121
121
|
static from(fields: FieldsOf<PublicBaseRollupHints>): PublicBaseRollupHints;
|
|
122
|
-
static getFields(fields: FieldsOf<PublicBaseRollupHints>): readonly [SpongeBlob, AppendOnlyTreeSnapshot, [Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr], [ContractClassLogFields]];
|
|
122
|
+
static getFields(fields: FieldsOf<PublicBaseRollupHints>): readonly [SpongeBlob, AppendOnlyTreeSnapshot, [Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr], [ContractClassLogFields]];
|
|
123
123
|
/**
|
|
124
124
|
* Serializes the inputs to a buffer.
|
|
125
125
|
* @returns The inputs serialized to a buffer.
|
|
@@ -53,7 +53,7 @@ export declare class BlockRootFirstRollupPrivateInputs {
|
|
|
53
53
|
*/
|
|
54
54
|
newArchiveSiblingPath: Tuple<Fr, typeof ARCHIVE_HEIGHT>);
|
|
55
55
|
static from(fields: FieldsOf<BlockRootFirstRollupPrivateInputs>): BlockRootFirstRollupPrivateInputs;
|
|
56
|
-
static getFields(fields: FieldsOf<BlockRootFirstRollupPrivateInputs>): readonly [UltraHonkProofData<ParityPublicInputs>, [RollupHonkProofData<TxRollupPublicInputs>, RollupHonkProofData<TxRollupPublicInputs>], AppendOnlyTreeSnapshot, [Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr
|
|
56
|
+
static getFields(fields: FieldsOf<BlockRootFirstRollupPrivateInputs>): readonly [UltraHonkProofData<ParityPublicInputs>, [RollupHonkProofData<TxRollupPublicInputs>, RollupHonkProofData<TxRollupPublicInputs>], AppendOnlyTreeSnapshot, [Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr], [Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr]];
|
|
57
57
|
toBuffer(): Buffer<ArrayBufferLike>;
|
|
58
58
|
static fromBuffer(buffer: Buffer | BufferReader): BlockRootFirstRollupPrivateInputs;
|
|
59
59
|
toJSON(): Buffer<ArrayBufferLike>;
|
|
@@ -102,7 +102,7 @@ export declare class BlockRootSingleTxFirstRollupPrivateInputs {
|
|
|
102
102
|
*/
|
|
103
103
|
newArchiveSiblingPath: Tuple<Fr, typeof ARCHIVE_HEIGHT>);
|
|
104
104
|
static from(fields: FieldsOf<BlockRootSingleTxFirstRollupPrivateInputs>): BlockRootSingleTxFirstRollupPrivateInputs;
|
|
105
|
-
static getFields(fields: FieldsOf<BlockRootSingleTxFirstRollupPrivateInputs>): readonly [UltraHonkProofData<ParityPublicInputs>, RollupHonkProofData<TxRollupPublicInputs>, AppendOnlyTreeSnapshot, [Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr
|
|
105
|
+
static getFields(fields: FieldsOf<BlockRootSingleTxFirstRollupPrivateInputs>): readonly [UltraHonkProofData<ParityPublicInputs>, RollupHonkProofData<TxRollupPublicInputs>, AppendOnlyTreeSnapshot, [Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr], [Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr]];
|
|
106
106
|
toBuffer(): Buffer<ArrayBufferLike>;
|
|
107
107
|
static fromBuffer(buffer: Buffer | BufferReader): BlockRootSingleTxFirstRollupPrivateInputs;
|
|
108
108
|
toJSON(): Buffer<ArrayBufferLike>;
|
|
@@ -177,7 +177,7 @@ export declare class BlockRootEmptyTxFirstRollupPrivateInputs {
|
|
|
177
177
|
*/
|
|
178
178
|
newArchiveSiblingPath: Tuple<Fr, typeof ARCHIVE_HEIGHT>);
|
|
179
179
|
static from(fields: FieldsOf<BlockRootEmptyTxFirstRollupPrivateInputs>): BlockRootEmptyTxFirstRollupPrivateInputs;
|
|
180
|
-
static getFields(fields: FieldsOf<BlockRootEmptyTxFirstRollupPrivateInputs>): readonly [UltraHonkProofData<ParityPublicInputs>, AppendOnlyTreeSnapshot, StateReference, CheckpointConstantData, SpongeBlob, bigint, [Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr
|
|
180
|
+
static getFields(fields: FieldsOf<BlockRootEmptyTxFirstRollupPrivateInputs>): readonly [UltraHonkProofData<ParityPublicInputs>, AppendOnlyTreeSnapshot, StateReference, CheckpointConstantData, SpongeBlob, bigint, [Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr], [Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr]];
|
|
181
181
|
toBuffer(): Buffer<ArrayBufferLike>;
|
|
182
182
|
static fromBuffer(buffer: Buffer | BufferReader): BlockRootEmptyTxFirstRollupPrivateInputs;
|
|
183
183
|
toJSON(): Buffer<ArrayBufferLike>;
|
|
@@ -202,7 +202,7 @@ export declare class BlockRootRollupPrivateInputs {
|
|
|
202
202
|
*/
|
|
203
203
|
newArchiveSiblingPath: Tuple<Fr, typeof ARCHIVE_HEIGHT>);
|
|
204
204
|
static from(fields: FieldsOf<BlockRootRollupPrivateInputs>): BlockRootRollupPrivateInputs;
|
|
205
|
-
static getFields(fields: FieldsOf<BlockRootRollupPrivateInputs>): readonly [[RollupHonkProofData<TxRollupPublicInputs>, RollupHonkProofData<TxRollupPublicInputs>], [Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr]];
|
|
205
|
+
static getFields(fields: FieldsOf<BlockRootRollupPrivateInputs>): readonly [[RollupHonkProofData<TxRollupPublicInputs>, RollupHonkProofData<TxRollupPublicInputs>], [Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr]];
|
|
206
206
|
toBuffer(): Buffer<ArrayBufferLike>;
|
|
207
207
|
static fromBuffer(buffer: Buffer | BufferReader): BlockRootRollupPrivateInputs;
|
|
208
208
|
toJSON(): Buffer<ArrayBufferLike>;
|
|
@@ -227,7 +227,7 @@ export declare class BlockRootSingleTxRollupPrivateInputs {
|
|
|
227
227
|
*/
|
|
228
228
|
newArchiveSiblingPath: Tuple<Fr, typeof ARCHIVE_HEIGHT>);
|
|
229
229
|
static from(fields: FieldsOf<BlockRootSingleTxRollupPrivateInputs>): BlockRootSingleTxRollupPrivateInputs;
|
|
230
|
-
static getFields(fields: FieldsOf<BlockRootSingleTxRollupPrivateInputs>): readonly [RollupHonkProofData<TxRollupPublicInputs>, [Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr]];
|
|
230
|
+
static getFields(fields: FieldsOf<BlockRootSingleTxRollupPrivateInputs>): readonly [RollupHonkProofData<TxRollupPublicInputs>, [Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr]];
|
|
231
231
|
toBuffer(): Buffer<ArrayBufferLike>;
|
|
232
232
|
static fromBuffer(buffer: Buffer | BufferReader): BlockRootSingleTxRollupPrivateInputs;
|
|
233
233
|
toJSON(): Buffer<ArrayBufferLike>;
|
|
@@ -71,7 +71,7 @@ export declare class CheckpointRootRollupHints {
|
|
|
71
71
|
*/
|
|
72
72
|
blobsHash: Fr);
|
|
73
73
|
static from(fields: FieldsOf<CheckpointRootRollupHints>): CheckpointRootRollupHints;
|
|
74
|
-
static getFields(fields: FieldsOf<CheckpointRootRollupHints>): readonly [BlockHeader, [Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr], BlobAccumulator, FinalBlobBatchingChallenges, Fr[], [BLS12Point, BLS12Point, BLS12Point], Fr];
|
|
74
|
+
static getFields(fields: FieldsOf<CheckpointRootRollupHints>): readonly [BlockHeader, [Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr], BlobAccumulator, FinalBlobBatchingChallenges, Fr[], [BLS12Point, BLS12Point, BLS12Point], Fr];
|
|
75
75
|
toBuffer(): Buffer<ArrayBufferLike>;
|
|
76
76
|
static fromBuffer(buffer: Buffer | BufferReader): CheckpointRootRollupHints;
|
|
77
77
|
toString(): `0x${string}`;
|
|
@@ -70,7 +70,7 @@ export declare class TreeSnapshotDiffHints {
|
|
|
70
70
|
*/
|
|
71
71
|
feePayerBalanceMembershipWitness: MembershipWitness<typeof PUBLIC_DATA_TREE_HEIGHT>);
|
|
72
72
|
static from(fields: FieldsOf<TreeSnapshotDiffHints>): TreeSnapshotDiffHints;
|
|
73
|
-
static getFields(fields: FieldsOf<TreeSnapshotDiffHints>): readonly [[Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr], [NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage], [MembershipWitness<
|
|
73
|
+
static getFields(fields: FieldsOf<TreeSnapshotDiffHints>): readonly [[Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr], [NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage, NullifierLeafPreimage], [MembershipWitness<42>, MembershipWitness<42>, MembershipWitness<42>, MembershipWitness<42>, MembershipWitness<42>, MembershipWitness<42>, MembershipWitness<42>, MembershipWitness<42>, MembershipWitness<42>, MembershipWitness<42>, MembershipWitness<42>, MembershipWitness<42>, MembershipWitness<42>, MembershipWitness<42>, MembershipWitness<42>, MembershipWitness<42>, MembershipWitness<42>, MembershipWitness<42>, MembershipWitness<42>, MembershipWitness<42>, MembershipWitness<42>, MembershipWitness<42>, MembershipWitness<42>, MembershipWitness<42>, MembershipWitness<42>, MembershipWitness<42>, MembershipWitness<42>, MembershipWitness<42>, MembershipWitness<42>, MembershipWitness<42>, MembershipWitness<42>, MembershipWitness<42>, MembershipWitness<42>, MembershipWitness<42>, MembershipWitness<42>, MembershipWitness<42>, MembershipWitness<42>, MembershipWitness<42>, MembershipWitness<42>, MembershipWitness<42>, MembershipWitness<42>, MembershipWitness<42>, MembershipWitness<42>, MembershipWitness<42>, MembershipWitness<42>, MembershipWitness<42>, MembershipWitness<42>, MembershipWitness<42>, MembershipWitness<42>, MembershipWitness<42>, MembershipWitness<42>, MembershipWitness<42>, MembershipWitness<42>, MembershipWitness<42>, MembershipWitness<42>, MembershipWitness<42>, MembershipWitness<42>, MembershipWitness<42>, MembershipWitness<42>, MembershipWitness<42>, MembershipWitness<42>, MembershipWitness<42>, MembershipWitness<42>, MembershipWitness<42>], [Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr], [number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number], [Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr], MembershipWitness<40>];
|
|
74
74
|
/**
|
|
75
75
|
* Serializes the state diff hints to a buffer.
|
|
76
76
|
* @returns A buffer of the serialized state diff hints.
|
|
@@ -11,10 +11,10 @@ export declare enum MerkleTreeId {
|
|
|
11
11
|
}
|
|
12
12
|
export declare const merkleTreeIds: () => MerkleTreeId[];
|
|
13
13
|
declare const TREE_HEIGHTS: {
|
|
14
|
-
readonly 1:
|
|
15
|
-
readonly 4:
|
|
16
|
-
readonly 3:
|
|
17
|
-
readonly 0:
|
|
14
|
+
readonly 1: 42;
|
|
15
|
+
readonly 4: 30;
|
|
16
|
+
readonly 3: 36;
|
|
17
|
+
readonly 0: 42;
|
|
18
18
|
readonly 2: 40;
|
|
19
19
|
};
|
|
20
20
|
export type TreeHeights = typeof TREE_HEIGHTS;
|
|
@@ -78,17 +78,17 @@ export declare class NullifierMembershipWitness {
|
|
|
78
78
|
}>, Buffer<ArrayBuffer>, {
|
|
79
79
|
type: "Buffer";
|
|
80
80
|
data: number[];
|
|
81
|
-
}>]>, SiblingPath<
|
|
81
|
+
}>]>, SiblingPath<42>, string | {
|
|
82
82
|
type: "Buffer";
|
|
83
83
|
data: number[];
|
|
84
|
-
}>, SiblingPath<
|
|
84
|
+
}>, SiblingPath<42>, string | {
|
|
85
85
|
type: "Buffer";
|
|
86
86
|
data: number[];
|
|
87
87
|
}>;
|
|
88
88
|
}, "strip", z.ZodTypeAny, {
|
|
89
89
|
index: bigint;
|
|
90
90
|
leafPreimage: NullifierLeafPreimage;
|
|
91
|
-
siblingPath: SiblingPath<
|
|
91
|
+
siblingPath: SiblingPath<42>;
|
|
92
92
|
}, {
|
|
93
93
|
index: string | number | bigint;
|
|
94
94
|
leafPreimage: {
|
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.20251014",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"inherits": [
|
|
6
6
|
"../package.common.json",
|
|
@@ -70,13 +70,13 @@
|
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|
|
72
72
|
"@aws-sdk/client-s3": "^3.892.0",
|
|
73
|
-
"@aztec/bb.js": "3.0.0-nightly.
|
|
74
|
-
"@aztec/blob-lib": "3.0.0-nightly.
|
|
75
|
-
"@aztec/constants": "3.0.0-nightly.
|
|
76
|
-
"@aztec/ethereum": "3.0.0-nightly.
|
|
77
|
-
"@aztec/foundation": "3.0.0-nightly.
|
|
78
|
-
"@aztec/l1-artifacts": "3.0.0-nightly.
|
|
79
|
-
"@aztec/noir-noirc_abi": "3.0.0-nightly.
|
|
73
|
+
"@aztec/bb.js": "3.0.0-nightly.20251014",
|
|
74
|
+
"@aztec/blob-lib": "3.0.0-nightly.20251014",
|
|
75
|
+
"@aztec/constants": "3.0.0-nightly.20251014",
|
|
76
|
+
"@aztec/ethereum": "3.0.0-nightly.20251014",
|
|
77
|
+
"@aztec/foundation": "3.0.0-nightly.20251014",
|
|
78
|
+
"@aztec/l1-artifacts": "3.0.0-nightly.20251014",
|
|
79
|
+
"@aztec/noir-noirc_abi": "3.0.0-nightly.20251014",
|
|
80
80
|
"@google-cloud/storage": "^7.15.0",
|
|
81
81
|
"axios": "^1.12.0",
|
|
82
82
|
"json-stringify-deterministic": "1.0.12",
|
|
@@ -283,6 +283,9 @@ function getStorageLayout(input: NoirCompiledContract) {
|
|
|
283
283
|
*/
|
|
284
284
|
function generateContractArtifact(contract: NoirCompiledContract): ContractArtifact {
|
|
285
285
|
try {
|
|
286
|
+
if (!contract.transpiled) {
|
|
287
|
+
throw new Error("Contract's public bytecode has not been transpiled");
|
|
288
|
+
}
|
|
286
289
|
return ContractArtifactSchema.parse({
|
|
287
290
|
name: contract.name,
|
|
288
291
|
functions: contract.functions.filter(f => retainBytecode(f)).map(f => generateFunctionArtifact(f, contract)),
|
package/src/noir/index.ts
CHANGED
|
@@ -64,6 +64,8 @@ interface NoirFunctionEntry {
|
|
|
64
64
|
export interface NoirCompiledContract {
|
|
65
65
|
/** The name of the contract. */
|
|
66
66
|
name: string;
|
|
67
|
+
/** Is the contract's public bytecode transpiled? */
|
|
68
|
+
transpiled?: boolean;
|
|
67
69
|
/** The functions of the contract. */
|
|
68
70
|
functions: NoirFunctionEntry[];
|
|
69
71
|
/** The events of the contract */
|