@xyo-network/xl1-protocol-sdk 1.23.0 → 1.23.1
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/CreatableProvider/AbstractCreatableProvider.d.ts +2 -2
- package/dist/neutral/actor/Actor.d.ts +2 -2
- package/dist/neutral/actor/ActorV2.d.ts +2 -2
- package/dist/neutral/config/Config.d.ts +1 -1
- package/dist/neutral/config/Config.d.ts.map +1 -1
- package/dist/neutral/index.mjs +9 -1
- package/dist/neutral/index.mjs.map +1 -1
- package/dist/neutral/test/index.mjs +9 -1
- package/dist/neutral/test/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/config/Config.ts +9 -1
|
@@ -70,7 +70,7 @@ export declare abstract class AbstractCreatableProvider<TParams extends Creatabl
|
|
|
70
70
|
readonly __address: true;
|
|
71
71
|
})[] | undefined;
|
|
72
72
|
};
|
|
73
|
-
actors
|
|
73
|
+
actors: {
|
|
74
74
|
api?: {
|
|
75
75
|
chain: {
|
|
76
76
|
id?: import("@xylabs/sdk-js").BrandedHex | undefined;
|
|
@@ -435,7 +435,7 @@ export declare abstract class AbstractCreatableProvider<TParams extends Creatabl
|
|
|
435
435
|
port: number;
|
|
436
436
|
mnemonic?: string | undefined;
|
|
437
437
|
} | undefined;
|
|
438
|
-
}
|
|
438
|
+
};
|
|
439
439
|
};
|
|
440
440
|
protected get context(): import("./CreatableProviderContext.zod.ts").CreatableProviderContextType;
|
|
441
441
|
protected get locator(): import("./ProviderFactoryLocatorInstance.ts").ProviderFactoryLocatorInstance<import("./CreatableProviderContext.zod.ts").CreatableProviderContextType>;
|
|
@@ -83,7 +83,7 @@ export declare class Actor<TParams extends ActorParams = ActorParams> extends Ab
|
|
|
83
83
|
readonly __address: true;
|
|
84
84
|
})[] | undefined;
|
|
85
85
|
};
|
|
86
|
-
actors
|
|
86
|
+
actors: {
|
|
87
87
|
api?: {
|
|
88
88
|
chain: {
|
|
89
89
|
id?: import("@xylabs/sdk-js").BrandedHex | undefined;
|
|
@@ -448,7 +448,7 @@ export declare class Actor<TParams extends ActorParams = ActorParams> extends Ab
|
|
|
448
448
|
port: number;
|
|
449
449
|
mnemonic?: string | undefined;
|
|
450
450
|
} | undefined;
|
|
451
|
-
}
|
|
451
|
+
};
|
|
452
452
|
};
|
|
453
453
|
protected get context(): ActorContext;
|
|
454
454
|
protected get locator(): import("../CreatableProvider/ProviderFactoryLocatorInstance.ts").ProviderFactoryLocatorInstance<import("../CreatableProvider/CreatableProviderContext.zod.ts").CreatableProviderContextType>;
|
|
@@ -78,7 +78,7 @@ export declare abstract class ActorV2<TParams extends ActorParamsV2 = ActorParam
|
|
|
78
78
|
readonly __address: true;
|
|
79
79
|
})[] | undefined;
|
|
80
80
|
};
|
|
81
|
-
actors
|
|
81
|
+
actors: {
|
|
82
82
|
api?: {
|
|
83
83
|
chain: {
|
|
84
84
|
id?: import("@xylabs/sdk-js").BrandedHex | undefined;
|
|
@@ -443,7 +443,7 @@ export declare abstract class ActorV2<TParams extends ActorParamsV2 = ActorParam
|
|
|
443
443
|
port: number;
|
|
444
444
|
mnemonic?: string | undefined;
|
|
445
445
|
} | undefined;
|
|
446
|
-
}
|
|
446
|
+
};
|
|
447
447
|
};
|
|
448
448
|
protected get context(): ActorContext;
|
|
449
449
|
protected get locator(): ProviderFactoryLocatorInstance<import("../CreatableProvider/CreatableProviderContext.zod.ts").CreatableProviderContextType>;
|
|
@@ -469,7 +469,7 @@ export declare const ConfigZod: z.ZodObject<{
|
|
|
469
469
|
readonly __address: true;
|
|
470
470
|
}, string>>>>>;
|
|
471
471
|
}, z.core.$strip>>;
|
|
472
|
-
actors: z.
|
|
472
|
+
actors: z.ZodDefault<z.ZodObject<{
|
|
473
473
|
api: z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
474
474
|
chain: z.ZodDefault<z.ZodObject<{
|
|
475
475
|
id: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAOjB;AAED,kDAAkD;AAClD,eAAO,MAAM,gBAAgB,QAAO,MAA6B,CAAA"}
|
package/dist/neutral/index.mjs
CHANGED
|
@@ -546,7 +546,15 @@ var ActorsConfigZod = z16.object({
|
|
|
546
546
|
producer: ProducerConfigZod.default(ProducerConfigZod.parse({})).describe("Configuration for the producer").optional(),
|
|
547
547
|
rewardRedemption: RewardRedemptionConfigZod.default(RewardRedemptionConfigZod.parse({})).describe("Configuration for the rewards redemption API").optional()
|
|
548
548
|
}).describe("Actor-specific configurations that override the base configuration when the actor is running");
|
|
549
|
-
var ConfigZod = BaseConfigZod.extend(z16.object({
|
|
549
|
+
var ConfigZod = BaseConfigZod.extend(z16.object({
|
|
550
|
+
actors: ActorsConfigZod.default({
|
|
551
|
+
api: ApiConfigZod.parse({}),
|
|
552
|
+
bridge: BridgeConfigZod.parse({}),
|
|
553
|
+
mempool: MempoolConfigZod.parse({}),
|
|
554
|
+
producer: ProducerConfigZod.parse({}),
|
|
555
|
+
rewardRedemption: RewardRedemptionConfigZod.parse({})
|
|
556
|
+
})
|
|
557
|
+
}).describe("Actor-specific configurations that override the base configuration when the actor is running").shape);
|
|
550
558
|
function resolveConfig(config, actor) {
|
|
551
559
|
const parsedConfig = ConfigZod.parse(config);
|
|
552
560
|
if (parsedConfig.actors?.[actor] === void 0) {
|