@xyo-network/xl1-protocol-sdk 1.26.34 → 1.26.36
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/dist/neutral/config/Actor.d.ts +17 -6
- package/dist/neutral/config/Actor.d.ts.map +1 -1
- package/dist/neutral/config/Actors.d.ts +1 -1
- package/dist/neutral/config/Config.d.ts +2 -2
- package/dist/neutral/config/HostActor.d.ts +6 -6
- package/dist/neutral/context/Actor.d.ts +6 -6
- package/dist/neutral/context/HostActor.d.ts +6 -6
- package/dist/neutral/getFileConfig.d.ts +1 -1
- package/dist/neutral/getFileConfig.mjs +82 -85
- package/dist/neutral/getFileConfig.mjs.map +1 -1
- package/dist/neutral/index.mjs +162 -153
- package/dist/neutral/index.mjs.map +1 -1
- package/dist/neutral/test/index.mjs +82 -85
- package/dist/neutral/test/index.mjs.map +1 -1
- package/package.json +13 -13
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* BIP-32 derivation path for an actor wallet.
|
|
4
|
+
*
|
|
5
|
+
* - Absolute form: starts with `m/` (e.g. `m/44'/60'/0'/0/0`). The full path is used as-is,
|
|
6
|
+
* giving the caller complete control over coin type, account, and hardening.
|
|
7
|
+
* - Relative form: a segment list without the `m/` prefix (e.g. `0`, `0/1`, `44'/60'/0'/0/0`).
|
|
8
|
+
* The consumer appends this to its configured root base path.
|
|
9
|
+
*
|
|
10
|
+
* Each segment is a non-negative integer, optionally suffixed with `'` to mark it as hardened.
|
|
11
|
+
*/
|
|
12
|
+
export declare const AccountPathZod: z.ZodString;
|
|
2
13
|
/** ActorConfigZod constant. */
|
|
3
14
|
export declare const ActorConfigZod: z.ZodObject<{
|
|
4
15
|
chain: z.ZodDefault<z.ZodObject<{
|
|
@@ -81,7 +92,7 @@ export declare const ActorConfigZod: z.ZodObject<{
|
|
|
81
92
|
backoffMs: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
82
93
|
}, z.core.$strip>>;
|
|
83
94
|
name: z.ZodString;
|
|
84
|
-
|
|
95
|
+
accountPath: z.ZodOptional<z.ZodString>;
|
|
85
96
|
healthCheckPort: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
86
97
|
}, z.core.$strip>;
|
|
87
98
|
/** ActorConfig type. */
|
|
@@ -162,7 +173,7 @@ export declare const isActorConfig: <T>(value: T) => value is T & {
|
|
|
162
173
|
};
|
|
163
174
|
name: string;
|
|
164
175
|
dataLake?: import("./index.ts").DataLakeConfig | undefined;
|
|
165
|
-
|
|
176
|
+
accountPath?: string | undefined;
|
|
166
177
|
healthCheckPort?: number | undefined;
|
|
167
178
|
};
|
|
168
179
|
/** Converts a value to ActorConfig, throwing if invalid. */
|
|
@@ -242,7 +253,7 @@ export declare const asActorConfig: {
|
|
|
242
253
|
};
|
|
243
254
|
name: string;
|
|
244
255
|
dataLake?: import("./index.ts").DataLakeConfig | undefined;
|
|
245
|
-
|
|
256
|
+
accountPath?: string | undefined;
|
|
246
257
|
healthCheckPort?: number | undefined;
|
|
247
258
|
}) | undefined;
|
|
248
259
|
<T>(value: T, assert: import("@xylabs/sdk-js").ZodFactoryConfig): T & {
|
|
@@ -320,7 +331,7 @@ export declare const asActorConfig: {
|
|
|
320
331
|
};
|
|
321
332
|
name: string;
|
|
322
333
|
dataLake?: import("./index.ts").DataLakeConfig | undefined;
|
|
323
|
-
|
|
334
|
+
accountPath?: string | undefined;
|
|
324
335
|
healthCheckPort?: number | undefined;
|
|
325
336
|
};
|
|
326
337
|
};
|
|
@@ -401,7 +412,7 @@ export declare const toActorConfig: {
|
|
|
401
412
|
};
|
|
402
413
|
name: string;
|
|
403
414
|
dataLake?: import("./index.ts").DataLakeConfig | undefined;
|
|
404
|
-
|
|
415
|
+
accountPath?: string | undefined;
|
|
405
416
|
healthCheckPort?: number | undefined;
|
|
406
417
|
}) | undefined;
|
|
407
418
|
<T>(value: T, assert: import("@xylabs/sdk-js").ZodFactoryConfig): T & {
|
|
@@ -479,7 +490,7 @@ export declare const toActorConfig: {
|
|
|
479
490
|
};
|
|
480
491
|
name: string;
|
|
481
492
|
dataLake?: import("./index.ts").DataLakeConfig | undefined;
|
|
482
|
-
|
|
493
|
+
accountPath?: string | undefined;
|
|
483
494
|
healthCheckPort?: number | undefined;
|
|
484
495
|
};
|
|
485
496
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Actor.d.ts","sourceRoot":"","sources":["../../../src/config/Actor.ts"],"names":[],"mappings":"AAGA,OAAO,EAAkB,CAAC,EAAE,MAAM,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"Actor.d.ts","sourceRoot":"","sources":["../../../src/config/Actor.ts"],"names":[],"mappings":"AAGA,OAAO,EAAkB,CAAC,EAAE,MAAM,KAAK,CAAA;AAIvC;;;;;;;;;GASG;AACH,eAAO,MAAM,cAAc,aAG1B,CAAA;AAED,+BAA+B;AAC/B,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAYzB,CAAA;AAEF,wBAAwB;AACxB,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAA;AAExD,gEAAgE;AAChE,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA+B,CAAA;AACzD,4DAA4D;AAC5D,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAgD,CAAA;AAC1E,8BAA8B;AAC9B,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAgD,CAAA"}
|
|
@@ -81,7 +81,7 @@ export declare const ActorsConfigZod: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
|
81
81
|
backoffMs: z.ZodDefault<z.z.ZodCoercedNumber<unknown>>;
|
|
82
82
|
}, z.z.core.$strip>>;
|
|
83
83
|
name: z.ZodString;
|
|
84
|
-
|
|
84
|
+
accountPath: z.ZodOptional<z.ZodString>;
|
|
85
85
|
healthCheckPort: z.ZodOptional<z.z.ZodCoercedNumber<unknown>>;
|
|
86
86
|
}, z.z.core.$loose>>>;
|
|
87
87
|
/** ActorsConfig type. */
|
|
@@ -162,7 +162,7 @@ export declare const ConfigZod: z.ZodObject<{
|
|
|
162
162
|
backoffMs: z.ZodDefault<z.z.ZodCoercedNumber<unknown>>;
|
|
163
163
|
}, z.z.core.$strip>>;
|
|
164
164
|
name: z.ZodString;
|
|
165
|
-
|
|
165
|
+
accountPath: z.ZodOptional<z.ZodString>;
|
|
166
166
|
healthCheckPort: z.ZodOptional<z.z.ZodCoercedNumber<unknown>>;
|
|
167
167
|
}, z.z.core.$loose>>>;
|
|
168
168
|
}, z.z.core.$strip>;
|
|
@@ -318,7 +318,7 @@ export declare function resolveConfig(config: DeepPartial<Config>): {
|
|
|
318
318
|
};
|
|
319
319
|
name: string;
|
|
320
320
|
dataLake?: import("./index.ts").DataLakeConfig | undefined;
|
|
321
|
-
|
|
321
|
+
accountPath?: string | undefined;
|
|
322
322
|
healthCheckPort?: number | undefined;
|
|
323
323
|
}[];
|
|
324
324
|
dataLake?: import("./index.ts").DataLakeConfig | undefined;
|
|
@@ -81,7 +81,7 @@ export declare const HostActorConfigZod: z.ZodObject<{
|
|
|
81
81
|
backoffMs: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
82
82
|
}, z.core.$strip>>;
|
|
83
83
|
name: z.ZodString;
|
|
84
|
-
|
|
84
|
+
accountPath: z.ZodOptional<z.ZodString>;
|
|
85
85
|
healthCheckPort: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
86
86
|
host: z.ZodDefault<z.ZodString>;
|
|
87
87
|
port: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
@@ -166,7 +166,7 @@ export declare const isHostActorConfig: <T>(value: T) => value is T & {
|
|
|
166
166
|
host: string;
|
|
167
167
|
port: number;
|
|
168
168
|
dataLake?: import("./index.ts").DataLakeConfig | undefined;
|
|
169
|
-
|
|
169
|
+
accountPath?: string | undefined;
|
|
170
170
|
healthCheckPort?: number | undefined;
|
|
171
171
|
};
|
|
172
172
|
/** Converts a value to HostActorConfig, throwing if invalid. */
|
|
@@ -248,7 +248,7 @@ export declare const asHostActorConfig: {
|
|
|
248
248
|
host: string;
|
|
249
249
|
port: number;
|
|
250
250
|
dataLake?: import("./index.ts").DataLakeConfig | undefined;
|
|
251
|
-
|
|
251
|
+
accountPath?: string | undefined;
|
|
252
252
|
healthCheckPort?: number | undefined;
|
|
253
253
|
}) | undefined;
|
|
254
254
|
<T>(value: T, assert: import("@xylabs/sdk-js").ZodFactoryConfig): T & {
|
|
@@ -328,7 +328,7 @@ export declare const asHostActorConfig: {
|
|
|
328
328
|
host: string;
|
|
329
329
|
port: number;
|
|
330
330
|
dataLake?: import("./index.ts").DataLakeConfig | undefined;
|
|
331
|
-
|
|
331
|
+
accountPath?: string | undefined;
|
|
332
332
|
healthCheckPort?: number | undefined;
|
|
333
333
|
};
|
|
334
334
|
};
|
|
@@ -411,7 +411,7 @@ export declare const toHostActorConfig: {
|
|
|
411
411
|
host: string;
|
|
412
412
|
port: number;
|
|
413
413
|
dataLake?: import("./index.ts").DataLakeConfig | undefined;
|
|
414
|
-
|
|
414
|
+
accountPath?: string | undefined;
|
|
415
415
|
healthCheckPort?: number | undefined;
|
|
416
416
|
}) | undefined;
|
|
417
417
|
<T>(value: T, assert: import("@xylabs/sdk-js").ZodFactoryConfig): T & {
|
|
@@ -491,7 +491,7 @@ export declare const toHostActorConfig: {
|
|
|
491
491
|
host: string;
|
|
492
492
|
port: number;
|
|
493
493
|
dataLake?: import("./index.ts").DataLakeConfig | undefined;
|
|
494
|
-
|
|
494
|
+
accountPath?: string | undefined;
|
|
495
495
|
healthCheckPort?: number | undefined;
|
|
496
496
|
};
|
|
497
497
|
};
|
|
@@ -89,7 +89,7 @@ export declare const ActorConfigContext: z.ZodObject<{
|
|
|
89
89
|
backoffMs: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
90
90
|
}, z.core.$strip>>;
|
|
91
91
|
name: z.ZodString;
|
|
92
|
-
|
|
92
|
+
accountPath: z.ZodOptional<z.ZodString>;
|
|
93
93
|
healthCheckPort: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
94
94
|
}, z.core.$strip>;
|
|
95
95
|
}, z.core.$strip>;
|
|
@@ -174,7 +174,7 @@ export declare const isActorConfigContext: <T>(value: T) => value is T & {
|
|
|
174
174
|
};
|
|
175
175
|
name: string;
|
|
176
176
|
dataLake?: import("../config/index.ts").DataLakeConfig | undefined;
|
|
177
|
-
|
|
177
|
+
accountPath?: string | undefined;
|
|
178
178
|
healthCheckPort?: number | undefined;
|
|
179
179
|
};
|
|
180
180
|
logger?: import("@xylabs/sdk-js").Logger | undefined;
|
|
@@ -263,7 +263,7 @@ export declare const asActorConfigContext: {
|
|
|
263
263
|
};
|
|
264
264
|
name: string;
|
|
265
265
|
dataLake?: import("../config/index.ts").DataLakeConfig | undefined;
|
|
266
|
-
|
|
266
|
+
accountPath?: string | undefined;
|
|
267
267
|
healthCheckPort?: number | undefined;
|
|
268
268
|
};
|
|
269
269
|
logger?: import("@xylabs/sdk-js").Logger | undefined;
|
|
@@ -350,7 +350,7 @@ export declare const asActorConfigContext: {
|
|
|
350
350
|
};
|
|
351
351
|
name: string;
|
|
352
352
|
dataLake?: import("../config/index.ts").DataLakeConfig | undefined;
|
|
353
|
-
|
|
353
|
+
accountPath?: string | undefined;
|
|
354
354
|
healthCheckPort?: number | undefined;
|
|
355
355
|
};
|
|
356
356
|
logger?: import("@xylabs/sdk-js").Logger | undefined;
|
|
@@ -440,7 +440,7 @@ export declare const toActorConfigContext: {
|
|
|
440
440
|
};
|
|
441
441
|
name: string;
|
|
442
442
|
dataLake?: import("../config/index.ts").DataLakeConfig | undefined;
|
|
443
|
-
|
|
443
|
+
accountPath?: string | undefined;
|
|
444
444
|
healthCheckPort?: number | undefined;
|
|
445
445
|
};
|
|
446
446
|
logger?: import("@xylabs/sdk-js").Logger | undefined;
|
|
@@ -527,7 +527,7 @@ export declare const toActorConfigContext: {
|
|
|
527
527
|
};
|
|
528
528
|
name: string;
|
|
529
529
|
dataLake?: import("../config/index.ts").DataLakeConfig | undefined;
|
|
530
|
-
|
|
530
|
+
accountPath?: string | undefined;
|
|
531
531
|
healthCheckPort?: number | undefined;
|
|
532
532
|
};
|
|
533
533
|
logger?: import("@xylabs/sdk-js").Logger | undefined;
|
|
@@ -89,7 +89,7 @@ export declare const HostActorConfigContext: z.ZodObject<{
|
|
|
89
89
|
backoffMs: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
90
90
|
}, z.core.$strip>>;
|
|
91
91
|
name: z.ZodString;
|
|
92
|
-
|
|
92
|
+
accountPath: z.ZodOptional<z.ZodString>;
|
|
93
93
|
healthCheckPort: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
94
94
|
host: z.ZodDefault<z.ZodString>;
|
|
95
95
|
port: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
@@ -178,7 +178,7 @@ export declare const isHostActorConfigContext: <T>(value: T) => value is T & {
|
|
|
178
178
|
host: string;
|
|
179
179
|
port: number;
|
|
180
180
|
dataLake?: import("../config/index.ts").DataLakeConfig | undefined;
|
|
181
|
-
|
|
181
|
+
accountPath?: string | undefined;
|
|
182
182
|
healthCheckPort?: number | undefined;
|
|
183
183
|
};
|
|
184
184
|
logger?: import("@xylabs/sdk-js").Logger | undefined;
|
|
@@ -269,7 +269,7 @@ export declare const asHostActorConfigContext: {
|
|
|
269
269
|
host: string;
|
|
270
270
|
port: number;
|
|
271
271
|
dataLake?: import("../config/index.ts").DataLakeConfig | undefined;
|
|
272
|
-
|
|
272
|
+
accountPath?: string | undefined;
|
|
273
273
|
healthCheckPort?: number | undefined;
|
|
274
274
|
};
|
|
275
275
|
logger?: import("@xylabs/sdk-js").Logger | undefined;
|
|
@@ -358,7 +358,7 @@ export declare const asHostActorConfigContext: {
|
|
|
358
358
|
host: string;
|
|
359
359
|
port: number;
|
|
360
360
|
dataLake?: import("../config/index.ts").DataLakeConfig | undefined;
|
|
361
|
-
|
|
361
|
+
accountPath?: string | undefined;
|
|
362
362
|
healthCheckPort?: number | undefined;
|
|
363
363
|
};
|
|
364
364
|
logger?: import("@xylabs/sdk-js").Logger | undefined;
|
|
@@ -450,7 +450,7 @@ export declare const toHostActorConfigContext: {
|
|
|
450
450
|
host: string;
|
|
451
451
|
port: number;
|
|
452
452
|
dataLake?: import("../config/index.ts").DataLakeConfig | undefined;
|
|
453
|
-
|
|
453
|
+
accountPath?: string | undefined;
|
|
454
454
|
healthCheckPort?: number | undefined;
|
|
455
455
|
};
|
|
456
456
|
logger?: import("@xylabs/sdk-js").Logger | undefined;
|
|
@@ -539,7 +539,7 @@ export declare const toHostActorConfigContext: {
|
|
|
539
539
|
host: string;
|
|
540
540
|
port: number;
|
|
541
541
|
dataLake?: import("../config/index.ts").DataLakeConfig | undefined;
|
|
542
|
-
|
|
542
|
+
accountPath?: string | undefined;
|
|
543
543
|
healthCheckPort?: number | undefined;
|
|
544
544
|
};
|
|
545
545
|
logger?: import("@xylabs/sdk-js").Logger | undefined;
|
|
@@ -151,7 +151,7 @@ export declare function getFileConfig(searchPlaces?: string[]): Promise<{
|
|
|
151
151
|
};
|
|
152
152
|
name: string;
|
|
153
153
|
dataLake?: import("./config/index.ts").DataLakeConfig | undefined;
|
|
154
|
-
|
|
154
|
+
accountPath?: string | undefined;
|
|
155
155
|
healthCheckPort?: number | undefined;
|
|
156
156
|
}[];
|
|
157
157
|
dataLake?: import("./config/index.ts").DataLakeConfig | undefined;
|