@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
@@ -28,6 +28,18 @@ import { z } from 'zod';
28
28
  nextIndex: schemas.BigInt
29
29
  }).transform(({ leaf, nextKey, nextIndex })=>new PublicDataTreeLeafPreimage(leaf, nextKey, nextIndex));
30
30
  }
31
+ /**
32
+ * Creates a PublicDataTreeLeafPreimage 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 PublicDataTreeLeafPreimage fields
36
+ * @returns A PublicDataTreeLeafPreimage instance
37
+ */ static fromPlainObject(obj) {
38
+ if (obj instanceof PublicDataTreeLeafPreimage) {
39
+ return obj;
40
+ }
41
+ return new PublicDataTreeLeafPreimage(PublicDataTreeLeaf.fromPlainObject(obj.leaf), Fr.fromPlainObject(obj.nextKey), typeof obj.nextIndex === 'bigint' ? obj.nextIndex : BigInt(obj.nextIndex));
42
+ }
31
43
  static get leafSchema() {
32
44
  return PublicDataTreeLeaf.schema;
33
45
  }
@@ -138,4 +150,16 @@ import { z } from 'zod';
138
150
  value: schemas.Fr
139
151
  }).transform(({ slot, value })=>new PublicDataTreeLeaf(slot, value));
140
152
  }
153
+ /**
154
+ * Creates a PublicDataTreeLeaf from a plain object without Zod validation.
155
+ * This method is optimized for performance and skips validation, making it suitable
156
+ * for deserializing trusted data (e.g., from C++ via MessagePack).
157
+ * @param obj - Plain object containing PublicDataTreeLeaf fields
158
+ * @returns A PublicDataTreeLeaf instance
159
+ */ static fromPlainObject(obj) {
160
+ if (obj instanceof PublicDataTreeLeaf) {
161
+ return obj;
162
+ }
163
+ return new PublicDataTreeLeaf(Fr.fromPlainObject(obj.slot), Fr.fromPlainObject(obj.value));
164
+ }
141
165
  }
