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

10
web3.js/module.d.ts vendored
View File

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