@hashgraph/solo
Version:
An opinionated CLI tool to deploy and manage private Hedera Networks.
129 lines • 5.43 kB
JavaScript
// SPDX-License-Identifier: Apache-2.0
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
import { Exclude, Expose, Transform, Type } from 'class-transformer';
import { ConsensusNodeStateSchema } from './state/consensus-node-state-schema.js';
import { Transformations } from '../utils/transformations.js';
import { RelayNodeStateSchema } from './state/relay-node-state-schema.js';
import { MirrorNodeStateSchema } from './state/mirror-node-state-schema.js';
import { HaProxyStateSchema } from './state/ha-proxy-state-schema.js';
import { EnvoyProxyStateSchema } from './state/envoy-proxy-state-schema.js';
import { ExplorerStateSchema } from './state/explorer-state-schema.js';
import { BlockNodeStateSchema } from './state/block-node-state-schema.js';
import { ComponentIdsSchema } from './state/component-ids-schema.js';
import { ExternalBlockNodeStateSchema } from './state/external-block-node-state-schema.js';
import { PostgresStateSchema } from './state/postgres-state-schema.js';
import { RedisStateSchema } from './state/redis-state-schema.js';
let DeploymentStateSchema = class DeploymentStateSchema {
ledgerPhase;
tssEnabled;
wrapsEnabled;
componentIds;
consensusNodes;
blockNodes;
mirrorNodes;
relayNodes;
haProxies;
envoyProxies;
explorers;
externalBlockNodes;
postgres;
redis;
constructor(ledgerPhase, componentIds, consensusNodes, blockNodes, mirrorNodes, relayNodes, haProxies, envoyProxies, explorers, externalBlockNodes, tssEnabled, wrapsEnabled, postgres, redis) {
this.ledgerPhase = ledgerPhase;
this.componentIds = componentIds || new ComponentIdsSchema();
this.consensusNodes = consensusNodes || [];
this.blockNodes = blockNodes || [];
this.mirrorNodes = mirrorNodes || [];
this.relayNodes = relayNodes || [];
this.haProxies = haProxies || [];
this.envoyProxies = envoyProxies || [];
this.explorers = explorers || [];
this.externalBlockNodes = externalBlockNodes || [];
this.tssEnabled = tssEnabled;
this.wrapsEnabled = wrapsEnabled;
this.postgres = postgres || [];
this.redis = redis || [];
}
};
__decorate([
Expose(),
Transform(Transformations.LedgerPhase),
__metadata("design:type", String)
], DeploymentStateSchema.prototype, "ledgerPhase", void 0);
__decorate([
Expose(),
__metadata("design:type", Boolean)
], DeploymentStateSchema.prototype, "tssEnabled", void 0);
__decorate([
Expose(),
__metadata("design:type", Boolean)
], DeploymentStateSchema.prototype, "wrapsEnabled", void 0);
__decorate([
Expose(),
Type(() => ComponentIdsSchema),
__metadata("design:type", ComponentIdsSchema)
], DeploymentStateSchema.prototype, "componentIds", void 0);
__decorate([
Expose(),
Type(() => ConsensusNodeStateSchema),
__metadata("design:type", Array)
], DeploymentStateSchema.prototype, "consensusNodes", void 0);
__decorate([
Expose(),
Type(() => BlockNodeStateSchema),
__metadata("design:type", Array)
], DeploymentStateSchema.prototype, "blockNodes", void 0);
__decorate([
Expose(),
Type(() => MirrorNodeStateSchema),
__metadata("design:type", Array)
], DeploymentStateSchema.prototype, "mirrorNodes", void 0);
__decorate([
Expose(),
Type(() => RelayNodeStateSchema),
__metadata("design:type", Array)
], DeploymentStateSchema.prototype, "relayNodes", void 0);
__decorate([
Expose(),
Type(() => HaProxyStateSchema),
__metadata("design:type", Array)
], DeploymentStateSchema.prototype, "haProxies", void 0);
__decorate([
Expose(),
Type(() => EnvoyProxyStateSchema),
__metadata("design:type", Array)
], DeploymentStateSchema.prototype, "envoyProxies", void 0);
__decorate([
Expose(),
Type(() => ExplorerStateSchema),
__metadata("design:type", Array)
], DeploymentStateSchema.prototype, "explorers", void 0);
__decorate([
Expose(),
Type(() => ExternalBlockNodeStateSchema),
__metadata("design:type", Array)
], DeploymentStateSchema.prototype, "externalBlockNodes", void 0);
__decorate([
Expose(),
Type(() => PostgresStateSchema),
__metadata("design:type", Array)
], DeploymentStateSchema.prototype, "postgres", void 0);
__decorate([
Expose(),
Type(() => RedisStateSchema),
__metadata("design:type", Array)
], DeploymentStateSchema.prototype, "redis", void 0);
DeploymentStateSchema = __decorate([
Exclude(),
__metadata("design:paramtypes", [String, ComponentIdsSchema, Array, Array, Array, Array, Array, Array, Array, Array, Boolean, Boolean, Array, Array])
], DeploymentStateSchema);
export { DeploymentStateSchema };
//# sourceMappingURL=deployment-state-schema.js.map