@bounded-sh/client 0.0.11 → 0.0.13
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 -5
- package/dist/auth/providers/solana-mobile-wallet-provider.d.ts +0 -5
- package/dist/index.js +4 -19
- package/dist/index.js.map +1 -1
- package/dist/{index.esm.js → index.mjs} +5 -20
- package/dist/index.mjs.map +1 -0
- package/dist/{index.native-DYxf9g9r.esm.js → index.native-BYEVhmbt.mjs} +5 -8
- package/dist/index.native-BYEVhmbt.mjs.map +1 -0
- package/dist/{index.native-BIm0gZmJ.js → index.native-CcBTbnBg.js} +5 -8
- package/dist/{index.native-BIm0gZmJ.js.map → index.native-CcBTbnBg.js.map} +1 -1
- package/dist/index.native.js +1 -1
- package/dist/{index.native.esm.js → index.native.mjs} +2 -2
- package/dist/index.native.mjs.map +1 -0
- package/dist/{phantom-wallet-provider-CFFRpATv.js → phantom-wallet-provider-Cn6MzUUo.js} +3 -6
- package/dist/phantom-wallet-provider-Cn6MzUUo.js.map +1 -0
- package/dist/{phantom-wallet-provider-LZRhTqLr.esm.js → phantom-wallet-provider-D_AzfLq0.mjs} +3 -6
- package/dist/phantom-wallet-provider-D_AzfLq0.mjs.map +1 -0
- package/dist/{privy-wallet-provider-Tuh_afc9.esm.js → privy-wallet-provider-AC4xL6bN.mjs} +4 -10
- package/dist/privy-wallet-provider-AC4xL6bN.mjs.map +1 -0
- package/dist/{privy-wallet-provider-CuClH2mS.js → privy-wallet-provider-DtWAtbUl.js} +4 -10
- package/dist/privy-wallet-provider-DtWAtbUl.js.map +1 -0
- package/dist/{solana-mobile-wallet-provider-DHxdYO4I.js → solana-mobile-wallet-provider-Cos9gu7k.js} +3 -6
- package/dist/{solana-mobile-wallet-provider-DHxdYO4I.js.map → solana-mobile-wallet-provider-Cos9gu7k.js.map} +1 -1
- package/dist/{solana-mobile-wallet-provider-CsbnYUp-.esm.js → solana-mobile-wallet-provider-X6BM07gm.mjs} +3 -6
- package/dist/solana-mobile-wallet-provider-X6BM07gm.mjs.map +1 -0
- package/package.json +7 -5
- package/dist/index.esm.js.map +0 -1
- package/dist/index.native-DYxf9g9r.esm.js.map +0 -1
- package/dist/index.native.esm.js.map +0 -1
- package/dist/phantom-wallet-provider-CFFRpATv.js.map +0 -1
- package/dist/phantom-wallet-provider-LZRhTqLr.esm.js.map +0 -1
- package/dist/privy-wallet-provider-CuClH2mS.js.map +0 -1
- package/dist/privy-wallet-provider-Tuh_afc9.esm.js.map +0 -1
- package/dist/solana-mobile-wallet-provider-CsbnYUp-.esm.js.map +0 -1
|
@@ -110,8 +110,3 @@ export declare class PhantomWalletProvider implements AuthProvider {
|
|
|
110
110
|
private submitSignedTransaction;
|
|
111
111
|
private submitSignedTransactionWithBlockhash;
|
|
112
112
|
}
|
|
113
|
-
declare global {
|
|
114
|
-
interface Window {
|
|
115
|
-
CUSTOM_BOUNDED_APP_ID_HEADER?: string;
|
|
116
|
-
}
|
|
117
|
-
}
|
package/dist/index.js
CHANGED
|
@@ -20831,10 +20831,7 @@ class PhantomWalletProvider {
|
|
|
20831
20831
|
const isSurfnet = rpcUrl === SURFNET_RPC_URL$2;
|
|
20832
20832
|
try {
|
|
20833
20833
|
const remainingAccounts = convertRemainingAccounts(solTransactionData.txArgs[0].remainingAccounts);
|
|
20834
|
-
|
|
20835
|
-
if (typeof window !== 'undefined' && window.CUSTOM_BOUNDED_APP_ID_HEADER) {
|
|
20836
|
-
app_id = window.CUSTOM_BOUNDED_APP_ID_HEADER;
|
|
20837
|
-
}
|
|
20834
|
+
const app_id = solTransactionData.appId;
|
|
20838
20835
|
if (!app_id) {
|
|
20839
20836
|
throw new Error("App ID is required");
|
|
20840
20837
|
}
|
|
@@ -22562,10 +22559,7 @@ class SolanaMobileWalletProvider {
|
|
|
22562
22559
|
const isSurfnet = rpcUrl === SURFNET_RPC_URL$2;
|
|
22563
22560
|
try {
|
|
22564
22561
|
const remainingAccounts = convertRemainingAccounts(solTransactionData.txArgs[0].remainingAccounts);
|
|
22565
|
-
|
|
22566
|
-
if (typeof window !== 'undefined' && window.CUSTOM_BOUNDED_APP_ID_HEADER) {
|
|
22567
|
-
app_id = window.CUSTOM_BOUNDED_APP_ID_HEADER;
|
|
22568
|
-
}
|
|
22562
|
+
const app_id = solTransactionData.appId;
|
|
22569
22563
|
if (!app_id) {
|
|
22570
22564
|
throw new Error('App ID is required');
|
|
22571
22565
|
}
|
|
@@ -23191,13 +23185,7 @@ class PrivyWalletProvider {
|
|
|
23191
23185
|
const rpcUrl = this.getRpcUrl(solTransactionData.network);
|
|
23192
23186
|
const connection = new web3_js.Connection(rpcUrl, "confirmed");
|
|
23193
23187
|
const remainingAccounts = convertRemainingAccounts(solTransactionData.txArgs[0].remainingAccounts);
|
|
23194
|
-
|
|
23195
|
-
if (typeof window !== 'undefined' && window.CUSTOM_BOUNDED_APP_ID_HEADER) {
|
|
23196
|
-
const customAppId = window.CUSTOM_BOUNDED_APP_ID_HEADER;
|
|
23197
|
-
if (customAppId) {
|
|
23198
|
-
app_id = customAppId;
|
|
23199
|
-
}
|
|
23200
|
-
}
|
|
23188
|
+
const app_id = solTransactionData.appId;
|
|
23201
23189
|
if (!app_id) {
|
|
23202
23190
|
throw new Error("App ID is required");
|
|
23203
23191
|
}
|
|
@@ -23823,10 +23811,7 @@ class PrivyExpoProvider {
|
|
|
23823
23811
|
const rpcUrl = this.getRpcUrl(solTransactionData.network);
|
|
23824
23812
|
const connection = new web3_js.Connection(rpcUrl, 'confirmed');
|
|
23825
23813
|
const remainingAccounts = convertRemainingAccounts(solTransactionData.txArgs[0].remainingAccounts);
|
|
23826
|
-
|
|
23827
|
-
if (typeof globalThis !== 'undefined' && globalThis.CUSTOM_BOUNDED_APP_ID_HEADER) {
|
|
23828
|
-
app_id = globalThis.CUSTOM_BOUNDED_APP_ID_HEADER;
|
|
23829
|
-
}
|
|
23814
|
+
const app_id = solTransactionData.appId;
|
|
23830
23815
|
if (!app_id) {
|
|
23831
23816
|
throw new Error('App ID is required');
|
|
23832
23817
|
}
|