UNPKG

@hashgraph/solo

Version:

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

76 lines (75 loc) 2.76 kB
/** * SPDX-License-Identifier: Apache-2.0 */ import { type NodeDeleteConfigClass, type NodeUpdateConfigClass, type NodeUpgradeConfigClass } from './configs.js'; import { type NodeAlias, type NodeAliases } from '../../types/aliases.js'; export declare class NodeHelper { /** * Returns an object that can be written to a file without data loss. * Contains fields needed for deleting a node through separate commands * @param ctx - accumulator object * @returns file writable object */ static deleteSaveContextParser(ctx: { config: NodeDeleteConfigClass; upgradeZipHash: any; }): { adminKey: string; existingNodeAliases: NodeAliases; upgradeZipHash: string; nodeAlias: NodeAlias; }; /** * Initializes objects in the context from a provided string * Contains fields needed for deleting a node through separate commands * @param ctx - accumulator object * @param ctxData - data in string format * @returns file writable object */ static deleteLoadContextParser(ctx: { config: NodeDeleteConfigClass; upgradeZipHash: any; }, ctxData: any): void; /** * Returns an object that can be written to a file without data loss. * Contains fields needed for updating a node through separate commands * @param ctx - accumulator object * @returns file writable object */ static updateSaveContextParser(ctx: { config: NodeUpdateConfigClass; upgradeZipHash: any; }): any; /** * Returns an object that can be written to a file without data loss. * Contains fields needed for upgrading a node through separate commands * @param ctx - accumulator object * @returns file writable object */ static upgradeSaveContextParser(ctx: { config: NodeUpgradeConfigClass; upgradeZipHash: any; }): any; /** * Initializes objects in the context from a provided string * Contains fields needed for updating a node through separate commands * @param ctx - accumulator object * @param ctxData - data in string format * @returns file writable object */ static upgradeLoadContextParser(ctx: { config: NodeUpgradeConfigClass; upgradeZipHash: any; }, ctxData: any): void; /** * Initializes objects in the context from a provided string * Contains fields needed for updating a node through separate commands * @param ctx - accumulator object * @param ctxData - data in string format * @returns file writable object */ static updateLoadContextParser(ctx: { config: NodeUpdateConfigClass; upgradeZipHash: any; }, ctxData: any): void; }