@@ -42,8 +42,8 @@ export declare class PublicDataWitness {
42
42
  index: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
43
43
  leafPreimage: z.ZodEffects<z.ZodObject<{
44
44
  leaf: z.ZodEffects<z.ZodObject<{
45
- slot: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
46
- value: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
45
+ slot: z.ZodType<Fr, any, string>;
46
+ value: z.ZodType<Fr, any, string>;
47
47
  }, "strip", z.ZodTypeAny, {
48
48
  value: Fr;
49
49
  slot: Fr;
@@ -54,7 +54,7 @@ export declare class PublicDataWitness {
54
54
  value: string;
55
55
  slot: string;
56
56
  }>;
57
- nextKey: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
57
+ nextKey: z.ZodType<Fr, any, string>;
58
58
  nextIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
59
59
  }, "strip", z.ZodTypeAny, {
60
60
  leaf: import("./public_data_leaf.js").PublicDataTreeLeaf;
@@ -9,9 +9,9 @@ export declare class ContentCommitment {
9
9
  outHash: Fr;
10
10
  constructor(blobsHash: Fr, inHash: Fr, outHash: Fr);
11
11
  static get schema(): z.ZodEffects<z.ZodObject<{
12
- blobsHash: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
13
- inHash: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
14
- outHash: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
12
+ blobsHash: z.ZodType<Fr, any, string>;
13
+ inHash: z.ZodType<Fr, any, string>;
14
+ outHash: z.ZodType<Fr, any, string>;
15
15
  }, "strip", z.ZodTypeAny, {
16
16
  blobsHash: Fr;
17
17
  inHash: Fr;
@@ -0,0 +1,45 @@
1
+ import type { FunctionCall } from '../abi/function_call.js';
2
+ import type { AuthWitness } from '../auth_witness/auth_witness.js';
3
+ import { AztecAddress } from '../aztec-address/index.js';
4
+ import type { Capsule } from './capsule.js';
5
+ import type { HashedValues } from './hashed_values.js';
6
+ /**
7
+ * Represents data necessary to perform an action in the network successfully.
8
+ * This class can be considered Aztec's "minimal execution unit".
9
+ * */
10
+ export declare class ExecutionPayload {
11
+ /** The function calls to be executed. */
12
+ calls: FunctionCall[];
13
+ /** Any transient auth witnesses needed for this execution */
14
+ authWitnesses: AuthWitness[];
15
+ /** Data passed through an oracle for this execution. */
16
+ capsules: Capsule[];
17
+ /** Extra hashed values to be injected in the execution cache */
18
+ extraHashedArgs: HashedValues[];
19
+ /**
20
+ * The address that is paying for the fee in this execution payload (if any).
21
+ * If undefined, the wallet software executing the payload will have to add a fee payment method
22
+ */
23
+ feePayer?: AztecAddress | undefined;
24
+ constructor(
25
+ /** The function calls to be executed. */
26
+ calls: FunctionCall[],
27
+ /** Any transient auth witnesses needed for this execution */
28
+ authWitnesses: AuthWitness[],
29
+ /** Data passed through an oracle for this execution. */
30
+ capsules: Capsule[],
31
+ /** Extra hashed values to be injected in the execution cache */
32
+ extraHashedArgs?: HashedValues[],
33
+ /**
34
+ * The address that is paying for the fee in this execution payload (if any).
35
+ * If undefined, the wallet software executing the payload will have to add a fee payment method
36
+ */
37
+ feePayer?: AztecAddress | undefined);
38
+ static empty(): ExecutionPayload;
39
+ }
40
+ /**
41
+ * Merges an array ExecutionPayloads combining their calls, authWitnesses, capsules and extraArgHashes.
42
+ * @throws Error if multiple payloads have different fee payers set
43
+ */
44
+ export declare function mergeExecutionPayloads(requests: ExecutionPayload[]): ExecutionPayload;
45
+ //# sourceMappingURL=execution_payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"execution_payload.d.ts","sourceRoot":"","sources":["../../src/tx/execution_payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEvD;;;KAGK;AACL,qBAAa,gBAAgB;IAEzB,yCAAyC;IAClC,KAAK,EAAE,YAAY,EAAE;IAC5B,6DAA6D;IACtD,aAAa,EAAE,WAAW,EAAE;IACnC,wDAAwD;IACjD,QAAQ,EAAE,OAAO,EAAE;IAC1B,gEAAgE;IACzD,eAAe,EAAE,YAAY,EAAE;IACtC;;;OAGG;IACI,QAAQ,CAAC,EAAE,YAAY;;IAZ9B,yCAAyC;IAClC,KAAK,EAAE,YAAY,EAAE;IAC5B,6DAA6D;IACtD,aAAa,EAAE,WAAW,EAAE;IACnC,wDAAwD;IACjD,QAAQ,EAAE,OAAO,EAAE;IAC1B,gEAAgE;IACzD,eAAe,GAAE,YAAY,EAAO;IAC3C;;;OAGG;IACI,QAAQ,CAAC,EAAE,YAAY,YAAA;IAGhC,MAAM,CAAC,KAAK;CAGb;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,gBAAgB,EAAE,GAAG,gBAAgB,CAuBrF"}
@@ -0,0 +1,40 @@
1
+ import { AztecAddress } from '../aztec-address/index.js';
2
+ /**
3
+ * Represents data necessary to perform an action in the network successfully.
4
+ * This class can be considered Aztec's "minimal execution unit".
5
+ * */ export class ExecutionPayload {
6
+ calls;
7
+ authWitnesses;
8
+ capsules;
9
+ extraHashedArgs;
10
+ feePayer;
11
+ constructor(/** The function calls to be executed. */ calls, /** Any transient auth witnesses needed for this execution */ authWitnesses, /** Data passed through an oracle for this execution. */ capsules, /** Extra hashed values to be injected in the execution cache */ extraHashedArgs = [], /**
12
+ * The address that is paying for the fee in this execution payload (if any).
13
+ * If undefined, the wallet software executing the payload will have to add a fee payment method
14
+ */ feePayer){
15
+ this.calls = calls;
16
+ this.authWitnesses = authWitnesses;
17
+ this.capsules = capsules;
18
+ this.extraHashedArgs = extraHashedArgs;
19
+ this.feePayer = feePayer;
20
+ }
21
+ static empty() {
22
+ return new ExecutionPayload([], [], [], [], undefined);
23
+ }
24
+ }
25
+ /**
26
+ * Merges an array ExecutionPayloads combining their calls, authWitnesses, capsules and extraArgHashes.
27
+ * @throws Error if multiple payloads have different fee payers set
28
+ */ export function mergeExecutionPayloads(requests) {
29
+ const calls = requests.map((r)=>r.calls).flat();
30
+ const combinedAuthWitnesses = requests.map((r)=>r.authWitnesses ?? []).flat();
31
+ const combinedCapsules = requests.map((r)=>r.capsules ?? []).flat();
32
+ const combinedExtraHashedArgs = requests.map((r)=>r.extraHashedArgs ?? []).flat();
33
+ // Collect unique fee payers
34
+ const uniqueFeePayers = new Set(requests.map((r)=>r.feePayer).filter((fp)=>fp !== undefined).map((fp)=>fp.toString()));
35
+ if (uniqueFeePayers.size > 1) {
36
+ throw new Error(`Cannot merge execution payloads with different fee payers. Found: ${Array.from(uniqueFeePayers).join(', ')}`);
37
+ }
38
+ const feePayer = uniqueFeePayers.size === 1 ? AztecAddress.fromString(Array.from(uniqueFeePayers)[0]) : undefined;
39
+ return new ExecutionPayload(calls, combinedAuthWitnesses, combinedCapsules, combinedExtraHashedArgs, feePayer);
40
+ }
@@ -101,6 +101,14 @@ export declare class GlobalVariables {
101
101
  }>;
102
102
  getSize(): number;
103
103
  static from(fields: FieldsOf<GlobalVariables>): GlobalVariables;
104
+ /**
105
+ * Creates a GlobalVariables instance from a plain object without Zod validation.
106
+ * This method is optimized for performance and skips validation, making it suitable
107
+ * for deserializing trusted data (e.g., from C++ via MessagePack).
108
+ * @param obj - Plain object containing GlobalVariables fields
109
+ * @returns A GlobalVariables instance
110
+ */
111
+ static fromPlainObject(obj: any): GlobalVariables;
104
112
  static empty(fields?: Partial<FieldsOf<GlobalVariables>>): GlobalVariables;
105
113
  static fromBuffer(buffer: Buffer | BufferReader): GlobalVariables;
106
114
  static fromFields(fields: Fr[] | FieldReader): GlobalVariables;
@@ -1 +1 @@
1
- {"version":3,"file":"global_variables.d.ts","sourceRoot":"","sources":["../../src/tx/global_variables.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAE9C,OAAO,EACL,YAAY,EACZ,WAAW,EAIZ,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAExD,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAE7C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAExD;;GAEG;AACH,qBAAa,eAAe;IAExB,gCAAgC;IACzB,OAAO,EAAE,EAAE;IAClB,gCAAgC;IACzB,OAAO,EAAE,EAAE;IAClB,oCA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;IACxB,YAAY,EAAE,YAAY;IACjC,wCAAwC;IACjC,OAAO,EAAE,OAAO;IAGzB,MAAM,KAAK,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAahB;IAED,OAAO,IAAI,MAAM;IAIjB,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,eAAe,CAAC,GAAG,eAAe;IAI/D;;;;;;OAMG;IACH,MAAM,CAAC,eAAe,CAAC,GAAG,EAAE,GAAG,GAAG,eAAe;IAajD,MAAM,CAAC,KAAK,CAAC,MAAM,GAAE,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAM,GAAG,eAAe;IAc9E,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,YAAY,GAAG,eAAe;IAcjE,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,EAAE,EAAE,GAAG,WAAW,GAAG,eAAe;IAe9D,MAAM,CAAC,SAAS,CAAC,MAAM,EAAE,QAAQ,CAAC,eAAe,CAAC;IAalD,QAAQ;IAaR,QAAQ;IAUR;;;OAGG;IACH,cAAc;;;;;;;IAUd,KAAK,IAAI,eAAe;IAIxB,OAAO,IAAI,OAAO;IAalB,SAAS;;;;;;;;;;;IAcT,CAAC,OAAO,CAAC,MAAM,CAAC;IAIT,MAAM,CAAC,KAAK,EAAE,IAAI,GAAG,OAAO;CAYpC"}
@@ -47,6 +47,15 @@ import { schemas } from '../schemas/index.js';
47
47
  static from(fields) {
48
48
  return new GlobalVariables(...GlobalVariables.getFields(fields));
49
49
  }
50
+ /**
51
+ * Creates a GlobalVariables instance from a plain object without Zod validation.
52
+ * This method is optimized for performance and skips validation, making it suitable
53
+ * for deserializing trusted data (e.g., from C++ via MessagePack).
54
+ * @param obj - Plain object containing GlobalVariables fields
55
+ * @returns A GlobalVariables instance
56
+ */ static fromPlainObject(obj) {
57
+ return new GlobalVariables(Fr.fromPlainObject(obj.chainId), Fr.fromPlainObject(obj.version), obj.blockNumber, Fr.fromPlainObject(obj.slotNumber), typeof obj.timestamp === 'bigint' ? obj.timestamp : BigInt(obj.timestamp), EthAddress.fromPlainObject(obj.coinbase), AztecAddress.fromPlainObject(obj.feeRecipient), GasFees.fromPlainObject(obj.gasFees));
58
+ }
50
59
  static empty(fields = {}) {
51
60
  return GlobalVariables.from({
52
61
  blockNumber: 0,
@@ -31,4 +31,5 @@ export * from './indexed_tx_effect.js';
31
31
  export * from './offchain_effect.js';
32
32
  export * from './profiling.js';
33
33
  export * from './protocol_contracts.js';
34
+ export * from './execution_payload.js';
34
35
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tx/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,wCAAwC,CAAC;AACvD,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,+BAA+B,CAAC;AAC9C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,cAAc,CAAC;AAC7B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,yBAAyB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tx/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,wCAAwC,CAAC;AACvD,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,+BAA+B,CAAC;AAC9C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,cAAc,CAAC;AAC7B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC"}
package/dest/tx/index.js CHANGED
@@ -31,3 +31,4 @@ export * from './indexed_tx_effect.js';
31
31
  export * from './offchain_effect.js';
32
32
  export * from './profiling.js';
33
33
  export * from './protocol_contracts.js';
34
+ export * from './execution_payload.js';
@@ -22,7 +22,7 @@ export declare class PartialStateReference {
22
22
  publicDataTree: AppendOnlyTreeSnapshot);
23
23
  static get schema(): z.ZodEffects<z.ZodObject<{
24
24
  noteHashTree: z.ZodEffects<z.ZodObject<{
25
- root: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
25
+ root: z.ZodType<Fr, any, string>;
26
26
  nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
27
27
  }, "strip", z.ZodTypeAny, {
28
28
  root: Fr;
@@ -35,7 +35,7 @@ export declare class PartialStateReference {
35
35
  nextAvailableLeafIndex: string | number | bigint;
36
36
  }>;
37
37
  nullifierTree: z.ZodEffects<z.ZodObject<{
38
- root: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
38
+ root: z.ZodType<Fr, any, string>;
39
39
  nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
40
40
  }, "strip", z.ZodTypeAny, {
41
41
  root: Fr;
@@ -48,7 +48,7 @@ export declare class PartialStateReference {
48
48
  nextAvailableLeafIndex: string | number | bigint;
49
49
  }>;
50
50
  publicDataTree: z.ZodEffects<z.ZodObject<{
51
- root: z.ZodUnion<[z.ZodType<Fr, any, string>, z.ZodType<never, any, string>]>;
51
+ root: z.ZodType<Fr, any, string>;
52
52
  nextAvailableLeafIndex: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
53
53
  }, "strip", z.ZodTypeAny, {
54
54
  root: Fr;
@@ -1,6 +1,6 @@
1
+ import { Fr } from '@aztec/foundation/fields';
1
2
  import { type ZodFor } from '@aztec/foundation/schemas';
2
3
  import { z } from 'zod';
3
- import type { AbiDecoded } from '../abi/decoder.js';
4
4
  import type { AztecNode } from '../interfaces/aztec-node.js';
5
5
  import { type PrivateExecutionStep } from '../kernel/private_kernel_prover_output.js';
6
6
  export type NodeStats = Partial<Record<keyof AztecNode, {
@@ -350,9 +350,9 @@ export declare class TxProfileResult {
350
350
  static random(): TxProfileResult;
351
351
  }
352
352
  export declare class UtilitySimulationResult {
353
- result: AbiDecoded;
353
+ result: Fr[];
354
354
  stats?: SimulationStats | undefined;
355
- constructor(result: AbiDecoded, stats?: SimulationStats | undefined);
355
+ constructor(result: Fr[], stats?: SimulationStats | undefined);
356
356
  static get schema(): ZodFor<UtilitySimulationResult>;
357
357
  static random(): UtilitySimulationResult;
358
358
  }
@@ -1 +1 @@
1
- {"version":3,"file":"profiling.d.ts","sourceRoot":"","sources":["../../src/tx/profiling.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,MAAM,EAAY,MAAM,2BAA2B,CAAC;AAElE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,KAAK,oBAAoB,EAA8B,MAAM,2CAA2C,CAAC;AAGlH,MAAM,MAAM,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,SAAS,EAAE;IAAE,KAAK,EAAE,MAAM,EAAE,CAAA;CAAE,CAAC,CAAC,CAAC;AAI9E,KAAK,cAAc,GAAG;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,KAAK,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC,CAAC;CAC/C,CAAC;AAQF,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,cAAc,EAAE,CAAC;IA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KAAK,CAAC,EAAE,eAAe,YAAA;IAGhC,MAAM,KAAK,MAAM,IAAI,MAAM,CAAC,uBAAuB,CAAC,CAOnD;IAED,MAAM,CAAC,MAAM,IAAI,uBAAuB;CAkBzC"}
@@ -1,8 +1,7 @@
1
1
  import { Fr } from '@aztec/foundation/fields';
2
- import { optional } from '@aztec/foundation/schemas';
2
+ import { optional, schemas } from '@aztec/foundation/schemas';
3
3
  import { z } from 'zod';
4
4
  import { PrivateExecutionStepSchema } from '../kernel/private_kernel_prover_output.js';
5
- import { AbiDecodedSchema } from '../schemas/schemas.js';
6
5
  const NodeStatsSchema = z.record(z.string(), z.object({
7
6
  times: z.array(z.number())
8
7
  }));
@@ -98,12 +97,14 @@ export class UtilitySimulationResult {
98
97
  }
99
98
  static get schema() {
100
99
  return z.object({
101
- result: AbiDecodedSchema,
100
+ result: z.array(schemas.Fr),
102
101
  stats: optional(SimulationStatsSchema)
103
102
  }).transform(({ result, stats })=>new UtilitySimulationResult(result, stats));
104
103
  }
105
104
  static random() {
106
- return new UtilitySimulationResult(Fr.random().toBigInt(), {
105
+ return new UtilitySimulationResult([
106
+ Fr.random()
107
+ ], {
107
108
  nodeRPCCalls: {
108
109
  getBlockHeader: {
109
110
  times: [
@@ -14,6 +14,14 @@ export declare class ProtocolContracts {
14
14
  static fromBuffer(buffer: Buffer | BufferReader): ProtocolContracts;
15
15
  toBuffer(): Buffer<ArrayBufferLike>;
16
16
  static empty(): ProtocolContracts;
17
+ /**
18
+ * Creates a ProtocolContracts instance from a plain object without Zod validation.
19
+ * This method is optimized for performance and skips validation, making it suitable
20
+ * for deserializing trusted data (e.g., from C++ via MessagePack).
21
+ * @param obj - Plain object containing ProtocolContracts fields
22
+ * @returns A ProtocolContracts instance
23
+ */
24
+ static fromPlainObject(obj: any): ProtocolContracts;
17
25
  getSize(): number;
18
26
  hash(): Promise<Fr>;
19
27
  static get schema(): z.ZodEffects<z.ZodObject<{
@@ -1 +1 @@
1
- {"version":3,"file":"protocol_contracts.d.ts","sourceRoot":"","sources":["../../src/tx/protocol_contracts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAI1E,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAC9C,OAAO,EACL,YAAY,EACZ,WAAW,EACX,KAAK,KAAK,EAIX,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAExD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAEzD,qBAAa,iBAAiB;IACT,gBAAgB,EAAE,KAAK,CAAC,YAAY,EAAE,OAAO,sBAAsB,CAAC;gBAApE,gBAAgB,EAAE,KAAK,CAAC,YAAY,EAAE,OAAO,sBAAsB,CAAC;IAEvF,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,iBAAiB,CAAC;IAI/C,MAAM,CAAC,SAAS,CAAC,MAAM,EAAE,QAAQ,CAAC,iBAAiB,CAAC;IAIpD,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,EAAE,EAAE,GAAG,WAAW,GAAG,iBAAiB;IAKhE,QAAQ,IAAI,EAAE,EAAE;IAIhB,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,YAAY,GAAG,iBAAiB;IAKnE,QAAQ;IAIR,MAAM,CAAC,KAAK;IAIZ,OAAO;IAIP,IAAI;IAIJ,MAAM,KAAK,MAAM;;;;;;;;OAQhB;CACF"}
1
+ {"version":3,"file":"protocol_contracts.d.ts","sourceRoot":"","sources":["../../src/tx/protocol_contracts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAI1E,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAC9C,OAAO,EACL,YAAY,EACZ,WAAW,EACX,KAAK,KAAK,EAIX,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAExD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAEzD,qBAAa,iBAAiB;IACT,gBAAgB,EAAE,KAAK,CAAC,YAAY,EAAE,OAAO,sBAAsB,CAAC;gBAApE,gBAAgB,EAAE,KAAK,CAAC,YAAY,EAAE,OAAO,sBAAsB,CAAC;IAEvF,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,iBAAiB,CAAC;IAI/C,MAAM,CAAC,SAAS,CAAC,MAAM,EAAE,QAAQ,CAAC,iBAAiB,CAAC;IAIpD,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,EAAE,EAAE,GAAG,WAAW,GAAG,iBAAiB;IAKhE,QAAQ,IAAI,EAAE,EAAE;IAIhB,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,YAAY,GAAG,iBAAiB;IAKnE,QAAQ;IAIR,MAAM,CAAC,KAAK;IAIZ;;;;;;OAMG;IACH,MAAM,CAAC,eAAe,CAAC,GAAG,EAAE,GAAG,GAAG,iBAAiB;IASnD,OAAO;IAIP,IAAI;IAIJ,MAAM,KAAK,MAAM;;;;;;;;OAQhB;CACF"}
@@ -35,6 +35,15 @@ export class ProtocolContracts {
35
35
  static empty() {
36
36
  return new ProtocolContracts(makeTuple(MAX_PROTOCOL_CONTRACTS, ()=>AztecAddress.zero()));
37
37
  }
38
+ /**
39
+ * Creates a ProtocolContracts instance from a plain object without Zod validation.
40
+ * This method is optimized for performance and skips validation, making it suitable
41
+ * for deserializing trusted data (e.g., from C++ via MessagePack).
42
+ * @param obj - Plain object containing ProtocolContracts fields
43
+ * @returns A ProtocolContracts instance
44
+ */ static fromPlainObject(obj) {
45
+ return new ProtocolContracts(assertLength(obj.derivedAddresses.map((addr)=>AztecAddress.fromPlainObject(addr)), MAX_PROTOCOL_CONTRACTS));
46
+ }
38
47
  getSize() {
39
48
  return arraySerializedSizeOfNonEmpty(this.derivedAddresses);
40
49
  }
@@ -29,6 +29,14 @@ export declare class PublicCallRequestWithCalldata {
29
29
  get args(): Fr[];
30
30
  static get schema(): ZodFor<PublicCallRequestWithCalldata>;
31
31
  static from(fields: Pick<PublicCallRequestWithCalldata, 'request' | 'calldata'>): PublicCallRequestWithCalldata;
32
+ /**
33
+ * Creates a PublicCallRequestWithCalldata from a plain object without Zod validation.
34
+ * This method is optimized for performance and skips validation, making it suitable
35
+ * for deserializing trusted data (e.g., from C++ via MessagePack).
36
+ * @param obj - Plain object containing PublicCallRequestWithCalldata fields
37
+ * @returns A PublicCallRequestWithCalldata instance
38
+ */
39
+ static fromPlainObject(obj: any): PublicCallRequestWithCalldata;
32
40
  toBuffer(): Buffer<ArrayBufferLike>;
33
41
  static fromBuffer(buffer: Buffer | BufferReader): PublicCallRequestWithCalldata;
34
42
  static empty(): PublicCallRequestWithCalldata;
@@ -1 +1 @@
1
- {"version":3,"file":"public_call_request_with_calldata.d.ts","sourceRoot":"","sources":["../../src/tx/public_call_request_with_calldata.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAqB,MAAM,6BAA6B,CAAC;AAE9E,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAG/B,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,KAAK,MAAM,EAAW,MAAM,qBAAqB,CAAC;AAG3D;;GAEG;AACH,qBAAa,6BAA6B;IAEtC;;OAEG;IACI,OAAO,EAAE,iBAAiB;IACjC;;OAEG;IACI,QAAQ,EAAE,EAAE,EAAE;;IAPrB;;OAEG;IACI,OAAO,EAAE,i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zD;IAED,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,6BAA6B,EAAE,SAAS,GAAG,UAAU,CAAC,GAAG,6BAA6B;IAI/G;;;;;;OAMG;IACH,MAAM,CAAC,eAAe,CAAC,GAAG,EAAE,GAAG,GAAG,6BAA6B;IAU/D,QAAQ;IAIR,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,YAAY;IAK/C,MAAM,CAAC,KAAK;IAIZ,OAAO,IAAI,OAAO;IAIlB,CAAC,OAAO,CAAC,MAAM,CAAC;CAMjB"}
@@ -35,6 +35,18 @@ import { Vector } from '../types/index.js';
35
35
  static from(fields) {
36
36
  return new PublicCallRequestWithCalldata(fields.request, fields.calldata);
37
37
  }
38
+ /**
39
+ * Creates a PublicCallRequestWithCalldata from a plain object without Zod validation.
40
+ * This method is optimized for performance and skips validation, making it suitable
41
+ * for deserializing trusted data (e.g., from C++ via MessagePack).
42
+ * @param obj - Plain object containing PublicCallRequestWithCalldata fields
43
+ * @returns A PublicCallRequestWithCalldata instance
44
+ */ static fromPlainObject(obj) {
45
+ if (obj instanceof PublicCallRequestWithCalldata) {
46
+ return obj;
47
+ }
48
+ return new PublicCallRequestWithCalldata(PublicCallRequest.fromPlainObject(obj.request), obj.calldata.map((f)=>Fr.fromPlainObject(f)));
49
+ }
38
50
  toBuffer() {
39
51
  return serializeToBuffer(this.request, new Vector(this.calldata));
40
52
  }
@@ -26,97 +26,25 @@ export declare class SimulationOverrides {
26
26
  originalContractClassId: ZodFor<import("@aztec/foundation/schemas").Fr>;
27
27
  initializationHash: ZodFor<import("@aztec/foundation/schemas").Fr>;
28
28
  publicKeys: z.ZodEffects<z.ZodObject<{
29
- masterNullifierPublicKey: z.ZodUnion<[z.ZodType<import("@aztec/foundation/schemas").Point, any, string>, z.ZodEffects<z.ZodObject<{
30
- x: z.ZodUnion<[z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, z.ZodType<never, any, string>]>;
31
- y: z.ZodUnion<[z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, z.ZodType<never, any, string>]>;
32
- }, "strip", z.ZodTypeAny, {
33
- x: import("@aztec/foundation/schemas").Fr;
34
- y: import("@aztec/foundation/schemas").Fr;
35
- }, {
36
- x: string;
37
- y: string;
38
- }>, import("@aztec/foundation/schemas").Point, {
39
- x: string;
40
- y: string;
41
- }>]>;
42
- masterIncomingViewingPublicKey: z.ZodUnion<[z.ZodType<import("@aztec/foundation/schemas").Point, any, string>, z.ZodEffects<z.ZodObject<{
43
- x: z.ZodUnion<[z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, z.ZodType<never, any, string>]>;
44
- y: z.ZodUnion<[z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, z.ZodType<never, any, string>]>;
45
- }, "strip", z.ZodTypeAny, {
46
- x: import("@aztec/foundation/schemas").Fr;
47
- y: import("@aztec/foundation/schemas").Fr;
48
- }, {
49
- x: string;
50
- y: string;
51
- }>, import("@aztec/foundation/schemas").Point, {
52
- x: string;
53
- y: string;
54
- }>]>;
55
- masterOutgoingViewingPublicKey: z.ZodUnion<[z.ZodType<import("@aztec/foundation/schemas").Point, any, string>, z.ZodEffects<z.ZodObject<{
56
- x: z.ZodUnion<[z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, z.ZodType<never, any, string>]>;
57
- y: z.ZodUnion<[z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, z.ZodType<never, any, string>]>;
58
- }, "strip", z.ZodTypeAny, {
59
- x: import("@aztec/foundation/schemas").Fr;
60
- y: import("@aztec/foundation/schemas").Fr;
61
- }, {
62
- x: string;
63
- y: string;
64
- }>, import("@aztec/foundation/schemas").Point, {
65
- x: string;
66
- y: string;
67
- }>]>;
68
- masterTaggingPublicKey: z.ZodUnion<[z.ZodType<import("@aztec/foundation/schemas").Point, any, string>, z.ZodEffects<z.ZodObject<{
69
- x: z.ZodUnion<[z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, z.ZodType<never, any, string>]>;
70
- y: z.ZodUnion<[z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, z.ZodType<never, any, string>]>;
71
- }, "strip", z.ZodTypeAny, {
72
- x: import("@aztec/foundation/schemas").Fr;
73
- y: import("@aztec/foundation/schemas").Fr;
74
- }, {
75
- x: string;
76
- y: string;
77
- }>, import("@aztec/foundation/schemas").Point, {
78
- x: string;
79
- y: string;
80
- }>]>;
29
+ masterNullifierPublicKey: z.ZodType<import("@aztec/foundation/schemas").Point, any, string>;
30
+ masterIncomingViewingPublicKey: z.ZodType<import("@aztec/foundation/schemas").Point, any, string>;
31
+ masterOutgoingViewingPublicKey: z.ZodType<import("@aztec/foundation/schemas").Point, any, string>;
32
+ masterTaggingPublicKey: z.ZodType<import("@aztec/foundation/schemas").Point, any, string>;
81
33
  }, "strip", z.ZodTypeAny, {
82
34
  masterNullifierPublicKey: import("@aztec/foundation/schemas").Point;
83
35
  masterIncomingViewingPublicKey: import("@aztec/foundation/schemas").Point;
84
36
  masterOutgoingViewingPublicKey: import("@aztec/foundation/schemas").Point;
85
37
  masterTaggingPublicKey: import("@aztec/foundation/schemas").Point;
86
38
  }, {
87
- masterNullifierPublicKey: string | {
88
- x: string;
89
- y: string;
90
- };
91
- masterIncomingViewingPublicKey: string | {
92
- x: string;
93
- y: string;
94
- };
95
- masterOutgoingViewingPublicKey: string | {
96
- x: string;
97
- y: string;
98
- };
99
- masterTaggingPublicKey: string | {
100
- x: string;
101
- y: string;
102
- };
39
+ masterNullifierPublicKey: string;
40
+ masterIncomingViewingPublicKey: string;
41
+ masterOutgoingViewingPublicKey: string;
42
+ masterTaggingPublicKey: string;
103
43
  }>, import("../keys/public_keys.js").PublicKeys, {
104
- masterNullifierPublicKey: string | {
105
- x: string;
106
- y: string;
107
- };
108
- masterIncomingViewingPublicKey: string | {
109
- x: string;
110
- y: string;
111
- };
112
- masterOutgoingViewingPublicKey: string | {
113
- x: string;
114
- y: string;
115
- };
116
- masterTaggingPublicKey: string | {
117
- x: string;
118
- y: string;
119
- };
44
+ masterNullifierPublicKey: string;
45
+ masterIncomingViewingPublicKey: string;
46
+ masterOutgoingViewingPublicKey: string;
47
+ masterTaggingPublicKey: string;
120
48
  }>;
121
49
  }, "strip", z.ZodTypeAny, {
122
50
  version: 1;
@@ -129,22 +57,10 @@ export declare class SimulationOverrides {
129
57
  }, {
130
58
  version: 1;
131
59
  publicKeys: {
132
- masterNullifierPublicKey: string | {
133
- x: string;
134
- y: string;
135
- };
136
- masterIncomingViewingPublicKey: string | {
137
- x: string;
138
- y: string;
139
- };
140
- masterOutgoingViewingPublicKey: string | {
141
- x: string;
142
- y: string;
143
- };
144
- masterTaggingPublicKey: string | {
145
- x: string;
146
- y: string;
147
- };
60
+ masterNullifierPublicKey: string;
61
+ masterIncomingViewingPublicKey: string;
62
+ masterOutgoingViewingPublicKey: string;
63
+ masterTaggingPublicKey: string;
148
64
  };
149
65
  salt?: any;
150
66
  deployer?: any;
@@ -176,22 +92,10 @@ export declare class SimulationOverrides {
176
92
  instance: {
177
93
  version: 1;
178
94
  publicKeys: {
179
- masterNullifierPublicKey: string | {
180
- x: string;
181
- y: string;
182
- };
183
- masterIncomingViewingPublicKey: string | {
184
- x: string;
185
- y: string;
186
- };
187
- masterOutgoingViewingPublicKey: string | {
188
- x: string;
189
- y: string;
190
- };
191
- masterTaggingPublicKey: string | {
192
- x: string;
193
- y: string;
194
- };
95
+ masterNullifierPublicKey: string;
96
+ masterIncomingViewingPublicKey: string;
97
+ masterOutgoingViewingPublicKey: string;
98
+ masterTaggingPublicKey: string;
195
99
  };
196
100
  salt?: any;
197
101
  deployer?: any;
@@ -223,22 +127,10 @@ export declare class SimulationOverrides {
223
127
  instance: {
224
128
  version: 1;
225
129
  publicKeys: {
226
- masterNullifierPublicKey: string | {
227
- x: string;
228
- y: string;
229
- };
230
- masterIncomingViewingPublicKey: string | {
231
- x: string;
232
- y: string;
233
- };
234
- masterOutgoingViewingPublicKey: string | {
235
- x: string;
236
- y: string;
237
- };
238
- masterTaggingPublicKey: string | {
239
- x: string;
240
- y: string;
241
- };
130
+ masterNullifierPublicKey: string;
131
+ masterIncomingViewingPublicKey: string;
132
+ masterOutgoingViewingPublicKey: string;
133
+ masterTaggingPublicKey: string;
242
134
  };
243
135
  salt?: any;
244
136
  deployer?: any;
@@ -255,22 +147,10 @@ export declare class SimulationOverrides {
255
147
  instance: {
256
148
  version: 1;
257
149
  publicKeys: {
258
- masterNullifierPublicKey: string | {
259
- x: string;
260
- y: string;
261
- };
262
- masterIncomingViewingPublicKey: string | {
263
- x: string;
264
- y: string;
265
- };
266
- masterOutgoingViewingPublicKey: string | {
267
- x: string;
268
- y: string;
269
- };
270
- masterTaggingPublicKey: string | {
271
- x: string;
272
- y: string;
273
- };
150
+ masterNullifierPublicKey: string;
151
+ masterIncomingViewingPublicKey: string;
152
+ masterOutgoingViewingPublicKey: string;
153
+ masterTaggingPublicKey: string;
274
154
  };
275
155
  salt?: any;
276
156
  deployer?: any;
@@ -1 +1 @@
1
- {"version":3,"file":"simulated_tx.d.ts","sourceRoot":"","sources":["../../src/tx/simulated_tx.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAY,MAAM,2BAA2B,CAAC;AAClE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAExD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,KAAK,gBAAgB,EAA0B,MAAM,eAAe,CAAC;AAC9E,OAAO,EACL,KAAK,2BAA2B,EAEjC,MAAM,6CAA6C,CAAC;AAErD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,oCAAoC,EAAE,MAAM,wDAAwD,CAAC;AAE9G,OAAO,EAEL,sBAAsB,EAEvB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,KAAK,eAAe,EAAyB,MAAM,gBAAgB,CAAC;AAC7E,OAAO,EAAE,yB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