UNPKG

@hashgraph/sdk

Version:
42 lines (35 loc) 907 B
// SPDX-License-Identifier: Apache-2.0 import ManagedNode from "./ManagedNode.js"; /** * @typedef {import("./channel/MirrorChannel.js").default} MirrorChannel * @typedef {import("./ManagedNodeAddress.js").default} ManagedNodeAddress */ /** * @typedef {object} NewNode * @property {string} address * @property {(address: string, cert?: string) => MirrorChannel} channelInitFunction */ /** * @typedef {object} CloneNode * @property {MirrorNode} node * @property {ManagedNodeAddress} address */ /** * @augments {ManagedNode<MirrorChannel>} */ export default class MirrorNode extends ManagedNode { /** * @param {object} props * @param {NewNode=} [props.newNode] * @param {CloneNode=} [props.cloneNode] */ constructor(props = {}) { super(props); } /** * @returns {string} */ getKey() { return this._address.toString(); } }