@aztec/pxe 0.0.1-commit.88e6f9396 → 0.0.1-commit.8c0b8ff

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 (179) hide show
  1. package/dest/bin/check_oracle_version.js +4 -4
  2. package/dest/block_synchronizer/block_synchronizer.d.ts +1 -1
  3. package/dest/block_synchronizer/block_synchronizer.d.ts.map +1 -1
  4. package/dest/block_synchronizer/block_synchronizer.js +6 -0
  5. package/dest/config/index.d.ts +2 -2
  6. package/dest/config/index.d.ts.map +1 -1
  7. package/dest/config/index.js +1 -1
  8. package/dest/config/package_info.js +1 -1
  9. package/dest/contract_function_simulator/contract_function_simulator.d.ts +6 -4
  10. package/dest/contract_function_simulator/contract_function_simulator.d.ts.map +1 -1
  11. package/dest/contract_function_simulator/contract_function_simulator.js +11 -6
  12. package/dest/contract_function_simulator/ephemeral_array_service.d.ts +28 -0
  13. package/dest/contract_function_simulator/ephemeral_array_service.d.ts.map +1 -0
  14. package/dest/contract_function_simulator/ephemeral_array_service.js +78 -0
  15. package/dest/contract_function_simulator/noir-structs/event_validation_request.d.ts +3 -4
  16. package/dest/contract_function_simulator/noir-structs/event_validation_request.d.ts.map +1 -1
  17. package/dest/contract_function_simulator/noir-structs/event_validation_request.js +3 -6
  18. package/dest/contract_function_simulator/noir-structs/log_retrieval_request.d.ts +1 -1
  19. package/dest/contract_function_simulator/noir-structs/log_retrieval_request.js +1 -1
  20. package/dest/contract_function_simulator/noir-structs/log_retrieval_response.d.ts +1 -1
  21. package/dest/contract_function_simulator/noir-structs/log_retrieval_response.js +1 -1
  22. package/dest/contract_function_simulator/noir-structs/note_validation_request.d.ts +3 -4
  23. package/dest/contract_function_simulator/noir-structs/note_validation_request.d.ts.map +1 -1
  24. package/dest/contract_function_simulator/noir-structs/note_validation_request.js +3 -6
  25. package/dest/contract_function_simulator/oracle/interfaces.d.ts +31 -20
  26. package/dest/contract_function_simulator/oracle/interfaces.d.ts.map +1 -1
  27. package/dest/contract_function_simulator/oracle/legacy_oracle_mappings.d.ts +1 -1
  28. package/dest/contract_function_simulator/oracle/legacy_oracle_mappings.d.ts.map +1 -1
  29. package/dest/contract_function_simulator/oracle/legacy_oracle_mappings.js +28 -23
  30. package/dest/contract_function_simulator/oracle/oracle.d.ts +50 -20
  31. package/dest/contract_function_simulator/oracle/oracle.d.ts.map +1 -1
  32. package/dest/contract_function_simulator/oracle/oracle.js +157 -41
  33. package/dest/contract_function_simulator/oracle/private_execution.js +1 -1
  34. package/dest/contract_function_simulator/oracle/private_execution_oracle.d.ts +7 -8
  35. package/dest/contract_function_simulator/oracle/private_execution_oracle.d.ts.map +1 -1
  36. package/dest/contract_function_simulator/oracle/private_execution_oracle.js +19 -9
  37. package/dest/contract_function_simulator/oracle/utility_execution_oracle.d.ts +56 -39
  38. package/dest/contract_function_simulator/oracle/utility_execution_oracle.d.ts.map +1 -1
  39. package/dest/contract_function_simulator/oracle/utility_execution_oracle.js +202 -93
  40. package/dest/contract_function_simulator/pick_notes.d.ts +1 -1
  41. package/dest/contract_function_simulator/pick_notes.d.ts.map +1 -1
  42. package/dest/contract_function_simulator/pick_notes.js +14 -3
  43. package/dest/contract_function_simulator/proxied_contract_data_source.d.ts +1 -1
  44. package/dest/contract_function_simulator/proxied_contract_data_source.d.ts.map +1 -1
  45. package/dest/contract_function_simulator/proxied_contract_data_source.js +3 -0
  46. package/dest/contract_logging.d.ts +9 -4
  47. package/dest/contract_logging.d.ts.map +1 -1
  48. package/dest/contract_logging.js +21 -6
  49. package/dest/contract_sync/contract_sync_service.d.ts +3 -4
  50. package/dest/contract_sync/contract_sync_service.d.ts.map +1 -1
  51. package/dest/contract_sync/contract_sync_service.js +37 -35
  52. package/dest/contract_sync/helpers.d.ts +2 -3
  53. package/dest/contract_sync/helpers.d.ts.map +1 -1
  54. package/dest/contract_sync/helpers.js +7 -2
  55. package/dest/debug/pxe_debug_utils.d.ts +3 -3
  56. package/dest/debug/pxe_debug_utils.d.ts.map +1 -1
  57. package/dest/entrypoints/client/bundle/index.d.ts +1 -2
  58. package/dest/entrypoints/client/bundle/index.d.ts.map +1 -1
  59. package/dest/entrypoints/client/bundle/index.js +0 -1
  60. package/dest/entrypoints/client/bundle/utils.d.ts +2 -2
  61. package/dest/entrypoints/client/bundle/utils.d.ts.map +1 -1
  62. package/dest/entrypoints/client/bundle/utils.js +2 -2
  63. package/dest/entrypoints/client/lazy/index.d.ts +1 -2
  64. package/dest/entrypoints/client/lazy/index.d.ts.map +1 -1
  65. package/dest/entrypoints/client/lazy/index.js +0 -1
  66. package/dest/entrypoints/client/lazy/utils.d.ts +2 -2
  67. package/dest/entrypoints/client/lazy/utils.d.ts.map +1 -1
  68. package/dest/entrypoints/client/lazy/utils.js +2 -2
  69. package/dest/entrypoints/pxe_creation_options.d.ts +3 -1
  70. package/dest/entrypoints/pxe_creation_options.d.ts.map +1 -1
  71. package/dest/entrypoints/pxe_creation_options.js +3 -1
  72. package/dest/entrypoints/server/index.d.ts +2 -3
  73. package/dest/entrypoints/server/index.d.ts.map +1 -1
  74. package/dest/entrypoints/server/index.js +1 -2
  75. package/dest/entrypoints/server/utils.d.ts +2 -2
  76. package/dest/entrypoints/server/utils.d.ts.map +1 -1
  77. package/dest/entrypoints/server/utils.js +2 -2
  78. package/dest/events/event_service.d.ts +3 -2
  79. package/dest/events/event_service.d.ts.map +1 -1
  80. package/dest/events/event_service.js +16 -4
  81. package/dest/events/private_event_filter_validator.d.ts +3 -2
  82. package/dest/events/private_event_filter_validator.d.ts.map +1 -1
  83. package/dest/events/private_event_filter_validator.js +15 -0
  84. package/dest/logs/log_service.d.ts +7 -8
  85. package/dest/logs/log_service.d.ts.map +1 -1
  86. package/dest/logs/log_service.js +27 -37
  87. package/dest/messages/message_context_service.d.ts +3 -3
  88. package/dest/messages/message_context_service.d.ts.map +1 -1
  89. package/dest/messages/message_context_service.js +3 -3
  90. package/dest/notes/note_service.d.ts +4 -5
  91. package/dest/notes/note_service.d.ts.map +1 -1
  92. package/dest/notes/note_service.js +14 -5
  93. package/dest/notes_filter.d.ts +2 -3
  94. package/dest/notes_filter.d.ts.map +1 -1
  95. package/dest/oracle_version.d.ts +4 -3
  96. package/dest/oracle_version.d.ts.map +1 -1
  97. package/dest/oracle_version.js +20 -10
  98. package/dest/private_kernel/private_kernel_execution_prover.d.ts +1 -1
  99. package/dest/private_kernel/private_kernel_execution_prover.d.ts.map +1 -1
  100. package/dest/private_kernel/private_kernel_execution_prover.js +4 -7
  101. package/dest/pxe.d.ts +6 -7
  102. package/dest/pxe.d.ts.map +1 -1
  103. package/dest/pxe.js +17 -12
  104. package/dest/storage/anchor_block_store/anchor_block_store.js +1 -1
  105. package/dest/storage/capsule_store/capsule_service.d.ts +21 -0
  106. package/dest/storage/capsule_store/capsule_service.d.ts.map +1 -0
  107. package/dest/storage/capsule_store/capsule_service.js +50 -0
  108. package/dest/storage/capsule_store/capsule_store.d.ts +9 -9
  109. package/dest/storage/capsule_store/capsule_store.d.ts.map +1 -1
  110. package/dest/storage/capsule_store/capsule_store.js +36 -28
  111. package/dest/storage/capsule_store/index.d.ts +2 -1
  112. package/dest/storage/capsule_store/index.d.ts.map +1 -1
  113. package/dest/storage/capsule_store/index.js +1 -0
  114. package/dest/storage/contract_store/contract_store.d.ts +1 -1
  115. package/dest/storage/contract_store/contract_store.d.ts.map +1 -1
  116. package/dest/storage/contract_store/contract_store.js +4 -2
  117. package/dest/storage/metadata.d.ts +1 -1
  118. package/dest/storage/metadata.js +1 -1
  119. package/dest/storage/note_store/note_store.d.ts +1 -1
  120. package/dest/storage/note_store/note_store.d.ts.map +1 -1
  121. package/dest/storage/note_store/note_store.js +2 -2
  122. package/dest/tagging/recipient_sync/load_private_logs_for_sender_recipient_pair.d.ts +2 -2
  123. package/dest/tagging/recipient_sync/load_private_logs_for_sender_recipient_pair.d.ts.map +1 -1
  124. package/dest/tagging/recipient_sync/load_private_logs_for_sender_recipient_pair.js +1 -15
  125. package/package.json +16 -16
  126. package/src/bin/check_oracle_version.ts +4 -4
  127. package/src/block_synchronizer/block_synchronizer.ts +6 -0
  128. package/src/config/index.ts +1 -1
  129. package/src/config/package_info.ts +1 -1
  130. package/src/contract_function_simulator/contract_function_simulator.ts +14 -9
  131. package/src/contract_function_simulator/ephemeral_array_service.ts +110 -0
  132. package/src/contract_function_simulator/noir-structs/event_validation_request.ts +1 -4
  133. package/src/contract_function_simulator/noir-structs/log_retrieval_request.ts +1 -1
  134. package/src/contract_function_simulator/noir-structs/log_retrieval_response.ts +1 -1
  135. package/src/contract_function_simulator/noir-structs/note_validation_request.ts +1 -4
  136. package/src/contract_function_simulator/oracle/interfaces.ts +46 -18
  137. package/src/contract_function_simulator/oracle/legacy_oracle_mappings.ts +20 -51
  138. package/src/contract_function_simulator/oracle/oracle.ts +222 -36
  139. package/src/contract_function_simulator/oracle/private_execution.ts +1 -1
  140. package/src/contract_function_simulator/oracle/private_execution_oracle.ts +21 -11
  141. package/src/contract_function_simulator/oracle/utility_execution_oracle.ts +342 -120
  142. package/src/contract_function_simulator/pick_notes.ts +14 -3
  143. package/src/contract_function_simulator/proxied_contract_data_source.ts +8 -1
  144. package/src/contract_logging.ts +18 -5
  145. package/src/contract_sync/contract_sync_service.ts +64 -69
  146. package/src/contract_sync/helpers.ts +4 -4
  147. package/src/debug/pxe_debug_utils.ts +3 -3
  148. package/src/entrypoints/client/bundle/index.ts +0 -1
  149. package/src/entrypoints/client/bundle/utils.ts +2 -3
  150. package/src/entrypoints/client/lazy/index.ts +0 -1
  151. package/src/entrypoints/client/lazy/utils.ts +2 -3
  152. package/src/entrypoints/pxe_creation_options.ts +7 -0
  153. package/src/entrypoints/server/index.ts +1 -2
  154. package/src/entrypoints/server/utils.ts +2 -3
  155. package/src/events/event_service.ts +17 -4
  156. package/src/events/private_event_filter_validator.ts +21 -1
  157. package/src/logs/log_service.ts +57 -78
  158. package/src/messages/message_context_service.ts +3 -4
  159. package/src/notes/note_service.ts +18 -8
  160. package/src/notes_filter.ts +1 -3
  161. package/src/oracle_version.ts +20 -10
  162. package/src/private_kernel/private_kernel_execution_prover.ts +4 -9
  163. package/src/pxe.ts +24 -16
  164. package/src/storage/anchor_block_store/anchor_block_store.ts +1 -1
  165. package/src/storage/capsule_store/capsule_service.ts +90 -0
  166. package/src/storage/capsule_store/capsule_store.ts +44 -26
  167. package/src/storage/capsule_store/index.ts +1 -0
  168. package/src/storage/contract_store/contract_store.ts +8 -6
  169. package/src/storage/metadata.ts +1 -1
  170. package/src/storage/note_store/note_store.ts +2 -5
  171. package/src/tagging/recipient_sync/load_private_logs_for_sender_recipient_pair.ts +2 -14
  172. package/dest/access_scopes.d.ts +0 -9
  173. package/dest/access_scopes.d.ts.map +0 -1
  174. package/dest/access_scopes.js +0 -6
  175. package/dest/contract_function_simulator/noir-structs/message_tx_context.d.ts +0 -16
  176. package/dest/contract_function_simulator/noir-structs/message_tx_context.d.ts.map +0 -1
  177. package/dest/contract_function_simulator/noir-structs/message_tx_context.js +0 -57
  178. package/src/access_scopes.ts +0 -9
  179. package/src/contract_function_simulator/noir-structs/message_tx_context.ts +0 -55
