UNPKG

@hashgraph/solo

Version:

An opinionated CLI tool to deploy and manage private Hedera Networks.

25 lines (24 loc) 1.21 kB
/** * SPDX-License-Identifier: Apache-2.0 */ import { type Listr, type ListrTaskWrapper } from 'listr2'; import { type Stats } from 'node:fs'; import { type ReadEntry } from 'tar'; export type NodeAlias = `node${number}`; export type NetworkNodePodNameAsString = `network-${NodeAlias}-0`; export type NodeId = number; export type NodeAliases = NodeAlias[]; export type CommandBuilder = (yargs: any) => any; export type UserPrompt = (task: ListrTaskWrapper<any, any, any>, input: any | string[]) => Promise<any>; export type TarCreateFilter = (path: string, entry: Stats | ReadEntry) => boolean; export type SkipCheck = (ctx: any) => Promise<boolean> | boolean; export type TaskFunction = (ctx: any, task: ListrTaskWrapper<any, any, any>) => Promise<Listr<any, any, any>> | Listr<any, any, any> | Promise<void> | void; export type ConfigBuilder = (argv: any, ctx: any, task: any, shouldLoadNodeClient?: any) => Promise<any>; export type Nullable<T> = T | null; export type IP = string; export type JsonString = string; export type Path = string; export type FilePath = string; export type DirPath = string; export type AnyObject = Record<any, any>; export type SdkNetworkEndpoint = `${string}:${number}`;