@xyo-network/xl1-providers 4.0.2 → 4.0.4

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,14 +1,14 @@
1
1
  import { ProviderFactoryLocator } from '@xyo-network/xl1-protocol-sdk';
2
2
  /**
3
3
  * Builds an empty {@link ProviderFactoryLocator} whose context carries a default
4
- * {@link BaseConfig} — i.e. `BaseConfigZod.parse({})`.
4
+ * {@link LocatorConfig} — i.e. `LocatorConfigFieldsZod.parse({})`.
5
5
  *
6
- * The resulting config is the schema's defaults only: `chain`, `evm`, `log`,
7
- * `providers`, `remote`, `storage`, `telemetry`, and `validation` all populated
8
- * from `*ConfigZod.parse({})`. There is no
9
- * actor identity (no `name`, `accountPath`, or `healthCheckPort`) — that lives
10
- * on `ActorConfig`, not `BaseConfig`. Use this when you need a locator rooted
11
- * in protocol defaults rather than an actor's configuration.
6
+ * The resulting config is the schema's defaults only: `chain`, `connections`,
7
+ * `log`, `providerBindings`, `providers`, `telemetry`, and `validation` all
8
+ * populated from `*ConfigZod.parse({})`. There is no actor identity (no `name`,
9
+ * `accountPath`, or `healthCheckPort`) — that lives on `ActorConfig`, not
10
+ * locator process fields. Use this when you need a locator rooted in protocol
11
+ * defaults rather than an actor's configuration.
12
12
  *
13
13
  * No providers are registered on the returned locator and it is not frozen;
14
14
  * the caller is expected to register what they need and (optionally) freeze it.
@@ -1,9 +1,10 @@
1
1
  import type { ProviderMoniker } from '@xyo-network/xl1-protocol-model';
2
- import type { Config, CreatableProviderContext, DeepPartial, ProviderDescriptor, ProviderFactoryLocatorInstance } from '@xyo-network/xl1-protocol-sdk';
2
+ import type { CreatableProviderContext, ProviderDescriptor, ProviderFactoryLocatorInstance } from '@xyo-network/xl1-protocol-sdk';
3
3
  /** Options for building a locator from config-driven provider resolution. */
