@aztec/node-keystore 3.0.0-nightly.20250905 → 4.0.0-nightly.20250907

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.
package/dest/schemas.d.ts CHANGED
@@ -187,6 +187,49 @@ export declare const keystoreSchema: z.ZodEffects<z.ZodObject<{
187
187
  certPath?: string | null | undefined;
188
188
  certPass?: string | null | undefined;
189
189
  }>]>>>;
190
+ fundingAccount: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
191
+ address: z.ZodEffects<z.ZodString, string, string>;
192
+ remoteSignerUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
193
+ certPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
194
+ certPass: z.ZodOptional<z.ZodNullable<z.ZodString>>;
195
+ }, "strip", z.ZodTypeAny, {
196
+ address: string;
197
+ remoteSignerUrl?: string | null | undefined;
198
+ certPath?: string | null | undefined;
199
+ certPass?: string | null | undefined;
200
+ }, {
201
+ address: string;
202
+ remoteSignerUrl?: string | null | undefined;
203
+ certPath?: string | null | undefined;
204
+ certPass?: string | null | undefined;
205
+ }>]>, z.ZodObject<{
206
+ path: z.ZodString;
207
+ password: z.ZodOptional<z.ZodNullable<z.ZodString>>;
208
+ }, "strip", z.ZodTypeAny, {
209
+ path: string;
210
+ password?: string | null | undefined;
211
+ }, {
212
+ path: string;
213
+ password?: string | null | undefined;
214
+ }>, z.ZodObject<{
215
+ mnemonic: z.ZodString;
216
+ addressIndex: z.ZodDefault<z.ZodNumber>;
217
+ accountIndex: z.ZodDefault<z.ZodNumber>;
218
+ addressCount: z.ZodDefault<z.ZodNumber>;
219
+ accountCount: z.ZodDefault<z.ZodNumber>;
220
+ }, "strip", z.ZodTypeAny, {
221
+ mnemonic: string;
222
+ addressIndex: number;
223
+ accountIndex: number;
224
+ addressCount: number;
225
+ accountCount: number;
226
+ }, {
227
+ mnemonic: string;
228
+ addressIndex?: number | undefined;
229
+ accountIndex?: number | undefined;
230
+ addressCount?: number | undefined;
231
+ accountCount?: number | undefined;
232
+ }>]>>>;
190
233
  }, "strip", z.ZodTypeAny, {
191
234
  attester: string | {
192
235
  address: string;
@@ -253,6 +296,21 @@ export declare const keystoreSchema: z.ZodEffects<z.ZodObject<{
253
296
  certPath?: string | null | undefined;
254
297
  certPass?: string | null | undefined;
255
298
  } | null | undefined;
299
+ fundingAccount?: string | {
300
+ address: string;
301
+ remoteSignerUrl?: string | null | undefined;
302
+ certPath?: string | null | undefined;
303
+ certPass?: string | null | undefined;
304
+ } | {
305
+ path: string;
306
+ password?: string | null | undefined;
307
+ } | {
308
+ mnemonic: string;
309
+ addressIndex: number;
310
+ accountIndex: number;
311
+ addressCount: number;
312
+ accountCount: number;
313
+ } | null | undefined;
256
314
  }, {
257
315
  attester: string | {
258
316
  address: string;
@@ -319,6 +377,21 @@ export declare const keystoreSchema: z.ZodEffects<z.ZodObject<{
319
377
  certPath?: string | null | undefined;
320
378
  certPass?: string | null | undefined;
321
379
  } | null | undefined;
380
+ fundingAccount?: string | {
381
+ address: string;
382
+ remoteSignerUrl?: string | null | undefined;
383
+ certPath?: string | null | undefined;
384
+ certPass?: string | null | undefined;
385
+ } | {
386
+ path: string;
387
+ password?: string | null | undefined;
388
+ } | {
389
+ mnemonic: string;
390
+ addressIndex?: number | undefined;
391
+ accountIndex?: number | undefined;
392
+ addressCount?: number | undefined;
393
+ accountCount?: number | undefined;
394
+ } | null | undefined;
322
395
  }>, "many">>>;
323
396
  slasher: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
324
397
  address: z.ZodEffects<z.ZodString, string, string>;
@@ -610,6 +683,49 @@ export declare const keystoreSchema: z.ZodEffects<z.ZodObject<{
610
683
  accountCount?: number | undefined;
611
684
  })[];
612
685
  }>]>>>;
