@aztec/pxe 0.0.1-commit.4d79d1f2d → 0.0.1-commit.4eabbdb

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 (90) hide show
  1. package/dest/access_scopes.d.ts +9 -0
  2. package/dest/access_scopes.d.ts.map +1 -0
  3. package/dest/access_scopes.js +6 -0
  4. package/dest/config/package_info.js +1 -1
  5. package/dest/contract_function_simulator/contract_function_simulator.d.ts +8 -6
  6. package/dest/contract_function_simulator/contract_function_simulator.d.ts.map +1 -1
  7. package/dest/contract_function_simulator/contract_function_simulator.js +107 -37
  8. package/dest/contract_function_simulator/noir-structs/event_validation_request.js +1 -1
  9. package/dest/contract_function_simulator/noir-structs/note_validation_request.d.ts +2 -2
  10. package/dest/contract_function_simulator/noir-structs/note_validation_request.d.ts.map +1 -1
  11. package/dest/contract_function_simulator/noir-structs/note_validation_request.js +1 -1
  12. package/dest/contract_function_simulator/oracle/private_execution_oracle.d.ts +3 -2
  13. package/dest/contract_function_simulator/oracle/private_execution_oracle.d.ts.map +1 -1
  14. package/dest/contract_function_simulator/oracle/private_execution_oracle.js +1 -1
  15. package/dest/contract_function_simulator/oracle/utility_execution_oracle.d.ts +4 -3
  16. package/dest/contract_function_simulator/oracle/utility_execution_oracle.d.ts.map +1 -1
  17. package/dest/contract_function_simulator/oracle/utility_execution_oracle.js +1 -1
  18. package/dest/contract_sync/contract_sync_service.d.ts +4 -3
  19. package/dest/contract_sync/contract_sync_service.d.ts.map +1 -1
  20. package/dest/contract_sync/contract_sync_service.js +10 -10
  21. package/dest/contract_sync/helpers.d.ts +3 -2
  22. package/dest/contract_sync/helpers.d.ts.map +1 -1
  23. package/dest/contract_sync/helpers.js +3 -3
  24. package/dest/debug/pxe_debug_utils.d.ts +5 -4
  25. package/dest/debug/pxe_debug_utils.d.ts.map +1 -1
  26. package/dest/debug/pxe_debug_utils.js +4 -4
  27. package/dest/entrypoints/client/bundle/index.d.ts +3 -1
  28. package/dest/entrypoints/client/bundle/index.d.ts.map +1 -1
  29. package/dest/entrypoints/client/bundle/index.js +2 -0
  30. package/dest/entrypoints/client/lazy/index.d.ts +3 -1
  31. package/dest/entrypoints/client/lazy/index.d.ts.map +1 -1
  32. package/dest/entrypoints/client/lazy/index.js +2 -0
  33. package/dest/entrypoints/server/index.d.ts +3 -1
  34. package/dest/entrypoints/server/index.d.ts.map +1 -1
  35. package/dest/entrypoints/server/index.js +2 -0
  36. package/dest/logs/log_service.d.ts +3 -2
  37. package/dest/logs/log_service.d.ts.map +1 -1
  38. package/dest/logs/log_service.js +1 -1
  39. package/dest/notes/note_service.d.ts +4 -3
  40. package/dest/notes/note_service.d.ts.map +1 -1
  41. package/dest/notes/note_service.js +3 -2
  42. package/dest/notes_filter.d.ts +25 -0
  43. package/dest/notes_filter.d.ts.map +1 -0
  44. package/dest/notes_filter.js +4 -0
  45. package/dest/private_kernel/hints/compute_tx_expiration_timestamp.d.ts +4 -0
  46. package/dest/private_kernel/hints/compute_tx_expiration_timestamp.d.ts.map +1 -0
  47. package/dest/private_kernel/hints/{compute_tx_include_by_timestamp.js → compute_tx_expiration_timestamp.js} +12 -12
  48. package/dest/private_kernel/hints/index.d.ts +1 -1
  49. package/dest/private_kernel/hints/index.js +1 -1
  50. package/dest/private_kernel/hints/private_kernel_reset_private_inputs_builder.js +4 -4
  51. package/dest/private_kernel/private_kernel_execution_prover.js +6 -6
  52. package/dest/pxe.d.ts +12 -11
  53. package/dest/pxe.d.ts.map +1 -1
  54. package/dest/pxe.js +17 -15
  55. package/dest/storage/note_store/note_store.d.ts +3 -2
  56. package/dest/storage/note_store/note_store.d.ts.map +1 -1
  57. package/dest/storage/note_store/note_store.js +2 -2
  58. package/dest/tagging/get_all_logs_by_tags.d.ts +1 -1
  59. package/dest/tagging/get_all_logs_by_tags.d.ts.map +1 -1
  60. package/dest/tagging/get_all_logs_by_tags.js +17 -3
  61. package/dest/tagging/recipient_sync/load_private_logs_for_sender_recipient_pair.js +4 -4
  62. package/dest/tagging/recipient_sync/utils/find_highest_indexes.js +2 -2
  63. package/package.json +16 -16
  64. package/src/access_scopes.ts +9 -0
  65. package/src/config/package_info.ts +1 -1
  66. package/src/contract_function_simulator/contract_function_simulator.ts +213 -55
  67. package/src/contract_function_simulator/noir-structs/event_validation_request.ts +1 -1
  68. package/src/contract_function_simulator/noir-structs/note_validation_request.ts +1 -1
  69. package/src/contract_function_simulator/oracle/private_execution_oracle.ts +4 -3
  70. package/src/contract_function_simulator/oracle/utility_execution_oracle.ts +4 -3
  71. package/src/contract_sync/contract_sync_service.ts +19 -12
  72. package/src/contract_sync/helpers.ts +7 -2
  73. package/src/debug/pxe_debug_utils.ts +9 -8
  74. package/src/entrypoints/client/bundle/index.ts +2 -0
  75. package/src/entrypoints/client/lazy/index.ts +2 -0
  76. package/src/entrypoints/server/index.ts +2 -0
  77. package/src/logs/log_service.ts +3 -6
  78. package/src/notes/note_service.ts +4 -3
  79. package/src/notes_filter.ts +26 -0
  80. package/src/private_kernel/hints/{compute_tx_include_by_timestamp.ts → compute_tx_expiration_timestamp.ts} +13 -13
  81. package/src/private_kernel/hints/index.ts +1 -1
  82. package/src/private_kernel/hints/private_kernel_reset_private_inputs_builder.ts +7 -7
  83. package/src/private_kernel/private_kernel_execution_prover.ts +6 -6
  84. package/src/pxe.ts +29 -27
  85. package/src/storage/note_store/note_store.ts +7 -3
  86. package/src/tagging/get_all_logs_by_tags.ts +28 -4
  87. package/src/tagging/recipient_sync/load_private_logs_for_sender_recipient_pair.ts +4 -4
  88. package/src/tagging/recipient_sync/utils/find_highest_indexes.ts +2 -2
  89. package/dest/private_kernel/hints/compute_tx_include_by_timestamp.d.ts +0 -4
  90. package/dest/private_kernel/hints/compute_tx_include_by_timestamp.d.ts.map +0 -1
