Skip to content

Modular TypeScript wallet adapters and components for Solana applications.

License

Notifications You must be signed in to change notification settings

saifuwallet/wallet-adapter

 
 

Repository files navigation

@saifuwallet/wallet-adapter

Wallet adapter for integrating Saifu Wallet

In Action

Actual wallet adapter code is in https://github.com/saifuwallet/wallet-adapter/tree/master/packages/wallets/saifu

Integrating saifu wallet-adapter

This is assuming you already use @solana/wallet-adapter

  1. Install with yarn add @saifuwallet/wallet-adapter or npm i @saifuwallet/wallet-adapter
  2. Add to your existing bootstrap
import {SaifuWalletAdapter} from '@saifuwallet/wallet-adapter';

// ... import other stuff here

const wallets = useMemo(
    () => [
        new PhantomWalletAdapter(),
        new SlopeWalletAdapter(),
        new SaifuWalletAdapter(), // add to your wallets array
    ],
    [network]
);

// continue to use like always
return (
    <ConnectionProvider endpoint={endpoint}>
        <WalletProvider wallets={wallets} autoConnect>
            <WalletModalProvider>
                <WalletMultiButton />
                <WalletDisconnectButton />
            </WalletModalProvider>
        </WalletProvider>
    </ConnectionProvider>
);
  1. Done!

About

Modular TypeScript wallet adapters and components for Solana applications.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 95.3%
  • CSS 3.5%
  • Other 1.2%