Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ts: Add optional wallet property to the Provider interface #3130

Conversation

acheroncrypto
Copy link
Collaborator

ts: Add optional wallet property to the Provider interface

Problem

The definition of the Provider interface doesn't include the wallet property as mentioned in #3122

export default interface Provider {
readonly connection: Connection;
readonly publicKey?: PublicKey;
send?(
tx: Transaction | VersionedTransaction,
signers?: Signer[],
opts?: SendOptions
): Promise<TransactionSignature>;
sendAndConfirm?(
tx: Transaction | VersionedTransaction,
signers?: Signer[],
opts?: ConfirmOptions
): Promise<TransactionSignature>;
sendAll?<T extends Transaction | VersionedTransaction>(
txWithSigners: {
tx: T;
signers?: Signer[];
}[],
opts?: ConfirmOptions
): Promise<Array<TransactionSignature>>;
simulate?(
tx: Transaction | VersionedTransaction,
signers?: Signer[],
commitment?: Commitment,
includeAccounts?: boolean | PublicKey[]
): Promise<SuccessfulTxSimulationResponse>;
}

Summary of changes

  • Add optional wallet property to the Provider interface
  • Add optional payer property to the Wallet interface

Resolves #3122

Copy link

vercel bot commented Jul 28, 2024

@acheroncrypto is attempting to deploy a commit to the coral-xyz Team on Vercel.

A member of the Team first needs to authorize it.

@acheroncrypto acheroncrypto merged commit fb7ea68 into coral-xyz:master Jul 28, 2024
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TypeScript: provider.wallet.payer property doesn't exist on Anchor 0.30.1
1 participant