@hashgraph/solo
Version:
An opinionated CLI tool to deploy and manage private Hedera Networks.
291 lines (290 loc) • 14.9 kB
TypeScript
import { type ListrLogger } from 'listr2';
import { NamespaceName } from '../types/namespace/namespace-name.js';
import { ContainerName } from '../integration/kube/resources/container/container-name.js';
import { PrivateKey } from '@hiero-ledger/sdk';
import 'dotenv/config';
import { type NodeAlias } from '../types/aliases.js';
export declare function getEnvironmentVariable(name: string): string | undefined;
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 SOLO_LOG_LEVEL: string;
export declare const DEFAULT_NAMESPACE: NamespaceName;
export declare const DEFAULT_CERT_MANAGER_NAMESPACE: NamespaceName;
export declare const HELM: string;
export declare const KIND: string;
export declare const PODMAN: string;
export declare const VFKIT: string;
export declare const GVPROXY: string;
export declare const DOCKER: string;
export declare const KUBECTL: string;
export declare const CRANE: string;
export declare const BASE_DEPENDENCIES: string[];
export declare const DEFAULT_CLUSTER: string;
export declare const RESOURCES_DIR: string;
export declare const KIND_CLUSTER_CONFIG_FILE: string;
export declare const KIND_NODE_IMAGE: string;
export declare const PODMAN_MACHINE_NAME: string;
export declare const SOLO_DEV_OUTPUT: boolean;
export declare const ENABLE_S6_IMAGE: boolean;
export declare const CONFIG: {
ENABLE_IMAGE_CACHE: boolean;
};
export declare const ROOT_CONTAINER: ContainerName;
export declare const SOLO_REMOTE_CONFIGMAP_NAME: string;
export declare const SOLO_REMOTE_CONFIGMAP_DATA_KEY: string;
export declare const SOLO_REMOTE_CONFIGMAP_LABELS: Record<string, string>;
export declare const SOLO_REMOTE_CONFIG_MAX_COMMAND_IN_HISTORY: number;
export declare const SOLO_REMOTE_CONFIGMAP_LABEL_SELECTOR: string;
export declare const NODE_COPY_CONCURRENT: number;
export declare const SKIP_NODE_PING: boolean;
export declare const DEFAULT_LOCK_ACQUIRE_ATTEMPTS: number;
export declare const DEFAULT_LEASE_DURATION: number;
export declare const SOLO_USER_AGENT_HEADER: string;
export declare const HEDERA_CHAIN_ID: string;
export declare const HEDERA_HGCAPP_DIR: string;
export declare const HEDERA_SERVICES_PATH: string;
export declare const HEDERA_HAPI_PATH: string;
export declare const HEDERA_DATA_APPS_DIR: string;
export declare const HEDERA_DATA_LIB_DIR: string;
export declare const HEDERA_USER_HOME_DIR: string;
export declare const HEDERA_APP_NAME: string;
export declare const HEDERA_BUILDS_URL: string;
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 S6_NODE_IMAGE_REGISTRY: string;
export declare const S6_NODE_IMAGE_REPOSITORY: string;
export declare const IGNORE_POD_METRICS: string[];
export declare const HEDERA_NODE_SIDECARS: string[];
export declare const REDIS_IMAGE_REGISTRY: string;
export declare const REDIS_IMAGE_REPOSITORY: string;
export declare const REDIS_SENTINEL_IMAGE_REGISTRY: string;
export declare const REDIS_SENTINEL_IMAGE_REPOSITORY: string;
export declare const REDIS_SENTINEL_MASTER_SET: string;
export declare const SOLO_SETUP_NAMESPACE: NamespaceName;
export declare const SOLO_TESTING_CHART_URL: string;
export declare const SOLO_DEPLOYMENT_CHART: string;
export declare const SOLO_CERT_MANAGER_CHART: string;
export declare const SOLO_SHARED_RESOURCES_CHART: string;
export declare const JSON_RPC_RELAY_CHART_URL: string;
export declare const JSON_RPC_RELAY_CHART: string;
export declare const JSON_RPC_RELAY_RELEASE_NAME: string;
export declare const MIRROR_NODE_CHART_URL: string;
export declare const MIRROR_NODE_CHART: string;
export declare const MIRROR_NODE_RELEASE_NAME: string;
export declare const MIRROR_NODE_PINGER_TPS: number;
export declare const MIRROR_NODE_VERSION_BOUNDARY: string;
export declare const PROMETHEUS_STACK_CHART_URL: string;
export declare const PROMETHEUS_STACK_CHART: string;
export declare const PROMETHEUS_RELEASE_NAME: string;
export declare const SOLO_SERVICE_MONITOR_NAME: string;
export declare const POD_MONITOR_ROLE: string;
export declare const MINIO_OPERATOR_CHART_URL: string;
export declare const MINIO_OPERATOR_CHART: string;
export declare const MINIO_OPERATOR_RELEASE_NAME: string;
export declare const METRICS_SERVER_CHART_URL: string;
export declare const METRICS_SERVER_CHART: string;
export declare const METRICS_SERVER_RELEASE_NAME: string;
export declare const METRICS_SERVER_NAMESPACE: NamespaceName;
export declare const METRICS_SERVER_INSTALL_ARGS: string;
export declare const EXPLORER_CHART_URL: string;
export declare const EXPLORER_RELEASE_NAME: string;
export declare const SOLO_RELAY_LABEL: string;
export declare const SOLO_EXPLORER_LABEL: string;
export declare const OLD_SOLO_EXPLORER_LABEL: string;
export declare const INGRESS_CONTROLLER_CHART_URL: string;
export declare const INGRESS_CONTROLLER_RELEASE_NAME: string;
export declare const EXPLORER_INGRESS_CONTROLLER_RELEASE_NAME: string;
export declare const INGRESS_CONTROLLER_PREFIX: string;
export declare const BLOCK_NODE_CHART_URL: string;
export declare const BLOCK_NODE_CHART: string;
export declare const BLOCK_NODE_RELEASE_NAME: string;
export declare const BLOCK_NODE_CONTAINER_NAME: ContainerName;
export declare const NETWORK_LOAD_GENERATOR_CHART: string;
export declare const NETWORK_LOAD_GENERATOR_RELEASE_NAME: string;
export declare const NETWORK_LOAD_GENERATOR_CHART_URL: string;
export declare const NETWORK_LOAD_GENERATOR_POD_LABELS: string[];
export declare const PROMETHEUS_OPERATOR_CRDS_RELEASE_NAME: string;
export declare const PROMETHEUS_OPERATOR_CRDS_CHART: string;
export declare const PROMETHEUS_OPERATOR_CRDS_REPO: string;
export declare const PROMETHEUS_OPERATOR_CRDS_CHART_URL: string;
export declare const NETWORK_LOAD_GENERATOR_CONTAINER: ContainerName;
export declare const CERT_MANAGER_NAME_SPACE: string;
export declare const SOLO_HEDERA_MIRROR_IMPORTER: string[];
export declare const SOLO_RELAY_NAME_LABEL: string;
export declare const SOLO_MIRROR_IMPORTER_NAME_LABEL: string;
export declare const SOLO_MIRROR_PINGER_NAME_LABEL: string;
export declare const SOLO_MIRROR_GRPC_NAME_LABEL: string;
export declare const SOLO_MIRROR_MONITOR_NAME_LABEL: string;
export declare const SOLO_MIRROR_REST_NAME_LABEL: string;
export declare const SOLO_MIRROR_WEB3_NAME_LABEL: string;
export declare const SOLO_MIRROR_POSTGRES_NAME_LABEL: string;
export declare const SOLO_MIRROR_REDIS_NAME_LABEL: string;
export declare const SOLO_MIRROR_RESTJAVA_NAME_LABEL: string;
export declare const SOLO_BLOCK_NODE_NAME_LABEL: string;
export declare const SOLO_INGRESS_CONTROLLER_NAME_LABEL: string;
export declare const DEFAULT_CHART_REPO: Map<string, string>;
export declare const MIRROR_INGRESS_CLASS_NAME: string;
export declare const MIRROR_INGRESS_CONTROLLER: string;
export declare const EXPLORER_INGRESS_CLASS_NAME: string;
export declare const EXPLORER_INGRESS_CONTROLLER: string;
export declare const DEFAULT_OPERATOR_ID_NUMBER: number;
export declare const OPERATOR_KEY: string;
export declare const OPERATOR_PUBLIC_KEY: string;
export declare const DEFAULT_FREEZE_ID_NUMBER: number;
export declare const DEFAULT_TREASURY_ID_NUMBER: number;
export declare const DEFAULT_START_ID_NUMBER: number;
export declare const DEFAULT_GENESIS_KEY: string;
export declare const GENESIS_KEY: string;
export declare const GENESIS_PUBLIC_KEY: ReturnType<typeof PrivateKey.fromStringED25519>['publicKey'];
export declare const SYSTEM_ACCOUNTS: number[][];
export declare const SHORTER_SYSTEM_ACCOUNTS: number[][];
export declare const TREASURY_ACCOUNT: number;
export declare const LOCAL_NODE_START_PORT: number;
export declare const ACCOUNT_UPDATE_BATCH_SIZE: number;
export declare const POD_PHASE_RUNNING: string;
export declare const POD_CONDITION_INITIALIZED: string;
export declare const POD_CONDITION_READY: string;
export declare const POD_CONDITION_POD_SCHEDULED: string;
export declare const POD_CONDITION_STATUS_TRUE: string;
export declare const BLOCK_NODE_SOLO_DEV_FILE: string;
export declare const EXPLORER_VALUES_FILE: string;
export declare const RELAY_VALUES_FILE: string;
export declare const MIRROR_NODE_VALUES_FILE: string;
export declare const MIRROR_NODE_OLD_IMAGE_REGISTRY: string;
export declare const MIRROR_NODE_OLD_IMAGE_REPO_ROOT: string;
export declare const MIRROR_NODE_OLD_MEMORY_REST: string;
export declare const MIRROR_NODE_OLD_MEMORY_RESTJAVA: string;
export declare const MIRROR_NODE_OLD_MEMORY_WEB3: string;
export declare const MIRROR_NODE_OLD_MEMORY_IMPORTER: string;
export declare const MIRROR_NODE_OLD_MEMORY_GRPC: string;
export declare const MIRROR_NODE_HIKARI_LIMITS_FILE: string;
export declare const MIRROR_NODE_VALUES_FILE_HEDERA: string;
export declare const INGRESS_CONTROLLER_VALUES_FILE: string;
export declare const BLOCK_NODE_VALUES_FILE: string;
export declare const MIRROR_POSTGRES_TRUNCATE_SQL_FILE: string;
export declare const UPGRADE_MIGRATIONS_FILE: string;
export declare const SOLO_DEPLOYMENT_VALUES_FILE: string;
export declare const BLOCK_NODE_TSS_VALUES_FILE: string;
export declare const CLEANUP_STATE_ROUNDS_SCRIPT: string;
export declare const RENAME_STATE_NODE_ID_SCRIPT: string;
export declare const NODE_LOG_FAILURE_MSG: string;
export declare const ONE_SHOT_WITH_BLOCK_NODE: string;
export declare const RAPID_FIRE_VALUES_FILE: string;
export declare const SOLO_CACHE_IMAGES_TARGET_FILE: string;
export declare const CONTAINER_COPY_MAX_ATTEMPTS: number;
export declare const CONTAINER_COPY_BACKOFF_MS: number;
export declare const CHECK_WRAPS_DIRECTORY_MAX_ATTEMPTS: number;
export declare const CHECK_WRAPS_DIRECTORY_BACKOFF_MS: number;
/**
* Listr related
* @returns a object that defines the default color options
*/
export declare const LISTR_DEFAULT_RENDERER_TIMER_OPTION: any;
export declare const LISTR_DEFAULT_RENDERER_OPTION: {
collapseSubtasks: boolean;
timer: {
condition: (duration: number) => boolean;
format: (duration: number) => any;
field: string | ((arguments_0: number) => string);
args?: [number];
};
logger?: ListrLogger;
persistentOutput: boolean;
clearOutput: boolean;
collapseErrors: boolean;
showErrorMessage: boolean;
formatOutput: 'wrap' | 'truncate';
};
type ListrOptionsType = {
concurrent: boolean;
rendererOptions: typeof LISTR_DEFAULT_RENDERER_OPTION;
fallbackRendererOptions: {
timer: typeof LISTR_DEFAULT_RENDERER_TIMER_OPTION;
};
};
export declare const LISTR_DEFAULT_OPTIONS: {
DEFAULT: ListrOptionsType;
WITH_CONCURRENCY: ListrOptionsType;
};
export declare const SIGNING_KEY_PREFIX: string;
export declare const CERTIFICATE_VALIDITY_YEARS: number;
export declare const LOCAL_HOST: string;
export declare const STANDARD_DATAMASK: string;
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_MAX_QUERY_PAYMENT: number;
export declare const NODE_CLIENT_SDK_PING_MAX_RETRIES: number;
export declare const NODE_CLIENT_SDK_PING_RETRY_INTERVAL: number;
export declare const ENDPOINT_TYPE_IP: string;
export declare const ENDPOINT_TYPE_FQDN: string;
export declare const DEFAULT_NETWORK_NODE_NAME: NodeAlias;
export declare const UPGRADE_FILE_ID_NUM: number;
export declare const UPGRADE_FILE_CHUNK_SIZE: number;
export declare const JVM_DEBUG_PORT: number;
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_NODE_ACTIVE_EXTRA_DELAY_MS: 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 BLOCK_NODE_PODS_RUNNING_MAX_ATTEMPTS: number;
export declare const BLOCK_NODE_PODS_RUNNING_DELAY: number;
export declare const BLOCK_NODE_ACTIVE_MAX_ATTEMPTS: number;
export declare const BLOCK_NODE_ACTIVE_DELAY: number;
export declare const BLOCK_NODE_ACTIVE_TIMEOUT: number;
export declare const BLOCK_NODE_PORT: number;
export declare const BLOCK_NODE_PORT_LEGACY: number;
export declare const BLOCK_ITEM_BATCH_SIZE: number;
export declare const LOG_CONFIG_ZIP_SUFFIX: string;
export declare const NETWORK_LOAD_GENERATOR_POD_RUNNING_MAX_ATTEMPTS: number;
export declare const NETWORK_LOAD_GENERATOR_POD_RUNNING_DELAY: number;
export declare const PORT_FORWARDING_MESSAGE_GROUP: string;
export declare const GRPC_PORT: number;
export declare const GRPC_LOCAL_PORT: number;
export declare const GRPC_WEB_PORT: number;
export declare const JSON_RPC_RELAY_PORT: number;
export declare const JSON_RPC_RELAY_LOCAL_PORT: number;
export declare const EXPLORER_PORT: number;
export declare const EXPLORER_LOCAL_PORT: number;
export declare const MIRROR_NODE_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: string;
export declare const NODE_OVERRIDE_FILE: string;
export declare const IGNORED_NODE_ACCOUNT_ID: string;
export declare const UPLOADER_SECRET_NAME: string;
export declare const MINIO_SECRET_NAME: string;
export declare const BACKUP_SECRET_NAME: string;
export declare const MIRROR_INGRESS_TLS_SECRET_NAME: string;
export declare const EXPLORER_INGRESS_TLS_SECRET_NAME: string;
export declare const BLOCK_STREAM_STREAM_MODE: string;
export declare const BLOCK_STREAM_WRITER_MODE: string;
export declare const BLOCK_NODE_IMAGE_NAME: string;
export declare const APPLICATION_PROPERTIES: string;
export declare const BLOCK_NODES_JSON_FILE: string;
export declare const NETWORK_NODE_SHARED_DATA_CONFIG_MAP_NAME: string;
export declare const enum StorageType {
MINIO_ONLY = "minio_only",
AWS_ONLY = "aws_only",
GCS_ONLY = "gcs_only",
AWS_AND_GCS = "aws_and_gcs"
}
export declare const CERT_MANAGER_CRDS: string[];
export declare const TRIGGER_STAKE_WEIGHT_CALCULATE_WAIT_SECONDS: number;
export {};