@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.
Files changed (166) hide show
  1. package/dest/abi/abi.d.ts +8 -8
  2. package/dest/abi/abi.d.ts.map +1 -1
  3. package/dest/abi/abi.js +2 -2
  4. package/dest/abi/contract_artifact.js +3 -3
  5. package/dest/avm/avm.d.ts +539 -769
  6. package/dest/avm/avm.d.ts.map +1 -1
  7. package/dest/avm/avm.js +196 -2
  8. package/dest/avm/avm_accumulated_data.d.ts +22 -6
  9. package/dest/avm/avm_accumulated_data.d.ts.map +1 -1
  10. package/dest/avm/avm_accumulated_data.js +18 -0
  11. package/dest/avm/avm_circuit_public_inputs.d.ts +35 -27
  12. package/dest/avm/avm_circuit_public_inputs.d.ts.map +1 -1
  13. package/dest/avm/avm_circuit_public_inputs.js +9 -0
  14. package/dest/avm/avm_proving_request.d.ts +134 -290
  15. package/dest/avm/avm_proving_request.d.ts.map +1 -1
  16. package/dest/avm/public_data_write.d.ts +10 -2
  17. package/dest/avm/public_data_write.d.ts.map +1 -1
  18. package/dest/avm/public_data_write.js +9 -0
  19. package/dest/avm/revert_code.d.ts +8 -0
  20. package/dest/avm/revert_code.d.ts.map +1 -1
  21. package/dest/avm/revert_code.js +16 -0
  22. package/dest/aztec-address/index.d.ts +9 -0
  23. package/dest/aztec-address/index.d.ts.map +1 -1
  24. package/dest/aztec-address/index.js +16 -0
  25. package/dest/block/l2_block.d.ts +1 -1
  26. package/dest/block/l2_block_info.d.ts +3 -3
  27. package/dest/block/proposal/attestations_and_signers.d.ts +1 -1
  28. package/dest/block/proposal/committee_attestation.d.ts +1 -1
  29. package/dest/block/published_l2_block.d.ts +2 -2
  30. package/dest/block/validate_block_result.d.ts +12 -12
  31. package/dest/contract/contract_deployment_data.d.ts +10 -2
  32. package/dest/contract/contract_deployment_data.d.ts.map +1 -1
  33. package/dest/contract/contract_deployment_data.js +12 -0
  34. package/dest/contract/interfaces/contract_class.d.ts +19 -19
  35. package/dest/contract/interfaces/contract_instance.d.ts +32 -200
  36. package/dest/contract/interfaces/contract_instance.d.ts.map +1 -1
  37. package/dest/database-version/version_manager.d.ts +1 -1
  38. package/dest/gas/gas.d.ts +8 -0
  39. package/dest/gas/gas.d.ts.map +1 -1
  40. package/dest/gas/gas.js +12 -0
  41. package/dest/gas/gas_fees.d.ts +8 -0
  42. package/dest/gas/gas_fees.d.ts.map +1 -1
  43. package/dest/gas/gas_fees.js +12 -0
  44. package/dest/gas/gas_settings.d.ts +8 -0
  45. package/dest/gas/gas_settings.d.ts.map +1 -1
  46. package/dest/gas/gas_settings.js +12 -0
  47. package/dest/gas/gas_used.d.ts +12 -1
  48. package/dest/gas/gas_used.d.ts.map +1 -1
  49. package/dest/gas/gas_used.js +19 -1
  50. package/dest/interfaces/aztec-node-admin.d.ts +8 -5
  51. package/dest/interfaces/aztec-node-admin.d.ts.map +1 -1
  52. package/dest/interfaces/configs.d.ts +5 -0
  53. package/dest/interfaces/configs.d.ts.map +1 -1
  54. package/dest/interfaces/configs.js +1 -0
  55. package/dest/interfaces/proving-job.d.ts +162 -318
  56. package/dest/interfaces/proving-job.d.ts.map +1 -1
  57. package/dest/interfaces/slasher.d.ts +3 -3
  58. package/dest/interfaces/validator.d.ts +12 -4
  59. package/dest/interfaces/validator.d.ts.map +1 -1
  60. package/dest/interfaces/validator.js +2 -1
  61. package/dest/kernel/private_to_avm_accumulated_data.d.ts +20 -4
  62. package/dest/kernel/private_to_avm_accumulated_data.d.ts.map +1 -1
  63. package/dest/kernel/private_to_avm_accumulated_data.js +18 -0
  64. package/dest/kernel/public_call_request.d.ts +17 -1
  65. package/dest/kernel/public_call_request.d.ts.map +1 -1
  66. package/dest/kernel/public_call_request.js +18 -0
  67. package/dest/keys/public_keys.d.ts +20 -84
  68. package/dest/keys/public_keys.d.ts.map +1 -1
  69. package/dest/keys/public_keys.js +12 -0
  70. package/dest/logs/contract_class_log.d.ts +18 -2
  71. package/dest/logs/contract_class_log.d.ts.map +1 -1
  72. package/dest/logs/contract_class_log.js +24 -0
  73. package/dest/logs/debug_log.d.ts +9 -1
  74. package/dest/logs/debug_log.d.ts.map +1 -1
  75. package/dest/logs/debug_log.js +13 -0
  76. package/dest/logs/directional_app_tagging_secret.d.ts +1 -1
  77. package/dest/logs/pre_tag.d.ts +1 -1
  78. package/dest/logs/private_log.d.ts +9 -1
  79. package/dest/logs/private_log.d.ts.map +1 -1
  80. package/dest/logs/private_log.js +12 -0
  81. package/dest/logs/public_log.d.ts +8 -0
  82. package/dest/logs/public_log.d.ts.map +1 -1
  83. package/dest/logs/public_log.js +9 -0
  84. package/dest/logs/tx_scoped_l2_log.d.ts +1 -1
  85. package/dest/messaging/l2_to_l1_message.d.ts +24 -8
  86. package/dest/messaging/l2_to_l1_message.d.ts.map +1 -1
  87. package/dest/messaging/l2_to_l1_message.js +18 -0
  88. package/dest/noir/index.d.ts +1 -1
  89. package/dest/noir/index.d.ts.map +1 -1
  90. package/dest/noir/index.js +1 -2
  91. package/dest/p2p/consensus_payload.d.ts +5 -5
  92. package/dest/snapshots/types.d.ts +2 -2
  93. package/dest/trees/append_only_tree_snapshot.d.ts +9 -1
  94. package/dest/trees/append_only_tree_snapshot.d.ts.map +1 -1
  95. package/dest/trees/append_only_tree_snapshot.js +9 -0
  96. package/dest/trees/nullifier_leaf.d.ts +20 -4
  97. package/dest/trees/nullifier_leaf.d.ts.map +1 -1
  98. package/dest/trees/nullifier_leaf.js +24 -0
  99. package/dest/trees/nullifier_membership_witness.d.ts +2 -2
  100. package/dest/trees/public_data_leaf.d.ts +23 -7
  101. package/dest/trees/public_data_leaf.d.ts.map +1 -1
  102. package/dest/trees/public_data_leaf.js +24 -0
  103. package/dest/trees/public_data_witness.d.ts +3 -3
  104. package/dest/tx/content_commitment.d.ts +3 -3
  105. package/dest/tx/execution_payload.d.ts +45 -0
  106. package/dest/tx/execution_payload.d.ts.map +1 -0
  107. package/dest/tx/execution_payload.js +40 -0
  108. package/dest/tx/global_variables.d.ts +8 -0
  109. package/dest/tx/global_variables.d.ts.map +1 -1
  110. package/dest/tx/global_variables.js +9 -0
  111. package/dest/tx/index.d.ts +1 -0
  112. package/dest/tx/index.d.ts.map +1 -1
  113. package/dest/tx/index.js +1 -0
  114. package/dest/tx/partial_state_reference.d.ts +3 -3
  115. package/dest/tx/profiling.d.ts +3 -3
  116. package/dest/tx/profiling.d.ts.map +1 -1
  117. package/dest/tx/profiling.js +5 -4
  118. package/dest/tx/protocol_contracts.d.ts +8 -0
  119. package/dest/tx/protocol_contracts.d.ts.map +1 -1
  120. package/dest/tx/protocol_contracts.js +9 -0
  121. package/dest/tx/public_call_request_with_calldata.d.ts +8 -0
  122. package/dest/tx/public_call_request_with_calldata.d.ts.map +1 -1
  123. package/dest/tx/public_call_request_with_calldata.js +12 -0
  124. package/dest/tx/simulated_tx.d.ts +28 -148
  125. package/dest/tx/simulated_tx.d.ts.map +1 -1
  126. package/dest/tx/state_reference.d.ts +4 -4
  127. package/dest/tx/tree_snapshots.d.ts +12 -4
  128. package/dest/tx/tree_snapshots.d.ts.map +1 -1
  129. package/dest/tx/tree_snapshots.js +9 -0
  130. package/dest/tx/tx_context.d.ts +2 -2
  131. package/dest/validators/schemas.d.ts +3 -3
  132. package/package.json +8 -8
  133. package/src/abi/abi.ts +4 -4
  134. package/src/abi/contract_artifact.ts +3 -3
  135. package/src/avm/avm.ts +350 -3
  136. package/src/avm/avm_accumulated_data.ts +40 -0
  137. package/src/avm/avm_circuit_public_inputs.ts +40 -0
  138. package/src/avm/public_data_write.ts +11 -0
  139. package/src/avm/revert_code.ts +18 -0
  140. package/src/aztec-address/index.ts +18 -0
  141. package/src/contract/contract_deployment_data.ts +17 -0
  142. package/src/gas/gas.ts +14 -0
  143. package/src/gas/gas_fees.ts +14 -0
  144. package/src/gas/gas_settings.ts +19 -0
  145. package/src/gas/gas_used.ts +22 -1
  146. package/src/interfaces/configs.ts +3 -0
  147. package/src/interfaces/validator.ts +4 -0
  148. package/src/kernel/private_to_avm_accumulated_data.ts +35 -0
  149. package/src/kernel/public_call_request.ts +27 -0
  150. package/src/keys/public_keys.ts +19 -0
  151. package/src/logs/contract_class_log.ts +32 -0
  152. package/src/logs/debug_log.ts +20 -1
  153. package/src/logs/private_log.ts +17 -0
  154. package/src/logs/public_log.ts +14 -0
  155. package/src/messaging/l2_to_l1_message.ts +25 -0
  156. package/src/noir/index.ts +1 -2
  157. package/src/trees/append_only_tree_snapshot.ts +11 -0
  158. package/src/trees/nullifier_leaf.ts +32 -0
  159. package/src/trees/public_data_leaf.ts +32 -0
  160. package/src/tx/execution_payload.ts +60 -0
  161. package/src/tx/global_variables.ts +20 -0
  162. package/src/tx/index.ts +1 -0
  163. package/src/tx/profiling.ts +4 -6
  164. package/src/tx/protocol_contracts.ts +16 -0
  165. package/src/tx/public_call_request_with_calldata.ts +17 -0
  166. 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.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
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.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
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.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
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.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
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.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
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.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
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.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
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.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
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
  }