@@ -1 +1 @@
1
- {"version":3,"file":"contract_store.d.ts","sourceRoot":"","sources":["../../../src/storage/contract_store/contract_store.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,EAAE,EAAE,MAAM,gCAAgC,CAAC;AAEpD,OAAO,EAAE,YAAY,EAAiC,MAAM,6BAA6B,CAAC;AAC1F,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,KAAK,EAAE,iBAAiB,EAAiB,MAAM,iBAAiB,CAAC;AACxE,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAEhB,KAAK,gCAAgC,EACrC,YAAY,EACZ,KAAK,qBAAqB,EAC1B,gBAAgB,EAMjB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,YAAY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oC,CAC/C,eAAe,EAAE,YAAY,EAC7B,QAAQ,EAAE,gBAAgB,GACzB,OAAO,CAAC,gCAAgC,CAAC,CAU3C;IAEY,yBAAyB,CACpC,eAAe,EAAE,YAAY,GAC5B,OAAO,CAAC,gCAAgC,GAAG,SAAS,CAAC,CAIvD;IAEY,cAAc,CACzB,eAAe,EAAE,YAAY,EAC7B,QAAQ,EAAE,gBAAgB,GACzB,OAAO,CAAC,WAAW,GAAG,SAAS,CAAC,CAGlC;IAED;;;;;;OAMG;IACU,wBAAwB,CACnC,eAAe,EAAE,YAAY,EAC7B,QAAQ,EAAE,gBAAgB,GACzB,OAAO,CAAC,qBAAqB,GAAG,SAAS,CAAC,CAO5C;IAEY,8BAA8B,CACzC,eAAe,EAAE,YAAY,GAC5B,OAAO,CAAC,qBAAqB,GAAG,SAAS,CAAC,CAI5C;IAED;;;;;;OAMG;IACU,4BAA4B,CACvC,eAAe,EAAE,EAAE,EACnB,QAAQ,EAAE,gBAAgB,GACzB,OAAO,CAAC,iBAAiB,CAAC,OAAO,oBAAoB,CAAC,GAAG,SAAS,CAAC,CAGrE;IAEY,oBAAoB,CAAC,eAAe,EAAE,YAAY,+BAG9D;IAEY,oBAAoB,CAAC,eAAe,EAAE,YAAY,EAAE,QAAQ,EAAE,gBAAgB,mBAI1F;IA0BY,eAAe,CAAC,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE,EAAE,EAAE,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC,CAyBvG;CACF"}
@@ -99,8 +99,10 @@ const VERSION = 1;
99
99
  return contractClass.id;
100
100
  }
