@talken/talkenkit 2.3.5 → 2.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/ChainIndicator/ChainIndicator.css.d.ts +4 -0
- package/dist/components/ChainIndicator/ChainIndicator.d.ts +53 -0
- package/dist/components/ChainIndicator/index.d.ts +2 -0
- package/dist/components/ChainSelector/ChainSelector.css.d.ts +5 -0
- package/dist/components/ChainSelector/ChainSelector.d.ts +38 -0
- package/dist/components/ChainSelector/index.d.ts +2 -0
- package/dist/components/ConnectButton/ConnectButtonRenderer.d.ts +9 -0
- package/dist/components/ConnectOptions/DesktopOptions.d.ts +5 -1
- package/dist/components/ConnectOptions/MultiChainConnectOptions.d.ts +31 -0
- package/dist/components/ConnectOptions/index.d.ts +3 -0
- package/dist/components/ModalSelection/ModalSelection.d.ts +2 -1
- package/dist/components/ProfileDetails/ProfileDetails.d.ts +1 -2
- package/dist/components/RainbowKitProvider/RainbowKitProvider.d.ts +8 -1
- package/dist/components/SolanaWalletList/SolanaWalletList.css.d.ts +7 -0
- package/dist/components/SolanaWalletList/SolanaWalletList.d.ts +32 -0
- package/dist/components/SolanaWalletList/index.d.ts +2 -0
- package/dist/contexts/MultiChainContext.d.ts +68 -0
- package/dist/contexts/index.d.ts +7 -0
- package/dist/index.css +105 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +1445 -899
- package/dist/solana/SolanaWalletProvider.d.ts +38 -0
- package/dist/solana/config.d.ts +57 -0
- package/dist/solana/index.d.ts +11 -0
- package/dist/solana/utils/detection.d.ts +27 -0
- package/dist/solana/wallets/backpackWallet.d.ts +19 -0
- package/dist/solana/wallets/index.d.ts +8 -0
- package/dist/solana/wallets/phantomSolanaWallet.d.ts +17 -0
- package/dist/solana/wallets/solflareWallet.d.ts +17 -0
- package/dist/types/solana.d.ts +97 -0
- package/dist/wallets/recentSolanaWalletIds.d.ts +16 -0
- package/dist/wallets/walletConnectors/abcWallet/abcApi.js +1 -1
- package/dist/wallets/walletConnectors/abcWallet/abcConnector.js +2 -2
- package/dist/wallets/walletConnectors/abcWallet/abcSolanaWallet.js +2 -2
- package/dist/wallets/walletConnectors/abcWallet/abcWallet.js +3 -3
- package/dist/wallets/walletConnectors/abcWallet/index.js +4 -4
- package/dist/wallets/walletConnectors/chunk-3SVPZCA6.js +71 -0
- package/dist/wallets/walletConnectors/chunk-5QEUEPNY.js +94 -0
- package/dist/wallets/walletConnectors/chunk-B6JLYR3I.js +66 -0
- package/dist/wallets/walletConnectors/{chunk-6JKWIEGA.js → chunk-BHMMHU7Y.js} +1 -1
- package/dist/wallets/walletConnectors/chunk-HKWBR5B7.js +102 -0
- package/dist/wallets/walletConnectors/chunk-K4APJ4PE.js +96 -0
- package/dist/wallets/walletConnectors/chunk-LJ2B47VF.js +108 -0
- package/dist/wallets/walletConnectors/chunk-LXINMUQC.js +186 -0
- package/dist/wallets/walletConnectors/chunk-MORUEOYX.js +76 -0
- package/dist/wallets/walletConnectors/chunk-MQTXA63X.js +27 -0
- package/dist/wallets/walletConnectors/{chunk-G2IHR6PW.js → chunk-NLKL4KD2.js} +11 -11
- package/dist/wallets/walletConnectors/{chunk-KOT7JYJR.js → chunk-OEB7MRS5.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-RWIZ25FJ.js → chunk-P2E4LSYH.js} +17 -23
- package/dist/wallets/walletConnectors/chunk-PMZJGS7X.js +73 -0
- package/dist/wallets/walletConnectors/{chunk-BRM4ZVXZ.js → chunk-RSZS2RMC.js} +1 -1
- package/dist/wallets/walletConnectors/chunk-WZZVA3LW.js +101 -0
- package/dist/wallets/walletConnectors/chunk-XEIKWKH7.js +63 -0
- package/dist/wallets/walletConnectors/chunk-XOQNQKZE.js +98 -0
- package/dist/wallets/walletConnectors/chunk-ZAGAF6PO.js +63 -0
- package/dist/wallets/walletConnectors/chunk-ZJ6OFFD5.js +95 -0
- package/dist/wallets/walletConnectors/index.js +24 -24
- package/package.json +17 -11
- package/LICENSE +0 -9
- package/dist/wallets/walletConnectors/chunk-2J66VMY5.js +0 -152
- package/dist/wallets/walletConnectors/chunk-2ZPGPZCP.js +0 -228
- package/dist/wallets/walletConnectors/chunk-3DPCIDW6.js +0 -1730
- package/dist/wallets/walletConnectors/chunk-4HKJ53H3.js +0 -1742
- package/dist/wallets/walletConnectors/chunk-5EARL7FN.js +0 -39
- package/dist/wallets/walletConnectors/chunk-7SXCH5TL.js +0 -1752
- package/dist/wallets/walletConnectors/chunk-7UZBDZZZ.js +0 -599
- package/dist/wallets/walletConnectors/chunk-BUDWZAL7.js +0 -44
- package/dist/wallets/walletConnectors/chunk-CSWWNAYR.js +0 -44
- package/dist/wallets/walletConnectors/chunk-E4N7SPPU.js +0 -39
- package/dist/wallets/walletConnectors/chunk-ENU7XLF5.js +0 -44
- package/dist/wallets/walletConnectors/chunk-ESRU5KCF.js +0 -151
- package/dist/wallets/walletConnectors/chunk-FF7ZIXKD.js +0 -39
- package/dist/wallets/walletConnectors/chunk-FJCL2YPU.js +0 -1737
- package/dist/wallets/walletConnectors/chunk-FSU3WBH3.js +0 -63
- package/dist/wallets/walletConnectors/chunk-HD6YCICR.js +0 -228
- package/dist/wallets/walletConnectors/chunk-HDYBRMYW.js +0 -194
- package/dist/wallets/walletConnectors/chunk-HIZCIW5L.js +0 -228
- package/dist/wallets/walletConnectors/chunk-JRNBDHFL.js +0 -44
- package/dist/wallets/walletConnectors/chunk-KIQDE4N6.js +0 -39
- package/dist/wallets/walletConnectors/chunk-KZOSE2PI.js +0 -228
- package/dist/wallets/walletConnectors/chunk-LNZJLKFB.js +0 -39
- package/dist/wallets/walletConnectors/chunk-LV765WZL.js +0 -1748
- package/dist/wallets/walletConnectors/chunk-MSI2BPP5.js +0 -1722
- package/dist/wallets/walletConnectors/chunk-MX2IY5CD.js +0 -44
- package/dist/wallets/walletConnectors/chunk-NLX2EV7O.js +0 -44
- package/dist/wallets/walletConnectors/chunk-NVAZ3B3V.js +0 -228
- package/dist/wallets/walletConnectors/chunk-OEWU3ZMN.js +0 -39
- package/dist/wallets/walletConnectors/chunk-P2MTINFI.js +0 -280
- package/dist/wallets/walletConnectors/chunk-PNMSIVVT.js +0 -44
- package/dist/wallets/walletConnectors/chunk-PZNYT2HC.js +0 -1722
- package/dist/wallets/walletConnectors/chunk-QPAE4SDS.js +0 -39
- package/dist/wallets/walletConnectors/chunk-QZRNNI3E.js +0 -39
- package/dist/wallets/walletConnectors/chunk-R4UYVU5X.js +0 -1721
- package/dist/wallets/walletConnectors/chunk-RLBGBBIO.js +0 -309
- package/dist/wallets/walletConnectors/chunk-TUUNSVKZ.js +0 -345
- package/dist/wallets/walletConnectors/chunk-U2CUEL35.js +0 -240
- package/dist/wallets/walletConnectors/chunk-V6NRLREB.js +0 -44
- package/dist/wallets/walletConnectors/chunk-VM7AEC7H.js +0 -39
- package/dist/wallets/walletConnectors/chunk-W2VDZD74.js +0 -478
- package/dist/wallets/walletConnectors/chunk-WAO3KL5U.js +0 -285
- package/dist/wallets/walletConnectors/chunk-WPHTIILX.js +0 -228
- package/dist/wallets/walletConnectors/chunk-WSCJY2QD.js +0 -228
- package/dist/wallets/walletConnectors/chunk-X3JQB5QL.js +0 -44
- package/dist/wallets/walletConnectors/chunk-X4CDP7L7.js +0 -228
- package/dist/wallets/walletConnectors/chunk-XETOVXYM.js +0 -228
- package/dist/wallets/walletConnectors/chunk-XYPR4BAF.js +0 -436
- package/dist/wallets/walletConnectors/chunk-Z2ZRPTPX.js +0 -1726
- package/dist/wallets/walletConnectors/{chunk-VCBVYFLJ.js → chunk-6TLWAEJV.js} +7 -7
- package/dist/wallets/walletConnectors/{chunk-47TQ23J4.js → chunk-74ALNZG4.js} +8 -8
- package/dist/wallets/walletConnectors/{chunk-66SCJ77O.js → chunk-CM5OGUJV.js} +6 -6
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SolanaWalletProvider - Wrapper for @solana/wallet-adapter-react
|
|
3
|
+
*
|
|
4
|
+
* This component provides Solana wallet connection functionality by wrapping
|
|
5
|
+
* the standard Solana wallet adapter. It supports multiple Solana wallets
|
|
6
|
+
* including Phantom, Solflare, Backpack, and ABC WaaS.
|
|
7
|
+
*
|
|
8
|
+
* @module SolanaWalletProvider
|
|
9
|
+
*/
|
|
10
|
+
import React, { ReactNode } from 'react';
|
|
11
|
+
import type { Adapter } from '@solana/wallet-adapter-base';
|
|
12
|
+
export interface SolanaWalletProviderProps {
|
|
13
|
+
children: ReactNode;
|
|
14
|
+
/**
|
|
15
|
+
* Custom wallet adapters to use
|
|
16
|
+
* If not provided, defaults to Phantom, Solflare, Backpack
|
|
17
|
+
*/
|
|
18
|
+
wallets?: Adapter[];
|
|
19
|
+
/**
|
|
20
|
+
* Auto-connect to previously connected wallet
|
|
21
|
+
* @default false
|
|
22
|
+
*/
|
|
23
|
+
autoConnect?: boolean;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* SolanaWalletProvider component
|
|
27
|
+
*
|
|
28
|
+
* Wraps the Solana wallet adapter to provide wallet connection functionality
|
|
29
|
+
* for Solana external wallets (browser extensions).
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```tsx
|
|
33
|
+
* <SolanaWalletProvider autoConnect={false}>
|
|
34
|
+
* <App />
|
|
35
|
+
* </SolanaWalletProvider>
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
export declare function SolanaWalletProvider({ children, wallets: customWallets, autoConnect, }: SolanaWalletProviderProps): React.JSX.Element;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Solana Configuration
|
|
3
|
+
*
|
|
4
|
+
* Helper functions and types for configuring Solana wallet support in TalkenKit.
|
|
5
|
+
*
|
|
6
|
+
* @module solana/config
|
|
7
|
+
*/
|
|
8
|
+
import type { Adapter } from '@solana/wallet-adapter-base';
|
|
9
|
+
/**
|
|
10
|
+
* Solana network types
|
|
11
|
+
*/
|
|
12
|
+
export type SolanaNetwork = 'mainnet-beta' | 'devnet' | 'testnet';
|
|
13
|
+
/**
|
|
14
|
+
* Predefined wallet identifiers
|
|
15
|
+
*/
|
|
16
|
+
export type SolanaWalletId = 'phantom' | 'solflare' | 'backpack' | 'magicEden' | 'abc';
|
|
17
|
+
/**
|
|
18
|
+
* Configuration options for Solana support
|
|
19
|
+
*/
|
|
20
|
+
export interface SolanaConfig {
|
|
21
|
+
/**
|
|
22
|
+
* Solana network to connect to
|
|
23
|
+
* @default 'mainnet-beta'
|
|
24
|
+
*/
|
|
25
|
+
network: SolanaNetwork;
|
|
26
|
+
/**
|
|
27
|
+
* Wallet adapters to enable
|
|
28
|
+
* Can be wallet IDs (strings) or custom Adapter instances
|
|
29
|
+
*/
|
|
30
|
+
wallets: Array<SolanaWalletId | Adapter>;
|
|
31
|
+
/**
|
|
32
|
+
* Custom RPC endpoint URL
|
|
33
|
+
* If not provided, uses default public endpoints
|
|
34
|
+
*/
|
|
35
|
+
rpcEndpoint?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Auto-connect to previously connected wallet
|
|
38
|
+
* @default false
|
|
39
|
+
*/
|
|
40
|
+
autoConnect?: boolean;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Get RPC endpoint URL for a given network
|
|
44
|
+
*/
|
|
45
|
+
export declare function getDefaultRpcEndpoint(network: SolanaNetwork): string;
|
|
46
|
+
/**
|
|
47
|
+
* Create a Solana configuration object
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* ```ts
|
|
51
|
+
* const solanaConfig = getSolanaConfig({
|
|
52
|
+
* network: 'mainnet-beta',
|
|
53
|
+
* wallets: ['phantom', 'solflare', 'backpack'],
|
|
54
|
+
* });
|
|
55
|
+
* ```
|
|
56
|
+
*/
|
|
57
|
+
export declare function getSolanaConfig(options?: Partial<SolanaConfig>): SolanaConfig;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Solana Wallet Support
|
|
3
|
+
*
|
|
4
|
+
* This module provides Solana external wallet integration for TalkenKit.
|
|
5
|
+
*
|
|
6
|
+
* @module solana
|
|
7
|
+
*/
|
|
8
|
+
export { SolanaWalletProvider } from './SolanaWalletProvider';
|
|
9
|
+
export type { SolanaWalletProviderProps } from './SolanaWalletProvider';
|
|
10
|
+
export { getSolanaConfig, getDefaultRpcEndpoint, } from './config';
|
|
11
|
+
export type { SolanaConfig, SolanaNetwork, SolanaWalletId, } from './config';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Wallet Detection Utilities
|
|
3
|
+
*
|
|
4
|
+
* Helper functions for detecting installed Solana wallets
|
|
5
|
+
*
|
|
6
|
+
* @module solana/utils/detection
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Check if running in browser environment
|
|
10
|
+
*/
|
|
11
|
+
export declare function isBrowser(): boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Check if Phantom Solana wallet is installed
|
|
14
|
+
*/
|
|
15
|
+
export declare function hasPhantomSolana(): boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Check if Solflare wallet is installed
|
|
18
|
+
*/
|
|
19
|
+
export declare function hasSolflare(): boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Check if Backpack wallet is installed
|
|
22
|
+
*/
|
|
23
|
+
export declare function hasBackpack(): boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Get list of all installed Solana wallets
|
|
26
|
+
*/
|
|
27
|
+
export declare function getInstalledSolanaWallets(): string[];
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Backpack Wallet Adapter
|
|
3
|
+
*
|
|
4
|
+
* Connector for Backpack wallet
|
|
5
|
+
*
|
|
6
|
+
* @module solana/wallets/backpackWallet
|
|
7
|
+
*/
|
|
8
|
+
import type { SolanaWallet } from '../../types/solana';
|
|
9
|
+
/**
|
|
10
|
+
* Backpack wallet connector (placeholder)
|
|
11
|
+
*
|
|
12
|
+
* NOTE: BackpackWalletAdapter not yet available - this is a placeholder
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* const wallet = backpackWallet();
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
export declare const backpackWallet: () => SolanaWallet;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Phantom Solana Wallet Adapter
|
|
3
|
+
*
|
|
4
|
+
* Connector for Phantom wallet's Solana interface
|
|
5
|
+
*
|
|
6
|
+
* @module solana/wallets/phantomSolanaWallet
|
|
7
|
+
*/
|
|
8
|
+
import type { SolanaWallet } from '../../types/solana';
|
|
9
|
+
/**
|
|
10
|
+
* Phantom Solana wallet connector
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const wallet = phantomSolanaWallet();
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
export declare const phantomSolanaWallet: () => SolanaWallet;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Solflare Wallet Adapter
|
|
3
|
+
*
|
|
4
|
+
* Connector for Solflare wallet
|
|
5
|
+
*
|
|
6
|
+
* @module solana/wallets/solflareWallet
|
|
7
|
+
*/
|
|
8
|
+
import type { SolanaWallet } from '../../types/solana';
|
|
9
|
+
/**
|
|
10
|
+
* Solflare wallet connector
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const wallet = solflareWallet();
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
export declare const solflareWallet: () => SolanaWallet;
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Solana Wallet Types
|
|
3
|
+
*
|
|
4
|
+
* Type definitions for Solana wallet integration
|
|
5
|
+
*
|
|
6
|
+
* @module types/solana
|
|
7
|
+
*/
|
|
8
|
+
import type { Adapter } from '@solana/wallet-adapter-base';
|
|
9
|
+
/**
|
|
10
|
+
* Solana wallet definition
|
|
11
|
+
*/
|
|
12
|
+
export interface SolanaWallet {
|
|
13
|
+
/**
|
|
14
|
+
* Unique identifier for the wallet
|
|
15
|
+
*/
|
|
16
|
+
id: string;
|
|
17
|
+
/**
|
|
18
|
+
* Display name for the wallet
|
|
19
|
+
*/
|
|
20
|
+
name: string;
|
|
21
|
+
/**
|
|
22
|
+
* Chain type (always 'solana' for Solana wallets)
|
|
23
|
+
*/
|
|
24
|
+
chain: 'solana';
|
|
25
|
+
/**
|
|
26
|
+
* Icon URL or SVG import
|
|
27
|
+
*/
|
|
28
|
+
iconUrl: string | (() => Promise<string>);
|
|
29
|
+
/**
|
|
30
|
+
* Background color for wallet icon
|
|
31
|
+
*/
|
|
32
|
+
iconBackground?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Check if wallet is installed
|
|
35
|
+
*/
|
|
36
|
+
installed: () => boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Create wallet adapter instance
|
|
39
|
+
*/
|
|
40
|
+
createAdapter: () => Adapter;
|
|
41
|
+
/**
|
|
42
|
+
* Download URL if wallet is not installed
|
|
43
|
+
*/
|
|
44
|
+
downloadUrl?: string;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Window interface extensions for Solana wallets
|
|
48
|
+
*/
|
|
49
|
+
declare global {
|
|
50
|
+
interface Window {
|
|
51
|
+
phantom?: {
|
|
52
|
+
solana?: {
|
|
53
|
+
isPhantom?: boolean;
|
|
54
|
+
connect: () => Promise<{
|
|
55
|
+
publicKey: {
|
|
56
|
+
toString: () => string;
|
|
57
|
+
};
|
|
58
|
+
}>;
|
|
59
|
+
disconnect: () => Promise<void>;
|
|
60
|
+
signTransaction: (tx: unknown) => Promise<unknown>;
|
|
61
|
+
signAllTransactions: (txs: unknown[]) => Promise<unknown[]>;
|
|
62
|
+
signMessage: (msg: Uint8Array) => Promise<{
|
|
63
|
+
signature: Uint8Array;
|
|
64
|
+
}>;
|
|
65
|
+
};
|
|
66
|
+
ethereum?: unknown;
|
|
67
|
+
};
|
|
68
|
+
solflare?: {
|
|
69
|
+
isSolflare?: boolean;
|
|
70
|
+
connect: () => Promise<{
|
|
71
|
+
publicKey: {
|
|
72
|
+
toString: () => string;
|
|
73
|
+
};
|
|
74
|
+
}>;
|
|
75
|
+
disconnect: () => Promise<void>;
|
|
76
|
+
signTransaction: (tx: unknown) => Promise<unknown>;
|
|
77
|
+
signAllTransactions: (txs: unknown[]) => Promise<unknown[]>;
|
|
78
|
+
signMessage: (msg: Uint8Array) => Promise<{
|
|
79
|
+
signature: Uint8Array;
|
|
80
|
+
}>;
|
|
81
|
+
};
|
|
82
|
+
backpack?: {
|
|
83
|
+
isBackpack?: boolean;
|
|
84
|
+
connect: () => Promise<{
|
|
85
|
+
publicKey: {
|
|
86
|
+
toString: () => string;
|
|
87
|
+
};
|
|
88
|
+
}>;
|
|
89
|
+
disconnect: () => Promise<void>;
|
|
90
|
+
signTransaction: (tx: unknown) => Promise<unknown>;
|
|
91
|
+
signAllTransactions: (txs: unknown[]) => Promise<unknown[]>;
|
|
92
|
+
signMessage: (msg: Uint8Array) => Promise<{
|
|
93
|
+
signature: Uint8Array;
|
|
94
|
+
}>;
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Solana Recent Wallet Tracking
|
|
3
|
+
*
|
|
4
|
+
* Tracks recently used Solana wallets in localStorage.
|
|
5
|
+
* Pattern follows recentWalletIds.ts for EVM wallets.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Get list of recently used Solana wallet names
|
|
9
|
+
* @returns Array of wallet names (e.g., ['Phantom', 'Solflare'])
|
|
10
|
+
*/
|
|
11
|
+
export declare function getRecentSolanaWalletIds(): string[];
|
|
12
|
+
/**
|
|
13
|
+
* Add a Solana wallet name to recent list
|
|
14
|
+
* @param walletName - Wallet adapter name (e.g., 'Phantom', 'Solflare')
|
|
15
|
+
*/
|
|
16
|
+
export declare function addRecentSolanaWalletId(walletName: string): void;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
abcConnector
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-BHMMHU7Y.js";
|
|
5
|
+
import "../chunk-P2E4LSYH.js";
|
|
6
6
|
import "../chunk-G2LI5MVX.js";
|
|
7
7
|
import "../chunk-73B7HWCT.js";
|
|
8
8
|
import "../chunk-W23N7VC4.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
abcSolanaWallet
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-OEB7MRS5.js";
|
|
5
5
|
import "../chunk-AEQOPQL6.js";
|
|
6
6
|
import "../chunk-MY5YIDOB.js";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-P2E4LSYH.js";
|
|
8
8
|
import "../chunk-G2LI5MVX.js";
|
|
9
9
|
import "../chunk-W23N7VC4.js";
|
|
10
10
|
import "../chunk-VETRBBA2.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
abcWallet
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-RSZS2RMC.js";
|
|
5
|
+
import "../chunk-BHMMHU7Y.js";
|
|
6
|
+
import "../chunk-P2E4LSYH.js";
|
|
7
7
|
import "../chunk-G2LI5MVX.js";
|
|
8
8
|
import "../chunk-73B7HWCT.js";
|
|
9
9
|
import "../chunk-W23N7VC4.js";
|
|
@@ -19,7 +19,7 @@ import "../chunk-KD2OAMDA.js";
|
|
|
19
19
|
import "../chunk-IOLHAU7H.js";
|
|
20
20
|
import {
|
|
21
21
|
abcSolanaWallet
|
|
22
|
-
} from "../chunk-
|
|
22
|
+
} from "../chunk-OEB7MRS5.js";
|
|
23
23
|
import {
|
|
24
24
|
AbcBitcoinConnector,
|
|
25
25
|
createAbcBitcoinConnector
|
|
@@ -43,14 +43,14 @@ import {
|
|
|
43
43
|
} from "../chunk-MY5YIDOB.js";
|
|
44
44
|
import {
|
|
45
45
|
abcWallet
|
|
46
|
-
} from "../chunk-
|
|
46
|
+
} from "../chunk-RSZS2RMC.js";
|
|
47
47
|
import {
|
|
48
48
|
abcConnector
|
|
49
|
-
} from "../chunk-
|
|
49
|
+
} from "../chunk-BHMMHU7Y.js";
|
|
50
50
|
import {
|
|
51
51
|
AbcWaasClient,
|
|
52
52
|
createAbcWaasClient
|
|
53
|
-
} from "../chunk-
|
|
53
|
+
} from "../chunk-P2E4LSYH.js";
|
|
54
54
|
import {
|
|
55
55
|
secure_default
|
|
56
56
|
} from "../chunk-G2LI5MVX.js";
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getInjectedConnector,
|
|
4
|
+
hasInjectedProvider
|
|
5
|
+
} from "./chunk-MBBGZGXF.js";
|
|
6
|
+
import {
|
|
7
|
+
isAndroid
|
|
8
|
+
} from "./chunk-RETKWSKD.js";
|
|
9
|
+
import {
|
|
10
|
+
getWalletConnectConnector
|
|
11
|
+
} from "./chunk-PODFK4OS.js";
|
|
12
|
+
|
|
13
|
+
// src/wallets/walletConnectors/bifrostWallet/bifrostWallet.ts
|
|
14
|
+
var bifrostWallet = ({
|
|
15
|
+
projectId,
|
|
16
|
+
walletConnectParameters
|
|
17
|
+
}) => {
|
|
18
|
+
const isBifrostInjected = hasInjectedProvider({ flag: "isBifrost" });
|
|
19
|
+
const shouldUseWalletConnect = !isBifrostInjected;
|
|
20
|
+
const getUri = (uri) => {
|
|
21
|
+
return isAndroid() ? uri : `https://app.bifrostwallet.com/wc?uri=${encodeURIComponent(uri)}`;
|
|
22
|
+
};
|
|
23
|
+
return {
|
|
24
|
+
id: "bifrostWallet",
|
|
25
|
+
name: "Bifrost Wallet",
|
|
26
|
+
iconUrl: async () => (await import("./bifrostWallet-ORF3DABG.js")).default,
|
|
27
|
+
iconBackground: "#fff",
|
|
28
|
+
installed: !shouldUseWalletConnect ? isBifrostInjected : void 0,
|
|
29
|
+
downloadUrls: {
|
|
30
|
+
android: "https://play.google.com/store/apps/details?id=com.bifrostwallet.app",
|
|
31
|
+
ios: "https://apps.apple.com/us/app/bifrost-wallet/id1577198351",
|
|
32
|
+
qrCode: "https://bifrostwallet.com/#download-app"
|
|
33
|
+
},
|
|
34
|
+
mobile: {
|
|
35
|
+
getUri: shouldUseWalletConnect ? getUri : void 0
|
|
36
|
+
},
|
|
37
|
+
qrCode: shouldUseWalletConnect ? {
|
|
38
|
+
getUri: (uri) => uri,
|
|
39
|
+
instructions: {
|
|
40
|
+
learnMoreUrl: "https://support.bifrostwallet.com/en/articles/6886814-how-to-use-walletconnect",
|
|
41
|
+
steps: [
|
|
42
|
+
{
|
|
43
|
+
description: "wallet_connectors.bifrost.qr_code.step1.description",
|
|
44
|
+
step: "install",
|
|
45
|
+
title: "wallet_connectors.bifrost.qr_code.step1.title"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
description: "wallet_connectors.bifrost.qr_code.step2.description",
|
|
49
|
+
step: "create",
|
|
50
|
+
title: "wallet_connectors.bifrost.qr_code.step2.title"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
description: "wallet_connectors.bifrost.qr_code.step3.description",
|
|
54
|
+
step: "scan",
|
|
55
|
+
title: "wallet_connectors.bifrost.qr_code.step3.title"
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
}
|
|
59
|
+
} : void 0,
|
|
60
|
+
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
61
|
+
projectId,
|
|
62
|
+
walletConnectParameters
|
|
63
|
+
}) : getInjectedConnector({
|
|
64
|
+
flag: "isBifrost"
|
|
65
|
+
})
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
export {
|
|
70
|
+
bifrostWallet
|
|
71
|
+
};
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getInjectedConnector,
|
|
4
|
+
hasInjectedProvider
|
|
5
|
+
} from "./chunk-MBBGZGXF.js";
|
|
6
|
+
import {
|
|
7
|
+
isAndroid
|
|
8
|
+
} from "./chunk-RETKWSKD.js";
|
|
9
|
+
import {
|
|
10
|
+
getWalletConnectConnector
|
|
11
|
+
} from "./chunk-PODFK4OS.js";
|
|
12
|
+
|
|
13
|
+
// src/wallets/walletConnectors/gateWallet/gateWallet.ts
|
|
14
|
+
var gateWallet = ({
|
|
15
|
+
projectId,
|
|
16
|
+
walletConnectParameters
|
|
17
|
+
}) => {
|
|
18
|
+
const isGateInjected = hasInjectedProvider({ namespace: "gatewallet" });
|
|
19
|
+
const shouldUseWalletConnect = !isGateInjected;
|
|
20
|
+
return {
|
|
21
|
+
id: "gate",
|
|
22
|
+
name: "Gate Wallet",
|
|
23
|
+
rdns: "io.gate.wallet",
|
|
24
|
+
iconUrl: async () => (await import("./gateWallet-ZVEZILRP.js")).default,
|
|
25
|
+
iconAccent: "#fff",
|
|
26
|
+
iconBackground: "#fff",
|
|
27
|
+
downloadUrls: {
|
|
28
|
+
android: "https://play.google.com/store/apps/details?id=com.gateio.gateio",
|
|
29
|
+
ios: "https://apps.apple.com/us/app/gate-io-buy-bitcoin-crypto/id1294998195",
|
|
30
|
+
mobile: "https://www.gate.io/mobileapp",
|
|
31
|
+
qrCode: "https://www.gate.io/web3",
|
|
32
|
+
chrome: "https://chromewebstore.google.com/detail/gate-wallet/cpmkedoipcpimgecpmgpldfpohjplkpp",
|
|
33
|
+
browserExtension: "https://www.gate.io/web3"
|
|
34
|
+
},
|
|
35
|
+
mobile: {
|
|
36
|
+
getUri: shouldUseWalletConnect ? (uri) => {
|
|
37
|
+
return isAndroid() ? uri : `gtweb3wallet://wc?uri=${encodeURIComponent(uri)}`;
|
|
38
|
+
} : void 0
|
|
39
|
+
},
|
|
40
|
+
qrCode: shouldUseWalletConnect ? {
|
|
41
|
+
getUri: (uri) => uri,
|
|
42
|
+
instructions: {
|
|
43
|
+
learnMoreUrl: "https://www.gate.io/learn",
|
|
44
|
+
steps: [
|
|
45
|
+
{
|
|
46
|
+
description: "wallet_connectors.gate.qr_code.step1.description",
|
|
47
|
+
step: "install",
|
|
48
|
+
title: "wallet_connectors.gate.qr_code.step1.title"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
description: "wallet_connectors.gate.qr_code.step2.description",
|
|
52
|
+
step: "create",
|
|
53
|
+
title: "wallet_connectors.gate.qr_code.step2.title"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
description: "wallet_connectors.gate.qr_code.step3.description",
|
|
57
|
+
step: "scan",
|
|
58
|
+
title: "wallet_connectors.gate.qr_code.step3.title"
|
|
59
|
+
}
|
|
60
|
+
]
|
|
61
|
+
}
|
|
62
|
+
} : void 0,
|
|
63
|
+
extension: {
|
|
64
|
+
instructions: {
|
|
65
|
+
learnMoreUrl: "https://www.gate.io/learn",
|
|
66
|
+
steps: [
|
|
67
|
+
{
|
|
68
|
+
description: "wallet_connectors.gate.extension.step1.description",
|
|
69
|
+
step: "install",
|
|
70
|
+
title: "wallet_connectors.gate.extension.step1.title"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
description: "wallet_connectors.gate.extension.step2.description",
|
|
74
|
+
step: "create",
|
|
75
|
+
title: "wallet_connectors.gate.extension.step2.title"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
description: "wallet_connectors.gate.extension.step3.description",
|
|
79
|
+
step: "refresh",
|
|
80
|
+
title: "wallet_connectors.gate.extension.step3.title"
|
|
81
|
+
}
|
|
82
|
+
]
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
createConnector: shouldUseWalletConnect ? getWalletConnectConnector({
|
|
86
|
+
projectId,
|
|
87
|
+
walletConnectParameters
|
|
88
|
+
}) : getInjectedConnector({ namespace: "gatewallet" })
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
export {
|
|
93
|
+
gateWallet
|
|
94
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getInjectedConnector
|
|
4
|
+
} from "./chunk-MBBGZGXF.js";
|
|
5
|
+
import {
|
|
6
|
+
isAndroid
|
|
7
|
+
} from "./chunk-RETKWSKD.js";
|
|
8
|
+
import {
|
|
9
|
+
getWalletConnectConnector
|
|
10
|
+
} from "./chunk-PODFK4OS.js";
|
|
11
|
+
|
|
12
|
+
// src/wallets/walletConnectors/iopayWallet/iopayWallet.ts
|
|
13
|
+
function isIoPayMobile() {
|
|
14
|
+
return typeof navigator !== "undefined" && typeof navigator.userAgent !== "undefined" && (navigator?.userAgent.includes("IoPayAndroid") || navigator?.userAgent.includes("IoPayiOs"));
|
|
15
|
+
}
|
|
16
|
+
var iopayWallet = ({
|
|
17
|
+
projectId,
|
|
18
|
+
walletConnectParameters
|
|
19
|
+
}) => ({
|
|
20
|
+
id: "iopay",
|
|
21
|
+
name: "ioPay Wallet",
|
|
22
|
+
iconUrl: async () => (await import("./iopayWallet-IJHJ7NYT.js")).default,
|
|
23
|
+
iconBackground: "#fff",
|
|
24
|
+
downloadUrls: {
|
|
25
|
+
android: "https://play.google.com/store/apps/details?id=io.iotex.iopay.gp&pli=1",
|
|
26
|
+
ios: "https://apps.apple.com/us/app/iopay-multichain-crypto-wallet/id1478086371",
|
|
27
|
+
qrCode: "https://iopay.me/",
|
|
28
|
+
browserExtension: "https://iopay.me/"
|
|
29
|
+
},
|
|
30
|
+
mobile: {
|
|
31
|
+
getUri: (uri) => {
|
|
32
|
+
return isAndroid() ? uri : `iopay://wc?uri=${encodeURIComponent(uri)}`;
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
qrCode: {
|
|
36
|
+
getUri: (uri) => uri,
|
|
37
|
+
instructions: {
|
|
38
|
+
learnMoreUrl: "https://iopay.me/",
|
|
39
|
+
steps: [
|
|
40
|
+
{
|
|
41
|
+
description: "wallet_connectors.iopay.qr_code.step1.description",
|
|
42
|
+
step: "install",
|
|
43
|
+
title: "wallet_connectors.iopay.qr_code.step1.title"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
description: "wallet_connectors.iopay.qr_code.step2.description",
|
|
47
|
+
step: "create",
|
|
48
|
+
title: "wallet_connectors.iopay.qr_code.step2.title"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
description: "wallet_connectors.iopay.qr_code.step3.description",
|
|
52
|
+
step: "scan",
|
|
53
|
+
title: "wallet_connectors.iopay.qr_code.step3.title"
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
createConnector: isIoPayMobile() ? getInjectedConnector({}) : getWalletConnectConnector({
|
|
59
|
+
projectId,
|
|
60
|
+
walletConnectParameters
|
|
61
|
+
})
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
export {
|
|
65
|
+
iopayWallet
|
|
66
|
+
};
|