@aztec/stdlib 3.0.0-nightly.20251111 → 3.0.0-nightly.20251113

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 (176) 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 +780 -1010
  6. package/dest/avm/avm.d.ts.map +1 -1
  7. package/dest/avm/avm.js +209 -15
  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 +308 -464
  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/file-store/http.d.ts.map +1 -1
  39. package/dest/file-store/http.js +8 -3
  40. package/dest/file-store/s3.d.ts.map +1 -1
  41. package/dest/file-store/s3.js +3 -7
  42. package/dest/gas/gas.d.ts +8 -0
  43. package/dest/gas/gas.d.ts.map +1 -1
  44. package/dest/gas/gas.js +12 -0
  45. package/dest/gas/gas_fees.d.ts +8 -0
  46. package/dest/gas/gas_fees.d.ts.map +1 -1
  47. package/dest/gas/gas_fees.js +12 -0
  48. package/dest/gas/gas_settings.d.ts +8 -0
  49. package/dest/gas/gas_settings.d.ts.map +1 -1
  50. package/dest/gas/gas_settings.js +12 -0
  51. package/dest/gas/gas_used.d.ts +12 -1
  52. package/dest/gas/gas_used.d.ts.map +1 -1
  53. package/dest/gas/gas_used.js +19 -1
  54. package/dest/interfaces/aztec-node-admin.d.ts +8 -5
  55. package/dest/interfaces/aztec-node-admin.d.ts.map +1 -1
  56. package/dest/interfaces/configs.d.ts +5 -0
  57. package/dest/interfaces/configs.d.ts.map +1 -1
  58. package/dest/interfaces/configs.js +1 -0
  59. package/dest/interfaces/proving-job.d.ts +336 -492
  60. package/dest/interfaces/proving-job.d.ts.map +1 -1
  61. package/dest/interfaces/slasher.d.ts +3 -3
  62. package/dest/interfaces/validator.d.ts +12 -4
  63. package/dest/interfaces/validator.d.ts.map +1 -1
  64. package/dest/interfaces/validator.js +2 -1
  65. package/dest/kernel/private_to_avm_accumulated_data.d.ts +20 -4
  66. package/dest/kernel/private_to_avm_accumulated_data.d.ts.map +1 -1
  67. package/dest/kernel/private_to_avm_accumulated_data.js +18 -0
  68. package/dest/kernel/public_call_request.d.ts +17 -1
  69. package/dest/kernel/public_call_request.d.ts.map +1 -1
  70. package/dest/kernel/public_call_request.js +18 -0
  71. package/dest/keys/public_keys.d.ts +20 -84
  72. package/dest/keys/public_keys.d.ts.map +1 -1
  73. package/dest/keys/public_keys.js +12 -0
  74. package/dest/logs/contract_class_log.d.ts +18 -2
  75. package/dest/logs/contract_class_log.d.ts.map +1 -1
  76. package/dest/logs/contract_class_log.js +24 -0
  77. package/dest/logs/debug_log.d.ts +9 -1
  78. package/dest/logs/debug_log.d.ts.map +1 -1
  79. package/dest/logs/debug_log.js +13 -0
  80. package/dest/logs/directional_app_tagging_secret.d.ts +1 -1
  81. package/dest/logs/pre_tag.d.ts +1 -1
  82. package/dest/logs/private_log.d.ts +9 -1
  83. package/dest/logs/private_log.d.ts.map +1 -1
  84. package/dest/logs/private_log.js +12 -0
  85. package/dest/logs/public_log.d.ts +8 -0
  86. package/dest/logs/public_log.d.ts.map +1 -1
  87. package/dest/logs/public_log.js +9 -0
  88. package/dest/logs/tx_scoped_l2_log.d.ts +1 -1
  89. package/dest/messaging/l2_to_l1_message.d.ts +24 -8
  90. package/dest/messaging/l2_to_l1_message.d.ts.map +1 -1
  91. package/dest/messaging/l2_to_l1_message.js +18 -0
  92. package/dest/noir/index.d.ts +1 -1
  93. package/dest/noir/index.d.ts.map +1 -1
  94. package/dest/noir/index.js +1 -2
  95. package/dest/p2p/consensus_payload.d.ts +5 -5
  96. package/dest/snapshots/types.d.ts +2 -2
  97. package/dest/tests/factories.d.ts +4 -1
  98. package/dest/tests/factories.d.ts.map +1 -1
  99. package/dest/tests/factories.js +14 -2
  100. package/dest/trees/append_only_tree_snapshot.d.ts +9 -1
  101. package/dest/trees/append_only_tree_snapshot.d.ts.map +1 -1
  102. package/dest/trees/append_only_tree_snapshot.js +9 -0
  103. package/dest/trees/nullifier_leaf.d.ts +20 -4
  104. package/dest/trees/nullifier_leaf.d.ts.map +1 -1
  105. package/dest/trees/nullifier_leaf.js +24 -0
  106. package/dest/trees/nullifier_membership_witness.d.ts +2 -2
  107. package/dest/trees/public_data_leaf.d.ts +23 -7
  108. package/dest/trees/public_data_leaf.d.ts.map +1 -1
  109. package/dest/trees/public_data_leaf.js +24 -0
  110. package/dest/trees/public_data_witness.d.ts +3 -3
  111. package/dest/tx/content_commitment.d.ts +3 -3
  112. package/dest/tx/execution_payload.d.ts +45 -0
  113. package/dest/tx/execution_payload.d.ts.map +1 -0
  114. package/dest/tx/execution_payload.js +40 -0
  115. package/dest/tx/global_variables.d.ts +8 -0
  116. package/dest/tx/global_variables.d.ts.map +1 -1
  117. package/dest/tx/global_variables.js +9 -0
  118. package/dest/tx/index.d.ts +1 -0
  119. package/dest/tx/index.d.ts.map +1 -1
  120. package/dest/tx/index.js +1 -0
  121. package/dest/tx/partial_state_reference.d.ts +3 -3
  122. package/dest/tx/profiling.d.ts +3 -3
  123. package/dest/tx/profiling.d.ts.map +1 -1
  124. package/dest/tx/profiling.js +5 -4
  125. package/dest/tx/protocol_contracts.d.ts +8 -0
  126. package/dest/tx/protocol_contracts.d.ts.map +1 -1
  127. package/dest/tx/protocol_contracts.js +9 -0
  128. package/dest/tx/public_call_request_with_calldata.d.ts +8 -0
  129. package/dest/tx/public_call_request_with_calldata.d.ts.map +1 -1
  130. package/dest/tx/public_call_request_with_calldata.js +12 -0
  131. package/dest/tx/simulated_tx.d.ts +28 -148
  132. package/dest/tx/simulated_tx.d.ts.map +1 -1
  133. package/dest/tx/state_reference.d.ts +4 -4
  134. package/dest/tx/tree_snapshots.d.ts +12 -4
  135. package/dest/tx/tree_snapshots.d.ts.map +1 -1
  136. package/dest/tx/tree_snapshots.js +9 -0
  137. package/dest/tx/tx_context.d.ts +2 -2
  138. package/dest/validators/schemas.d.ts +3 -3
  139. package/package.json +8 -8
  140. package/src/abi/abi.ts +4 -4
  141. package/src/abi/contract_artifact.ts +3 -3
  142. package/src/avm/avm.ts +362 -15
  143. package/src/avm/avm_accumulated_data.ts +40 -0
  144. package/src/avm/avm_circuit_public_inputs.ts +40 -0
  145. package/src/avm/public_data_write.ts +11 -0
  146. package/src/avm/revert_code.ts +18 -0
  147. package/src/aztec-address/index.ts +18 -0
  148. package/src/contract/contract_deployment_data.ts +17 -0
  149. package/src/file-store/http.ts +6 -3
  150. package/src/file-store/s3.ts +3 -7
  151. package/src/gas/gas.ts +14 -0
  152. package/src/gas/gas_fees.ts +14 -0
  153. package/src/gas/gas_settings.ts +19 -0
  154. package/src/gas/gas_used.ts +22 -1
  155. package/src/interfaces/configs.ts +3 -0
  156. package/src/interfaces/validator.ts +4 -0
  157. package/src/kernel/private_to_avm_accumulated_data.ts +35 -0
  158. package/src/kernel/public_call_request.ts +27 -0
  159. package/src/keys/public_keys.ts +19 -0
  160. package/src/logs/contract_class_log.ts +32 -0
  161. package/src/logs/debug_log.ts +20 -1
  162. package/src/logs/private_log.ts +17 -0
  163. package/src/logs/public_log.ts +14 -0
  164. package/src/messaging/l2_to_l1_message.ts +25 -0
  165. package/src/noir/index.ts +1 -2
  166. package/src/tests/factories.ts +45 -0
  167. package/src/trees/append_only_tree_snapshot.ts +11 -0
  168. package/src/trees/nullifier_leaf.ts +32 -0
  169. package/src/trees/public_data_leaf.ts +32 -0
  170. package/src/tx/execution_payload.ts +60 -0
  171. package/src/tx/global_variables.ts +20 -0
  172. package/src/tx/index.ts +1 -0
  173. package/src/tx/profiling.ts +4 -6
  174. package/src/tx/protocol_contracts.ts +16 -0
  175. package/src/tx/public_call_request_with_calldata.ts +17 -0
  176. package/src/tx/tree_snapshots.ts +16 -0
