@xyo-network/xl1-cli-lib 1.20.5 → 1.20.9

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.
Files changed (58) hide show
  1. package/dist/node/commands/api/apiCommand.d.ts +5 -0
  2. package/dist/node/commands/api/apiCommand.d.ts.map +1 -0
  3. package/dist/node/commands/api/index.d.ts +2 -0
  4. package/dist/node/commands/api/index.d.ts.map +1 -0
  5. package/dist/node/commands/bridge/bridgeCommand.d.ts +5 -0
  6. package/dist/node/commands/bridge/bridgeCommand.d.ts.map +1 -0
  7. package/dist/node/commands/bridge/index.d.ts +1 -0
  8. package/dist/node/commands/bridge/index.d.ts.map +1 -1
  9. package/dist/node/commands/index.d.ts +6 -0
  10. package/dist/node/commands/index.d.ts.map +1 -1
  11. package/dist/node/commands/mempool/index.d.ts +2 -0
  12. package/dist/node/commands/mempool/index.d.ts.map +1 -0
  13. package/dist/node/commands/mempool/mempoolCommand.d.ts +5 -0
  14. package/dist/node/commands/mempool/mempoolCommand.d.ts.map +1 -0
  15. package/dist/node/commands/producer/index.d.ts +2 -0
  16. package/dist/node/commands/producer/index.d.ts.map +1 -0
  17. package/dist/node/commands/producer/producerCommand.d.ts +5 -0
  18. package/dist/node/commands/producer/producerCommand.d.ts.map +1 -0
  19. package/dist/node/commands/rewardRedemption/index.d.ts +1 -0
  20. package/dist/node/commands/rewardRedemption/index.d.ts.map +1 -1
  21. package/dist/node/commands/rewardRedemption/rewardRedemptionCommand.d.ts +5 -0
  22. package/dist/node/commands/rewardRedemption/rewardRedemptionCommand.d.ts.map +1 -0
  23. package/dist/node/commands/start/index.d.ts +2 -0
  24. package/dist/node/commands/start/index.d.ts.map +1 -0
  25. package/dist/node/commands/start/startCommand.d.ts +5 -0
  26. package/dist/node/commands/start/startCommand.d.ts.map +1 -0
  27. package/dist/node/commands/types.d.ts +8 -0
  28. package/dist/node/commands/types.d.ts.map +1 -0
  29. package/dist/node/commands/withDeprecationWarning.d.ts +3 -0
  30. package/dist/node/commands/withDeprecationWarning.d.ts.map +1 -0
  31. package/dist/node/configMiddleware.d.ts +3 -0
  32. package/dist/node/configMiddleware.d.ts.map +1 -0
  33. package/dist/node/index.d.ts +1 -0
  34. package/dist/node/index.d.ts.map +1 -1
  35. package/dist/node/index.mjs +351 -176
  36. package/dist/node/index.mjs.map +1 -1
  37. package/dist/node/runCLI.d.ts.map +1 -1
  38. package/dist/node/xl1.mjs +350 -176
  39. package/dist/node/xl1.mjs.map +1 -1
  40. package/package.json +16 -27
  41. package/src/commands/api/apiCommand.ts +39 -0
  42. package/src/commands/api/index.ts +1 -0
  43. package/src/commands/bridge/bridgeCommand.ts +19 -0
  44. package/src/commands/bridge/index.ts +1 -0
  45. package/src/commands/index.ts +6 -0
  46. package/src/commands/mempool/index.ts +1 -0
  47. package/src/commands/mempool/mempoolCommand.ts +19 -0
  48. package/src/commands/producer/index.ts +1 -0
  49. package/src/commands/producer/producerCommand.ts +19 -0
  50. package/src/commands/rewardRedemption/index.ts +1 -0
  51. package/src/commands/rewardRedemption/rewardRedemptionCommand.ts +19 -0
  52. package/src/commands/start/index.ts +1 -0
  53. package/src/commands/start/startCommand.ts +127 -0
  54. package/src/commands/types.ts +9 -0
  55. package/src/commands/withDeprecationWarning.ts +17 -0
  56. package/src/configMiddleware.ts +55 -0
  57. package/src/index.ts +1 -0
  58. package/src/runCLI.ts +31 -142
@@ -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,2 @@
1
+ export * from './apiCommand.ts';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -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,2 +1,3 @@
1
+ export * from './bridgeCommand.ts';
1
2
  export * from './runBridge.ts';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -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,2 @@
1
+ export * from './mempoolCommand.ts';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -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,2 @@
1
+ export * from './producerCommand.ts';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -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,2 +1,3 @@
1
+ export * from './rewardRedemptionCommand.ts';
1
2
  export * from './runRewardRedemptionApi.ts';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -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,2 @@
1
+ export * from './startCommand.ts';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -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,3 @@
1
+ import type { CommandModule } from 'yargs';
2
+ export declare function withDeprecationWarning(module: CommandModule): CommandModule;
3
+ //# sourceMappingURL=withDeprecationWarning.d.ts.map
@@ -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,3 @@
1
+ import type { Config } from '@xyo-network/xl1-sdk';
2
+ export declare function configMiddleware(argv: Record<string, unknown>, setConfiguration: (config: Config) => void): Promise<void>;
3
+ //# sourceMappingURL=configMiddleware.d.ts.map
@@ -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"}
@@ -1,3 +1,4 @@
1
+ export * from './configMiddleware.ts';
1
2
  export * from './initLogger.ts';
2
3
  export * from './runCLI.ts';
3
4
  export * from './start.ts';
@@ -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"}