0.2.8 • Published 2 years ago

@layerzerolabs/ui-wallet-solana v0.2.8

Weekly downloads
-
License
BUSL-1.1
Repository
-
Last release
2 years ago

Installation

yarn add @layerzerolabs/ui-wallet-solana

pnpm add @layerzerolabs/ui-wallet-solana

npm install @layerzerolabs/ui-wallet-solana

Usage

This package exports the SolanaWallet class to connect with Solana compatible wallets adapters.

import {SolanaWallet} from '@layerzerolabs/ui-wallet-solana';
import {
  CoinbaseWalletAdapter,
  PhantomWalletAdapter,
  SolflareWalletAdapter,
} from '@solana/wallet-adapter-wallets';

const wallets: Record<string, Wallet<unknown>> = {};
wallets.phantomWallet = new SolanaWallet('Phantom', new PhantomWalletAdapter());
wallets.coinbaseWalletSolana = new SolanaWallet(
  'CoinBase',
  new CoinbaseWalletAdapter() as BaseSignerWalletAdapter,
);
wallets.solflareWallet = new SolanaWallet('Solflare', new SolflareWalletAdapter());

walletStore.addWallets(wallets);
0.2.1

2 years ago

0.2.0

2 years ago

0.2.7

2 years ago

0.2.6

2 years ago

0.2.8

2 years ago

0.2.3

2 years ago

0.2.2

2 years ago

0.2.5

2 years ago

0.2.4

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago

0.0.0

2 years ago