@@ -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.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
23
- version: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
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.ZodUnion<[z.ZodType<import("@aztec/foundation/schemas").EthAddress, any, string>, z.ZodEffects<z.ZodUnion<[z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, z.ZodType<never, any, string>]>, import("@aztec/foundation/schemas").EthAddress, string>]>;
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.ZodUnion<[z.ZodType<import("@aztec/foundation/schemas").EthAddress, any, string>, z.ZodEffects<z.ZodUnion<[z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, z.ZodType<never, any, string>]>, import("@aztec/foundation/schemas").EthAddress, string>]>;
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.ZodUnion<[z.ZodType<import("@aztec/foundation/schemas").EthAddress, any, string>, z.ZodEffects<z.ZodUnion<[z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, z.ZodType<never, any, string>]>, import("@aztec/foundation/schemas").EthAddress, string>]>;
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.20251112",
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.20251112",
76
- "@aztec/blob-lib": "3.0.0-nightly.20251112",
77
- "@aztec/constants": "3.0.0-nightly.20251112",
78
- "@aztec/ethereum": "3.0.0-nightly.20251112",
79
- "@aztec/foundation": "3.0.0-nightly.20251112",
80
- "@aztec/l1-artifacts": "3.0.0-nightly.20251112",
81
- "@aztec/noir-noirc_abi": "3.0.0-nightly.20251112",
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 internal. */
177
- isInternal: boolean;
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
- isInternal: z.boolean(),
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
- isInternal: false,
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
- AZTEC_INTERNAL_ATTRIBUTE,
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 isInternal = fn.custom_attributes.includes(AZTEC_INTERNAL_ATTRIBUTE);
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
- isInternal,
188
+ isOnlySelf,
189
189
  isStatic,
190
190
  isInitializer: fn.custom_attributes.includes(AZTEC_INITIALIZER_ATTRIBUTE),
191
191
  parameters,