@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.
- package/dist/constants.cjs +1 -1
- package/dist/constants.mjs +1 -1
- package/dist/core-DRDMS5t3.d.ts +435 -0
- package/dist/core-DXxIIFgy.d.cts +435 -0
- package/dist/core.cjs +3107 -0
- package/dist/core.cjs.map +1 -0
- package/dist/core.d.cts +3 -0
- package/dist/core.d.ts +3 -0
- package/dist/core.mjs +3087 -0
- package/dist/core.mjs.map +1 -0
- package/dist/detect-BI5qLt5s.d.cts +34 -0
- package/dist/detect-GUvqS-mr.d.ts +34 -0
- package/dist/index.cjs +7570 -5867
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -682
- package/dist/index.d.ts +9 -682
- package/dist/index.mjs +7427 -5749
- package/dist/index.mjs.map +1 -1
- package/dist/manager-CgpuAzqn.d.cts +306 -0
- package/dist/manager-CgpuAzqn.d.ts +306 -0
- package/dist/types-BrVfNxND.d.cts +14 -0
- package/dist/types-BrVfNxND.d.ts +14 -0
- package/dist/wallet.cjs +2161 -0
- package/dist/wallet.cjs.map +1 -0
- package/dist/wallet.d.cts +37 -0
- package/dist/wallet.d.ts +37 -0
- package/dist/wallet.mjs +2117 -0
- package/dist/wallet.mjs.map +1 -0
- package/dist/widget.cjs +13388 -0
- package/dist/widget.cjs.map +1 -0
- package/dist/widget.d.cts +66 -0
- package/dist/widget.d.ts +66 -0
- package/dist/widget.mjs +13377 -0
- package/dist/widget.mjs.map +1 -0
- package/package.json +3 -1
|
@@ -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 };
|
package/dist/wallet.d.ts
ADDED
|
@@ -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 };
|