@pooflabs/web 0.0.89-rc5 → 0.0.89-ux.2
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/phantom-wallet-provider.d.ts +0 -4
- package/dist/index-BLbguAbm.js +8 -0
- package/dist/index-BLbguAbm.js.map +1 -0
- package/dist/{index-BmRFzihw.esm.js → index-BhMsVVRC.esm.js} +13 -363
- package/dist/index-BhMsVVRC.esm.js.map +1 -0
- package/dist/{index-CNeBXwNA.js → index-BsAk0dF_.js} +3238 -3615
- package/dist/index-BsAk0dF_.js.map +1 -0
- package/dist/{index-BFPYOUPB.esm.js → index-CEr58d1y.esm.js} +14 -363
- package/dist/index-CEr58d1y.esm.js.map +1 -0
- package/dist/{index-t6c_8F1Y.js → index-DV-v3Udi.js} +25 -374
- package/dist/index-DV-v3Udi.js.map +1 -0
- package/dist/{index-Bk0jNQeJ.esm.js → index-D_H81ZZs.esm.js} +3239 -3615
- package/dist/index-D_H81ZZs.esm.js.map +1 -0
- package/dist/{index-Aw2d-l7b.js → index-DsyaaxjP.js} +13 -363
- package/dist/index-DsyaaxjP.js.map +1 -0
- package/dist/index-udwtZBLu.esm.js +6 -0
- package/dist/index-udwtZBLu.esm.js.map +1 -0
- package/dist/{index.browser-DIbh5a17.js → index.browser-AsD3ML3C.js} +2 -2
- package/dist/{index.browser-DIbh5a17.js.map → index.browser-AsD3ML3C.js.map} +1 -1
- package/dist/{index.browser-DA5oVpde.esm.js → index.browser-Cdrgfw30.esm.js} +2 -2
- package/dist/{index.browser-DA5oVpde.esm.js.map → index.browser-Cdrgfw30.esm.js.map} +1 -1
- package/dist/{index.browser-DwpTtoZf.js → index.browser-CmvrvtVk.js} +2 -2
- package/dist/{index.browser-DwpTtoZf.js.map → index.browser-CmvrvtVk.js.map} +1 -1
- package/dist/{index.browser-CPNUnyFN.esm.js → index.browser-Ctdjdn7K.esm.js} +2 -2
- package/dist/{index.browser-CPNUnyFN.esm.js.map → index.browser-Ctdjdn7K.esm.js.map} +1 -1
- package/dist/index.d.ts +0 -2
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -2
- package/dist/index.js.map +1 -1
- package/dist/{index.native-BOKZJ7oQ.esm.js → index.native-CujLdGqC.esm.js} +3011 -3348
- package/dist/index.native-CujLdGqC.esm.js.map +1 -0
- package/dist/{index.native-CJnVdXZz.js → index.native-TmE1_ksX.js} +3011 -3349
- package/dist/index.native-TmE1_ksX.js.map +1 -0
- package/dist/index.native.d.ts +0 -2
- package/dist/index.native.esm.js +1 -1
- package/dist/index.native.js +1 -2
- package/dist/index.native.js.map +1 -1
- package/dist/{phantom-wallet-provider-CCu-ugIc.js → phantom-wallet-provider-Drxxai7b.js} +15 -55
- package/dist/phantom-wallet-provider-Drxxai7b.js.map +1 -0
- package/dist/{phantom-wallet-provider-BnoICydP.esm.js → phantom-wallet-provider-DsB9i0xD.esm.js} +11 -51
- package/dist/phantom-wallet-provider-DsB9i0xD.esm.js.map +1 -0
- package/dist/{privy-wallet-provider-CZv8FH7R.esm.js → privy-wallet-provider-Bh5qilM2.esm.js} +3 -3
- package/dist/privy-wallet-provider-Bh5qilM2.esm.js.map +1 -0
- package/dist/{privy-wallet-provider-07Uph-RM.js → privy-wallet-provider-_PkLjOQV.js} +3 -3
- package/dist/privy-wallet-provider-_PkLjOQV.js.map +1 -0
- package/dist/{solana-mobile-wallet-provider-n8aM2vet.js → solana-mobile-wallet-provider-wzJ_5N_z.js} +10 -9
- package/dist/{solana-mobile-wallet-provider-n8aM2vet.js.map → solana-mobile-wallet-provider-wzJ_5N_z.js.map} +1 -1
- package/dist/{solana-mobile-wallet-provider-7R9pkiw0.esm.js → solana-mobile-wallet-provider-xzJFY_GQ.esm.js} +4 -3
- package/dist/{solana-mobile-wallet-provider-7R9pkiw0.esm.js.map → solana-mobile-wallet-provider-xzJFY_GQ.esm.js.map} +1 -1
- package/package.json +2 -3
- package/dist/auth/hooks/usePoofnetWallet.d.ts +0 -28
- package/dist/auth/providers/mock-poofnet-provider.d.ts +0 -43
- package/dist/index-Aw2d-l7b.js.map +0 -1
- package/dist/index-BFPYOUPB.esm.js.map +0 -1
- package/dist/index-Bk0jNQeJ.esm.js.map +0 -1
- package/dist/index-BmRFzihw.esm.js.map +0 -1
- package/dist/index-CNeBXwNA.js.map +0 -1
- package/dist/index-t6c_8F1Y.js.map +0 -1
- package/dist/index.native-BOKZJ7oQ.esm.js.map +0 -1
- package/dist/index.native-CJnVdXZz.js.map +0 -1
- package/dist/phantom-wallet-provider-BnoICydP.esm.js.map +0 -1
- package/dist/phantom-wallet-provider-CCu-ugIc.js.map +0 -1
- package/dist/privy-wallet-provider-07Uph-RM.js.map +0 -1
- package/dist/privy-wallet-provider-CZv8FH7R.esm.js.map +0 -1
package/dist/{solana-mobile-wallet-provider-n8aM2vet.js → solana-mobile-wallet-provider-wzJ_5N_z.js}
RENAMED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var index = require('./index-BLbguAbm.js');
|
|
4
|
+
var index_native = require('./index.native-TmE1_ksX.js');
|
|
4
5
|
var web3_js = require('@solana/web3.js');
|
|
5
6
|
var anchor = require('@coral-xyz/anchor');
|
|
6
7
|
require('axios');
|
|
@@ -631,7 +632,7 @@ class SolanaMobileWalletProvider {
|
|
|
631
632
|
async ensureWallet() {
|
|
632
633
|
if (this.wallet)
|
|
633
634
|
return this.wallet;
|
|
634
|
-
const mod = await Promise.resolve().then(function () { return require('./index.browser-
|
|
635
|
+
const mod = await Promise.resolve().then(function () { return require('./index.browser-CmvrvtVk.js'); });
|
|
635
636
|
const chain = mapChainToWalletStandard(this.cluster);
|
|
636
637
|
this.wallet = new mod.LocalSolanaMobileWalletAdapterWallet({
|
|
637
638
|
appIdentity: this.appIdentity,
|
|
@@ -763,7 +764,7 @@ class SolanaMobileWalletProvider {
|
|
|
763
764
|
const account = auth.accounts[0];
|
|
764
765
|
// account.address is base64-encoded per MWA spec; convert to
|
|
765
766
|
// the base58 form Tarobase + the rest of the SDK use.
|
|
766
|
-
const base58Addr = new web3_js.PublicKey(
|
|
767
|
+
const base58Addr = new web3_js.PublicKey(index.bufferExports.Buffer.from(account.address, 'base64')).toBase58();
|
|
767
768
|
// Reuse session if already valid for this address — skip the
|
|
768
769
|
// signMessages roundtrip entirely.
|
|
769
770
|
if (existingSession && existingSession.address === base58Addr) {
|
|
@@ -784,7 +785,7 @@ class SolanaMobileWalletProvider {
|
|
|
784
785
|
}
|
|
785
786
|
// Per spec, signMessages returns Uint8Array[] of signatures
|
|
786
787
|
// (one per payload), not message+signature concatenations.
|
|
787
|
-
const signatureBase64 =
|
|
788
|
+
const signatureBase64 = index.bufferExports.Buffer.from(signatures[0]).toString('base64');
|
|
788
789
|
return {
|
|
789
790
|
base58Addr,
|
|
790
791
|
authToken: auth.auth_token,
|
|
@@ -895,7 +896,7 @@ class SolanaMobileWalletProvider {
|
|
|
895
896
|
throw new Error('MWA returned no signature');
|
|
896
897
|
}
|
|
897
898
|
const { signature: sigBytes } = signResult;
|
|
898
|
-
const signatureBase64 =
|
|
899
|
+
const signatureBase64 = index.bufferExports.Buffer.from(sigBytes).toString('base64');
|
|
899
900
|
// Create Tarobase session on the server.
|
|
900
901
|
const createSessionResult = await index_native.createSessionWithSignature(base58Addr, messageText, signatureBase64);
|
|
901
902
|
await index_native.WebSessionManager.storeSession(base58Addr, createSessionResult.accessToken, createSessionResult.idToken, createSessionResult.refreshToken);
|
|
@@ -995,7 +996,7 @@ class SolanaMobileWalletProvider {
|
|
|
995
996
|
throw new Error('MWA returned no signature');
|
|
996
997
|
return sigs[0];
|
|
997
998
|
});
|
|
998
|
-
return
|
|
999
|
+
return index.bufferExports.Buffer.from(signature).toString('base64');
|
|
999
1000
|
}
|
|
1000
1001
|
catch (error) {
|
|
1001
1002
|
if (this.isNativeUserCancel(error)) {
|
|
@@ -1018,7 +1019,7 @@ class SolanaMobileWalletProvider {
|
|
|
1018
1019
|
throw new Error('MWA returned no signature');
|
|
1019
1020
|
}
|
|
1020
1021
|
const { signature: sigBytes } = results[0];
|
|
1021
|
-
return
|
|
1022
|
+
return index.bufferExports.Buffer.from(sigBytes).toString('base64');
|
|
1022
1023
|
}
|
|
1023
1024
|
catch (error) {
|
|
1024
1025
|
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')) ||
|
|
@@ -1313,7 +1314,7 @@ class SolanaMobileWalletProvider {
|
|
|
1313
1314
|
if (solTransactionData.signedTransaction) {
|
|
1314
1315
|
// Server has co-signed a CPI attestation. Do NOT mutate its
|
|
1315
1316
|
// blockhash — that would invalidate the server's signature.
|
|
1316
|
-
tx = web3_js.VersionedTransaction.deserialize(
|
|
1317
|
+
tx = web3_js.VersionedTransaction.deserialize(index.bufferExports.Buffer.from(solTransactionData.signedTransaction, 'base64'));
|
|
1317
1318
|
}
|
|
1318
1319
|
else {
|
|
1319
1320
|
const result = await index_native.buildSetDocumentsTransaction(connection, solTransactionData.txArgs[0].idl, anchorProvider, connectedPubkey, {
|
|
@@ -1478,4 +1479,4 @@ class SolanaMobileWalletProvider {
|
|
|
1478
1479
|
SolanaMobileWalletProvider.instance = null;
|
|
1479
1480
|
|
|
1480
1481
|
exports.SolanaMobileWalletProvider = SolanaMobileWalletProvider;
|
|
1481
|
-
//# sourceMappingURL=solana-mobile-wallet-provider-
|
|
1482
|
+
//# sourceMappingURL=solana-mobile-wallet-provider-wzJ_5N_z.js.map
|