@pooflabs/web 0.0.70-rc.1 → 0.0.70
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/auth/providers/solana-mobile-wallet-provider.d.ts +16 -6
- package/dist/{index-DEHeP5Qr.esm.js → index-Buv6IzVV.esm.js} +904 -609
- package/dist/index-Buv6IzVV.esm.js.map +1 -0
- package/dist/{index-BO2G95MR.js → index-De5j2Ofs.js} +1226 -18
- package/dist/index-De5j2Ofs.js.map +1 -0
- package/dist/{index-B3B6I7hT.esm.js → index-DgZ0DRmj.esm.js} +1222 -14
- package/dist/index-DgZ0DRmj.esm.js.map +1 -0
- package/dist/{index-CMKICH1P.js → index-Rzm01Zbu.js} +904 -610
- package/dist/index-Rzm01Zbu.js.map +1 -0
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +7 -2
- package/dist/index-B3B6I7hT.esm.js.map +0 -1
- package/dist/index-BO2G95MR.js.map +0 -1
- package/dist/index-CMKICH1P.js.map +0 -1
- package/dist/index-DEHeP5Qr.esm.js.map +0 -1
|
@@ -39,25 +39,35 @@ export declare function registerMobileWalletAdapter(config?: {
|
|
|
39
39
|
}): Promise<void>;
|
|
40
40
|
/**
|
|
41
41
|
* SolanaMobileWalletProvider implements the AuthProvider interface using the
|
|
42
|
-
* Solana Mobile Wallet Adapter (MWA) protocol.
|
|
42
|
+
* Solana Mobile Wallet Adapter (MWA) protocol's low-level `transact` API.
|
|
43
43
|
*
|
|
44
44
|
* This enables TaroBase dApps to work with any MWA-compliant wallet on Solana
|
|
45
45
|
* mobile devices (Seeker, Saga) — including the native Seed Vault Wallet,
|
|
46
46
|
* Phantom, Solflare, and any other wallet that implements the MWA protocol.
|
|
47
47
|
*
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
*
|
|
48
|
+
* By using `transact()` directly (instead of the wallet-adapter wrapper),
|
|
49
|
+
* login combines authorize + signMessage into a single wallet session —
|
|
50
|
+
* meaning one popup/approval instead of two.
|
|
51
51
|
*/
|
|
52
52
|
export declare class SolanaMobileWalletProvider implements AuthProvider {
|
|
53
53
|
private static instance;
|
|
54
54
|
private networkUrl;
|
|
55
55
|
private config;
|
|
56
|
-
private
|
|
56
|
+
private authToken;
|
|
57
|
+
private walletUriBase;
|
|
58
|
+
private base64Address;
|
|
57
59
|
private authorizedPublicKey;
|
|
60
|
+
private publicKeyObj;
|
|
61
|
+
private appIdentity;
|
|
62
|
+
private chain;
|
|
58
63
|
constructor(networkUrl?: string | null, config?: SolanaMobileWalletConfig);
|
|
59
64
|
static getInstance(networkUrl: string | null, config: SolanaMobileWalletConfig): SolanaMobileWalletProvider;
|
|
60
|
-
|
|
65
|
+
/** Config for transact() — routes to the same wallet if we've already authorized */
|
|
66
|
+
private getAssociationConfig;
|
|
67
|
+
/** Reauthorize within a transact callback using a stored auth_token */
|
|
68
|
+
private reauthorizeWallet;
|
|
69
|
+
/** Persist auth result from an authorize/reauthorize call */
|
|
70
|
+
private storeAuthResult;
|
|
61
71
|
login(): Promise<User | null>;
|
|
62
72
|
restoreSession(): Promise<User | null>;
|
|
63
73
|
logout(): Promise<void>;
|