@trustware/sdk-staging 1.0.16-staging.13 → 1.0.17-staging.15

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.
@@ -0,0 +1,37 @@
1
+ import { f as WalletId, S as SolanaProviderLike, i as WalletMeta, D as DetectedWallet, l as SolanaWalletInterface } from './manager-CgpuAzqn.cjs';
2
+ export { a as WagmiBridge, b as WagmiConnector, u as useWireDetectionIntoManager, A as walletManager } from './manager-CgpuAzqn.cjs';
3
+ export { g as autoDetectWallet, f as buildDetectedWalletFromProvider, c as connectDetectedWallet, e as createWalletConnectEntry, t as toWalletInterfaceFromDetected, a as useEIP1193, d as useIsMobile, b as useWagmi, u as useWalletDetection } from './detect-BI5qLt5s.cjs';
4
+
5
+ type SolanaEventHandlers = {
6
+ onConnect?: () => void;
7
+ onAccountChanged?: () => void;
8
+ onDisconnect?: () => void;
9
+ };
10
+ declare function getSolanaProviders(): Partial<Record<WalletId, SolanaProviderLike>>;
11
+ declare function detectSolanaWallets(wallets: WalletMeta[]): DetectedWallet[];
12
+ declare function bindSolanaProviderEvents(provider: SolanaProviderLike, handlers: SolanaEventHandlers): () => void;
13
+ declare function toSolanaWalletInterface(provider: SolanaProviderLike): SolanaWalletInterface;
14
+
15
+ declare const POPULAR_ORDER: WalletId[];
16
+ declare const WALLETS: WalletMeta[];
17
+
18
+ declare function formatDeepLink(id: string, currentUrl: string): string | undefined;
19
+ /**
20
+ * Format a WalletConnect URI for mobile deep linking.
21
+ * Uses the WalletConnect universal link which works across all WC-compatible wallets.
22
+ *
23
+ * @param wcUri - The WalletConnect URI (wc:...) from the display_uri event
24
+ * @returns Universal link that opens wallet selector on mobile
25
+ */
26
+ declare function formatWalletConnectDeepLink(wcUri: string): string;
27
+ /**
28
+ * Get a wallet-specific deep link for WalletConnect URI.
29
+ * Some wallets have their own deep link schemes for WalletConnect.
30
+ *
31
+ * @param walletId - Wallet identifier (e.g., "metamask", "rainbow")
32
+ * @param wcUri - The WalletConnect URI
33
+ * @returns Wallet-specific deep link or universal link as fallback
34
+ */
35
+ declare function formatWalletConnectDeepLinkForWallet(walletId: string, wcUri: string): string;
36
+
37
+ export { POPULAR_ORDER, WALLETS, bindSolanaProviderEvents, detectSolanaWallets, formatDeepLink, formatWalletConnectDeepLink, formatWalletConnectDeepLinkForWallet, getSolanaProviders, toSolanaWalletInterface };
@@ -0,0 +1,37 @@
1
+ import { f as WalletId, S as SolanaProviderLike, i as WalletMeta, D as DetectedWallet, l as SolanaWalletInterface } from './manager-CgpuAzqn.js';
2
+ export { a as WagmiBridge, b as WagmiConnector, u as useWireDetectionIntoManager, A as walletManager } from './manager-CgpuAzqn.js';
3
+ export { g as autoDetectWallet, f as buildDetectedWalletFromProvider, c as connectDetectedWallet, e as createWalletConnectEntry, t as toWalletInterfaceFromDetected, a as useEIP1193, d as useIsMobile, b as useWagmi, u as useWalletDetection } from './detect-GUvqS-mr.js';
4
+
5
+ type SolanaEventHandlers = {
6
+ onConnect?: () => void;
7
+ onAccountChanged?: () => void;
8
+ onDisconnect?: () => void;
9
+ };
10
+ declare function getSolanaProviders(): Partial<Record<WalletId, SolanaProviderLike>>;
11
+ declare function detectSolanaWallets(wallets: WalletMeta[]): DetectedWallet[];
12
+ declare function bindSolanaProviderEvents(provider: SolanaProviderLike, handlers: SolanaEventHandlers): () => void;
13
+ declare function toSolanaWalletInterface(provider: SolanaProviderLike): SolanaWalletInterface;
14
+
15
+ declare const POPULAR_ORDER: WalletId[];
16
+ declare const WALLETS: WalletMeta[];
17
+
18
+ declare function formatDeepLink(id: string, currentUrl: string): string | undefined;
19
+ /**
20
+ * Format a WalletConnect URI for mobile deep linking.
21
+ * Uses the WalletConnect universal link which works across all WC-compatible wallets.
22
+ *
23
+ * @param wcUri - The WalletConnect URI (wc:...) from the display_uri event
24
+ * @returns Universal link that opens wallet selector on mobile
25
+ */
26
+ declare function formatWalletConnectDeepLink(wcUri: string): string;
27
+ /**
28
+ * Get a wallet-specific deep link for WalletConnect URI.
29
+ * Some wallets have their own deep link schemes for WalletConnect.
30
+ *
31
+ * @param walletId - Wallet identifier (e.g., "metamask", "rainbow")
32
+ * @param wcUri - The WalletConnect URI
33
+ * @returns Wallet-specific deep link or universal link as fallback
34
+ */
35
+ declare function formatWalletConnectDeepLinkForWallet(walletId: string, wcUri: string): string;
36
+
37
+ export { POPULAR_ORDER, WALLETS, bindSolanaProviderEvents, detectSolanaWallets, formatDeepLink, formatWalletConnectDeepLink, formatWalletConnectDeepLinkForWallet, getSolanaProviders, toSolanaWalletInterface };