feat: remove getInflation in favor of getInflationGovernor

This commit is contained in:
Justin Starry
2020-06-03 23:38:48 +08:00
committed by Michael Vines
parent 8547ae43ce
commit 8f03677801
7 changed files with 54 additions and 44 deletions

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

@ -170,11 +170,10 @@ declare module '@solana/web3.js' {
err: TransactionError | null;
};
export type Inflation = {
export type InflationGovernor = {
foundation: number;
foundationTerm: number;
initial: number;
storage: number;
taper: number;
terminal: number;
};
@ -266,7 +265,7 @@ declare module '@solana/web3.js' {
getTransactionCount(commitment?: Commitment): Promise<number>;
getTotalSupply(commitment?: Commitment): Promise<number>;
getVersion(): Promise<Version>;
getInflation(commitment?: Commitment): Promise<Inflation>;
getInflationGovernor(commitment?: Commitment): Promise<InflationGovernor>;
getEpochSchedule(): Promise<EpochSchedule>;
getEpochInfo(commitment?: Commitment): Promise<EpochInfo>;
getRecentBlockhashAndContext(