UNPKG

@lifi/widget

Version:

LI.FI Widget for cross-chain bridging and swapping. It will drive your multi-chain strategy and attract new users from everywhere.

23 lines 1.21 kB
import { jsx as _jsx } from "react/jsx-runtime"; import { WalletAdapterNetwork } from '@solana/wallet-adapter-base'; import { CoinbaseWalletAdapter } from '@solana/wallet-adapter-coinbase'; import { ConnectionProvider, WalletProvider, } from '@solana/wallet-adapter-react'; import { clusterApiUrl } from '@solana/web3.js'; const endpoint = clusterApiUrl(WalletAdapterNetwork.Mainnet); /** * Wallets that implement either of these standards will be available automatically. * * - Solana Mobile Stack Mobile Wallet Adapter Protocol * (https://github.com/solana-mobile/mobile-wallet-adapter) * - Solana Wallet Standard * (https://github.com/solana-labs/wallet-standard) * * If you wish to support a wallet that supports neither of those standards, * instantiate its legacy wallet adapter here. Common legacy adapters can be found * in the npm package `@solana/wallet-adapter-wallets`. */ const wallets = [new CoinbaseWalletAdapter()]; export const SVMBaseProvider = ({ children }) => { return (_jsx(ConnectionProvider, { endpoint: endpoint, children: _jsx(WalletProvider, { wallets: wallets, autoConnect: true, children: children }) })); }; //# sourceMappingURL=SVMBaseProvider.js.map