@taqueria/protocol 0.20.2 → 0.21.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.
@@ -1 +1 @@
1
- {"version":3,"file":"LoadedConfig.d.ts","sourceRoot":"","sources":["LoadedConfig.ts"],"names":[],"mappings":"AAAA,OAAmB,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAI9D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQI,CAAC;AAE3B,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQD,CAAC;AAK3B,eAAO,MAAiB,gBAAgB;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAY,CAAC;AAC5C,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGnB,CAAC;AAEF,eAAO,MAAM,QAAQ,WAAY,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAwB,CAAC"}
@@ -4,7 +4,8 @@ export declare const rawSchema: z.ZodObject<{
4
4
  label: z.ZodString;
5
5
  rpcUrl: z.ZodString;
6
6
  protocol: z.ZodEffects<z.ZodString, string, string>;
7
- faucet: z.ZodObject<z.extendShape<{
7
+ accounts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
8
+ faucet: z.ZodOptional<z.ZodObject<z.extendShape<{
8
9
  mnemonic: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], unknown>;
9
10
  email: z.ZodOptional<z.ZodString>;
10
11
  password: z.ZodOptional<z.ZodString>;
@@ -26,46 +27,40 @@ export declare const rawSchema: z.ZodObject<{
26
27
  amount?: string | undefined;
27
28
  activation_code?: string | undefined;
28
29
  pkh: string;
29
- }>;
30
+ }>>;
30
31
  }, "strip", z.ZodTypeAny, {
31
- label: string;
32
- rpcUrl: string;
33
- protocol: string;
34
- faucet: {
32
+ accounts?: Record<string, any> | undefined;
33
+ faucet?: {
35
34
  email?: string | undefined;
36
35
  password?: string | undefined;
37
36
  amount?: string | undefined;
38
37
  activation_code?: string | undefined;
39
38
  mnemonic: string[];
40
39
  pkh: string;
41
- };
42
- }, {
40
+ } | undefined;
43
41
  label: string;
44
42
  rpcUrl: string;
45
43
  protocol: string;
46
- faucet: {
44
+ }, {
45
+ accounts?: Record<string, any> | undefined;
46
+ faucet?: {
47
47
  mnemonic?: unknown;
48
48
  email?: string | undefined;
49
49
  password?: string | undefined;
50
50
  amount?: string | undefined;
51
51
  activation_code?: string | undefined;
52
52
  pkh: string;
53
- };
53
+ } | undefined;
54
+ label: string;
55
+ rpcUrl: string;
56
+ protocol: string;
54
57
  }>;
