feat: add getVersion method

This commit is contained in:
Justin Starry
2019-11-11 20:09:00 -05:00
committed by Michael Vines
parent 979a707c94
commit f3d9ab75e6
3 changed files with 57 additions and 0 deletions

View File

@ -69,6 +69,10 @@ declare module '@solana/web3.js' {
accountInfo: AccountInfo,
};
declare export type Version = {
'solana-core': string,
};
declare export type VoteAccountInfo = {
votePubkey: string,
nodePubkey: string,
@ -130,6 +134,7 @@ declare module '@solana/web3.js' {
): Promise<SignatureSuccess | TransactionError | null>;
getTransactionCount(commitment: ?Commitment): Promise<number>;
getTotalSupply(commitment: ?Commitment): Promise<number>;
getVersion(): Promise<Version>;
getInflation(commitment: ?Commitment): Promise<Inflation>;
getEpochSchedule(): Promise<EpochSchedule>;
getRecentBlockhash(