@aztec/stdlib 3.0.0-nightly.20251112 → 3.0.0-nightly.20251114
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/abi.d.ts +8 -8
- package/dest/abi/abi.d.ts.map +1 -1
- package/dest/abi/abi.js +2 -2
- package/dest/abi/contract_artifact.js +3 -3
- package/dest/avm/avm.d.ts +539 -769
- package/dest/avm/avm.d.ts.map +1 -1
- package/dest/avm/avm.js +196 -2
- package/dest/avm/avm_accumulated_data.d.ts +22 -6
- package/dest/avm/avm_accumulated_data.d.ts.map +1 -1
- package/dest/avm/avm_accumulated_data.js +18 -0
- package/dest/avm/avm_circuit_public_inputs.d.ts +35 -27
- package/dest/avm/avm_circuit_public_inputs.d.ts.map +1 -1
- package/dest/avm/avm_circuit_public_inputs.js +9 -0
- package/dest/avm/avm_proving_request.d.ts +134 -290
- package/dest/avm/avm_proving_request.d.ts.map +1 -1
- package/dest/avm/public_data_write.d.ts +10 -2
- package/dest/avm/public_data_write.d.ts.map +1 -1
- package/dest/avm/public_data_write.js +9 -0
- package/dest/avm/revert_code.d.ts +8 -0
- package/dest/avm/revert_code.d.ts.map +1 -1
- package/dest/avm/revert_code.js +16 -0
- package/dest/aztec-address/index.d.ts +9 -0
- package/dest/aztec-address/index.d.ts.map +1 -1
- package/dest/aztec-address/index.js +16 -0
- package/dest/block/l2_block.d.ts +1 -1
- package/dest/block/l2_block_info.d.ts +3 -3
- package/dest/block/proposal/attestations_and_signers.d.ts +1 -1
- package/dest/block/proposal/committee_attestation.d.ts +1 -1
- package/dest/block/published_l2_block.d.ts +2 -2
- package/dest/block/validate_block_result.d.ts +12 -12
- package/dest/contract/contract_deployment_data.d.ts +10 -2
- package/dest/contract/contract_deployment_data.d.ts.map +1 -1
- package/dest/contract/contract_deployment_data.js +12 -0
- package/dest/contract/interfaces/contract_class.d.ts +19 -19
- package/dest/contract/interfaces/contract_instance.d.ts +32 -200
- package/dest/contract/interfaces/contract_instance.d.ts.map +1 -1
- package/dest/database-version/version_manager.d.ts +1 -1
- package/dest/gas/gas.d.ts +8 -0
- package/dest/gas/gas.d.ts.map +1 -1
- package/dest/gas/gas.js +12 -0
- package/dest/gas/gas_fees.d.ts +8 -0
- package/dest/gas/gas_fees.d.ts.map +1 -1
- package/dest/gas/gas_fees.js +12 -0
- package/dest/gas/gas_settings.d.ts +8 -0
- package/dest/gas/gas_settings.d.ts.map +1 -1
- package/dest/gas/gas_settings.js +12 -0
- package/dest/gas/gas_used.d.ts +12 -1
- package/dest/gas/gas_used.d.ts.map +1 -1
- package/dest/gas/gas_used.js +19 -1
- package/dest/interfaces/aztec-node-admin.d.ts +8 -5
- package/dest/interfaces/aztec-node-admin.d.ts.map +1 -1
- package/dest/interfaces/configs.d.ts +5 -0
- package/dest/interfaces/configs.d.ts.map +1 -1
- package/dest/interfaces/configs.js +1 -0
- package/dest/interfaces/proving-job.d.ts +162 -318
- package/dest/interfaces/proving-job.d.ts.map +1 -1
- package/dest/interfaces/slasher.d.ts +3 -3
- package/dest/interfaces/validator.d.ts +12 -4
- package/dest/interfaces/validator.d.ts.map +1 -1
- package/dest/interfaces/validator.js +2 -1
- package/dest/kernel/private_to_avm_accumulated_data.d.ts +20 -4
- package/dest/kernel/private_to_avm_accumulated_data.d.ts.map +1 -1
- package/dest/kernel/private_to_avm_accumulated_data.js +18 -0
- package/dest/kernel/public_call_request.d.ts +17 -1
- package/dest/kernel/public_call_request.d.ts.map +1 -1
- package/dest/kernel/public_call_request.js +18 -0
- package/dest/keys/public_keys.d.ts +20 -84
- package/dest/keys/public_keys.d.ts.map +1 -1
- package/dest/keys/public_keys.js +12 -0
- package/dest/logs/contract_class_log.d.ts +18 -2
- package/dest/logs/contract_class_log.d.ts.map +1 -1
- package/dest/logs/contract_class_log.js +24 -0
- package/dest/logs/debug_log.d.ts +9 -1
- package/dest/logs/debug_log.d.ts.map +1 -1
- package/dest/logs/debug_log.js +13 -0
- package/dest/logs/directional_app_tagging_secret.d.ts +1 -1
- package/dest/logs/pre_tag.d.ts +1 -1
- package/dest/logs/private_log.d.ts +9 -1
- package/dest/logs/private_log.d.ts.map +1 -1
- package/dest/logs/private_log.js +12 -0
- package/dest/logs/public_log.d.ts +8 -0
- package/dest/logs/public_log.d.ts.map +1 -1
- package/dest/logs/public_log.js +9 -0
- package/dest/logs/tx_scoped_l2_log.d.ts +1 -1
- package/dest/messaging/l2_to_l1_message.d.ts +24 -8
- package/dest/messaging/l2_to_l1_message.d.ts.map +1 -1
- package/dest/messaging/l2_to_l1_message.js +18 -0
- package/dest/noir/index.d.ts +1 -1
- package/dest/noir/index.d.ts.map +1 -1
- package/dest/noir/index.js +1 -2
- package/dest/p2p/consensus_payload.d.ts +5 -5
- package/dest/snapshots/types.d.ts +2 -2
- package/dest/trees/append_only_tree_snapshot.d.ts +9 -1
- package/dest/trees/append_only_tree_snapshot.d.ts.map +1 -1
- package/dest/trees/append_only_tree_snapshot.js +9 -0
- package/dest/trees/nullifier_leaf.d.ts +20 -4
- package/dest/trees/nullifier_leaf.d.ts.map +1 -1
- package/dest/trees/nullifier_leaf.js +24 -0
- package/dest/trees/nullifier_membership_witness.d.ts +2 -2
- package/dest/trees/public_data_leaf.d.ts +23 -7
- package/dest/trees/public_data_leaf.d.ts.map +1 -1
- package/dest/trees/public_data_leaf.js +24 -0
- package/dest/trees/public_data_witness.d.ts +3 -3
- package/dest/tx/content_commitment.d.ts +3 -3
- package/dest/tx/execution_payload.d.ts +45 -0
- package/dest/tx/execution_payload.d.ts.map +1 -0
- package/dest/tx/execution_payload.js +40 -0
- package/dest/tx/global_variables.d.ts +8 -0
- package/dest/tx/global_variables.d.ts.map +1 -1
- package/dest/tx/global_variables.js +9 -0
- package/dest/tx/index.d.ts +1 -0
- package/dest/tx/index.d.ts.map +1 -1
- package/dest/tx/index.js +1 -0
- package/dest/tx/partial_state_reference.d.ts +3 -3
- package/dest/tx/profiling.d.ts +3 -3
- package/dest/tx/profiling.d.ts.map +1 -1
- package/dest/tx/profiling.js +5 -4
- package/dest/tx/protocol_contracts.d.ts +8 -0
- package/dest/tx/protocol_contracts.d.ts.map +1 -1
- package/dest/tx/protocol_contracts.js +9 -0
- package/dest/tx/public_call_request_with_calldata.d.ts +8 -0
- package/dest/tx/public_call_request_with_calldata.d.ts.map +1 -1
- package/dest/tx/public_call_request_with_calldata.js +12 -0
- package/dest/tx/simulated_tx.d.ts +28 -148
- package/dest/tx/simulated_tx.d.ts.map +1 -1
- package/dest/tx/state_reference.d.ts +4 -4
- package/dest/tx/tree_snapshots.d.ts +12 -4
- package/dest/tx/tree_snapshots.d.ts.map +1 -1
- package/dest/tx/tree_snapshots.js +9 -0
- package/dest/tx/tx_context.d.ts +2 -2
- package/dest/validators/schemas.d.ts +3 -3
- package/package.json +8 -8
- package/src/abi/abi.ts +4 -4
- package/src/abi/contract_artifact.ts +3 -3
- package/src/avm/avm.ts +350 -3
- package/src/avm/avm_accumulated_data.ts +40 -0
- package/src/avm/avm_circuit_public_inputs.ts +40 -0
- package/src/avm/public_data_write.ts +11 -0
- package/src/avm/revert_code.ts +18 -0
- package/src/aztec-address/index.ts +18 -0
- package/src/contract/contract_deployment_data.ts +17 -0
- package/src/gas/gas.ts +14 -0
- package/src/gas/gas_fees.ts +14 -0
- package/src/gas/gas_settings.ts +19 -0
- package/src/gas/gas_used.ts +22 -1
- package/src/interfaces/configs.ts +3 -0
- package/src/interfaces/validator.ts +4 -0
- package/src/kernel/private_to_avm_accumulated_data.ts +35 -0
- package/src/kernel/public_call_request.ts +27 -0
- package/src/keys/public_keys.ts +19 -0
- package/src/logs/contract_class_log.ts +32 -0
- package/src/logs/debug_log.ts +20 -1
- package/src/logs/private_log.ts +17 -0
- package/src/logs/public_log.ts +14 -0
- package/src/messaging/l2_to_l1_message.ts +25 -0
- package/src/noir/index.ts +1 -2
- package/src/trees/append_only_tree_snapshot.ts +11 -0
- package/src/trees/nullifier_leaf.ts +32 -0
- package/src/trees/public_data_leaf.ts +32 -0
- package/src/tx/execution_payload.ts +60 -0
- package/src/tx/global_variables.ts +20 -0
- package/src/tx/index.ts +1 -0
- package/src/tx/profiling.ts +4 -6
- package/src/tx/protocol_contracts.ts +16 -0
- package/src/tx/public_call_request_with_calldata.ts +17 -0
- package/src/tx/tree_snapshots.ts +16 -0
|
@@ -20,7 +20,7 @@ export declare class StateReference {
|
|
|
20
20
|
partial: PartialStateReference);
|
|
21
21
|
static get schema(): z.ZodEffects<z.ZodObject<{
|
|
22
22
|
l1ToL2MessageTree: z.ZodEffects<z.ZodObject<{
|
|
23
|
-
root: z.
|
|
23
|
+
root: z.ZodType<Fr, any, string>;
|
|
24
24
|
nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
25
25
|
}, "strip", z.ZodTypeAny, {
|
|
26
26
|
root: Fr;
|
|
@@ -34,7 +34,7 @@ export declare class StateReference {
|
|
|
34
34
|
}>;
|
|
35
35
|
partial: z.ZodEffects<z.ZodObject<{
|
|
36
36
|
noteHashTree: z.ZodEffects<z.ZodObject<{
|
|
37
|
-
root: z.
|
|
37
|
+
root: z.ZodType<Fr, any, string>;
|
|
38
38
|
nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
39
39
|
}, "strip", z.ZodTypeAny, {
|
|
40
40
|
root: Fr;
|
|
@@ -47,7 +47,7 @@ export declare class StateReference {
|
|
|
47
47
|
nextAvailableLeafIndex: string | number | bigint;
|
|
48
48
|
}>;
|
|
49
49
|
nullifierTree: z.ZodEffects<z.ZodObject<{
|
|
50
|
-
root: z.
|
|
50
|
+
root: z.ZodType<Fr, any, string>;
|
|
51
51
|
nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
52
52
|
}, "strip", z.ZodTypeAny, {
|
|
53
53
|
root: Fr;
|
|
@@ -60,7 +60,7 @@ export declare class StateReference {
|
|
|
60
60
|
nextAvailableLeafIndex: string | number | bigint;
|
|
61
61
|
}>;
|
|
62
62
|
publicDataTree: z.ZodEffects<z.ZodObject<{
|
|
63
|
-
root: z.
|
|
63
|
+
root: z.ZodType<Fr, any, string>;
|
|
64
64
|
nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
65
65
|
}, "strip", z.ZodTypeAny, {
|
|
66
66
|
root: Fr;
|
|
@@ -14,7 +14,7 @@ export declare class TreeSnapshots {
|
|
|
14
14
|
constructor(l1ToL2MessageTree: AppendOnlyTreeSnapshot, noteHashTree: AppendOnlyTreeSnapshot, nullifierTree: AppendOnlyTreeSnapshot, publicDataTree: AppendOnlyTreeSnapshot);
|
|
15
15
|
static get schema(): z.ZodEffects<z.ZodObject<{
|
|
16
16
|
l1ToL2MessageTree: z.ZodEffects<z.ZodObject<{
|
|
17
|
-
root: z.
|
|
17
|
+
root: z.ZodType<Fr, any, string>;
|
|
18
18
|
nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
19
19
|
}, "strip", z.ZodTypeAny, {
|
|
20
20
|
root: Fr;
|
|
@@ -27,7 +27,7 @@ export declare class TreeSnapshots {
|
|
|
27
27
|
nextAvailableLeafIndex: string | number | bigint;
|
|
28
28
|
}>;
|
|
29
29
|
noteHashTree: z.ZodEffects<z.ZodObject<{
|
|
30
|
-
root: z.
|
|
30
|
+
root: z.ZodType<Fr, any, string>;
|
|
31
31
|
nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
32
32
|
}, "strip", z.ZodTypeAny, {
|
|
33
33
|
root: Fr;
|
|
@@ -40,7 +40,7 @@ export declare class TreeSnapshots {
|
|
|
40
40
|
nextAvailableLeafIndex: string | number | bigint;
|
|
41
41
|
}>;
|
|
42
42
|
nullifierTree: z.ZodEffects<z.ZodObject<{
|
|
43
|
-
root: z.
|
|
43
|
+
root: z.ZodType<Fr, any, string>;
|
|
44
44
|
nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
45
45
|
}, "strip", z.ZodTypeAny, {
|
|
46
46
|
root: Fr;
|
|
@@ -53,7 +53,7 @@ export declare class TreeSnapshots {
|
|
|
53
53
|
nextAvailableLeafIndex: string | number | bigint;
|
|
54
54
|
}>;
|
|
55
55
|
publicDataTree: z.ZodEffects<z.ZodObject<{
|
|
56
|
-
root: z.
|
|
56
|
+
root: z.ZodType<Fr, any, string>;
|
|
57
57
|
nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
58
58
|
}, "strip", z.ZodTypeAny, {
|
|
59
59
|
root: Fr;
|
|
@@ -111,6 +111,14 @@ export declare class TreeSnapshots {
|
|
|
111
111
|
static fromFields(fields: Fr[] | FieldReader): TreeSnapshots;
|
|
112
112
|
toFields(): Fr[];
|
|
113
113
|
static empty(): TreeSnapshots;
|
|
114
|
+
/**
|
|
115
|
+
* Creates a TreeSnapshots instance from a plain object without Zod validation.
|
|
116
|
+
* This method is optimized for performance and skips validation, making it suitable
|
|
117
|
+
* for deserializing trusted data (e.g., from C++ via MessagePack).
|
|
118
|
+
* @param obj - Plain object containing TreeSnapshots fields
|
|
119
|
+
* @returns A TreeSnapshots instance
|
|
120
|
+
*/
|
|
121
|
+
static fromPlainObject(obj: any): TreeSnapshots;
|
|
114
122
|
isEmpty(): boolean;
|
|
115
123
|
[inspect.custom](): string;
|
|
116
124
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tree_snapshots.d.ts","sourceRoot":"","sources":["../../src/tx/tree_snapshots.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,WAAW,EAAqB,MAAM,6BAA6B,CAAC;AAE3F,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAE/E;;GAEG;AACH,qBAAa,aAAa;IAEf,iBAAiB,EAAE,sBAAsB;IACzC,YAAY,EAAE,sBAAsB;IACpC,aAAa,EAAE,sBAAsB;IACrC,cAAc,EAAE,sBAAsB;gBAHtC,iBAAiB,EAAE,sBAAsB,EACzC,YAAY,EAAE,sBAAsB,EACpC,aAAa,EAAE,sBAAsB,EACrC,cAAc,EAAE,sBAAsB;IAG/C,MAAM,KAAK,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAYhB;IAED,OAAO;IASP,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,YAAY,GAAG,aAAa;IAU/D,QAAQ;IAKR,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,EAAE,EAAE,GAAG,WAAW;IAW5C,QAAQ,IAAI,EAAE,EAAE;IAehB,MAAM,CAAC,KAAK,IAAI,aAAa;IAS7B,OAAO,IAAI,OAAO;IASlB,CAAC,OAAO,CAAC,MAAM,CAAC;CAQjB"}
|
|
1
|
+
{"version":3,"file":"tree_snapshots.d.ts","sourceRoot":"","sources":["../../src/tx/tree_snapshots.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,WAAW,EAAqB,MAAM,6BAA6B,CAAC;AAE3F,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAE/E;;GAEG;AACH,qBAAa,aAAa;IAEf,iBAAiB,EAAE,sBAAsB;IACzC,YAAY,EAAE,sBAAsB;IACpC,aAAa,EAAE,sBAAsB;IACrC,cAAc,EAAE,sBAAsB;gBAHtC,iBAAiB,EAAE,sBAAsB,EACzC,YAAY,EAAE,sBAAsB,EACpC,aAAa,EAAE,sBAAsB,EACrC,cAAc,EAAE,sBAAsB;IAG/C,MAAM,KAAK,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAYhB;IAED,OAAO;IASP,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,YAAY,GAAG,aAAa;IAU/D,QAAQ;IAKR,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,EAAE,EAAE,GAAG,WAAW;IAW5C,QAAQ,IAAI,EAAE,EAAE;IAehB,MAAM,CAAC,KAAK,IAAI,aAAa;IAS7B;;;;;;OAMG;IACH,MAAM,CAAC,eAAe,CAAC,GAAG,EAAE,GAAG,GAAG,aAAa;IAS/C,OAAO,IAAI,OAAO;IASlB,CAAC,OAAO,CAAC,MAAM,CAAC;CAQjB"}
|
|
@@ -58,6 +58,15 @@ import { AppendOnlyTreeSnapshot } from '../trees/append_only_tree_snapshot.js';
|
|
|
58
58
|
static empty() {
|
|
59
59
|
return new TreeSnapshots(AppendOnlyTreeSnapshot.empty(), AppendOnlyTreeSnapshot.empty(), AppendOnlyTreeSnapshot.empty(), AppendOnlyTreeSnapshot.empty());
|
|
60
60
|
}
|
|
61
|
+
/**
|
|
62
|
+
* Creates a TreeSnapshots instance from a plain object without Zod validation.
|
|
63
|
+
* This method is optimized for performance and skips validation, making it suitable
|
|
64
|
+
* for deserializing trusted data (e.g., from C++ via MessagePack).
|
|
65
|
+
* @param obj - Plain object containing TreeSnapshots fields
|
|
66
|
+
* @returns A TreeSnapshots instance
|
|
67
|
+
*/ static fromPlainObject(obj) {
|
|
68
|
+
return new TreeSnapshots(AppendOnlyTreeSnapshot.fromPlainObject(obj.l1ToL2MessageTree), AppendOnlyTreeSnapshot.fromPlainObject(obj.noteHashTree), AppendOnlyTreeSnapshot.fromPlainObject(obj.nullifierTree), AppendOnlyTreeSnapshot.fromPlainObject(obj.publicDataTree));
|
|
69
|
+
}
|
|
61
70
|
isEmpty() {
|
|
62
71
|
return this.l1ToL2MessageTree.isEmpty() && this.noteHashTree.isEmpty() && this.nullifierTree.isEmpty() && this.publicDataTree.isEmpty();
|
|
63
72
|
}
|
package/dest/tx/tx_context.d.ts
CHANGED
|
@@ -19,8 +19,8 @@ export declare class TxContext {
|
|
|
19
19
|
/** Gas limits for this transaction. */
|
|
20
20
|
gasSettings: GasSettings);
|
|
21
21
|
static get schema(): z.ZodEffects<z.ZodObject<{
|
|
22
|
-
chainId: z.
|
|
23
|
-
version: z.
|
|
22
|
+
chainId: z.ZodType<Fr, any, string>;
|
|
23
|
+
version: z.ZodType<Fr, any, string>;
|
|
24
24
|
gasSettings: z.ZodEffects<z.ZodObject<{
|
|
25
25
|
gasLimits: z.ZodEffects<z.ZodObject<{
|
|
26
26
|
daGas: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
@@ -31,7 +31,7 @@ export declare const ValidatorStatusHistorySchemaMap: z.ZodRecord<z.ZodString, z
|
|
|
31
31
|
slot: string | number | bigint;
|
|
32
32
|
}>, "many">, "many">>;
|
|
33
33
|
export declare const ValidatorStatsSchema: z.ZodObject<{
|
|
34
|
-
address: z.
|
|
34
|
+
address: z.ZodType<import("@aztec/foundation/schemas").EthAddress, any, string>;
|
|
35
35
|
lastProposal: z.ZodOptional<z.ZodObject<{
|
|
36
36
|
timestamp: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
|
|
37
37
|
slot: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
|
|
@@ -162,7 +162,7 @@ export declare const ValidatorStatsSchema: z.ZodObject<{
|
|
|
162
162
|
}>;
|
|
163
163
|
export declare const ValidatorsStatsSchema: z.ZodObject<{
|
|
164
164
|
stats: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
165
|
-
address: z.
|
|
165
|
+
address: z.ZodType<import("@aztec/foundation/schemas").EthAddress, any, string>;
|
|
166
166
|
lastProposal: z.ZodOptional<z.ZodObject<{
|
|
167
167
|
timestamp: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
|
|
168
168
|
slot: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
|
|
@@ -365,7 +365,7 @@ export declare const ValidatorsStatsSchema: z.ZodObject<{
|
|
|
365
365
|
}>;
|
|
366
366
|
export declare const SingleValidatorStatsSchema: z.ZodObject<{
|
|
367
367
|
validator: z.ZodObject<{
|
|
368
|
-
address: z.
|
|
368
|
+
address: z.ZodType<import("@aztec/foundation/schemas").EthAddress, any, string>;
|
|
369
369
|
lastProposal: z.ZodOptional<z.ZodObject<{
|
|
370
370
|
timestamp: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
|
|
371
371
|
slot: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
|
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.20251114",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"inherits": [
|
|
6
6
|
"../package.common.json",
|
|
@@ -72,13 +72,13 @@
|
|
|
72
72
|
},
|
|
73
73
|
"dependencies": {
|
|
74
74
|
"@aws-sdk/client-s3": "^3.892.0",
|
|
75
|
-
"@aztec/bb.js": "3.0.0-nightly.
|
|
76
|
-
"@aztec/blob-lib": "3.0.0-nightly.
|
|
77
|
-
"@aztec/constants": "3.0.0-nightly.
|
|
78
|
-
"@aztec/ethereum": "3.0.0-nightly.
|
|
79
|
-
"@aztec/foundation": "3.0.0-nightly.
|
|
80
|
-
"@aztec/l1-artifacts": "3.0.0-nightly.
|
|
81
|
-
"@aztec/noir-noirc_abi": "3.0.0-nightly.
|
|
75
|
+
"@aztec/bb.js": "3.0.0-nightly.20251114",
|
|
76
|
+
"@aztec/blob-lib": "3.0.0-nightly.20251114",
|
|
77
|
+
"@aztec/constants": "3.0.0-nightly.20251114",
|
|
78
|
+
"@aztec/ethereum": "3.0.0-nightly.20251114",
|
|
79
|
+
"@aztec/foundation": "3.0.0-nightly.20251114",
|
|
80
|
+
"@aztec/l1-artifacts": "3.0.0-nightly.20251114",
|
|
81
|
+
"@aztec/noir-noirc_abi": "3.0.0-nightly.20251114",
|
|
82
82
|
"@google-cloud/storage": "^7.15.0",
|
|
83
83
|
"axios": "^1.12.0",
|
|
84
84
|
"json-stringify-deterministic": "1.0.12",
|
package/src/abi/abi.ts
CHANGED
|
@@ -173,8 +173,8 @@ export interface FunctionAbi {
|
|
|
173
173
|
name: string;
|
|
174
174
|
/** Whether the function is secret. */
|
|
175
175
|
functionType: FunctionType;
|
|
176
|
-
/** Whether the function is
|
|
177
|
-
|
|
176
|
+
/** Whether the function is marked as `#[only_self]` and hence callable only from within the contract. */
|
|
177
|
+
isOnlySelf: boolean;
|
|
178
178
|
/** Whether the function can alter state or not */
|
|
179
179
|
isStatic: boolean;
|
|
180
180
|
/** Function parameters. */
|
|
@@ -190,7 +190,7 @@ export interface FunctionAbi {
|
|
|
190
190
|
export const FunctionAbiSchema = z.object({
|
|
191
191
|
name: z.string(),
|
|
192
192
|
functionType: z.nativeEnum(FunctionType),
|
|
193
|
-
|
|
193
|
+
isOnlySelf: z.boolean(),
|
|
194
194
|
isStatic: z.boolean(),
|
|
195
195
|
isInitializer: z.boolean(),
|
|
196
196
|
parameters: z.array(z.object({ name: z.string(), type: AbiTypeSchema, visibility: z.enum(ABIParameterVisibility) })),
|
|
@@ -501,7 +501,7 @@ export function emptyFunctionAbi(): FunctionAbi {
|
|
|
501
501
|
return {
|
|
502
502
|
name: '',
|
|
503
503
|
functionType: FunctionType.PRIVATE,
|
|
504
|
-
|
|
504
|
+
isOnlySelf: false,
|
|
505
505
|
isStatic: false,
|
|
506
506
|
parameters: [],
|
|
507
507
|
returnTypes: [],
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from '../abi/index.js';
|
|
18
18
|
import {
|
|
19
19
|
AZTEC_INITIALIZER_ATTRIBUTE,
|
|
20
|
-
|
|
20
|
+
AZTEC_ONLY_SELF_ATTRIBUTE,
|
|
21
21
|
AZTEC_PRIVATE_ATTRIBUTE,
|
|
22
22
|
AZTEC_PUBLIC_ATTRIBUTE,
|
|
23
23
|
AZTEC_UTILITY_ATTRIBUTE,
|
|
@@ -152,7 +152,7 @@ function generateFunctionAbi(fn: NoirCompiledContractFunction, contract: NoirCom
|
|
|
152
152
|
);
|
|
153
153
|
}
|
|
154
154
|
const functionType = getFunctionType(fn);
|
|
155
|
-
const
|
|
155
|
+
const isOnlySelf = fn.custom_attributes.includes(AZTEC_ONLY_SELF_ATTRIBUTE);
|
|
156
156
|
const isStatic = fn.custom_attributes.includes(AZTEC_VIEW_ATTRIBUTE);
|
|
157
157
|
|
|
158
158
|
// If the function is not a utility function, the first item is inputs or CallContext which we should omit
|
|
@@ -185,7 +185,7 @@ function generateFunctionAbi(fn: NoirCompiledContractFunction, contract: NoirCom
|
|
|
185
185
|
return {
|
|
186
186
|
name: fn.name,
|
|
187
187
|
functionType,
|
|
188
|
-
|
|
188
|
+
isOnlySelf,
|
|
189
189
|
isStatic,
|
|
190
190
|
isInitializer: fn.custom_attributes.includes(AZTEC_INITIALIZER_ATTRIBUTE),
|
|
191
191
|
parameters,
|