@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
|
@@ -9909,7 +9909,7 @@ function requireBs58 () {
|
|
|
9909
9909
|
}
|
|
9910
9910
|
|
|
9911
9911
|
var bs58Exports = requireBs58();
|
|
9912
|
-
var bs58 = /*@__PURE__*/getDefaultExportFromCjs(bs58Exports);
|
|
9912
|
+
var bs58$2 = /*@__PURE__*/getDefaultExportFromCjs(bs58Exports);
|
|
9913
9913
|
|
|
9914
9914
|
// ─────────────────────────────────────────────────────────────
|
|
9915
9915
|
// Local implementation of getSimulationComputeUnits
|
|
@@ -10196,7 +10196,7 @@ function loadKeypairFromEnv() {
|
|
|
10196
10196
|
try {
|
|
10197
10197
|
const secretKey = secret.trim().startsWith("[")
|
|
10198
10198
|
? Uint8Array.from(JSON.parse(secret))
|
|
10199
|
-
: bs58.decode(secret.trim());
|
|
10199
|
+
: bs58$2.decode(secret.trim());
|
|
10200
10200
|
return web3_js.Keypair.fromSecretKey(secretKey);
|
|
10201
10201
|
}
|
|
10202
10202
|
catch (err) {
|
|
@@ -17957,11 +17957,11 @@ var srcExports = requireSrc();
|
|
|
17957
17957
|
var basex = /*@__PURE__*/getDefaultExportFromCjs$1(srcExports);
|
|
17958
17958
|
|
|
17959
17959
|
var ALPHABET = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz';
|
|
17960
|
-
var
|
|
17960
|
+
var bs58 = basex(ALPHABET);
|
|
17961
17961
|
|
|
17962
17962
|
var index = /*#__PURE__*/Object.freeze({
|
|
17963
17963
|
__proto__: null,
|
|
17964
|
-
default:
|
|
17964
|
+
default: bs58
|
|
17965
17965
|
});
|
|
17966
17966
|
|
|
17967
17967
|
var naclFast = {exports: {}};
|
|
@@ -20439,7 +20439,7 @@ async function tryWebCrypto() {
|
|
|
20439
20439
|
await idbPut(db, IDB_KEY, pair); // CryptoKey is structured-cloneable; bytes never exposed
|
|
20440
20440
|
}
|
|
20441
20441
|
const raw = new Uint8Array(await s.exportKey('raw', pair.publicKey)); // public is exportable
|
|
20442
|
-
const address =
|
|
20442
|
+
const address = bs58.encode(raw);
|
|
20443
20443
|
return {
|
|
20444
20444
|
address,
|
|
20445
20445
|
nonExtractable: true,
|
|
@@ -20460,12 +20460,12 @@ function fallbackKey() {
|
|
|
20460
20460
|
let secret;
|
|
20461
20461
|
const saved = store.getItem(FALLBACK_STORE_KEY);
|
|
20462
20462
|
if (saved) {
|
|
20463
|
-
secret =
|
|
20463
|
+
secret = bs58.decode(saved);
|
|
20464
20464
|
}
|
|
20465
20465
|
else {
|
|
20466
20466
|
const kp = web3_js.Keypair.generate();
|
|
20467
20467
|
secret = kp.secretKey; // 64 bytes
|
|
20468
|
-
store.setItem(FALLBACK_STORE_KEY,
|
|
20468
|
+
store.setItem(FALLBACK_STORE_KEY, bs58.encode(secret));
|
|
20469
20469
|
}
|
|
20470
20470
|
const kp = web3_js.Keypair.fromSecretKey(secret);
|
|
20471
20471
|
const address = kp.publicKey.toBase58();
|
|
@@ -21248,17 +21248,17 @@ function clearIncompatibleSession() {
|
|
|
21248
21248
|
// Lazy loaders for web-only providers.
|
|
21249
21249
|
// Using dynamic import() ensures Metro (RN) never resolves these modules.
|
|
21250
21250
|
async function loadPhantomWalletProvider() {
|
|
21251
|
-
const mod = await Promise.resolve().then(function () { return require('./phantom-wallet-provider-
|
|
21251
|
+
const mod = await Promise.resolve().then(function () { return require('./phantom-wallet-provider-yMlFdfKn.js'); });
|
|
21252
21252
|
return { PhantomWalletProvider: mod.PhantomWalletProvider };
|
|
21253
21253
|
}
|
|
21254
21254
|
// Web Privy provider (depends on react-dom + @privy-io/react-auth). Lazy so Metro
|
|
21255
21255
|
// never bundles it into the RN build — RN uses the @privy-io/expo provider instead.
|
|
21256
21256
|
async function loadPrivyWalletProvider() {
|
|
21257
|
-
const mod = await Promise.resolve().then(function () { return require('./privy-wallet-provider-
|
|
21257
|
+
const mod = await Promise.resolve().then(function () { return require('./privy-wallet-provider-BcbjdOfk.js'); });
|
|
21258
21258
|
return mod.PrivyWalletProvider;
|
|
21259
21259
|
}
|
|
21260
21260
|
async function loadSolanaMobileWalletProvider() {
|
|
21261
|
-
const mod = await Promise.resolve().then(function () { return require('./solana-mobile-wallet-provider-
|
|
21261
|
+
const mod = await Promise.resolve().then(function () { return require('./solana-mobile-wallet-provider-BCoTvY5g.js'); });
|
|
21262
21262
|
return mod.SolanaMobileWalletProvider;
|
|
21263
21263
|
}
|
|
21264
21264
|
async function hotSwapToMWAProvider(config) {
|
|
@@ -22069,7 +22069,7 @@ class PrivyExpoProvider {
|
|
|
22069
22069
|
const wallet = await this.getWalletOrThrow();
|
|
22070
22070
|
const messageBytes = getPlatform().textEncode(message);
|
|
22071
22071
|
const result = await wallet.signMessage(messageBytes);
|
|
22072
|
-
return
|
|
22072
|
+
return bs58.encode(result.signature);
|
|
22073
22073
|
}
|
|
22074
22074
|
async signTransaction(transaction) {
|
|
22075
22075
|
await this.ensureReady();
|
|
@@ -22253,7 +22253,7 @@ exports.SURFNET_RPC_URL = SURFNET_RPC_URL$1;
|
|
|
22253
22253
|
exports.ServerSessionManager = ServerSessionManager;
|
|
22254
22254
|
exports.WebSessionManager = WebSessionManager;
|
|
22255
22255
|
exports.aggregate = aggregate;
|
|
22256
|
-
exports.
|
|
22256
|
+
exports.bs58 = bs58;
|
|
22257
22257
|
exports.bufferExports = bufferExports;
|
|
22258
22258
|
exports.buildSetDocumentsTransaction = buildSetDocumentsTransaction;
|
|
22259
22259
|
exports.clearCache = clearCache;
|
|
@@ -22280,7 +22280,6 @@ exports.getAuthProvider = getAuthProvider;
|
|
|
22280
22280
|
exports.getCachedData = getCachedData;
|
|
22281
22281
|
exports.getConfig = getConfig;
|
|
22282
22282
|
exports.getCurrentUser = getCurrentUser;
|
|
22283
|
-
exports.getDefaultExportFromCjs = getDefaultExportFromCjs$1;
|
|
22284
22283
|
exports.getFiles = getFiles;
|
|
22285
22284
|
exports.getIdToken = getIdToken;
|
|
22286
22285
|
exports.getMany = getMany;
|
|
@@ -22341,4 +22340,4 @@ exports.wsGet = wsGet;
|
|
|
22341
22340
|
exports.wsGetMany = wsGetMany;
|
|
22342
22341
|
exports.wsQuery = wsQuery;
|
|
22343
22342
|
exports.wsSet = wsSet;
|
|
22344
|
-
//# sourceMappingURL=index.native-
|
|
22343
|
+
//# sourceMappingURL=index.native-CCc03Zxr.js.map
|