fix: add getMinimumBalanceForRentExemption and getBlock to flow
This commit is contained in:
@ -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 ===
|
||||
|
Reference in New Issue
Block a user