fix: add getMinimumBalanceForRentExemption and getBlock to flow

This commit is contained in:
Jack May
2020-01-03 11:30:16 -08:00
committed by Michael Vines
parent 0b5bd167d4
commit a51e0211d4
2 changed files with 13 additions and 2 deletions

View File

@ -201,6 +201,15 @@ declare module '@solana/web3.js' {
onSlotChange(callback: SlotChangeCallback): number;
removeProgramAccountChangeListener(id: number): Promise<void>;
validatorExit(): Promise<boolean>;
getMinimumBalanceForRentExemption(
dataLength: number,
commitment: ?Commitment,
): Promise<number>;
getBlock(
slot: number,
): Promise<
Array<[Transaction, SignatureSuccess] | [Transaction, TransactionError]>,
>;
}
// === src/stake-program.js ===