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

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

@ -193,6 +193,10 @@ declare module '@solana/web3.js' {
firstNormalSlot: number;
};
export type LeaderSchedule = {
[address: string]: number[];
};
export type Supply = {
total: number;
circulating: number;
@ -266,6 +270,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(