@xyo-network/xl1-cli-lib 1.20.4 → 1.20.8
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/node/commands/api/apiCommand.d.ts +5 -0
- package/dist/node/commands/api/apiCommand.d.ts.map +1 -0
- package/dist/node/commands/api/index.d.ts +2 -0
- package/dist/node/commands/api/index.d.ts.map +1 -0
- package/dist/node/commands/bridge/bridgeCommand.d.ts +5 -0
- package/dist/node/commands/bridge/bridgeCommand.d.ts.map +1 -0
- package/dist/node/commands/bridge/index.d.ts +1 -0
- package/dist/node/commands/bridge/index.d.ts.map +1 -1
- package/dist/node/commands/index.d.ts +6 -0
- package/dist/node/commands/index.d.ts.map +1 -1
- package/dist/node/commands/mempool/index.d.ts +2 -0
- package/dist/node/commands/mempool/index.d.ts.map +1 -0
- package/dist/node/commands/mempool/mempoolCommand.d.ts +5 -0
- package/dist/node/commands/mempool/mempoolCommand.d.ts.map +1 -0
- package/dist/node/commands/producer/index.d.ts +2 -0
- package/dist/node/commands/producer/index.d.ts.map +1 -0
- package/dist/node/commands/producer/producerCommand.d.ts +5 -0
- package/dist/node/commands/producer/producerCommand.d.ts.map +1 -0
- package/dist/node/commands/rewardRedemption/index.d.ts +1 -0
- package/dist/node/commands/rewardRedemption/index.d.ts.map +1 -1
- package/dist/node/commands/rewardRedemption/rewardRedemptionCommand.d.ts +5 -0
- package/dist/node/commands/rewardRedemption/rewardRedemptionCommand.d.ts.map +1 -0
- package/dist/node/commands/start/index.d.ts +2 -0
- package/dist/node/commands/start/index.d.ts.map +1 -0
- package/dist/node/commands/start/startCommand.d.ts +5 -0
- package/dist/node/commands/start/startCommand.d.ts.map +1 -0
- package/dist/node/commands/types.d.ts +8 -0
- package/dist/node/commands/types.d.ts.map +1 -0
- package/dist/node/commands/withDeprecationWarning.d.ts +3 -0
- package/dist/node/commands/withDeprecationWarning.d.ts.map +1 -0
- package/dist/node/configMiddleware.d.ts +3 -0
- package/dist/node/configMiddleware.d.ts.map +1 -0
- package/dist/node/index.d.ts +1 -0
- package/dist/node/index.d.ts.map +1 -1
- package/dist/node/index.mjs +354 -171
- package/dist/node/index.mjs.map +1 -1
- package/dist/node/runCLI.d.ts.map +1 -1
- package/dist/node/xl1.mjs +353 -171
- package/dist/node/xl1.mjs.map +1 -1
- package/package.json +15 -26
- package/src/commands/api/apiCommand.ts +39 -0
- package/src/commands/api/index.ts +1 -0
- package/src/commands/bridge/bridgeCommand.ts +19 -0
- package/src/commands/bridge/index.ts +1 -0
- package/src/commands/index.ts +6 -0
- package/src/commands/mempool/index.ts +1 -0
- package/src/commands/mempool/mempoolCommand.ts +19 -0
- package/src/commands/producer/index.ts +1 -0
- package/src/commands/producer/producerCommand.ts +19 -0
- package/src/commands/rewardRedemption/index.ts +1 -0
- package/src/commands/rewardRedemption/rewardRedemptionCommand.ts +19 -0
- package/src/commands/start/index.ts +1 -0
- package/src/commands/start/startCommand.ts +127 -0
- package/src/commands/types.ts +9 -0
- package/src/commands/withDeprecationWarning.ts +17 -0
- package/src/configMiddleware.ts +55 -0
- package/src/index.ts +1 -0
- package/src/runCLI.ts +34 -137
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { Config } from '@xyo-network/xl1-sdk';
|
|
2
|
+
import type { CommandModule } from 'yargs';
|
|
3
|
+
import type { GetLocatorsFromConfig } from '../types.ts';
|
|
4
|
+
export declare function apiCommand(getConfiguration: () => Config, getLocatorsFromConfig: GetLocatorsFromConfig): CommandModule;
|
|
5
|
+
//# sourceMappingURL=apiCommand.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apiCommand.d.ts","sourceRoot":"","sources":["../../../../src/commands/api/apiCommand.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAA;AAClD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAE1C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAA;AAGxD,wBAAgB,UAAU,CAAC,gBAAgB,EAAE,MAAM,MAAM,EAAE,qBAAqB,EAAE,qBAAqB,GAAG,aAAa,CA0BtH"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/commands/api/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { Config } from '@xyo-network/xl1-sdk';
|
|
2
|
+
import type { CommandModule } from 'yargs';
|
|
3
|
+
import type { GetLocatorsFromConfig } from '../types.ts';
|
|
4
|
+
export declare function bridgeCommand(getConfiguration: () => Config, getLocatorsFromConfig: GetLocatorsFromConfig): CommandModule;
|
|
5
|
+
//# sourceMappingURL=bridgeCommand.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bridgeCommand.d.ts","sourceRoot":"","sources":["../../../../src/commands/bridge/bridgeCommand.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAA;AAClD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAE1C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAA;AAGxD,wBAAgB,aAAa,CAAC,gBAAgB,EAAE,MAAM,MAAM,EAAE,qBAAqB,EAAE,qBAAqB,GAAG,aAAa,CAWzH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/commands/bridge/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/commands/bridge/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,gBAAgB,CAAA"}
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
+
export * from './api/index.ts';
|
|
1
2
|
export * from './bridge/index.ts';
|
|
3
|
+
export * from './mempool/index.ts';
|
|
4
|
+
export * from './producer/index.ts';
|
|
2
5
|
export * from './rewardRedemption/index.ts';
|
|
6
|
+
export * from './start/index.ts';
|
|
7
|
+
export * from './types.ts';
|
|
3
8
|
export * from './validator/index.ts';
|
|
9
|
+
export * from './withDeprecationWarning.ts';
|
|
4
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,sBAAsB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA;AAC9B,cAAc,mBAAmB,CAAA;AACjC,cAAc,oBAAoB,CAAA;AAClC,cAAc,qBAAqB,CAAA;AACnC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,kBAAkB,CAAA;AAChC,cAAc,YAAY,CAAA;AAC1B,cAAc,sBAAsB,CAAA;AACpC,cAAc,6BAA6B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/commands/mempool/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { Config } from '@xyo-network/xl1-sdk';
|
|
2
|
+
import type { CommandModule } from 'yargs';
|
|
3
|
+
import type { GetLocatorsFromConfig } from '../types.ts';
|
|
4
|
+
export declare function mempoolCommand(getConfiguration: () => Config, getLocatorsFromConfig: GetLocatorsFromConfig): CommandModule;
|
|
5
|
+
//# sourceMappingURL=mempoolCommand.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mempoolCommand.d.ts","sourceRoot":"","sources":["../../../../src/commands/mempool/mempoolCommand.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAA;AAClD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAE1C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAA;AAExD,wBAAgB,cAAc,CAAC,gBAAgB,EAAE,MAAM,MAAM,EAAE,qBAAqB,EAAE,qBAAqB,GAAG,aAAa,CAW1H"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/commands/producer/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { Config } from '@xyo-network/xl1-sdk';
|
|
2
|
+
import type { CommandModule } from 'yargs';
|
|
3
|
+
import type { GetLocatorsFromConfig } from '../types.ts';
|
|
4
|
+
export declare function producerCommand(getConfiguration: () => Config, getLocatorsFromConfig: GetLocatorsFromConfig): CommandModule;
|
|
5
|
+
//# sourceMappingURL=producerCommand.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"producerCommand.d.ts","sourceRoot":"","sources":["../../../../src/commands/producer/producerCommand.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAA;AAClD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAE1C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAA;AAExD,wBAAgB,eAAe,CAAC,gBAAgB,EAAE,MAAM,MAAM,EAAE,qBAAqB,EAAE,qBAAqB,GAAG,aAAa,CAW3H"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/commands/rewardRedemption/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/commands/rewardRedemption/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAA;AAC5C,cAAc,6BAA6B,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { Config } from '@xyo-network/xl1-sdk';
|
|
2
|
+
import type { CommandModule } from 'yargs';
|
|
3
|
+
import type { GetLocatorsFromConfig } from '../types.ts';
|
|
4
|
+
export declare function rewardRedemptionCommand(getConfiguration: () => Config, getLocatorsFromConfig: GetLocatorsFromConfig): CommandModule;
|
|
5
|
+
//# sourceMappingURL=rewardRedemptionCommand.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rewardRedemptionCommand.d.ts","sourceRoot":"","sources":["../../../../src/commands/rewardRedemption/rewardRedemptionCommand.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAA;AAClD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAE1C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAA;AAGxD,wBAAgB,uBAAuB,CAAC,gBAAgB,EAAE,MAAM,MAAM,EAAE,qBAAqB,EAAE,qBAAqB,GAAG,aAAa,CAWnI"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/commands/start/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { Config } from '@xyo-network/xl1-sdk';
|
|
2
|
+
import type { CommandModule } from 'yargs';
|
|
3
|
+
import type { GetLocatorsFromConfig } from '../types.ts';
|
|
4
|
+
export declare function startCommand(getConfiguration: () => Config, getLocatorsFromConfig: GetLocatorsFromConfig): CommandModule;
|
|
5
|
+
//# sourceMappingURL=startCommand.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"startCommand.d.ts","sourceRoot":"","sources":["../../../../src/commands/start/startCommand.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,MAAM,EAAkC,MAAM,sBAAsB,CAAA;AAClF,OAAO,KAAK,EACgB,aAAa,EACxC,MAAM,OAAO,CAAA;AAKd,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAA;AA0ExD,wBAAgB,YAAY,CAAC,gBAAgB,EAAE,MAAM,MAAM,EAAE,qBAAqB,EAAE,qBAAqB,GAAG,aAAa,CAgCxH"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { OrchestratorInstance } from '@xyo-network/chain-orchestration';
|
|
2
|
+
import type { Config, ProviderFactoryLocatorInstance } from '@xyo-network/xl1-sdk';
|
|
3
|
+
export interface LocatorsResult {
|
|
4
|
+
locators: Record<string, ProviderFactoryLocatorInstance>;
|
|
5
|
+
orchestrator: OrchestratorInstance;
|
|
6
|
+
}
|
|
7
|
+
export type GetLocatorsFromConfig = (actors: string[], configuration: Config) => Promise<LocatorsResult>;
|
|
8
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/commands/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAA;AAC5E,OAAO,KAAK,EAAE,MAAM,EAAE,8BAA8B,EAAE,MAAM,sBAAsB,CAAA;AAElF,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,8BAA8B,CAAC,CAAA;IACxD,YAAY,EAAE,oBAAoB,CAAA;CACnC;AAED,MAAM,MAAM,qBAAqB,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,aAAa,EAAE,MAAM,KAAK,OAAO,CAAC,cAAc,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"withDeprecationWarning.d.ts","sourceRoot":"","sources":["../../../src/commands/withDeprecationWarning.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAE1C,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,aAAa,GAAG,aAAa,CAa3E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configMiddleware.d.ts","sourceRoot":"","sources":["../../src/configMiddleware.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAA;AAOlD,wBAAsB,gBAAgB,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,gBAAgB,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CA6C/H"}
|
package/dist/node/index.d.ts
CHANGED
package/dist/node/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA;AACrC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA"}
|