55
58
  export declare const generatedSchemas: {
56
59
  rawSchema: z.ZodType<any, z.ZodTypeDef, any>;
57
60
  internalSchema: z.ZodType<any, z.ZodTypeDef, any>;
58
61
  schema: z.ZodEffects<z.ZodType<any, z.ZodTypeDef, any>, {
59
- label: string & {
60
- readonly __kind: any;
61
- };
62
- rpcUrl: string & {
63
- readonly __kind: any;
64
- };
65
- protocol: string & {
66
- readonly __kind: any;
67
- };
68
- faucet: Flatten<{
62
+ accounts?: Record<string, any> | undefined;
63
+ faucet?: Flatten<{
69
64
  email?: string | undefined;
70
65
  password?: string | undefined;
71
66
  amount?: string | undefined;
@@ -76,12 +71,7 @@ export declare const generatedSchemas: {
76
71
  };
77
72
  } & {
78
73
  readonly __kind: any;
79
- }>;
80
- } & {
81
- readonly __kind: any;
82
- }, any>;
83
- }, factory: {
84
- make: (input: {
74
+ }> | undefined;
85
75
  label: string & {
86
76
  readonly __kind: any;
87
77
  };
@@ -91,7 +81,13 @@ export declare const generatedSchemas: {
91
81
  protocol: string & {
92
82
  readonly __kind: any;
93
83
  };
94
- faucet: Flatten<{
84
+ } & {
85
+ readonly __kind: any;
86
+ }, any>;
87
+ }, factory: {
88
+ make: (input: {
89
+ accounts?: Record<string, any> | undefined;
90
+ faucet?: Flatten<{
95
91
  email?: string | undefined;
96
92
  password?: string | undefined;
97
93
  amount?: string | undefined;
@@ -102,8 +98,7 @@ export declare const generatedSchemas: {
102
98
  };
103
99
  } & {
104
100
  readonly __kind: any;
105
- }>;
106
- }) => import("fluture").FutureInstance<import("./TaqError").TaqError, {
101
+ }> | undefined;
107
102
  label: string & {
108
103
  readonly __kind: any;
109
104
  };
@@ -113,7 +108,9 @@ export declare const generatedSchemas: {
113
108
  protocol: string & {
114
109
  readonly __kind: any;
115
110
  };
116
- faucet: Flatten<{
111
+ }) => import("fluture").FutureInstance<import("./TaqError").TaqError, {
112
+ accounts?: Record<string, any> | undefined;
113
+ faucet?: Flatten<{
117
114
  email?: string | undefined;
118
115
  password?: string | undefined;
119
116
  amount?: string | undefined;
@@ -124,11 +121,7 @@ export declare const generatedSchemas: {
124
121
  };
125
122
  } & {
126
123
  readonly __kind: any;
127
- }>;
128
- } & {
129
- readonly __kind: any;
130
- }>;
131
- of: (input: unknown) => import("fluture").FutureInstance<import("./TaqError").TaqError, {
124
+ }> | undefined;
132
125
  label: string & {
133
126
  readonly __kind: any;
134
127
  };
@@ -138,7 +131,12 @@ export declare const generatedSchemas: {
138
131
  protocol: string & {
139
132
  readonly __kind: any;
140
133
  };
141
- faucet: Flatten<{
134
+ } & {
135
+ readonly __kind: any;
136
+ }>;
137
+ of: (input: unknown) => import("fluture").FutureInstance<import("./TaqError").TaqError, {
138
+ accounts?: Record<string, any> | undefined;
139
+ faucet?: Flatten<{
142
140
  email?: string | undefined;
143
141
  password?: string | undefined;
144
142
  amount?: string | undefined;
@@ -149,33 +147,35 @@ export declare const generatedSchemas: {
149
147
  };
150
148
  } & {
151
149
  readonly __kind: any;
152
- }>;
150
+ }> | undefined;
151
+ label: string & {
152
+ readonly __kind: any;
153
+ };
154
+ rpcUrl: string & {
155
+ readonly __kind: any;
156
+ };
157
+ protocol: string & {
158
+ readonly __kind: any;
159
+ };
153
160
  } & {
154
161
  readonly __kind: any;
155
162
  }>;
156
163
  create: (input: {
157
- label: string;
158
- rpcUrl: string;
159
- protocol: string;
160
- faucet: {
164
+ accounts?: Record<string, any> | undefined;
165
+ faucet?: {
161
166
  email?: string | undefined;
162
167
  password?: string | undefined;
163
168
  amount?: string | undefined;
164
169
  activation_code?: string | undefined;
165
170
  mnemonic: string[];
166
171
  pkh: string;
167
- };
172
+ } | undefined;
173
+ label: string;
174
+ rpcUrl: string;
175
+ protocol: string;
168
176
  } | {
169
- label: string & {
170
- readonly __kind: any;
171
- };
172
- rpcUrl: string & {
173
- readonly __kind: any;
174
- };
175
- protocol: string & {
176
- readonly __kind: any;
177
- };
178
- faucet: Flatten<{
177
+ accounts?: Record<string, any> | undefined;
178
+ faucet?: Flatten<{
179
179
  email?: string | undefined;
180
180
  password?: string | undefined;
181
181
  amount?: string | undefined;
@@ -186,8 +186,7 @@ export declare const generatedSchemas: {
186
186
  };
187
187
  } & {
188
188
  readonly __kind: any;
189
- }>;
190
- }) => {
189
+ }> | undefined;
191
190
  label: string & {
192
191
  readonly __kind: any;
193
192
  };
@@ -197,7 +196,9 @@ export declare const generatedSchemas: {
197
196
  protocol: string & {
198
197
  readonly __kind: any;
199
198
  };
200
- faucet: Flatten<{
199
+ }) => {
200
+ accounts?: Record<string, any> | undefined;
201
+ faucet?: Flatten<{
201
202
  email?: string | undefined;
202
203
  password?: string | undefined;
203
204
  amount?: string | undefined;
@@ -208,11 +209,7 @@ export declare const generatedSchemas: {
208
209
  };
209
210
  } & {
210
211
  readonly __kind: any;
211
- }>;
212
- } & {
213
- readonly __kind: any;
214
- };
215
- from: (input: unknown) => {
212
+ }> | undefined;
216
213
  label: string & {
217
214
  readonly __kind: any;
218
215
  };
@@ -222,7 +219,12 @@ export declare const generatedSchemas: {
222
219
  protocol: string & {
223
220
  readonly __kind: any;
224
221
  };
225
- faucet: Flatten<{
222
+ } & {
223
+ readonly __kind: any;
224
+ };
225
+ from: (input: unknown) => {
226
+ accounts?: Record<string, any> | undefined;
227
+ faucet?: Flatten<{
226
228
  email?: string | undefined;
227
229
  password?: string | undefined;
228
230
  amount?: string | undefined;
@@ -233,7 +235,16 @@ export declare const generatedSchemas: {
233
235
  };
234
236
  } & {
235
237
  readonly __kind: any;
236
- }>;
238
+ }> | undefined;
239
+ label: string & {
240
+ readonly __kind: any;
241
+ };
242
+ rpcUrl: string & {
243
+ readonly __kind: any;
244
+ };
245
+ protocol: string & {
246
+ readonly __kind: any;
247
+ };
237
248
  } & {
238
249
  readonly __kind: any;
239
250
  };
@@ -241,28 +252,21 @@ export declare const generatedSchemas: {
241
252
  export declare type NetworkConfig = Flatten<z.infer<typeof generatedSchemas.schema>>;
242
253
  export declare type t = NetworkConfig;
243
254
  export declare const create: (input: {
244
- label: string;
245
- rpcUrl: string;
246
- protocol: string;
247
- faucet: {
255
+ accounts?: Record<string, any> | undefined;
256
+ faucet?: {
248
257
  email?: string | undefined;
249
258
  password?: string | undefined;
250
259
  amount?: string | undefined;
251
260
  activation_code?: string | undefined;
252
261
  mnemonic: string[];
253
262
  pkh: string;
254
- };
263
+ } | undefined;
264
+ label: string;
265
+ rpcUrl: string;
266
+ protocol: string;
255
267
  } | {
256
- label: string & {
257
- readonly __kind: any;
258
- };
259
- rpcUrl: string & {
260
- readonly __kind: any;
261
- };
262
- protocol: string & {
263
- readonly __kind: any;
264
- };
265
- faucet: Flatten<{
268
+ accounts?: Record<string, any> | undefined;
269
+ faucet?: Flatten<{
266
270
  email?: string | undefined;
267
271
  password?: string | undefined;
268
272
  amount?: string | undefined;
@@ -273,8 +277,7 @@ export declare const create: (input: {
273
277
  };
274
278
  } & {
275
279
  readonly __kind: any;
276
- }>;
277
- }) => {
280
+ }> | undefined;
278
281
  label: string & {
279
282
  readonly __kind: any;
280
283
  };
@@ -284,7 +287,9 @@ export declare const create: (input: {
284
287
  protocol: string & {
285
288
  readonly __kind: any;
286
289
  };
287
- faucet: Flatten<{
290
+ }) => {
291
+ accounts?: Record<string, any> | undefined;
292
+ faucet?: Flatten<{
288
293
  email?: string | undefined;
289
294
  password?: string | undefined;
290
295
  amount?: string | undefined;
@@ -295,10 +300,7 @@ export declare const create: (input: {
295
300
  };
296
301
  } & {
297
302
  readonly __kind: any;
298
- }>;
299
- } & {
300
- readonly __kind: any;
301
- }, of: (input: unknown) => import("fluture").FutureInstance<import("./TaqError").TaqError, {
303
+ }> | undefined;
302
304
  label: string & {
303
305
  readonly __kind: any;
304
306
  };
@@ -308,7 +310,11 @@ export declare const create: (input: {
308
310
  protocol: string & {
309
311
  readonly __kind: any;
310
312
  };
311
- faucet: Flatten<{
313
+ } & {
314
+ readonly __kind: any;
315
+ }, of: (input: unknown) => import("fluture").FutureInstance<import("./TaqError").TaqError, {
316
+ accounts?: Record<string, any> | undefined;
317
+ faucet?: Flatten<{
312
318
  email?: string | undefined;
313
319
  password?: string | undefined;
314
320
  amount?: string | undefined;
@@ -319,10 +325,7 @@ export declare const create: (input: {
319
325
  };
320
326
  } & {
321
327
  readonly __kind: any;
322
- }>;
323
- } & {
324
- readonly __kind: any;
325
- }>, make: (input: {
328
+ }> | undefined;
326
329
  label: string & {
327
330
  readonly __kind: any;
328
331
  };
@@ -332,7 +335,11 @@ export declare const create: (input: {
332
335
  protocol: string & {
333
336
  readonly __kind: any;
334
337
  };
335
- faucet: Flatten<{
338
+ } & {
339
+ readonly __kind: any;
340
+ }>, make: (input: {
341
+ accounts?: Record<string, any> | undefined;
342
+ faucet?: Flatten<{
336
343
  email?: string | undefined;
337
344
  password?: string | undefined;
338
345
  amount?: string | undefined;
@@ -343,8 +350,7 @@ export declare const create: (input: {
343
350
  };
344
351
  } & {
345
352
  readonly __kind: any;
346
- }>;
347
- }) => import("fluture").FutureInstance<import("./TaqError").TaqError, {
353
+ }> | undefined;
348
354
  label: string & {
349
355
  readonly __kind: any;
350
356
  };
@@ -354,7 +360,9 @@ export declare const create: (input: {
354
360
  protocol: string & {
355
361
  readonly __kind: any;
356
362
  };
357
- faucet: Flatten<{
363
+ }) => import("fluture").FutureInstance<import("./TaqError").TaqError, {
364
+ accounts?: Record<string, any> | undefined;
365
+ faucet?: Flatten<{
358
366
  email?: string | undefined;
359
367
  password?: string | undefined;
360
368
  amount?: string | undefined;
@@ -365,22 +373,23 @@ export declare const create: (input: {
365
373
  };
366
374
  } & {
367
375
  readonly __kind: any;
368
- }>;
376
+ }> | undefined;
377
+ label: string & {
378
+ readonly __kind: any;
379
+ };
380
+ rpcUrl: string & {
381
+ readonly __kind: any;
382
+ };
383
+ protocol: string & {
384
+ readonly __kind: any;
385
+ };
369
386
  } & {
370
387
  readonly __kind: any;
371
388
  }>;
372
389
  export declare const schemas: {
373
390
  schema: z.ZodEffects<z.ZodEffects<z.ZodType<any, z.ZodTypeDef, any>, {
374
- label: string & {
375
- readonly __kind: any;
376
- };
377
- rpcUrl: string & {
378
- readonly __kind: any;
379
- };
380
- protocol: string & {
381
- readonly __kind: any;
382
- };
383
- faucet: Flatten<{
391
+ accounts?: Record<string, any> | undefined;
392
+ faucet?: Flatten<{
384
393
  email?: string | undefined;
385
394
  password?: string | undefined;
386
395
  amount?: string | undefined;
@@ -391,10 +400,7 @@ export declare const schemas: {
391
400
  };
392
401
  } & {
393
402
  readonly __kind: any;
394
- }>;
395
- } & {
396
- readonly __kind: any;
397
- }, any>, Flatten<{
403
+ }> | undefined;
398
404
  label: string & {
399
405
  readonly __kind: any;
400
406
  };
@@ -404,7 +410,11 @@ export declare const schemas: {
404
410
  protocol: string & {
405
411
  readonly __kind: any;
406
412
  };
407
- faucet: Flatten<{
413
+ } & {
414
+ readonly __kind: any;
415
+ }, any>, Flatten<{
416
+ accounts?: Record<string, any> | undefined;
417
+ faucet?: Flatten<{
408
418
  email?: string | undefined;
409
419
  password?: string | undefined;
410
420
  amount?: string | undefined;
@@ -415,7 +425,16 @@ export declare const schemas: {
415
425
  };
416
426
  } & {
417
427
  readonly __kind: any;
418
- }>;
428
+ }> | undefined;
429
+ label: string & {
430
+ readonly __kind: any;
431
+ };
432
+ rpcUrl: string & {
433
+ readonly __kind: any;
434
+ };
435
+ protocol: string & {
436
+ readonly __kind: any;
437
+ };
419
438
  } & {
420
439
  readonly __kind: any;
421
440
  }>, any>;
@@ -1 +1 @@
1
- {"version":3,"file":"NetworkConfig.d.ts","sourceRoot":"","sources":["NetworkConfig.ts"],"names":[],"mappings":"AAAA,OAAmB,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAK9D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKO,CAAC;AAY9B,eAAO,MAAiB,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAK/C,CAAC;AAEH,oBAAY,aAAa,GAAG,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,MAAM,CAAC,CAAC,CAAC;AAC7E,oBAAY,CAAC,GAAG,aAAa,CAAC;AAC9B,eAAO,MAAQ,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAE,EAAE;;;;;;;;;;;;;;;;;;;;;;;;IAAE,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAY,CAAC;AAE5C,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGnB,CAAC"}
1
+ {"version":3,"file":"NetworkConfig.d.ts","sourceRoot":"","sources":["NetworkConfig.ts"],"names":[],"mappings":"AAAA,OAAmB,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAK9D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EASO,CAAC;AAgB9B,eAAO,MAAiB,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAK/C,CAAC;AAEH,oBAAY,aAAa,GAAG,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,MAAM,CAAC,CAAC,CAAC;AAC7E,oBAAY,CAAC,GAAG,aAAa,CAAC;AAC9B,eAAO,MAAQ,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAE,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;IAAE,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAY,CAAC;AAE5C,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGnB,CAAC"}
package/NetworkConfig.js CHANGED
@@ -45,13 +45,21 @@ var rawSchema5 = import_zod.z.object({
45
45
  label: HumanReadableIdentifier.rawSchema,
46
46
  rpcUrl: Url.rawSchema,
47
47
  protocol: EconomicalProtocolHash.rawSchema,
48
- faucet: Faucet.rawSchema.describe("Network Faucet")
48
+ accounts: import_zod.z.record(
49
+ import_zod.z.any({ description: "Accounts" }),
50
+ { description: "Accounts" }
51
+ ).optional(),
52
+ faucet: Faucet.rawSchema.describe("Network Faucet").optional()
49
53
  }).describe("Network Config");
50
54
  var internalSchema = import_zod.z.object({
51
55
  label: HumanReadableIdentifier.schemas.schema.describe("Network Label"),
52
56
  rpcUrl: Url.schemas.schema.describe("Network RPC Url"),
53
57
  protocol: EconomicalProtocolHash.schemas.schema.describe("Network Protocol Hash"),
54
- faucet: Faucet.schemas.schema.describe("Network Faucet")
58
+ accounts: import_zod.z.record(
59
+ import_zod.z.any({ description: "Accounts" }),
60
+ { description: "Accounts" }
61
+ ).optional(),
62
+ faucet: Faucet.schemas.schema.describe("Network Faucet").optional()
55
63
  }).describe("Network Config");
56
64
  var { schemas: generatedSchemas, factory } = (0, import_Base.default)({
57
65
  rawSchema: rawSchema5,
@@ -1 +1 @@
1
- {"version":3,"sources":["NetworkConfig.ts"],"sourcesContent":["import createType, { Flatten } from '@taqueria/protocol/Base';\nimport * as EconomicalProtocolHash from '@taqueria/protocol/EconomicalProtocolHash';\nimport * as Faucet from '@taqueria/protocol/Faucet';\nimport * as HumanReadableIdentifier from '@taqueria/protocol/HumanReadableIdentifier';\nimport * as Url from '@taqueria/protocol/Url';\nimport { z } from 'zod';\n\nexport const rawSchema = z.object({\n\tlabel: HumanReadableIdentifier.rawSchema,\n\trpcUrl: Url.rawSchema,\n\tprotocol: EconomicalProtocolHash.rawSchema,\n\tfaucet: Faucet.rawSchema.describe('Network Faucet'),\n}).describe('Network Config');\n\nconst internalSchema = z.object({\n\tlabel: HumanReadableIdentifier.schemas.schema.describe('Network Label'),\n\trpcUrl: Url.schemas.schema.describe('Network RPC Url'),\n\tprotocol: EconomicalProtocolHash.schemas.schema.describe('Network Protocol Hash'),\n\tfaucet: Faucet.schemas.schema.describe('Network Faucet'),\n}).describe('Network Config');\n\ntype RawInput = z.infer<typeof rawSchema>;\ntype Input = z.infer<typeof internalSchema>;\n\nexport const { schemas: generatedSchemas, factory } = createType<RawInput, Input>({\n\trawSchema,\n\tinternalSchema,\n\tparseErrMsg: (value: unknown) => `${value} is not a valid network configuration`,\n\tunknownErrMsg: 'Something went wrong trying to parse the network configuration',\n});\n\nexport type NetworkConfig = Flatten<z.infer<typeof generatedSchemas.schema>>;\nexport type t = NetworkConfig;\nexport const { create, of, make } = factory;\n\nexport const schemas = {\n\t...generatedSchemas,\n\tschema: generatedSchemas.schema.transform(val => val as NetworkConfig),\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAAA;AAAA,EAAA,eAAAC;AAAA;AAAA;AAAA,kBAAoC;AACpC,6BAAwC;AACxC,aAAwB;AACxB,8BAAyC;AACzC,UAAqB;AACrB,iBAAkB;AAEX,IAAMD,aAAY,aAAE,OAAO;AAAA,EACjC,OAA+B;AAAA,EAC/B,QAAY;AAAA,EACZ,UAAiC;AAAA,EACjC,QAAe,iBAAU,SAAS,gBAAgB;AACnD,CAAC,EAAE,SAAS,gBAAgB;AAE5B,IAAM,iBAAiB,aAAE,OAAO;AAAA,EAC/B,OAA+B,gCAAQ,OAAO,SAAS,eAAe;AAAA,EACtE,QAAY,YAAQ,OAAO,SAAS,iBAAiB;AAAA,EACrD,UAAiC,+BAAQ,OAAO,SAAS,uBAAuB;AAAA,EAChF,QAAe,eAAQ,OAAO,SAAS,gBAAgB;AACxD,CAAC,EAAE,SAAS,gBAAgB;AAKrB,IAAM,EAAE,SAAS,kBAAkB,QAAQ,QAAI,YAAAE,SAA4B;AAAA,EACjF,WAAAF;AAAA,EACA;AAAA,EACA,aAAa,CAAC,UAAmB,GAAG;AAAA,EACpC,eAAe;AAChB,CAAC;AAIM,IAAM,EAAE,QAAQ,IAAI,KAAK,IAAI;AAE7B,IAAMC,WAAU;AAAA,EACtB,GAAG;AAAA,EACH,QAAQ,iBAAiB,OAAO,UAAU,SAAO,GAAoB;AACtE;","names":["rawSchema","schemas","createType"]}
1
+ {"version":3,"sources":["NetworkConfig.ts"],"sourcesContent":["import createType, { Flatten } from '@taqueria/protocol/Base';\nimport * as EconomicalProtocolHash from '@taqueria/protocol/EconomicalProtocolHash';\nimport * as Faucet from '@taqueria/protocol/Faucet';\nimport * as HumanReadableIdentifier from '@taqueria/protocol/HumanReadableIdentifier';\nimport * as Url from '@taqueria/protocol/Url';\nimport { z } from 'zod';\n\nexport const rawSchema = z.object({\n\tlabel: HumanReadableIdentifier.rawSchema,\n\trpcUrl: Url.rawSchema,\n\tprotocol: EconomicalProtocolHash.rawSchema,\n\taccounts: z.record(\n\t\tz.any({ description: 'Accounts' }),\n\t\t{ description: 'Accounts' },\n\t).optional(),\n\tfaucet: Faucet.rawSchema.describe('Network Faucet').optional(),\n}).describe('Network Config');\n\nconst internalSchema = z.object({\n\tlabel: HumanReadableIdentifier.schemas.schema.describe('Network Label'),\n\trpcUrl: Url.schemas.schema.describe('Network RPC Url'),\n\tprotocol: EconomicalProtocolHash.schemas.schema.describe('Network Protocol Hash'),\n\taccounts: z.record(\n\t\tz.any({ description: 'Accounts' }),\n\t\t{ description: 'Accounts' },\n\t).optional(),\n\tfaucet: Faucet.schemas.schema.describe('Network Faucet').optional(),\n}).describe('Network Config');\n\ntype RawInput = z.infer<typeof rawSchema>;\ntype Input = z.infer<typeof internalSchema>;\n\nexport const { schemas: generatedSchemas, factory } = createType<RawInput, Input>({\n\trawSchema,\n\tinternalSchema,\n\tparseErrMsg: (value: unknown) => `${value} is not a valid network configuration`,\n\tunknownErrMsg: 'Something went wrong trying to parse the network configuration',\n});\n\nexport type NetworkConfig = Flatten<z.infer<typeof generatedSchemas.schema>>;\nexport type t = NetworkConfig;\nexport const { create, of, make } = factory;\n\nexport const schemas = {\n\t...generatedSchemas,\n\tschema: generatedSchemas.schema.transform(val => val as NetworkConfig),\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAAA;AAAA,EAAA,eAAAC;AAAA;AAAA;AAAA,kBAAoC;AACpC,6BAAwC;AACxC,aAAwB;AACxB,8BAAyC;AACzC,UAAqB;AACrB,iBAAkB;AAEX,IAAMD,aAAY,aAAE,OAAO;AAAA,EACjC,OAA+B;AAAA,EAC/B,QAAY;AAAA,EACZ,UAAiC;AAAA,EACjC,UAAU,aAAE;AAAA,IACX,aAAE,IAAI,EAAE,aAAa,WAAW,CAAC;AAAA,IACjC,EAAE,aAAa,WAAW;AAAA,EAC3B,EAAE,SAAS;AAAA,EACX,QAAe,iBAAU,SAAS,gBAAgB,EAAE,SAAS;AAC9D,CAAC,EAAE,SAAS,gBAAgB;AAE5B,IAAM,iBAAiB,aAAE,OAAO;AAAA,EAC/B,OAA+B,gCAAQ,OAAO,SAAS,eAAe;AAAA,EACtE,QAAY,YAAQ,OAAO,SAAS,iBAAiB;AAAA,EACrD,UAAiC,+BAAQ,OAAO,SAAS,uBAAuB;AAAA,EAChF,UAAU,aAAE;AAAA,IACX,aAAE,IAAI,EAAE,aAAa,WAAW,CAAC;AAAA,IACjC,EAAE,aAAa,WAAW;AAAA,EAC3B,EAAE,SAAS;AAAA,EACX,QAAe,eAAQ,OAAO,SAAS,gBAAgB,EAAE,SAAS;AACnE,CAAC,EAAE,SAAS,gBAAgB;AAKrB,IAAM,EAAE,SAAS,kBAAkB,QAAQ,QAAI,YAAAE,SAA4B;AAAA,EACjF,WAAAF;AAAA,EACA;AAAA,EACA,aAAa,CAAC,UAAmB,GAAG;AAAA,EACpC,eAAe;AAChB,CAAC;AAIM,IAAM,EAAE,QAAQ,IAAI,KAAK,IAAI;AAE7B,IAAMC,WAAU;AAAA,EACtB,GAAG;AAAA,EACH,QAAQ,iBAAiB,OAAO,UAAU,SAAO,GAAoB;AACtE;","names":["rawSchema","schemas","createType"]}
package/NetworkConfig.mjs CHANGED
@@ -9,13 +9,21 @@ var rawSchema5 = z.object({
9
9
  label: HumanReadableIdentifier.rawSchema,
10
10
  rpcUrl: Url.rawSchema,
11
11
  protocol: EconomicalProtocolHash.rawSchema,
12
- faucet: Faucet.rawSchema.describe("Network Faucet")
12
+ accounts: z.record(
13
+ z.any({ description: "Accounts" }),
14
+ { description: "Accounts" }
15
+ ).optional(),
16
+ faucet: Faucet.rawSchema.describe("Network Faucet").optional()
13
17
  }).describe("Network Config");
14
18
  var internalSchema = z.object({
15
19
  label: HumanReadableIdentifier.schemas.schema.describe("Network Label"),
16
20
  rpcUrl: Url.schemas.schema.describe("Network RPC Url"),
17
21
  protocol: EconomicalProtocolHash.schemas.schema.describe("Network Protocol Hash"),
18
- faucet: Faucet.schemas.schema.describe("Network Faucet")
22
+ accounts: z.record(
23
+ z.any({ description: "Accounts" }),
24
+ { description: "Accounts" }
25
+ ).optional(),
26
+ faucet: Faucet.schemas.schema.describe("Network Faucet").optional()
19
27
  }).describe("Network Config");
20
28
  var { schemas: generatedSchemas, factory } = createType({
21
29
  rawSchema: rawSchema5,
@@ -1 +1 @@
1
- {"version":3,"sources":["NetworkConfig.ts"],"sourcesContent":["import createType, { Flatten } from '@taqueria/protocol/Base';\nimport * as EconomicalProtocolHash from '@taqueria/protocol/EconomicalProtocolHash';\nimport * as Faucet from '@taqueria/protocol/Faucet';\nimport * as HumanReadableIdentifier from '@taqueria/protocol/HumanReadableIdentifier';\nimport * as Url from '@taqueria/protocol/Url';\nimport { z } from 'zod';\n\nexport const rawSchema = z.object({\n\tlabel: HumanReadableIdentifier.rawSchema,\n\trpcUrl: Url.rawSchema,\n\tprotocol: EconomicalProtocolHash.rawSchema,\n\tfaucet: Faucet.rawSchema.describe('Network Faucet'),\n}).describe('Network Config');\n\nconst internalSchema = z.object({\n\tlabel: HumanReadableIdentifier.schemas.schema.describe('Network Label'),\n\trpcUrl: Url.schemas.schema.describe('Network RPC Url'),\n\tprotocol: EconomicalProtocolHash.schemas.schema.describe('Network Protocol Hash'),\n\tfaucet: Faucet.schemas.schema.describe('Network Faucet'),\n}).describe('Network Config');\n\ntype RawInput = z.infer<typeof rawSchema>;\ntype Input = z.infer<typeof internalSchema>;\n\nexport const { schemas: generatedSchemas, factory } = createType<RawInput, Input>({\n\trawSchema,\n\tinternalSchema,\n\tparseErrMsg: (value: unknown) => `${value} is not a valid network configuration`,\n\tunknownErrMsg: 'Something went wrong trying to parse the network configuration',\n});\n\nexport type NetworkConfig = Flatten<z.infer<typeof generatedSchemas.schema>>;\nexport type t = NetworkConfig;\nexport const { create, of, make } = factory;\n\nexport const schemas = {\n\t...generatedSchemas,\n\tschema: generatedSchemas.schema.transform(val => val as NetworkConfig),\n};\n"],"mappings":";AAAA,OAAO,gBAA6B;AACpC,YAAY,4BAA4B;AACxC,YAAY,YAAY;AACxB,YAAY,6BAA6B;AACzC,YAAY,SAAS;AACrB,SAAS,SAAS;AAEX,IAAMA,aAAY,EAAE,OAAO;AAAA,EACjC,OAA+B;AAAA,EAC/B,QAAY;AAAA,EACZ,UAAiC;AAAA,EACjC,QAAe,iBAAU,SAAS,gBAAgB;AACnD,CAAC,EAAE,SAAS,gBAAgB;AAE5B,IAAM,iBAAiB,EAAE,OAAO;AAAA,EAC/B,OAA+B,gCAAQ,OAAO,SAAS,eAAe;AAAA,EACtE,QAAY,YAAQ,OAAO,SAAS,iBAAiB;AAAA,EACrD,UAAiC,+BAAQ,OAAO,SAAS,uBAAuB;AAAA,EAChF,QAAe,eAAQ,OAAO,SAAS,gBAAgB;AACxD,CAAC,EAAE,SAAS,gBAAgB;AAKrB,IAAM,EAAE,SAAS,kBAAkB,QAAQ,IAAI,WAA4B;AAAA,EACjF,WAAAA;AAAA,EACA;AAAA,EACA,aAAa,CAAC,UAAmB,GAAG;AAAA,EACpC,eAAe;AAChB,CAAC;AAIM,IAAM,EAAE,QAAQ,IAAI,KAAK,IAAI;AAE7B,IAAMC,WAAU;AAAA,EACtB,GAAG;AAAA,EACH,QAAQ,iBAAiB,OAAO,UAAU,SAAO,GAAoB;AACtE;","names":["rawSchema","schemas"]}
1
+ {"version":3,"sources":["NetworkConfig.ts"],"sourcesContent":["import createType, { Flatten } from '@taqueria/protocol/Base';\nimport * as EconomicalProtocolHash from '@taqueria/protocol/EconomicalProtocolHash';\nimport * as Faucet from '@taqueria/protocol/Faucet';\nimport * as HumanReadableIdentifier from '@taqueria/protocol/HumanReadableIdentifier';\nimport * as Url from '@taqueria/protocol/Url';\nimport { z } from 'zod';\n\nexport const rawSchema = z.object({\n\tlabel: HumanReadableIdentifier.rawSchema,\n\trpcUrl: Url.rawSchema,\n\tprotocol: EconomicalProtocolHash.rawSchema,\n\taccounts: z.record(\n\t\tz.any({ description: 'Accounts' }),\n\t\t{ description: 'Accounts' },\n\t).optional(),\n\tfaucet: Faucet.rawSchema.describe('Network Faucet').optional(),\n}).describe('Network Config');\n\nconst internalSchema = z.object({\n\tlabel: HumanReadableIdentifier.schemas.schema.describe('Network Label'),\n\trpcUrl: Url.schemas.schema.describe('Network RPC Url'),\n\tprotocol: EconomicalProtocolHash.schemas.schema.describe('Network Protocol Hash'),\n\taccounts: z.record(\n\t\tz.any({ description: 'Accounts' }),\n\t\t{ description: 'Accounts' },\n\t).optional(),\n\tfaucet: Faucet.schemas.schema.describe('Network Faucet').optional(),\n}).describe('Network Config');\n\ntype RawInput = z.infer<typeof rawSchema>;\ntype Input = z.infer<typeof internalSchema>;\n\nexport const { schemas: generatedSchemas, factory } = createType<RawInput, Input>({\n\trawSchema,\n\tinternalSchema,\n\tparseErrMsg: (value: unknown) => `${value} is not a valid network configuration`,\n\tunknownErrMsg: 'Something went wrong trying to parse the network configuration',\n});\n\nexport type NetworkConfig = Flatten<z.infer<typeof generatedSchemas.schema>>;\nexport type t = NetworkConfig;\nexport const { create, of, make } = factory;\n\nexport const schemas = {\n\t...generatedSchemas,\n\tschema: generatedSchemas.schema.transform(val => val as NetworkConfig),\n};\n"],"mappings":";AAAA,OAAO,gBAA6B;AACpC,YAAY,4BAA4B;AACxC,YAAY,YAAY;AACxB,YAAY,6BAA6B;AACzC,YAAY,SAAS;AACrB,SAAS,SAAS;AAEX,IAAMA,aAAY,EAAE,OAAO;AAAA,EACjC,OAA+B;AAAA,EAC/B,QAAY;AAAA,EACZ,UAAiC;AAAA,EACjC,UAAU,EAAE;AAAA,IACX,EAAE,IAAI,EAAE,aAAa,WAAW,CAAC;AAAA,IACjC,EAAE,aAAa,WAAW;AAAA,EAC3B,EAAE,SAAS;AAAA,EACX,QAAe,iBAAU,SAAS,gBAAgB,EAAE,SAAS;AAC9D,CAAC,EAAE,SAAS,gBAAgB;AAE5B,IAAM,iBAAiB,EAAE,OAAO;AAAA,EAC/B,OAA+B,gCAAQ,OAAO,SAAS,eAAe;AAAA,EACtE,QAAY,YAAQ,OAAO,SAAS,iBAAiB;AAAA,EACrD,UAAiC,+BAAQ,OAAO,SAAS,uBAAuB;AAAA,EAChF,UAAU,EAAE;AAAA,IACX,EAAE,IAAI,EAAE,aAAa,WAAW,CAAC;AAAA,IACjC,EAAE,aAAa,WAAW;AAAA,EAC3B,EAAE,SAAS;AAAA,EACX,QAAe,eAAQ,OAAO,SAAS,gBAAgB,EAAE,SAAS;AACnE,CAAC,EAAE,SAAS,gBAAgB;AAKrB,IAAM,EAAE,SAAS,kBAAkB,QAAQ,IAAI,WAA4B;AAAA,EACjF,WAAAA;AAAA,EACA;AAAA,EACA,aAAa,CAAC,UAAmB,GAAG;AAAA,EACpC,eAAe;AAChB,CAAC;AAIM,IAAM,EAAE,QAAQ,IAAI,KAAK,IAAI;AAE7B,IAAMC,WAAU;AAAA,EACtB,GAAG;AAAA,EACH,QAAQ,iBAAiB,OAAO,UAAU,SAAO,GAAoB;AACtE;","names":["rawSchema","schemas"]}