4
4
  export interface LocatorFromAdaptedConfigOptions {
5
5
  readonly candidates?: readonly ProviderDescriptor[];
6
- readonly config: DeepPartial<Config>;
6
+ /** Host, actor, or run-config slice — locator fields are parsed strictly. */
7
+ readonly config: unknown;
7
8
  readonly context?: Omit<CreatableProviderContext, 'config' | 'locator'>;
8
9
  readonly needs?: ReadonlySet<ProviderMoniker>;
9
10
  readonly validateDepsOnRegister?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"locatorFromAdaptedConfig.d.ts","sourceRoot":"","sources":["../../../src/locators/locatorFromAdaptedConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAA;AACtE,OAAO,KAAK,EACV,MAAM,EACN,wBAAwB,EACxB,WAAW,EACX,kBAAkB,EAClB,8BAA8B,EAC/B,MAAM,+BAA+B,CAAA;AAatC,6EAA6E;AAC7E,MAAM,WAAW,+BAA+B;IAC9C,QAAQ,CAAC,UAAU,CAAC,EAAE,SAAS,kBAAkB,EAAE,CAAA;IACnD,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;IACpC,QAAQ,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,wBAAwB,EAAE,QAAQ,GAAG,SAAS,CAAC,CAAA;IACvE,QAAQ,CAAC,KAAK,CAAC,EAAE,WAAW,CAAC,eAAe,CAAC,CAAA;IAC7C,QAAQ,CAAC,sBAAsB,CAAC,EAAE,OAAO,CAAA;CAC1C;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,+BAA+B,GACvC,8BAA8B,CAuBhC"}
1
+ {"version":3,"file":"locatorFromAdaptedConfig.d.ts","sourceRoot":"","sources":["../../../src/locators/locatorFromAdaptedConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAA;AACtE,OAAO,KAAK,EACV,wBAAwB,EACxB,kBAAkB,EAClB,8BAA8B,EAC/B,MAAM,+BAA+B,CAAA;AAYtC,6EAA6E;AAC7E,MAAM,WAAW,+BAA+B;IAC9C,QAAQ,CAAC,UAAU,CAAC,EAAE,SAAS,kBAAkB,EAAE,CAAA;IACnD,6EAA6E;IAC7E,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAA;IACxB,QAAQ,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,wBAAwB,EAAE,QAAQ,GAAG,SAAS,CAAC,CAAA;IACvE,QAAQ,CAAC,KAAK,CAAC,EAAE,WAAW,CAAC,eAAe,CAAC,CAAA;IAC7C,QAAQ,CAAC,sBAAsB,CAAC,EAAE,OAAO,CAAA;CAC1C;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,+BAA+B,GACvC,8BAA8B,CAuBhC"}
@@ -1 +1 @@
1
- {"version":3,"file":"remoteLocatorFromConfig.d.ts","sourceRoot":"","sources":["../../../src/locators/remoteLocatorFromConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAC7C,OAAO,KAAK,EACV,oCAAoC,EACpC,+BAA+B,EAChC,MAAM,+BAA+B,CAAA;AACtC,OAAO,KAAK,EAAE,iBAAiB,EAAE,8BAA8B,EAAE,MAAM,+BAA+B,CAAA;AAatG,MAAM,WAAW,eAAe;IAC9B,qBAAqB,CAAC,EAAE,+BAA+B,CAAA;IACvD,0BAA0B,CAAC,EAAE,oCAAoC,CAAA;CAClE;AAED,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,iBAAiB,EAC1B,sBAAsB,UAAQ,EAC9B,UAAU,CAAC,EAAE,eAAe,GAC3B,UAAU,CAAC,8BAA8B,CAAC,CA8C5C"}
1
+ {"version":3,"file":"remoteLocatorFromConfig.d.ts","sourceRoot":"","sources":["../../../src/locators/remoteLocatorFromConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAC7C,OAAO,KAAK,EACV,oCAAoC,EACpC,+BAA+B,EAChC,MAAM,+BAA+B,CAAA;AACtC,OAAO,KAAK,EAAE,iBAAiB,EAAE,8BAA8B,EAAE,MAAM,+BAA+B,CAAA;AAYtG,MAAM,WAAW,eAAe;IAC9B,qBAAqB,CAAC,EAAE,+BAA+B,CAAA;IACvD,0BAA0B,CAAC,EAAE,oCAAoC,CAAA;CAClE;AAED,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,iBAAiB,EAC1B,sBAAsB,UAAQ,EAC9B,UAAU,CAAC,EAAE,eAAe,GAC3B,UAAU,CAAC,8BAA8B,CAAC,CA8C5C"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/xl1-providers",
3
- "version": "4.0.2",
3
+ "version": "4.0.4",
4
4
  "description": "XYO Layer One API",
5
5
  "homepage": "https://xylabs.com",
6
6
  "bugs": {
@@ -44,10 +44,10 @@
44
44
  "README.md"
45
45
  ],
46
46
  "dependencies": {
47
- "@xyo-network/xl1-protocol-model": "~4.0.2",
48
- "@xyo-network/xl1-protocol-lib": "~4.0.2",
49
- "@xyo-network/xl1-protocol-sdk": "~4.0.2",
50
- "@xyo-network/xl1-rpc": "~4.0.2"
47
+ "@xyo-network/xl1-protocol-lib": "~4.0.4",
48
+ "@xyo-network/xl1-protocol-sdk": "~4.0.4",
49
+ "@xyo-network/xl1-protocol-model": "~4.0.4",
50
+ "@xyo-network/xl1-rpc": "~4.0.4"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@bitauth/libauth": "~3.0.0",