feat: support blockTime on getConfirmedSignaturesForAddress2 (#14573)

* feat: support blockTime on getConfirmedSignaturesForAddress2

* feat: support getConfirmedTransaction blockTime

* fix: add ConfirmedBlock typings

* fix: modify property description

* fix: fix formatting in type files
This commit is contained in:
Josh
2021-01-15 20:28:28 -08:00
committed by GitHub
parent 66b54b852d
commit 4d12cf61cc
3 changed files with 26 additions and 1 deletions

View File

@@ -125,6 +125,7 @@ declare module '@solana/web3.js' {
slot: number,
err: TransactionError | null,
memo: string | null,
blockTime?: number | null,
};
declare export type BlockhashAndFeeCalculator = {
@@ -204,6 +205,12 @@ declare module '@solana/web3.js' {
transaction: Transaction,
meta: ConfirmedTransactionMeta | null,
}>,
rewards: Array<{
pubkey: string,
lamports: number,
postBalance: number | null,
rewardType: string | null,
}>,
};
declare export type PerfSample = {
@@ -217,6 +224,7 @@ declare module '@solana/web3.js' {
slot: number,
transaction: Transaction,
meta: ConfirmedTransactionMeta | null,
blockTime?: number | null,
};
declare export type ParsedAccountData = {