@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.
@@ -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
- * The MWA protocol communicates with wallet apps via Android intents (on mobile)
49
- * or WebSocket relay (on desktop via QR code), eliminating the need to integrate
50
- * with each wallet individually.
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 mwaAdapter;
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
- private ensureAdapter;
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>;