@hashgraph/solo
Version:
An opinionated CLI tool to deploy and manage private Hedera Networks.
46 lines • 1.27 kB
JavaScript
// SPDX-License-Identifier: Apache-2.0
import { ComponentsDataWrapper } from '../../../../core/config/remote/components-data-wrapper.js';
export class RemoteConfig {
encapsulatedObject;
_components;
_schemaVersion;
_metadata;
_versions;
_clusters;
_state;
_history;
constructor(encapsulatedObject) {
this.encapsulatedObject = encapsulatedObject;
this._components = new ComponentsDataWrapper(encapsulatedObject.state);
this._schemaVersion = encapsulatedObject.schemaVersion;
this._metadata = encapsulatedObject.metadata;
this._versions = encapsulatedObject.versions;
this._clusters = encapsulatedObject.clusters;
this._state = encapsulatedObject.state;
}
get components() {
return this._components;
}
get schemaVersion() {
return this._schemaVersion;
}
get metadata() {
return this._metadata;
}
get versions() {
return this._versions;
}
get clusters() {
return this._clusters;
}
get state() {
return this._state;
}
get history() {
return this._history;
}
addCluster(cluster) {
this._clusters.push(cluster);
}
}
//# sourceMappingURL=remote-config.js.map