@pooflabs/web 0.0.89-rc1 → 0.0.89-rc2

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.
Files changed (57) hide show
  1. package/dist/auth/providers/mock-poofnet-provider.d.ts +58 -0
  2. package/dist/auth/providers/phantom-wallet-provider.d.ts +4 -0
  3. package/dist/{index-C_t7524U.esm.js → index-4JUcdcnk.esm.js} +2 -2406
  4. package/dist/index-4JUcdcnk.esm.js.map +1 -0
  5. package/dist/{index-Bu0P9-rk.js → index-BLiaV7Dz.js} +4633 -1878
  6. package/dist/index-BLiaV7Dz.js.map +1 -0
  7. package/dist/{index-CaP3L422.js → index-CXmcQaFm.js} +2 -2406
  8. package/dist/index-CXmcQaFm.js.map +1 -0
  9. package/dist/{index-DqaHVIzZ.esm.js → index-Cgaz8U9W.esm.js} +4634 -1877
  10. package/dist/index-Cgaz8U9W.esm.js.map +1 -0
  11. package/dist/{index-BbBFWBRS.esm.js → index-DQhWZskl.esm.js} +2 -2407
  12. package/dist/index-DQhWZskl.esm.js.map +1 -0
  13. package/dist/{index-B2tbqv9S.js → index-QJAj_nTx.js} +13 -2418
  14. package/dist/index-QJAj_nTx.js.map +1 -0
  15. package/dist/{index.browser-D2cnbAmp.js → index.browser-B9NfvmrP.js} +2 -2
  16. package/dist/{index.browser-D2cnbAmp.js.map → index.browser-B9NfvmrP.js.map} +1 -1
  17. package/dist/{index.browser-K7sgUCDX.esm.js → index.browser-CG2sQjrd.esm.js} +2 -2
  18. package/dist/{index.browser-K7sgUCDX.esm.js.map → index.browser-CG2sQjrd.esm.js.map} +1 -1
  19. package/dist/{index.browser-BCCeqt95.js → index.browser-UxB-zDuA.js} +2 -2
  20. package/dist/{index.browser-BCCeqt95.js.map → index.browser-UxB-zDuA.js.map} +1 -1
  21. package/dist/{index.browser-CMH5pzud.esm.js → index.browser-kQdoMu7Y.esm.js} +2 -2
  22. package/dist/{index.browser-CMH5pzud.esm.js.map → index.browser-kQdoMu7Y.esm.js.map} +1 -1
  23. package/dist/index.esm.js +1 -1
  24. package/dist/index.js +1 -1
  25. package/dist/{index.native-RPvM5J_E.esm.js → index.native-CwpIbypp.esm.js} +4513 -1800
  26. package/dist/index.native-CwpIbypp.esm.js.map +1 -0
  27. package/dist/{index.native-DGACm1O5.js → index.native-Cycwo-3I.js} +4513 -1802
  28. package/dist/index.native-Cycwo-3I.js.map +1 -0
  29. package/dist/index.native.esm.js +1 -1
  30. package/dist/index.native.js +1 -1
  31. package/dist/{phantom-wallet-provider-B-5jhIZ6.js → phantom-wallet-provider-BgDhrraw.js} +53 -8
  32. package/dist/phantom-wallet-provider-BgDhrraw.js.map +1 -0
  33. package/dist/{phantom-wallet-provider-BcxNxeLW.esm.js → phantom-wallet-provider-DM-96ILz.esm.js} +49 -4
  34. package/dist/phantom-wallet-provider-DM-96ILz.esm.js.map +1 -0
  35. package/dist/{privy-wallet-provider-B8SDd66x.esm.js → privy-wallet-provider-C70AIqHI.esm.js} +3 -3
  36. package/dist/{privy-wallet-provider-B8SDd66x.esm.js.map → privy-wallet-provider-C70AIqHI.esm.js.map} +1 -1
  37. package/dist/{privy-wallet-provider-Du1rVhyc.js → privy-wallet-provider-D4IYOUji.js} +3 -3
  38. package/dist/{privy-wallet-provider-Du1rVhyc.js.map → privy-wallet-provider-D4IYOUji.js.map} +1 -1
  39. package/dist/{solana-mobile-wallet-provider-DuB_IGjv.js → solana-mobile-wallet-provider-BrjPc7Wd.js} +9 -10
  40. package/dist/{solana-mobile-wallet-provider-DuB_IGjv.js.map → solana-mobile-wallet-provider-BrjPc7Wd.js.map} +1 -1
  41. package/dist/{solana-mobile-wallet-provider-DKCgh6ep.esm.js → solana-mobile-wallet-provider-CXXw-pKg.esm.js} +3 -4
  42. package/dist/{solana-mobile-wallet-provider-DKCgh6ep.esm.js.map → solana-mobile-wallet-provider-CXXw-pKg.esm.js.map} +1 -1
  43. package/package.json +3 -2
  44. package/dist/index-B2tbqv9S.js.map +0 -1
  45. package/dist/index-BbBFWBRS.esm.js.map +0 -1
  46. package/dist/index-Bu0P9-rk.js.map +0 -1
  47. package/dist/index-C_t7524U.esm.js.map +0 -1
  48. package/dist/index-CaP3L422.js.map +0 -1
  49. package/dist/index-DIO6OzTK.js +0 -8
  50. package/dist/index-DIO6OzTK.js.map +0 -1
  51. package/dist/index-DqaHVIzZ.esm.js.map +0 -1
  52. package/dist/index-Mdx7ymmb.esm.js +0 -6
  53. package/dist/index-Mdx7ymmb.esm.js.map +0 -1
  54. package/dist/index.native-DGACm1O5.js.map +0 -1
  55. package/dist/index.native-RPvM5J_E.esm.js.map +0 -1
  56. package/dist/phantom-wallet-provider-B-5jhIZ6.js.map +0 -1
  57. package/dist/phantom-wallet-provider-BcxNxeLW.esm.js.map +0 -1
