From 793b161eb7531c1b5773b6f1db4af3499f12d79c Mon Sep 17 00:00:00 2001 From: Jordan Sexton Date: Tue, 13 Sep 2022 19:00:46 -0500 Subject: [PATCH] check out wallets from master --- packages/wallets/alpha/src/adapter.ts | 7 +++---- packages/wallets/avana/src/adapter.ts | 8 ++------ packages/wallets/backpack/src/adapter.ts | 15 ++------------- packages/wallets/blocto/src/adapter.ts | 9 ++------- packages/wallets/brave/src/adapter.ts | 8 ++------ packages/wallets/coinbase/src/adapter.ts | 8 ++------ packages/wallets/exodus/src/adapter.ts | 8 ++------ packages/wallets/fake/src/adapter.ts | 6 ++---- packages/wallets/glow/src/adapter.ts | 8 ++------ packages/wallets/magiceden/src/adapter.ts | 8 ++------ packages/wallets/nufi/src/adapter.ts | 8 ++------ packages/wallets/phantom/src/adapter.ts | 8 ++------ packages/wallets/saifu/src/adapter.ts | 8 ++------ packages/wallets/sky/src/adapter.ts | 8 ++------ packages/wallets/strike/src/adapter.ts | 9 ++------- packages/wallets/tokenary/src/adapter.ts | 8 ++------ packages/wallets/torus/src/adapter.ts | 11 +++-------- packages/wallets/trust/src/adapter.ts | 15 +++++---------- packages/wallets/walletconnect/src/adapter.ts | 7 +++---- packages/wallets/xdefi/src/adapter.ts | 13 +++++++------ 20 files changed, 51 insertions(+), 129 deletions(-) diff --git a/packages/wallets/alpha/src/adapter.ts b/packages/wallets/alpha/src/adapter.ts index f1eae61ff..56d4857dd 100644 --- a/packages/wallets/alpha/src/adapter.ts +++ b/packages/wallets/alpha/src/adapter.ts @@ -49,11 +49,10 @@ export interface AlphaWalletAdapterConfig {} export const AlphaWalletName = 'Alpha' as WalletName<'Alpha'>; export class AlphaWalletAdapter extends BaseMessageSignerWalletAdapter { - readonly name = AlphaWalletName; - readonly url = 'https://github.com/babilu-online/alpha-wallet'; - readonly icon = + name = AlphaWalletName; + url = 'https://github.com/babilu-online/alpha-wallet'; + icon = 'data:image/svg+xml;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAAC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pdMUrf5MGRp9VSeb9ty3wPF5Xzx4nQEU2zdF1blFpKlskiX9Jd34s1RXEy57RYyEAHwNOcFUK20TGm6OeiQQim5s/+3Btqu8S0p4HgDcBvDKPgsaSqrI9KLKoQwwjAFNlxLa8TkxEjKA8gnEtpRtj2SBWfkZu/sfXUt/6ZEWRkQAkAV092f58UKEporJZFyOjwZBlw1PnkDfflAZjoH0Q4Ss7z5ikH3rnN4B/veBn52QXpEEr1/trT600ek1WIYMGTJkyJAhEQj5Fz7jUetUp2rXAAAAAElFTkSuQmCC'; - readonly supportedTransactionVersions = null; private _connecting: boolean; private _wallet: AlphaWallet | null; diff --git a/packages/wallets/avana/src/adapter.ts b/packages/wallets/avana/src/adapter.ts index b720b3e85..a6c9ecd8d 100644 --- a/packages/wallets/avana/src/adapter.ts +++ b/packages/wallets/avana/src/adapter.ts @@ -15,7 +15,7 @@ import { WalletSignMessageError, WalletSignTransactionError, } from '@solana/wallet-adapter-base'; -import type { Connection, SendOptions, Transaction, TransactionSignature, VersionedTransaction } from '@solana/web3.js'; +import type { Connection, SendOptions, Transaction, TransactionSignature } from '@solana/web3.js'; import { PublicKey } from '@solana/web3.js'; interface AvanaWalletEvents { @@ -158,7 +158,7 @@ export class AvanaWalletAdapter extends BaseMessageSignerWalletAdapter { } async sendTransaction( - transaction: VersionedTransaction | Transaction, + transaction: Transaction, connection: Connection, options: SendTransactionOptions = {} ): Promise { @@ -166,10 +166,6 @@ export class AvanaWalletAdapter extends BaseMessageSignerWalletAdapter { const wallet = this._wallet; if (!wallet) throw new WalletNotConnectedError(); - if ('message' in transaction) { - throw new WalletSendTransactionError(`Sending versioned transactions isn't supported by this wallet`); - } - try { const { signers, ...sendOptions } = options; diff --git a/packages/wallets/backpack/src/adapter.ts b/packages/wallets/backpack/src/adapter.ts index 6974a1d4d..d38daa6f5 100644 --- a/packages/wallets/backpack/src/adapter.ts +++ b/packages/wallets/backpack/src/adapter.ts @@ -14,14 +14,7 @@ import { WalletSignMessageError, WalletSignTransactionError, } from '@solana/wallet-adapter-base'; -import type { - Connection, - SendOptions, - Signer, - Transaction, - TransactionSignature, - VersionedTransaction, -} from '@solana/web3.js'; +import type { Connection, SendOptions, Signer, Transaction, TransactionSignature } from '@solana/web3.js'; import { PublicKey } from '@solana/web3.js'; interface BackpackWalletEvents { @@ -163,7 +156,7 @@ export class BackpackWalletAdapter extends BaseMessageSignerWalletAdapter { } async sendTransaction( - transaction: VersionedTransaction | Transaction, + transaction: Transaction, connection: Connection, options: SendTransactionOptions = {} ): Promise { @@ -171,10 +164,6 @@ export class BackpackWalletAdapter extends BaseMessageSignerWalletAdapter { const wallet = this._wallet; if (!wallet) throw new WalletNotConnectedError(); - if ('message' in transaction) { - throw new WalletSendTransactionError(`Sending versioned transactions isn't supported by this wallet`); - } - const { signers, ...sendOptions } = options; try { diff --git a/packages/wallets/blocto/src/adapter.ts b/packages/wallets/blocto/src/adapter.ts index 01fee6ce1..ba0ac5f74 100644 --- a/packages/wallets/blocto/src/adapter.ts +++ b/packages/wallets/blocto/src/adapter.ts @@ -15,7 +15,7 @@ import { WalletReadyState, WalletSendTransactionError, } from '@solana/wallet-adapter-base'; -import type { Connection, Transaction, TransactionSignature, VersionedTransaction } from '@solana/web3.js'; +import type { Connection, Transaction, TransactionSignature } from '@solana/web3.js'; import { PublicKey } from '@solana/web3.js'; export interface BloctoWalletAdapterConfig { @@ -29,7 +29,6 @@ export class BloctoWalletAdapter extends BaseWalletAdapter { url = 'https://blocto.app'; icon = 'data:image/svg+xml;base64,PHN2ZyBmaWxsPSJub25lIiBoZWlnaHQ9IjI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSIyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGZpbGwtcnVsZT0iZXZlbm9kZCI+PHBhdGggZD0ibTE5LjQ4MzggMTUuMjQ5Yy4yNzY5IDAgLjUwNDguMjA5OS41MzI1LjQ3ODhsLjAwMjIuMDQyOS0uMDA0My4xMTQyYy0uMzM1IDMuOTgzMy0zLjc5MDQgNy4xMTUxLTguMDAzNyA3LjExNTEtNC4xNzA2IDAtNy41OTg2My0zLjA2ODctNy45OTI2OS02Ljk5NDZsLS4wMTYzOC0uMTgxMS0uMDAxMDYtLjA1MzIuMDAxNzgtLjAzOThjLjAyNTk4LS4yNzA2LjI1NDg3LS40ODIzLjUzMjg5LS40ODIzeiIgZmlsbD0iI2FmZDhmNyIvPjxwYXRoIGQ9Im00LjMwMDA5IDFjMy43ODc1NSAwIDYuODI1ODEgMi45MDkxMSA2LjgyNTgxIDYuNTAyNzd2Ni4zNTM0M2MtLjAwMDQuMjkxNy0uMjM5Mi41Mjg0LS41MzQuNTI4OGwtNi4wNTc1OC4wMDMyYy0uMjk1MTEuMDAwNy0uNTM0MzItLjIzNjEtLjUzNDMyLS41Mjc4bC4wMDAzNi0xMi41NjM3NWMwLS4xNTE0OS4xMTQyNi0uMjc2MjIuMjYxOTktLjI5NDE4eiIgZmlsbD0iIzE4MmE3MSIvPjxwYXRoIGQ9Im0xOS42OTIxIDEyLjIzODMuMDM4OC4xMjgzLS4wMjg4LS4wODQ2Yy4xNjE2LjQ1MzQuMjY2Ni43NzY5LjMxNTMgMS4zNDEzLjAzMzUuMzg3OS0uMjU3LjcyODktLjY0ODUuNzYybC0uMDMwMy4wMDIyLTMuMDgwOS4wMDA3Yy0yLjEwNjMgMC0zLjgyMDQtMS40NzQxLTMuODc1Mi0zLjU0MjNsLS4wMDE0LS4xMDIxdi0zLjQ2NThjMC0uMjAxNTMuMTY5NC0uMzY5NTkuMzc0MS0uMzYwMDcgMy4zMDAzLjE1NDY2IDUuOTk3OCAyLjM0MTUxIDYuOTM2OSA1LjMyMDM3eiIgZmlsbD0iIzM0ODVjNCIvPjwvZz48L3N2Zz4='; - supportedTransactionVersions = null; private _connecting: boolean; private _wallet: SolanaProviderInterface | null; @@ -130,7 +129,7 @@ export class BloctoWalletAdapter extends BaseWalletAdapter { } async sendTransaction( - transaction: VersionedTransaction | Transaction, + transaction: Transaction, connection: Connection, options: SendTransactionOptions = {} ): Promise { @@ -138,10 +137,6 @@ export class BloctoWalletAdapter extends BaseWalletAdapter { const wallet = this._wallet; if (!wallet) throw new WalletNotConnectedError(); - if ('message' in transaction) { - throw new WalletSendTransactionError(`Sending versioned transactions isn't supported by this wallet`); - } - try { const { signers, ...sendOptions } = options; diff --git a/packages/wallets/brave/src/adapter.ts b/packages/wallets/brave/src/adapter.ts index ba7b134a4..8c0f6f674 100644 --- a/packages/wallets/brave/src/adapter.ts +++ b/packages/wallets/brave/src/adapter.ts @@ -15,7 +15,7 @@ import { WalletSignMessageError, WalletSignTransactionError, } from '@solana/wallet-adapter-base'; -import type { Connection, SendOptions, Transaction, TransactionSignature, VersionedTransaction } from '@solana/web3.js'; +import type { Connection, SendOptions, Transaction, TransactionSignature } from '@solana/web3.js'; import { PublicKey } from '@solana/web3.js'; interface BraveWalletEvents { @@ -156,7 +156,7 @@ export class BraveWalletAdapter extends BaseMessageSignerWalletAdapter { } async sendTransaction( - transaction: VersionedTransaction | Transaction, + transaction: Transaction, connection: Connection, options: SendTransactionOptions = {} ): Promise { @@ -164,10 +164,6 @@ export class BraveWalletAdapter extends BaseMessageSignerWalletAdapter { const wallet = this._wallet; if (!wallet) throw new WalletNotConnectedError(); - if ('message' in transaction) { - throw new WalletSendTransactionError(`Sending versioned transactions isn't supported by this wallet`); - } - try { const { signers, ...sendOptions } = options; diff --git a/packages/wallets/coinbase/src/adapter.ts b/packages/wallets/coinbase/src/adapter.ts index 993c795b2..cebc0d890 100644 --- a/packages/wallets/coinbase/src/adapter.ts +++ b/packages/wallets/coinbase/src/adapter.ts @@ -14,7 +14,7 @@ import { WalletSendTransactionError, WalletSignTransactionError, } from '@solana/wallet-adapter-base'; -import type { Connection, SendOptions, Transaction, TransactionSignature, VersionedTransaction } from '@solana/web3.js'; +import type { Connection, SendOptions, Transaction, TransactionSignature } from '@solana/web3.js'; import { PublicKey } from '@solana/web3.js'; interface CoinbaseWalletEvents { @@ -147,7 +147,7 @@ export class CoinbaseWalletAdapter extends BaseMessageSignerWalletAdapter { } async sendTransaction( - transaction: VersionedTransaction | Transaction, + transaction: Transaction, connection: Connection, options: SendTransactionOptions = {} ): Promise { @@ -155,10 +155,6 @@ export class CoinbaseWalletAdapter extends BaseMessageSignerWalletAdapter { const wallet = this._wallet; if (!wallet) throw new WalletNotConnectedError(); - if ('message' in transaction) { - throw new WalletSendTransactionError(`Sending versioned transactions isn't supported by this wallet`); - } - try { const { signers, ...sendOptions } = options; diff --git a/packages/wallets/exodus/src/adapter.ts b/packages/wallets/exodus/src/adapter.ts index 134f8db08..e883ce59d 100644 --- a/packages/wallets/exodus/src/adapter.ts +++ b/packages/wallets/exodus/src/adapter.ts @@ -15,7 +15,7 @@ import { WalletSignMessageError, WalletSignTransactionError, } from '@solana/wallet-adapter-base'; -import type { Connection, SendOptions, Transaction, TransactionSignature, VersionedTransaction } from '@solana/web3.js'; +import type { Connection, SendOptions, Transaction, TransactionSignature } from '@solana/web3.js'; import { PublicKey } from '@solana/web3.js'; interface ExodusWalletEvents { @@ -158,7 +158,7 @@ export class ExodusWalletAdapter extends BaseMessageSignerWalletAdapter { } async sendTransaction( - transaction: VersionedTransaction | Transaction, + transaction: Transaction, connection: Connection, options: SendTransactionOptions = {} ): Promise { @@ -166,10 +166,6 @@ export class ExodusWalletAdapter extends BaseMessageSignerWalletAdapter { const wallet = this._wallet; if (!wallet) throw new WalletNotConnectedError(); - if ('message' in transaction) { - throw new WalletSendTransactionError(`Sending versioned transactions isn't supported by this wallet`); - } - try { const { signers, ...sendOptions } = options; diff --git a/packages/wallets/fake/src/adapter.ts b/packages/wallets/fake/src/adapter.ts index 3b00c80e5..d0ad0496b 100644 --- a/packages/wallets/fake/src/adapter.ts +++ b/packages/wallets/fake/src/adapter.ts @@ -1,6 +1,6 @@ import type { SendTransactionOptions, WalletName } from '@solana/wallet-adapter-base'; import { BaseWalletAdapter, WalletReadyState } from '@solana/wallet-adapter-base'; -import type { Connection, Transaction, TransactionSignature, VersionedTransaction } from '@solana/web3.js'; +import type { Connection, Transaction, TransactionSignature } from '@solana/web3.js'; import { PublicKey } from '@solana/web3.js'; export const FakeWalletName = 'Fake Wallet' as WalletName<'Fake Wallet'>; @@ -10,8 +10,6 @@ export class FakeWalletAdapter extends BaseWalletAdapter { url = 'https://github.com/solana-labs/wallet-adapter#usage'; icon = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzQiIGhlaWdodD0iMzAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0zNCAxMC42djIuN2wtOS41IDE2LjVoLTQuNmw2LTEwLjVhMi4xIDIuMSAwIDEgMCAyLTMuNGw0LjgtOC4zYTQgNCAwIDAgMSAxLjMgM1ptLTQuMyAxOS4xaC0uNmw0LjktOC40djQuMmMwIDIuMy0yIDQuMy00LjMgNC4zWm0yLTI4LjRjLS4zLS44LTEtMS4zLTItMS4zaC0xLjlsLTIuNCA0LjNIMzBsMS43LTNabS0zIDVoLTQuNkwxMC42IDI5LjhoNC43TDI4LjggNi40Wk0xOC43IDBoNC42bC0yLjUgNC4zaC00LjZMMTguNiAwWk0xNSA2LjRoNC42TDYgMjkuOEg0LjJjLS44IDAtMS43LS4zLTIuNC0uOEwxNSA2LjRaTTE0IDBIOS40TDcgNC4zaDQuNkwxNCAwWm0tMy42IDYuNEg1LjdMMCAxNi4ydjhMMTAuMyA2LjRaTTQuMyAwaC40TDAgOC4ydi00QzAgMiAxLjkgMCA0LjMgMFoiIGZpbGw9IiM5OTQ1RkYiLz48L3N2Zz4='; - supportedTransactionVersions = null; - private _publicKey: PublicKey | null = null; constructor() { @@ -47,7 +45,7 @@ export class FakeWalletAdapter extends BaseWalletAdapter { } async sendTransaction( - transaction: VersionedTransaction | Transaction, + transaction: Transaction, connection: Connection, options: SendTransactionOptions = {} ): Promise { diff --git a/packages/wallets/glow/src/adapter.ts b/packages/wallets/glow/src/adapter.ts index e0fbd9600..84a2d76c0 100644 --- a/packages/wallets/glow/src/adapter.ts +++ b/packages/wallets/glow/src/adapter.ts @@ -20,7 +20,7 @@ import { WalletSignMessageError, WalletSignTransactionError, } from '@solana/wallet-adapter-base'; -import type { Connection, SendOptions, Transaction, TransactionSignature, VersionedTransaction } from '@solana/web3.js'; +import type { Connection, SendOptions, Transaction, TransactionSignature } from '@solana/web3.js'; import { PublicKey } from '@solana/web3.js'; interface GlowWalletEvents { @@ -178,7 +178,7 @@ export class GlowWalletAdapter extends BaseMessageSignerWalletAdapter { } async sendTransaction( - transaction: VersionedTransaction | Transaction, + transaction: Transaction, connection: Connection, options: SendTransactionOptions = {} ): Promise { @@ -186,10 +186,6 @@ export class GlowWalletAdapter extends BaseMessageSignerWalletAdapter { const wallet = this._wallet; if (!wallet) throw new WalletNotConnectedError(); - if ('message' in transaction) { - throw new WalletSendTransactionError(`Sending versioned transactions isn't supported by this wallet`); - } - try { const { signers, ...sendOptions } = options; diff --git a/packages/wallets/magiceden/src/adapter.ts b/packages/wallets/magiceden/src/adapter.ts index 2904a6f12..1fc830221 100644 --- a/packages/wallets/magiceden/src/adapter.ts +++ b/packages/wallets/magiceden/src/adapter.ts @@ -15,7 +15,7 @@ import { WalletSignMessageError, WalletSignTransactionError, } from '@solana/wallet-adapter-base'; -import type { Connection, SendOptions, Transaction, TransactionSignature, VersionedTransaction } from '@solana/web3.js'; +import type { Connection, SendOptions, Transaction, TransactionSignature } from '@solana/web3.js'; import { PublicKey } from '@solana/web3.js'; interface MagicEdenWalletEvents { @@ -158,7 +158,7 @@ export class MagicEdenWalletAdapter extends BaseMessageSignerWalletAdapter { } async sendTransaction( - transaction: VersionedTransaction | Transaction, + transaction: Transaction, connection: Connection, options: SendTransactionOptions = {} ): Promise { @@ -166,10 +166,6 @@ export class MagicEdenWalletAdapter extends BaseMessageSignerWalletAdapter { const wallet = this._wallet; if (!wallet) throw new WalletNotConnectedError(); - if ('message' in transaction) { - throw new WalletSendTransactionError(`Sending versioned transactions isn't supported by this wallet`); - } - try { const { signers, ...sendOptions } = options; diff --git a/packages/wallets/nufi/src/adapter.ts b/packages/wallets/nufi/src/adapter.ts index 40bb5424b..5b5e37088 100644 --- a/packages/wallets/nufi/src/adapter.ts +++ b/packages/wallets/nufi/src/adapter.ts @@ -15,7 +15,7 @@ import { WalletSignMessageError, WalletSignTransactionError, } from '@solana/wallet-adapter-base'; -import type { Connection, Transaction, TransactionSignature, VersionedTransaction } from '@solana/web3.js'; +import type { Connection, Transaction, TransactionSignature } from '@solana/web3.js'; import { PublicKey } from '@solana/web3.js'; interface NufiWalletEvents { @@ -150,7 +150,7 @@ export class NufiWalletAdapter extends BaseMessageSignerWalletAdapter { } async sendTransaction( - transaction: VersionedTransaction | Transaction, + transaction: Transaction, connection: Connection, options: SendTransactionOptions = {} ): Promise { @@ -158,10 +158,6 @@ export class NufiWalletAdapter extends BaseMessageSignerWalletAdapter { const wallet = this._wallet; if (!wallet) throw new WalletNotConnectedError(); - if ('message' in transaction) { - throw new WalletSendTransactionError(`Sending versioned transactions isn't supported by this wallet`); - } - try { const { signers, ...sendOptions } = options; diff --git a/packages/wallets/phantom/src/adapter.ts b/packages/wallets/phantom/src/adapter.ts index b3846a6f4..0693cafaa 100644 --- a/packages/wallets/phantom/src/adapter.ts +++ b/packages/wallets/phantom/src/adapter.ts @@ -15,7 +15,7 @@ import { WalletSignMessageError, WalletSignTransactionError, } from '@solana/wallet-adapter-base'; -import type { Connection, SendOptions, Transaction, TransactionSignature, VersionedTransaction } from '@solana/web3.js'; +import type { Connection, SendOptions, Transaction, TransactionSignature } from '@solana/web3.js'; import { PublicKey } from '@solana/web3.js'; interface PhantomWalletEvents { @@ -163,7 +163,7 @@ export class PhantomWalletAdapter extends BaseMessageSignerWalletAdapter { } async sendTransaction( - transaction: VersionedTransaction | Transaction, + transaction: Transaction, connection: Connection, options: SendTransactionOptions = {} ): Promise { @@ -171,10 +171,6 @@ export class PhantomWalletAdapter extends BaseMessageSignerWalletAdapter { const wallet = this._wallet; if (!wallet) throw new WalletNotConnectedError(); - if ('message' in transaction) { - throw new WalletSendTransactionError(`Sending versioned transactions isn't supported by this wallet`); - } - try { const { signers, ...sendOptions } = options; diff --git a/packages/wallets/saifu/src/adapter.ts b/packages/wallets/saifu/src/adapter.ts index da8002eca..3e64b9be7 100644 --- a/packages/wallets/saifu/src/adapter.ts +++ b/packages/wallets/saifu/src/adapter.ts @@ -15,7 +15,7 @@ import { WalletSignMessageError, WalletSignTransactionError, } from '@solana/wallet-adapter-base'; -import type { Connection, SendOptions, Transaction, TransactionSignature, VersionedTransaction } from '@solana/web3.js'; +import type { Connection, SendOptions, Transaction, TransactionSignature } from '@solana/web3.js'; import { PublicKey } from '@solana/web3.js'; interface SaifuWalletEvents { @@ -156,7 +156,7 @@ export class SaifuWalletAdapter extends BaseMessageSignerWalletAdapter { } async sendTransaction( - transaction: VersionedTransaction | Transaction, + transaction: Transaction, connection: Connection, options: SendTransactionOptions = {} ): Promise { @@ -164,10 +164,6 @@ export class SaifuWalletAdapter extends BaseMessageSignerWalletAdapter { const wallet = this._wallet; if (!wallet) throw new WalletNotConnectedError(); - if ('message' in transaction) { - throw new WalletSendTransactionError(`Sending versioned transactions isn't supported by this wallet`); - } - if (wallet.signAndSendTransaction) { try { const { signers, ...sendOptions } = options; diff --git a/packages/wallets/sky/src/adapter.ts b/packages/wallets/sky/src/adapter.ts index 8bd2aeea0..d9bf6bd39 100644 --- a/packages/wallets/sky/src/adapter.ts +++ b/packages/wallets/sky/src/adapter.ts @@ -15,7 +15,7 @@ import { WalletSignMessageError, WalletSignTransactionError, } from '@solana/wallet-adapter-base'; -import type { Connection, SendOptions, Transaction, TransactionSignature, VersionedTransaction } from '@solana/web3.js'; +import type { Connection, SendOptions, Transaction, TransactionSignature } from '@solana/web3.js'; import { PublicKey } from '@solana/web3.js'; interface SkyWalletEvents { @@ -153,7 +153,7 @@ export class SkyWalletAdapter extends BaseMessageSignerWalletAdapter { } async sendTransaction( - transaction: VersionedTransaction | Transaction, + transaction: Transaction, connection: Connection, options: SendTransactionOptions = {} ): Promise { @@ -161,10 +161,6 @@ export class SkyWalletAdapter extends BaseMessageSignerWalletAdapter { const wallet = this._wallet; if (!wallet) throw new WalletNotConnectedError(); - if ('message' in transaction) { - throw new WalletSendTransactionError(`Sending versioned transactions isn't supported by this wallet`); - } - try { const { signers, ...sendOptions } = options; diff --git a/packages/wallets/strike/src/adapter.ts b/packages/wallets/strike/src/adapter.ts index e12c77a0c..efe4703a9 100644 --- a/packages/wallets/strike/src/adapter.ts +++ b/packages/wallets/strike/src/adapter.ts @@ -8,10 +8,9 @@ import { WalletNotConnectedError, WalletNotReadyError, WalletReadyState, - WalletSendTransactionError, WalletSignTransactionError, } from '@solana/wallet-adapter-base'; -import type { Connection, PublicKey, Transaction, TransactionSignature, VersionedTransaction } from '@solana/web3.js'; +import type { Connection, PublicKey, Transaction, TransactionSignature } from '@solana/web3.js'; import type { StrikeWallet } from '@strike-protocols/solana-wallet-adapter'; interface StrikeWindow extends Window { @@ -118,7 +117,7 @@ export class StrikeWalletAdapter extends BaseSignerWalletAdapter { } async sendTransaction( - transaction: VersionedTransaction | Transaction, + transaction: Transaction, connection: Connection, options: SendTransactionOptions = {} ): Promise { @@ -126,10 +125,6 @@ export class StrikeWalletAdapter extends BaseSignerWalletAdapter { const wallet = this._wallet; if (!wallet) throw new WalletNotConnectedError(); - if ('message' in transaction) { - throw new WalletSendTransactionError(`Sending versioned transactions isn't supported by this wallet`); - } - try { return await wallet.sendTransaction(transaction, connection, options); } catch (error: any) { diff --git a/packages/wallets/tokenary/src/adapter.ts b/packages/wallets/tokenary/src/adapter.ts index a00964572..1c29782d6 100644 --- a/packages/wallets/tokenary/src/adapter.ts +++ b/packages/wallets/tokenary/src/adapter.ts @@ -15,7 +15,7 @@ import { WalletSignMessageError, WalletSignTransactionError, } from '@solana/wallet-adapter-base'; -import type { Connection, SendOptions, Transaction, TransactionSignature, VersionedTransaction } from '@solana/web3.js'; +import type { Connection, SendOptions, Transaction, TransactionSignature } from '@solana/web3.js'; import { PublicKey } from '@solana/web3.js'; interface TokenaryWalletEvents { @@ -154,7 +154,7 @@ export class TokenaryWalletAdapter extends BaseMessageSignerWalletAdapter { } async sendTransaction( - transaction: VersionedTransaction | Transaction, + transaction: Transaction, connection: Connection, options: SendTransactionOptions = {} ): Promise { @@ -162,10 +162,6 @@ export class TokenaryWalletAdapter extends BaseMessageSignerWalletAdapter { const wallet = this._wallet; if (!wallet) throw new WalletNotConnectedError(); - if ('message' in transaction) { - throw new WalletSendTransactionError(`Sending versioned transactions isn't supported by this wallet`); - } - try { const { signers, ...sendOptions } = options; diff --git a/packages/wallets/torus/src/adapter.ts b/packages/wallets/torus/src/adapter.ts index 9d26cfe0a..a7400b639 100644 --- a/packages/wallets/torus/src/adapter.ts +++ b/packages/wallets/torus/src/adapter.ts @@ -1,21 +1,20 @@ import type { SendTransactionOptions, WalletName } from '@solana/wallet-adapter-base'; +import { WalletError, WalletSendTransactionError } from '@solana/wallet-adapter-base'; import { BaseMessageSignerWalletAdapter, WalletAccountError, WalletConfigError, WalletConnectionError, WalletDisconnectionError, - WalletError, WalletLoadError, WalletNotConnectedError, WalletNotReadyError, WalletPublicKeyError, WalletReadyState, - WalletSendTransactionError, WalletSignMessageError, WalletSignTransactionError, } from '@solana/wallet-adapter-base'; -import type { Connection, Transaction, TransactionSignature, VersionedTransaction } from '@solana/web3.js'; +import type { Connection, Transaction, TransactionSignature } from '@solana/web3.js'; import { PublicKey } from '@solana/web3.js'; import type { default as Torus, TorusParams } from '@toruslabs/solana-embed'; @@ -145,7 +144,7 @@ export class TorusWalletAdapter extends BaseMessageSignerWalletAdapter { } async sendTransaction( - transaction: VersionedTransaction | Transaction, + transaction: Transaction, connection: Connection, options: SendTransactionOptions = {} ): Promise { @@ -153,10 +152,6 @@ export class TorusWalletAdapter extends BaseMessageSignerWalletAdapter { const wallet = this._wallet; if (!wallet) throw new WalletNotConnectedError(); - if ('message' in transaction) { - throw new WalletSendTransactionError(`Sending versioned transactions isn't supported by this wallet`); - } - try { const { signers, ...sendOptions } = options; diff --git a/packages/wallets/trust/src/adapter.ts b/packages/wallets/trust/src/adapter.ts index 0261a20a1..2f63e40ce 100644 --- a/packages/wallets/trust/src/adapter.ts +++ b/packages/wallets/trust/src/adapter.ts @@ -15,7 +15,7 @@ import { WalletSignMessageError, WalletSignTransactionError, } from '@solana/wallet-adapter-base'; -import type { Connection, SendOptions, Transaction, TransactionSignature, VersionedTransaction } from '@solana/web3.js'; +import type { Connection, SendOptions, Transaction, TransactionSignature } from '@solana/web3.js'; import { PublicKey } from '@solana/web3.js'; interface TrustWalletEvents { @@ -51,11 +51,10 @@ export interface TrustWalletAdapterConfig {} export const TrustWalletName = 'Trust' as WalletName<'Trust'>; export class TrustWalletAdapter extends BaseMessageSignerWalletAdapter { - readonly name = TrustWalletName; - readonly url = 'https://trustwallet.com'; - readonly icon = + name = TrustWalletName; + url = 'https://trustwallet.com'; + icon = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAyIiBoZWlnaHQ9IjQwMiIgdmlld0JveD0iMCAwIDQwMiA0MDIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPgo8cmVjdCB3aWR0aD0iNDAyIiBoZWlnaHQ9IjQwMiIgZmlsbD0idXJsKCNwYXR0ZXJuMCkiLz4KPGRlZnM+CjxwYXR0ZXJuIGlkPSJwYXR0ZXJuMCIgcGF0dGVybkNvbnRlbnRVbml0cz0ib2JqZWN0Qm91bmRpbmdCb3giIHdpZHRoPSIxIiBoZWlnaHQ9IjEiPgo8dX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bnVBeFpjNnhwaHZMeTRIRDB4RjRNWm9iWGdTMDRBSzVlT1J6dSt5MzNhcXdHNjNzNENjUUhaaS9UQ3BTSlhnc2NmbzdVaUJCaEVoSFVRd25FRWN4YkZObURmQWJqdHlIQ2piREFZQTRIc3drNTFXanVaOXJaUjFyZlZzSFB1VS9GTkYzMUdLNTkzMHNkdUZrY0FvcGw3aVhmQnlMOFNzRE9FUS82OGZhT0VNWXRRUUJnV3BzWGNqOW43WU1MUWhJbERHdVZHT2UydUdIS2xHWkE0UjBTT1pRYXpnYjNBNnhVTWpVRW5oRzQ0R2Z0cjNlTTl2eG9HSXhMME1rbUQ3Y1dERUJQSkMvU2pjSFpGUFlSUFdqTzNBd09BZTM0QUxIMys0YWJ6dTRjdjU5NEx1QnpxQU5KYkRITVVJZ2x4L25HUHNzT2ZwTUxhdzRPNythM0V1eU45QUFHQjZVQkRoU1IybXgzL3dBdUJoSzRHK29MdDFpK3NCR0c1M1VrNEh5L2toeExnYjZTY1JaYWtCRFV0K2ZsL3dDTzN3VGtLZ3VzcmJySjduaXcvd0NVR1lFdHp0L2hvc2NkMjJveGJOeGpRQWdJTmNna0pKVXpFT0RjcURhOFZXOWh6dDcxRmhFN3FtNHJ6dFc0QnUvMVFZQ1BhS1VBN3dwdmZOWG1xODFYbXE4MVhtcTgxWG1xODFYbXE4MVhtcTgxWG1xODFYbXE4MVhtcTgxWG1xODFYbXE4MVhtcTgxVjQrYWdHUjFYb0FJQURXZi9aIi8+CjwvZGVmcz4KPC9zdmc+Cg=='; - readonly supportedTransactionVersions = null; private _connecting: boolean; private _wallet: TrustWallet | null; @@ -159,7 +158,7 @@ export class TrustWalletAdapter extends BaseMessageSignerWalletAdapter { } async sendTransaction( - transaction: VersionedTransaction | Transaction, + transaction: Transaction, connection: Connection, options: SendTransactionOptions = {} ): Promise { @@ -167,10 +166,6 @@ export class TrustWalletAdapter extends BaseMessageSignerWalletAdapter { const wallet = this._wallet; if (!wallet) throw new WalletNotConnectedError(); - if ('message' in transaction) { - throw new WalletSendTransactionError(`Sending versioned transactions isn't supported by this wallet`); - } - try { const { signers, ...sendOptions } = options; diff --git a/packages/wallets/walletconnect/src/adapter.ts b/packages/wallets/walletconnect/src/adapter.ts index fd814f4e6..c9d51f6d9 100644 --- a/packages/wallets/walletconnect/src/adapter.ts +++ b/packages/wallets/walletconnect/src/adapter.ts @@ -27,11 +27,10 @@ export type WalletConnectWalletAdapterConfig = { } & Pick; export class WalletConnectWalletAdapter extends BaseSignerWalletAdapter { - readonly name = WalletConnectWalletName; - readonly url = 'https://walletconnect.org'; - readonly icon = + name = WalletConnectWalletName; + url = 'https://walletconnect.org'; + icon = 'data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjE4NSIgdmlld0JveD0iMCAwIDMwMCAxODUiIHdpZHRoPSIzMDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0ibTYxLjQzODU0MjkgMzYuMjU2MjYxMmM0OC45MTEyMjQxLTQ3Ljg4ODE2NjMgMTI4LjIxMTk4NzEtNDcuODg4MTY2MyAxNzcuMTIzMjA5MSAwbDUuODg2NTQ1IDUuNzYzNDE3NGMyLjQ0NTU2MSAyLjM5NDQwODEgMi40NDU1NjEgNi4yNzY1MTEyIDAgOC42NzA5MjA0bC0yMC4xMzY2OTUgMTkuNzE1NTAzYy0xLjIyMjc4MSAxLjE5NzIwNTEtMy4yMDUzIDEuMTk3MjA1MS00LjQyODA4MSAwbC04LjEwMDU4NC03LjkzMTE0NzljLTM0LjEyMTY5Mi0zMy40MDc5ODE3LTg5LjQ0Mzg4Ni0zMy40MDc5ODE3LTEyMy41NjU1Nzg4IDBsLTguNjc1MDU2MiA4LjQ5MzYwNTFjLTEuMjIyNzgxNiAxLjE5NzIwNDEtMy4yMDUzMDEgMS4xOTcyMDQxLTQuNDI4MDgwNiAwbC0yMC4xMzY2OTQ5LTE5LjcxNTUwMzFjLTIuNDQ1NTYxMi0yLjM5NDQw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Mi40NDU1MDUtMi4zOTQ0NjMzIDYuNDEwNTQ0LTIuMzk0NTUzMSA4Ljg1NjE2MS0uMDAwMi4wMDAwMzQuMDAwMDMzNi4wMDAwNjguMDAwMDY3My4wMDAxMDEuMDAwMTAxbDU3LjM1NDkwMiA1Ni4xNTU0MzJjLjYxMTM5LjU5ODYwMSAxLjYwMjY1LjU5ODYwMSAyLjIxNDA0IDBsNTcuMzUzOTc1LTU2LjE1NDMyNDljMi40NDU1NjEtMi4zOTQ0MDkyIDYuNDEwNTk5LTIuMzk0NDA5MiA4Ljg1NjE2IDB6IiBmaWxsPSIjM2I5OWZjIi8+PC9zdmc+'; - readonly supportedTransactionVersions = null; private _publicKey: PublicKey | null; private _connecting: boolean; diff --git a/packages/wallets/xdefi/src/adapter.ts b/packages/wallets/xdefi/src/adapter.ts index 32a03c55e..c9b8242f2 100644 --- a/packages/wallets/xdefi/src/adapter.ts +++ b/packages/wallets/xdefi/src/adapter.ts @@ -1,4 +1,4 @@ -import type { EventEmitter, WalletName } from '@solana/wallet-adapter-base'; +import type { EventEmitter, SendTransactionOptions, WalletName } from '@solana/wallet-adapter-base'; import { BaseMessageSignerWalletAdapter, scopePollingDetectionStrategy, @@ -6,14 +6,16 @@ import { WalletConnectionError, WalletDisconnectedError, WalletDisconnectionError, + WalletError, WalletNotConnectedError, WalletNotReadyError, WalletPublicKeyError, WalletReadyState, + WalletSendTransactionError, WalletSignMessageError, WalletSignTransactionError, } from '@solana/wallet-adapter-base'; -import type { SendOptions, Transaction, TransactionSignature } from '@solana/web3.js'; +import type { Connection, SendOptions, Transaction, TransactionSignature } from '@solana/web3.js'; import { PublicKey } from '@solana/web3.js'; interface XDEFIWalletEvents { @@ -49,11 +51,10 @@ export interface XDEFIWalletAdapterConfig {} export const XDEFIWalletName = 'XDEFI' as WalletName<'XDEFI'>; export class XDEFIWalletAdapter extends BaseMessageSignerWalletAdapter { - readonly name = XDEFIWalletName; - readonly url = 'https://xdefi.io'; - readonly icon = + name = XDE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