feat: add getLeaderSchedule api

This commit is contained in:
Justin Starry
2020-07-17 23:16:44 +08:00
committed by Justin Starry
parent 74b4830ba6
commit d0e139ffff
5 changed files with 74 additions and 0 deletions

View File

@@ -210,6 +210,10 @@ declare module '@solana/web3.js' {
absoluteSlot: number,
};
declare export type LeaderSchedule = {
[address: string]: number[],
};
declare export type Supply = {
total: number,
circulating: number,
@@ -283,6 +287,7 @@ declare module '@solana/web3.js' {
getTotalSupply(commitment: ?Commitment): Promise<number>;
getVersion(): Promise<Version>;
getInflationGovernor(commitment: ?Commitment): Promise<InflationGovernor>;
getLeaderSchedule(): Promise<LeaderSchedule>;
getEpochSchedule(): Promise<EpochSchedule>;
getEpochInfo(commitment: ?Commitment): Promise<EpochInfo>;
getRecentBlockhashAndContext(