@aztec/stdlib 0.80.0 → 0.81.0

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 (109) hide show
  1. package/dest/abi/contract_artifact.d.ts.map +1 -1
  2. package/dest/abi/contract_artifact.js +11 -0
  3. package/dest/avm/avm.d.ts +173 -405
  4. package/dest/avm/avm.d.ts.map +1 -1
  5. package/dest/avm/avm.js +34 -27
  6. package/dest/avm/avm_proving_request.d.ts +84 -186
  7. package/dest/avm/avm_proving_request.d.ts.map +1 -1
  8. package/dest/avm/public_data_write.d.ts +1 -0
  9. package/dest/avm/public_data_write.d.ts.map +1 -1
  10. package/dest/avm/public_data_write.js +3 -0
  11. package/dest/block/body.d.ts +1 -0
  12. package/dest/block/body.d.ts.map +1 -1
  13. package/dest/block/body.js +3 -0
  14. package/dest/block/index.d.ts +1 -0
  15. package/dest/block/index.d.ts.map +1 -1
  16. package/dest/block/index.js +1 -0
  17. package/dest/block/l2_block.d.ts +2 -1
  18. package/dest/block/l2_block.d.ts.map +1 -1
  19. package/dest/block/l2_block.js +3 -0
  20. package/dest/block/l2_block_downloader/l2_block_stream.d.ts +3 -3
  21. package/dest/block/l2_block_downloader/l2_block_stream.d.ts.map +1 -1
  22. package/dest/block/l2_block_downloader/l2_block_stream.js +2 -2
  23. package/dest/block/l2_block_source.d.ts +3 -0
  24. package/dest/block/l2_block_source.d.ts.map +1 -1
  25. package/dest/block/published_l2_block.d.ts +89 -0
  26. package/dest/block/published_l2_block.d.ts.map +1 -0
  27. package/dest/block/published_l2_block.js +32 -0
  28. package/dest/contract/interfaces/contract_data_source.d.ts +3 -9
  29. package/dest/contract/interfaces/contract_data_source.d.ts.map +1 -1
  30. package/dest/database-version/version_manager.js +1 -1
  31. package/dest/interfaces/archiver.d.ts.map +1 -1
  32. package/dest/interfaces/archiver.js +4 -3
  33. package/dest/interfaces/aztec-node.d.ts +1 -1
  34. package/dest/interfaces/aztec-node.d.ts.map +1 -1
  35. package/dest/interfaces/aztec-node.js +2 -0
  36. package/dest/interfaces/proving-job.d.ts +106 -208
  37. package/dest/interfaces/proving-job.d.ts.map +1 -1
  38. package/dest/logs/contract_class_log.d.ts +1 -0
  39. package/dest/logs/contract_class_log.d.ts.map +1 -1
  40. package/dest/logs/contract_class_log.js +3 -0
  41. package/dest/logs/l1_payload/index.d.ts +1 -1
  42. package/dest/logs/l1_payload/index.d.ts.map +1 -1
  43. package/dest/logs/l1_payload/index.js +1 -1
  44. package/dest/logs/private_log.d.ts +2 -1
  45. package/dest/logs/private_log.d.ts.map +1 -1
  46. package/dest/logs/private_log.js +14 -3
  47. package/dest/logs/public_log.d.ts.map +1 -1
  48. package/dest/logs/public_log.js +4 -1
  49. package/dest/logs/tx_scoped_l2_log.d.ts +16 -28
  50. package/dest/logs/tx_scoped_l2_log.d.ts.map +1 -1
  51. package/dest/logs/tx_scoped_l2_log.js +28 -19
  52. package/dest/note/extended_note.d.ts +10 -21
  53. package/dest/note/extended_note.d.ts.map +1 -1
  54. package/dest/note/extended_note.js +19 -28
  55. package/dest/note/notes_filter.d.ts +2 -2
  56. package/dest/note/notes_filter.d.ts.map +1 -1
  57. package/dest/note/notes_filter.js +1 -1
  58. package/dest/p2p/consensus_payload.d.ts +3 -1
  59. package/dest/p2p/consensus_payload.d.ts.map +1 -1
  60. package/dest/p2p/consensus_payload.js +3 -0
  61. package/dest/proofs/proof.d.ts +0 -1
  62. package/dest/proofs/proof.d.ts.map +1 -1
  63. package/dest/proofs/proof.js +2 -7
  64. package/dest/rollup/block_root_rollup.d.ts +1 -1
  65. package/dest/tests/factories.d.ts +3 -2
  66. package/dest/tests/factories.d.ts.map +1 -1
  67. package/dest/tests/factories.js +14 -8
  68. package/dest/tests/mocks.d.ts +2 -2
  69. package/dest/tests/mocks.d.ts.map +1 -1
  70. package/dest/tests/mocks.js +4 -5
  71. package/dest/trees/nullifier_membership_witness.d.ts +7 -7
  72. package/dest/trees/public_data_witness.d.ts +7 -7
  73. package/dest/tx/capsule.d.ts +2 -0
  74. package/dest/tx/capsule.d.ts.map +1 -1
  75. package/dest/tx/capsule.js +2 -0
  76. package/dest/tx/tx_effect.d.ts +1 -0
  77. package/dest/tx/tx_effect.d.ts.map +1 -1
  78. package/dest/tx/tx_effect.js +4 -1
  79. package/package.json +6 -6
  80. package/src/abi/contract_artifact.ts +11 -0
  81. package/src/avm/avm.ts +42 -39
  82. package/src/avm/public_data_write.ts +4 -0
  83. package/src/block/body.ts +6 -0
  84. package/src/block/index.ts +1 -0
  85. package/src/block/l2_block.ts +4 -0
  86. package/src/block/l2_block_downloader/l2_block_stream.ts +5 -5
  87. package/src/block/l2_block_source.ts +4 -0
  88. package/src/block/published_l2_block.ts +45 -0
  89. package/src/contract/interfaces/contract_data_source.ts +3 -10
  90. package/src/database-version/version_manager.ts +1 -1
  91. package/src/interfaces/archiver.ts +9 -6
  92. package/src/interfaces/aztec-node.ts +4 -1
  93. package/src/logs/contract_class_log.ts +8 -0
  94. package/src/logs/l1_payload/index.ts +1 -1
  95. package/src/logs/private_log.ts +13 -3
  96. package/src/logs/public_log.ts +11 -1
  97. package/src/logs/tx_scoped_l2_log.ts +28 -25
  98. package/src/note/extended_note.ts +17 -36
  99. package/src/note/notes_filter.ts +3 -3
  100. package/src/p2p/consensus_payload.ts +9 -0
  101. package/src/proofs/proof.ts +2 -8
  102. package/src/tests/factories.ts +15 -14
  103. package/src/tests/mocks.ts +4 -9
  104. package/src/tx/capsule.ts +2 -0
  105. package/src/tx/tx_effect.ts +23 -1
  106. package/dest/logs/l1_payload/l1_note_payload.d.ts +0 -82
  107. package/dest/logs/l1_payload/l1_note_payload.d.ts.map +0 -1
  108. package/dest/logs/l1_payload/l1_note_payload.js +0 -129
  109. package/src/logs/l1_payload/l1_note_payload.ts +0 -182
