PHP WebShell

Текущая директория: /opt/BitGoJS/node_modules/@hashgraph/sdk/lib/client

Просмотр файла: Network.d.ts

/**
 * @typedef {import("../channel/Channel.js").default} Channel
 * @typedef {import("../address_book/NodeAddressBook.js").default} NodeAddressBook
 */
/**
 * @augments {ManagedNetwork<Channel, Node, AccountId>}
 */
export default class Network extends ManagedNetwork<import("../channel/Channel.js").default, Node, AccountId> {
    /**
     * @param {(address: string) => Channel} createNetworkChannel
     */
    constructor(createNetworkChannel: (address: string) => Channel);
    _maxNodesPerTransaction: number;
    /** @type {NodeAddressBook | null} */
    _addressBook: NodeAddressBook | null;
    /** @type {boolean} */
    _transportSecurity: boolean;
    /**
     * @param {{[key: string]: (string | AccountId)}} network
     */
    setNetwork(network: {
        [key: string]: string | AccountId;
    }): void;
    /**
     * @param {NodeAddressBook} addressBook
     * @returns {this}
     */
    setNetworkFromAddressBook(addressBook: NodeAddressBook): this;
    /**
     * @returns {{[key: string]: (string | AccountId)}}
     */
    get network(): {
        [key: string]: string | AccountId;
    };
    /**
     * @param {string} networkName
     * @returns {this}
     */
    setNetworkName(networkName: string): this;
    /**
     * @abstract
     * @param {[string, (string | AccountId)]} entry
     * @returns {Node}
     */
    _createNodeFromNetworkEntry(entry: [string, (string | AccountId)]): Node;
    /**
     * @abstract
     * @param {[string, (string | AccountId)]} entry
     * @returns {boolean}
     */
    _checkNetworkContainsEntry(entry: [string, (string | AccountId)]): boolean;
    /**
     * @returns {number}
     */
    get maxNodesPerTransaction(): number;
    /**
     * @param {number} maxNodesPerTransaction
     * @returns {this}
     */
    setMaxNodesPerTransaction(maxNodesPerTransaction: number): this;
    /**
     * @param {number} maxNodeAttempts
     * @returns {this}
     */
    setMaxNodeAttempts(maxNodeAttempts: number): this;
    /**
     * @returns {boolean}
     */
    isTransportSecurity(): boolean;
    /**
     * @param {boolean} transportSecurity
     * @returns {this}
     */
    setTransportSecurity(transportSecurity: boolean): this;
    /**
     * @internal
     * @returns {number}
     */
    getNumberOfNodesForTransaction(): number;
    /**
     * @internal
     * @returns {AccountId[]}
     */
    getNodeAccountIdsForExecute(): AccountId[];
}
export type Channel = import("../channel/Channel.js").default;
export type NodeAddressBook = import("../address_book/NodeAddressBook.js").default;
import Node from "../Node.js";
import AccountId from "../account/AccountId.js";
import ManagedNetwork from "./ManagedNetwork.js";

Выполнить команду


Для локальной разработки. Не используйте в интернете!