@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.
@@ -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
- } | undefined;
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
- } | undefined;
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
- } | undefined;
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.ZodOptional<z.ZodObject<{
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-js").BrandedHex, string>>>;
@@ -1 +1 @@
1
- {"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../../src/config/Config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAUvB,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAM+E,CAAA;AAE3G,MAAM,MAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAOjB;AAED,kDAAkD;AAClD,eAAO,MAAM,gBAAgB,QAAO,MAA6B,CAAA"}
@@ -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({ actors: ActorsConfigZod.optional() }).describe("Actor-specific configurations that override the base configuration when the actor is running").shape);
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) {