@@ -1 +1 @@
1
- {"version":3,"file":"proving-job.d.ts","sourceRoot":"","sources":["../../src/interfaces/proving-job.ts"],"names":[],"mappings":";;AAAA,OAAO,EACL,0BAA0B,E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,EACxB,MAAM,EAAE,gBAAgB,CAAC,QAAQ,CAAC,GACjC,gBAAgB,CAElB;AAED,eAAO,MAAM,yBAAyB;;;;;;;;;EAGpC,CAAC;AACH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAElF,eAAO,MAAM,wBAAwB;;;;;;;;;EAGnC,CAAC;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAEhF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;IAGlC,CAAC;AACH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAE9E,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAM3B,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
@@ -13,6 +13,7 @@ export declare class ContractClassLog {
13
13
  unsiloedFirstField?: Fr | undefined;
14
14
  constructor(contractAddress: AztecAddress, fields: Fr[]);
15
15
  toFields(): Fr[];
16
+ equals(other: ContractClassLog): boolean;
16
17
  static fromFields(fields: Fr[] | FieldReader): ContractClassLog;
17
18
  isEmpty(): boolean;
18
19
  static empty(): ContractClassLog;
@@ -1 +1 @@
1
- {"version":3,"file":"contract_class_log.d.ts","sourceRoot":"","sources":["../../src/logs/contract_class_log.ts"],"names":[],"mappings":";;;AAEA,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAE9C,OAAO,EAAE,YAAY,EAAE,WAAW,EAAqB,MAAM,6BAA6B,CAAC;AAE3F,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CA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E,EAAE,EAAE;IAQrE,QAAQ,IAAI,EAAE,EAAE;IAIhB,MAAM,CAAC,KAAK,EAAE,gBAAgB;IAQ9B,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,EAAE,EAAE,GAAG,WAAW;IAU5C,OAAO;IAIP,MAAM,CAAC,KAAK;IAIZ,QAAQ,IAAI,MAAM;IAIlB,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,YAAY;IAW/C,KAAK;WAIQ,MAAM;IAWnB,gBAAgB;IAOhB,gBAAgB;IAKhB,qBAAqB,CAAC,KAAK,EAAE,EAAE;IAI/B,UAAU;IAQJ,IAAI;IAUJ,IAAI;IAIV,MAAM,KAAK,MAAM;;;;;;;;;;;;OAOhB;IAED,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,MAAM;CAK3B"}
@@ -27,6 +27,9 @@ export class ContractClassLog {
27
27
  ...this.fields
28
28
  ];
29
29
  }
30
+ equals(other) {
31
+ return this.contractAddress.equals(other.contractAddress) && this.fields.length === other.fields.length && this.fields.every((f, i)=>f.equals(other.fields[i]));
32
+ }
30
33
  static fromFields(fields) {
31
34
  const reader = FieldReader.asReader(fields);
32
35
  // Below line gives error 'Type instantiation is excessively deep and possibly infinite. ts(2589)'
@@ -1,3 +1,3 @@
1
1
  export * from './encrypted_log_payload.js';
2
- export * from './l1_note_payload.js';
2
+ export * from './shared_secret_derivation.js';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/logs/l1_payload/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/logs/l1_payload/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,+BAA+B,CAAC"}
@@ -1,2 +1,2 @@
1
1
  export * from './encrypted_log_payload.js';
2
- export * from './l1_note_payload.js';
2
+ export * from './shared_secret_derivation.js';
@@ -16,7 +16,7 @@ export declare class PrivateLog {
16
16
  static empty(): PrivateLog;
17
17
  toBuffer(): Buffer;
18
18
  static fromBuffer(buffer: Buffer | BufferReader): PrivateLog;
19
- static random(): PrivateLog;
19
+ static random(tag?: Fr): PrivateLog;
20
20
  getEmittedLength(): number;
21
21
  getEmittedFields(): Fr[];
22
22
  static get schema(): z.ZodEffects<z.ZodObject<{
@@ -28,6 +28,7 @@ export declare class PrivateLog {
28
28
  }>, PrivateLog, {
29
29
  fields: string[];
30
30
  }>;
31
+ equals(other: PrivateLog): boolean;
31
32
  [inspect.custom](): string;
32
33
  }
33
34
  //# sourceMappingURL=private_log.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"private_log.d.ts","sourceRoot":"","sources":["../../src/logs/private_log.ts"],"names":[],"mappings":";;;AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,kBAAkB,CAAC;AAE9D,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAE9C,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,KAAK,KAAK,EAAqB,MAAM,6BAA6B,CAAC;AAEvG,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,qBAAa,UAAU;IAGF,MAAM,EAAE,KAAK,CAAC,EAAE,EAAE,OAAO,0BAA0B,CAAC;IAFvE,MAAM,CAAC,aAAa,SAAiD;gBAElD,MAAM,EAAE,KAAK,CAAC,EAAE,EAAE,OAAO,0BAA0B,CAAC;IAEvE,QAAQ,IAAI,EAAE,EAAE;IAIhB,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,EAAE,EAAE,GAAG,WAAW;IAK5C,OAAO;IAIP,MAAM,CAAC,KAAK;IAIZ,QAAQ,IAAI,MAAM;IAIlB,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG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IN_FIELDS, PUBLIC_LOG_DATA_SIZE_IN_FIELDS } from '@aztec/constants';
2
2
  import { makeTuple } from '@aztec/foundation/array';
3
3
  import { Fr } from '@aztec/foundation/fields';
4
4
  import { schemas } from '@aztec/foundation/schemas';
@@ -31,8 +31,13 @@ export class PrivateLog {
31
31
  const reader = BufferReader.asReader(buffer);
32
32
  return new PrivateLog(reader.readArray(PRIVATE_LOG_SIZE_IN_FIELDS, Fr));
33
33
  }
34
- static random() {
35
- return new PrivateLog(makeTuple(PRIVATE_LOG_SIZE_IN_FIELDS, Fr.random));
34
+ static random(tag = Fr.random()) {
35
+ return PrivateLog.fromFields([
36
+ tag,
37
+ ...Array.from({
38
+ length: PRIVATE_LOG_SIZE_IN_FIELDS - 1
39
+ }, ()=>Fr.random())
40
+ ]);
36
41
  }
37
42
  getEmittedLength() {
38
43
  // This assumes that we cut trailing zeroes from the end of the log. In ts, these will always be added back.
@@ -44,10 +49,16 @@ export class PrivateLog {
44
49
  return this.fields.slice(0, lastNonZeroIndex + 1);
45
50
  }
46
51
  static get schema() {
52
+ if (PUBLIC_LOG_DATA_SIZE_IN_FIELDS + 1 == PRIVATE_LOG_SIZE_IN_FIELDS) {
53
+ throw new Error('Constants got updated and schema for PublicLog matches that of PrivateLog. This needs to be updated now as Zod is no longer able to differentiate the 2 in TxScopedL2Log.');
54
+ }
47
55
  return z.object({
48
56
  fields: z.array(schemas.Fr)
49
57
  }).transform(({ fields })=>PrivateLog.fromFields(fields));
50
58
  }
59
+ equals(other) {
60
+ return this.fields.every((field, i)=>field.equals(other.fields[i]));
61
+ }
51
62
  [inspect.custom]() {
52
63
  return `PrivateLog {
53
64
  fields: [${this.fields.map((x)=>inspect(x)).join(', ')}],
@@ -1 +1 @@
1
- {"version":3,"file":"public_log.d.ts","sourceRoot":"","sources":["../../src/logs/public_log.ts"],"names":[],"mappings":";;;AAAA,OAAO,EAAE,8BAA8B,EAA6B,MAAM,kBAAkB,CAAC;AAC7F,OAAO,EAAE,KAAK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S, PUBLIC_LOG_SIZE_IN_FIELDS } from '@aztec/constants';
2
2
  import { makeTuple } from '@aztec/foundation/array';
3
3
  import { Fr } from '@aztec/foundation/fields';
4
4
  import { schemas } from '@aztec/foundation/schemas';
@@ -60,6 +60,9 @@ export class PublicLog {
60
60
  return `PublicLog: (contractAddress: ${this.contractAddress} log: ${this.log})`;
61
61
  }
62
62
  static get schema() {
63
+ if (PUBLIC_LOG_DATA_SIZE_IN_FIELDS + 1 == PRIVATE_LOG_SIZE_IN_FIELDS) {
64
+ throw new Error('Constants got updated and schema for PrivateLog matches that of PublicLog. This needs to be updated now as Zod is no longer able to differentiate the 2 in TxScopedL2Log.');
65
+ }
63
66
  return z.object({
64
67
  contractAddress: AztecAddress.schema,
65
68
  log: z.array(schemas.Fr)
@@ -2,59 +2,47 @@
2
2
  /// <reference types="node" resolution-mode="require"/>
3
3
  import { z } from 'zod';
4
4
  import { TxHash } from '../tx/tx_hash.js';
5
+ import { PrivateLog } from './private_log.js';
6
+ import { PublicLog } from './public_log.js';
5
7
  export declare class TxScopedL2Log {
6
8
  txHash: TxHash;
7
9
  dataStartIndexForTx: number;
8
10
  blockNumber: number;
9
- isFromPublic: boolean;
10
- logData: Buffer;
11
- constructor(txHash: TxHash, dataStartIndexForTx: number, blockNumber: number, isFromPublic: boolean, logData: Buffer);
11
+ log: PrivateLog | PublicLog;
12
+ constructor(txHash: TxHash, dataStartIndexForTx: number, blockNumber: number, log: PrivateLog | PublicLog);
13
+ get isFromPublic(): boolean;
12
14
  static get schema(): z.ZodEffects<z.ZodObject<{
13
15
  txHash: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, Buffer, string>, TxHash, string>;
14
16
  dataStartIndexForTx: z.ZodNumber;
15
17
  blockNumber: z.ZodNumber;
16
- isFromPublic: z.ZodBoolean;
17
- logData: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Buffer, string>, z.ZodEffects<z.ZodObject<{
18
- type: z.ZodLiteral<"Buffer">;
19
- data: z.ZodArray<z.ZodNumber, "many">;
18
+ log: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
19
+ fields: z.ZodArray<z.ZodType<import("@aztec/foundation/schemas").Fr, any, string>, "many">;
20
20
  }, "strip", z.ZodTypeAny, {
21
- type: "Buffer";
22
- data: number[];
21
+ fields: import("@aztec/foundation/schemas").Fr[];
23
22
  }, {
24
- type: "Buffer";
25
- data: number[];
26
- }>, Buffer, {
27
- type: "Buffer";
28
- data: number[];
29
- }>]>;
23
+ fields: string[];
24
+ }>, PrivateLog, {
25
+ fields: string[];
26
+ }>, import("@aztec/foundation/schemas").ZodFor<PublicLog>]>;
30
27
  }, "strip", z.ZodTypeAny, {
31
28
  blockNumber: number;
29
+ log: PublicLog | PrivateLog;
32
30
  txHash: TxHash;
33
31
  dataStartIndexForTx: number;
34
- isFromPublic: boolean;
35
- logData: Buffer;
36
32
  }, {
37
33
  blockNumber: number;
38
34
  txHash: string;
39
35
  dataStartIndexForTx: number;
40
- isFromPublic: boolean;
41
- logData: string | {
42
- type: "Buffer";
43
- data: number[];
44
- };
36
+ log?: any;
45
37
  }>, TxScopedL2Log, {
46
38
  blockNumber: number;
47
39
  txHash: string;
48
40
  dataStartIndexForTx: number;
49
- isFromPublic: boolean;
50
- logData: string | {
51
- type: "Buffer";
52
- data: number[];
53
- };
41
+ log?: any;
54
42
  }>;
55
43
  toBuffer(): Buffer;
56
44
  static fromBuffer(buffer: Buffer): TxScopedL2Log;
57
- static random(): TxScopedL2Log;
45
+ static random(): Promise<TxScopedL2Log>;
58
46
  equals(other: TxScopedL2Log): boolean;
59
47
  }
60
48
  //# sourceMappingURL=tx_scoped_l2_log.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tx_scoped_l2_log.d.ts","sourceRoot":"","sources":["../../src/logs/tx_scoped_l2_log.ts"],"names":[],"mappings":";;AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,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M;IAMnB,MAAM,CAAC,KAAK,EAAE,aAAa;CAU5B"}
@@ -1,14 +1,13 @@
1
- import { Fr } from '@aztec/foundation/fields';
2
1
  import { BufferReader, boolToBuffer, numToUInt32BE } from '@aztec/foundation/serialize';
3
2
  import { z } from 'zod';
4
- import { schemas } from '../schemas/schemas.js';
5
3
  import { TxHash } from '../tx/tx_hash.js';
4
+ import { PrivateLog } from './private_log.js';
5
+ import { PublicLog } from './public_log.js';
6
6
  export class TxScopedL2Log {
7
7
  txHash;
8
8
  dataStartIndexForTx;
9
9
  blockNumber;
10
- isFromPublic;
11
- logData;
10
+ log;
12
11
  constructor(/*
13
12
  * Hash of the tx where the log is included
14
13
  */ txHash, /*
@@ -17,42 +16,52 @@ export class TxScopedL2Log {
17
16
  */ dataStartIndexForTx, /*
18
17
  * The block this log is included in
19
18
  */ blockNumber, /*
20
- * Indicates if the log comes from the public logs stream (partial note)
21
- */ isFromPublic, /*
22
- * The log data
23
- */ logData){
19
+ * The log data as either a PrivateLog or PublicLog
20
+ */ log){
24
21
  this.txHash = txHash;
25
22
  this.dataStartIndexForTx = dataStartIndexForTx;
26
23
  this.blockNumber = blockNumber;
27
- this.isFromPublic = isFromPublic;
28
- this.logData = logData;
24
+ this.log = log;
25
+ }
26
+ get isFromPublic() {
27
+ return this.log instanceof PublicLog;
29
28
  }
30
29
  static get schema() {
31
30
  return z.object({
32
31
  txHash: TxHash.schema,
33
32
  dataStartIndexForTx: z.number(),
34
33
  blockNumber: z.number(),
35
- isFromPublic: z.boolean(),
36
- logData: schemas.Buffer
37
- }).transform(({ txHash, dataStartIndexForTx, blockNumber, isFromPublic, logData })=>new TxScopedL2Log(txHash, dataStartIndexForTx, blockNumber, isFromPublic, logData));
34
+ log: z.union([
35
+ PrivateLog.schema,
36
+ PublicLog.schema
37
+ ])
38
+ }).transform(({ txHash, dataStartIndexForTx, blockNumber, log })=>new TxScopedL2Log(txHash, dataStartIndexForTx, blockNumber, log));
38
39
  }
39
40
  toBuffer() {
41
+ const isFromPublic = this.log instanceof PublicLog;
40
42
  return Buffer.concat([
41
43
  this.txHash.toBuffer(),
42
44
  numToUInt32BE(this.dataStartIndexForTx),
43
45
  numToUInt32BE(this.blockNumber),
44
- boolToBuffer(this.isFromPublic),
45
- this.logData
46
+ boolToBuffer(isFromPublic),
47
+ this.log.toBuffer()
46
48
  ]);
47
49
  }
48
50
  static fromBuffer(buffer) {
49
51
  const reader = BufferReader.asReader(buffer);
50
- return new TxScopedL2Log(reader.readObject(TxHash), reader.readNumber(), reader.readNumber(), reader.readBoolean(), reader.readToEnd());
52
+ const txHash = reader.readObject(TxHash);
53
+ const dataStartIndexForTx = reader.readNumber();
54
+ const blockNumber = reader.readNumber();
55
+ const isFromPublic = reader.readBoolean();
56
+ const log = isFromPublic ? PublicLog.fromBuffer(reader) : PrivateLog.fromBuffer(reader);
57
+ return new TxScopedL2Log(txHash, dataStartIndexForTx, blockNumber, log);
51
58
  }
52
- static random() {
53
- return new TxScopedL2Log(TxHash.random(), 1, 1, false, Fr.random().toBuffer());
59
+ static async random() {
60
+ const isFromPublic = Math.random() < 0.5;
61
+ const log = isFromPublic ? await PublicLog.random() : PrivateLog.random();
62
+ return new TxScopedL2Log(TxHash.random(), 1, 1, log);
54
63
  }
55
64
  equals(other) {
56
- return this.txHash.equals(other.txHash) && this.dataStartIndexForTx === other.dataStartIndexForTx && this.blockNumber === other.blockNumber && this.isFromPublic === other.isFromPublic && this.logData.equals(other.logData);
65
+ return this.txHash.equals(other.txHash) && this.dataStartIndexForTx === other.dataStartIndexForTx && this.blockNumber === other.blockNumber && (this.log instanceof PublicLog && other.log instanceof PublicLog || this.log instanceof PrivateLog && other.log instanceof PrivateLog) && this.log.equals(other.log);
57
66
  }
58
67
  }
@@ -3,7 +3,6 @@
3
3
  import { Fr } from '@aztec/foundation/fields';
4
4
  import { BufferReader } from '@aztec/foundation/serialize';
5
5
  import { z } from 'zod';
6
- import { NoteSelector } from '../abi/note_selector.js';
7
6
  import { AztecAddress } from '../aztec-address/index.js';
8
7
  import { type ZodFor } from '../schemas/index.js';
9
8
  import { TxHash } from '../tx/tx_hash.js';
@@ -14,27 +13,23 @@ import { Note } from './note.js';
14
13
  export declare class ExtendedNote {
15
14
  /** The note as emitted from the Noir contract. */
16
15
  note: Note;
17
- /** The owner whose public key was used to encrypt the note. */
18
- owner: AztecAddress;
16
+ /** The address whose public key was used to encrypt the note. */
17
+ recipient: AztecAddress;
19
18
  /** The contract address this note is created in. */
20
19
  contractAddress: AztecAddress;
21
20
  /** The specific storage location of the note on the contract. */
22
21
  storageSlot: Fr;
23
- /** The type identifier of the note on the contract. */
24
- noteTypeId: NoteSelector;
25
22
  /** The hash of the tx the note was created in. */
26
23
  txHash: TxHash;
27
24
  constructor(
28
25
  /** The note as emitted from the Noir contract. */
29
26
  note: Note,
30
- /** The owner whose public key was used to encrypt the note. */
31
- owner: AztecAddress,
27
+ /** The address whose public key was used to encrypt the note. */
28
+ recipient: AztecAddress,
32
29
  /** The contract address this note is created in. */
33
30
  contractAddress: AztecAddress,
34
31
  /** The specific storage location of the note on the contract. */
35
32
  storageSlot: Fr,
36
- /** The type identifier of the note on the contract. */
37
- noteTypeId: NoteSelector,
38
33
  /** The hash of the tx the note was created in. */
39
34
  txHash: TxHash);
40
35
  toBuffer(): Buffer;
@@ -50,14 +45,12 @@ export declare class UniqueNote extends ExtendedNote {
50
45
  constructor(
51
46
  /** The note as emitted from the Noir contract. */
52
47
  note: Note,
53
- /** The owner whose public key was used to encrypt the note. */
54
- owner: AztecAddress,
48
+ /** The recipient whose public key was used to encrypt the note. */
49
+ recipient: AztecAddress,
55
50
  /** The contract address this note is created in. */
56
51
  contractAddress: AztecAddress,
57
52
  /** The specific storage location of the note on the contract. */
58
53
  storageSlot: Fr,
59
- /** The type identifier of the note on the contract. */
60
- noteTypeId: NoteSelector,
61
54
  /** The hash of the tx the note was created in. */
62
55
  txHash: TxHash,
63
56
  /** The nonce of the note. */
@@ -79,19 +72,17 @@ export declare class UniqueNote extends ExtendedNote {
79
72
  type: "Buffer";
80
73
  data: number[];
81
74
  }>;
82
- owner: ZodFor<AztecAddress>;
75
+ recipient: ZodFor<AztecAddress>;
83
76
  contractAddress: ZodFor<AztecAddress>;
84
77
  storageSlot: ZodFor<Fr>;
85
- noteTypeId: z.ZodType<NoteSelector, any, string>;
86
78
  txHash: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, Buffer, string>, TxHash, string>;
87
79
  nonce: ZodFor<Fr>;
88
80
  }, "strip", z.ZodTypeAny, {
89
- owner: AztecAddress;
90
81
  storageSlot: Fr;
91
82
  contractAddress: AztecAddress;
83
+ recipient: AztecAddress;
92
84
  txHash: TxHash;
93
85
  note: Note;
94
- noteTypeId: NoteSelector;
95
86
  nonce: Fr;
96
87
  }, {
97
88
  txHash: string;
@@ -99,10 +90,9 @@ export declare class UniqueNote extends ExtendedNote {
99
90
  type: "Buffer";
100
91
  data: number[];
101
92
  };
102
- noteTypeId: string;
103
- owner?: any;
104
93
  storageSlot?: any;
105
94
  contractAddress?: any;
95
+ recipient?: any;
106
96
  nonce?: any;
107
97
  }>, UniqueNote, {
108
98
  txHash: string;
@@ -110,10 +100,9 @@ export declare class UniqueNote extends ExtendedNote {
110
100
  type: "Buffer";
111
101
  data: number[];
112
102
  };
113
- noteTypeId: string;
114
- owner?: any;
115
103
  storageSlot?: any;
116
104
  contractAddress?: any;
105
+ recipient?: any;
117
106
  nonce?: any;
118
107
  }>;
119
108
  toBuffer(): Buffer;
@@ -1 +1 @@
1
- {"version":3,"file":"extended_note.d.ts","sourceRoot":"","sources":["../../src/note/extended_note.ts"],"names":[],"mappings":";;AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAqB,MAAM,6BAA6B,CAAC;AAG9E,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,MAAM,yBAA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E,MAAM,GAAG,YAAY;IAY/C,MAAM,KAAK,MAAM,IAAI,MAAM,CAAC,YAAY,CAAC,CAYxC;IAED,QAAQ;IAIR,MAAM,CAAC,UAAU,CAAC,GAAG,EAAE,MAAM;WAIhB,MAAM;CASpB;AAED,qBAAa,UAAW,SAAQ,YAAY;IAYxC,6BAA6B;IACtB,KAAK,EAAE,EAAE;;IAXhB,kDAAkD;IAClD,IAAI,EAAE,IAAI;IACV,mEAAmE;IACnE,SAAS,EAAE,YAAY;IACvB,oDAAoD;IACpD,eAAe,EAAE,YAAY;IAC7B,iEAAiE;IACjE,WAAW,EAAE,EAAE;IACf,kDAAkD;IAClD,MAAM,EAAE,MAAM;IACd,6BAA6B;IACtB,KAAK,EAAE,EAAE;IAKlB,WAAoB,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAazB;IAEQ,QAAQ,IAAI,MAAM;WAWL,MAAM;WAWZ,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,YAAY;WAaxC,UAAU,CAAC,GAAG,EAAE,MAAM;CAGvC"}
@@ -2,7 +2,6 @@ import { Fr } from '@aztec/foundation/fields';
2
2
  import { BufferReader, serializeToBuffer } from '@aztec/foundation/serialize';
3
3
  import { bufferToHex, hexToBuffer } from '@aztec/foundation/string';
4
4
  import { z } from 'zod';
5
- import { NoteSelector } from '../abi/note_selector.js';
6
5
  import { AztecAddress } from '../aztec-address/index.js';
7
6
  import { schemas } from '../schemas/index.js';
8
7
  import { TxHash } from '../tx/tx_hash.js';
@@ -11,49 +10,44 @@ import { Note } from './note.js';
11
10
  * A note with contextual data.
12
11
  */ export class ExtendedNote {
13
12
  note;
14
- owner;
13
+ recipient;
15
14
  contractAddress;
16
15
  storageSlot;
17
- noteTypeId;
18
16
  txHash;
19
- constructor(/** The note as emitted from the Noir contract. */ note, /** The owner whose public key was used to encrypt the note. */ owner, /** The contract address this note is created in. */ contractAddress, /** The specific storage location of the note on the contract. */ storageSlot, /** The type identifier of the note on the contract. */ noteTypeId, /** The hash of the tx the note was created in. */ txHash){
17
+ constructor(/** The note as emitted from the Noir contract. */ note, /** The address whose public key was used to encrypt the note. */ recipient, /** The contract address this note is created in. */ contractAddress, /** The specific storage location of the note on the contract. */ storageSlot, /** The hash of the tx the note was created in. */ txHash){
20
18
  this.note = note;
21
- this.owner = owner;
19
+ this.recipient = recipient;
22
20
  this.contractAddress = contractAddress;
23
21
  this.storageSlot = storageSlot;
24
- this.noteTypeId = noteTypeId;
25
22
  this.txHash = txHash;
26
23
  }
27
24
  toBuffer() {
28
25
  return serializeToBuffer([
29
26
  this.note,
30
- this.owner,
27
+ this.recipient,
31
28
  this.contractAddress,
32
29
  this.storageSlot,
33
- this.noteTypeId,
34
30
  this.txHash
35
31
  ]);
36
32
  }
37
33
  static fromBuffer(buffer) {
38
34
  const reader = BufferReader.asReader(buffer);
39
35
  const note = reader.readObject(Note);
40
- const owner = reader.readObject(AztecAddress);
36
+ const recipient = reader.readObject(AztecAddress);
41
37
  const contractAddress = reader.readObject(AztecAddress);
42
38
  const storageSlot = reader.readObject(Fr);
43
- const noteTypeId = reader.readObject(NoteSelector);
44
39
  const txHash = reader.readObject(TxHash);
45
- return new this(note, owner, contractAddress, storageSlot, noteTypeId, txHash);
40
+ return new this(note, recipient, contractAddress, storageSlot, txHash);
46
41
  }
47
42
  static get schema() {
48
43
  return z.object({
49
44
  note: Note.schema,
50
- owner: schemas.AztecAddress,
45
+ recipient: schemas.AztecAddress,
51
46
  contractAddress: schemas.AztecAddress,
52
47
  storageSlot: schemas.Fr,
53
- noteTypeId: schemas.NoteSelector,
54
48
  txHash: TxHash.schema
55
- }).transform(({ note, owner, contractAddress, storageSlot, noteTypeId, txHash })=>{
56
- return new ExtendedNote(note, owner, contractAddress, storageSlot, noteTypeId, txHash);
49
+ }).transform(({ note, recipient, contractAddress, storageSlot, txHash })=>{
50
+ return new ExtendedNote(note, recipient, contractAddress, storageSlot, txHash);
57
51
  });
58
52
  }
59
53
  toString() {
@@ -63,51 +57,48 @@ import { Note } from './note.js';
63
57
  return ExtendedNote.fromBuffer(hexToBuffer(str));
64
58
  }
65
59
  static async random() {
66
- return new ExtendedNote(Note.random(), await AztecAddress.random(), await AztecAddress.random(), Fr.random(), NoteSelector.random(), TxHash.random());
60
+ return new ExtendedNote(Note.random(), await AztecAddress.random(), await AztecAddress.random(), Fr.random(), TxHash.random());
67
61
  }
68
62
  }
69
63
  export class UniqueNote extends ExtendedNote {
70
64
  nonce;
71
- constructor(/** The note as emitted from the Noir contract. */ note, /** The owner whose public key was used to encrypt the note. */ owner, /** The contract address this note is created in. */ contractAddress, /** The specific storage location of the note on the contract. */ storageSlot, /** The type identifier of the note on the contract. */ noteTypeId, /** The hash of the tx the note was created in. */ txHash, /** The nonce of the note. */ nonce){
72
- super(note, owner, contractAddress, storageSlot, noteTypeId, txHash), this.nonce = nonce;
65
+ constructor(/** The note as emitted from the Noir contract. */ note, /** The recipient whose public key was used to encrypt the note. */ recipient, /** The contract address this note is created in. */ contractAddress, /** The specific storage location of the note on the contract. */ storageSlot, /** The hash of the tx the note was created in. */ txHash, /** The nonce of the note. */ nonce){
66
+ super(note, recipient, contractAddress, storageSlot, txHash), this.nonce = nonce;
73
67
  }
74
68
  static get schema() {
75
69
  return z.object({
76
70
  note: Note.schema,
77
- owner: schemas.AztecAddress,
71
+ recipient: schemas.AztecAddress,
78
72
  contractAddress: schemas.AztecAddress,
79
73
  storageSlot: schemas.Fr,
80
- noteTypeId: schemas.NoteSelector,
81
74
  txHash: TxHash.schema,
82
75
  nonce: schemas.Fr
83
- }).transform(({ note, owner, contractAddress, storageSlot, noteTypeId, txHash, nonce })=>{
84
- return new UniqueNote(note, owner, contractAddress, storageSlot, noteTypeId, txHash, nonce);
76
+ }).transform(({ note, recipient, contractAddress, storageSlot, txHash, nonce })=>{
77
+ return new UniqueNote(note, recipient, contractAddress, storageSlot, txHash, nonce);
85
78
  });
86
79
  }
87
80
  toBuffer() {
88
81
  return serializeToBuffer([
89
82
  this.note,
90
- this.owner,
83
+ this.recipient,
91
84
  this.contractAddress,
92
85
  this.storageSlot,
93
- this.noteTypeId,
94
86
  this.txHash,
95
87
  this.nonce
96
88
  ]);
97
89
  }
98
90
  static async random() {
99
- return new UniqueNote(Note.random(), await AztecAddress.random(), await AztecAddress.random(), Fr.random(), NoteSelector.random(), TxHash.random(), Fr.random());
91
+ return new UniqueNote(Note.random(), await AztecAddress.random(), await AztecAddress.random(), Fr.random(), TxHash.random(), Fr.random());
100
92
  }
101
93
  static fromBuffer(buffer) {
102
94
  const reader = BufferReader.asReader(buffer);
103
95
  const note = reader.readObject(Note);
104
- const owner = reader.readObject(AztecAddress);
96
+ const recipient = reader.readObject(AztecAddress);
105
97
  const contractAddress = reader.readObject(AztecAddress);
106
98
  const storageSlot = reader.readObject(Fr);
107
- const noteTypeId = reader.readObject(NoteSelector);
108
99
  const txHash = reader.readObject(TxHash);
109
100
  const nonce = reader.readObject(Fr);
110
- return new this(note, owner, contractAddress, storageSlot, noteTypeId, txHash, nonce);
101
+ return new this(note, recipient, contractAddress, storageSlot, txHash, nonce);
111
102
  }
112
103
  static fromString(str) {
113
104
  return UniqueNote.fromBuffer(hexToBuffer(str));
@@ -14,8 +14,8 @@ export type NotesFilter = {
14
14
  contractAddress?: AztecAddress;
15
15
  /** The specific storage location of the note on the contract. */
16
16
  storageSlot?: Fr;
17
- /** The owner of the note (whose public key was used to encrypt the note). */
18
- owner?: AztecAddress;
17
+ /** The recipient of the note (whose public key was used to encrypt the note). */
18
+ recipient?: AztecAddress;
19
19
  /** The status of the note. Defaults to 'ACTIVE'. */
20
20
  status?: NoteStatus;
21
21
  /** The siloed nullifier for the note. */
@@ -1 +1 @@
1
- {"version":3,"file":"notes_filter.d.ts","sourceRoot":"","sources":["../../src/note/notes_filter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAInD,OAAO,KAAK,EAAE,YAAY,EAAE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iF;IACjF,SAAS,CAAC,EAAE,YAAY,CAAC;IACzB,oDAAoD;IACpD,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,yCAAyC;IACzC,eAAe,CAAC,EAAE,EAAE,CAAC;IACrB,0EAA0E;IAC1E,MAAM,CAAC,EAAE,YAAY,EAAE,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,WAAW,CAQhD,CAAC"}
@@ -6,7 +6,7 @@ export const NotesFilterSchema = z.object({
6
6
  txHash: TxHash.schema.optional(),
7
7
  contractAddress: schemas.AztecAddress.optional(),
8
8
  storageSlot: schemas.Fr.optional(),
9
- owner: schemas.AztecAddress.optional(),
9
+ recipient: schemas.AztecAddress.optional(),
10
10
  status: z.nativeEnum(NoteStatus).optional(),
11
11
  siloedNullifier: schemas.Fr.optional(),
12
12
  scopes: z.array(schemas.AztecAddress).optional()