@hashgraph/solo
Version:
An opinionated CLI tool to deploy and manage private Hedera Networks.
24 lines (20 loc) • 747 B
text/typescript
// SPDX-License-Identifier: Apache-2.0
import {GenesisNetworkDataWrapper} from './genesis-network-data-wrapper.js';
import {type NodeId} from '../../types/aliases.js';
import {type GenesisNetworkRosterStructure, type ToObject} from '../../types/index.js';
export class GenesisNetworkRosterEntryDataWrapper
extends GenesisNetworkDataWrapper
implements GenesisNetworkRosterStructure, ToObject<GenesisNetworkRosterStructure>
{
public constructor(public override readonly nodeId: NodeId) {
super(nodeId);
}
public toObject(): GenesisNetworkRosterStructure {
return {
nodeId: this.nodeId,
gossipEndpoint: this.gossipEndpoint,
gossipCaCertificate: this.gossipCaCertificate,
weight: this.weight,
};
}
}