@@ -1,7 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-DIO6OzTK.js');
4
- var index_native = require('./index.native-DGACm1O5.js');
3
+ var index_native = require('./index.native-Cycwo-3I.js');
5
4
  var web3_js = require('@solana/web3.js');
6
5
  var anchor = require('@coral-xyz/anchor');
7
6
  require('axios');
@@ -632,7 +631,7 @@ class SolanaMobileWalletProvider {
632
631
  async ensureWallet() {
633
632
  if (this.wallet)
634
633
  return this.wallet;
635
- const mod = await Promise.resolve().then(function () { return require('./index.browser-BCCeqt95.js'); });
634
+ const mod = await Promise.resolve().then(function () { return require('./index.browser-UxB-zDuA.js'); });
636
635
  const chain = mapChainToWalletStandard(this.cluster);
637
636
  this.wallet = new mod.LocalSolanaMobileWalletAdapterWallet({
638
637
  appIdentity: this.appIdentity,
@@ -764,7 +763,7 @@ class SolanaMobileWalletProvider {
764
763
  const account = auth.accounts[0];
765
764
  // account.address is base64-encoded per MWA spec; convert to
766
765
  // the base58 form Tarobase + the rest of the SDK use.
767
- const base58Addr = new web3_js.PublicKey(index.bufferExports.Buffer.from(account.address, 'base64')).toBase58();
766
+ const base58Addr = new web3_js.PublicKey(index_native.bufferExports.Buffer.from(account.address, 'base64')).toBase58();
768
767
  // Reuse session if already valid for this address — skip the
769
768
  // signMessages roundtrip entirely.
770
769
  if (existingSession && existingSession.address === base58Addr) {
@@ -785,7 +784,7 @@ class SolanaMobileWalletProvider {
785
784
  }
786
785
  // Per spec, signMessages returns Uint8Array[] of signatures
787
786
  // (one per payload), not message+signature concatenations.
788
- const signatureBase64 = index.bufferExports.Buffer.from(signatures[0]).toString('base64');
787
+ const signatureBase64 = index_native.bufferExports.Buffer.from(signatures[0]).toString('base64');
789
788
  return {
790
789
  base58Addr,
791
790
  authToken: auth.auth_token,
@@ -893,7 +892,7 @@ class SolanaMobileWalletProvider {
893
892
  throw new Error('MWA returned no signature');
894
893
  }
895
894
  const { signature: sigBytes } = signResult;
896
- const signatureBase64 = index.bufferExports.Buffer.from(sigBytes).toString('base64');
895
+ const signatureBase64 = index_native.bufferExports.Buffer.from(sigBytes).toString('base64');
897
896
  // Create Tarobase session on the server.
898
897
  const createSessionResult = await index_native.createSessionWithSignature(base58Addr, messageText, signatureBase64);
899
898
  await index_native.WebSessionManager.storeSession(base58Addr, createSessionResult.accessToken, createSessionResult.idToken, createSessionResult.refreshToken);
@@ -993,7 +992,7 @@ class SolanaMobileWalletProvider {
993
992
  throw new Error('MWA returned no signature');
994
993
  return sigs[0];
995
994
  });
996
- return index.bufferExports.Buffer.from(signature).toString('base64');
995
+ return index_native.bufferExports.Buffer.from(signature).toString('base64');
997
996
  }
998
997
  catch (error) {
999
998
  if (this.isNativeUserCancel(error)) {
@@ -1016,7 +1015,7 @@ class SolanaMobileWalletProvider {
1016
1015
  throw new Error('MWA returned no signature');
1017
1016
  }
1018
1017
  const { signature: sigBytes } = results[0];
1019
- return index.bufferExports.Buffer.from(sigBytes).toString('base64');
1018
+ return index_native.bufferExports.Buffer.from(sigBytes).toString('base64');
1020
1019
  }
1021
1020
  catch (error) {
1022
1021
  if (((_b = error === null || error === void 0 ? void 0 : error.message) === null || _b === void 0 ? void 0 : _b.includes('not connected')) || ((_c = error === null || error === void 0 ? void 0 : error.message) === null || _c === void 0 ? void 0 : _c.includes('not authorized')) ||
@@ -1311,7 +1310,7 @@ class SolanaMobileWalletProvider {
1311
1310
  if (solTransactionData.signedTransaction) {
1312
1311
  // Server has co-signed a CPI attestation. Do NOT mutate its
1313
1312
  // blockhash — that would invalidate the server's signature.
1314
- tx = web3_js.VersionedTransaction.deserialize(index.bufferExports.Buffer.from(solTransactionData.signedTransaction, 'base64'));
1313
+ tx = web3_js.VersionedTransaction.deserialize(index_native.bufferExports.Buffer.from(solTransactionData.signedTransaction, 'base64'));
1315
1314
  }
1316
1315
  else {
1317
1316
  const result = await index_native.buildSetDocumentsTransaction(connection, solTransactionData.txArgs[0].idl, anchorProvider, connectedPubkey, {
@@ -1476,4 +1475,4 @@ class SolanaMobileWalletProvider {
1476
1475
  SolanaMobileWalletProvider.instance = null;
1477
1476
 
1478
1477
  exports.SolanaMobileWalletProvider = SolanaMobileWalletProvider;
1479
- //# sourceMappingURL=solana-mobile-wallet-provider-DuB_IGjv.js.map
1478
+ //# sourceMappingURL=solana-mobile-wallet-provider-BrjPc7Wd.js.map