@xyo-network/xl1-cli-lib 1.18.1 → 1.18.2

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,11 @@
1
- import type { Logger } from '@xylabs/sdk-js';
2
1
  import type { AccountInstance } from '@xyo-network/account-model';
3
2
  import type { OrchestratorInstance } from '@xyo-network/chain-orchestration';
4
- import type { Config, ProviderFactoryLocatorInstance } from '@xyo-network/xl1-sdk';
5
- interface RunValidatorContext {
3
+ import type { CachingBaseContext, Config, ProviderFactoryLocatorInstance } from '@xyo-network/xl1-sdk';
4
+ interface RunValidatorContext extends CachingBaseContext {
6
5
  account: AccountInstance;
7
6
  config: Config;
8
7
  locator: ProviderFactoryLocatorInstance;
9
- logger: Logger;
10
8
  orchestrator: OrchestratorInstance;
11
- singletons: {};
12
9
  }
13
10
  export declare const runValidator: (context: RunValidatorContext) => Promise<void>;
14
11
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"runValidator.d.ts","sourceRoot":"","sources":["../../../../src/commands/validator/runValidator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;AAC5C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AACjE,OAAO,KAAK,EACV,oBAAoB,EAErB,MAAM,kCAAkC,CAAA;AAEzC,OAAO,KAAK,EAAE,MAAM,EAAE,8BAA8B,EAAE,MAAM,sBAAsB,CAAA;AAElF,UAAU,mBAAmB;IAC3B,OAAO,EAAE,eAAe,CAAA;IACxB,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,8BAA8B,CAAA;IACvC,MAAM,EAAE,MAAM,CAAA;IACd,YAAY,EAAE,oBAAoB,CAAA;IAClC,UAAU,EAAE,EAAE,CAAA;CACf;AAED,eAAO,MAAM,YAAY,GAAU,SAAS,mBAAmB,kBAqB9D,CAAA"}
1
+ {"version":3,"file":"runValidator.d.ts","sourceRoot":"","sources":["../../../../src/commands/validator/runValidator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AACjE,OAAO,KAAK,EACV,oBAAoB,EAErB,MAAM,kCAAkC,CAAA;AAEzC,OAAO,KAAK,EACV,kBAAkB,EAAE,MAAM,EAAE,8BAA8B,EAC3D,MAAM,sBAAsB,CAAA;AAE7B,UAAU,mBAAoB,SAAQ,kBAAkB;IACtD,OAAO,EAAE,eAAe,CAAA;IACxB,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,8BAA8B,CAAA;IACvC,YAAY,EAAE,oBAAoB,CAAA;CACnC;AAED,eAAO,MAAM,YAAY,GAAU,SAAS,mBAAmB,kBAqB9D,CAAA"}
@@ -127,7 +127,7 @@ var waitForHostPort = /* @__PURE__ */ __name((host, port) => {
127
127
 
128
128
  // src/runCLI.ts
129
129
  var configuration;
130
- var version = isDefined3("1.18.0") ? "1.18.0" : "unknown";
130
+ var version = isDefined3("1.18.1") ? "1.18.1" : "unknown";
131
131
  var getContextFromConfig = /* @__PURE__ */ __name(async (configuration2) => {
132
132
  const logger = initLogger(configuration2);
133
133
  const orchestrator = await Orchestrator.create({
package/dist/node/xl1.mjs CHANGED
@@ -130,7 +130,7 @@ var waitForHostPort = /* @__PURE__ */ __name((host, port) => {
130
130
 
131
131
  // src/runCLI.ts
132
132
  var configuration;
133
- var version = isDefined3("1.18.0") ? "1.18.0" : "unknown";
133
+ var version = isDefined3("1.18.1") ? "1.18.1" : "unknown";
134
134
  var getContextFromConfig = /* @__PURE__ */ __name(async (configuration2) => {
135
135
  const logger = initLogger(configuration2);
136
136
  const orchestrator = await Orchestrator.create({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/xl1-cli-lib",
3
- "version": "1.18.1",
3
+ "version": "1.18.2",
4
4
  "description": "XYO Layer One CLI Library",
5
5
  "homepage": "https://xylabs.com",
6
6
  "bugs": {
@@ -43,43 +43,46 @@
43
43
  "start": "node ./dist/node/xl1.mjs"
44
44
  },
45
45
  "dependencies": {
46
- "@xylabs/sdk-js": "~5.0.61",
47
- "@xyo-network/chain-api": "~1.18.1",
48
- "@xyo-network/chain-bridge": "~1.18.1",
49
- "@xyo-network/chain-mempool": "~1.18.1",
50
- "@xyo-network/chain-orchestration": "~1.18.1",
51
- "@xyo-network/chain-producer": "~1.18.1",
52
- "@xyo-network/chain-reward-redemption": "~1.18.1",
53
- "@xyo-network/xl1-sdk": "~1.18.2",
46
+ "@xylabs/sdk-js": "~5.0.64",
47
+ "@xyo-network/chain-api": "~1.18.2",
48
+ "@xyo-network/chain-bridge": "~1.18.2",
49
+ "@xyo-network/chain-mempool": "~1.18.2",
50
+ "@xyo-network/chain-orchestration": "~1.18.2",
51
+ "@xyo-network/chain-producer": "~1.18.2",
52
+ "@xyo-network/chain-reward-redemption": "~1.18.2",
53
+ "@xyo-network/xl1-sdk": "~1.19.4",
54
54
  "cosmiconfig": "~9.0.0",
55
55
  "dotenv": "~17.2.3",
56
- "yargs": "~18.0.0",
57
- "zod": "~4.2.1"
56
+ "yargs": "~18.0.0"
58
57
  },
59
58
  "devDependencies": {
60
- "@xylabs/ts-scripts-yarn3": "~7.2.32",
61
- "@xylabs/tsconfig": "~7.2.32",
62
- "@xylabs/vitest-extended": "~5.0.61",
63
- "@xyo-network/account-model": "~5.2.22",
64
- "@xyo-network/archivist-lmdb": "~5.2.22",
65
- "@xyo-network/archivist-mongodb": "~5.2.22",
66
- "@xyo-network/chain-services": "~1.18.1",
67
- "@xyo-network/chain-test": "~1.18.1",
68
- "@xyo-network/wallet": "~5.2.22",
69
- "@xyo-network/wallet-model": "~5.2.22",
70
- "@xyo-network/xl1-sdk": "~1.18.2",
59
+ "@xylabs/ts-scripts-yarn3": "~7.3.2",
60
+ "@xylabs/tsconfig": "~7.3.2",
61
+ "@xylabs/vitest-extended": "~5.0.64",
62
+ "@xyo-network/account-model": "~5.2.25",
63
+ "@xyo-network/archivist-lmdb": "~5.2.25",
64
+ "@xyo-network/archivist-mongodb": "~5.2.25",
65
+ "@xyo-network/chain-ethereum": "~1.18.2",
66
+ "@xyo-network/chain-services": "~1.18.2",
67
+ "@xyo-network/chain-test": "~1.18.2",
68
+ "@xyo-network/typechain": "~4.1.1",
69
+ "@xyo-network/wallet": "~5.2.25",
70
+ "@xyo-network/wallet-model": "~5.2.25",
71
+ "@xyo-network/xl1-sdk": "~1.19.4",
71
72
  "eslint": "^9.39.2",
72
73
  "ethers": "^6.16.0",
73
- "lmdb": "~3.4.4",
74
+ "lmdb": "~3.5.0",
74
75
  "nodemon": "~3.1.11",
75
76
  "rimraf": "~6.1.2",
76
77
  "tslib": "~2.8.1",
77
78
  "typescript": "~5.9.3",
78
- "vitest": "~4.0.17",
79
- "vitest-mock-extended": "~3.1.0"
79
+ "vitest": "~4.0.18",
80
+ "vitest-mock-extended": "~3.1.0",
81
+ "zod": "~4.3.6"
80
82
  },
81
83
  "peerDependencies": {
82
- "lmdb": "^3.4.3"
84
+ "lmdb": "^3.4.3",
85
+ "zod": "^4"
83
86
  },
84
87
  "engines": {
85
88
  "node": ">=22.3 <23"
@@ -1,19 +1,18 @@
1
- import type { Logger } from '@xylabs/sdk-js'
2
1
  import type { AccountInstance } from '@xyo-network/account-model'
3
2
  import type {
4
3
  OrchestratorInstance,
5
4
  ValidatorActorParams,
6
5
  } from '@xyo-network/chain-orchestration'
7
6
  import { ValidatorActor } from '@xyo-network/chain-orchestration'
8
- import type { Config, ProviderFactoryLocatorInstance } from '@xyo-network/xl1-sdk'
7
+ import type {
8
+ CachingBaseContext, Config, ProviderFactoryLocatorInstance,
9
+ } from '@xyo-network/xl1-sdk'
9
10
 
10
- interface RunValidatorContext {
11
+ interface RunValidatorContext extends CachingBaseContext {
11
12
  account: AccountInstance
12
13
  config: Config
13
14
  locator: ProviderFactoryLocatorInstance
14
- logger: Logger
15
15
  orchestrator: OrchestratorInstance
16
- singletons: {}
17
16
  }
18
17
 
19
18
  export const runValidator = async (context: RunValidatorContext) => {