686
+ fundingAccount: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
687
+ address: z.ZodEffects<z.ZodString, string, string>;
688
+ remoteSignerUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
689
+ certPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
690
+ certPass: z.ZodOptional<z.ZodNullable<z.ZodString>>;
691
+ }, "strip", z.ZodTypeAny, {
692
+ address: string;
693
+ remoteSignerUrl?: string | null | undefined;
694
+ certPath?: string | null | undefined;
695
+ certPass?: string | null | undefined;
696
+ }, {
697
+ address: string;
698
+ remoteSignerUrl?: string | null | undefined;
699
+ certPath?: string | null | undefined;
700
+ certPass?: string | null | undefined;
701
+ }>]>, z.ZodObject<{
702
+ path: z.ZodString;
703
+ password: z.ZodOptional<z.ZodNullable<z.ZodString>>;
704
+ }, "strip", z.ZodTypeAny, {
705
+ path: string;
706
+ password?: string | null | undefined;
707
+ }, {
708
+ path: string;
709
+ password?: string | null | undefined;
710
+ }>, z.ZodObject<{
711
+ mnemonic: z.ZodString;
712
+ addressIndex: z.ZodDefault<z.ZodNumber>;
713
+ accountIndex: z.ZodDefault<z.ZodNumber>;
714
+ addressCount: z.ZodDefault<z.ZodNumber>;
715
+ accountCount: z.ZodDefault<z.ZodNumber>;
716
+ }, "strip", z.ZodTypeAny, {
717
+ mnemonic: string;
718
+ addressIndex: number;
719
+ accountIndex: number;
720
+ addressCount: number;
721
+ accountCount: number;
722
+ }, {
723
+ mnemonic: string;
724
+ addressIndex?: number | undefined;
725
+ accountIndex?: number | undefined;
726
+ addressCount?: number | undefined;
727
+ accountCount?: number | undefined;
728
+ }>]>>>;
613
729
  }, "strip", z.ZodTypeAny, {
614
730
  schemaVersion: 1;
615
731
  remoteSigner?: string | {
@@ -617,6 +733,21 @@ export declare const keystoreSchema: z.ZodEffects<z.ZodObject<{
617
733
  certPath?: string | null | undefined;
618
734
  certPass?: string | null | undefined;
619
735
  } | null | undefined;
736
+ fundingAccount?: string | {
737
+ address: string;
738
+ remoteSignerUrl?: string | null | undefined;
739
+ certPath?: string | null | undefined;
740
+ certPass?: string | null | undefined;
741
+ } | {
742
+ path: string;
743
+ password?: string | null | undefined;
744
+ } | {
745
+ mnemonic: string;
746
+ addressIndex: number;
747
+ accountIndex: number;
748
+ addressCount: number;
749
+ accountCount: number;
750
+ } | null | undefined;
620
751
  validators?: {
621
752
  attester: string | {
622
753
  address: string;
@@ -683,6 +814,21 @@ export declare const keystoreSchema: z.ZodEffects<z.ZodObject<{
683
814
  certPath?: string | null | undefined;
684
815
  certPass?: string | null | undefined;
685
816
  } | null | undefined;
817
+ fundingAccount?: string | {
818
+ address: string;
819
+ remoteSignerUrl?: string | null | undefined;
820
+ certPath?: string | null | undefined;
821
+ certPass?: string | null | undefined;
822
+ } | {
823
+ path: string;
824
+ password?: string | null | undefined;
825
+ } | {
826
+ mnemonic: string;
827
+ addressIndex: number;
828
+ accountIndex: number;
829
+ addressCount: number;
830
+ accountCount: number;
831
+ } | null | undefined;
686
832
  }[] | null | undefined;
687
833
  slasher?: string | {
688
834
  address: string;
@@ -766,6 +912,21 @@ export declare const keystoreSchema: z.ZodEffects<z.ZodObject<{
766
912
  certPath?: string | null | undefined;
767
913
  certPass?: string | null | undefined;
768
914
  } | null | undefined;
915
+ fundingAccount?: string | {
916
+ address: string;
917
+ remoteSignerUrl?: string | null | undefined;
918
+ certPath?: string | null | undefined;
919
+ certPass?: string | null | undefined;
920
+ } | {
921
+ path: string;
922
+ password?: string | null | undefined;
923
+ } | {
924
+ mnemonic: string;
925
+ addressIndex?: number | undefined;
926
+ accountIndex?: number | undefined;
927
+ addressCount?: number | undefined;
928
+ accountCount?: number | undefined;
929
+ } | null | undefined;
769
930
  validators?: {
770
931
  attester: string | {
771
932
  address: string;
@@ -832,6 +993,21 @@ export declare const keystoreSchema: z.ZodEffects<z.ZodObject<{
832
993
  certPath?: string | null | undefined;
833
994
  certPass?: string | null | undefined;
834
995
  } | null | undefined;
996
+ fundingAccount?: string | {
997
+ address: string;
998
+ remoteSignerUrl?: string | null | undefined;
999
+ certPath?: string | null | undefined;
1000
+ certPass?: string | null | undefined;
1001
+ } | {
1002
+ path: string;
1003
+ password?: string | null | undefined;
1004
+ } | {
1005
+ mnemonic: string;
1006
+ addressIndex?: number | undefined;
1007
+ accountIndex?: number | undefined;
1008
+ addressCount?: number | undefined;
1009
+ accountCount?: number | undefined;
1010
+ } | null | undefined;
835
1011
  }[] | null | undefined;
836
1012
  slasher?: string | {
837
1013
  address: string;
@@ -915,6 +1091,21 @@ export declare const keystoreSchema: z.ZodEffects<z.ZodObject<{
915
1091
  certPath?: string | null | undefined;
916
1092
  certPass?: string | null | undefined;
917
1093
  } | null | undefined;
1094
+ fundingAccount?: string | {
1095
+ address: string;
1096
+ remoteSignerUrl?: string | null | undefined;
1097
+ certPath?: string | null | undefined;
1098
+ certPass?: string | null | undefined;
1099
+ } | {
1100
+ path: string;
1101
+ password?: string | null | undefined;
1102
+ } | {
1103
+ mnemonic: string;
1104
+ addressIndex: number;
1105
+ accountIndex: number;
1106
+ addressCount: number;
1107
+ accountCount: number;
1108
+ } | null | undefined;
918
1109
  validators?: {
919
1110
  attester: string | {
920
1111
  address: string;
@@ -981,6 +1172,21 @@ export declare const keystoreSchema: z.ZodEffects<z.ZodObject<{
981
1172
  certPath?: string | null | undefined;
982
1173
  certPass?: string | null | undefined;
983
1174
  } | null | undefined;
1175
+ fundingAccount?: string | {
1176
+ address: string;
1177
+ remoteSignerUrl?: string | null | undefined;
1178
+ certPath?: string | null | undefined;
1179
+ certPass?: string | null | undefined;
1180
+ } | {
1181
+ path: string;
1182
+ password?: string | null | undefined;
1183
+ } | {
1184
+ mnemonic: string;
1185
+ addressIndex: number;
1186
+ accountIndex: number;
1187
+ addressCount: number;
1188
+ accountCount: number;
1189
+ } | null | undefined;
984
1190
  }[] | null | undefined;
985
1191
  slasher?: string | {
986
1192
  address: string;
@@ -1064,6 +1270,21 @@ export declare const keystoreSchema: z.ZodEffects<z.ZodObject<{
1064
1270
  certPath?: string | null | undefined;
1065
1271
  certPass?: string | null | undefined;
1066
1272
  } | null | undefined;
1273
+ fundingAccount?: string | {
1274
+ address: string;
1275
+ remoteSignerUrl?: string | null | undefined;
1276
+ certPath?: string | null | undefined;
1277
+ certPass?: string | null | undefined;
1278
+ } | {
1279
+ path: string;
1280
+ password?: string | null | undefined;
1281
+ } | {
1282
+ mnemonic: string;
1283
+ addressIndex?: number | undefined;
1284
+ accountIndex?: number | undefined;
1285
+ addressCount?: number | undefined;
1286
+ accountCount?: number | undefined;
1287
+ } | null | undefined;
1067
1288
  validators?: {
1068
1289
  attester: string | {
1069
1290
  address: string;
@@ -1130,6 +1351,21 @@ export declare const keystoreSchema: z.ZodEffects<z.ZodObject<{
1130
1351
  certPath?: string | null | undefined;
1131
1352
  certPass?: string | null | undefined;
1132
1353
  } | null | undefined;
1354
+ fundingAccount?: string | {
1355
+ address: string;
1356
+ remoteSignerUrl?: string | null | undefined;
1357
+ certPath?: string | null | undefined;
1358
+ certPass?: string | null | undefined;
1359
+ } | {
1360
+ path: string;
1361
+ password?: string | null | undefined;
1362
+ } | {
1363
+ mnemonic: string;
1364
+ addressIndex?: number | undefined;
1365
+ accountIndex?: number | undefined;
1366
+ addressCount?: number | undefined;
1367
+ accountCount?: number | undefined;
1368
+ } | null | undefined;
1133
1369
  }[] | null | undefined;
1134
1370
  slasher?: string | {
1135
1371
  address: string;
@@ -1 +1 @@
1
- {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA4ExB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYvB,CAAC;AAEL,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC"}
package/dest/schemas.js CHANGED
@@ -66,7 +66,8 @@ const validatorKeyStoreSchema = z.object({
66
66
  coinbase: ethAddressSchema.nullish(),
67
67
  publisher: ethAccountsSchema.nullish(),
68
68
  feeRecipient: aztecAddressSchema,
69
- remoteSigner: remoteSignerConfigSchema.nullish()
69
+ remoteSigner: remoteSignerConfigSchema.nullish(),
70
+ fundingAccount: ethAccountSchema.nullish()
70
71
  });
71
72
  // Main keystore schema
72
73
  export const keystoreSchema = z.object({
@@ -74,7 +75,8 @@ export const keystoreSchema = z.object({
74
75
  validators: z.array(validatorKeyStoreSchema).nullish(),
75
76
  slasher: ethAccountsSchema.nullish(),
76
77
  remoteSigner: remoteSignerConfigSchema.nullish(),
77
- prover: proverKeyStoreSchema.nullish()
78
+ prover: proverKeyStoreSchema.nullish(),
79
+ fundingAccount: ethAccountSchema.nullish()
78
80
  }).refine((data)=>data.validators || data.prover, {
79
81
  message: 'Keystore must have at least validators or prover configuration',
80
82
  path: [
package/dest/types.d.ts CHANGED
@@ -82,6 +82,10 @@ export type ValidatorKeyStore = {
82
82
  * Default remote signer for all accounts in this block.
83
83
  */
84
84
  remoteSigner?: EthRemoteSignerConfig;
85
+ /**
86
+ * Used for automatically funding publisher accounts in this block.
87
+ */
88
+ fundingAccount?: EthAccount;
85
89
  };
86
90
  export type KeyStore = {
87
91
  /** Schema version of this keystore file (initially 1). */
@@ -94,5 +98,7 @@ export type KeyStore = {
94
98
  remoteSigner?: EthRemoteSignerConfig;
95
99
  /** Prover configuration. Only one prover configuration is allowed. */
96
100
  prover?: ProverKeyStore;
101
+ /** Used for automatically funding publisher accounts if there is none defined in the corresponding ValidatorKeyStore*/
102
+ fundingAccount?: EthAccount;
97
103
  };
98
104
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,8DAA8D;AAC9D,MAAM,MAAM,GAAG,CAAC,WAAW,SAAS,MAAM,IAAI,KAAK,MAAM,EAAE,GAAG;IAAE,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAA;CAAE,CAAC;AAEhG,iIAAiI;AACjI,MAAM,MAAM,sBAAsB,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAEzE,iDAAiD;AACjD,MAAM,MAAM,aAAa,GAAG,GAAG,CAAC,EAAE,CAAC,CAAC;AAEpC,8CAA8C;AAC9C,MAAM,MA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C;IACtB,gCAAgC;IAChC,UAAU,CAAC,EAAE,iBAAiB,EAAE,CAAC;IACjC,8GAA8G;IAC9G,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,0EAA0E;IAC1E,YAAY,CAAC,EAAE,qBAAqB,CAAC;IACrC,sEAAsE;IACtE,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,wHAAwH;IACxH,cAAc,CAAC,EAAE,UAAU,CAAC;CAC7B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aztec/node-keystore",
3
- "version": "3.0.0-nightly.20250905",
3
+ "version": "4.0.0-nightly.20250907",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./dest/index.js",
@@ -62,9 +62,9 @@
62
62
  ]
63
63
  },
64
64
  "dependencies": {
65
- "@aztec/ethereum": "3.0.0-nightly.20250905",
66
- "@aztec/foundation": "3.0.0-nightly.20250905",
67
- "@aztec/stdlib": "3.0.0-nightly.20250905",
65
+ "@aztec/ethereum": "4.0.0-nightly.20250907",
66
+ "@aztec/foundation": "4.0.0-nightly.20250907",
67
+ "@aztec/stdlib": "4.0.0-nightly.20250907",
68
68
  "@ethersproject/wallet": "^5.7.0",
69
69
  "tslib": "^2.4.0",
70
70
  "viem": "2.23.7",
package/src/schemas.ts CHANGED
@@ -77,6 +77,7 @@ const validatorKeyStoreSchema = z.object({
77
77
  publisher: ethAccountsSchema.nullish(),
78
78
  feeRecipient: aztecAddressSchema,
79
79
  remoteSigner: remoteSignerConfigSchema.nullish(),
80
+ fundingAccount: ethAccountSchema.nullish(),
80
81
  });
81
82
 
82
83
  // Main keystore schema
@@ -87,6 +88,7 @@ export const keystoreSchema = z
87
88
  slasher: ethAccountsSchema.nullish(),
88
89
  remoteSigner: remoteSignerConfigSchema.nullish(),
89
90
  prover: proverKeyStoreSchema.nullish(),
91
+ fundingAccount: ethAccountSchema.nullish(),
90
92
  })
91
93
  .refine(data => data.validators || data.prover, {
92
94
  message: 'Keystore must have at least validators or prover configuration',
package/src/types.ts CHANGED
@@ -96,6 +96,10 @@ export type ValidatorKeyStore = {
96
96
  * Default remote signer for all accounts in this block.
97
97
  */
98
98
  remoteSigner?: EthRemoteSignerConfig;
99
+ /**
100
+ * Used for automatically funding publisher accounts in this block.
101
+ */
102
+ fundingAccount?: EthAccount;
99
103
  };
100
104
 
101
105
  export type KeyStore = {
@@ -109,4 +113,6 @@ export type KeyStore = {
109
113
  remoteSigner?: EthRemoteSignerConfig;
110
114
  /** Prover configuration. Only one prover configuration is allowed. */
111
115
  prover?: ProverKeyStore;
116
+ /** Used for automatically funding publisher accounts if there is none defined in the corresponding ValidatorKeyStore*/
117
+ fundingAccount?: EthAccount;
112
118
  };