feat: rename testnet util methods

This commit is contained in:
Justin Starry
2020-03-30 20:27:09 +08:00
committed by Michael Vines
parent 352f296c09
commit aeedd3867f
8 changed files with 65 additions and 73 deletions

View File

@@ -676,11 +676,14 @@ declare module '@solana/web3.js' {
commitment: ?Commitment,
): Promise<TransactionSignature>;
// === src/util/testnet.js ===
declare export function testnetChannelEndpoint(
channel?: string,
// === src/util/cluster.js ===
declare export type Cluster = 'devnet' | 'testnet' | 'mainnet-beta';
declare export function clusterApiUrl(
cluster?: Cluster,
tls?: boolean,
): string;
// === src/index.js ===
declare export var LAMPORTS_PER_SOL: number;
}