101
101
  async addContractInstance(contract) {
102
+ await this.#store.transactionAsync(async ()=>{
103
+ await this.#contractInstances.set(contract.address.toString(), new SerializableContractInstance(contract).toBuffer());
104
+ });
102
105
  this.#contractClassIdMap.set(contract.address.toString(), contract.currentContractClassId);
103
- await this.#contractInstances.set(contract.address.toString(), new SerializableContractInstance(contract).toBuffer());
104
106
  }
105
107
  // Private getters
106
108
  async #getContractClassId(contractAddress) {
@@ -159,7 +161,7 @@ const VERSION = 1;
159
161
  }
160
162
  /** Returns a contract class for a given class id. */ async getContractClassWithPreimage(contractClassId) {
161
163
  const key = contractClassId.toString();
162
- const buf = await this.#contractClassData.getAsync(key);
164
+ const buf = await this.#store.transactionAsync(()=>this.#contractClassData.getAsync(key));
163
165
  if (!buf) {
164
166
  return undefined;
165
167
  }
@@ -1,2 +1,2 @@
1
- export declare const PXE_DATA_SCHEMA_VERSION = 4;
1
+ export declare const PXE_DATA_SCHEMA_VERSION = 5;
2
2
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWV0YWRhdGEuZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9zdG9yYWdlL21ldGFkYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGVBQU8sTUFBTSx1QkFBdUIsSUFBSSxDQUFDIn0=
@@ -1 +1 @@
1
- export const PXE_DATA_SCHEMA_VERSION = 4;
1
+ export const PXE_DATA_SCHEMA_VERSION = 5;
@@ -80,4 +80,4 @@ export declare class NoteStore implements StagedStore {
80
80
  commit(jobId: string): Promise<void>;
81
81
  discardStaged(jobId: string): Promise<void>;
82
82
  }
83
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibm90ZV9zdG9yZS5kLnRzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL3N0b3JhZ2Uvbm90ZV9zdG9yZS9ub3RlX3N0b3JlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUNBLE9BQU8sS0FBSyxFQUFFLEVBQUUsRUFBRSxNQUFNLDJCQUEyQixDQUFDO0FBQ3BELE9BQU8sS0FBSyxFQUFFLGlCQUFpQixFQUFxQyxNQUFNLGlCQUFpQixDQUFDO0FBQzVGLE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AI,CAAC,CAG1C;CAkCF"}
@@ -75,7 +75,7 @@ import { StoredNote } from './stored_note.js';
75
75
  * @returns Filtered and deduplicated notes (a note might be present in multiple scopes - we ensure it is only
76
76
  * returned once if this is the case)
77
77
  */ getNotes(filter, jobId) {
78
- if (filter.scopes !== 'ALL_SCOPES' && filter.scopes.length === 0) {
78
+ if (filter.scopes.length === 0) {
79
79
  return Promise.resolve([]);
80
80
  }
81
81
  return this.#store.transactionAsync(async ()=>{
@@ -135,7 +135,7 @@ import { StoredNote } from './stored_note.js';
135
135
  if (filter.siloedNullifier && !note.noteDao.siloedNullifier.equals(filter.siloedNullifier)) {
136
136
  continue;
137
137
  }
138
- if (filter.scopes !== 'ALL_SCOPES' && note.scopes.intersection(new Set(filter.scopes.map((s)=>s.toString()))).size === 0) {
138
+ if (note.scopes.intersection(new Set(filter.scopes.map((s)=>s.toString()))).size === 0) {
139
139
  continue;
140
140
  }
141
141
  foundNotes.set(note.noteDao.siloedNullifier.toString(), note.noteDao);
@@ -10,5 +10,5 @@ import type { RecipientTaggingStore } from '../../storage/tagging_store/recipien
10
10
  * @dev This function can be safely executed "in parallel" for other sender-recipient pairs because the data in
11
11
  * in the tagging data provider is indexed by the secret and hence completely disjoint.
12
12
  */
13
- export declare function loadPrivateLogsForSenderRecipientPair(secret: ExtendedDirectionalAppTaggingSecret, aztecNode: AztecNode, taggingStore: RecipientTaggingStore, anchorBlockNumber: BlockNumber, anchorBlockHash: BlockHash, jobId: string): Promise<TxScopedL2Log[]>;
14
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9hZF9wcml2YXRlX2xvZ3NfZm9yX3NlbmRlcl9yZWNpcGllbnRfcGFpci5kLnRzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL3RhZ2dpbmcvcmVjaXBpZW50X3N5bmMvbG9hZF9wcml2YXRlX2xvZ3NfZm9yX3NlbmRlcl9yZWNpcGllbnRfcGFpci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEtBQUssRUFBRSxXQUFXLEVBQUUsTUFBTSxpQ0FBaUMsQ0FBQztBQUNuRSxPQUFPLEtBQUssRUFBRSxTQUFTLEVBQUUsTUFBTSxxQkFBcUIsQ0FBQztBQUNyRCxPQUFPLEtBQUssRUFBRSxTQUFTLEVBQUUsTUFBTSxpQ0FBaUMsQ0FBQztBQUNqRSxPQUFPLEtBQUssRUFBRSxtQ0FBbUMsRUFBRSxhQUFhLEVBQUUsTUFBTSxvQkFBb0IsQ0FBQztBQUU3RixPQUFPLEtBQUssRUFBRSxxQkFBcUIsRUFBRSxNQUFNLHdEQUF3RCxDQUFDO0FBS3BHOzs7Ozs7R0FNRztBQUNILHdCQUFzQixxQ0FBcUMsQ0FDekQsTUFBTSxFQUFFLG1DQUFtQyxFQUMzQyxTQUFTLEVBQUUsU0FBUyxFQUNwQixZQUFZLEVBQUUscUJBQXFCLEVBQ25DLGlCQUFpQixFQUFFLFdBQVcsRUFDOUIsZUFBZSxFQUFFLFNBQVMsRUFDMUIsS0FBSyxFQUFFLE1BQU0sR0FDWixPQUFPLENBQUMsYUFBYSxFQUFFLENBQUMsQ0FtSDFCIn0=
13
+ export declare function loadPrivateLogsForSenderRecipientPair(secret: ExtendedDirectionalAppTaggingSecret, aztecNode: AztecNode, taggingStore: RecipientTaggingStore, anchorBlockNumber: BlockNumber, anchorBlockHash: BlockHash, currentTimestamp: bigint, finalizedBlockNumber: BlockNumber, jobId: string): Promise<TxScopedL2Log[]>;
14
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9hZF9wcml2YXRlX2xvZ3NfZm9yX3NlbmRlcl9yZWNpcGllbnRfcGFpci5kLnRzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL3RhZ2dpbmcvcmVjaXBpZW50X3N5bmMvbG9hZF9wcml2YXRlX2xvZ3NfZm9yX3NlbmRlcl9yZWNpcGllbnRfcGFpci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEtBQUssRUFBRSxXQUFXLEVBQUUsTUFBTSxpQ0FBaUMsQ0FBQztBQUNuRSxPQUFPLEtBQUssRUFBRSxTQUFTLEVBQUUsTUFBTSxxQkFBcUIsQ0FBQztBQUNyRCxPQUFPLEtBQUssRUFBRSxTQUFTLEVBQUUsTUFBTSxpQ0FBaUMsQ0FBQztBQUNqRSxPQUFPLEtBQUssRUFBRSxtQ0FBbUMsRUFBRSxhQUFhLEVBQUUsTUFBTSxvQkFBb0IsQ0FBQztBQUU3RixPQUFPLEtBQUssRUFBRSxxQkFBcUIsRUFBRSxNQUFNLHdEQUF3RCxDQUFDO0FBS3BHOzs7Ozs7R0FNRztBQUNILHdCQUFzQixxQ0FBcUMsQ0FDekQsTUFBTSxFQUFFLG1DQUFtQyxFQUMzQyxTQUFTLEVBQUUsU0FBUyxFQUNwQixZQUFZLEVBQUUscUJBQXFCLEVBQ25DLGlCQUFpQixFQUFFLFdBQVcsRUFDOUIsZUFBZSxFQUFFLFNBQVMsRUFDMUIsZ0JBQWdCLEVBQUUsTUFBTSxFQUN4QixvQkFBb0IsRUFBRSxXQUFXLEVBQ2pDLEtBQUssRUFBRSxNQUFNLEdBQ1osT0FBTyxDQUFDLGFBQWEsRUFBRSxDQUFDLENBcUcxQiJ9
@@ -1 +1 @@
1
- {"version":3,"file":"load_private_logs_for_sender_recipient_pair.d.ts","sourceRoot":"","sources":["../../../src/tagging/recipient_sync/load_private_logs_for_sender_recipient_pair.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,KAAK,EAAE,mCAAmC,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAE7F,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,wDAAwD,CAAC;AAKpG;;;;;;GAMG;AACH,wBAAsB,qCAAqC,CACzD,MAAM,EAAE,mCAAmC,EAC3C,SAAS,EAAE,SAAS,EACpB,YAAY,EAAE,qBAAqB,EACnC,iBAAiB,EAAE,WAAW,EAC9B,eAAe,EAAE,SAAS,EAC1B,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,aAAa,EAAE,CAAC,CAmH1B"}
1
+ {"version":3,"file":"load_private_logs_for_sender_recipient_pair.d.ts","sourceRoot":"","sources":["../../../src/tagging/recipient_sync/load_private_logs_for_sender_recipient_pair.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,KAAK,EAAE,mCAAmC,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAE7F,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,wDAAwD,CAAC;AAKpG;;;;;;GAMG;AACH,wBAAsB,qCAAqC,CACzD,MAAM,EAAE,mCAAmC,EAC3C,SAAS,EAAE,SAAS,EACpB,YAAY,EAAE,qBAAqB,EACnC,iBAAiB,EAAE,WAAW,EAC9B,eAAe,EAAE,SAAS,EAC1B,gBAAgB,EAAE,MAAM,EACxB,oBAAoB,EAAE,WAAW,EACjC,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,aAAa,EAAE,CAAC,CAqG1B"}
@@ -7,7 +7,7 @@ import { loadLogsForRange } from './utils/load_logs_for_range.js';
7
7
  *
8
8
  * @dev This function can be safely executed "in parallel" for other sender-recipient pairs because the data in
9
9
  * in the tagging data provider is indexed by the secret and hence completely disjoint.
10
- */ export async function loadPrivateLogsForSenderRecipientPair(secret, aztecNode, taggingStore, anchorBlockNumber, anchorBlockHash, jobId) {
10
+ */ export async function loadPrivateLogsForSenderRecipientPair(secret, aztecNode, taggingStore, anchorBlockNumber, anchorBlockHash, currentTimestamp, finalizedBlockNumber, jobId) {
11
11
  // # Explanation of how the algorithm works
12
12
  // When we perform the sync we will look at logs that correspond to the tagging index range
13
13
  // (highestAgedIndex, highestFinalizedIndex + WINDOW_LEN]
@@ -45,20 +45,6 @@ import { loadLogsForRange } from './utils/load_logs_for_range.js';
45
45
  // When a sender chooses a tagging index, they will select an index that is at most `WINDOW_LEN` greater than
46
46
  // the highest finalized index. If that index was already used, they will throw an error. For this reason we
47
47
  // don't have to look further than `highestFinalizedIndex + WINDOW_LEN`.
48
- let finalizedBlockNumber, currentTimestamp;
49
- {
50
- const [l2Tips, latestBlockHeader] = await Promise.all([
51
- aztecNode.getL2Tips(),
52
- aztecNode.getBlockHeader('latest')
53
- ]);
54
- if (!latestBlockHeader) {
55
- throw new Error('Node failed to return latest block header when syncing logs');
56
- }
57
- [finalizedBlockNumber, currentTimestamp] = [
58
- l2Tips.finalized.block.number,
59
- latestBlockHeader.globalVariables.timestamp
60
- ];
61
- }
62
48
  let start, end;
63
49
  {
64
50
  const currentHighestAgedIndex = await taggingStore.getHighestAgedIndex(secret, jobId);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aztec/pxe",
3
- "version": "0.0.1-commit.88e6f9396",
3
+ "version": "0.0.1-commit.8c0b8ff",
4
4
  "type": "module",
5
5
  "typedocOptions": {
6
6
  "entryPoints": [
@@ -70,19 +70,19 @@
70
70
  ]
71
71
  },
72
72
  "dependencies": {
73
- "@aztec/bb-prover": "0.0.1-commit.88e6f9396",
74
- "@aztec/bb.js": "0.0.1-commit.88e6f9396",
75
- "@aztec/builder": "0.0.1-commit.88e6f9396",
76
- "@aztec/constants": "0.0.1-commit.88e6f9396",
77
- "@aztec/ethereum": "0.0.1-commit.88e6f9396",
78
- "@aztec/foundation": "0.0.1-commit.88e6f9396",
79
- "@aztec/key-store": "0.0.1-commit.88e6f9396",
80
- "@aztec/kv-store": "0.0.1-commit.88e6f9396",
81
- "@aztec/noir-protocol-circuits-types": "0.0.1-commit.88e6f9396",
82
- "@aztec/noir-types": "0.0.1-commit.88e6f9396",
83
- "@aztec/protocol-contracts": "0.0.1-commit.88e6f9396",
84
- "@aztec/simulator": "0.0.1-commit.88e6f9396",
85
- "@aztec/stdlib": "0.0.1-commit.88e6f9396",
73
+ "@aztec/bb-prover": "0.0.1-commit.8c0b8ff",
74
+ "@aztec/bb.js": "0.0.1-commit.8c0b8ff",
75
+ "@aztec/builder": "0.0.1-commit.8c0b8ff",
76
+ "@aztec/constants": "0.0.1-commit.8c0b8ff",
77
+ "@aztec/ethereum": "0.0.1-commit.8c0b8ff",
78
+ "@aztec/foundation": "0.0.1-commit.8c0b8ff",
79
+ "@aztec/key-store": "0.0.1-commit.8c0b8ff",
80
+ "@aztec/kv-store": "0.0.1-commit.8c0b8ff",
81
+ "@aztec/noir-protocol-circuits-types": "0.0.1-commit.8c0b8ff",
82
+ "@aztec/noir-types": "0.0.1-commit.8c0b8ff",
83
+ "@aztec/protocol-contracts": "0.0.1-commit.8c0b8ff",
84
+ "@aztec/simulator": "0.0.1-commit.8c0b8ff",
85
+ "@aztec/stdlib": "0.0.1-commit.8c0b8ff",
86
86
  "koa": "^2.16.1",
87
87
  "koa-router": "^13.1.1",
88
88
  "lodash.omit": "^4.5.0",
@@ -91,8 +91,8 @@
91
91
  "viem": "npm:@aztec/viem@2.38.2"
92
92
  },
93
93
  "devDependencies": {
94
- "@aztec/noir-test-contracts.js": "0.0.1-commit.88e6f9396",
95
- "@aztec/world-state": "0.0.1-commit.88e6f9396",
94
+ "@aztec/merkle-tree": "0.0.1-commit.8c0b8ff",
95
+ "@aztec/noir-test-contracts.js": "0.0.1-commit.8c0b8ff",
96
96
  "@jest/globals": "^30.0.0",
97
97
  "@types/jest": "^30.0.0",
98
98
  "@types/lodash.omit": "^4.5.7",
@@ -13,8 +13,9 @@ import { ORACLE_INTERFACE_HASH } from '../oracle_version.js';
13
13
  *
14
14
  * The Oracle interface needs to be versioned to ensure compatibility between Aztec.nr and PXE. This function computes
15
15
  * a hash of the Oracle interface and compares it against a known hash. If they don't match, it means the interface has
16
- * changed and the ORACLE_VERSION constant needs to be incremented and the ORACLE_INTERFACE_HASH constant needs to be
17
- * updated.
16
+ * changed and the oracle version needs to be bumped:
17
+ * - If the change is backward-breaking (e.g. removing/renaming an oracle), bump ORACLE_VERSION_MAJOR.
18
+ * - If the change is an oracle addition (non-breaking), bump ORACLE_VERSION_MINOR.
18
19
  *
19
20
  * TODO(#16581): The following only takes into consideration changes to the oracles defined in Oracle.ts and omits TXE
20
21
  * oracles. Ensure this checks TXE oracles as well. This hasn't been implemented yet since we don't have a clean TXE
@@ -26,9 +27,8 @@ function assertOracleInterfaceMatches(): void {
26
27
  // We use keccak256 here just because we already have it in the dependencies.
27
28
  const oracleInterfaceHash = keccak256String(oracleInterfaceSignature);
28
29
  if (oracleInterfaceHash !== ORACLE_INTERFACE_HASH) {
29
- // This check exists only to notify you when you need to update the ORACLE_VERSION constant.
30
30
  throw new Error(
31
- `The Oracle interface has changed, which implies a breaking change in the aztec.nr/PXE oracle interface. Update ORACLE_INTERFACE_HASH to ${oracleInterfaceHash} and bump ORACLE_VERSION in pxe/src/oracle_version.ts.`,
31
+ `The Oracle interface has changed. Update ORACLE_INTERFACE_HASH to ${oracleInterfaceHash} in pxe/src/oracle_version.ts and bump the oracle version (ORACLE_VERSION_MAJOR for breaking changes, ORACLE_VERSION_MINOR for oracle additions).`,
32
32
  );
33
33
  }
34
34
  }
@@ -77,6 +77,8 @@ export class BlockSynchronizer implements L2BlockStreamEventHandler {
77
77
  const blockHeader = await this.node.getBlockHeader(BlockNumber(event.block.number));
78
78
  if (blockHeader) {
79
79
  await this.updateAnchorBlockHeader(blockHeader);
80
+ } else {
81
+ this.log.warn(`Block header not found for proven block ${event.block.number}, skipping anchor update`);
80
82
  }
81
83
  }
82
84
  break;
@@ -86,6 +88,8 @@ export class BlockSynchronizer implements L2BlockStreamEventHandler {
86
88
  const blockHeader = await this.node.getBlockHeader(BlockNumber(event.block.number));
87
89
  if (blockHeader) {
88
90
  await this.updateAnchorBlockHeader(blockHeader);
91
+ } else {
92
+ this.log.warn(`Block header not found for finalized block ${event.block.number}, skipping anchor update`);
89
93
  }
90
94
  }
91
95
  break;
@@ -152,6 +156,8 @@ export class BlockSynchronizer implements L2BlockStreamEventHandler {
152
156
  }
153
157
 
154
158
  this.log.debug(`Syncing PXE with the node`);
159
+ // Capture the promise locally so we always await the exact promise we created, even if this.isSyncing is modified
160
+ // between assignment and await (e.g. due to future refactors introducing a yield point).
155
161
  const isSyncing = this.doSync();
156
162
  this.isSyncing = isSyncing;
157
163
  try {
@@ -5,8 +5,8 @@ import {
5
5
  numberConfigHelper,
6
6
  parseBooleanEnv,
7
7
  } from '@aztec/foundation/config';
8
+ import { type DataStoreConfig, dataConfigMappings } from '@aztec/kv-store/config';
8
9
  import { type ChainConfig, chainConfigMappings } from '@aztec/stdlib/config';
9
- import { type DataStoreConfig, dataConfigMappings } from '@aztec/stdlib/kv-store';
10
10
 
11
11
  export { getPackageInfo } from './package_info.js';
12
12
 
@@ -1,3 +1,3 @@
1
1
  export function getPackageInfo() {
2
- return { version: '5.0.0', name: '@aztec/pxe' };
2
+ return { version: '4.2.0', name: '@aztec/pxe' };
3
3
  }
@@ -42,7 +42,7 @@ import type { FunctionCall } from '@aztec/stdlib/abi';
42
42
  import { FunctionSelector, FunctionType } from '@aztec/stdlib/abi';
43
43
  import type { AuthWitness } from '@aztec/stdlib/auth-witness';
44
44
  import { AztecAddress } from '@aztec/stdlib/aztec-address';
45
- import type { BlockParameter } from '@aztec/stdlib/block';
45
+ import type { BlockParameter, L2TipsProvider } from '@aztec/stdlib/block';
46
46
  import { Gas } from '@aztec/stdlib/gas';
47
47
  import {
48
48
  computeNoteHashNonce,
@@ -89,10 +89,10 @@ import {
89
89
  getFinalMinRevertibleSideEffectCounter,
90
90
  } from '@aztec/stdlib/tx';
91
91
 
92
- import type { AccessScopes } from '../access_scopes.js';
93
92
  import type { ContractSyncService } from '../contract_sync/contract_sync_service.js';
94
93
  import type { MessageContextService } from '../messages/message_context_service.js';
95
94
  import type { AddressStore } from '../storage/address_store/address_store.js';
95
+ import { CapsuleService } from '../storage/capsule_store/capsule_service.js';
96
96
  import type { CapsuleStore } from '../storage/capsule_store/capsule_store.js';
97
97
  import type { ContractStore } from '../storage/contract_store/contract_store.js';
98
98
  import type { NoteStore } from '../storage/note_store/note_store.js';
@@ -122,7 +122,7 @@ export type ContractSimulatorRunOpts = {
122
122
  /** The address used as a tagging sender when emitting private logs. */
123
123
  senderForTags?: AztecAddress;
124
124
  /** The accounts whose notes we can access in this call. */
125
- scopes: AccessScopes;
125
+ scopes: AztecAddress[];
126
126
  /** The job ID for staged writes. */
127
127
  jobId: string;
128
128
  };
@@ -134,6 +134,7 @@ export type ContractFunctionSimulatorArgs = {
134
134
  keyStore: KeyStore;
135
135
  addressStore: AddressStore;
136
136
  aztecNode: AztecNode;
137
+ l2TipsStore: L2TipsProvider;
137
138
  senderTaggingStore: SenderTaggingStore;
138
139
  recipientTaggingStore: RecipientTaggingStore;
139
140
  senderAddressBookStore: SenderAddressBookStore;
@@ -154,6 +155,7 @@ export class ContractFunctionSimulator {
154
155
  private readonly keyStore: KeyStore;
155
156
  private readonly addressStore: AddressStore;
156
157
  private readonly aztecNode: AztecNode;
158
+ private readonly l2TipsStore: L2TipsProvider;
157
159
  private readonly senderTaggingStore: SenderTaggingStore;
158
160
  private readonly recipientTaggingStore: RecipientTaggingStore;
159
161
  private readonly senderAddressBookStore: SenderAddressBookStore;
@@ -169,6 +171,7 @@ export class ContractFunctionSimulator {
169
171
  this.keyStore = args.keyStore;
170
172
  this.addressStore = args.addressStore;
171
173
  this.aztecNode = args.aztecNode;
174
+ this.l2TipsStore = args.l2TipsStore;
172
175
  this.senderTaggingStore = args.senderTaggingStore;
173
176
  this.recipientTaggingStore = args.recipientTaggingStore;
174
177
  this.senderAddressBookStore = args.senderAddressBookStore;
@@ -245,7 +248,7 @@ export class ContractFunctionSimulator {
245
248
  senderTaggingStore: this.senderTaggingStore,
246
249
  recipientTaggingStore: this.recipientTaggingStore,
247
250
  senderAddressBookStore: this.senderAddressBookStore,
248
- capsuleStore: this.capsuleStore,
251
+ capsuleService: new CapsuleService(this.capsuleStore, scopes),
249
252
  privateEventStore: this.privateEventStore,
250
253
  messageContextService: this.messageContextService,
251
254
  contractSyncService: this.contractSyncService,
@@ -255,6 +258,7 @@ export class ContractFunctionSimulator {
255
258
  scopes,
256
259
  senderForTags,
257
260
  simulator: this.simulator,
261
+ l2TipsStore: this.l2TipsStore,
258
262
  });
259
263
 
260
264
  const setupTime = simulatorSetupTimer.ms();
@@ -284,7 +288,7 @@ export class ContractFunctionSimulator {
284
288
  );
285
289
  const publicFunctionsCalldata = await Promise.all(
286
290
  publicCallRequests.map(async r => {
287
- const calldata = await privateExecutionOracle.loadFromExecutionCache(r.calldataHash);
291
+ const calldata = await privateExecutionOracle.getHashPreimage(r.calldataHash);
288
292
  return new HashedValues(calldata, r.calldataHash);
289
293
  }),
290
294
  );
@@ -319,7 +323,7 @@ export class ContractFunctionSimulator {
319
323
  call: FunctionCall,
320
324
  authwits: AuthWitness[],
321
325
  anchorBlockHeader: BlockHeader,
322
- scopes: AccessScopes,
326
+ scopes: AztecAddress[],
323
327
  jobId: string,
324
328
  ): Promise<{ result: Fr[]; offchainEffects: OffchainEffect[] }> {
325
329
  const entryPointArtifact = await this.contractStore.getFunctionArtifactWithDebugMetadata(call.to, call.selector);
@@ -340,10 +344,11 @@ export class ContractFunctionSimulator {
340
344
  aztecNode: this.aztecNode,
341
345
  recipientTaggingStore: this.recipientTaggingStore,
342
346
  senderAddressBookStore: this.senderAddressBookStore,
343
- capsuleStore: this.capsuleStore,
347
+ capsuleService: new CapsuleService(this.capsuleStore, scopes),
344
348
  privateEventStore: this.privateEventStore,
345
349
  messageContextService: this.messageContextService,
346
350
  contractSyncService: this.contractSyncService,
351
+ l2TipsStore: this.l2TipsStore,
347
352
  jobId,
348
353
  scopes,
349
354
  });
@@ -841,9 +846,9 @@ function meterGasUsed(data: PrivateToRollupAccumulatedData | PrivateToPublicAccu
841
846
  meteredL2Gas += numPrivatelogs * L2_GAS_PER_PRIVATE_LOG;
842
847
 
843
848
  const numContractClassLogs = arrayNonEmptyLength(data.contractClassLogsHashes, log => log.isEmpty());
844
- // Every contract class log emits its contract address as an additional field
849
+ // Every contract class log emits its length and contract address as additional fields
845
850
  meteredDAFields += data.contractClassLogsHashes.reduce(
846
- (acc, log) => (!log.isEmpty() ? acc + log.logHash.length + 1 : acc),
851
+ (acc, log) => (!log.isEmpty() ? acc + log.logHash.length + 2 : acc),
847
852
  0,
848
853
  );
849
854
  meteredL2Gas += numContractClassLogs * L2_GAS_PER_CONTRACT_CLASS_LOG;
@@ -0,0 +1,110 @@
1
+ import { Fr } from '@aztec/foundation/curves/bn254';
2
+
3
+ /** In-memory store for ephemeral arrays scoped to a single contract call frame. */
4
+ export class EphemeralArrayService {
5
+ /**
6
+ * Maps a slot to the elements of the array stored at that slot. Each element is a serialized representation of
7
+ * the original type.
8
+ */
9
+ #arrays: Map<string, Fr[][]> = new Map();
10
+
11
+ /** Returns all elements in the array, or an empty array if uninitialized. */
12
+ readArrayAt(slot: Fr): Fr[][] {
13
+ return this.#arrays.get(slot.toString()) ?? [];
14
+ }
15
+
16
+ #setArray(slot: Fr, array: Fr[][]): void {
17
+ this.#arrays.set(slot.toString(), array);
18
+ }
19
+
20
+ /** Returns the number of elements in the array at the given slot. */
21
+ len(slot: Fr): number {
22
+ return this.readArrayAt(slot).length;
23
+ }
24
+
25
+ /** Appends an element to the array and returns the new length. */
26
+ push(slot: Fr, elements: Fr[]): number {
27
+ const array = this.readArrayAt(slot);
28
+ array.push(elements);
29
+ this.#setArray(slot, array);
30
+ return array.length;
31
+ }
32
+
33
+ /** Removes and returns the last element. Throws if empty. */
34
+ pop(slot: Fr): Fr[] {
35
+ const array = this.readArrayAt(slot);
36
+ if (array.length === 0) {
37
+ throw new Error(`Ephemeral array at slot ${slot} is empty`);
38
+ }
39
+ const element = array.pop()!;
40
+ this.#setArray(slot, array);
41
+ return element;
42
+ }
43
+
44
+ /** Returns the element at the given index. Throws if out of bounds. */
45
+ get(slot: Fr, index: number): Fr[] {
46
+ const array = this.readArrayAt(slot);
47
+ if (index < 0 || index >= array.length) {
48
+ throw new Error(
49
+ `Ephemeral array index ${index} out of bounds for array of length ${array.length} at slot ${slot}`,
50
+ );
51
+ }
52
+ return array[index];
53
+ }
54
+
55
+ /** Overwrites the element at the given index. Throws if out of bounds. */
56
+ set(slot: Fr, index: number, value: Fr[]): void {
57
+ const array = this.readArrayAt(slot);
58
+ if (index < 0 || index >= array.length) {
59
+ throw new Error(
60
+ `Ephemeral array index ${index} out of bounds for array of length ${array.length} at slot ${slot}`,
61
+ );
62
+ }
63
+ array[index] = value;
64
+ }
65
+
66
+ /** Removes the element at the given index, shifting subsequent elements backward. Throws if out of bounds. */
67
+ remove(slot: Fr, index: number): void {
68
+ const array = this.readArrayAt(slot);
69
+ if (index < 0 || index >= array.length) {
70
+ throw new Error(
71
+ `Ephemeral array index ${index} out of bounds for array of length ${array.length} at slot ${slot}`,
72
+ );
73
+ }
74
+ array.splice(index, 1);
75
+ }
76
+
77
+ /** Removes all elements from the array. */
78
+ clear(slot: Fr): void {
79
+ this.#arrays.delete(slot.toString());
80
+ }
81
+
82
+ /** Allocates a fresh, unused slot for a new ephemeral array. */
83
+ allocateSlot(): Fr {
84
+ let slot: Fr;
85
+ do {
86
+ slot = Fr.random();
87
+ } while (this.#arrays.has(slot.toString()));
88
+ return slot;
89
+ }
90
+
91
+ /** Creates a new ephemeral array pre-populated with the given elements and returns its slot. */
92
+ newArray(elements: Fr[][]): Fr {
93
+ const slot = this.allocateSlot();
94
+ this.#setArray(slot, elements);
95
+ return slot;
96
+ }
97
+
98
+ /** Copies `count` elements from the source array to the destination array (overwrites destination). */
99
+ copy(srcSlot: Fr, dstSlot: Fr, count: number): void {
100
+ const srcArray = this.readArrayAt(srcSlot);
101
+ if (count > srcArray.length) {
102
+ throw new Error(
103
+ `Cannot copy ${count} elements from ephemeral array of length ${srcArray.length} at slot ${srcSlot}`,
104
+ );
105
+ }
106
+ // Deep copy the elements to avoid aliasing
107
+ const copied = srcArray.slice(0, count).map(el => [...el]);
108
+ this.#setArray(dstSlot, copied);
109
+ }
110
+ }
@@ -6,7 +6,7 @@ import { TxHash } from '@aztec/stdlib/tx';
6
6
 
7
7
  /**
8
8
  * Intermediate struct used to perform batch event validation by PXE. The `utilityValidateAndStoreEnqueuedNotesAndEvents` oracle
9
- * expects for values of this type to be stored in a `CapsuleArray`.
9
+ * expects for values of this type to be stored in a `EphemeralArray`.
10
10
  */
11
11
  export class EventValidationRequest {
12
12
  constructor(
@@ -16,7 +16,6 @@ export class EventValidationRequest {
16
16
  public serializedEvent: Fr[],
17
17
  public eventCommitment: Fr,
18
18
  public txHash: TxHash,
19
- public recipient: AztecAddress,
20
19
  ) {}
21
20
 
22
21
  static fromFields(fields: Fr[], maxEventSerializedLen: number): EventValidationRequest {
@@ -33,7 +32,6 @@ export class EventValidationRequest {
33
32
 
34
33
  const eventCommitment = reader.readField();
35
34
  const txHash = TxHash.fromField(reader.readField());
36
- const recipient = AztecAddress.fromField(reader.readField());
37
35
 
38
36
  if (reader.remainingFields() !== 0) {
39
37
  throw new Error(
@@ -48,7 +46,6 @@ export class EventValidationRequest {
48
46
  serializedEvent,
49
47
  eventCommitment,
50
48
  txHash,
51
- recipient,
52
49
  );
53
50
  }
54
51
  }
@@ -5,7 +5,7 @@ import { Tag } from '@aztec/stdlib/logs';
5
5
 
6
6
  /**
7
7
  * Intermediate struct used to perform batch log retrieval by PXE. The `utilityBulkRetrieveLogs` oracle expects values of this
8
- * type to be stored in a `CapsuleArray`.
8
+ * type to be stored in a `EphemeralArray`.
9
9
  */
10
10
  export class LogRetrievalRequest {
11
11
  constructor(
@@ -7,7 +7,7 @@ const MAX_LOG_CONTENT_LEN = PRIVATE_LOG_CIPHERTEXT_LEN;
7
7
 
8
8
  /**
9
9
  * Intermediate struct used to perform batch log retrieval by PXE. The `utilityBulkRetrieveLogs` oracle stores values of this
10
- * type in a `CapsuleArray`.
10
+ * type in a `EphemeralArray`.
11
11
  */
12
12
  export class LogRetrievalResponse {
13
13
  constructor(
@@ -5,7 +5,7 @@ import { TxHash } from '@aztec/stdlib/tx';
5
5
 
6
6
  /**
7
7
  * Intermediate struct used to perform batch note validation by PXE. The `utilityValidateAndStoreEnqueuedNotesAndEvents` oracle
8
- * expects for values of this type to be stored in a `CapsuleArray`.
8
+ * expects for values of this type to be stored in a `EphemeralArray`.
9
9
  */
10
10
  export class NoteValidationRequest {
11
11
  constructor(
@@ -18,7 +18,6 @@ export class NoteValidationRequest {
18
18
  public noteHash: Fr,
19
19
  public nullifier: Fr,
20
20
  public txHash: TxHash,
21
- public recipient: AztecAddress,
22
21
  ) {}
23
22
 
24
23
  static fromFields(fields: Fr[], maxNotePackedLen: number): NoteValidationRequest {
@@ -37,7 +36,6 @@ export class NoteValidationRequest {
37
36
  const noteHash = reader.readField();
38
37
  const nullifier = reader.readField();
39
38
  const txHash = TxHash.fromField(reader.readField());
40
- const recipient = AztecAddress.fromField(reader.readField());
41
39
 
42
40
  if (reader.remainingFields() !== 0) {
43
41
  throw new Error(
@@ -55,7 +53,6 @@ export class NoteValidationRequest {
55
53
  noteHash,
56
54
  nullifier,
57
55
  txHash,
58
- recipient,
59
56
  );
60
57
  }
61
58
  }