// SPDX-License-Identifier: Apache-2.0
import { Address } from '../../business/address/address.js';
export class GenesisNetworkDataWrapper {
    nodeId;
    gossipEndpoint = [];
    weight;
    gossipCaCertificate;
    constructor(nodeId) {
        this.nodeId = nodeId;
    }
    /**
     * @param fqdnOrIpAddress - a fully qualified domain name or IP v4 address
     * @param port
     */
    addGossipEndpoint(fqdnOrIpAddress, port) {
        const address = new Address(port, fqdnOrIpAddress);
        this.gossipEndpoint.push({
            domainName: address.domainName,
            port,
            ipAddressV4: address.ipAddressV4Base64,
        });
    }
}
//# sourceMappingURL=genesis-network-data-wrapper.js.map