PHP WebShell
Текущая директория: /opt/BitGoJS/node_modules/@hashgraph/sdk/lib/address_book
Просмотр файла: NodeAddress.d.ts
/**
* @namespace proto
* @typedef {import("@hashgraph/proto").proto.INodeAddress} HashgraphProto.proto.INodeAddress
*/
/**
* @typedef {import("./Endpoint.js").EndPointJson} EndpointJson
* @typedef {import("long").Long} Long
*/
/**
* @typedef {object} NodeAddressJson
* @property {string | null} publicKey
* @property {string | null} nodeId
* @property {string | null} accountId
* @property {string | null} certHash
* @property {EndpointJson[] | null} addresses
* @property {string | null} description
* @property {string | null} stake
*/
export default class NodeAddress {
/**
* @internal
* @param {HashgraphProto.proto.INodeAddress} nodeAddress
* @returns {NodeAddress}
*/
static _fromProtobuf(nodeAddress: HashgraphProto.proto.INodeAddress): NodeAddress;
/**
* @param {object} props
* @param {string} [props.publicKey]
* @param {Long} [props.nodeId]
* @param {AccountId | string} [props.accountId]
* @param {Uint8Array} [props.certHash]
* @param {Endpoint[]} [props.addresses]
* @param {string} [props.description]
* @param {Long} [props.stake]
*/
constructor(props?: {
publicKey?: string | undefined;
nodeId?: import("long").Long | undefined;
accountId?: string | AccountId | undefined;
certHash?: Uint8Array | undefined;
addresses?: Endpoint[] | undefined;
description?: string | undefined;
stake?: import("long").Long | undefined;
});
/**
* @type {string | null}
*/
_publicKey: string | null;
/**
* @type {Long |null}
*/
_nodeId: Long | null;
/**
* @type {AccountId | null}
*/
_accountId: AccountId | null;
/**
* @type {Uint8Array | null}
*/
_certHash: Uint8Array | null;
/**
* @type {Endpoint[]}
*/
_addresses: Endpoint[];
/**
* @type {string | null}
*/
_description: string | null;
/**
* @type {Long | null}
*/
_stake: Long | null;
/**
* @returns {?string}
*/
get publicKey(): string | null;
/**
* @param {string} publicKey
* @returns {this}
*/
setPublicKey(publicKey: string): this;
/**
* @returns {?Long}
*/
get nodeId(): import("long").Long | null;
/**
* @param {Long} nodeId
* @returns {this}
*/
setNodeId(nodeId: Long): this;
/**
* @returns {?AccountId}
*/
get accountId(): AccountId | null;
/**
* @param {AccountId | string} accountId
* @returns {this}
*/
setAccountId(accountId: AccountId | string): this;
/**
* @returns {?Uint8Array}
*/
get certHash(): Uint8Array | null;
/**
* @param {Uint8Array} certHash
* @returns {this}
*/
setCertHash(certHash: Uint8Array): this;
/**
* @returns {Endpoint[]}
*/
get addresses(): Endpoint[];
/**
* @param {Endpoint[]} addresses
* @returns {this}
*/
setAddresses(addresses: Endpoint[]): this;
/**
* @returns {?string}
*/
get description(): string | null;
/**
* @param {string} description
* @returns {this}
*/
setDescription(description: string): this;
/**
* @returns {?Long}
*/
get stake(): import("long").Long | null;
/**
* @param {Long} stake
* @returns {this}
*/
setStake(stake: Long): this;
/**
* @returns {HashgraphProto.proto.INodeAddress}
*/
_toProtobuf(): HashgraphProto.proto.INodeAddress;
/**
* @returns {string}
*/
toString(): string;
/**
* @returns {NodeAddressJson}
*/
toJSON(): NodeAddressJson;
}
export namespace HashgraphProto {
namespace proto {
type INodeAddress = import("@hashgraph/proto").proto.INodeAddress;
}
}
export type EndpointJson = import("./Endpoint.js").EndPointJson;
export type Long = import("long").Long;
export type NodeAddressJson = {
publicKey: string | null;
nodeId: string | null;
accountId: string | null;
certHash: string | null;
addresses: EndpointJson[] | null;
description: string | null;
stake: string | null;
};
import AccountId from "../account/AccountId.js";
import Endpoint from "./Endpoint.js";
Выполнить команду
Для локальной разработки. Не используйте в интернете!