feat: update getSignatureStatus methods
This commit is contained in:
committed by
Michael Vines
parent
ae10f1ecab
commit
3a2fe7fdbc
@ -61,6 +61,10 @@ declare module '@solana/web3.js' {
|
||||
|
||||
declare export type Commitment = 'max' | 'recent';
|
||||
|
||||
declare export type SignatureStatusConfig = {
|
||||
searchTransactionHistory: boolean,
|
||||
};
|
||||
|
||||
declare export type SignatureStatus = {
|
||||
slot: number,
|
||||
err: TransactionError | null,
|
||||
@ -173,6 +177,7 @@ declare module '@solana/web3.js' {
|
||||
|
||||
declare export class Connection {
|
||||
constructor(endpoint: string, commitment: ?Commitment): Connection;
|
||||
commitment: ?Commitment;
|
||||
getAccountInfoAndContext(
|
||||
publicKey: PublicKey,
|
||||
commitment: ?Commitment,
|
||||
@ -205,11 +210,11 @@ declare module '@solana/web3.js' {
|
||||
getSlotLeader(commitment: ?Commitment): Promise<string>;
|
||||
getSignatureStatus(
|
||||
signature: TransactionSignature,
|
||||
commitment: ?Commitment,
|
||||
config: ?SignatureStatusConfig,
|
||||
): Promise<RpcResponseAndContext<SignatureStatus | null>>;
|
||||
getSignatureStatuses(
|
||||
signatures: Array<TransactionSignature>,
|
||||
commitment: ?Commitment,
|
||||
config: ?SignatureStatusConfig,
|
||||
): Promise<RpcResponseAndContext<Array<SignatureStatus | null>>>;
|
||||
getTransactionCount(commitment: ?Commitment): Promise<number>;
|
||||
getTotalSupply(commitment: ?Commitment): Promise<number>;
|
||||
|
Reference in New Issue
Block a user