fix: add support for getConfirmedSignaturesForAddress2 RPC method

This commit is contained in:
Michael Vines
2020-07-29 22:40:46 -07:00
parent 2261c066f3
commit 8d1400d3d6
4 changed files with 130 additions and 1 deletions

View File

@@ -66,6 +66,11 @@ declare module '@solana/web3.js' {
skipPreflight: ?boolean,
};
declare export type ConfirmedSignaturesForAddress2Options = {
before?: TransactionSignature,
limit?: number,
};
declare export type TokenAccountsFilter =
| {
mint: PublicKey,
@@ -103,6 +108,13 @@ declare module '@solana/web3.js' {
confirmations: number | null,
};
declare export type ConfirmedSignatureInfo = {
signature: string,
slot: number,
err: TransactionError | null,
memo: string | null,
};
declare export type BlockhashAndFeeCalculator = {
blockhash: Blockhash,
feeCalculator: FeeCalculator,