@@ -1,4 +1,4 @@
1
- import { MAX_INCLUDE_BY_TIMESTAMP_DURATION } from '@aztec/constants';
1
+ import { MAX_TX_LIFETIME } from '@aztec/constants';
2
2
  import type { TxScopedL2Log } from '@aztec/stdlib/logs';
3
3
 
4
4
  /**
@@ -16,7 +16,7 @@ export function findHighestIndexes(
16
16
  const ageInSeconds = currentTimestamp - log.blockTimestamp;
17
17
 
18
18
  if (
19
- ageInSeconds >= BigInt(MAX_INCLUDE_BY_TIMESTAMP_DURATION) &&
19
+ ageInSeconds >= BigInt(MAX_TX_LIFETIME) &&
20
20
  (highestAgedIndex === undefined || taggingIndex > highestAgedIndex)
21
21
  ) {
22
22
  highestAgedIndex = taggingIndex;
@@ -1,4 +0,0 @@
1
- import type { PrivateKernelCircuitPublicInputs } from '@aztec/stdlib/kernel';
2
- import type { UInt64 } from '@aztec/stdlib/types';
3
- export declare function computeTxIncludeByTimestamp(previousKernel: PrivateKernelCircuitPublicInputs, maxDuration?: number): UInt64;
4
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcHV0ZV90eF9pbmNsdWRlX2J5X3RpbWVzdGFtcC5kLnRzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL3ByaXZhdGVfa2VybmVsL2hpbnRzL2NvbXB1dGVfdHhfaW5jbHVkZV9ieV90aW1lc3RhbXAudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxLQUFLLEVBQUUsZ0NBQWdDLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQztBQUM3RSxPQUFPLEtBQUssRUFBRSxNQUFNLEVBQUUsTUFBTSxxQkFBcUIsQ0FBQztBQXFCbEQsd0JBQWdCLDJCQUEyQixDQUN6QyxjQUFjLEVBQUUsZ0NBQWdDLEVBQ2hELFdBQVcsU0FBb0MsR0FDOUMsTUFBTSxDQStCUiJ9
@@ -1 +0,0 @@
1
- {"version":3,"file":"compute_tx_include_by_timestamp.d.ts","sourceRoot":"","sources":["../../../src/private_kernel/hints/compute_tx_include_by_timestamp.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,sBAAsB,CAAC;AAC7E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAqBlD,wBAAgB,2BAA2B,CACzC,cAAc,EAAE,gCAAgC,EAChD,WAAW,SAAoC,GAC9C,MAAM,CA+BR"}