@hiero-ledger/sdk
Version:
98 lines (97 loc) • 3.51 kB
TypeScript
export const MAINNET: {
"node00.swirldslabs.com:443": AccountId;
"node01-00-grpc.swirlds.com:443": AccountId;
"node03.swirldslabs.com:443": AccountId;
"node04.swirldslabs.com:443": AccountId;
"node05.swirldslabs.com:443": AccountId;
"node06.swirldslabs.com:443": AccountId;
"node07.swirldslabs.com:443": AccountId;
"node09.swirldslabs.com:443": AccountId;
"node10.swirldslabs.com:443": AccountId;
"node11.swirldslabs.com:443": AccountId;
"node12.swirldslabs.com:443": AccountId;
"node14.swirldslabs.com:443": AccountId;
"node15.swirldslabs.com:443": AccountId;
"node16.swirldslabs.com:443": AccountId;
"node17.swirldslabs.com:443": AccountId;
"node18.swirldslabs.com:443": AccountId;
"node19.swirldslabs.com:443": AccountId;
"node20.swirldslabs.com:443": AccountId;
"node21.swirldslabs.com:443": AccountId;
"node22.swirldslabs.com:443": AccountId;
"node24.swirldslabs.com:443": AccountId;
"node25.swirldslabs.com:443": AccountId;
"node26.swirldslabs.com:443": AccountId;
"node27.swirldslabs.com:443": AccountId;
"node28.swirldslabs.com:443": AccountId;
"node29.swirldslabs.com:443": AccountId;
"node30.swirldslabs.com:443": AccountId;
"node31.swirldslabs.com:443": AccountId;
};
export const WEB_TESTNET: {
"testnet-node00-00-grpc.hedera.com:443": AccountId;
"testnet-node01-00-grpc.hedera.com:443": AccountId;
"testnet-node02-00-grpc.hedera.com:443": AccountId;
"testnet-node03-00-grpc.hedera.com:443": AccountId;
"testnet-node04-00-grpc.hedera.com:443": AccountId;
"testnet-node05-00-grpc.hedera.com:443": AccountId;
"testnet-node06-00-grpc.hedera.com:443": AccountId;
};
export const WEB_PREVIEWNET: {
"previewnet-node00-00-grpc.hedera.com:443": AccountId;
"previewnet-node01-00-grpc.hedera.com:443": AccountId;
"previewnet-node02-00-grpc.hedera.com:443": AccountId;
"previewnet-node03-00-grpc.hedera.com:443": AccountId;
"previewnet-node04-00-grpc.hedera.com:443": AccountId;
"previewnet-node05-00-grpc.hedera.com:443": AccountId;
"previewnet-node06-00-grpc.hedera.com:443": AccountId;
};
export const NATIVE_TESTNET: {
"testnet-node00-00-grpc.hedera.com:443": AccountId;
};
export const NATIVE_PREVIEWNET: {
"previewnet-node00-00-grpc.hedera.com:443": AccountId;
};
export const LocalNodeNetwork: {
"127.0.0.1:50211": AccountId;
};
export const LocalNodeWebNetwork: {
"localhost:8080": AccountId;
};
/**
* @type {Record<string, AccountId>}
*/
export const ALL_WEB_NETWORK_NODES: Record<string, AccountId>;
/**
* @type {Record<string, string>}
*/
export const ALL_NETWORK_IPS: Record<string, string>;
export namespace MirrorNetwork {
/**
* @param {string} name
* @returns {string[]}
*/
function fromName(name: string): string[];
let MAINNET: string[];
let TESTNET: string[];
let PREVIEWNET: string[];
let LOCAL_NODE: string[];
}
export namespace WebMirrorNetwork {
let LOCAL_NODE_1: string[];
export { LOCAL_NODE_1 as LOCAL_NODE };
}
export namespace WebNetwork {
/**
* @param {string} name
* @returns {{[key: string]: (string | AccountId)}}
*/
export function fromName(name: string): {
[key: string]: (string | AccountId);
};
export { MAINNET };
export { WEB_TESTNET as TESTNET };
export { WEB_PREVIEWNET as PREVIEWNET };
export { LocalNodeWebNetwork as LOCAL_NODE };
}
import AccountId from "../account/AccountId.js";