@bounded-sh/client 0.0.6 → 0.0.7
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/privy-wallet-provider.d.ts +2 -0
- package/dist/index.esm.js +26190 -7
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +26307 -108
- package/dist/index.js.map +1 -1
- package/dist/{index.native-Y7aFGpZp.esm.js → index.native-BxNuEqgy.esm.js} +13 -13
- package/dist/{index.native-Y7aFGpZp.esm.js.map → index.native-BxNuEqgy.esm.js.map} +1 -1
- package/dist/{index.native-Lrhg8G-G.js → index.native-CCc03Zxr.js} +13 -14
- package/dist/{index.native-Lrhg8G-G.js.map → index.native-CCc03Zxr.js.map} +1 -1
- package/dist/index.native.esm.js +1 -1
- package/dist/index.native.js +1 -1
- package/dist/{phantom-wallet-provider-K10GQBxk.esm.js → phantom-wallet-provider-CxnVOBTM.esm.js} +3 -3
- package/dist/{phantom-wallet-provider-K10GQBxk.esm.js.map → phantom-wallet-provider-CxnVOBTM.esm.js.map} +1 -1
- package/dist/{phantom-wallet-provider-DQDZjZkl.js → phantom-wallet-provider-yMlFdfKn.js} +3 -3
- package/dist/{phantom-wallet-provider-DQDZjZkl.js.map → phantom-wallet-provider-yMlFdfKn.js.map} +1 -1
- package/dist/{privy-wallet-provider-scXNSzjF.esm.js → privy-wallet-provider-BbjUoSdY.esm.js} +43 -23
- package/dist/privy-wallet-provider-BbjUoSdY.esm.js.map +1 -0
- package/dist/{privy-wallet-provider-Dh_jHrsq.js → privy-wallet-provider-BcbjdOfk.js} +43 -23
- package/dist/privy-wallet-provider-BcbjdOfk.js.map +1 -0
- package/dist/{solana-mobile-wallet-provider-DMXR_nmz.js → solana-mobile-wallet-provider-BCoTvY5g.js} +5 -5
- package/dist/{solana-mobile-wallet-provider-DMXR_nmz.js.map → solana-mobile-wallet-provider-BCoTvY5g.js.map} +1 -1
- package/dist/{solana-mobile-wallet-provider-BlwQuB4D.esm.js → solana-mobile-wallet-provider-wl_xDwIC.esm.js} +5 -5
- package/dist/{solana-mobile-wallet-provider-BlwQuB4D.esm.js.map → solana-mobile-wallet-provider-wl_xDwIC.esm.js.map} +1 -1
- package/package.json +23 -12
- package/dist/index-BzOrZU4R.esm.js +0 -16841
- package/dist/index-BzOrZU4R.esm.js.map +0 -1
- package/dist/index-CSUmsmHJ.js +0 -16884
- package/dist/index-CSUmsmHJ.js.map +0 -1
- package/dist/index-CtMYXtmh.js +0 -16882
- package/dist/index-CtMYXtmh.js.map +0 -1
- package/dist/index-DAI10qql.esm.js +0 -16843
- package/dist/index-DAI10qql.esm.js.map +0 -1
- package/dist/index-Dj2C_uV6.js +0 -26293
- package/dist/index-Dj2C_uV6.js.map +0 -1
- package/dist/index-Oc5pQUDo.esm.js +0 -26171
- package/dist/index-Oc5pQUDo.esm.js.map +0 -1
- package/dist/index.browser-BxwM4axz.esm.js +0 -5064
- package/dist/index.browser-BxwM4axz.esm.js.map +0 -1
- package/dist/index.browser-C_TToxuO.esm.js +0 -4208
- package/dist/index.browser-C_TToxuO.esm.js.map +0 -1
- package/dist/index.browser-Cp6PqsEM.js +0 -5074
- package/dist/index.browser-Cp6PqsEM.js.map +0 -1
- package/dist/index.browser-DcHalmEf.js +0 -4213
- package/dist/index.browser-DcHalmEf.js.map +0 -1
- package/dist/privy-wallet-provider-Dh_jHrsq.js.map +0 -1
- package/dist/privy-wallet-provider-scXNSzjF.esm.js.map +0 -1
|
@@ -9888,7 +9888,7 @@ function requireBs58 () {
|
|
|
9888
9888
|
}
|
|
9889
9889
|
|
|
9890
9890
|
var bs58Exports = requireBs58();
|
|
9891
|
-
var bs58 = /*@__PURE__*/getDefaultExportFromCjs(bs58Exports);
|
|
9891
|
+
var bs58$2 = /*@__PURE__*/getDefaultExportFromCjs(bs58Exports);
|
|
9892
9892
|
|
|
9893
9893
|
// ─────────────────────────────────────────────────────────────
|
|
9894
9894
|
// Local implementation of getSimulationComputeUnits
|
|
@@ -10175,7 +10175,7 @@ function loadKeypairFromEnv() {
|
|
|
10175
10175
|
try {
|
|
10176
10176
|
const secretKey = secret.trim().startsWith("[")
|
|
10177
10177
|
? Uint8Array.from(JSON.parse(secret))
|
|
10178
|
-
: bs58.decode(secret.trim());
|
|
10178
|
+
: bs58$2.decode(secret.trim());
|
|
10179
10179
|
return Keypair.fromSecretKey(secretKey);
|
|
10180
10180
|
}
|
|
10181
10181
|
catch (err) {
|
|
@@ -17936,11 +17936,11 @@ var srcExports = requireSrc();
|
|
|
17936
17936
|
var basex = /*@__PURE__*/getDefaultExportFromCjs$1(srcExports);
|
|
17937
17937
|
|
|
17938
17938
|
var ALPHABET = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz';
|
|
17939
|
-
var
|
|
17939
|
+
var bs58 = basex(ALPHABET);
|
|
17940
17940
|
|
|
17941
17941
|
var index = /*#__PURE__*/Object.freeze({
|
|
17942
17942
|
__proto__: null,
|
|
17943
|
-
default:
|
|
17943
|
+
default: bs58
|
|
17944
17944
|
});
|
|
17945
17945
|
|
|
17946
17946
|
var naclFast = {exports: {}};
|
|
@@ -20418,7 +20418,7 @@ async function tryWebCrypto() {
|
|
|
20418
20418
|
await idbPut(db, IDB_KEY, pair); // CryptoKey is structured-cloneable; bytes never exposed
|
|
20419
20419
|
}
|
|
20420
20420
|
const raw = new Uint8Array(await s.exportKey('raw', pair.publicKey)); // public is exportable
|
|
20421
|
-
const address =
|
|
20421
|
+
const address = bs58.encode(raw);
|
|
20422
20422
|
return {
|
|
20423
20423
|
address,
|
|
20424
20424
|
nonExtractable: true,
|
|
@@ -20439,12 +20439,12 @@ function fallbackKey() {
|
|
|
20439
20439
|
let secret;
|
|
20440
20440
|
const saved = store.getItem(FALLBACK_STORE_KEY);
|
|
20441
20441
|
if (saved) {
|
|
20442
|
-
secret =
|
|
20442
|
+
secret = bs58.decode(saved);
|
|
20443
20443
|
}
|
|
20444
20444
|
else {
|
|
20445
20445
|
const kp = Keypair.generate();
|
|
20446
20446
|
secret = kp.secretKey; // 64 bytes
|
|
20447
|
-
store.setItem(FALLBACK_STORE_KEY,
|
|
20447
|
+
store.setItem(FALLBACK_STORE_KEY, bs58.encode(secret));
|
|
20448
20448
|
}
|
|
20449
20449
|
const kp = Keypair.fromSecretKey(secret);
|
|
20450
20450
|
const address = kp.publicKey.toBase58();
|
|
@@ -21227,17 +21227,17 @@ function clearIncompatibleSession() {
|
|
|
21227
21227
|
// Lazy loaders for web-only providers.
|
|
21228
21228
|
// Using dynamic import() ensures Metro (RN) never resolves these modules.
|
|
21229
21229
|
async function loadPhantomWalletProvider() {
|
|
21230
|
-
const mod = await import('./phantom-wallet-provider-
|
|
21230
|
+
const mod = await import('./phantom-wallet-provider-CxnVOBTM.esm.js');
|
|
21231
21231
|
return { PhantomWalletProvider: mod.PhantomWalletProvider };
|
|
21232
21232
|
}
|
|
21233
21233
|
// Web Privy provider (depends on react-dom + @privy-io/react-auth). Lazy so Metro
|
|
21234
21234
|
// never bundles it into the RN build — RN uses the @privy-io/expo provider instead.
|
|
21235
21235
|
async function loadPrivyWalletProvider() {
|
|
21236
|
-
const mod = await import('./privy-wallet-provider-
|
|
21236
|
+
const mod = await import('./privy-wallet-provider-BbjUoSdY.esm.js');
|
|
21237
21237
|
return mod.PrivyWalletProvider;
|
|
21238
21238
|
}
|
|
21239
21239
|
async function loadSolanaMobileWalletProvider() {
|
|
21240
|
-
const mod = await import('./solana-mobile-wallet-provider-
|
|
21240
|
+
const mod = await import('./solana-mobile-wallet-provider-wl_xDwIC.esm.js');
|
|
21241
21241
|
return mod.SolanaMobileWalletProvider;
|
|
21242
21242
|
}
|
|
21243
21243
|
async function hotSwapToMWAProvider(config) {
|
|
@@ -22048,7 +22048,7 @@ class PrivyExpoProvider {
|
|
|
22048
22048
|
const wallet = await this.getWalletOrThrow();
|
|
22049
22049
|
const messageBytes = getPlatform().textEncode(message);
|
|
22050
22050
|
const result = await wallet.signMessage(messageBytes);
|
|
22051
|
-
return
|
|
22051
|
+
return bs58.encode(result.signature);
|
|
22052
22052
|
}
|
|
22053
22053
|
async signTransaction(transaction) {
|
|
22054
22054
|
await this.ensureReady();
|
|
@@ -22216,5 +22216,5 @@ class PrivyExpoProvider {
|
|
|
22216
22216
|
}
|
|
22217
22217
|
}
|
|
22218
22218
|
|
|
22219
|
-
export {
|
|
22220
|
-
//# sourceMappingURL=index.native-
|
|
22219
|
+
export { count as $, sendEmailOtp as A, verifyEmailOtp as B, linkEmail as C, loginWithPrivy as D, loginWithRedirect as E, linkWithRedirect as F, completeLoginFromRedirect as G, loginWithPopup as H, completeLoginInPopup as I, get as J, getMany as K, docId as L, set as M, setMany as N, setFile as O, getFiles as P, search as Q, queryAggregate as R, SOLANA_DEVNET_RPC_URL as S, runQuery as T, runQueryMany as U, runExpression as V, WebSessionManager as W, runExpressionMany as X, signMessage as Y, signTransaction as Z, signAndSubmitTransaction as _, buildSetDocumentsTransaction as a, aggregate as a0, subscribe as a1, useAuth as a2, deserializeTransaction as a3, getIdToken as a4, setPlatform as a5, MockAuthProvider as a6, DEFAULT_TEST_ADDRESS as a7, OffchainAuthProvider as a8, PrivyExpoProvider as a9, revokeSession as aA, serverTimestamp as aB, signSessionCreateMessage as aC, subscribeView as aD, toMillis as aE, toSeconds as aF, withEffects as aG, wsDelete as aH, wsGet as aI, wsGetMany as aJ, wsQuery as aK, wsSet as aL, index as aM, EFFECT_INTENT_ADDRESS as aa, FunctionInvokeError as ab, InsufficientBalanceError as ac, LiveIntentError as ad, ReactNativeSessionManager as ae, RealtimeStore as af, ServerSessionManager as ag, clearCache as ah, closeAllSubscriptions as ai, defineLiveModule as aj, deriveUserIdentityFromIdToken as ak, functions as al, getCachedData as am, getRealtimeStore as an, getWebhookKeysUrl as ao, hasActiveConnection as ap, increment as aq, invoke as ar, isEffectResult as as, live as at, intent as au, status as av, now as aw, reconnectWithNewAuth as ax, refreshSession as ay, resetRealtimeStore as az, bufferExports as b, convertRemainingAccounts as c, confirmAndCheckTransaction as d, SOLANA_MAINNET_RPC_URL as e, SURFNET_RPC_URL$1 as f, detectMobile as g, detectAndroid as h, getPlatform as i, setAuthLoading as j, genAuthNonce as k, genSolanaMessage as l, createSessionWithSignature as m, getActiveSessionManager as n, bs58 as o, init as p, getCurrentUser as q, onAuthStateChanged as r, setCurrentUser as s, onAuthLoadingChanged as t, getAuthLoading as u, login as v, logout as w, getConfig as x, getAuthProvider as y, signInAnonymously as z };
|
|
22220
|
+
//# sourceMappingURL=index.native-BxNuEqgy.esm.js.map
|