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

View File

@@ -55,12 +55,12 @@ declare module '@solana/web3.js' {
};
declare export type SendOptions = {
skipPreflight: boolean;
skipPreflight: boolean,
};
declare export type ConfirmOptions = {
confirmations: number;
skipPreflight: boolean;
confirmations: number,
skipPreflight: boolean,
};
declare export type RpcResponseAndContext<T> = {
@@ -183,11 +183,10 @@ declare module '@solana/web3.js' {
err: TransactionError | null,
|};
declare export type Inflation = {
declare export type InflationGovernor = {
foundation: number,
foundationTerm: number,
initial: number,
storage: number,
taper: number,
terminal: number,
};
@@ -279,7 +278,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(