feat: use pubsub to confirm transactions (#12095)

This commit is contained in:
Justin Starry
2020-09-08 13:12:47 +08:00
committed by GitHub
parent 9940870c89
commit 11b199cccf
16 changed files with 276 additions and 367 deletions

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

@ -51,7 +51,7 @@ declare module '@solana/web3.js' {
};
export type ConfirmOptions = {
confirmations?: number;
commitment?: Commitment;
skipPreflight?: boolean;
};
@ -384,8 +384,8 @@ declare module '@solana/web3.js' {
getVoteAccounts(commitment?: Commitment): Promise<VoteAccountStatus>;
confirmTransaction(
signature: TransactionSignature,
confirmations?: number,
): Promise<RpcResponseAndContext<SignatureStatus | null>>;
commitment?: Commitment,
): Promise<RpcResponseAndContext<SignatureResult>>;
getSlot(commitment?: Commitment): Promise<number>;
getSlotLeader(commitment?: Commitment): Promise<string>;
getSignatureStatus(