@@ -1 +1 @@
1
- {"version":3,"file":"avm_proving_request.d.ts","sourceRoot":"","sources":["../../src/avm/avm_proving_request.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE5C,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,eAAO,MA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGlC,CAAC"}
@@ -25,8 +25,8 @@ export declare class PublicDataWrite {
25
25
  */
26
26
  value: Fr);
27
27
  static get schema(): z.ZodEffects<z.ZodObject<{
28
- leafSlot: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
29
- value: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
28
+ leafSlot: z.ZodType<Fr, any, string>;
29
+ value: z.ZodType<Fr, any, string>;
30
30
  }, "strip", z.ZodTypeAny, {
31
31
  value: Fr;
32
32
  leafSlot: Fr;
@@ -48,6 +48,14 @@ export declare class PublicDataWrite {
48
48
  static fromString(str: string): PublicDataWrite;
49
49
  toString(): `0x${string}`;
50
50
  static empty(): PublicDataWrite;
51
+ /**
52
+ * Creates a PublicDataWrite instance from a plain object without Zod validation.
53
+ * This method is optimized for performance and skips validation, making it suitable
54
+ * for deserializing trusted data (e.g., from C++ via MessagePack).
55
+ * @param obj - Plain object containing PublicDataWrite fields
56
+ * @returns A PublicDataWrite instance
57
+ */
58
+ static fromPlainObject(obj: any): PublicDataWrite;
51
59
  static random(): PublicDataWrite;
52
60
  static isEmpty(data: PublicDataWrite): boolean;
53
61
  isEmpty(): boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"public_data_write.d.ts","sourceRoot":"","sources":["../../src/avm/public_data_write.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAE9C,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r.ZERO, Fr.ZERO);
72
72
  }
73
+ /**
74
+ * Creates a PublicDataWrite instance from a plain object without Zod validation.
75
+ * This method is optimized for performance and skips validation, making it suitable
76
+ * for deserializing trusted data (e.g., from C++ via MessagePack).
77
+ * @param obj - Plain object containing PublicDataWrite fields
78
+ * @returns A PublicDataWrite instance
79
+ */ static fromPlainObject(obj) {
80
+ return new PublicDataWrite(Fr.fromPlainObject(obj.leafSlot), Fr.fromPlainObject(obj.value));
81
+ }
73
82
  static random() {
74
83
  return new PublicDataWrite(Fr.random(), Fr.random());
75
84
  }
@@ -24,6 +24,14 @@ export declare class RevertCode {
24
24
  getDescription(): string;
25
25
  toJSON(): number;
26
26
  static get schema(): ZodFor<RevertCode>;
27
+ /**
28
+ * Creates a RevertCode from a plain object without Zod validation.
29
+ * This method is optimized for performance and skips validation, making it suitable
30
+ * for deserializing trusted data (e.g., from C++ via MessagePack).
31
+ * @param obj - Plain object, number, or RevertCode instance
32
+ * @returns A RevertCode instance
33
+ */
34
+ static fromPlainObject(obj: any): RevertCode;
27
35
  /**
28
36
  * Having different serialization methods allows for
29
37
  * decoupling the serialization for producing the content commitment hash
@@ -1 +1 @@
1
- {"version":3,"file":"revert_code.d.ts","sourceRoot":"","sources":["../../src/avm/revert_code.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAC9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAExE,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAG/B,oBAAY,cAAc;IACxB,EAAE,IAAI;IACN,kBAAkB,IAAI;IACtB,iBAAiB,IAAI;IACrB,aAAa,IAAI;CAClB;AAWD;;GAEG;AACH,qBAAa,UAAU;IACrB,OAAO,CAAC,IAAI,CAAS;IACrB,OAAO;IAGP,MAAM,CAAC,QAAQ,CAAC,EAAE,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RevertCodeEnum(value) {
53
53
  return z.nativeEnum(RevertCodeEnum).transform((value)=>new RevertCode(value));
54
54
  }
55
55
  /**
56
+ * Creates a RevertCode from a plain object without Zod validation.
57
+ * This method is optimized for performance and skips validation, making it suitable
58
+ * for deserializing trusted data (e.g., from C++ via MessagePack).
59
+ * @param obj - Plain object, number, or RevertCode instance
60
+ * @returns A RevertCode instance
61
+ */ static fromPlainObject(obj) {
62
+ if (obj instanceof RevertCode) {
63
+ return obj;
64
+ }
65
+ const code = typeof obj === 'number' ? obj : obj.code ?? obj;
66
+ if (!isRevertCodeEnum(code)) {
67
+ throw new Error(`Invalid RevertCode: ${code}`);
68
+ }
69
+ return new RevertCode(code);
70
+ }
71
+ /**
56
72
  * Having different serialization methods allows for
57
73
  * decoupling the serialization for producing the content commitment hash
58
74
  * (where we use fields)
@@ -30,6 +30,15 @@ export declare class AztecAddress {
30
30
  static fromBigInt(value: bigint): AztecAddress;
31
31
  static fromNumber(value: number): AztecAddress;
32
32
  static fromString(buf: string): AztecAddress;
33
+ /**
34
+ * Creates an AztecAddress from a plain object without Zod validation.
35
+ * This method is optimized for performance and skips validation, making it suitable
36
+ * for deserializing trusted data (e.g., from C++ via MessagePack).
37
+ * Handles buffers, strings, or existing instances.
38
+ * @param obj - Plain object, buffer, string, or AztecAddress instance
39
+ * @returns An AztecAddress instance
40
+ */
41
+ static fromPlainObject(obj: any): AztecAddress;
33
42
  /**
34
43
  * @returns a random valid address (i.e. one that can be encrypted to).
35
44
  */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/aztec-address/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,KAAK,EAAc,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAE,KAAK,MAAM,EAAiC,MAAM,2BAA2B,CAAC;AACvF,OAAO,EAAE,KAAK,YAAY,EAAE,WAAW,EAAgB,MAAM,6BAA6B,CAAC;AAG3F,OAAO,EAAE,OAAO,EAAE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@@ import { z } from 'zod';
51
51
  return new AztecAddress(hexToBuffer(buf));
52
52
  }
53
53
  /**
54
+ * Creates an AztecAddress from a plain object without Zod validation.
55
+ * This method is optimized for performance and skips validation, making it suitable
56
+ * for deserializing trusted data (e.g., from C++ via MessagePack).
57
+ * Handles buffers, strings, or existing instances.
58
+ * @param obj - Plain object, buffer, string, or AztecAddress instance
59
+ * @returns An AztecAddress instance
60
+ */ static fromPlainObject(obj) {
61
+ if (obj instanceof AztecAddress) {
62
+ return obj;
63
+ }
64
+ if (obj instanceof Buffer || Buffer.isBuffer(obj)) {
65
+ return new AztecAddress(obj);
66
+ }
67
+ return AztecAddress.fromString(obj);
68
+ }
69
+ /**
54
70
  * @returns a random valid address (i.e. one that can be encrypted to).
55
71
  */ static async random() {
56
72
  // About half of random field elements result in invalid addresses, so we loop until we get a valid one.
@@ -26,7 +26,7 @@ export declare class L2Block {
26
26
  body: Body, blockHash?: Fr | undefined);
27
27
  static get schema(): z.ZodEffects<z.ZodObject<{
28
28
  archive: z.ZodEffects<z.ZodObject<{
29
- root: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
29
+ root: z.ZodType<Fr, any, string>;
30
30
  nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
31
31
  }, "strip", z.ZodTypeAny, {
32
32
  root: Fr;
@@ -12,9 +12,9 @@ export type L2BlockInfo = {
12
12
  };
13
13
  export declare function randomBlockInfo(blockNumber?: number): L2BlockInfo;
14
14
  export declare const BlockInfoSchema: z.ZodObject<{
15
- blockHash: z.ZodOptional<z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>>;
16
- archive: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
17
- lastArchive: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
15
+ blockHash: z.ZodOptional<z.ZodType<Fr, any, string>>;
16
+ archive: z.ZodType<Fr, any, string>;
17
+ lastArchive: z.ZodType<Fr, any, string>;
18
18
  blockNumber: z.ZodNumber;
19
19
  slotNumber: z.ZodNumber;
20
20
  txCount: z.ZodNumber;
@@ -7,7 +7,7 @@ export declare class CommitteeAttestationsAndSigners implements Signable {
7
7
  constructor(attestations: CommitteeAttestation[]);
8
8
  static get schema(): z.ZodEffects<z.ZodObject<{
9
9
  attestations: z.ZodArray<z.ZodEffects<z.ZodObject<{
10
- address: z.ZodUnion<[z.ZodType<EthAddress, any, string>, z.ZodEffects<z.ZodUnion<[z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, z.ZodType<never, any, string>]>, EthAddress, string>]>;
10
+ address: z.ZodType<EthAddress, any, string>;
11
11
  signature: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, `0x${string}`, string>, import("./committee_attestation.js").Signature, string>;
12
12
  }, "strip", z.ZodTypeAny, {
13
13
  address: EthAddress;
@@ -9,7 +9,7 @@ export declare class CommitteeAttestation {
9
9
  readonly signature: Signature;
10
10
  constructor(address: EthAddress, signature: Signature);
11
11
  static get schema(): z.ZodEffects<z.ZodObject<{
12
- address: z.ZodUnion<[z.ZodType<EthAddress, any, string>, z.ZodEffects<z.ZodUnion<[z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, z.ZodType<never, any, string>]>, EthAddress, string>]>;
12
+ address: z.ZodType<EthAddress, any, string>;
13
13
  signature: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, `0x${string}`, string>, Signature, string>;
14
14
  }, "strip", z.ZodTypeAny, {
15
15
  address: EthAddress;
@@ -32,7 +32,7 @@ export declare class PublishedL2Block {
32
32
  static get schema(): z.ZodEffects<z.ZodObject<{
33
33
  block: z.ZodEffects<z.ZodObject<{
34
34
  archive: z.ZodEffects<z.ZodObject<{
35
- root: z.ZodUnion<[z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, z.ZodType<never, any, string>]>;
35
+ root: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
36
36
  nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
37
37
  }, "strip", z.ZodTypeAny, {
38
38
  root: import("@aztec/foundation/schemas").Fr;
@@ -79,7 +79,7 @@ export declare class PublishedL2Block {
79
79
  blockHash: string;
80
80
  }>;
81
81
  attestations: z.ZodArray<z.ZodEffects<z.ZodObject<{
82
- 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>]>;
82
+ address: z.ZodType<import("@aztec/foundation/schemas").EthAddress, any, string>;
83
83
  signature: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, `0x${string}`, string>, import("./proposal/committee_attestation.js").Signature, string>;
84
84
  }, "strip", z.ZodTypeAny, {
85
85
  address: import("@aztec/foundation/schemas").EthAddress;
@@ -52,9 +52,9 @@ export declare const ValidateBlockResultSchema: z.ZodUnion<[z.ZodObject<{
52
52
  }>, z.ZodObject<{
53
53
  valid: z.ZodLiteral<false>;
54
54
  block: z.ZodObject<{
55
- blockHash: z.ZodOptional<z.ZodUnion<[z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, z.ZodType<never, any, string>]>>;
56
- archive: z.ZodUnion<[z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, z.ZodType<never, any, string>]>;
57
- lastArchive: z.ZodUnion<[z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, z.ZodType<never, any, string>]>;
55
+ blockHash: z.ZodOptional<z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>>;
56
+ archive: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
57
+ lastArchive: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
58
58
  blockNumber: z.ZodNumber;
59
59
  slotNumber: z.ZodNumber;
60
60
  txCount: z.ZodNumber;
@@ -76,12 +76,12 @@ export declare const ValidateBlockResultSchema: z.ZodUnion<[z.ZodObject<{
76
76
  txCount: number;
77
77
  blockHash?: string | undefined;
78
78
  }>;
79
- committee: z.ZodArray<z.ZodUnion<[z.ZodType<EthAddress, any, string>, z.ZodEffects<z.ZodUnion<[z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, z.ZodType<never, any, string>]>, EthAddress, string>]>, "many">;
79
+ committee: z.ZodArray<z.ZodType<EthAddress, any, string>, "many">;
80
80
  epoch: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
81
81
  seed: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
82
- attestors: z.ZodArray<z.ZodUnion<[z.ZodType<EthAddress, any, string>, z.ZodEffects<z.ZodUnion<[z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, z.ZodType<never, any, string>]>, EthAddress, string>]>, "many">;
82
+ attestors: z.ZodArray<z.ZodType<EthAddress, any, string>, "many">;
83
83
  attestations: z.ZodArray<z.ZodEffects<z.ZodObject<{
84
- address: z.ZodUnion<[z.ZodType<EthAddress, any, string>, z.ZodEffects<z.ZodUnion<[z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, z.ZodType<never, any, string>]>, EthAddress, string>]>;
84
+ address: z.ZodType<EthAddress, any, string>;
85
85
  signature: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, `0x${string}`, string>, import("./proposal/committee_attestation.js").Signature, string>;
86
86
  }, "strip", z.ZodTypeAny, {
87
87
  address: EthAddress;
@@ -134,9 +134,9 @@ export declare const ValidateBlockResultSchema: z.ZodUnion<[z.ZodObject<{
134
134
  }>, z.ZodObject<{
135
135
  valid: z.ZodLiteral<false>;
136
136
  block: z.ZodObject<{
137
- blockHash: z.ZodOptional<z.ZodUnion<[z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, z.ZodType<never, any, string>]>>;
138
- archive: z.ZodUnion<[z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, z.ZodType<never, any, string>]>;
139
- lastArchive: z.ZodUnion<[z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, z.ZodType<never, any, string>]>;
137
+ blockHash: z.ZodOptional<z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>>;
138
+ archive: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
139
+ lastArchive: z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>;
140
140
  blockNumber: z.ZodNumber;
141
141
  slotNumber: z.ZodNumber;
142
142
  txCount: z.ZodNumber;
@@ -158,12 +158,12 @@ export declare const ValidateBlockResultSchema: z.ZodUnion<[z.ZodObject<{
158
158
  txCount: number;
159
159
  blockHash?: string | undefined;
160
160
  }>;
161
- committee: z.ZodArray<z.ZodUnion<[z.ZodType<EthAddress, any, string>, z.ZodEffects<z.ZodUnion<[z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, z.ZodType<never, any, string>]>, EthAddress, string>]>, "many">;
161
+ committee: z.ZodArray<z.ZodType<EthAddress, any, string>, "many">;
162
162
  epoch: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
163
163
  seed: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
164
- attestors: z.ZodArray<z.ZodUnion<[z.ZodType<EthAddress, any, string>, z.ZodEffects<z.ZodUnion<[z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, z.ZodType<never, any, string>]>, EthAddress, string>]>, "many">;
164
+ attestors: z.ZodArray<z.ZodType<EthAddress, any, string>, "many">;
165
165
  attestations: z.ZodArray<z.ZodEffects<z.ZodObject<{
166
- address: z.ZodUnion<[z.ZodType<EthAddress, any, string>, z.ZodEffects<z.ZodUnion<[z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, z.ZodType<never, any, string>]>, EthAddress, string>]>;
166
+ address: z.ZodType<EthAddress, any, string>;
167
167
  signature: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, `0x${string}`, string>, import("./proposal/committee_attestation.js").Signature, string>;
168
168
  }, "strip", z.ZodTypeAny, {
169
169
  address: EthAddress;
@@ -20,7 +20,7 @@ export declare class ContractDeploymentData {
20
20
  contractClassLogs: z.ZodArray<z.ZodEffects<z.ZodObject<{
21
21
  contractAddress: import("@aztec/foundation/schemas").ZodFor<import("../aztec-address/index.js").AztecAddress>;
22
22
  fields: z.ZodEffects<z.ZodObject<{
23
- fields: z.ZodEffects<z.ZodArray<z.ZodUnion<[z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, z.ZodType<never, any, string>]>, "many">, import("@aztec/foundation/schemas").Fr[], string[]>;
23
+ fields: z.ZodEffects<z.ZodArray<z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, "many">, import("@aztec/foundation/schemas").Fr[], string[]>;
24
24
  }, "strip", z.ZodTypeAny, {
25
25
  fields: import("@aztec/foundation/schemas").Fr[];
26
26
  }, {
@@ -47,7 +47,7 @@ export declare class ContractDeploymentData {
47
47
  contractAddress?: any;
48
48
  }>, "many">;
49
49
  privateLogs: z.ZodArray<z.ZodEffects<z.ZodObject<{
50
- fields: z.ZodArray<z.ZodUnion<[z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, z.ZodType<never, any, string>]>, "many">;
50
+ fields: z.ZodArray<z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, "many">;
51
51
  emittedLength: z.ZodNumber;
52
52
  }, "strict", z.ZodTypeAny, {
53
53
  fields: import("@aztec/foundation/schemas").Fr[];
@@ -87,6 +87,14 @@ export declare class ContractDeploymentData {
87
87
  contractAddress?: any;
88
88
  }[];
89
89
  }>;
90
+ /**
91
+ * Creates a ContractDeploymentData from a plain object without Zod validation.
92
+ * This method is optimized for performance and skips validation, making it suitable
93
+ * for deserializing trusted data (e.g., from C++ via MessagePack).
94
+ * @param obj - Plain object containing ContractDeploymentData fields
95
+ * @returns A ContractDeploymentData instance
96
+ */
97
+ static fromPlainObject(obj: any): ContractDeploymentData;
90
98
  }
91
99
  /**
92
100
  * Class containing both revertible and non-revertible registration/deployment data.
@@ -1 +1 @@
1
- {"version":3,"file":"contract_deployment_data.d.ts","sourceRoot":"","sources":["../../src/contract/contract_deployment_data.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAClE,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAC;AAE3C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;GAGG;AACH,qBAAa,sBAAsB;aAEf,iBAAiB,EAAE,gBAAgB,EAAE;aACrC,WAAW,EAAE,UAAU,EAAE;gBADzB,iBAAiB,EAAE,gBAAgB,EAAE,EACrC,WAAW,EAAE,UAAU,EAAE;IAGpC,oBAAoB,IAAI,gBAAgB,EAAE;IAI1C,cAAc,IAAI,UAAU,EAAE;WAIvB,IAAI,CAAC,IAAI,EAAE;QAAE,iBAAiB,EAAE,gBAAgB,EAAE,CAAC;QAAC,WAAW,EAAE,UAAU,EAAE,CAAA;KAAE;WAI/E,KAAK,IAAI,sBAAsB;IAI7C,WAAkB,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAOvB;CACF;AAED;;GAEG;AACH,qBAAa,yBAAyB;aAElB,mCAAmC,EAAE,sBAAsB;aAC3D,gCAAgC,EAAE,sBAAsB;gBADxD,mCAAmC,EAAE,sBAAsB,EAC3D,gCAAgC,EAAE,sBAAsB;IAGnE,sCAAsC,IAAI,sBAAsB;IAIhE,mCAAmC,IAAI,sBAAsB;IAIpE;;;;;;;;OAQG;IACH,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,GAAG,yBAAyB;CAwCjD"}
1
+ {"version":3,"file":"contract_deployment_data.d.ts","sourceRoot":"","sources":["../../src/contract/contract_deployment_data.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAClE,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAC;AAE3C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;GAGG;AACH,qBAAa,sBAAsB;aAEf,iBAAiB,EAAE,gBAAgB,EAAE;aACrC,WAAW,EAAE,UAAU,EAAE;gBADzB,iBAAiB,EAAE,gBAAgB,EAAE,EACrC,WAAW,EAAE,UAAU,EAAE;IAGpC,oBAAoB,IAAI,gBAAgB,EAAE;IAI1C,cAAc,IAAI,UAAU,EAAE;WAIvB,IAAI,CAAC,IAAI,EAAE;QAAE,iBAAiB,EAAE,gBAAgB,EAAE,CAAC;QAAC,WAAW,EAAE,UAAU,EAAE,CAAA;KAAE;WAI/E,KAAK,IAAI,sBAAsB;IAI7C,WAAkB,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAOvB;IAED;;;;;;OAMG;WACW,eAAe,CAAC,GAAG,EAAE,GAAG,GAAG,sBAAsB;CAShE;AAED;;GAEG;AACH,qBAAa,yBAAyB;aAElB,mCAAmC,EAAE,sBAAsB;aAC3D,gCAAgC,EAAE,sBAAsB;gBADxD,mCAAmC,EAAE,sBAAsB,EAC3D,gCAAgC,EAAE,sBAAsB;IAGnE,sCAAsC,IAAI,sBAAsB;IAIhE,mCAAmC,IAAI,sBAAsB;IAIpE;;;;;;;;OAQG;IACH,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,GAAG,yBAAyB;CAwCjD"}
@@ -28,6 +28,18 @@ import { z } from 'zod';
28
28
  privateLogs: z.array(PrivateLog.schema)
29
29
  }).transform(ContractDeploymentData.from);
30
30
  }
31
+ /**
32
+ * Creates a ContractDeploymentData from a plain object without Zod validation.
33
+ * This method is optimized for performance and skips validation, making it suitable
34
+ * for deserializing trusted data (e.g., from C++ via MessagePack).
35
+ * @param obj - Plain object containing ContractDeploymentData fields
36
+ * @returns A ContractDeploymentData instance
37
+ */ static fromPlainObject(obj) {
38
+ if (obj instanceof ContractDeploymentData) {
39
+ return obj;
40
+ }
41
+ return new ContractDeploymentData(obj.contractClassLogs.map((log)=>ContractClassLog.fromPlainObject(log)), obj.privateLogs.map((log)=>PrivateLog.fromPlainObject(log)));
42
+ }
31
43
  }
32
44
  /**
33
45
  * Class containing both revertible and non-revertible registration/deployment data.
@@ -65,10 +65,10 @@ export type UtilityFunctionMembershipProof = {
65
65
  export type UtilityFunctionWithMembershipProof = UtilityFunction & UtilityFunctionMembershipProof;
66
66
  export declare const ContractClassSchema: z.ZodObject<{
67
67
  version: z.ZodLiteral<1>;
68
- artifactHash: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
68
+ artifactHash: z.ZodType<Fr, any, string>;
69
69
  privateFunctions: z.ZodArray<z.ZodObject<{
70
70
  selector: ZodFor<FunctionSelector>;
71
- vkHash: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
71
+ vkHash: z.ZodType<Fr, any, string>;
72
72
  }, "strip", z.ZodTypeAny, {
73
73
  selector: FunctionSelector;
74
74
  vkHash: Fr;
@@ -107,10 +107,10 @@ interface ContractClassCommitments {
107
107
  export type ContractClassWithId = ContractClass & Pick<ContractClassCommitments, 'id'>;
108
108
  export declare const ContractClassWithIdSchema: z.ZodObject<{
109
109
  version: z.ZodLiteral<1>;
110
- artifactHash: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
110
+ artifactHash: z.ZodType<Fr, any, string>;
111
111
  privateFunctions: z.ZodArray<z.ZodObject<{
112
112
  selector: ZodFor<FunctionSelector>;
113
- vkHash: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
113
+ vkHash: z.ZodType<Fr, any, string>;
114
114
  }, "strip", z.ZodTypeAny, {
115
115
  selector: FunctionSelector;
116
116
  vkHash: Fr;
@@ -120,7 +120,7 @@ export declare const ContractClassWithIdSchema: z.ZodObject<{
120
120
  }>, "many">;
121
121
  packedBytecode: ZodFor<Buffer<ArrayBufferLike>>;
122
122
  } & {
123
- id: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
123
+ id: z.ZodType<Fr, any, string>;
124
124
  }, "strip", z.ZodTypeAny, {
125
125
  version: 1;
126
126
  artifactHash: Fr;
@@ -147,11 +147,11 @@ export type ContractClassPublic = {
147
147
  } & Pick<ContractClassCommitments, 'id' | 'privateFunctionsRoot'> & Omit<ContractClass, 'privateFunctions'>;
148
148
  export type ContractClassPublicWithCommitment = ContractClassPublic & Pick<ContractClassCommitments, 'publicBytecodeCommitment'>;
149
149
  export declare const ContractClassPublicSchema: z.ZodIntersection<z.ZodObject<{
150
- id: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
151
- privateFunctionsRoot: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
150
+ id: z.ZodType<Fr, any, string>;
151
+ privateFunctionsRoot: z.ZodType<Fr, any, string>;
152
152
  privateFunctions: z.ZodArray<z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
153
153
  selector: ZodFor<FunctionSelector>;
154
- vkHash: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
154
+ vkHash: z.ZodType<Fr, any, string>;
155
155
  }, "strip", z.ZodTypeAny, {
156
156
  selector: FunctionSelector;
157
157
  vkHash: Fr;
@@ -165,12 +165,12 @@ export declare const ContractClassPublicSchema: z.ZodIntersection<z.ZodObject<{
165
165
  }, {
166
166
  bytecode?: any;
167
167
  }>>, z.ZodObject<{
168
- artifactMetadataHash: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
169
- functionMetadataHash: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
170
- utilityFunctionsTreeRoot: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
171
- privateFunctionTreeSiblingPath: z.ZodArray<z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>, "many">;
168
+ artifactMetadataHash: z.ZodType<Fr, any, string>;
169
+ functionMetadataHash: z.ZodType<Fr, any, string>;
170
+ utilityFunctionsTreeRoot: z.ZodType<Fr, any, string>;
171
+ privateFunctionTreeSiblingPath: z.ZodArray<z.ZodType<Fr, any, string>, "many">;
172
172
  privateFunctionTreeLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
173
- artifactTreeSiblingPath: z.ZodArray<z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>, "many">;
173
+ artifactTreeSiblingPath: z.ZodArray<z.ZodType<Fr, any, string>, "many">;
174
174
  artifactTreeLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
175
175
  }, "strip", z.ZodTypeAny, {
176
176
  functionMetadataHash: Fr;
@@ -200,10 +200,10 @@ export declare const ContractClassPublicSchema: z.ZodIntersection<z.ZodObject<{
200
200
  bytecode?: any;
201
201
  selector?: any;
202
202
  }>, z.ZodObject<{
203
- artifactMetadataHash: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
204
- functionMetadataHash: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
205
- privateFunctionsArtifactTreeRoot: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
206
- artifactTreeSiblingPath: z.ZodArray<z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>, "many">;
203
+ artifactMetadataHash: z.ZodType<Fr, any, string>;
204
+ functionMetadataHash: z.ZodType<Fr, any, string>;
205
+ privateFunctionsArtifactTreeRoot: z.ZodType<Fr, any, string>;
206
+ artifactTreeSiblingPath: z.ZodArray<z.ZodType<Fr, any, string>, "many">;
207
207
  artifactTreeLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
208
208
  }, "strip", z.ZodTypeAny, {
209
209
  functionMetadataHash: Fr;
@@ -274,10 +274,10 @@ export declare const ContractClassPublicSchema: z.ZodIntersection<z.ZodObject<{
274
274
  })[];
275
275
  }>, z.ZodObject<Omit<{
276
276
  version: z.ZodLiteral<1>;
277
- artifactHash: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
277
+ artifactHash: z.ZodType<Fr, any, string>;
278
278
  privateFunctions: z.ZodArray<z.ZodObject<{
279
279
  selector: ZodFor<FunctionSelector>;
280
- vkHash: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
280
+ vkHash: z.ZodType<Fr, any, string>;
281
281
  }, "strip", z.ZodTypeAny, {
282
282
  selector: FunctionSelector;
283
283
  vkHash: Fr;