@aztec/stdlib 1.0.0-nightly.20250710 → 1.0.0-nightly.20250712
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.
|
@@ -8,10 +8,13 @@ import { NoteStatus } from './note_status.js';
|
|
|
8
8
|
* @remarks This filter is applied as an intersection of all its params.
|
|
9
9
|
*/
|
|
10
10
|
export type NotesFilter = {
|
|
11
|
+
/**
|
|
12
|
+
* The contract address the note belongs to.
|
|
13
|
+
* @remarks Providing a contract address is required as we need that information to trigger private state sync.
|
|
14
|
+
*/
|
|
15
|
+
contractAddress: AztecAddress;
|
|
11
16
|
/** Hash of a transaction from which to fetch the notes. */
|
|
12
17
|
txHash?: TxHash;
|
|
13
|
-
/** The contract address the note belongs to. */
|
|
14
|
-
contractAddress?: AztecAddress;
|
|
15
18
|
/** The specific storage location of the note on the contract. */
|
|
16
19
|
storageSlot?: Fr;
|
|
17
20
|
/** The recipient of the note (whose public key was used to encrypt 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,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,KAAK,MAAM,EAAW,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9C;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB
|
|
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,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,KAAK,MAAM,EAAW,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9C;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB;;;OAGG;IACH,eAAe,EAAE,YAAY,CAAC;IAC9B,2DAA2D;IAC3D,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,iEAAiE;IACjE,WAAW,CAAC,EAAE,EAAE,CAAC;IACjB,iFAAiF;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"}
|
|
@@ -3,8 +3,8 @@ import { schemas } from '../schemas/index.js';
|
|
|
3
3
|
import { TxHash } from '../tx/tx_hash.js';
|
|
4
4
|
import { NoteStatus } from './note_status.js';
|
|
5
5
|
export const NotesFilterSchema = z.object({
|
|
6
|
+
contractAddress: schemas.AztecAddress,
|
|
6
7
|
txHash: TxHash.schema.optional(),
|
|
7
|
-
contractAddress: schemas.AztecAddress.optional(),
|
|
8
8
|
storageSlot: schemas.Fr.optional(),
|
|
9
9
|
recipient: schemas.AztecAddress.optional(),
|
|
10
10
|
status: z.nativeEnum(NoteStatus).optional(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/stdlib",
|
|
3
|
-
"version": "1.0.0-nightly.
|
|
3
|
+
"version": "1.0.0-nightly.20250712",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"inherits": [
|
|
6
6
|
"../package.common.json",
|
|
@@ -67,12 +67,12 @@
|
|
|
67
67
|
"test": "NODE_NO_WARNINGS=1 node --experimental-vm-modules ../node_modules/.bin/jest --passWithNoTests --maxWorkers=${JEST_MAX_WORKERS:-8}"
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
|
-
"@aztec/bb.js": "1.0.0-nightly.
|
|
71
|
-
"@aztec/blob-lib": "1.0.0-nightly.
|
|
72
|
-
"@aztec/constants": "1.0.0-nightly.
|
|
73
|
-
"@aztec/ethereum": "1.0.0-nightly.
|
|
74
|
-
"@aztec/foundation": "1.0.0-nightly.
|
|
75
|
-
"@aztec/noir-noirc_abi": "1.0.0-nightly.
|
|
70
|
+
"@aztec/bb.js": "1.0.0-nightly.20250712",
|
|
71
|
+
"@aztec/blob-lib": "1.0.0-nightly.20250712",
|
|
72
|
+
"@aztec/constants": "1.0.0-nightly.20250712",
|
|
73
|
+
"@aztec/ethereum": "1.0.0-nightly.20250712",
|
|
74
|
+
"@aztec/foundation": "1.0.0-nightly.20250712",
|
|
75
|
+
"@aztec/noir-noirc_abi": "1.0.0-nightly.20250712",
|
|
76
76
|
"@google-cloud/storage": "^7.15.0",
|
|
77
77
|
"axios": "^1.9.0",
|
|
78
78
|
"json-stringify-deterministic": "1.0.12",
|
package/src/note/notes_filter.ts
CHANGED
|
@@ -12,10 +12,13 @@ import { NoteStatus } from './note_status.js';
|
|
|
12
12
|
* @remarks This filter is applied as an intersection of all its params.
|
|
13
13
|
*/
|
|
14
14
|
export type NotesFilter = {
|
|
15
|
+
/**
|
|
16
|
+
* The contract address the note belongs to.
|
|
17
|
+
* @remarks Providing a contract address is required as we need that information to trigger private state sync.
|
|
18
|
+
*/
|
|
19
|
+
contractAddress: AztecAddress;
|
|
15
20
|
/** Hash of a transaction from which to fetch the notes. */
|
|
16
21
|
txHash?: TxHash;
|
|
17
|
-
/** The contract address the note belongs to. */
|
|
18
|
-
contractAddress?: AztecAddress;
|
|
19
22
|
/** The specific storage location of the note on the contract. */
|
|
20
23
|
storageSlot?: Fr;
|
|
21
24
|
/** The recipient of the note (whose public key was used to encrypt the note). */
|
|
@@ -29,8 +32,8 @@ export type NotesFilter = {
|
|
|
29
32
|
};
|
|
30
33
|
|
|
31
34
|
export const NotesFilterSchema: ZodFor<NotesFilter> = z.object({
|
|
35
|
+
contractAddress: schemas.AztecAddress,
|
|
32
36
|
txHash: TxHash.schema.optional(),
|
|
33
|
-
contractAddress: schemas.AztecAddress.optional(),
|
|
34
37
|
storageSlot: schemas.Fr.optional(),
|
|
35
38
|
recipient: schemas.AztecAddress.optional(),
|
|
36
39
|
status: z.nativeEnum(NoteStatus).optional(),
|