@hashgraph/solo
Version:
An opinionated CLI tool to deploy and manage private Hedera Networks.
153 lines (152 loc) • 7.84 kB
TypeScript
/**
* SPDX-License-Identifier: Apache-2.0
*/
import { AccountId, FileId } from '@hashgraph/sdk';
import { type ListrLogger } from 'listr2';
import { NamespaceName } from './kube/resources/namespace/namespace_name.js';
import { ContainerName } from './kube/resources/container/container_name.js';
export declare const ROOT_DIR: string;
export declare const SOLO_HOME_DIR: string;
export declare const SOLO_LOGS_DIR: string;
export declare const SOLO_CACHE_DIR: string;
export declare const SOLO_VALUES_DIR: string;
export declare const DEFAULT_NAMESPACE: NamespaceName;
export declare const DEFAULT_CERT_MANAGER_NAMESPACE: NamespaceName;
export declare const HELM = "helm";
export declare const RESOURCES_DIR: string;
export declare const ROOT_CONTAINER: ContainerName;
export declare const SOLO_REMOTE_CONFIGMAP_NAME = "solo-remote-config";
export declare const SOLO_REMOTE_CONFIGMAP_LABELS: {
'solo.hedera.com/type': string;
};
export declare const SOLO_REMOTE_CONFIG_MAX_COMMAND_IN_HISTORY = 50;
export declare const SOLO_REMOTE_CONFIGMAP_LABEL_SELECTOR = "solo.hedera.com/type=remote-config";
export declare const NODE_COPY_CONCURRENT: number;
export declare const SKIP_NODE_PING: boolean;
export declare const HEDERA_CHAIN_ID: string;
export declare const HEDERA_HGCAPP_DIR = "/opt/hgcapp";
export declare const HEDERA_SERVICES_PATH = "/opt/hgcapp/services-hedera";
export declare const HEDERA_HAPI_PATH = "/opt/hgcapp/services-hedera/HapiApp2.0";
export declare const HEDERA_DATA_APPS_DIR = "data/apps";
export declare const HEDERA_DATA_LIB_DIR = "data/lib";
export declare const HEDERA_USER_HOME_DIR = "/home/hedera";
export declare const HEDERA_APP_NAME = "HederaNode.jar";
export declare const HEDERA_BUILDS_URL = "https://builds.hedera.com";
export declare const HEDERA_NODE_ACCOUNT_ID_START: AccountId;
export declare const HEDERA_NODE_INTERNAL_GOSSIP_PORT: string;
export declare const HEDERA_NODE_EXTERNAL_GOSSIP_PORT: string;
export declare const HEDERA_NODE_DEFAULT_STAKE_AMOUNT: number;
export declare const HEDERA_NODE_SIDECARS: string[];
export declare const SOLO_SETUP_NAMESPACE: NamespaceName;
export declare const SOLO_TESTING_CHART_URL = "oci://ghcr.io/hashgraph/solo-charts";
export declare const SOLO_TEST_CLUSTER: string;
export declare const SOLO_CLUSTER_SETUP_CHART = "solo-cluster-setup";
export declare const SOLO_DEPLOYMENT_CHART = "solo-deployment";
export declare const JSON_RPC_RELAY_CHART_URL = "https://hashgraph.github.io/hedera-json-rpc-relay/charts";
export declare const JSON_RPC_RELAY_CHART = "hedera-json-rpc-relay";
export declare const MIRROR_NODE_CHART_URL = "https://hashgraph.github.io/hedera-mirror-node/charts";
export declare const MIRROR_NODE_CHART = "hedera-mirror";
export declare const MIRROR_NODE_RELEASE_NAME = "mirror";
export declare const HEDERA_EXPLORER_CHART_URL = "oci://ghcr.io/hashgraph/hedera-mirror-node-explorer/hedera-explorer-chart";
export declare const HEDERA_EXPLORER_RELEASE_NAME = "hedera-explorer";
export declare const SOLO_RELAY_LABEL = "app=hedera-json-rpc-relay";
export declare const SOLO_HEDERA_EXPLORER_LABEL = "app.kubernetes.io/component=hedera-explorer";
export declare const SOLO_HEDERA_MIRROR_IMPORTER: string[];
export declare const DEFAULT_CHART_REPO: Map<string, string>;
export declare const OPERATOR_ID: string;
export declare const OPERATOR_KEY: string;
export declare const OPERATOR_PUBLIC_KEY: string;
export declare const FREEZE_ADMIN_ACCOUNT: string;
export declare const TREASURY_ACCOUNT_ID: string;
export declare const GENESIS_KEY: string;
export declare const SYSTEM_ACCOUNTS: number[][];
export declare const SHORTER_SYSTEM_ACCOUNTS: number[][];
export declare const TREASURY_ACCOUNT = 2;
export declare const LOCAL_NODE_START_PORT: number;
export declare const ACCOUNT_UPDATE_BATCH_SIZE: number;
export declare const POD_PHASE_RUNNING = "Running";
export declare const POD_CONDITION_INITIALIZED = "Initialized";
export declare const POD_CONDITION_READY = "Ready";
export declare const POD_CONDITION_POD_SCHEDULED = "PodScheduled";
export declare const POD_CONDITION_STATUS_TRUE = "True";
export declare const EXPLORER_VALUES_FILE: string;
export declare const MIRROR_NODE_VALUES_FILE: string;
export declare const NODE_LOG_FAILURE_MSG = "failed to download logs from pod";
/**
* Listr related
* @return a object that defines the default color options
*/
export declare const LISTR_DEFAULT_RENDERER_TIMER_OPTION: {
condition: (duration: number) => boolean;
format: (duration: number) => import("colorette").Color;
field: string | ((args_0: number) => string);
args?: [number];
};
export declare const LISTR_DEFAULT_RENDERER_OPTION: {
collapseSubtasks: boolean;
timer: {
condition: (duration: number) => boolean;
format: (duration: number) => any;
field: string | ((args_0: number) => string);
args?: [number];
};
logger: ListrLogger;
};
export declare const SIGNING_KEY_PREFIX = "s";
export declare const CERTIFICATE_VALIDITY_YEARS = 100;
export declare const OS_WINDOWS = "windows";
export declare const OS_WIN32 = "win32";
export declare const OS_DARWIN = "darwin";
export declare const OS_LINUX = "linux";
export declare const LOCAL_HOST = "127.0.0.1";
export declare const PROFILE_LARGE = "large";
export declare const PROFILE_MEDIUM = "medium";
export declare const PROFILE_SMALL = "small";
export declare const PROFILE_TINY = "tiny";
export declare const PROFILE_LOCAL = "local";
export declare const ALL_PROFILES: string[];
export declare const DEFAULT_PROFILE_FILE: string;
export declare const STANDARD_DATAMASK = "***";
export declare const NODE_CLIENT_MAX_ATTEMPTS: number;
export declare const NODE_CLIENT_MIN_BACKOFF: number;
export declare const NODE_CLIENT_MAX_BACKOFF: number;
export declare const NODE_CLIENT_REQUEST_TIMEOUT: number;
export declare const NODE_CLIENT_PING_INTERVAL: number;
export declare const NODE_CLIENT_PING_MAX_RETRIES: number;
export declare const NODE_CLIENT_PING_RETRY_INTERVAL: number;
export declare const ENDPOINT_TYPE_IP = "IP";
export declare const ENDPOINT_TYPE_FQDN = "FQDN";
export declare const DEFAULT_NETWORK_NODE_NAME = "node1";
export declare const UPGRADE_FILE_ID: FileId;
export declare const UPGRADE_FILE_CHUNK_SIZE: number;
export declare const JVM_DEBUG_PORT = 5005;
export declare const PODS_RUNNING_MAX_ATTEMPTS: number;
export declare const PODS_RUNNING_DELAY: number;
export declare const NETWORK_NODE_ACTIVE_MAX_ATTEMPTS: number;
export declare const NETWORK_NODE_ACTIVE_DELAY: number;
export declare const NETWORK_NODE_ACTIVE_TIMEOUT: number;
export declare const NETWORK_PROXY_MAX_ATTEMPTS: number;
export declare const NETWORK_PROXY_DELAY: number;
export declare const PODS_READY_MAX_ATTEMPTS: number;
export declare const PODS_READY_DELAY: number;
export declare const RELAY_PODS_RUNNING_MAX_ATTEMPTS: number;
export declare const RELAY_PODS_RUNNING_DELAY: number;
export declare const RELAY_PODS_READY_MAX_ATTEMPTS: number;
export declare const RELAY_PODS_READY_DELAY: number;
export declare const GRPC_PORT: number;
export declare const LOCAL_BUILD_COPY_RETRY: number;
export declare const LOAD_BALANCER_CHECK_DELAY_SECS: number;
export declare const LOAD_BALANCER_CHECK_MAX_ATTEMPTS: number;
export declare const NETWORK_DESTROY_WAIT_TIMEOUT: number;
export declare const DEFAULT_LOCAL_CONFIG_FILE = "local-config.yaml";
export declare const NODE_OVERRIDE_FILE = "node-overrides.yaml";
export declare const IGNORED_NODE_ACCOUNT_ID = "0.0.0";
export declare const UPLOADER_SECRET_NAME = "uploader-mirror-secrets";
export declare const MINIO_SECRET_NAME = "minio-secrets";
export declare const BACKUP_SECRET_NAME = "backup-uploader-secrets";
export declare const enum StorageType {
MINIO_ONLY = "minio_only",
AWS_ONLY = "aws_only",
GCS_ONLY = "gcs_only",
AWS_AND_GCS = "aws_and_gcs"
}