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

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

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